{
 "format": "erlen-source-v1",
 "id": "methods",
 "version": "0.4.0",
 "license": "AGPL-3.0-only",
 "repository": "https://github.com/erlen-frontier-ops/erlen-methods.git",
 "repositoryVisibility": "private",
 "build": "Monorepo: npm ci desde la raíz y npm run package --workspace @erlen/methods. Fuente descargada: node herramientas/build.mjs reconstruye el HTML autocontenido sin instalar paquetes. Para el ZIP de producción (esbuild y Python): node herramientas/minificar.mjs && python3 herramientas/package-release.py. Para reproducir el catálogo del despliegue: ERLEN_SUITE_CATALOG=erlen-suite-catalog.json node herramientas/build.mjs.",
 "files": {
  "vendor/papaparse/papaparse.min.js": "/* @license\nPapa Parse\nv5.5.3\nhttps://github.com/mholt/PapaParse\nLicense: MIT\n*/\n((e,t)=>{\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof module&&\"undefined\"!=typeof exports?module.exports=t():e.Papa=t()})(this,function r(){var n=\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:void 0!==n?n:{};var d,s=!n.document&&!!n.postMessage,a=n.IS_PAPA_WORKER||!1,o={},h=0,v={};function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine=\"\",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null);this._handle=new i(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(t,e){var i=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<i){let e=this._config.newline;e||(r=this._config.quoteChar||'\"',e=this._handle.guessLineEndings(t,r)),t=[...t.split(e).slice(i)].join(e)}this.isFirstChunk&&U(this._config.beforeFirstChunk)&&void 0!==(r=this._config.beforeFirstChunk(t))&&(t=r),this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+t,r=(this._partialLine=\"\",this._handle.parse(i,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){t=r.meta.cursor,i=(this._finished||(this._partialLine=i.substring(t-this._baseIndex),this._baseIndex=t),r&&r.data&&(this._rowCount+=r.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview);if(a)n.postMessage({results:r,workerId:v.WORKER_ID,finished:i});else if(U(this._config.chunk)&&!e){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=r=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!i||!U(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),i||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){U(this._config.error)?this._config.error(e):a&&this._config.error&&n.postMessage({workerId:v.WORKER_ID,error:e,finished:!1})}}function f(e){var r;(e=e||{}).chunkSize||(e.chunkSize=v.RemoteChunkSize),u.call(this,e),this._nextChunk=s?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),s||(r.onload=y(this._chunkLoaded,this),r.onerror=y(this._chunkError,this)),r.open(this._config.downloadRequestBody?\"POST\":\"GET\",this._input,!s),this._config.downloadRequestHeaders){var e,t=this._config.downloadRequestHeaders;for(e in t)r.setRequestHeader(e,t[e])}var i;this._config.chunkSize&&(i=this._start+this._config.chunkSize-1,r.setRequestHeader(\"Range\",\"bytes=\"+this._start+\"-\"+i));try{r.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}s&&0===r.status&&this._chunkError()}},this._chunkLoaded=function(){4===r.readyState&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize||r.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>null!==(e=e.getResponseHeader(\"Content-Range\"))?parseInt(e.substring(e.lastIndexOf(\"/\")+1)):-1)(r),this.parseChunk(r.responseText)))},this._chunkError=function(e){e=r.statusText||e;this._sendError(new Error(e))}}function l(e){(e=e||{}).chunkSize||(e.chunkSize=v.LocalChunkSize),u.call(this,e);var i,r,n=\"undefined\"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((i=new FileReader).onload=y(this._chunkLoaded,this),i.onerror=y(this._chunkError,this)):i=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,t=(this._config.chunkSize&&(t=Math.min(this._start+this._config.chunkSize,this._input.size),e=r.call(e,this._start,t)),i.readAsText(e,this._config.encoding));n||this._chunkLoaded({target:{result:t}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(i.error)}}function c(e){var i;u.call(this,e=e||{}),this.stream=function(e){return i=e,this._nextChunk()},this._nextChunk=function(){var e,t;if(!this._finished)return e=this._config.chunkSize,i=e?(t=i.substring(0,e),i.substring(e)):(t=i,\"\"),this._finished=!i,this.parseChunk(t)}}function p(e){u.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on(\"data\",this._streamData),this._input.on(\"end\",this._streamEnd),this._input.on(\"error\",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=y(function(e){try{t.push(\"string\"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=y(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=y(function(){this._streamCleanUp(),r=!0,this._streamData(\"\")},this),this._streamCleanUp=y(function(){this._input.removeListener(\"data\",this._streamData),this._input.removeListener(\"end\",this._streamEnd),this._input.removeListener(\"error\",this._streamError)},this)}function i(m){var n,s,a,t,o=Math.pow(2,53),h=-o,u=/^\\s*-?(\\d+\\.?|\\.\\d+|\\d+\\.\\d+)([eE][-+]?\\d+)?\\s*$/,d=/^((\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z))|(\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z))|(\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z)))$/,i=this,r=0,f=0,l=!1,e=!1,c=[],p={data:[],errors:[],meta:{}};function y(e){return\"greedy\"===m.skipEmptyLines?\"\"===e.join(\"\").trim():1===e.length&&0===e[0].length}function g(){if(p&&a&&(k(\"Delimiter\",\"UndetectableDelimiter\",\"Unable to auto-detect delimiting character; defaulted to '\"+v.DefaultDelimiter+\"'\"),a=!1),m.skipEmptyLines&&(p.data=p.data.filter(function(e){return!y(e)})),_()){if(p)if(Array.isArray(p.data[0])){for(var e=0;_()&&e<p.data.length;e++)p.data[e].forEach(t);p.data.splice(0,1)}else p.data.forEach(t);function t(e,t){U(m.transformHeader)&&(e=m.transformHeader(e,t)),c.push(e)}}function i(e,t){for(var i=m.header?{}:[],r=0;r<e.length;r++){var n=r,s=e[r],s=((e,t)=>(e=>(m.dynamicTypingFunction&&void 0===m.dynamicTyping[e]&&(m.dynamicTyping[e]=m.dynamicTypingFunction(e)),!0===(m.dynamicTyping[e]||m.dynamicTyping)))(e)?\"true\"===t||\"TRUE\"===t||\"false\"!==t&&\"FALSE\"!==t&&((e=>{if(u.test(e)){e=parseFloat(e);if(h<e&&e<o)return 1}})(t)?parseFloat(t):d.test(t)?new Date(t):\"\"===t?null:t):t)(n=m.header?r>=c.length?\"__parsed_extra\":c[r]:n,s=m.transform?m.transform(s,n):s);\"__parsed_extra\"===n?(i[n]=i[n]||[],i[n].push(s)):i[n]=s}return m.header&&(r>c.length?k(\"FieldMismatch\",\"TooManyFields\",\"Too many fields: expected \"+c.length+\" fields but parsed \"+r,f+t):r<c.length&&k(\"FieldMismatch\",\"TooFewFields\",\"Too few fields: expected \"+c.length+\" fields but parsed \"+r,f+t)),i}var r;p&&(m.header||m.dynamicTyping||m.transform)&&(r=1,!p.data.length||Array.isArray(p.data[0])?(p.data=p.data.map(i),r=p.data.length):p.data=i(p.data,0),m.header&&p.meta&&(p.meta.fields=c),f+=r)}function _(){return m.header&&0===c.length}function k(e,t,i,r){e={type:e,code:t,message:i};void 0!==r&&(e.row=r),p.errors.push(e)}U(m.step)&&(t=m.step,m.step=function(e){p=e,_()?g():(g(),0!==p.data.length&&(r+=e.data.length,m.preview&&r>m.preview?s.abort():(p.data=p.data[0],t(p,i))))}),this.parse=function(e,t,i){var r=m.quoteChar||'\"',r=(m.newline||(m.newline=this.guessLineEndings(e,r)),a=!1,m.delimiter?U(m.delimiter)&&(m.delimiter=m.delimiter(e),p.meta.delimiter=m.delimiter):((r=((e,t,i,r,n)=>{var s,a,o,h;n=n||[\",\",\"\\t\",\"|\",\";\",v.RECORD_SEP,v.UNIT_SEP];for(var u=0;u<n.length;u++){for(var d,f=n[u],l=0,c=0,p=0,g=(o=void 0,new E({comments:r,delimiter:f,newline:t,preview:10}).parse(e)),_=0;_<g.data.length;_++)i&&y(g.data[_])?p++:(d=g.data[_].length,c+=d,void 0===o?o=d:0<d&&(l+=Math.abs(d-o),o=d));0<g.data.length&&(c/=g.data.length-p),(void 0===a||l<=a)&&(void 0===h||h<c)&&1.99<c&&(a=l,s=f,h=c)}return{successful:!!(m.delimiter=s),bestDelimiter:s}})(e,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess)).successful?m.delimiter=r.bestDelimiter:(a=!0,m.delimiter=v.DefaultDelimiter),p.meta.delimiter=m.delimiter),b(m));return m.preview&&m.header&&r.preview++,n=e,s=new E(r),p=s.parse(n,t,i),g(),l?{meta:{paused:!0}}:p||{meta:{paused:!1}}},this.paused=function(){return l},this.pause=function(){l=!0,s.abort(),n=U(m.chunk)?\"\":n.substring(s.getCharIndex())},this.resume=function(){i.streamer._halted?(l=!1,i.streamer.parseChunk(n,!0)):setTimeout(i.resume,3)},this.aborted=function(){return e},this.abort=function(){e=!0,s.abort(),p.meta.aborted=!0,U(m.complete)&&m.complete(p),n=\"\"},this.guessLineEndings=function(e,t){e=e.substring(0,1048576);var t=new RegExp(P(t)+\"([^]*?)\"+P(t),\"gm\"),i=(e=e.replace(t,\"\")).split(\"\\r\"),t=e.split(\"\\n\"),e=1<t.length&&t[0].length<i[0].length;if(1===i.length||e)return\"\\n\";for(var r=0,n=0;n<i.length;n++)\"\\n\"===i[n][0]&&r++;return r>=i.length/2?\"\\r\\n\":\"\\r\"}}function P(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}function E(C){var S=(C=C||{}).delimiter,O=C.newline,x=C.comments,I=C.step,A=C.preview,T=C.fastMode,D=null,L=!1,F=null==C.quoteChar?'\"':C.quoteChar,j=F;if(void 0!==C.escapeChar&&(j=C.escapeChar),(\"string\"!=typeof S||-1<v.BAD_DELIMITERS.indexOf(S))&&(S=\",\"),x===S)throw new Error(\"Comment character same as delimiter\");!0===x?x=\"#\":(\"string\"!=typeof x||-1<v.BAD_DELIMITERS.indexOf(x))&&(x=!1),\"\\n\"!==O&&\"\\r\"!==O&&\"\\r\\n\"!==O&&(O=\"\\n\");var z=0,M=!1;this.parse=function(i,t,r){if(\"string\"!=typeof i)throw new Error(\"Input must be a string\");var n=i.length,e=S.length,s=O.length,a=x.length,o=U(I),h=[],u=[],d=[],f=z=0;if(!i)return w();if(T||!1!==T&&-1===i.indexOf(F)){for(var l=i.split(O),c=0;c<l.length;c++){if(d=l[c],z+=d.length,c!==l.length-1)z+=O.length;else if(r)return w();if(!x||d.substring(0,a)!==x){if(o){if(h=[],k(d.split(S)),R(),M)return w()}else k(d.split(S));if(A&&A<=c)return h=h.slice(0,A),w(!0)}}return w()}for(var p=i.indexOf(S,z),g=i.indexOf(O,z),_=new RegExp(P(j)+P(F),\"g\"),m=i.indexOf(F,z);;)if(i[z]===F)for(m=z,z++;;){if(-1===(m=i.indexOf(F,m+1)))return r||u.push({type:\"Quotes\",code:\"MissingQuotes\",message:\"Quoted field unterminated\",row:h.length,index:z}),E();if(m===n-1)return E(i.substring(z,m).replace(_,F));if(F===j&&i[m+1]===j)m++;else if(F===j||0===m||i[m-1]!==j){-1!==p&&p<m+1&&(p=i.indexOf(S,m+1));var y=v(-1===(g=-1!==g&&g<m+1?i.indexOf(O,m+1):g)?p:Math.min(p,g));if(i.substr(m+1+y,e)===S){d.push(i.substring(z,m).replace(_,F)),i[z=m+1+y+e]!==F&&(m=i.indexOf(F,z)),p=i.indexOf(S,z),g=i.indexOf(O,z);break}y=v(g);if(i.substring(m+1+y,m+1+y+s)===O){if(d.push(i.substring(z,m).replace(_,F)),b(m+1+y+s),p=i.indexOf(S,z),m=i.indexOf(F,z),o&&(R(),M))return w();if(A&&h.length>=A)return w(!0);break}u.push({type:\"Quotes\",code:\"InvalidQuotes\",message:\"Trailing quote on quoted field is malformed\",row:h.length,index:z}),m++}}else if(x&&0===d.length&&i.substring(z,z+a)===x){if(-1===g)return w();z=g+s,g=i.indexOf(O,z),p=i.indexOf(S,z)}else if(-1!==p&&(p<g||-1===g))d.push(i.substring(z,p)),z=p+e,p=i.indexOf(S,z);else{if(-1===g)break;if(d.push(i.substring(z,g)),b(g+s),o&&(R(),M))return w();if(A&&h.length>=A)return w(!0)}return E();function k(e){h.push(e),f=z}function v(e){var t=0;return t=-1!==e&&(e=i.substring(m+1,e))&&\"\"===e.trim()?e.length:t}function E(e){return r||(void 0===e&&(e=i.substring(z)),d.push(e),z=n,k(d),o&&R()),w()}function b(e){z=e,k(d),d=[],g=i.indexOf(O,z)}function w(e){if(C.header&&!t&&h.length&&!L){var s=h[0],a=Object.create(null),o=new Set(s);let n=!1;for(let r=0;r<s.length;r++){let i=s[r];if(a[i=U(C.transformHeader)?C.transformHeader(i,r):i]){let e,t=a[i];for(;e=i+\"_\"+t,t++,o.has(e););o.add(e),s[r]=e,a[i]++,n=!0,(D=null===D?{}:D)[e]=i}else a[i]=1,s[r]=i;o.add(i)}n&&console.warn(\"Duplicate headers found and renamed.\"),L=!0}return{data:h,errors:u,meta:{delimiter:S,linebreak:O,aborted:M,truncated:!!e,cursor:f+(t||0),renamedHeaders:D}}}function R(){I(w()),h=[],u=[]}},this.abort=function(){M=!0},this.getCharIndex=function(){return z}}function g(e){var t=e.data,i=o[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){r=!0,_(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:m,resume:m};if(U(i.userStep)){for(var s=0;s<t.results.data.length&&(i.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},n),!r);s++);delete t.results}else U(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results)}t.finished&&!r&&_(t.workerId,t.results)}function _(e,t){var i=o[e];U(i.userComplete)&&i.userComplete(t),i.terminate(),delete o[e]}function m(){throw new Error(\"Not implemented.\")}function b(e){if(\"object\"!=typeof e||null===e)return e;var t,i=Array.isArray(e)?[]:{};for(t in e)i[t]=b(e[t]);return i}function y(e,t){return function(){e.apply(t,arguments)}}function U(e){return\"function\"==typeof e}return v.parse=function(e,t){var i=(t=t||{}).dynamicTyping||!1;U(i)&&(t.dynamicTypingFunction=i,i={});if(t.dynamicTyping=i,t.transform=!!U(t.transform)&&t.transform,!t.worker||!v.WORKERS_SUPPORTED)return i=null,v.NODE_STREAM_INPUT,\"string\"==typeof e?(e=(e=>65279!==e.charCodeAt(0)?e:e.slice(1))(e),i=new(t.download?f:c)(t)):!0===e.readable&&U(e.read)&&U(e.on)?i=new p(t):(n.File&&e instanceof File||e instanceof Object)&&(i=new l(t)),i.stream(e);(i=(()=>{var e;return!!v.WORKERS_SUPPORTED&&(e=(()=>{var e=n.URL||n.webkitURL||null,t=r.toString();return v.BLOB_URL||(v.BLOB_URL=e.createObjectURL(new Blob([\"var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; \",\"(\",t,\")();\"],{type:\"text/javascript\"})))})(),(e=new n.Worker(e)).onmessage=g,e.id=h++,o[e.id]=e)})()).userStep=t.step,i.userChunk=t.chunk,i.userComplete=t.complete,i.userError=t.error,t.step=U(t.step),t.chunk=U(t.chunk),t.complete=U(t.complete),t.error=U(t.error),delete t.worker,i.postMessage({input:e,config:t,workerId:i.id})},v.unparse=function(e,t){var n=!1,_=!0,m=\",\",y=\"\\r\\n\",s='\"',a=s+s,i=!1,r=null,o=!1,h=((()=>{if(\"object\"==typeof t){if(\"string\"!=typeof t.delimiter||v.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(m=t.delimiter),\"boolean\"!=typeof t.quotes&&\"function\"!=typeof t.quotes&&!Array.isArray(t.quotes)||(n=t.quotes),\"boolean\"!=typeof t.skipEmptyLines&&\"string\"!=typeof t.skipEmptyLines||(i=t.skipEmptyLines),\"string\"==typeof t.newline&&(y=t.newline),\"string\"==typeof t.quoteChar&&(s=t.quoteChar),\"boolean\"==typeof t.header&&(_=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error(\"Option columns is empty\");r=t.columns}void 0!==t.escapeChar&&(a=t.escapeChar+s),t.escapeFormulae instanceof RegExp?o=t.escapeFormulae:\"boolean\"==typeof t.escapeFormulae&&t.escapeFormulae&&(o=/^[=+\\-@\\t\\r].*$/)}})(),new RegExp(P(s),\"g\"));\"string\"==typeof e&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return u(null,e,i);if(\"object\"==typeof e[0])return u(r||Object.keys(e[0]),e,i)}else if(\"object\"==typeof e)return\"string\"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||r),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:\"object\"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||\"object\"==typeof e.data[0]||(e.data=[e.data])),u(e.fields||[],e.data||[],i);throw new Error(\"Unable to serialize unrecognized input\");function u(e,t,i){var r=\"\",n=(\"string\"==typeof e&&(e=JSON.parse(e)),\"string\"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),s=!Array.isArray(t[0]);if(n&&_){for(var a=0;a<e.length;a++)0<a&&(r+=m),r+=k(e[a],a);0<t.length&&(r+=y)}for(var o=0;o<t.length;o++){var h=(n?e:t[o]).length,u=!1,d=n?0===Object.keys(t[o]).length:0===t[o].length;if(i&&!n&&(u=\"greedy\"===i?\"\"===t[o].join(\"\").trim():1===t[o].length&&0===t[o][0].length),\"greedy\"===i&&n){for(var f=[],l=0;l<h;l++){var c=s?e[l]:l;f.push(t[o][c])}u=\"\"===f.join(\"\").trim()}if(!u){for(var p=0;p<h;p++){0<p&&!d&&(r+=m);var g=n&&s?e[p]:p;r+=k(t[o][g],p)}o<t.length-1&&(!i||0<h&&!d)&&(r+=y)}}return r}function k(e,t){var i,r;return null==e?\"\":e.constructor===Date?JSON.stringify(e).slice(1,25):(r=!1,o&&\"string\"==typeof e&&o.test(e)&&(e=\"'\"+e,r=!0),i=e.toString().replace(h,a),(r=r||!0===n||\"function\"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||((e,t)=>{for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1})(i,v.BAD_DELIMITERS)||-1<i.indexOf(m)||\" \"===i.charAt(0)||\" \"===i.charAt(i.length-1))?s+i+s:i)}},v.RECORD_SEP=String.fromCharCode(30),v.UNIT_SEP=String.fromCharCode(31),v.BYTE_ORDER_MARK=\"\\ufeff\",v.BAD_DELIMITERS=[\"\\r\",\"\\n\",'\"',v.BYTE_ORDER_MARK],v.WORKERS_SUPPORTED=!s&&!!n.Worker,v.NODE_STREAM_INPUT=1,v.LocalChunkSize=10485760,v.RemoteChunkSize=5242880,v.DefaultDelimiter=\",\",v.Parser=E,v.ParserHandle=i,v.NetworkStreamer=f,v.FileStreamer=l,v.StringStreamer=c,v.ReadableStreamStreamer=p,n.jQuery&&((d=n.jQuery).fn.parse=function(o){var i=o.config||{},h=[];return this.each(function(e){if(!(\"INPUT\"===d(this).prop(\"tagName\").toUpperCase()&&\"file\"===d(this).attr(\"type\").toLowerCase()&&n.FileReader)||!this.files||0===this.files.length)return!0;for(var t=0;t<this.files.length;t++)h.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},i)})}),e(),this;function e(){if(0===h.length)U(o.complete)&&o.complete();else{var e,t,i,r,n=h[0];if(U(o.before)){var s=o.before(n.file,n.inputElem);if(\"object\"==typeof s){if(\"abort\"===s.action)return e=\"AbortError\",t=n.file,i=n.inputElem,r=s.reason,void(U(o.error)&&o.error({name:e},t,i,r));if(\"skip\"===s.action)return void u();\"object\"==typeof s.config&&(n.instanceConfig=d.extend(n.instanceConfig,s.config))}else if(\"skip\"===s)return void u()}var a=n.instanceConfig.complete;n.instanceConfig.complete=function(e){U(a)&&a(e,n.file,n.inputElem),u()},v.parse(n.file,n.instanceConfig)}}function u(){h.splice(0,1),e()}}),a&&(n.onmessage=function(e){e=e.data;void 0===v.WORKER_ID&&e&&(v.WORKER_ID=e.workerId);\"string\"==typeof e.input?n.postMessage({workerId:v.WORKER_ID,results:v.parse(e.input,e.config),finished:!0}):(n.File&&e.input instanceof File||e.input instanceof Object)&&(e=v.parse(e.input,e.config))&&n.postMessage({workerId:v.WORKER_ID,results:e,finished:!0})}),(f.prototype=Object.create(u.prototype)).constructor=f,(l.prototype=Object.create(u.prototype)).constructor=l,(c.prototype=Object.create(c.prototype)).constructor=c,(p.prototype=Object.create(u.prototype)).constructor=p,v});",
  "vendor/papaparse/LICENSE": "The MIT License (MIT)\n\nCopyright (c) 2015 Matthew Holt\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
  "vendor/papaparse/package.json": "{\n  \"name\": \"papaparse\",\n  \"version\": \"5.5.3\",\n  \"description\": \"Fast and powerful CSV parser for the browser that supports web workers and streaming large files. Converts CSV to JSON and JSON to CSV.\",\n  \"keywords\": [\n    \"csv\",\n    \"parser\",\n    \"parse\",\n    \"parsing\",\n    \"delimited\",\n    \"text\",\n    \"data\",\n    \"auto-detect\",\n    \"comma\",\n    \"tab\",\n    \"pipe\",\n    \"file\",\n    \"filereader\",\n    \"stream\",\n    \"worker\",\n    \"workers\",\n    \"thread\",\n    \"threading\",\n    \"multi-threaded\",\n    \"jquery-plugin\"\n  ],\n  \"homepage\": \"https://www.papaparse.com/\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/mholt/PapaParse.git\"\n  },\n  \"author\": {\n    \"name\": \"Matthew Holt\",\n    \"url\": \"https://twitter.com/mholt6\"\n  },\n  \"license\": \"MIT\",\n  \"main\": \"papaparse.js\",\n  \"browser\": \"papaparse.min.js\",\n  \"devDependencies\": {\n    \"chai\": \"^4.2.0\",\n    \"connect\": \"^3.3.3\",\n    \"eslint\": \"^4.19.1\",\n    \"grunt\": \"^1.5.2\",\n    \"grunt-contrib-uglify\": \"^5.2.0\",\n    \"mocha\": \"^5.2.0\",\n    \"mocha-headless-chrome\": \"^4.0.0\",\n    \"open\": \"7.0.0\",\n    \"serve-static\": \"^1.7.1\"\n  },\n  \"scripts\": {\n    \"lint\": \"eslint --no-ignore papaparse.js Gruntfile.js .eslintrc.js 'tests/**/*.js'\",\n    \"build\": \"grunt build\",\n    \"test-browser\": \"node tests/test.js\",\n    \"test-mocha-headless-chrome\": \"node tests/test.js --mocha-headless-chrome\",\n    \"test-node\": \"mocha tests/node-tests.js tests/test-cases.js\",\n    \"test\": \"npm run lint && npm run test-node && npm run test-mocha-headless-chrome\"\n  }\n}\n",
  "vendor/fuse.js/dist/fuse.basic.min.js": "/**\n * Fuse.js v7.1.0 - Lightweight fuzzy-search (http://fusejs.io)\n *\n * Copyright (c) 2025 Kiro Risk (http://kiro.me)\n * All Rights Reserved. Apache Software License 2.0\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n */\nvar e,t;e=this,t=function(){\"use strict\";function e(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 t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},n(e)}function r(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function i(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}function o(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||function(e,t){if(e){if(\"string\"==typeof e)return c(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)?c(e,t):void 0}}(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.\")}()}function c(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}function s(e){var t=function(e,t){if(\"object\"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||\"default\");if(\"object\"!=typeof r)return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===t?String:Number)(e)}(e,\"string\");return\"symbol\"==typeof t?t:String(t)}function h(e){return Array.isArray?Array.isArray(e):\"[object Array]\"===p(e)}var l=1/0;function f(e){return null==e?\"\":function(e){if(\"string\"==typeof e)return e;var t=e+\"\";return\"0\"==t&&1/e==-l?\"-0\":t}(e)}function d(e){return\"string\"==typeof e}function v(e){return\"number\"==typeof e}function g(e){return!0===e||!1===e||function(e){return function(e){return\"object\"===n(e)}(e)&&null!==e}(e)&&\"[object Boolean]\"==p(e)}function A(e){return null!=e}function y(e){return!e.trim().length}function p(e){return null==e?void 0===e?\"[object Undefined]\":\"[object Null]\":Object.prototype.toString.call(e)}var m=function(e){return\"Missing \".concat(e,\" property in key\")},C=function(e){return\"Property 'weight' in key '\".concat(e,\"' must be a positive integer\")},F=Object.prototype.hasOwnProperty,E=function(){function e(t){var n=this;r(this,e),this._keys=[],this._keyMap={};var u=0;t.forEach((function(e){var t=B(e);n._keys.push(t),n._keyMap[t.id]=t,u+=t.weight})),this._keys.forEach((function(e){e.weight/=u}))}return i(e,[{key:\"get\",value:function(e){return this._keyMap[e]}},{key:\"keys\",value:function(){return this._keys}},{key:\"toJSON\",value:function(){return JSON.stringify(this._keys)}}]),e}();function B(e){var t=null,n=null,r=null,u=1,i=null;if(d(e)||h(e))r=e,t=D(e),n=b(e);else{if(!F.call(e,\"name\"))throw new Error(m(\"name\"));var o=e.name;if(r=o,F.call(e,\"weight\")&&(u=e.weight)<=0)throw new Error(C(o));t=D(o),n=b(o),i=e.getFn}return{path:t,id:n,weight:u,src:r,getFn:i}}function D(e){return h(e)?e:e.split(\".\")}function b(e){return h(e)?e.join(\".\"):e}var k={useExtendedSearch:!1,getFn:function(e,t){var n=[],r=!1;return function e(t,u,i){if(A(t))if(u[i]){var o=t[u[i]];if(!A(o))return;if(i===u.length-1&&(d(o)||v(o)||g(o)))n.push(f(o));else if(h(o)){r=!0;for(var a=0,c=o.length;a<c;a+=1)e(o[a],u,i+1)}else u.length&&e(o,u,i+1)}else n.push(t)}(e,d(t)?t.split(\".\"):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},M=t(t(t(t({},{isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,t){return e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1}}),{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1}),{location:0,threshold:.6,distance:100}),k),w=/[^ ]+/g,x=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getFn,u=void 0===n?M.getFn:n,i=t.fieldNormWeight,o=void 0===i?M.fieldNormWeight:i;r(this,e),this.norm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=new Map,r=Math.pow(10,t);return{get:function(t){var u=t.match(w).length;if(n.has(u))return n.get(u);var i=1/Math.pow(u,.5*e),o=parseFloat(Math.round(i*r)/r);return n.set(u,o),o},clear:function(){n.clear()}}}(o,3),this.getFn=u,this.isCreated=!1,this.setIndexRecords()}return i(e,[{key:\"setSources\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:\"setIndexRecords\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:\"setKeys\",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:\"create\",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,d(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:\"add\",value:function(e){var t=this.size();d(e)?this._addString(e,t):this._addObject(e,t)}},{key:\"removeAt\",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}},{key:\"getValueForItemAtKeyId\",value:function(e,t){return e[this._keysMap[t]]}},{key:\"size\",value:function(){return this.records.length}},{key:\"_addString\",value:function(e,t){if(A(e)&&!y(e)){var n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}}},{key:\"_addObject\",value:function(e,t){var n=this,r={i:t,$:{}};this.keys.forEach((function(t,u){var i=t.getFn?t.getFn(e):n.getFn(e,t.path);if(A(i))if(h(i)){for(var o=[],a=[{nestedArrIndex:-1,value:i}];a.length;){var c=a.pop(),s=c.nestedArrIndex,l=c.value;if(A(l))if(d(l)&&!y(l)){var f={v:l,i:s,n:n.norm.get(l)};o.push(f)}else h(l)&&l.forEach((function(e,t){a.push({nestedArrIndex:t,value:e})}))}r.$[u]=o}else if(d(i)&&!y(i)){var v={v:i,n:n.norm.get(i)};r.$[u]=v}})),this.records.push(r)}},{key:\"toJSON\",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function L(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,u=void 0===r?M.getFn:r,i=n.fieldNormWeight,o=void 0===i?M.fieldNormWeight:i,a=new x({getFn:u,fieldNormWeight:o});return a.setKeys(e.map(B)),a.setSources(t),a.create(),a}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,u=t.currentLocation,i=void 0===u?0:u,o=t.expectedLocation,a=void 0===o?0:o,c=t.distance,s=void 0===c?M.distance:c,h=t.ignoreLocation,l=void 0===h?M.ignoreLocation:h,f=r/e.length;if(l)return f;var d=Math.abs(a-i);return s?f+d/s:d?1:f}var _=32;function O(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=r.location,i=void 0===u?M.location:u,o=r.distance,a=void 0===o?M.distance:o,c=r.threshold,s=void 0===c?M.threshold:c,h=r.findAllMatches,l=void 0===h?M.findAllMatches:h,f=r.minMatchCharLength,d=void 0===f?M.minMatchCharLength:f,v=r.includeMatches,g=void 0===v?M.includeMatches:v,A=r.ignoreLocation,y=void 0===A?M.ignoreLocation:A;if(t.length>_)throw new Error(\"Pattern length exceeds max of \".concat(_,\".\"));for(var p,m=t.length,C=e.length,F=Math.max(0,Math.min(i,C)),E=s,B=F,D=d>1||g,b=D?Array(C):[];(p=e.indexOf(t,B))>-1;){var k=S(t,{currentLocation:p,expectedLocation:F,distance:a,ignoreLocation:y});if(E=Math.min(k,E),B=p+m,D)for(var w=0;w<m;)b[p+w]=1,w+=1}B=-1;for(var x=[],L=1,O=m+C,j=1<<m-1,I=0;I<m;I+=1){for(var N=0,P=O;N<P;)S(t,{errors:I,currentLocation:F+P,expectedLocation:F,distance:a,ignoreLocation:y})<=E?N=P:O=P,P=Math.floor((O-N)/2+N);O=P;var W=Math.max(1,F-P+1),z=l?C:Math.min(F+P,C)+m,T=Array(z+2);T[z+1]=(1<<I)-1;for(var $=z;$>=W;$-=1){var K=$-1,J=n[e.charAt(K)];if(D&&(b[K]=+!!J),T[$]=(T[$+1]<<1|1)&J,I&&(T[$]|=(x[$+1]|x[$])<<1|1|x[$+1]),T[$]&j&&(L=S(t,{errors:I,currentLocation:K,expectedLocation:F,distance:a,ignoreLocation:y}))<=E){if(E=L,(B=K)<=F)break;W=Math.max(1,2*F-B)}}if(S(t,{errors:I+1,currentLocation:F,expectedLocation:F,distance:a,ignoreLocation:y})>E)break;x=T}var R={isMatch:B>=0,score:Math.max(.001,L)};if(D){var U=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M.minMatchCharLength,n=[],r=-1,u=-1,i=0,o=e.length;i<o;i+=1){var a=e[i];a&&-1===r?r=i:a||-1===r||((u=i-1)-r+1>=t&&n.push([r,u]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}(b,d);U.length?g&&(R.indices=U):R.isMatch=!1}return R}function j(e){for(var t={},n=0,r=e.length;n<r;n+=1){var u=e.charAt(n);t[u]=(t[u]||0)|1<<r-n-1}return t}var I=String.prototype.normalize?function(e){return e.normalize(\"NFD\").replace(/[\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u08D3-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B62\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D82\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F\\u109A-\\u109D\\u135D-\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u1885\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F\\u1AB0-\\u1ABE\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF2-\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DF9\\u1DFB-\\u1DFF\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F]/g,\"\")}:function(e){return e},N=function(){function e(t){var n=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=u.location,o=void 0===i?M.location:i,a=u.threshold,c=void 0===a?M.threshold:a,s=u.distance,h=void 0===s?M.distance:s,l=u.includeMatches,f=void 0===l?M.includeMatches:l,d=u.findAllMatches,v=void 0===d?M.findAllMatches:d,g=u.minMatchCharLength,A=void 0===g?M.minMatchCharLength:g,y=u.isCaseSensitive,p=void 0===y?M.isCaseSensitive:y,m=u.ignoreDiacritics,C=void 0===m?M.ignoreDiacritics:m,F=u.ignoreLocation,E=void 0===F?M.ignoreLocation:F;if(r(this,e),this.options={location:o,threshold:c,distance:h,includeMatches:f,findAllMatches:v,minMatchCharLength:A,isCaseSensitive:p,ignoreDiacritics:C,ignoreLocation:E},t=p?t:t.toLowerCase(),t=C?I(t):t,this.pattern=t,this.chunks=[],this.pattern.length){var B=function(e,t){n.chunks.push({pattern:e,alphabet:j(e),startIndex:t})},D=this.pattern.length;if(D>_){for(var b=0,k=D%_,w=D-k;b<w;)B(this.pattern.substr(b,_),b),b+=_;if(k){var x=D-_;B(this.pattern.substr(x),x)}}else B(this.pattern,0)}}return i(e,[{key:\"searchIn\",value:function(e){var t=this.options,n=t.isCaseSensitive,r=t.ignoreDiacritics,u=t.includeMatches;if(e=n?e:e.toLowerCase(),e=r?I(e):e,this.pattern===e){var i={isMatch:!0,score:0};return u&&(i.indices=[[0,e.length-1]]),i}var o=this.options,c=o.location,s=o.distance,h=o.threshold,l=o.findAllMatches,f=o.minMatchCharLength,d=o.ignoreLocation,v=[],g=0,A=!1;this.chunks.forEach((function(t){var n=t.pattern,r=t.alphabet,i=t.startIndex,o=O(e,n,r,{location:c+i,distance:s,threshold:h,findAllMatches:l,minMatchCharLength:f,includeMatches:u,ignoreLocation:d}),y=o.isMatch,p=o.score,m=o.indices;y&&(A=!0),g+=p,y&&m&&(v=[].concat(a(v),a(m)))}));var y={isMatch:A,score:A?g/this.chunks.length:1};return A&&u&&(y.indices=v),y}}]),e}(),P=[];function W(e,t){for(var n=0,r=P.length;n<r;n+=1){var u=P[n];if(u.condition(e,t))return new u(e,t)}return new N(e,t)}function z(e,t){var n=e.matches;t.matches=[],A(n)&&n.forEach((function(e){if(A(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function T(e,t){t.score=e.score}var $=function(){function e(n){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(r(this,e),this.options=t(t({},M),u),this.options.useExtendedSearch)throw new Error(\"Extended search is not available\");this._keyStore=new E(this.options.keys),this.setCollection(n,i)}return i(e,[{key:\"setCollection\",value:function(e,t){if(this._docs=e,t&&!(t instanceof x))throw new Error(\"Incorrect 'index' type\");this._myIndex=t||L(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:\"add\",value:function(e){A(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:\"remove\",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n<r;n+=1){var u=this._docs[n];e(u,n)&&(this.removeAt(n),n-=1,r-=1,t.push(u))}return t}},{key:\"removeAt\",value:function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}},{key:\"getIndex\",value:function(){return this._myIndex}},{key:\"search\",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).limit,n=void 0===t?-1:t,r=this.options,u=r.includeMatches,i=r.includeScore,o=r.shouldSort,a=r.sortFn,c=r.ignoreFieldNorm,s=d(e)?d(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,t){var n=t.ignoreFieldNorm,r=void 0===n?M.ignoreFieldNorm:n;e.forEach((function(e){var t=1;e.matches.forEach((function(e){var n=e.key,u=e.norm,i=e.score,o=n?n.weight:null;t*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(r?1:u))})),e.score=t}))}(s,{ignoreFieldNorm:c}),o&&s.sort(a),v(n)&&n>-1&&(s=s.slice(0,n)),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,u=void 0===r?M.includeMatches:r,i=n.includeScore,o=void 0===i?M.includeScore:i,a=[];return u&&a.push(z),o&&a.push(T),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return a.length&&a.forEach((function(t){t(e,r)})),r}))}(s,this._docs,{includeMatches:u,includeScore:i})}},{key:\"_searchStringList\",value:function(e){var t=W(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,u=e.i,i=e.n;if(A(n)){var o=t.searchIn(n),a=o.isMatch,c=o.score,s=o.indices;a&&r.push({item:n,idx:u,matches:[{score:c,value:n,norm:i,indices:s}]})}})),r}},{key:\"_searchLogical\",value:function(e){throw new Error(\"Logical search is not available\")}},{key:\"_searchObjectList\",value:function(e){var t=this,n=W(e,this.options),r=this._myIndex,u=r.keys,i=r.records,o=[];return i.forEach((function(e){var r=e.$,i=e.i;if(A(r)){var c=[];u.forEach((function(e,u){c.push.apply(c,a(t._findMatches({key:e,value:r[u],searcher:n})))})),c.length&&o.push({idx:i,item:r,matches:c})}})),o}},{key:\"_findMatches\",value:function(e){var t=e.key,n=e.value,r=e.searcher;if(!A(n))return[];var u=[];if(h(n))n.forEach((function(e){var n=e.v,i=e.i,o=e.n;if(A(n)){var a=r.searchIn(n),c=a.isMatch,s=a.score,h=a.indices;c&&u.push({score:s,key:t,value:n,idx:i,norm:o,indices:h})}}));else{var i=n.v,o=n.n,a=r.searchIn(i),c=a.isMatch,s=a.score,l=a.indices;c&&u.push({score:s,key:t,value:i,norm:o,indices:l})}return u}}]),e}();return $.version=\"7.1.0\",$.createIndex=L,$.parseIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?M.getFn:n,u=t.fieldNormWeight,i=void 0===u?M.fieldNormWeight:u,o=e.keys,a=e.records,c=new x({getFn:r,fieldNormWeight:i});return c.setKeys(o),c.setIndexRecords(a),c},$.config=M,$},\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).Fuse=t();",
  "vendor/fuse.js/LICENSE": "                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"{}\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2017 Kirollos Risk\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n",
  "vendor/fuse.js/package.json": "{\n  \"name\": \"fuse.js\",\n  \"author\": {\n    \"name\": \"Kiro Risk\",\n    \"email\": \"kirollos@gmail.com\",\n    \"url\": \"http://kiro.me\"\n  },\n  \"type\": \"module\",\n  \"main\": \"./dist/fuse.cjs\",\n  \"module\": \"./dist/fuse.mjs\",\n  \"unpkg\": \"./dist/fuse.js\",\n  \"jsdelivr\": \"./dist/fuse.js\",\n  \"types\": \"./dist/fuse.d.ts\",\n  \"exports\": {\n    \".\": {\n      \"types\": \"./dist/fuse.d.ts\",\n      \"import\": \"./dist/fuse.mjs\",\n      \"require\": \"./dist/fuse.cjs\"\n    },\n    \"./min\": {\n      \"types\": \"./dist/fuse.d.ts\",\n      \"import\": \"./dist/fuse.min.mjs\",\n      \"require\": \"./dist/fuse.min.cjs\"\n    },\n    \"./basic\": {\n      \"types\": \"./dist/fuse.d.ts\",\n      \"import\": \"./dist/fuse.basic.mjs\",\n      \"require\": \"./dist/fuse.basic.cjs\"\n    },\n    \"./min-basic\": {\n      \"types\": \"./dist/fuse.d.ts\",\n      \"import\": \"./dist/fuse.basic.min.mjs\",\n      \"require\": \"./dist/fuse.basic.min.cjs\"\n    }\n  },\n  \"sideEffects\": false,\n  \"files\": [\n    \"dist\"\n  ],\n  \"version\": \"7.1.0\",\n  \"description\": \"Lightweight fuzzy-search\",\n  \"license\": \"Apache-2.0\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/krisk/Fuse.git\"\n  },\n  \"homepage\": \"http://fusejs.io\",\n  \"keywords\": [\n    \"fuzzy\",\n    \"search\",\n    \"bitap\"\n  ],\n  \"scripts\": {\n    \"dev\": \"rollup -w -c scripts/configs.cjs --environment TARGET:umd-dev-full\",\n    \"dev:cjs\": \"rollup -w -c scripts/configs.cjs --environment TARGET:commonjs-full\",\n    \"dev:esm\": \"rollup -w -c scripts/configs.cjs --environment TARGET:esm-dev-full\",\n    \"build\": \"rm -r dist && mkdir dist && node ./scripts/build.main.cjs\",\n    \"test\": \"vitest run\",\n    \"lint\": \"eslint src test\",\n    \"release\": \"./scripts/release.sh\",\n    \"docs:bump\": \"node ./scripts/bump-docs.cjs\",\n    \"docs:dev\": \"vuepress dev docs\",\n    \"docs:build\": \"vuepress build docs\",\n    \"docs:release\": \"./scripts/deploy-docs.sh\",\n    \"prepare\": \"husky install\"\n  },\n  \"standard-version\": {\n    \"scripts\": {\n      \"postbump\": \"npm run build && npm run lint && npm run test 2>/dev/null\",\n      \"precommit\": \"git add dist/*.js dist/*.cjs dist/*.mjs dist/*.d.ts\"\n    }\n  },\n  \"commitlint\": {\n    \"extends\": [\n      \"@commitlint/config-conventional\"\n    ]\n  },\n  \"devDependencies\": {\n    \"@babel/cli\": \"^7.20.7\",\n    \"@babel/core\": \"^7.20.12\",\n    \"@babel/eslint-parser\": \"^7.19.1\",\n    \"@babel/plugin-proposal-object-rest-spread\": \"7.20.7\",\n    \"@babel/plugin-syntax-import-assertions\": \"^7.22.5\",\n    \"@babel/preset-env\": \"7.20.2\",\n    \"@babel/preset-typescript\": \"7.18.6\",\n    \"@commitlint/cli\": \"^17.4.2\",\n    \"@commitlint/config-conventional\": \"^17.4.2\",\n    \"@monaco-editor/loader\": \"^1.3.2\",\n    \"@rollup/plugin-babel\": \"^6.0.3\",\n    \"@rollup/plugin-node-resolve\": \"^15.0.1\",\n    \"@rollup/plugin-replace\": \"^5.0.2\",\n    \"@sapphire/stopwatch\": \"^1.5.0\",\n    \"@sapphire/utilities\": \"^3.11.0\",\n    \"@snippetors/vuepress-plugin-tabs\": \"1.2.3\",\n    \"@vuepress/plugin-google-analytics\": \"2.0.0-beta.60\",\n    \"@vuepress/plugin-pwa\": \"2.0.0-beta.60\",\n    \"@vuepress/plugin-register-components\": \"2.0.0-beta.60\",\n    \"@vuepress/plugin-search\": \"2.0.0-beta.60\",\n    \"babel-loader\": \"^9.1.2\",\n    \"eslint\": \"8.32.0\",\n    \"eslint-config-prettier\": \"8.6.0\",\n    \"husky\": \"^8.0.3\",\n    \"monaco-editor\": \"^0.34.1\",\n    \"prettier\": \"2.8.3\",\n    \"replace-in-file\": \"^6.3.5\",\n    \"rollup\": \"^2.79.1\",\n    \"rollup-plugin-dts\": \"^5.3.0\",\n    \"standard-version\": \"^9.5.0\",\n    \"terser\": \"^5.16.1\",\n    \"typescript\": \"^4.9.4\",\n    \"vitest\": \"^0.28.3\",\n    \"vuepress\": \"2.0.0-beta.60\",\n    \"vuepress-plugin-google-adsense2\": \"1.0.2\"\n  },\n  \"engines\": {\n    \"node\": \">=10\"\n  }\n}\n",
  "vendor/fflate/umd/index.js": "!function(f){typeof module!='undefined'&&typeof exports=='object'?module.exports=f():typeof define!='undefined'&&define.amd?define(f):(typeof self!='undefined'?self:this).fflate=f()}(function(){var _e={};\"use strict\";_e.deflate=zt,_e.deflateSync=kt,_e.inflate=At,_e.inflateSync=Tt,_e.gzip=It,_e.compress=It,_e.gzipSync=Ut,_e.compressSync=Ut,_e.gunzip=Zt,_e.gunzipSync=qt,_e.zlib=Lt,_e.zlibSync=Bt,_e.unzlib=Nt,_e.unzlibSync=Pt,_e.gzip=It,_e.compress=It,_e.decompress=Jt,_e.decompressSync=Kt,_e.strToU8=nn,_e.strFromU8=rn,_e.zip=dn,_e.zipSync=gn,_e.unzip=zn,_e.unzipSync=kn;var t=(typeof module!='undefined'&&typeof exports=='object'?function(_f){\"use strict\";var e,r,t,n=\";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global\";try{e=require(\"worker_threads\"),r=e.Worker,t=e.isMarkedAsUntransferable}catch(e){}exports.default=r?function(e,o,a,s,u){var i=!1,l=new r(e+n,{eval:!0}).on(\"error\",function(e){return u(e,null)}).on(\"message\",function(e){return u(null,e)}).on(\"exit\",function(e){e&&!i&&u(Error(\"exited with code \"+e),null)});return t&&(s=s.filter(function(e){return!t(e)})),l.postMessage(a,s),l.terminate=function(){return i=!0,r.prototype.terminate.call(l)},l}:function(e,r,t,n,o){setImmediate(function(){return o(Error(\"async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)\"),null)});var a=function(){};return{terminate:a,postMessage:a}};return _f}:function(_f){\"use strict\";var e={};_f.default=function(r,t,s,a,n){var o=new Worker(e[t]||(e[t]=URL.createObjectURL(new Blob([r+';addEventListener(\"error\",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:\"text/javascript\"}))));return o.onmessage=function(e){var r=e.data,t=r.$e$;if(t){var s=Error(t[0]);s.code=t[1],s.stack=t[2],n(s,null)}else n(null,r)},o.postMessage(s,a),o};return _f})({}),n=Uint8Array,r=Uint16Array,i=Int32Array,e=new n([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),o=new n([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,n){for(var e=new r(31),o=0;o<31;++o)e[o]=n+=1<<t[o-1];var s=new i(e[30]);for(o=1;o<30;++o)for(var a=e[o];a<e[o+1];++a)s[a]=a-e[o]<<5|o;return{b:e,r:s}},u=a(e,2),h=u.b,f=u.r;h[28]=258,f[258]=28;for(var c=a(o,0),l=c.b,p=c.r,v=new r(32768),d=0;d<32768;++d){var g=(43690&d)>>1|(21845&d)<<1;v[d]=((65280&(g=(61680&(g=(52428&g)>>2|(13107&g)<<2))>>4|(3855&g)<<4))>>8|(255&g)<<8)>>1}var y=function(t,n,i){for(var e=t.length,o=0,s=new r(n);o<e;++o)t[o]&&++s[t[o]-1];var a,u=new r(n);for(o=1;o<n;++o)u[o]=u[o-1]+s[o-1]<<1;if(i){a=new r(1<<n);var h=15-n;for(o=0;o<e;++o)if(t[o])for(var f=o<<4|t[o],c=n-t[o],l=u[t[o]-1]++<<c,p=l|(1<<c)-1;l<=p;++l)a[v[l]>>h]=f}else for(a=new r(e),o=0;o<e;++o)t[o]&&(a[o]=v[u[t[o]-1]++]>>15-t[o]);return a},m=new n(288);for(d=0;d<144;++d)m[d]=8;for(d=144;d<256;++d)m[d]=9;for(d=256;d<280;++d)m[d]=7;for(d=280;d<288;++d)m[d]=8;var b=new n(32);for(d=0;d<32;++d)b[d]=5;var w=y(m,9,0),x=y(m,9,1),z=y(b,5,0),k=y(b,5,1),M=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},S=function(t,n,r){var i=n/8|0;return(t[i]|t[i+1]<<8)>>(7&n)&r},A=function(t,n){var r=n/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&n)},T=function(t){return(t+7)/8|0},D=function(t,r,i){return(null==r||r<0)&&(r=0),(null==i||i>t.length)&&(i=t.length),new n(t.subarray(r,i))};_e.FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14};var C=[\"unexpected EOF\",\"invalid block type\",\"invalid length/literal\",\"invalid distance\",\"stream finished\",\"no stream handler\",,\"no callback\",\"invalid UTF-8 data\",\"extra field too long\",\"date not in range 1980-2099\",\"filename too long\",\"stream finishing\",\"invalid zip data\"],I=function(t,n,r){var i=Error(n||C[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,I),!r)throw i;return i},U=function(t,r,i,a){var u=t.length,f=a?a.length:0;if(!u||r.f&&!r.l)return i||new n(0);var c=!i,p=c||2!=r.i,v=r.i;c&&(i=new n(3*u));var d=function(t){var r=i.length;if(t>r){var e=new n(Math.max(2*r,t));e.set(i),i=e}},g=r.f||0,m=r.p||0,b=r.b||0,w=r.l,z=r.d,C=r.m,U=r.n,F=8*u;do{if(!w){g=S(t,m,1);var E=S(t,m+1,3);if(m+=3,!E){var Z=t[(Y=T(m)+4)-4]|t[Y-3]<<8,q=Y+Z;if(q>u){v&&I(0);break}p&&d(b+Z),i.set(t.subarray(Y,q),b),r.b=b+=Z,r.p=m=8*q,r.f=g;continue}if(1==E)w=x,z=k,C=9,U=5;else if(2==E){var O=S(t,m,31)+257,G=S(t,m+10,15)+4,L=O+S(t,m+5,31)+1;m+=14;for(var B=new n(L),H=new n(19),j=0;j<G;++j)H[s[j]]=S(t,m+3*j,7);m+=3*G;var N=M(H),P=(1<<N)-1,V=y(H,N,1);for(j=0;j<L;){var Y,J=V[S(t,m,P)];if(m+=15&J,(Y=J>>4)<16)B[j++]=Y;else{var K=0,Q=0;for(16==Y?(Q=3+S(t,m,3),m+=2,K=B[j-1]):17==Y?(Q=3+S(t,m,7),m+=3):18==Y&&(Q=11+S(t,m,127),m+=7);Q--;)B[j++]=K}}var R=B.subarray(0,O),W=B.subarray(O);C=M(R),U=M(W),w=y(R,C,1),z=y(W,U,1)}else I(1);if(m>F){v&&I(0);break}}p&&d(b+131072);for(var X=(1<<C)-1,$=(1<<U)-1,_=m;;_=m){var tt=(K=w[A(t,m)&X])>>4;if((m+=15&K)>F){v&&I(0);break}if(K||I(2),tt<256)i[b++]=tt;else{if(256==tt){_=m,w=null;break}var nt=tt-254;tt>264&&(nt=S(t,m,(1<<(et=e[j=tt-257]))-1)+h[j],m+=et);var rt=z[A(t,m)&$],it=rt>>4;if(rt||I(3),m+=15&rt,W=l[it],it>3){var et=o[it];W+=A(t,m)&(1<<et)-1,m+=et}if(m>F){v&&I(0);break}p&&d(b+131072);var ot=b+nt;if(b<W){var st=f-W,at=Math.min(W,ot);for(st+b<0&&I(3);b<at;++b)i[b]=a[st+b]}for(;b<ot;++b)i[b]=i[b-W]}}r.l=w,r.p=_,r.b=b,r.f=g,w&&(g=1,r.m=C,r.d=z,r.n=U)}while(!g);return b!=i.length&&c?D(i,0,b):i.subarray(0,b)},F=function(t,n,r){var i=n/8|0;t[i]|=r<<=7&n,t[i+1]|=r>>8},E=function(t,n,r){var i=n/8|0;t[i]|=r<<=7&n,t[i+1]|=r>>8,t[i+2]|=r>>16},Z=function(t,i){for(var e=[],o=0;o<t.length;++o)t[o]&&e.push({s:o,f:t[o]});var s=e.length,a=e.slice();if(!s)return{t:j,l:0};if(1==s){var u=new n(e[0].s+1);return u[e[0].s]=1,{t:u,l:1}}e.sort(function(t,n){return t.f-n.f}),e.push({s:-1,f:25001});var h=e[0],f=e[1],c=0,l=1,p=2;for(e[0]={s:-1,f:h.f+f.f,l:h,r:f};l!=s-1;)h=e[e[c].f<e[p].f?c++:p++],f=e[c!=l&&e[c].f<e[p].f?c++:p++],e[l++]={s:-1,f:h.f+f.f,l:h,r:f};var v=a[0].s;for(o=1;o<s;++o)a[o].s>v&&(v=a[o].s);var d=new r(v+1),g=q(e[l-1],d,0);if(g>i){o=0;var y=0,m=g-i,b=1<<m;for(a.sort(function(t,n){return d[n.s]-d[t.s]||t.f-n.f});o<s;++o){var w=a[o].s;if(!(d[w]>i))break;y+=b-(1<<g-d[w]),d[w]=i}for(y>>=m;y>0;){var x=a[o].s;d[x]<i?y-=1<<i-d[x]++-1:++o}for(;o>=0&&y;--o){var z=a[o].s;d[z]==i&&(--d[z],++y)}g=i}return{t:new n(d),l:g}},q=function(t,n,r){return-1==t.s?Math.max(q(t.l,n,r+1),q(t.r,n,r+1)):n[t.s]=r},O=function(t){for(var n=t.length;n&&!t[--n];);for(var i=new r(++n),e=0,o=t[0],s=1,a=function(t){i[e++]=t},u=1;u<=n;++u)if(t[u]==o&&u!=n)++s;else{if(!o&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(o),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(o);s=1,o=t[u]}return{c:i.subarray(0,e),n:n}},G=function(t,n){for(var r=0,i=0;i<n.length;++i)r+=t[i]*n[i];return r},L=function(t,n,r){var i=r.length,e=T(n+2);t[e]=255&i,t[e+1]=i>>8,t[e+2]=255^t[e],t[e+3]=255^t[e+1];for(var o=0;o<i;++o)t[e+o+4]=r[o];return 8*(e+4+i)},B=function(t,n,i,a,u,h,f,c,l,p,v){F(n,v++,i),++u[256];for(var d=Z(u,15),g=d.t,x=d.l,k=Z(h,15),M=k.t,S=k.l,A=O(g),T=A.c,D=A.n,C=O(M),I=C.c,U=C.n,q=new r(19),B=0;B<T.length;++B)++q[31&T[B]];for(B=0;B<I.length;++B)++q[31&I[B]];for(var H=Z(q,7),j=H.t,N=H.l,P=19;P>4&&!j[s[P-1]];--P);var V,Y,J,K,Q=p+5<<3,R=G(u,m)+G(h,b)+f,W=G(u,g)+G(h,M)+f+14+3*P+G(q,j)+2*q[16]+3*q[17]+7*q[18];if(l>=0&&Q<=R&&Q<=W)return L(n,v,t.subarray(l,l+p));if(F(n,v,1+(W<R)),v+=2,W<R){V=y(g,x,0),Y=g,J=y(M,S,0),K=M;var X=y(j,N,0);for(F(n,v,D-257),F(n,v+5,U-1),F(n,v+10,P-4),v+=14,B=0;B<P;++B)F(n,v+3*B,j[s[B]]);v+=3*P;for(var $=[T,I],_=0;_<2;++_){var tt=$[_];for(B=0;B<tt.length;++B)F(n,v,X[rt=31&tt[B]]),v+=j[rt],rt>15&&(F(n,v,tt[B]>>5&127),v+=tt[B]>>12)}}else V=w,Y=m,J=z,K=b;for(B=0;B<c;++B){var nt=a[B];if(nt>255){var rt;E(n,v,V[257+(rt=nt>>18&31)]),v+=Y[rt+257],rt>7&&(F(n,v,nt>>23&31),v+=e[rt]);var it=31&nt;E(n,v,J[it]),v+=K[it],it>3&&(E(n,v,nt>>5&8191),v+=o[it])}else E(n,v,V[nt]),v+=Y[nt]}return E(n,v,V[256]),v+Y[256]},H=new i([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),j=new n(0),N=function(t,s,a,u,h,c){var l=c.z||t.length,v=new n(u+l+5*(1+Math.ceil(l/7e3))+h),d=v.subarray(u,v.length-h),g=c.l,y=7&(c.r||0);if(s){y&&(d[0]=c.r>>3);for(var m=H[s-1],b=m>>13,w=8191&m,x=(1<<a)-1,z=c.p||new r(32768),k=c.h||new r(x+1),M=Math.ceil(a/3),S=2*M,A=function(n){return(t[n]^t[n+1]<<M^t[n+2]<<S)&x},C=new i(25e3),I=new r(288),U=new r(32),F=0,E=0,Z=c.i||0,q=0,O=c.w||0,G=0;Z+2<l;++Z){var j=A(Z),N=32767&Z,P=k[j];if(z[N]=P,k[j]=N,O<=Z){var V=l-Z;if((F>7e3||q>24576)&&(V>423||!g)){y=B(t,d,0,C,I,U,E,q,G,Z-G,y),q=F=E=0,G=Z;for(var Y=0;Y<286;++Y)I[Y]=0;for(Y=0;Y<30;++Y)U[Y]=0}var J=2,K=0,Q=w,R=N-P&32767;if(V>2&&j==A(Z-R))for(var W=Math.min(b,V)-1,X=Math.min(32767,Z),$=Math.min(258,V);R<=X&&--Q&&N!=P;){if(t[Z+J]==t[Z+J-R]){for(var _=0;_<$&&t[Z+_]==t[Z+_-R];++_);if(_>J){if(J=_,K=R,_>W)break;var tt=Math.min(R,_-2),nt=0;for(Y=0;Y<tt;++Y){var rt=Z-R+Y&32767,it=rt-z[rt]&32767;it>nt&&(nt=it,P=rt)}}}R+=(N=P)-(P=z[N])&32767}if(K){C[q++]=268435456|f[J]<<18|p[K];var et=31&f[J],ot=31&p[K];E+=e[et]+o[ot],++I[257+et],++U[ot],O=Z+J,++F}else C[q++]=t[Z],++I[t[Z]]}}for(Z=Math.max(Z,O);Z<l;++Z)C[q++]=t[Z],++I[t[Z]];y=B(t,d,g,C,I,U,E,q,G,Z-G,y),g||(c.r=7&y|d[y/8|0]<<3,y-=7,c.h=k,c.p=z,c.i=Z,c.w=O)}else{for(Z=c.w||0;Z<l+g;Z+=65535){var st=Z+65535;st>=l&&(d[y/8|0]=g,st=l),y=L(d,y+1,t.subarray(Z,st))}c.i=l}return D(v,0,u+T(y)+h)},P=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,i=9;--i;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),V=function(){var t=-1;return{p:function(n){for(var r=t,i=0;i<n.length;++i)r=P[255&r^n[i]]^r>>>8;t=r},d:function(){return~t}}},Y=function(){var t=1,n=0;return{p:function(r){for(var i=t,e=n,o=0|r.length,s=0;s!=o;){for(var a=Math.min(s+2655,o);s<a;++s)e+=i+=r[s];i=(65535&i)+15*(i>>16),e=(65535&e)+15*(e>>16)}t=i,n=e},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},J=function(t,r,i,e,o){if(!o&&(o={l:1},r.dictionary)){var s=r.dictionary.subarray(-32768),a=new n(s.length+t.length);a.set(s),a.set(t,s.length),t=a,o.w=s.length}return N(t,null==r.level?6:r.level,null==r.mem?o.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+r.mem,i,e,o)},K=function(t,n){var r={};for(var i in t)r[i]=t[i];for(var i in n)r[i]=n[i];return r},Q=function(t,n,r){for(var i=t(),e=\"\"+t,o=e.slice(e.indexOf(\"[\")+1,e.lastIndexOf(\"]\")).replace(/\\s+/g,\"\").split(\",\"),s=0;s<i.length;++s){var a=i[s],u=o[s];if(\"function\"==typeof a){n+=\";\"+u+\"=\";var h=\"\"+a;if(a.prototype)if(-1!=h.indexOf(\"[native code]\")){var f=h.indexOf(\" \",8)+1;n+=h.slice(f,h.indexOf(\"(\",f))}else for(var c in n+=h,a.prototype)n+=\";\"+u+\".prototype.\"+c+\"=\"+a.prototype[c];else n+=h}else r[u]=a}return n},R=[],W=function(t){var n=[];for(var r in t)t[r].buffer&&n.push((t[r]=new t[r].constructor(t[r])).buffer);return n},X=function(n,r,i,e){if(!R[i]){for(var o=\"\",s={},a=n.length-1,u=0;u<a;++u)o=Q(n[u],o,s);R[i]={c:Q(n[a],o,s),e:s}}var h=K({},R[i].e);return(0,t.default)(R[i].c+\";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage=\"+r+\"}\",i,h,W(h),e)},$=function(){return[n,r,i,e,o,s,h,l,x,k,v,C,y,M,S,A,T,D,I,U,Tt,et,ot]},_=function(){return[n,r,i,e,o,s,f,p,w,m,z,b,v,H,j,y,F,E,Z,q,O,G,L,B,T,D,N,J,kt,et]},tt=function(){return[pt,gt,lt,V,P]},nt=function(){return[vt,dt]},rt=function(){return[yt,lt,Y]},it=function(){return[mt]},et=function(t){return postMessage(t,[t.buffer])},ot=function(t){return t&&{out:t.size&&new n(t.size),dictionary:t.dictionary}},st=function(t,n,r,i,e,o){var s=X(r,i,e,function(t,n){s.terminate(),o(t,n)});return s.postMessage([t,n],n.consume?[t.buffer]:[]),function(){s.terminate()}},at=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){n.data[0]?(t.push(n.data[0],n.data[1]),postMessage([n.data[0].length])):t.flush(n.data[1])}},ut=function(t,n,r,i,e,o,s){var a,u=X(t,i,e,function(t,r){t?(u.terminate(),n.ondata.call(n,t)):Array.isArray(r)?1==r.length?(n.queuedSize-=r[0],n.ondrain&&n.ondrain(r[0])):(r[1]&&u.terminate(),n.ondata.call(n,t,r[0],r[1])):s(r)});u.postMessage(r),n.queuedSize=0,n.push=function(t,r){n.ondata||I(5),a&&n.ondata(I(4,0,1),null,!!r),n.queuedSize+=t.length,u.postMessage([t,a=r],t.buffer instanceof ArrayBuffer?[t.buffer]:[])},n.terminate=function(){u.terminate()},o&&(n.flush=function(t){u.postMessage([0,t])})},ht=function(t,n){return t[n]|t[n+1]<<8},ft=function(t,n){return(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0},ct=function(t,n){return ft(t,n)+4294967296*ft(t,n+4)},lt=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},pt=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&lt(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}},vt=function(t){31==t[0]&&139==t[1]&&8==t[2]||I(6,\"invalid gzip data\");var n=t[3],r=10;4&n&&(r+=2+(t[10]|t[11]<<8));for(var i=(n>>3&1)+(n>>4&1);i>0;i-=!t[r++]);return r+(2&n)},dt=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0},gt=function(t){return 10+(t.filename?t.filename.length+1:0)},yt=function(t,n){var r=n.level,i=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=i<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var e=Y();e.p(n.dictionary),lt(t,2,e.d())}},mt=function(t,n){return(8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31)&&I(6,\"invalid zlib data\"),(t[1]>>5&1)==+!n&&I(6,\"invalid zlib data: \"+(32&t[1]?\"need\":\"unexpected\")+\" dictionary\"),2+(t[1]>>3&4)};function bt(t,n){return\"function\"==typeof t&&(n=t,t={}),this.ondata=n,t}var wt=function(){function t(t,r){if(\"function\"==typeof t&&(r=t,t={}),this.ondata=r,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new n(98304),this.o.dictionary){var i=this.o.dictionary.subarray(-32768);this.b.set(i,32768-i.length),this.s.i=32768-i.length}}return t.prototype.p=function(t,n){this.ondata(J(t,this.o,0,0,this.s),n)},t.prototype.push=function(t,r){this.ondata||I(5),this.s.l&&I(4);var i=t.length+this.s.z;if(i>this.b.length){if(i>2*this.b.length-32768){var e=new n(-32768&i);e.set(this.b.subarray(0,this.s.z)),this.b=e}var o=this.b.length-this.s.z;this.b.set(t.subarray(0,o),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(o),32768),this.s.z=t.length-o+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2),r&&(this.s=this.o={},this.b=j)},t.prototype.flush=function(t){if(this.ondata||I(5),this.s.l&&I(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,t){var r=new n(6);r[0]=this.s.r>>3;var i=L(r,this.s.r,j);this.s.r=0,this.ondata(r.subarray(0,i>>3),!1)}},t}();_e.Deflate=wt;var xt=function(){return function(t,n){ut([_,function(){return[at,wt]}],this,bt.call(this,t,n),function(t){var n=new wt(t.data);onmessage=at(n)},6,1)}}();function zt(t,n,r){return r||(r=n,n={}),\"function\"!=typeof r&&I(7),st(t,n,[_],function(t){return et(kt(t.data[0],t.data[1]))},0,r)}function kt(t,n){return J(t,n||{},0,0)}_e.AsyncDeflate=xt;var Mt=function(){function t(t,r){\"function\"==typeof t&&(r=t,t={}),this.ondata=r;var i=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:i?i.length:0},this.o=new n(32768),this.p=new n(0),i&&this.o.set(i)}return t.prototype.e=function(t){if(this.ondata||I(5),this.d&&I(4),this.p.length){if(t.length){var r=new n(this.p.length+t.length);r.set(this.p),r.set(t,this.p.length),this.p=r}}else this.p=t},t.prototype.c=function(t){this.s.i=+(this.d=t||!1);var n=this.s.b,r=U(this.p,this.s,this.o);this.ondata(D(r,n,this.s.b),this.d),this.o=D(r,this.s.b-32768),this.s.b=this.o.length,this.p=D(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t}();_e.Inflate=Mt;var St=function(){return function(t,n){ut([$,function(){return[at,Mt]}],this,bt.call(this,t,n),function(t){var n=new Mt(t.data);onmessage=at(n)},7,0)}}();function At(t,n,r){return r||(r=n,n={}),\"function\"!=typeof r&&I(7),st(t,n,[$],function(t){return et(Tt(t.data[0],ot(t.data[1])))},1,r)}function Tt(t,n){return U(t,{i:2},n&&n.out,n&&n.dictionary)}_e.AsyncInflate=St;var Dt=function(){function t(t,n){this.c=V(),this.l=0,this.v=1,wt.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),this.l+=t.length,wt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=J(t,this.o,this.v&&gt(this.o),n&&8,this.s);this.v&&(pt(r,this.o),this.v=0),n&&(lt(r,r.length-8,this.c.d()),lt(r,r.length-4,this.l)),this.ondata(r,n)},t.prototype.flush=function(t){wt.prototype.flush.call(this,t)},t}();_e.Gzip=Dt,_e.Compress=Dt;var Ct=function(){return function(t,n){ut([_,tt,function(){return[at,wt,Dt]}],this,bt.call(this,t,n),function(t){var n=new Dt(t.data);onmessage=at(n)},8,1)}}();function It(t,n,r){return r||(r=n,n={}),\"function\"!=typeof r&&I(7),st(t,n,[_,tt,function(){return[Ut]}],function(t){return et(Ut(t.data[0],t.data[1]))},2,r)}function Ut(t,n){n||(n={});var r=V(),i=t.length;r.p(t);var e=J(t,n,gt(n),8),o=e.length;return pt(e,n),lt(e,o-8,r.d()),lt(e,o-4,i),e}_e.AsyncGzip=Ct,_e.AsyncCompress=Ct;var Ft=function(){function t(t,n){this.v=1,this.r=0,Mt.call(this,t,n)}return t.prototype.push=function(t,r){if(Mt.prototype.e.call(this,t),this.r+=t.length,this.v){var i=this.p.subarray(this.v-1),e=i.length>3?vt(i):4;if(e>i.length){if(!r)return}else this.v>1&&this.onmember&&this.onmember(this.r-i.length);this.p=i.subarray(e),this.v=0}Mt.prototype.c.call(this,0),this.s.f&&!this.s.l?(this.v=T(this.s.p)+9,this.s={i:0},this.o=new n(0),this.push(new n(0),r)):r&&Mt.prototype.c.call(this,r)},t}();_e.Gunzip=Ft;var Et=function(){return function(t,n){var r=this;ut([$,nt,function(){return[at,Mt,Ft]}],this,bt.call(this,t,n),function(t){var n=new Ft(t.data);n.onmember=function(t){return postMessage(t)},onmessage=at(n)},9,0,function(t){return r.onmember&&r.onmember(t)})}}();function Zt(t,n,r){return r||(r=n,n={}),\"function\"!=typeof r&&I(7),st(t,n,[$,nt,function(){return[qt]}],function(t){return et(qt(t.data[0],t.data[1]))},3,r)}function qt(t,r){var i=vt(t);return i+8>t.length&&I(6,\"invalid gzip data\"),U(t.subarray(i,-8),{i:2},r&&r.out||new n(dt(t)),r&&r.dictionary)}_e.AsyncGunzip=Et;var Ot=function(){function t(t,n){this.c=Y(),this.v=1,wt.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),wt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=J(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(yt(r,this.o),this.v=0),n&&lt(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(t){wt.prototype.flush.call(this,t)},t}();_e.Zlib=Ot;var Gt=function(){return function(t,n){ut([_,rt,function(){return[at,wt,Ot]}],this,bt.call(this,t,n),function(t){var n=new Ot(t.data);onmessage=at(n)},10,1)}}();function Lt(t,n,r){return r||(r=n,n={}),\"function\"!=typeof r&&I(7),st(t,n,[_,rt,function(){return[Bt]}],function(t){return et(Bt(t.data[0],t.data[1]))},4,r)}function Bt(t,n){n||(n={});var r=Y();r.p(t);var i=J(t,n,n.dictionary?6:2,4);return yt(i,n),lt(i,i.length-4,r.d()),i}_e.AsyncZlib=Gt;var Ht=function(){function t(t,n){Mt.call(this,t,n),this.v=t&&t.dictionary?2:1}return t.prototype.push=function(t,n){if(Mt.prototype.e.call(this,t),this.v){if(this.p.length<6&&!n)return;this.p=this.p.subarray(mt(this.p,this.v-1)),this.v=0}n&&(this.p.length<4&&I(6,\"invalid zlib data\"),this.p=this.p.subarray(0,-4)),Mt.prototype.c.call(this,n)},t}();_e.Unzlib=Ht;var jt=function(){return function(t,n){ut([$,it,function(){return[at,Mt,Ht]}],this,bt.call(this,t,n),function(t){var n=new Ht(t.data);onmessage=at(n)},11,0)}}();function Nt(t,n,r){return r||(r=n,n={}),\"function\"!=typeof r&&I(7),st(t,n,[$,it,function(){return[Pt]}],function(t){return et(Pt(t.data[0],ot(t.data[1])))},5,r)}function Pt(t,n){return U(t.subarray(mt(t,n&&n.dictionary),-4),{i:2},n&&n.out,n&&n.dictionary)}_e.AsyncUnzlib=jt;var Vt=function(){function t(t,n){this.o=bt.call(this,t,n)||{},this.G=Ft,this.I=Mt,this.Z=Ht}return t.prototype.i=function(){var t=this;this.s.ondata=function(n,r){t.ondata(n,r)}},t.prototype.push=function(t,r){if(this.ondata||I(5),this.s)this.s.push(t,r);else{if(this.p&&this.p.length){var i=new n(this.p.length+t.length);i.set(this.p),i.set(t,this.p.length)}else this.p=t;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,r),this.p=null)}},t}();_e.Decompress=Vt;var Yt=function(){function t(t,n){Vt.call(this,t,n),this.queuedSize=0,this.G=Et,this.I=St,this.Z=jt}return t.prototype.i=function(){var t=this;this.s.ondata=function(n,r,i){t.ondata(n,r,i)},this.s.ondrain=function(n){t.queuedSize-=n,t.ondrain&&t.ondrain(n)}},t.prototype.push=function(t,n){this.queuedSize+=t.length,Vt.prototype.push.call(this,t,n)},t}();function Jt(t,n,r){return r||(r=n,n={}),\"function\"!=typeof r&&I(7),31==t[0]&&139==t[1]&&8==t[2]?Zt(t,n,r):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?At(t,n,r):Nt(t,n,r)}function Kt(t,n){return 31==t[0]&&139==t[1]&&8==t[2]?qt(t,n):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Tt(t,n):Pt(t,n)}_e.AsyncDecompress=Yt;var Qt=function(t,r,i,e){for(var o in t){var s=t[o],a=r+o,u=e;Array.isArray(s)&&(u=K(e,s[1]),s=s[0]),ArrayBuffer.isView(s)?i[a]=[s,u]:(i[a+=\"/\"]=[new n(0),u],Qt(s,a,i,e))}},Rt=\"undefined\"!=typeof TextEncoder&&new TextEncoder,Wt=\"undefined\"!=typeof TextDecoder&&new TextDecoder,Xt=0;try{Wt.decode(j,{stream:!0}),Xt=1}catch(t){}var $t=function(t){for(var n=\"\",r=0;;){var i=t[r++],e=(i>127)+(i>223)+(i>239);if(r+e>t.length)return{s:n,r:D(t,r-1)};e?3==e?(i=((15&i)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i)):n+=String.fromCharCode(1&e?(31&i)<<6|63&t[r++]:(15&i)<<12|(63&t[r++])<<6|63&t[r++]):n+=String.fromCharCode(i)}},_t=function(){function t(t){this.ondata=t,Xt?this.t=new TextDecoder:this.p=j}return t.prototype.push=function(t,r){if(this.ondata||I(5),r=!!r,this.t)return this.ondata(this.t.decode(t,{stream:!0}),r),void(r&&(this.t.decode().length&&I(8),this.t=null));this.p||I(4);var i=new n(this.p.length+t.length);i.set(this.p),i.set(t,this.p.length);var e=$t(i),o=e.s,s=e.r;r?(s.length&&I(8),this.p=null):this.p=s,this.ondata(o,r)},t}();_e.DecodeUTF8=_t;var tn=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||I(5),this.d&&I(4),this.ondata(nn(t),this.d=n||!1)},t}();function nn(t,r){if(r){for(var i=new n(t.length),e=0;e<t.length;++e)i[e]=t.charCodeAt(e);return i}if(Rt)return Rt.encode(t);var o=t.length,s=new n(t.length+(t.length>>1)),a=0,u=function(t){s[a++]=t};for(e=0;e<o;++e){if(a+5>s.length){var h=new n(a+8+(o-e<<1));h.set(s),s=h}var f=t.charCodeAt(e);f<128||r?u(f):f<2048?(u(192|f>>6),u(128|63&f)):f>55295&&f<57344?(u(240|(f=65536+(1047552&f)|1023&t.charCodeAt(++e))>>18),u(128|f>>12&63),u(128|f>>6&63),u(128|63&f)):(u(224|f>>12),u(128|f>>6&63),u(128|63&f))}return D(s,0,a)}function rn(t,n){if(n){for(var r=\"\",i=0;i<t.length;i+=16384)r+=String.fromCharCode.apply(null,t.subarray(i,i+16384));return r}if(Wt)return Wt.decode(t);var e=$t(t),o=e.s;return(r=e.r).length&&I(8),o}_e.EncodeUTF8=tn;var en=function(t){return 1==t?3:t<6?2:9==t?1:0},on=function(t,n){return n+30+ht(t,n+26)+ht(t,n+28)},sn=function(t,n,r){var i=ht(t,n+28),e=ht(t,n+30),o=rn(t.subarray(n+46,n+46+i),!(2048&ht(t,n+8))),s=n+46+i,a=an(t,s,e,r,ft(t,n+20),ft(t,n+24),ft(t,n+42)),u=a[0],h=a[1],f=a[2];return[ht(t,n+10),u,h,o,s+e+ht(t,n+32),f]},an=function(t,n,r,i,e,o,s){var a=4294967295==e,u=4294967295==o,h=4294967295==s,f=n+r;if(i&&a+u+h){for(;n+4<f;n+=4+ht(t,n+2))if(1==ht(t,n))return[a?ct(t,n+4+8*u):e,u?ct(t,n+4):o,h?ct(t,n+4+8*(u+a)):s,1];i<2&&I(13)}return[e,o,s,0]},un=function(t){var n=0;if(t)for(var r in t){var i=t[r].length;i>65535&&I(9),n+=i+4}return n},hn=function(t,n,r,i,e,o,s,a){var u=i.length,h=r.extra,f=a&&a.length,c=un(h);lt(t,n,null!=s?33639248:67324752),n+=4,null!=s&&(t[n++]=20,t[n++]=r.os),t[n]=20,n+=2,t[n++]=r.flag<<1|(o<0&&8),t[n++]=e&&8,t[n++]=255&r.compression,t[n++]=r.compression>>8;var l=new Date(null==r.mtime?Date.now():r.mtime),p=l.getFullYear()-1980;if((p<0||p>119)&&I(10),lt(t,n,p<<25|l.getMonth()+1<<21|l.getDate()<<16|l.getHours()<<11|l.getMinutes()<<5|l.getSeconds()>>1),n+=4,-1!=o&&(lt(t,n,r.crc),lt(t,n+4,o<0?-o-2:o),lt(t,n+8,r.size)),lt(t,n+12,u),lt(t,n+14,c),n+=16,null!=s&&(lt(t,n,f),lt(t,n+6,r.attrs),lt(t,n+10,s),n+=14),t.set(i,n),n+=u,c)for(var v in h){var d=h[v],g=d.length;lt(t,n,+v),lt(t,n+2,g),t.set(d,n+4),n+=4+g}return f&&(t.set(a,n),n+=f),n},fn=function(t,n,r,i,e){lt(t,n,101010256),lt(t,n+8,r),lt(t,n+10,r),lt(t,n+12,i),lt(t,n+16,e)},cn=function(){function t(t){this.filename=t,this.c=V(),this.size=0,this.compression=0}return t.prototype.process=function(t,n){this.ondata(null,t,n)},t.prototype.push=function(t,n){this.ondata||I(5),this.c.p(t),this.size+=t.length,n&&(this.crc=this.c.d()),this.process(t,n||!1)},t}();_e.ZipPassThrough=cn;var ln=function(){function t(t,n){var r=this;n||(n={}),cn.call(this,t),this.d=new wt(n,function(t,n){r.ondata(null,t,n)}),this.compression=8,this.flag=en(n.level)}return t.prototype.process=function(t,n){try{this.d.push(t,n)}catch(t){this.ondata(t,null,n)}},t.prototype.push=function(t,n){cn.prototype.push.call(this,t,n)},t}();_e.ZipDeflate=ln;var pn=function(){function t(t,n){var r=this;n||(n={}),cn.call(this,t),this.d=new xt(n,function(t,n,i){r.ondata(t,n,i)}),this.compression=8,this.flag=en(n.level),this.terminate=this.d.terminate}return t.prototype.process=function(t,n){this.d.push(t,n)},t.prototype.push=function(t,n){cn.prototype.push.call(this,t,n)},t}();_e.AsyncZipDeflate=pn;var vn=function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var r=this;if(this.ondata||I(5),2&this.d)this.ondata(I(4+8*(1&this.d),0,1),null,!1);else{var i=nn(t.filename),e=i.length,o=t.comment,s=o&&nn(o),a=e!=t.filename.length||s&&o.length!=s.length,u=e+un(t.extra)+30;e>65535&&this.ondata(I(11,0,1),null,!1);var h=new n(u);hn(h,0,t,i,a,-1);var f=[h],c=function(){for(var t=0,n=f;t<n.length;t++)r.ondata(null,n[t],!1);f=[]},l=this.d;this.d=0;var p=this.u.length,v=K(t,{f:i,u:a,o:s,t:function(){t.terminate&&t.terminate()},r:function(){if(c(),l){var t=r.u[p+1];t?t.r():r.d=1}l=1}}),d=0;t.ondata=function(i,e,o){if(i)r.ondata(i,e,o),r.terminate();else if(d+=e.length,f.push(e),o){var s=new n(16);lt(s,0,134695760),lt(s,4,t.crc),lt(s,8,d),lt(s,12,t.size),f.push(s),v.c=d,v.b=u+d+16,v.crc=t.crc,v.size=t.size,l&&v.r(),l=1}else l&&c()},this.u.push(v)}},t.prototype.end=function(){var t=this;2&this.d?this.ondata(I(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3)},t.prototype.e=function(){for(var t=0,r=0,i=0,e=0,o=this.u;e<o.length;e++)i+=46+(h=o[e]).f.length+un(h.extra)+(h.o?h.o.length:0);for(var s=new n(i+22),a=0,u=this.u;a<u.length;a++){var h;hn(s,t,h=u[a],h.f,h.u,-h.c-2,r,h.o),t+=46+h.f.length+un(h.extra)+(h.o?h.o.length:0),r+=h.b}fn(s,t,this.u.length,i,r),this.ondata(null,s,!0),this.d=2},t.prototype.terminate=function(){for(var t=0,n=this.u;t<n.length;t++)n[t].t();this.d=2},t}();function dn(t,r,i){i||(i=r,r={}),\"function\"!=typeof i&&I(7);var e={};Qt(t,\"\",e,r);var o=Object.keys(e),s=o.length,a=0,u=0,h=s,f=Array(s),c=[],l=function(){for(var t=0;t<c.length;++t)c[t]()},p=function(t,n){xn(function(){i(t,n)})};xn(function(){p=i});var v=function(){var t=new n(u+22),r=a,i=u-a;u=0;for(var e=0;e<h;++e){var o=f[e];try{var s=o.c.length;hn(t,u,o,o.f,o.u,s);var c=30+o.f.length+un(o.extra),l=u+c;t.set(o.c,l),hn(t,a,o,o.f,o.u,s,u,o.m),a+=16+c+(o.m?o.m.length:0),u=l+s}catch(t){return p(t,null)}}fn(t,a,f.length,i,r),p(null,t)};s||v();for(var d=function(t){var n=o[t],r=e[n],i=r[0],h=r[1],d=V(),g=i.length;d.p(i);var y=nn(n),m=y.length,b=h.comment,w=b&&nn(b),x=w&&w.length,z=un(h.extra),k=0==h.level?0:8,M=function(r,i){if(r)l(),p(r,null);else{var e=i.length;f[t]=K(h,{size:g,crc:d.d(),c:i,f:y,m:w,u:m!=n.length||w&&b.length!=x,compression:k}),a+=30+m+z+e,u+=76+2*(m+z)+(x||0)+e,--s||v()}};if(m>65535&&M(I(11,0,1),null),k)if(g<16e4)try{M(null,kt(i,h))}catch(t){M(t,null)}else c.push(zt(i,h,M));else M(null,i)},g=0;g<h;++g)d(g);return l}function gn(t,r){r||(r={});var i={},e=[];Qt(t,\"\",i,r);var o=0,s=0;for(var a in i){var u=i[a],h=u[0],f=u[1],c=0==f.level?0:8,l=(M=nn(a)).length,p=f.comment,v=p&&nn(p),d=v&&v.length,g=un(f.extra);l>65535&&I(11);var y=c?kt(h,f):h,m=y.length,b=V();b.p(h),e.push(K(f,{size:h.length,crc:b.d(),c:y,f:M,m:v,u:l!=a.length||v&&p.length!=d,o:o,compression:c})),o+=30+l+g+m,s+=76+2*(l+g)+(d||0)+m}for(var w=new n(s+22),x=o,z=s-o,k=0;k<e.length;++k){var M;hn(w,(M=e[k]).o,M,M.f,M.u,M.c.length);var S=30+M.f.length+un(M.extra);w.set(M.c,M.o+S),hn(w,o,M,M.f,M.u,M.c.length,M.o,M.m),o+=16+S+(M.m?M.m.length:0)}return fn(w,o,e.length,z,x),w}_e.Zip=vn;var yn=function(){function t(){}return t.prototype.push=function(t,n){this.ondata(null,t,n)},t.compression=0,t}();_e.UnzipPassThrough=yn;var mn=function(){function t(){var t=this;this.i=new Mt(function(n,r){t.ondata(null,n,r)})}return t.prototype.push=function(t,n){try{this.i.push(t,n)}catch(t){this.ondata(t,null,n)}},t.compression=8,t}();_e.UnzipInflate=mn;var bn=function(){function t(t,n){var r=this;n<32e4?this.i=new Mt(function(t,n){r.ondata(null,t,n)}):(this.i=new St(function(t,n,i){r.ondata(t,n,i)}),this.terminate=this.i.terminate)}return t.prototype.push=function(t,n){this.i.terminate&&(t=D(t,0)),this.i.push(t,n)},t.compression=8,t}();_e.AsyncUnzipInflate=bn;var wn=function(){function t(t){this.onfile=t,this.k=[],this.o={0:yn},this.p=j}return t.prototype.push=function(t,r){var i=this;if(this.onfile||I(5),this.p||I(4),this.c>0){var e=Math.min(this.c,t.length),o=t.subarray(0,e);if(this.c-=e,this.d?this.d.push(o,!this.c):this.k[0].push(o),(t=t.subarray(e)).length)return this.push(t,r)}else{var s=0,a=0,u=void 0,h=void 0;this.p.length?t.length?((h=new n(this.p.length+t.length)).set(this.p),h.set(t,this.p.length)):h=this.p:h=t;for(var f=h.length,c=this.c,l=c&&this.d,p=function(){var t=ft(h,a);if(67324752==t){s=1,u=a,v.d=null,v.c=0;var n=ht(h,a+6),r=ht(h,a+8),e=2048&n,o=8&n,l=ht(h,a+26),p=ht(h,a+28);if(f>a+30+l+p){var d=[];v.k.unshift(d),s=2;var g,y=ft(h,a+18),m=ft(h,a+22),b=rn(h.subarray(a+30,a+=30+l),!e),w=an(h,a,p,2,y,m,0),x=w[0],z=w[1];o&&(x=-1-w[3]),a+=p,v.c=x;var k={name:b,compression:r,start:function(){if(k.ondata||I(5),x){var t=i.o[r];t||k.ondata(I(14,\"unknown compression type \"+r,1),null,!1),(g=x<0?new t(b):new t(b,x,z)).ondata=function(t,n,r){k.ondata(t,n,r)};for(var n=0,e=d;n<e.length;n++)g.push(e[n],!1);i.k[0]==d&&i.c?i.d=g:g.push(j,!0)}else k.ondata(null,j,!0)},terminate:function(){g&&g.terminate&&g.terminate()}};x>=0&&(k.size=x,k.originalSize=z),v.onfile(k)}return\"break\"}if(c){if(134695760==t)return u=a+=12+(-2==c&&8),s=3,v.c=0,\"break\";if(33639248==t)return u=a-=4,s=3,v.c=0,\"break\"}},v=this;a<f-4&&\"break\"!==p();++a);if(this.p=j,c<0){var d=h.subarray(0,s?u-12-(-2==c&&8)-(134695760==ft(h,u-16)&&4):a);l?l.push(d,!!s):this.k[+(2==s)].push(d)}if(2&s)return this.push(h.subarray(a),r);this.p=h.subarray(a)}r&&(this.c&&I(13),this.p=null)},t.prototype.register=function(t){this.o[t.compression]=t},t}();_e.Unzip=wn;var xn=\"function\"==typeof queueMicrotask?queueMicrotask:\"function\"==typeof setTimeout?setTimeout:function(t){t()};function zn(t,r,i){i||(i=r,r={}),\"function\"!=typeof i&&I(7);var e=[],o=function(){for(var t=0;t<e.length;++t)e[t]()},s={},a=function(t,n){xn(function(){i(t,n)})};xn(function(){a=i});for(var u=t.length-22;101010256!=ft(t,u);--u)if(!u||t.length-u>65558)return a(I(13,0,1),null),o;var h=ht(t,u+8);if(h){var f=h,c=ft(t,u+16),l=117853008==ft(t,u-20);if(l){var p=ft(t,u-12);(l=101075792==ft(t,p))&&(f=h=ft(t,p+32),c=ft(t,p+48))}for(var v=r&&r.filter,d=function(r){var i=sn(t,c,l),u=i[0],f=i[1],p=i[2],d=i[3],g=i[4],y=on(t,i[5]);c=g;var m=function(t,n){t?(o(),a(t,null)):(n&&(s[d]=n),--h||a(null,s))};if(!v||v({name:d,size:f,originalSize:p,compression:u}))if(u)if(8==u){var b=t.subarray(y,y+f);if(p<524288||f>.8*p)try{m(null,Tt(b,{out:new n(p)}))}catch(t){m(t,null)}else e.push(At(b,{size:p},m))}else m(I(14,\"unknown compression type \"+u,1),null);else m(null,D(t,y,y+f));else m(null,null)},g=0;g<f;++g)d()}else a(null,{});return o}function kn(t,r){for(var i={},e=t.length-22;101010256!=ft(t,e);--e)(!e||t.length-e>65558)&&I(13);var o=ht(t,e+8);if(!o)return{};var s=ft(t,e+16),a=117853008==ft(t,e-20);if(a){var u=ft(t,e-12);(a=101075792==ft(t,u))&&(o=ft(t,u+32),s=ft(t,u+48))}for(var h=r&&r.filter,f=0;f<o;++f){var c=sn(t,s,a),l=c[0],p=c[1],v=c[2],d=c[3],g=c[4],y=on(t,c[5]);s=g,h&&!h({name:d,size:p,originalSize:v,compression:l})||(l?8==l?i[d]=Tt(t.subarray(y,y+p),{out:new n(v)}):I(14,\"unknown compression type \"+l):i[d]=D(t,y,y+p))}return i}return _e});",
  "vendor/fflate/LICENSE": "MIT License\n\nCopyright (c) 2026 Arjun Barrett\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.",
  "vendor/fflate/package.json": "{\n  \"name\": \"fflate\",\n  \"version\": \"0.8.3\",\n  \"description\": \"High performance (de)compression in an 8kB package\",\n  \"main\": \"./lib/index.cjs\",\n  \"module\": \"./esm/browser.js\",\n  \"types\": \"./lib/index.d.ts\",\n  \"unpkg\": \"./umd/index.js\",\n  \"jsdelivr\": \"./umd/index.js\",\n  \"browser\": {\n    \"./lib/node-worker.cjs\": \"./lib/worker.cjs\"\n  },\n  \"exports\": {\n    \".\": {\n      \"node\": {\n        \"import\": {\n          \"types\": \"./esm/index.d.mts\",\n          \"default\": \"./esm/index.mjs\"\n        },\n        \"require\": {\n          \"types\": \"./lib/node.d.cts\",\n          \"default\": \"./lib/node.cjs\"\n        }\n      },\n      \"import\": {\n        \"types\": \"./esm/browser.d.ts\",\n        \"default\": \"./esm/browser.js\"\n      },\n      \"require\": {\n        \"types\": \"./lib/browser.d.cts\",\n        \"default\": \"./lib/browser.cjs\"\n      }\n    },\n    \"./node\": {\n      \"import\": {\n        \"types\": \"./esm/index.d.mts\",\n        \"default\": \"./esm/index.mjs\"\n      },\n      \"require\": {\n        \"types\": \"./lib/node.d.cts\",\n        \"default\": \"./lib/node.cjs\"\n      }\n    },\n    \"./browser\": {\n      \"import\": {\n        \"types\": \"./esm/browser.d.ts\",\n        \"default\": \"./esm/browser.js\"\n      },\n      \"require\": {\n        \"types\": \"./lib/browser.d.cts\",\n        \"default\": \"./lib/browser.cjs\"\n      }\n    },\n    \"./package.json\": \"./package.json\"\n  },\n  \"targets\": {\n    \"main\": false,\n    \"module\": false,\n    \"browser\": false,\n    \"types\": false\n  },\n  \"sideEffects\": false,\n  \"homepage\": \"https://101arrowz.github.io/fflate\",\n  \"repository\": \"https://github.com/101arrowz/fflate\",\n  \"bugs\": {\n    \"email\": \"arjunbarrett@gmail.com\",\n    \"url\": \"https://github.com/101arrowz/fflate/issues\"\n  },\n  \"author\": \"Arjun Barrett <arjunbarrett@gmail.com>\",\n  \"license\": \"MIT\",\n  \"keywords\": [\n    \"gzip\",\n    \"gunzip\",\n    \"deflate\",\n    \"inflate\",\n    \"compression\",\n    \"decompression\",\n    \"zlib\",\n    \"pako\",\n    \"jszip\",\n    \"browser\",\n    \"node.js\",\n    \"tiny\",\n    \"fast\",\n    \"zip\",\n    \"unzip\",\n    \"non-blocking\"\n  ],\n  \"scripts\": {\n    \"build\": \"npm run build:lib && npm run build:docs && npm run build:demo\",\n    \"script\": \"node -r ts-node/register scripts/$SC.ts\",\n    \"build:lib\": \"tsc && tsc --project tsconfig.esm.json && npm run build:rewrite && npm run build:umd\",\n    \"build:umd\": \"SC=buildUMD npm run script\",\n    \"build:rewrite\": \"SC=rewriteBuilds npm run script\",\n    \"build:demo\": \"tsc --project tsconfig.demo.json && parcel build demo/index.html --no-cache --public-url \\\"./\\\" && SC=cpGHPages npm run script\",\n    \"build:docs\": \"typedoc --plugin typedoc-plugin-markdown --hideBreadcrumbs --readme none --disableSources --excludePrivate --excludeProtected --expandParameters --githubPages false --out docs/ src/index.ts\",\n    \"test\": \"TS_NODE_PROJECT=test/tsconfig.json uvu -b -r ts-node/register test\",\n    \"prepack\": \"npm run build && npm run test\"\n  },\n  \"devDependencies\": {\n    \"@parcel/service-worker\": \"^2.9.3\",\n    \"@types/node\": \"^25.8.0\",\n    \"@types/pako\": \"*\",\n    \"@types/react\": \"^18.2.21\",\n    \"@types/react-dom\": \"^18.2.7\",\n    \"jszip\": \"^3.10.1\",\n    \"pako\": \"*\",\n    \"parcel\": \"^2.9.3\",\n    \"preact\": \"^10.17.1\",\n    \"react\": \"^18.2.0\",\n    \"react-dom\": \"^18.2.0\",\n    \"simple-git\": \"^3.19.1\",\n    \"terser\": \"^5.47.1\",\n    \"tiny-inflate\": \"*\",\n    \"ts-node\": \"^10.9.2\",\n    \"typedoc\": \"^0.28.19\",\n    \"typedoc-plugin-markdown\": \"^4.11.0\",\n    \"typescript\": \"^6.0.3\",\n    \"uvu\": \"^0.5.6\",\n    \"uzip\": \"*\"\n  },\n  \"alias\": {\n    \"react\": \"preact/compat\",\n    \"react-dom\": \"preact/compat\",\n    \"buffer\": false,\n    \"process\": false\n  }\n}\n",
  "vendor/dexie/erlen-bundle.js": "(function(){var _bibliotecaMethods=(()=>{var va=Object.create;var Fn=Object.defineProperty;var pa=Object.getOwnPropertyDescriptor;var ya=Object.getOwnPropertyNames;var ma=Object.getPrototypeOf,ga=Object.prototype.hasOwnProperty;var ba=(N,V)=>()=>{try{return V||N((V={exports:{}}).exports,V),V.exports}catch(P){throw V=0,P}},wa=(N,V)=>{for(var P in V)Fn(N,P,{get:V[P],enumerable:!0})},Or=(N,V,P,we)=>{if(V&&typeof V==\"object\"||typeof V==\"function\")for(let z of ya(V))!ga.call(N,z)&&z!==P&&Fn(N,z,{get:()=>V[z],enumerable:!(we=pa(V,z))||we.enumerable});return N};var _a=(N,V,P)=>(P=N!=null?va(ma(N)):{},Or(V||!N||!N.__esModule?Fn(P,\"default\",{value:N,enumerable:!0}):P,N)),xa=N=>Or(Fn({},\"__esModule\",{value:!0}),N);var Pr=ba((Tt,Ct)=>{(function(N,V){typeof Tt==\"object\"&&typeof Ct<\"u\"?Ct.exports=V():typeof define==\"function\"&&define.amd?define(V):(N=typeof globalThis<\"u\"?globalThis:N||self,N.Dexie=V())})(Tt,(function(){\"use strict\";var N=function(e,n){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},N(e,n)};function V(e,n){if(typeof n!=\"function\"&&n!==null)throw new TypeError(\"Class extends value \"+String(n)+\" is not a constructor or null\");N(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var P=function(){return P=Object.assign||function(n){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])}return n},P.apply(this,arguments)};function we(e,n,t){if(t||arguments.length===2)for(var r=0,i=n.length,a;r<i;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return e.concat(a||Array.prototype.slice.call(n))}typeof SuppressedError==\"function\"&&SuppressedError;var z=typeof globalThis<\"u\"?globalThis:typeof self<\"u\"?self:typeof window<\"u\"?window:global,$=Object.keys,W=Array.isArray;typeof Promise<\"u\"&&!z.Promise&&(z.Promise=Promise);function q(e,n){return typeof n!=\"object\"||$(n).forEach(function(t){e[t]=n[t]}),e}var Re=Object.getPrototypeOf,Dr={}.hasOwnProperty;function ee(e,n){return Dr.call(e,n)}function Be(e,n){typeof n==\"function\"&&(n=n(Re(e))),(typeof Reflect>\"u\"?$:Reflect.ownKeys)(n).forEach(function(t){he(e,t,n[t])})}var Dt=Object.defineProperty;function he(e,n,t,r){Dt(e,n,q(t&&ee(t,\"get\")&&typeof t.get==\"function\"?{get:t.get,set:t.set,configurable:!0}:{value:t,configurable:!0,writable:!0},r))}function Me(e){return{from:function(n){return e.prototype=Object.create(n.prototype),he(e.prototype,\"constructor\",e),{extend:Be.bind(null,e.prototype)}}}}var Ir=Object.getOwnPropertyDescriptor;function It(e,n){var t=Ir(e,n),r;return t||(r=Re(e))&&It(r,n)}var Rr=[].slice;function on(e,n,t){return Rr.call(e,n,t)}function Rt(e,n){return n(e)}function Ye(e){if(!e)throw new Error(\"Assertion Failed\")}function Bt(e){z.setImmediate?setImmediate(e):setTimeout(e,0)}function Br(e,n){return e.reduce(function(t,r,i){var a=n(r,i);return a&&(t[a[0]]=a[1]),t},{})}function oe(e,n){if(typeof n==\"string\"&&ee(e,n))return e[n];if(!n)return e;if(typeof n!=\"string\"){for(var t=[],r=0,i=n.length;r<i;++r){var a=oe(e,n[r]);t.push(a)}return t}var u=n.indexOf(\".\");if(u!==-1){var o=e[n.substr(0,u)];return o==null?void 0:oe(o,n.substr(u+1))}}function Z(e,n,t){if(!(!e||n===void 0)&&!(\"isFrozen\"in Object&&Object.isFrozen(e)))if(typeof n!=\"string\"&&\"length\"in n){Ye(typeof t!=\"string\"&&\"length\"in t);for(var r=0,i=n.length;r<i;++r)Z(e,n[r],t[r])}else{var a=n.indexOf(\".\");if(a!==-1){var u=n.substr(0,a),o=n.substr(a+1);if(o===\"\")t===void 0?W(e)&&!isNaN(parseInt(u))?e.splice(u,1):delete e[u]:e[u]=t;else{var s=e[u];if(!s||!ee(e,u)){if(t===void 0)return;s=e[u]={}}Z(s,o,t)}}else t===void 0?W(e)&&!isNaN(parseInt(n))?e.splice(n,1):delete e[n]:e[n]=t}}function Mr(e,n){typeof n==\"string\"?Z(e,n,void 0):\"length\"in n&&[].map.call(n,function(t){Z(e,t,void 0)})}function Mt(e){var n={};for(var t in e)ee(e,t)&&(n[t]=e[t]);return n}var Fr=[].concat;function Ft(e){return Fr.apply([],e)}var jr=\"BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey\".split(\",\").concat(Ft([8,16,32,64].map(function(e){return[\"Int\",\"Uint\",\"Float\"].map(function(n){return n+e+\"Array\"})}))).filter(function(e){return z[e]}),jt=new Set(jr.map(function(e){return z[e]}));function Nt(e){var n={};for(var t in e)if(ee(e,t)){var r=e[t];n[t]=!r||typeof r!=\"object\"||jt.has(r.constructor)?r:Nt(r)}return n}var $e=null;function _e(e){$e=new WeakMap;var n=Ln(e);return $e=null,n}function Ln(e){if(!e||typeof e!=\"object\")return e;var n=$e.get(e);if(n)return n;if(W(e)){n=[],$e.set(e,n);for(var t=0,r=e.length;t<r;++t)n.push(Ln(e[t]))}else if(jt.has(e.constructor))n=e;else{var i=Re(e);n=i===Object.prototype?{}:Object.create(i),$e.set(e,n);for(var a in e)ee(e,a)&&(n[a]=Ln(e[a]))}return n}var Nr={}.toString;function Vn(e){return Nr.call(e).slice(8,-1)}var zn=typeof Symbol<\"u\"?Symbol.iterator:\"@@iterator\",Lr=typeof zn==\"symbol\"?function(e){var n;return e!=null&&(n=e[zn])&&n.apply(e)}:function(){return null};function xe(e,n){var t=e.indexOf(n);return t>=0&&e.splice(t,1),t>=0}var Fe={};function se(e){var n,t,r,i;if(arguments.length===1){if(W(e))return e.slice();if(this===Fe&&typeof e==\"string\")return[e];if(i=Lr(e)){for(t=[];r=i.next(),!r.done;)t.push(r.value);return t}if(e==null)return[e];if(n=e.length,typeof n==\"number\"){for(t=new Array(n);n--;)t[n]=e[n];return t}return[e]}for(n=arguments.length,t=new Array(n);n--;)t[n]=arguments[n];return t}var Wn=typeof Symbol<\"u\"?function(e){return e[Symbol.toStringTag]===\"AsyncFunction\"}:function(){return!1},Vr=[\"Modify\",\"Bulk\",\"OpenFailed\",\"VersionChange\",\"Schema\",\"Upgrade\",\"InvalidTable\",\"MissingAPI\",\"NoSuchDatabase\",\"InvalidArgument\",\"SubTransaction\",\"Unsupported\",\"Internal\",\"DatabaseClosed\",\"PrematureCommit\",\"ForeignAwait\"],Lt=[\"Unknown\",\"Constraint\",\"Data\",\"TransactionInactive\",\"ReadOnly\",\"Version\",\"NotFound\",\"InvalidState\",\"InvalidAccess\",\"Abort\",\"Timeout\",\"QuotaExceeded\",\"Syntax\",\"DataClone\"],Un=Vr.concat(Lt),zr={VersionChanged:\"Database version changed by other database connection\",DatabaseClosed:\"Database has been closed\",Abort:\"Transaction aborted\",TransactionInactive:\"Transaction has already completed or failed\",MissingAPI:\"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb\"};function je(e,n){this.name=e,this.message=n}Me(je).from(Error).extend({toString:function(){return this.name+\": \"+this.message}});function Vt(e,n){return e+\". Errors: \"+Object.keys(n).map(function(t){return n[t].toString()}).filter(function(t,r,i){return i.indexOf(t)===r}).join(`\n`)}function sn(e,n,t,r){this.failures=n,this.failedKeys=r,this.successCount=t,this.message=Vt(e,n)}Me(sn).from(je);function Ne(e,n){this.name=\"BulkError\",this.failures=Object.keys(n).map(function(t){return n[t]}),this.failuresByPos=n,this.message=Vt(e,this.failures)}Me(Ne).from(je);var Yn=Un.reduce(function(e,n){return e[n]=n+\"Error\",e},{}),Wr=je,D=Un.reduce(function(e,n){var t=n+\"Error\";function r(i,a){this.name=t,i?typeof i==\"string\"?(this.message=\"\".concat(i).concat(a?`\n `+a:\"\"),this.inner=a||null):typeof i==\"object\"&&(this.message=\"\".concat(i.name,\" \").concat(i.message),this.inner=i):(this.message=zr[n]||t,this.inner=null)}return Me(r).from(Wr),e[n]=r,e},{});D.Syntax=SyntaxError,D.Type=TypeError,D.Range=RangeError;var zt=Lt.reduce(function(e,n){return e[n+\"Error\"]=D[n],e},{});function Ur(e,n){if(!e||e instanceof je||e instanceof TypeError||e instanceof SyntaxError||!e.name||!zt[e.name])return e;var t=new zt[e.name](n||e.message,e);return\"stack\"in e&&he(t,\"stack\",{get:function(){return this.inner.stack}}),t}var cn=Un.reduce(function(e,n){return[\"Syntax\",\"Type\",\"Range\"].indexOf(n)===-1&&(e[n+\"Error\"]=D[n]),e},{});cn.ModifyError=sn,cn.DexieError=je,cn.BulkError=Ne;function F(){}function Qe(e){return e}function Yr(e,n){return e==null||e===Qe?n:function(t){return n(e(t))}}function Ee(e,n){return function(){e.apply(this,arguments),n.apply(this,arguments)}}function $r(e,n){return e===F?n:function(){var t=e.apply(this,arguments);t!==void 0&&(arguments[0]=t);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=n.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?Ee(r,this.onsuccess):r),i&&(this.onerror=this.onerror?Ee(i,this.onerror):i),a!==void 0?a:t}}function Qr(e,n){return e===F?n:function(){e.apply(this,arguments);var t=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,n.apply(this,arguments),t&&(this.onsuccess=this.onsuccess?Ee(t,this.onsuccess):t),r&&(this.onerror=this.onerror?Ee(r,this.onerror):r)}}function Hr(e,n){return e===F?n:function(){var t=e.apply(this,arguments),r=arguments[0];q(r,t);var i=this.onsuccess,a=this.onerror;this.onsuccess=null,this.onerror=null;var u=n.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?Ee(i,this.onsuccess):i),a&&(this.onerror=this.onerror?Ee(a,this.onerror):a),t===void 0?u===void 0?void 0:u:q(t,u)}}function Xr(e,n){return e===F?n:function(){return n.apply(this,arguments)===!1?!1:e.apply(this,arguments)}}function $n(e,n){return e===F?n:function(){var t=e.apply(this,arguments);if(t&&typeof t.then==\"function\"){for(var r=this,i=arguments.length,a=new Array(i);i--;)a[i]=arguments[i];return t.then(function(){return n.apply(r,a)})}return n.apply(this,arguments)}}var ue=typeof location<\"u\"&&/^(http|https):\\/\\/(localhost|127\\.0\\.0\\.1)/.test(location.href);function Wt(e,n){ue=e}var He={},Ut=100,Qn=typeof Promise>\"u\"?[]:(function(){var e=Promise.resolve();if(typeof crypto>\"u\"||!crypto.subtle)return[e,Re(e),e];var n=crypto.subtle.digest(\"SHA-512\",new Uint8Array([0]));return[n,Re(n),e]})(),Yt=Qn[0],$t=Qn[1],Gr=Qn[2],Jr=$t&&$t.then,Se=Yt&&Yt.constructor,Hn=!!Gr;function Zr(){queueMicrotask(ei)}var Xe=function(e,n){Ge.push([e,n]),ln&&(Zr(),ln=!1)},Xn=!0,ln=!0,Ae=[],fn=[],Gn=Qe,ce={id:\"global\",global:!0,ref:0,unhandleds:[],onunhandled:F,pgp:!1,env:{},finalize:F},O=ce,Ge=[],Ke=0,hn=[];function S(e){if(typeof this!=\"object\")throw new TypeError(\"Promises must be constructed via new\");this._listeners=[],this._lib=!1;var n=this._PSD=O;if(typeof e!=\"function\"){if(e!==He)throw new TypeError(\"Not a function\");this._state=arguments[1],this._value=arguments[2],this._state===!1&&Zn(this,this._value);return}this._state=null,this._value=null,++n.ref,Ht(this,e)}var Jn={get:function(){var e=O,n=yn;function t(r,i){var a=this,u=!e.global&&(e!==O||n!==yn),o=u&&!ve(),s=new S(function(c,f){qn(a,new Qt(Jt(r,e,u,o),Jt(i,e,u,o),c,f,e))});return this._consoleTask&&(s._consoleTask=this._consoleTask),s}return t.prototype=He,t},set:function(e){he(this,\"then\",e&&e.prototype===He?Jn:{get:function(){return e},set:Jn.set})}};Be(S.prototype,{then:Jn,_then:function(e,n){qn(this,new Qt(null,null,e,n,O))},catch:function(e){if(arguments.length===1)return this.then(null,e);var n=arguments[0],t=arguments[1];return typeof n==\"function\"?this.then(null,function(r){return r instanceof n?t(r):dn(r)}):this.then(null,function(r){return r&&r.name===n?t(r):dn(r)})},finally:function(e){return this.then(function(n){return S.resolve(e()).then(function(){return n})},function(n){return S.resolve(e()).then(function(){return dn(n)})})},timeout:function(e,n){var t=this;return e<1/0?new S(function(r,i){var a=setTimeout(function(){return i(new D.Timeout(n))},e);t.then(r,i).finally(clearTimeout.bind(null,a))}):this}}),typeof Symbol<\"u\"&&Symbol.toStringTag&&he(S.prototype,Symbol.toStringTag,\"Dexie.Promise\"),ce.env=Gt();function Qt(e,n,t,r,i){this.onFulfilled=typeof e==\"function\"?e:null,this.onRejected=typeof n==\"function\"?n:null,this.resolve=t,this.reject=r,this.psd=i}Be(S,{all:function(){var e=se.apply(null,arguments).map(mn);return new S(function(n,t){e.length===0&&n([]);var r=e.length;e.forEach(function(i,a){return S.resolve(i).then(function(u){e[a]=u,--r||n(e)},t)})})},resolve:function(e){if(e instanceof S)return e;if(e&&typeof e.then==\"function\")return new S(function(t,r){e.then(t,r)});var n=new S(He,!0,e);return n},reject:dn,race:function(){var e=se.apply(null,arguments).map(mn);return new S(function(n,t){e.map(function(r){return S.resolve(r).then(n,t)})})},PSD:{get:function(){return O},set:function(e){return O=e}},totalEchoes:{get:function(){return yn}},newPSD:de,usePSD:ke,scheduler:{get:function(){return Xe},set:function(e){Xe=e}},rejectionMapper:{get:function(){return Gn},set:function(e){Gn=e}},follow:function(e,n){return new S(function(t,r){return de(function(i,a){var u=O;u.unhandleds=[],u.onunhandled=a,u.finalize=Ee(function(){var o=this;ni(function(){o.unhandleds.length===0?i():a(o.unhandleds[0])})},u.finalize),e()},n,t,r)})}}),Se&&(Se.allSettled&&he(S,\"allSettled\",function(){var e=se.apply(null,arguments).map(mn);return new S(function(n){e.length===0&&n([]);var t=e.length,r=new Array(t);e.forEach(function(i,a){return S.resolve(i).then(function(u){return r[a]={status:\"fulfilled\",value:u}},function(u){return r[a]={status:\"rejected\",reason:u}}).then(function(){return--t||n(r)})})})}),Se.any&&typeof AggregateError<\"u\"&&he(S,\"any\",function(){var e=se.apply(null,arguments).map(mn);return new S(function(n,t){e.length===0&&t(new AggregateError([]));var r=e.length,i=new Array(r);e.forEach(function(a,u){return S.resolve(a).then(function(o){return n(o)},function(o){i[u]=o,--r||t(new AggregateError(i))})})})}),Se.withResolvers&&(S.withResolvers=Se.withResolvers));function Ht(e,n){try{n(function(t){if(e._state===null){if(t===e)throw new TypeError(\"A promise cannot be resolved with itself.\");var r=e._lib&&Le();t&&typeof t.then==\"function\"?Ht(e,function(i,a){t instanceof S?t._then(i,a):t.then(i,a)}):(e._state=!0,e._value=t,Xt(e)),r&&Ve()}},Zn.bind(null,e))}catch(t){Zn(e,t)}}function Zn(e,n){if(fn.push(n),e._state===null){var t=e._lib&&Le();n=Gn(n),e._state=!1,e._value=n,ti(e),Xt(e),t&&Ve()}}function Xt(e){var n=e._listeners;e._listeners=[];for(var t=0,r=n.length;t<r;++t)qn(e,n[t]);var i=e._PSD;--i.ref||i.finalize(),Ke===0&&(++Ke,Xe(function(){--Ke===0&&et()},[]))}function qn(e,n){if(e._state===null){e._listeners.push(n);return}var t=e._state?n.onFulfilled:n.onRejected;if(t===null)return(e._state?n.resolve:n.reject)(e._value);++n.psd.ref,++Ke,Xe(qr,[t,e,n])}function qr(e,n,t){try{var r,i=n._value;!n._state&&fn.length&&(fn=[]),r=ue&&n._consoleTask?n._consoleTask.run(function(){return e(i)}):e(i),!n._state&&fn.indexOf(i)===-1&&ri(n),t.resolve(r)}catch(a){t.reject(a)}finally{--Ke===0&&et(),--t.psd.ref||t.psd.finalize()}}function ei(){ke(ce,function(){Le()&&Ve()})}function Le(){var e=Xn;return Xn=!1,ln=!1,e}function Ve(){var e,n,t;do for(;Ge.length>0;)for(e=Ge,Ge=[],t=e.length,n=0;n<t;++n){var r=e[n];r[0].apply(null,r[1])}while(Ge.length>0);Xn=!0,ln=!0}function et(){var e=Ae;Ae=[],e.forEach(function(r){r._PSD.onunhandled.call(null,r._value,r)});for(var n=hn.slice(0),t=n.length;t;)n[--t]()}function ni(e){function n(){e(),hn.splice(hn.indexOf(n),1)}hn.push(n),++Ke,Xe(function(){--Ke===0&&et()},[])}function ti(e){Ae.some(function(n){return n._value===e._value})||Ae.push(e)}function ri(e){for(var n=Ae.length;n;)if(Ae[--n]._value===e._value){Ae.splice(n,1);return}}function dn(e){return new S(He,!1,e)}function L(e,n){var t=O;return function(){var r=Le(),i=O;try{return pe(t,!0),e.apply(this,arguments)}catch(a){n&&n(a)}finally{pe(i,!1),r&&Ve()}}}var Q={awaits:0,echoes:0,id:0},ii=0,vn=[],pn=0,yn=0,ai=0;function de(e,n,t,r){var i=O,a=Object.create(i);a.parent=i,a.ref=0,a.global=!1,a.id=++ai,ce.env,a.env=Hn?{Promise:S,PromiseProp:{value:S,configurable:!0,writable:!0},all:S.all,race:S.race,allSettled:S.allSettled,any:S.any,resolve:S.resolve,reject:S.reject}:{},n&&q(a,n),++i.ref,a.finalize=function(){--this.parent.ref||this.parent.finalize()};var u=ke(a,e,t,r);return a.ref===0&&a.finalize(),u}function ze(){return Q.id||(Q.id=++ii),++Q.awaits,Q.echoes+=Ut,Q.id}function ve(){return Q.awaits?(--Q.awaits===0&&(Q.id=0),Q.echoes=Q.awaits*Ut,!0):!1}(\"\"+Jr).indexOf(\"[native code]\")===-1&&(ze=ve=F);function mn(e){return Q.echoes&&e&&e.constructor===Se?(ze(),e.then(function(n){return ve(),n},function(n){return ve(),U(n)})):e}function ui(e){++yn,(!Q.echoes||--Q.echoes===0)&&(Q.echoes=Q.awaits=Q.id=0),vn.push(O),pe(e,!0)}function oi(){var e=vn[vn.length-1];vn.pop(),pe(e,!1)}function pe(e,n){var t=O;if((n?Q.echoes&&(!pn++||e!==O):pn&&(!--pn||e!==O))&&queueMicrotask(n?ui.bind(null,e):oi),e!==O&&(O=e,t===ce&&(ce.env=Gt()),Hn)){var r=ce.env.Promise,i=e.env;(t.global||e.global)&&(Object.defineProperty(z,\"Promise\",i.PromiseProp),r.all=i.all,r.race=i.race,r.resolve=i.resolve,r.reject=i.reject,i.allSettled&&(r.allSettled=i.allSettled),i.any&&(r.any=i.any))}}function Gt(){var e=z.Promise;return Hn?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(z,\"Promise\"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject}:{}}function ke(e,n,t,r,i){var a=O;try{return pe(e,!0),n(t,r,i)}finally{pe(a,!1)}}function Jt(e,n,t,r){return typeof e!=\"function\"?e:function(){var i=O;t&&ze(),pe(n,!0);try{return e.apply(this,arguments)}finally{pe(i,!1),r&&queueMicrotask(ve)}}}function nt(e){Promise===Se&&Q.echoes===0?pn===0?e():enqueueNativeMicroTask(e):setTimeout(e,0)}var U=S.reject;function tt(e,n,t,r){if(!e.idbdb||!e._state.openComplete&&!O.letThrough&&!e._vip){if(e._state.openComplete)return U(new D.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._state.autoOpen)return U(new D.DatabaseClosed);e.open().catch(F)}return e._state.dbReadyPromise.then(function(){return tt(e,n,t,r)})}else{var i=e._createTransaction(n,t,e._dbSchema);try{i.create(),e._state.PR1398_maxLoop=3}catch(a){return a.name===Yn.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn(\"Dexie: Need to reopen db\"),e.close({disableAutoOpen:!1}),e.open().then(function(){return tt(e,n,t,r)})):U(a)}return i._promise(n,function(a,u){return de(function(){return O.trans=i,r(a,u,i)})}).then(function(a){if(n===\"readwrite\")try{i.idbtrans.commit()}catch{}return n===\"readonly\"?a:i._completion.then(function(){return a})})}}var Zt=\"4.4.6\",Oe=\"\\uFFFF\",rt=-1/0,le=\"Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.\",qt=\"String expected.\",er=1e3,gn=\"__dbnames\",it=\"readonly\",at=\"readwrite\";function Pe(e,n){return e?n?function(){return e.apply(this,arguments)&&n.apply(this,arguments)}:e:n}var nr={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function bn(e){return typeof e==\"string\"&&!/\\./.test(e)?function(n){return n[e]===void 0&&e in n&&(n=_e(n),delete n[e]),n}:function(n){return n}}function tr(){throw D.Type(\"Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.\")}function M(e,n){try{var t=rr(e),r=rr(n);if(t!==r)return t===\"Array\"?1:r===\"Array\"?-1:t===\"binary\"?1:r===\"binary\"?-1:t===\"string\"?1:r===\"string\"?-1:t===\"Date\"?1:r!==\"Date\"?NaN:-1;switch(t){case\"number\":case\"Date\":case\"string\":return e>n?1:e<n?-1:0;case\"binary\":return ci(ir(e),ir(n));case\"Array\":return si(e,n)}}catch{}return NaN}function si(e,n){for(var t=e.length,r=n.length,i=t<r?t:r,a=0;a<i;++a){var u=M(e[a],n[a]);if(u!==0)return u}return t===r?0:t<r?-1:1}function ci(e,n){for(var t=e.length,r=n.length,i=t<r?t:r,a=0;a<i;++a)if(e[a]!==n[a])return e[a]<n[a]?-1:1;return t===r?0:t<r?-1:1}function rr(e){var n=typeof e;if(n!==\"object\")return n;if(ArrayBuffer.isView(e))return\"binary\";var t=Vn(e);return t===\"ArrayBuffer\"?\"binary\":t}function ir(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}function wn(e,n,t){var r=e.schema.yProps;return r?(n&&t.numFailures>0&&(n=n.filter(function(i,a){return!t.failures[a]})),Promise.all(r.map(function(i){var a=i.updatesTable;return n?e.db.table(a).where(\"k\").anyOf(n).delete():e.db.table(a).clear()})).then(function(){return t})):t}var Je=(function(){function e(n){this[\"@@propmod\"]=n}return e.prototype.execute=function(n){var t,r=this[\"@@propmod\"];if(r.add!==void 0){var i=r.add;if(W(i))return we(we([],W(n)?n:[],!0),i,!0).sort();if(typeof i==\"number\")return(Number(n)||0)+i;if(typeof i==\"bigint\")try{return BigInt(n)+i}catch{return BigInt(0)+i}throw new TypeError(\"Invalid term \".concat(i))}if(r.remove!==void 0){var a=r.remove;if(W(a))return W(n)?n.filter(function(o){return!a.includes(o)}).sort():[];if(typeof a==\"number\")return Number(n)-a;if(typeof a==\"bigint\")try{return BigInt(n)-a}catch{return BigInt(0)-a}throw new TypeError(\"Invalid subtrahend \".concat(a))}var u=(t=r.replacePrefix)===null||t===void 0?void 0:t[0];return u&&typeof n==\"string\"&&n.startsWith(u)?r.replacePrefix[1]+n.substring(u.length):n},e})();function ar(e,n){for(var t=$(n),r=t.length,i=!1,a=0;a<r;++a){var u=t[a],o=n[u],s=oe(e,u);o instanceof Je?(Z(e,u,o.execute(s)),i=!0):s!==o&&(Z(e,u,o),i=!0)}return i}var ur=(function(){function e(){}return e.prototype._trans=function(n,t,r){var i=this._tx||O.trans,a=this.name,u=ue&&typeof console<\"u\"&&console.createTask&&console.createTask(\"Dexie: \".concat(n===\"readonly\"?\"read\":\"write\",\" \").concat(this.name));function o(f,h,v){if(!v.schema[a])throw new D.NotFound(\"Table \"+a+\" not part of transaction\");return t(v.idbtrans,v)}var s=Le();try{var c=i&&i.db._novip===this.db._novip?i===O.trans?i._promise(n,o,r):de(function(){return i._promise(n,o,r)},{trans:i,transless:O.transless||O}):tt(this.db,n,[this.name],o);return u&&(c._consoleTask=u,c=c.catch(function(f){return console.trace(f),U(f)})),c}finally{s&&Ve()}},e.prototype.get=function(n,t){var r=this;return n&&n.constructor===Object?this.where(n).first(t):n==null?U(new D.Type(\"Invalid argument to Table.get()\")):this._trans(\"readonly\",function(i){return r.core.get({trans:i,key:n}).then(function(a){return r.hook.reading.fire(a)})}).then(t)},e.prototype.where=function(n){if(typeof n==\"string\")return new this.db.WhereClause(this,n);if(W(n))return new this.db.WhereClause(this,\"[\".concat(n.join(\"+\"),\"]\"));var t=$(n);if(t.length===1)return this.where(t[0]).equals(n[t[0]]);var r=this.schema.indexes.concat(this.schema.primKey).filter(function(f){if(f.compound&&t.every(function(v){return f.keyPath.indexOf(v)>=0})){for(var h=0;h<t.length;++h)if(t.indexOf(f.keyPath[h])===-1)return!1;return!0}return!1}).sort(function(f,h){return f.keyPath.length-h.keyPath.length})[0];if(r&&this.db._maxKey!==Oe){var i=r.keyPath.slice(0,t.length);return this.where(i).equals(i.map(function(f){return n[f]}))}!r&&ue&&console.warn(\"The query \".concat(JSON.stringify(n),\" on \").concat(this.name,\" would benefit from a \")+\"compound index [\".concat(t.join(\"+\"),\"]\"));var a=this.schema.idxByName;function u(f,h){return M(f,h)===0}var o=t.reduce(function(f,h){var v=f[0],g=f[1],l=a[h],d=n[h];return[v||l,v||!l?Pe(g,l&&l.multi?function(y){var p=oe(y,h);return W(p)&&p.some(function(_){return u(d,_)})}:function(y){return u(d,oe(y,h))}):g]},[null,null]),s=o[0],c=o[1];return s?this.where(s.name).equals(n[s.keyPath]).filter(c):r?this.filter(c):this.where(t).equals(\"\")},e.prototype.filter=function(n){return this.toCollection().and(n)},e.prototype.count=function(n){return this.toCollection().count(n)},e.prototype.offset=function(n){return this.toCollection().offset(n)},e.prototype.limit=function(n){return this.toCollection().limit(n)},e.prototype.each=function(n){return this.toCollection().each(n)},e.prototype.toArray=function(n){return this.toCollection().toArray(n)},e.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},e.prototype.orderBy=function(n){return new this.db.Collection(new this.db.WhereClause(this,W(n)?\"[\".concat(n.join(\"+\"),\"]\"):n))},e.prototype.reverse=function(){return this.toCollection().reverse()},e.prototype.mapToClass=function(n){var t=this,r=t.db,i=t.name;this.schema.mappedClass=n,n.prototype instanceof tr&&(n=(function(s){V(c,s);function c(){return s!==null&&s.apply(this,arguments)||this}return Object.defineProperty(c.prototype,\"db\",{get:function(){return r},enumerable:!1,configurable:!0}),c.prototype.table=function(){return i},c})(n));for(var a=new Set,u=n.prototype;u;u=Re(u))Object.getOwnPropertyNames(u).forEach(function(s){return a.add(s)});var o=function(s){if(!s)return s;var c=Object.create(n.prototype);for(var f in s)if(!a.has(f))try{c[f]=s[f]}catch{}return c};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=o,this.hook(\"reading\",o),n},e.prototype.defineClass=function(){function n(t){q(this,t)}return this.mapToClass(n)},e.prototype.add=function(n,t){var r=this,i=this.schema.primKey,a=i.auto,u=i.keyPath,o=n;return u&&a&&(o=bn(u)(n)),this._trans(\"readwrite\",function(s){return r.core.mutate({trans:s,type:\"add\",keys:t!=null?[t]:null,values:[o]})}).then(function(s){return s.numFailures?S.reject(s.failures[0]):s.lastResult}).then(function(s){if(u)try{Z(n,u,s)}catch{}return s})},e.prototype.upsert=function(n,t){var r=this,i=this.schema.primKey.keyPath;return this._trans(\"readwrite\",function(a){return r.core.get({trans:a,key:n}).then(function(u){var o=u??{};return ar(o,t),i&&Z(o,i,n),r.core.mutate({trans:a,type:\"put\",values:[o],keys:[n],upsert:!0,updates:{keys:[n],changeSpecs:[t]}}).then(function(s){return s.numFailures?S.reject(s.failures[0]):!!u})})})},e.prototype.update=function(n,t){if(typeof n==\"object\"&&!W(n)){var r=oe(n,this.schema.primKey.keyPath);return r===void 0?U(new D.InvalidArgument(\"Given object does not contain its primary key\")):this.where(\":id\").equals(r).modify(t)}else return this.where(\":id\").equals(n).modify(t)},e.prototype.put=function(n,t){var r=this,i=this.schema.primKey,a=i.auto,u=i.keyPath,o=n;return u&&a&&(o=bn(u)(n)),this._trans(\"readwrite\",function(s){return r.core.mutate({trans:s,type:\"put\",values:[o],keys:t!=null?[t]:null})}).then(function(s){return s.numFailures?S.reject(s.failures[0]):s.lastResult}).then(function(s){if(u)try{Z(n,u,s)}catch{}return s})},e.prototype.delete=function(n){var t=this;return this._trans(\"readwrite\",function(r){return t.core.mutate({trans:r,type:\"delete\",keys:[n]}).then(function(i){return wn(t,[n],i)}).then(function(i){return i.numFailures?S.reject(i.failures[0]):void 0})})},e.prototype.clear=function(){var n=this;return this._trans(\"readwrite\",function(t){return n.core.mutate({trans:t,type:\"deleteRange\",range:nr}).then(function(r){return wn(n,null,r)})}).then(function(t){return t.numFailures?S.reject(t.failures[0]):void 0})},e.prototype.bulkGet=function(n){var t=this;return this._trans(\"readonly\",function(r){return t.core.getMany({keys:n,trans:r}).then(function(i){return i.map(function(a){return t.hook.reading.fire(a)})})})},e.prototype.bulkAdd=function(n,t,r){var i=this,a=Array.isArray(t)?t:void 0;r=r||(a?void 0:t);var u=r?r.allKeys:void 0;return this._trans(\"readwrite\",function(o){var s=i.schema.primKey,c=s.auto,f=s.keyPath;if(f&&a)throw new D.InvalidArgument(\"bulkAdd(): keys argument invalid on tables with inbound keys\");if(a&&a.length!==n.length)throw new D.InvalidArgument(\"Arguments objects and keys must have the same length\");var h=n.length,v=f&&c?n.map(bn(f)):n;return i.core.mutate({trans:o,type:\"add\",keys:a,values:v,wantResults:u}).then(function(g){var l=g.numFailures,d=g.results,y=g.lastResult,p=g.failures,_=u?d:y;if(l===0)return _;throw new Ne(\"\".concat(i.name,\".bulkAdd(): \").concat(l,\" of \").concat(h,\" operations failed\"),p)})})},e.prototype.bulkPut=function(n,t,r){var i=this,a=Array.isArray(t)?t:void 0;r=r||(a?void 0:t);var u=r?r.allKeys:void 0;return this._trans(\"readwrite\",function(o){var s=i.schema.primKey,c=s.auto,f=s.keyPath;if(f&&a)throw new D.InvalidArgument(\"bulkPut(): keys argument invalid on tables with inbound keys\");if(a&&a.length!==n.length)throw new D.InvalidArgument(\"Arguments objects and keys must have the same length\");var h=n.length,v=f&&c?n.map(bn(f)):n;return i.core.mutate({trans:o,type:\"put\",keys:a,values:v,wantResults:u}).then(function(g){var l=g.numFailures,d=g.results,y=g.lastResult,p=g.failures,_=u?d:y;if(l===0)return _;throw new Ne(\"\".concat(i.name,\".bulkPut(): \").concat(l,\" of \").concat(h,\" operations failed\"),p)})})},e.prototype.bulkUpdate=function(n){var t=this,r=this.core,i=n.map(function(o){return o.key}),a=n.map(function(o){return o.changes}),u=[];return this._trans(\"readwrite\",function(o){return r.getMany({trans:o,keys:i,cache:\"clone\"}).then(function(s){var c=[],f=[];n.forEach(function(v,g){var l=v.key,d=v.changes,y=s[g];if(y){for(var p=0,_=Object.keys(d);p<_.length;p++){var w=_[p],m=d[w];if(w===t.schema.primKey.keyPath){if(M(m,l)!==0)throw new D.Constraint(\"Cannot update primary key in bulkUpdate()\")}else Z(y,w,m)}u.push(g),c.push(l),f.push(y)}});var h=c.length;return r.mutate({trans:o,type:\"put\",keys:c,values:f,updates:{keys:i,changeSpecs:a}}).then(function(v){var g=v.numFailures,l=v.failures;if(g===0)return h;for(var d=0,y=Object.keys(l);d<y.length;d++){var p=y[d],_=u[Number(p)];if(_!=null){var w=l[p];delete l[p],l[_]=w}}throw new Ne(\"\".concat(t.name,\".bulkUpdate(): \").concat(g,\" of \").concat(h,\" operations failed\"),l)})})})},e.prototype.bulkDelete=function(n){var t=this,r=n.length;return this._trans(\"readwrite\",function(i){return t.core.mutate({trans:i,type:\"delete\",keys:n}).then(function(a){return wn(t,n,a)})}).then(function(i){var a=i.numFailures,u=i.lastResult,o=i.failures;if(a===0)return u;throw new Ne(\"\".concat(t.name,\".bulkDelete(): \").concat(a,\" of \").concat(r,\" operations failed\"),o)})},e})();function Ze(e){var n={},t=function(o,s){if(s){for(var c=arguments.length,f=new Array(c-1);--c;)f[c-1]=arguments[c];return n[o].subscribe.apply(null,f),e}else if(typeof o==\"string\")return n[o]};t.addEventType=a;for(var r=1,i=arguments.length;r<i;++r)a(arguments[r]);return t;function a(o,s,c){if(typeof o==\"object\")return u(o);s||(s=Xr),c||(c=F);var f={subscribers:[],fire:c,subscribe:function(h){f.subscribers.indexOf(h)===-1&&(f.subscribers.push(h),f.fire=s(f.fire,h))},unsubscribe:function(h){f.subscribers=f.subscribers.filter(function(v){return v!==h}),f.fire=f.subscribers.reduce(s,c)}};return n[o]=t[o]=f,f}function u(o){$(o).forEach(function(s){var c=o[s];if(W(c))a(s,o[s][0],o[s][1]);else if(c===\"asap\")var f=a(s,Qe,function(){for(var v=arguments.length,g=new Array(v);v--;)g[v]=arguments[v];f.subscribers.forEach(function(l){Bt(function(){l.apply(null,g)})})});else throw new D.InvalidArgument(\"Invalid event config\")})}}function qe(e,n){return Me(n).from({prototype:e}),n}function li(e){return qe(ur.prototype,function(t,r,i){this.db=e,this._tx=i,this.name=t,this.schema=r,this.hook=e._allTables[t]?e._allTables[t].hook:Ze(null,{creating:[$r,F],reading:[Yr,Qe],updating:[Hr,F],deleting:[Qr,F]})})}function We(e,n){return!(e.filter||e.algorithm||e.or)&&(n?e.justLimit:!e.replayFilter)}function ut(e,n){e.filter=Pe(e.filter,n)}function ot(e,n,t){var r=e.replayFilter;e.replayFilter=r?function(){return Pe(r(),n())}:n,e.justLimit=t&&!r}function fi(e,n){e.isMatch=Pe(e.isMatch,n)}function _n(e,n){if(e.isPrimKey)return n.primaryKey;var t=n.getIndexByKeyPath(e.index);if(!t)throw new D.Schema(\"KeyPath \"+e.index+\" on object store \"+n.name+\" is not indexed\");return t}function or(e,n,t){var r=_n(e,n.schema);return n.openCursor({trans:t,values:!e.keysOnly,reverse:e.dir===\"prev\",unique:!!e.unique,query:{index:r,range:e.range}})}function xn(e,n,t,r){var i=e.replayFilter?Pe(e.filter,e.replayFilter()):e.filter;if(e.or){var a={},u=function(o,s,c){if(!i||i(s,c,function(v){return s.stop(v)},function(v){return s.fail(v)})){var f=s.primaryKey,h=\"\"+f;h===\"[object ArrayBuffer]\"&&(h=\"\"+new Uint8Array(f)),ee(a,h)||(a[h]=!0,n(o,s,c))}};return Promise.all([e.or._iterate(u,t),sr(or(e,r,t),e.algorithm,u,!e.keysOnly&&e.valueMapper)])}else return sr(or(e,r,t),Pe(e.algorithm,i),n,!e.keysOnly&&e.valueMapper)}function sr(e,n,t,r){var i=r?function(u,o,s){return t(r(u),o,s)}:t,a=L(i);return e.then(function(u){if(u)return u.start(function(){var o=function(){return u.continue()};(!n||n(u,function(s){return o=s},function(s){u.stop(s),o=F},function(s){u.fail(s),o=F}))&&a(u.value,u,function(s){return o=s}),o()})})}var hi=(function(){function e(){}return e.prototype._read=function(n,t){var r=this._ctx;return r.error?r.table._trans(null,U.bind(null,r.error)):r.table._trans(\"readonly\",n).then(t)},e.prototype._write=function(n){var t=this._ctx;return t.error?t.table._trans(null,U.bind(null,t.error)):t.table._trans(\"readwrite\",n,\"locked\")},e.prototype._addAlgorithm=function(n){var t=this._ctx;t.algorithm=Pe(t.algorithm,n)},e.prototype._iterate=function(n,t){return xn(this._ctx,n,t,this._ctx.table.core)},e.prototype.clone=function(n){var t=Object.create(this.constructor.prototype),r=Object.create(this._ctx);return n&&q(r,n),t._ctx=r,t},e.prototype.raw=function(){return this._ctx.valueMapper=null,this},e.prototype.each=function(n){var t=this._ctx;return this._read(function(r){return xn(t,n,r,t.table.core)})},e.prototype.count=function(n){var t=this;return this._read(function(r){var i=t._ctx,a=i.table.core;if(We(i,!0))return a.count({trans:r,query:{index:_n(i,a.schema),range:i.range}}).then(function(o){return Math.min(o,i.limit)});var u=0;return xn(i,function(){return++u,!1},r,a).then(function(){return u})}).then(n)},e.prototype.sortBy=function(n,t){var r=n.split(\".\").reverse(),i=r[0],a=r.length-1;function u(c,f){return f?u(c[r[f]],f-1):c[i]}var o=this._ctx.dir===\"next\"?1:-1;function s(c,f){var h=u(c,a),v=u(f,a);return M(h,v)*o}return this.toArray(function(c){return c.slice().sort(s)}).then(t)},e.prototype.toArray=function(n){var t=this;return this._read(function(r){var i=t._ctx;if(We(i,!0)&&i.limit>0){var a=i.valueMapper,u=_n(i,i.table.core.schema);return i.table.core.query({trans:r,limit:i.limit,values:!0,direction:i.dir===\"prev\"?\"prev\":void 0,query:{index:u,range:i.range}}).then(function(s){var c=s.result;return a?c.map(a):c})}else{var o=[];return xn(i,function(s){return o.push(s)},r,i.table.core).then(function(){return o})}},n)},e.prototype.offset=function(n){var t=this._ctx;return n<=0?this:(t.offset+=n,We(t)?ot(t,function(){var r=n;return function(i,a){return r===0?!0:r===1?(--r,!1):(a(function(){i.advance(r),r=0}),!1)}}):ot(t,function(){var r=n;return function(){return--r<0}}),this)},e.prototype.limit=function(n){return this._ctx.limit=Math.min(this._ctx.limit,n),ot(this._ctx,function(){var t=n;return function(r,i,a){return--t<=0&&i(a),t>=0}},!0),this},e.prototype.until=function(n,t){return ut(this._ctx,function(r,i,a){return n(r.value)?(i(a),t):!0}),this},e.prototype.first=function(n){return this.limit(1).toArray(function(t){return t[0]}).then(n)},e.prototype.last=function(n){return this.reverse().first(n)},e.prototype.filter=function(n){return ut(this._ctx,function(t){return n(t.value)}),fi(this._ctx,n),this},e.prototype.and=function(n){return this.filter(n)},e.prototype.or=function(n){return new this.db.WhereClause(this._ctx.table,n,this)},e.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir===\"prev\"?\"next\":\"prev\",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},e.prototype.desc=function(){return this.reverse()},e.prototype.eachKey=function(n){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(r,i){n(i.key,i)})},e.prototype.eachUniqueKey=function(n){return this._ctx.unique=\"unique\",this.eachKey(n)},e.prototype.eachPrimaryKey=function(n){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(r,i){n(i.primaryKey,i)})},e.prototype.keys=function(n){var t=this._ctx;t.keysOnly=!t.isMatch;var r=[];return this.each(function(i,a){r.push(a.key)}).then(function(){return r}).then(n)},e.prototype.primaryKeys=function(n){var t=this._ctx;if(We(t,!0)&&t.limit>0)return this._read(function(i){var a=_n(t,t.table.core.schema);return t.table.core.query({trans:i,values:!1,limit:t.limit,direction:t.dir===\"prev\"?\"prev\":void 0,query:{index:a,range:t.range}})}).then(function(i){var a=i.result;return a}).then(n);t.keysOnly=!t.isMatch;var r=[];return this.each(function(i,a){r.push(a.primaryKey)}).then(function(){return r}).then(n)},e.prototype.uniqueKeys=function(n){return this._ctx.unique=\"unique\",this.keys(n)},e.prototype.firstKey=function(n){return this.limit(1).keys(function(t){return t[0]}).then(n)},e.prototype.lastKey=function(n){return this.reverse().firstKey(n)},e.prototype.distinct=function(){var n=this._ctx,t=n.index&&n.table.schema.idxByName[n.index];if(!t||!t.multi)return this;var r={};return ut(this._ctx,function(i){var a=i.primaryKey.toString(),u=ee(r,a);return r[a]=!0,!u}),this},e.prototype.modify=function(n){var t=this,r=this._ctx;return this._write(function(i){var a;typeof n==\"function\"?a=n:a=function(p){return ar(p,n)};var u=r.table.core,o=u.schema.primaryKey,s=o.outbound,c=o.extractKey,f=200,h=t.db._options.modifyChunkSize;h&&(typeof h==\"object\"?f=h[u.name]||h[\"*\"]||200:f=h);var v=[],g=0,l=[],d=function(p,_){var w=_.failures,m=_.numFailures;g+=p-m;for(var b=0,A=$(w);b<A.length;b++){var x=A[b];v.push(w[x])}},y=n===cr;return t.clone().primaryKeys().then(function(p){var _=We(r)&&r.limit===1/0&&(typeof n!=\"function\"||y)&&{index:r.index,range:r.range},w=function(m){var b=Math.min(f,p.length-m),A=p.slice(m,m+b);return(y?Promise.resolve([]):u.getMany({trans:i,keys:A,cache:\"immutable\"})).then(function(x){var E=[],K=[],B=s?[]:null,T=y?A:[];if(!y)for(var k=0;k<b;++k){var I=x[k],R={value:_e(I),primKey:p[m+k]};a.call(R,R.value,R)!==!1&&(R.value==null?T.push(p[m+k]):!s&&M(c(I),c(R.value))!==0?(T.push(p[m+k]),E.push(R.value)):(K.push(R.value),s&&B.push(p[m+k])))}return Promise.resolve(E.length>0&&u.mutate({trans:i,type:\"add\",values:E}).then(function(j){for(var C in j.failures)T.splice(parseInt(C),1);d(E.length,j)})).then(function(){return(K.length>0||_&&typeof n==\"object\")&&u.mutate({trans:i,type:\"put\",keys:B,values:K,criteria:_,changeSpec:typeof n!=\"function\"&&n,isAdditionalChunk:m>0}).then(function(j){return d(K.length,j)})}).then(function(){return(T.length>0||_&&y)&&u.mutate({trans:i,type:\"delete\",keys:T,criteria:_,isAdditionalChunk:m>0}).then(function(j){return wn(r.table,T,j)}).then(function(j){return d(T.length,j)})}).then(function(){return p.length>m+b&&w(m+f)})})};return w(0).then(function(){if(v.length>0)throw new sn(\"Error modifying one or more objects\",v,g,l);return p.length})})})},e.prototype.delete=function(){var n=this._ctx,t=n.range;return We(n)&&!n.table.schema.yProps&&(n.isPrimKey||t.type===3)?this._write(function(r){var i=n.table.core.schema.primaryKey,a=t;return n.table.core.count({trans:r,query:{index:i,range:a}}).then(function(u){return n.table.core.mutate({trans:r,type:\"deleteRange\",range:a}).then(function(o){var s=o.failures,c=o.numFailures;if(c)throw new sn(\"Could not delete some values\",Object.keys(s).map(function(f){return s[f]}),u-c);return u-c})})}):this.modify(cr)},e})(),cr=function(e,n){return n.value=null};function di(e){return qe(hi.prototype,function(t,r){this.db=e;var i=nr,a=null;if(r)try{i=r()}catch(c){a=c}var u=t._ctx,o=u.table,s=o.hook.reading.fire;this._ctx={table:o,index:u.index,isPrimKey:!u.index||o.schema.primKey.keyPath&&u.index===o.schema.primKey.name,range:i,keysOnly:!1,dir:\"next\",unique:\"\",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:a,or:u.or,valueMapper:s!==Qe?s:null}})}function vi(e,n){return e<n?-1:e===n?0:1}function pi(e,n){return e>n?-1:e===n?0:1}function ne(e,n,t){var r=e instanceof fr?new e.Collection(e):e;return r._ctx.error=t?new t(n):new TypeError(n),r}function Ue(e){return new e.Collection(e,function(){return lr(\"\")}).limit(0)}function yi(e){return e===\"next\"?function(n){return n.toUpperCase()}:function(n){return n.toLowerCase()}}function mi(e){return e===\"next\"?function(n){return n.toLowerCase()}:function(n){return n.toUpperCase()}}function gi(e,n,t,r,i,a){for(var u=Math.min(e.length,r.length),o=-1,s=0;s<u;++s){var c=n[s];if(c!==r[s])return i(e[s],t[s])<0?e.substr(0,s)+t[s]+t.substr(s+1):i(e[s],r[s])<0?e.substr(0,s)+r[s]+t.substr(s+1):o>=0?e.substr(0,o)+n[o]+t.substr(o+1):null;i(e[s],c)<0&&(o=s)}return u<r.length&&a===\"next\"?e+t.substr(e.length):u<e.length&&a===\"prev\"?e.substr(0,t.length):o<0?null:e.substr(0,o)+r[o]+t.substr(o+1)}function En(e,n,t,r){var i,a,u,o,s,c,f,h=t.length;if(!t.every(function(d){return typeof d==\"string\"}))return ne(e,qt);function v(d){i=yi(d),a=mi(d),u=d===\"next\"?vi:pi;var y=t.map(function(p){return{lower:a(p),upper:i(p)}}).sort(function(p,_){return u(p.lower,_.lower)});o=y.map(function(p){return p.upper}),s=y.map(function(p){return p.lower}),c=d,f=d===\"next\"?\"\":r}v(\"next\");var g=new e.Collection(e,function(){return ye(o[0],s[h-1]+r)});g._ondirectionchange=function(d){v(d)};var l=0;return g._addAlgorithm(function(d,y,p){var _=d.key;if(typeof _!=\"string\")return!1;var w=a(_);if(n(w,s,l))return!0;for(var m=null,b=l;b<h;++b){var A=gi(_,w,o[b],s[b],u,c);A===null&&m===null?l=b+1:(m===null||u(m,A)>0)&&(m=A)}return y(m!==null?function(){d.continue(m+f)}:p),!1}),g}function ye(e,n,t,r){return{type:2,lower:e,upper:n,lowerOpen:t,upperOpen:r}}function lr(e){return{type:1,lower:e,upper:e}}var fr=(function(){function e(){}return Object.defineProperty(e.prototype,\"Collection\",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),e.prototype.between=function(n,t,r,i){r=r!==!1,i=i===!0;try{return this._cmp(n,t)>0||this._cmp(n,t)===0&&(r||i)&&!(r&&i)?Ue(this):new this.Collection(this,function(){return ye(n,t,!r,!i)})}catch{return ne(this,le)}},e.prototype.equals=function(n){return n==null?ne(this,le):new this.Collection(this,function(){return lr(n)})},e.prototype.above=function(n){return n==null?ne(this,le):new this.Collection(this,function(){return ye(n,void 0,!0)})},e.prototype.aboveOrEqual=function(n){return n==null?ne(this,le):new this.Collection(this,function(){return ye(n,void 0,!1)})},e.prototype.below=function(n){return n==null?ne(this,le):new this.Collection(this,function(){return ye(void 0,n,!1,!0)})},e.prototype.belowOrEqual=function(n){return n==null?ne(this,le):new this.Collection(this,function(){return ye(void 0,n)})},e.prototype.startsWith=function(n){return typeof n!=\"string\"?ne(this,qt):this.between(n,n+Oe,!0,!0)},e.prototype.startsWithIgnoreCase=function(n){return n===\"\"?this.startsWith(n):En(this,function(t,r){return t.indexOf(r[0])===0},[n],Oe)},e.prototype.equalsIgnoreCase=function(n){return En(this,function(t,r){return t===r[0]},[n],\"\")},e.prototype.anyOfIgnoreCase=function(){var n=se.apply(Fe,arguments);return n.length===0?Ue(this):En(this,function(t,r){return r.indexOf(t)!==-1},n,\"\")},e.prototype.startsWithAnyOfIgnoreCase=function(){var n=se.apply(Fe,arguments);return n.length===0?Ue(this):En(this,function(t,r){return r.some(function(i){return t.indexOf(i)===0})},n,Oe)},e.prototype.anyOf=function(){var n=this,t=se.apply(Fe,arguments),r=this._cmp;try{t.sort(r)}catch{return ne(this,le)}if(t.length===0)return Ue(this);var i=new this.Collection(this,function(){return ye(t[0],t[t.length-1])});i._ondirectionchange=function(u){r=u===\"next\"?n._ascending:n._descending,t.sort(r)};var a=0;return i._addAlgorithm(function(u,o,s){for(var c=u.key;r(c,t[a])>0;)if(++a,a===t.length)return o(s),!1;return r(c,t[a])===0?!0:(o(function(){u.continue(t[a])}),!1)}),i},e.prototype.notEqual=function(n){return this.inAnyRange([[rt,n],[n,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var n=se.apply(Fe,arguments);if(n.length===0)return new this.Collection(this);try{n.sort(this._ascending)}catch{return ne(this,le)}var t=n.reduce(function(r,i){return r?r.concat([[r[r.length-1][1],i]]):[[rt,i]]},null);return t.push([n[n.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},e.prototype.inAnyRange=function(n,t){var r=this,i=this._cmp,a=this._ascending,u=this._descending,o=this._min,s=this._max;if(n.length===0)return Ue(this);if(!n.every(function(b){return b[0]!==void 0&&b[1]!==void 0&&a(b[0],b[1])<=0}))return ne(this,\"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower\",D.InvalidArgument);var c=!t||t.includeLowers!==!1,f=t&&t.includeUppers===!0;function h(b,A){for(var x=0,E=b.length;x<E;++x){var K=b[x];if(i(A[0],K[1])<0&&i(A[1],K[0])>0){K[0]=o(K[0],A[0]),K[1]=s(K[1],A[1]);break}}return x===E&&b.push(A),b}var v=a;function g(b,A){return v(b[0],A[0])}var l;try{l=n.reduce(h,[]),l.sort(g)}catch{return ne(this,le)}var d=0,y=f?function(b){return a(b,l[d][1])>0}:function(b){return a(b,l[d][1])>=0},p=c?function(b){return u(b,l[d][0])>0}:function(b){return u(b,l[d][0])>=0};function _(b){return!y(b)&&!p(b)}var w=y,m=new this.Collection(this,function(){return ye(l[0][0],l[l.length-1][1],!c,!f)});return m._ondirectionchange=function(b){b===\"next\"?(w=y,v=a):(w=p,v=u),l.sort(g)},m._addAlgorithm(function(b,A,x){for(var E=b.key;w(E);)if(++d,d===l.length)return A(x),!1;return _(E)?!0:(r._cmp(E,l[d][1])===0||r._cmp(E,l[d][0])===0||A(function(){v===a?b.continue(l[d][0]):b.continue(l[d][1])}),!1)}),m},e.prototype.startsWithAnyOf=function(){var n=se.apply(Fe,arguments);return n.every(function(t){return typeof t==\"string\"})?n.length===0?Ue(this):this.inAnyRange(n.map(function(t){return[t,t+Oe]})):ne(this,\"startsWithAnyOf() only works with strings\")},e})();function bi(e){return qe(fr.prototype,function(t,r,i){if(this.db=e,this._ctx={table:t,index:r===\":id\"?null:r,or:i},this._cmp=this._ascending=M,this._descending=function(a,u){return M(u,a)},this._max=function(a,u){return M(a,u)>0?a:u},this._min=function(a,u){return M(a,u)<0?a:u},this._IDBKeyRange=e._deps.IDBKeyRange,!this._IDBKeyRange)throw new D.MissingAPI})}function ie(e){return L(function(n){return en(n),e(n.target.error),!1})}function en(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var Sn=\"storagemutated\",st=\"x-storagemutated-1\",me=Ze(null,Sn),wi=(function(){function e(){}return e.prototype._lock=function(){return Ye(!O.global),++this._reculock,this._reculock===1&&!O.global&&(O.lockOwnerFor=this),this},e.prototype._unlock=function(){if(Ye(!O.global),--this._reculock===0)for(O.global||(O.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var n=this._blockedFuncs.shift();try{ke(n[1],n[0])}catch{}}return this},e.prototype._locked=function(){return this._reculock&&O.lockOwnerFor!==this},e.prototype.create=function(n){var t=this;if(!this.mode)return this;var r=this.db.idbdb,i=this.db._state.dbOpenError;if(Ye(!this.idbtrans),!n&&!r)switch(i&&i.name){case\"DatabaseClosedError\":throw new D.DatabaseClosed(i);case\"MissingAPIError\":throw new D.MissingAPI(i.message,i);default:throw new D.OpenFailed(i)}if(!this.active)throw new D.TransactionInactive;return Ye(this._completion._state===null),n=this.idbtrans=n||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),n.onerror=L(function(a){en(a),t._reject(n.error)}),n.onabort=L(function(a){en(a),t.active&&t._reject(new D.Abort(n.error)),t.active=!1,t.on(\"abort\").fire(a)}),n.oncomplete=L(function(){t.active=!1,t._resolve(),\"mutatedParts\"in n&&me.storagemutated.fire(n.mutatedParts)}),this},e.prototype._promise=function(n,t,r){var i=this;if(n===\"readwrite\"&&this.mode!==\"readwrite\")return U(new D.ReadOnly(\"Transaction is readonly\"));if(!this.active)return U(new D.TransactionInactive);if(this._locked())return new S(function(u,o){i._blockedFuncs.push([function(){i._promise(n,t,r).then(u,o)},O])});if(r)return de(function(){var u=new S(function(o,s){i._lock();var c=t(o,s,i);c&&c.then&&c.then(o,s)});return u.finally(function(){return i._unlock()}),u._lib=!0,u});var a=new S(function(u,o){var s=t(u,o,i);s&&s.then&&s.then(u,o)});return a._lib=!0,a},e.prototype._root=function(){return this.parent?this.parent._root():this},e.prototype.waitFor=function(n){var t=this._root(),r=S.resolve(n);if(t._waitingFor)t._waitingFor=t._waitingFor.then(function(){return r});else{t._waitingFor=r,t._waitingQueue=[];var i=t.idbtrans.objectStore(t.storeNames[0]);(function u(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(i.get(-1/0).onsuccess=u)})()}var a=t._waitingFor;return new S(function(u,o){r.then(function(s){return t._waitingQueue.push(L(u.bind(null,s)))},function(s){return t._waitingQueue.push(L(o.bind(null,s)))}).finally(function(){t._waitingFor===a&&(t._waitingFor=null)})})},e.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new D.Abort))},e.prototype.table=function(n){var t=this._memoizedTables||(this._memoizedTables={});if(ee(t,n))return t[n];var r=this.schema[n];if(!r)throw new D.NotFound(\"Table \"+n+\" not part of transaction\");var i=new this.db.Table(n,r,this);return i.core=this.db.core.table(n),t[n]=i,i},e})();function _i(e){return qe(wi.prototype,function(t,r,i,a,u){var o=this;t!==\"readonly\"&&r.forEach(function(s){var c,f=(c=i[s])===null||c===void 0?void 0:c.yProps;f&&(r=r.concat(f.map(function(h){return h.updatesTable})))}),this.db=e,this.mode=t,this.storeNames=r,this.schema=i,this.chromeTransactionDurability=a,this.idbtrans=null,this.on=Ze(this,\"complete\",\"error\",\"abort\"),this.parent=u||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new S(function(s,c){o._resolve=s,o._reject=c}),this._completion.then(function(){o.active=!1,o.on.complete.fire()},function(s){var c=o.active;return o.active=!1,o.on.error.fire(s),o.parent?o.parent._reject(s):c&&o.idbtrans&&o.idbtrans.abort(),U(s)})})}function ct(e,n,t,r,i,a,u,o){return{name:e,keyPath:n,unique:t,multi:r,auto:i,compound:a,src:(t&&!u?\"&\":\"\")+(r?\"*\":\"\")+(i?\"++\":\"\")+hr(n),type:o}}function hr(e){return typeof e==\"string\"?e:e?\"[\"+[].join.call(e,\"+\")+\"]\":\"\"}function lt(e,n,t){return{name:e,primKey:n,indexes:t,mappedClass:null,idxByName:Br(t,function(r){return[r.name,r]})}}function xi(e){return e.length===1?e[0]:e}var nn=function(e){try{return e.only([[]]),nn=function(){return[[]]},[[]]}catch{return nn=function(){return Oe},Oe}};function ft(e){return e==null?function(){}:typeof e==\"string\"?Ei(e):function(n){return oe(n,e)}}function Ei(e){var n=e.split(\".\");return n.length===1?function(t){return t[e]}:function(t){return oe(t,e)}}function dr(e){return[].slice.call(e)}var Si=0;function tn(e){return e==null?\":id\":typeof e==\"string\"?e:\"[\".concat(e.join(\"+\"),\"]\")}function Ai(e,n,t){function r(v,g){var l=dr(v.objectStoreNames),d=l.length>0?g.objectStore(l[0]):{};return{schema:{name:v.name,tables:l.map(function(y){return g.objectStore(y)}).map(function(y){var p=y.keyPath,_=y.autoIncrement,w=W(p),m=p==null,b={},A={name:y.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:m,compound:w,keyPath:p,autoIncrement:_,unique:!0,extractKey:ft(p)},indexes:dr(y.indexNames).map(function(x){return y.index(x)}).map(function(x){var E=x.name,K=x.unique,B=x.multiEntry,T=x.keyPath,k=W(T),I={name:E,compound:k,keyPath:T,unique:K,multiEntry:B,extractKey:ft(T)};return b[tn(T)]=I,I}),getIndexByKeyPath:function(x){return b[tn(x)]}};return b[\":id\"]=A.primaryKey,p!=null&&(b[tn(p)]=A.primaryKey),A})},hasGetAll:l.length>0&&\"getAll\"in d&&!(typeof navigator<\"u\"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\\/|Edge\\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\\/(\\d*)/))[1]<604),hasIdb3Features:\"getAllRecords\"in d}}function i(v){if(v.type===3)return null;if(v.type===4)throw new Error(\"Cannot convert never type to IDBKeyRange\");var g=v.lower,l=v.upper,d=v.lowerOpen,y=v.upperOpen,p=g===void 0?l===void 0?null:n.upperBound(l,!!y):l===void 0?n.lowerBound(g,!!d):n.bound(g,l,!!d,!!y);return p}function a(v){var g=v.name;function l(p){var _=p.trans,w=p.type,m=p.keys,b=p.values,A=p.range;return new Promise(function(x,E){x=L(x);var K=_.objectStore(g),B=K.keyPath==null,T=w===\"put\"||w===\"add\";if(!T&&w!==\"delete\"&&w!==\"deleteRange\")throw new Error(\"Invalid operation type: \"+w);var k=(m||b||{length:1}).length;if(m&&b&&m.length!==b.length)throw new Error(\"Given keys array must have same length as given values array.\");if(k===0)return x({numFailures:0,failures:{},results:[],lastResult:void 0});var I,R=[],j=[],C=0,Y=function(H){++C,en(H)};if(w===\"deleteRange\"){if(A.type===4)return x({numFailures:C,failures:j,results:[],lastResult:void 0});A.type===3?R.push(I=K.clear()):R.push(I=K.delete(i(A)))}else{var te=T?B?[b,m]:[b,null]:[m,null],J=te[0],De=te[1];if(T)for(var G=0;G<k;++G)R.push(I=De&&De[G]!==void 0?K[w](J[G],De[G]):K[w](J[G])),I.onerror=Y;else for(var G=0;G<k;++G)R.push(I=K[w](J[G])),I.onerror=Y}var re=function(H){var Ie=H.target.result;R.forEach(function(ae,Mn){return ae.error!=null&&(j[Mn]=ae.error)}),x({numFailures:C,failures:j,results:w===\"delete\"?m:R.map(function(ae){return ae.result}),lastResult:Ie})};I.onerror=function(H){Y(H),re(H)},I.onsuccess=re})}function d(p){var _=p.trans,w=p.values,m=p.query,b=p.reverse,A=p.unique;return new Promise(function(x,E){x=L(x);var K=m.index,B=m.range,T=_.objectStore(g),k=K.isPrimaryKey?T:T.index(K.name),I=b?A?\"prevunique\":\"prev\":A?\"nextunique\":\"next\",R=w||!(\"openKeyCursor\"in k)?k.openCursor(i(B),I):k.openKeyCursor(i(B),I);R.onerror=ie(E),R.onsuccess=L(function(j){var C=R.result;if(!C){x(null);return}C.___id=++Si,C.done=!1;var Y=C.continue.bind(C),te=C.continuePrimaryKey;te&&(te=te.bind(C));var J=C.advance.bind(C),De=function(){throw new Error(\"Cursor not started\")},G=function(){throw new Error(\"Cursor not stopped\")};C.trans=_,C.stop=C.continue=C.continuePrimaryKey=C.advance=De,C.fail=L(E),C.next=function(){var re=this,H=1;return this.start(function(){return H--?re.continue():re.stop()}).then(function(){return re})},C.start=function(re){var H=new Promise(function(ae,Mn){ae=L(ae),R.onerror=ie(Mn),C.fail=Mn,C.stop=function(da){C.stop=C.continue=C.continuePrimaryKey=C.advance=G,ae(da)}}),Ie=function(){if(R.result)try{re()}catch(ae){C.fail(ae)}else C.done=!0,C.start=function(){throw new Error(\"Cursor behind last entry\")},C.stop()};return R.onsuccess=L(function(ae){R.onsuccess=Ie,Ie()}),C.continue=Y,C.continuePrimaryKey=te,C.advance=J,Ie(),H},x(C)},E)})}function y(p,_){return function(w){return new Promise(function(m,b){var A;m=L(m);var x=w.trans,E=w.values,K=w.limit,B=w.query,T=(A=w.direction)!==null&&A!==void 0?A:\"next\",k=K===1/0?void 0:K,I=B.index,R=B.range,j=x.objectStore(g),C=I.isPrimaryKey?j:j.index(I.name),Y=i(R);if(K===0)return m({result:[]});if(_){var te={query:Y,count:k,direction:T},J=E?C.getAll(te):C.getAllKeys(te);J.onsuccess=function(H){return m({result:H.target.result})},J.onerror=ie(b)}else if(p&&T===\"next\"){var J=E?C.getAll(Y,k):C.getAllKeys(Y,k);J.onsuccess=function(Ie){return m({result:Ie.target.result})},J.onerror=ie(b)}else{var De=0,G=E||!(\"openKeyCursor\"in C)?C.openCursor(Y,T):C.openKeyCursor(Y,T),re=[];G.onsuccess=function(){var H=G.result;if(!H)return m({result:re});if(re.push(E?H.value:H.primaryKey),++De===K)return m({result:re});H.continue()},G.onerror=ie(b)}})}}return{name:g,schema:v,mutate:l,getMany:function(p){var _=p.trans,w=p.keys;return new Promise(function(m,b){m=L(m);for(var A=_.objectStore(g),x=w.length,E=new Array(x),K=0,B=0,T,k=function(C){var Y=C.target;(E[Y._pos]=Y.result)!=null,++B===K&&m(E)},I=ie(b),R=0;R<x;++R){var j=w[R];j!=null&&(T=A.get(w[R]),T._pos=R,T.onsuccess=k,T.onerror=I,++K)}K===0&&m(E)})},get:function(p){var _=p.trans,w=p.key;return new Promise(function(m,b){m=L(m);var A=_.objectStore(g),x=A.get(w);x.onsuccess=function(E){return m(E.target.result)},x.onerror=ie(b)})},query:y(s,c),openCursor:d,count:function(p){var _=p.query,w=p.trans,m=_.index,b=_.range;return new Promise(function(A,x){var E=w.objectStore(g),K=m.isPrimaryKey?E:E.index(m.name),B=i(b),T=B?K.count(B):K.count();T.onsuccess=L(function(k){return A(k.target.result)}),T.onerror=ie(x)})}}}var u=r(e,t),o=u.schema,s=u.hasGetAll,c=u.hasIdb3Features,f=o.tables.map(function(v){return a(v)}),h={};return f.forEach(function(v){return h[v.name]=v}),{stack:\"dbcore\",transaction:e.transaction.bind(e),table:function(v){var g=h[v];if(!g)throw new Error(\"Table '\".concat(v,\"' not found\"));return h[v]},MIN_KEY:-1/0,MAX_KEY:nn(n),schema:o}}function Ki(e,n){return n.reduce(function(t,r){var i=r.create;return P(P({},t),i(t))},e)}function ki(e,n,t,r){var i=t.IDBKeyRange;t.indexedDB;var a=Ki(Ai(n,i,r),e.dbcore);return{dbcore:a}}function An(e,n){var t=n.db,r=ki(e._middlewares,t,e._deps,n);e.core=r.dbcore,e.tables.forEach(function(i){var a=i.name;e.core.schema.tables.some(function(u){return u.name===a})&&(i.core=e.core.table(a),e[a]instanceof e.Table&&(e[a].core=i.core))})}function Kn(e,n,t,r){t.forEach(function(i){var a=r[i];n.forEach(function(u){var o=It(u,i);(!o||\"value\"in o&&o.value===void 0)&&(u===e.Transaction.prototype||u instanceof e.Transaction?he(u,i,{get:function(){return this.table(i)},set:function(s){Dt(this,i,{value:s,writable:!0,configurable:!0,enumerable:!0})}}):u[i]=new e.Table(i,a))})})}function ht(e,n){n.forEach(function(t){for(var r in t)t[r]instanceof e.Table&&delete t[r]})}function Oi(e,n){return e._cfg.version-n._cfg.version}function Pi(e,n,t,r){var i=e._dbSchema;t.objectStoreNames.contains(\"$meta\")&&!i.$meta&&(i.$meta=lt(\"$meta\",pr(\"\")[0],[]),e._storeNames.push(\"$meta\"));var a=e._createTransaction(\"readwrite\",e._storeNames,i);a.create(t),a._completion.catch(r);var u=a._reject.bind(a),o=O.transless||O;de(function(){if(O.trans=a,O.transless=o,n===0)$(i).forEach(function(s){vt(t,s,i[s].primKey,i[s].indexes)}),An(e,t),S.follow(function(){return e.on.populate.fire(a)}).catch(u);else return An(e,t),Ci(e,a,n).then(function(s){return Di(e,s,a,t)}).catch(u)})}function Ti(e,n){vr(e._dbSchema,n),n.db.version%10===0&&!n.objectStoreNames.contains(\"$meta\")&&n.db.createObjectStore(\"$meta\").add(Math.ceil(n.db.version/10-1),\"version\");var t=On(e,e.idbdb,n);Pn(e,e._dbSchema,n);for(var r=dt(t,e._dbSchema),i=function(c){if(c.change.length||c.recreate)return console.warn(\"Unable to patch indexes of table \".concat(c.name,\" because it has changes on the type of index or primary key.\")),{value:void 0};var f=n.objectStore(c.name);c.add.forEach(function(h){ue&&console.debug(\"Dexie upgrade patch: Creating missing index \".concat(c.name,\".\").concat(h.src)),kn(f,h)})},a=0,u=r.change;a<u.length;a++){var o=u[a],s=i(o);if(typeof s==\"object\")return s.value}}function Ci(e,n,t){return n.storeNames.includes(\"$meta\")?n.table(\"$meta\").get(\"version\").then(function(r){return r??t}):S.resolve(t)}function Di(e,n,t,r){var i=[],a=e._versions,u=e._dbSchema=On(e,e.idbdb,r),o=a.filter(function(c){return c._cfg.version>=n});if(o.length===0)return S.resolve();o.forEach(function(c){i.push(function(){var f=u,h=c._cfg.dbschema;Pn(e,f,r),Pn(e,h,r),u=e._dbSchema=h;var v=dt(f,h);v.add.forEach(function(_){vt(r,_[0],_[1].primKey,_[1].indexes)}),v.change.forEach(function(_){if(_.recreate)throw new D.Upgrade(\"Not yet support for changing primary key\");var w=r.objectStore(_.name);_.add.forEach(function(m){return kn(w,m)}),_.change.forEach(function(m){w.deleteIndex(m.name),kn(w,m)}),_.del.forEach(function(m){return w.deleteIndex(m)})});var g=c._cfg.contentUpgrade;if(g&&c._cfg.version>n){An(e,r),t._memoizedTables={};var l=Mt(h);v.del.forEach(function(_){l[_]=f[_]}),ht(e,[e.Transaction.prototype]),Kn(e,[e.Transaction.prototype],$(l),l),t.schema=l;var d=Wn(g);d&&ze();var y,p=S.follow(function(){if(y=g(t),y&&d){var _=ve.bind(null,null);y.then(_,_)}});return y&&typeof y.then==\"function\"?S.resolve(y):p.then(function(){return y})}}),i.push(function(f){var h=c._cfg.dbschema;Ii(h,f),ht(e,[e.Transaction.prototype]),Kn(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),t.schema=e._dbSchema}),i.push(function(f){e.idbdb.objectStoreNames.contains(\"$meta\")&&(Math.ceil(e.idbdb.version/10)===c._cfg.version?(e.idbdb.deleteObjectStore(\"$meta\"),delete e._dbSchema.$meta,e._storeNames=e._storeNames.filter(function(h){return h!==\"$meta\"})):f.objectStore(\"$meta\").put(c._cfg.version,\"version\"))})});function s(){return i.length?S.resolve(i.shift()(t.idbtrans)).then(s):S.resolve()}return s().then(function(){vr(u,r)})}function dt(e,n){var t={del:[],add:[],change:[]},r;for(r in e)n[r]||t.del.push(r);for(r in n){var i=e[r],a=n[r];if(!i)t.add.push([r,a]);else{var u={name:r,def:a,recreate:!1,del:[],add:[],change:[]};if(\"\"+(i.primKey.keyPath||\"\")!=\"\"+(a.primKey.keyPath||\"\")||i.primKey.auto!==a.primKey.auto)u.recreate=!0,t.change.push(u);else{var o=i.idxByName,s=a.idxByName,c=void 0;for(c in o)s[c]||u.del.push(c);for(c in s){var f=o[c],h=s[c];f?f.src!==h.src&&u.change.push(h):u.add.push(h)}(u.del.length>0||u.add.length>0||u.change.length>0)&&t.change.push(u)}}}return t}function vt(e,n,t,r){var i=e.db.createObjectStore(n,t.keyPath?{keyPath:t.keyPath,autoIncrement:t.auto}:{autoIncrement:t.auto});return r.forEach(function(a){return kn(i,a)}),i}function vr(e,n){$(e).forEach(function(t){n.db.objectStoreNames.contains(t)||(ue&&console.debug(\"Dexie: Creating missing table\",t),vt(n,t,e[t].primKey,e[t].indexes))})}function Ii(e,n){[].slice.call(n.db.objectStoreNames).forEach(function(t){return e[t]==null&&n.db.deleteObjectStore(t)})}function kn(e,n){e.createIndex(n.name,n.keyPath,{unique:n.unique,multiEntry:n.multi})}function On(e,n,t){var r={},i=on(n.objectStoreNames,0);return i.forEach(function(a){for(var u=t.objectStore(a),o=u.keyPath,s=ct(hr(o),o||\"\",!0,!1,!!u.autoIncrement,o&&typeof o!=\"string\",!0),c=[],f=0;f<u.indexNames.length;++f){var h=u.index(u.indexNames[f]);o=h.keyPath;var v=ct(h.name,o,!!h.unique,!!h.multiEntry,!1,o&&typeof o!=\"string\",!1);c.push(v)}r[a]=lt(a,s,c)}),r}function Ri(e,n,t){e.verno=n.version/10;var r=e._dbSchema=On(e,n,t);e._storeNames=on(n.objectStoreNames,0),Kn(e,[e._allTables],$(r),r)}function Bi(e,n){var t=On(e,e.idbdb,n),r=dt(t,e._dbSchema);return!(r.add.length||r.change.some(function(i){return i.add.length||i.change.length}))}function Pn(e,n,t){for(var r=t.db.objectStoreNames,i=0;i<r.length;++i){var a=r[i],u=t.objectStore(a);e._hasGetAll=\"getAll\"in u;for(var o=0;o<u.indexNames.length;++o){var s=u.indexNames[o],c=u.index(s).keyPath,f=typeof c==\"string\"?c:\"[\"+on(c).join(\"+\")+\"]\";if(n[a]){var h=n[a].idxByName[f];h&&(h.name=s,delete n[a].idxByName[f],n[a].idxByName[s]=h)}}}typeof navigator<\"u\"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\\/|Edge\\/)/.test(navigator.userAgent)&&z.WorkerGlobalScope&&z instanceof z.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\\/(\\d*)/))[1]<604&&(e._hasGetAll=!1)}function pr(e){return e.split(\",\").map(function(n,t){var r,i=n.split(\":\"),a=(r=i[1])===null||r===void 0?void 0:r.trim();n=i[0].trim();var u=n.replace(/([&*]|\\+\\+)/g,\"\"),o=/^\\[/.test(u)?u.match(/^\\[(.*)\\]$/)[1].split(\"+\"):u;return ct(u,o||null,/\\&/.test(n),/\\*/.test(n),/\\+\\+/.test(n),W(o),t===0,a)})}var Mi=(function(){function e(){}return e.prototype._createTableSchema=function(n,t,r){return lt(n,t,r)},e.prototype._parseIndexSyntax=function(n){return pr(n)},e.prototype._parseStoresSpec=function(n,t){var r=this;$(n).forEach(function(i){if(n[i]!==null){var a=r._parseIndexSyntax(n[i]),u=a.shift();if(!u)throw new D.Schema(\"Invalid schema for table \"+i+\": \"+n[i]);if(u.unique=!0,u.multi)throw new D.Schema(\"Primary key cannot be multiEntry*\");a.forEach(function(s){if(s.auto)throw new D.Schema(\"Only primary key can be marked as autoIncrement (++)\");if(!s.keyPath)throw new D.Schema(\"Index must have a name and cannot be an empty string\")});var o=r._createTableSchema(i,u,a);t[i]=o}})},e.prototype.stores=function(n){var t=this.db;this._cfg.storesSource=this._cfg.storesSource?q(this._cfg.storesSource,n):n;var r=t._versions,i={},a={};return r.forEach(function(u){q(i,u._cfg.storesSource),a=u._cfg.dbschema={},u._parseStoresSpec(i,a)}),t._dbSchema=a,ht(t,[t._allTables,t,t.Transaction.prototype]),Kn(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],$(a),a),t._storeNames=$(a),this},e.prototype.upgrade=function(n){return this._cfg.contentUpgrade=$n(this._cfg.contentUpgrade||F,n),this},e})();function Fi(e){return qe(Mi.prototype,function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}var rn=ji();function ji(){if(typeof FinalizationRegistry<\"u\"&&typeof WeakRef<\"u\"){var e=new Set,n=new FinalizationRegistry(function(u){e.delete(u)}),t=function(){return Array.from(e).map(function(u){return u.deref()}).filter(function(u){return u!==void 0})},r=function(u){var o=new WeakRef(u._novip);if(e.add(o),n.register(u._novip,o,o),e.size>u._options.maxConnections){var s=e.values().next().value;e.delete(s),n.unregister(s)}},i=function(u){if(u)for(var o=e.values(),s=o.next();!s.done;){var c=s.value;if(c.deref()===u._novip){e.delete(c),n.unregister(c);return}s=o.next()}};return{toArray:t,add:r,remove:i}}else{var a=[],t=function(){return a},r=function(c){a.push(c._novip)},i=function(c){if(c){var f=a.indexOf(c._novip);f!==-1&&a.splice(f,1)}};return{toArray:t,add:r,remove:i}}}function pt(e,n){var t=e._dbNamesDB;return t||(t=e._dbNamesDB=new fe(gn,{addons:[],indexedDB:e,IDBKeyRange:n}),t.version(1).stores({dbnames:\"name\"})),t.table(\"dbnames\")}function yt(e){return e&&typeof e.databases==\"function\"}function Ni(e){var n=e.indexedDB,t=e.IDBKeyRange;return yt(n)?Promise.resolve(n.databases()).then(function(r){return r.map(function(i){return i.name}).filter(function(i){return i!==gn})}):pt(n,t).toCollection().primaryKeys()}function Li(e,n){var t=e.indexedDB,r=e.IDBKeyRange;!yt(t)&&n!==gn&&pt(t,r).put({name:n}).catch(F)}function Vi(e,n){var t=e.indexedDB,r=e.IDBKeyRange;!yt(t)&&n!==gn&&pt(t,r).delete(n).catch(F)}function mt(e){return de(function(){return O.letThrough=!0,e()})}function zi(){var e=!navigator.userAgentData&&/Safari\\//.test(navigator.userAgent)&&!/Chrom(e|ium)\\//.test(navigator.userAgent);if(!e||!indexedDB.databases)return Promise.resolve();var n;return new Promise(function(t){var r=function(){return indexedDB.databases().finally(t)};n=setInterval(r,100),r()}).finally(function(){return clearInterval(n)})}var gt;function bt(e){return!(\"from\"in e)}var X=function(e,n){if(this)q(this,arguments.length?{d:1,from:e,to:arguments.length>1?n:e}:{d:0});else{var t=new X;return e&&\"d\"in e&&q(t,e),t}};Be(X.prototype,(gt={add:function(e){return un(this,e),this},addKey:function(e){return an(this,e,e),this},addKeys:function(e){var n=this;return e.forEach(function(t){return an(n,t,t)}),this},hasKey:function(e){var n=Tn(this).next(e).value;return n&&M(n.from,e)<=0&&M(n.to,e)>=0}},gt[zn]=function(){return Tn(this)},gt));function an(e,n,t){var r=M(n,t);if(!isNaN(r)){if(r>0)throw RangeError();if(bt(e))return q(e,{from:n,to:t,d:1});var i=e.l,a=e.r;if(M(t,e.from)<0)return i?an(i,n,t):e.l={from:n,to:t,d:1,l:null,r:null},mr(e);if(M(n,e.to)>0)return a?an(a,n,t):e.r={from:n,to:t,d:1,l:null,r:null},mr(e);M(n,e.from)<0&&(e.from=n,e.l=null,e.d=a?a.d+1:1),M(t,e.to)>0&&(e.to=t,e.r=null,e.d=e.l?e.l.d+1:1);var u=!e.r;i&&!e.l&&un(e,i),a&&u&&un(e,a)}}function un(e,n){function t(r,i){var a=i.from,u=i.to,o=i.l,s=i.r;an(r,a,u),o&&t(r,o),s&&t(r,s)}bt(n)||t(e,n)}function yr(e,n){var t=Tn(n),r=t.next();if(r.done)return!1;for(var i=r.value,a=Tn(e),u=a.next(i.from),o=u.value;!r.done&&!u.done;){if(M(o.from,i.to)<=0&&M(o.to,i.from)>=0)return!0;M(i.from,o.from)<0?i=(r=t.next(o.from)).value:o=(u=a.next(i.from)).value}return!1}function Tn(e){var n=bt(e)?null:{s:0,n:e};return{next:function(t){for(var r=arguments.length>0;n;)switch(n.s){case 0:if(n.s=1,r)for(;n.n.l&&M(t,n.n.from)<0;)n={up:n,n:n.n.l,s:1};else for(;n.n.l;)n={up:n,n:n.n.l,s:1};case 1:if(n.s=2,!r||M(t,n.n.to)<=0)return{value:n.n,done:!1};case 2:if(n.n.r){n.s=3,n={up:n,n:n.n.r,s:0};continue}case 3:n=n.up}return{done:!0}}}}function mr(e){var n,t,r=(((n=e.r)===null||n===void 0?void 0:n.d)||0)-(((t=e.l)===null||t===void 0?void 0:t.d)||0),i=r>1?\"r\":r<-1?\"l\":\"\";if(i){var a=i===\"r\"?\"l\":\"r\",u=P({},e),o=e[i];e.from=o.from,e.to=o.to,e[i]=o[i],u[i]=o[a],e[a]=u,u.d=gr(u)}e.d=gr(e)}function gr(e){var n=e.r,t=e.l;return(n?t?Math.max(n.d,t.d):n.d:t?t.d:0)+1}function Cn(e,n){return $(n).forEach(function(t){e[t]?un(e[t],n[t]):e[t]=Nt(n[t])}),e}function wt(e,n){return e.all||n.all||Object.keys(e).some(function(t){return n[t]&&yr(n[t],e[t])})}var Te={},_t={},xt=!1;function Dn(e,n){Cn(_t,e),xt||(xt=!0,setTimeout(function(){xt=!1;var t=_t;_t={},Et(t,!1)},0))}function Et(e,n){n===void 0&&(n=!1);var t=new Set;if(e.all)for(var r=0,i=Object.values(Te);r<i.length;r++){var a=i[r];br(a,e,t,n)}else for(var u in e){var o=/^idb\\:\\/\\/(.*)\\/(.*)\\//.exec(u);if(o){var s=o[1],c=o[2],a=Te[\"idb://\".concat(s,\"/\").concat(c)];a&&br(a,e,t,n)}}t.forEach(function(f){return f()})}function br(e,n,t,r){for(var i=[],a=0,u=Object.entries(e.queries.query);a<u.length;a++){for(var o=u[a],s=o[0],c=o[1],f=[],h=0,v=c;h<v.length;h++){var g=v[h];wt(n,g.obsSet)?g.subscribers.forEach(function(p){return t.add(p)}):r&&f.push(g)}r&&i.push([s,f])}if(r)for(var l=0,d=i;l<d.length;l++){var y=d[l],s=y[0],f=y[1];e.queries.query[s]=f}}function Wi(e){var n=e._state,t=e._deps.indexedDB;if(n.isBeingOpened||e.idbdb)return n.dbReadyPromise.then(function(){return n.dbOpenError?U(n.dbOpenError):e});n.isBeingOpened=!0,n.dbOpenError=null,n.openComplete=!1;var r=n.openCanceller,i=Math.round(e.verno*10),a=!1;function u(){if(n.openCanceller!==r)throw new D.DatabaseClosed(\"db.open() was cancelled\")}var o=n.dbReadyResolve,s=null,c=!1,f=function(){return new S(function(h,v){if(u(),!t)throw new D.MissingAPI;var g=e.name,l=n.autoSchema||!i?t.open(g):t.open(g,i);if(!l)throw new D.MissingAPI;l.onerror=ie(v),l.onblocked=L(e._fireOnBlocked),l.onupgradeneeded=L(function(d){if(s=l.transaction,n.autoSchema&&!e._options.allowEmptyDB){l.onerror=en,s.abort(),l.result.close();var y=t.deleteDatabase(g);y.onsuccess=y.onerror=L(function(){v(new D.NoSuchDatabase(\"Database \".concat(g,\" doesnt exist\")))})}else{s.onerror=ie(v);var p=d.oldVersion>Math.pow(2,62)?0:d.oldVersion;c=p<1,e.idbdb=l.result,a&&Ti(e,s),Pi(e,p/10,s,v)}},v),l.onsuccess=L(function(){s=null;var d=e.idbdb=l.result,y=on(d.objectStoreNames);if(y.length>0)try{var p=d.transaction(xi(y),\"readonly\");if(n.autoSchema)Ri(e,d,p);else if(Pn(e,e._dbSchema,p),!Bi(e,p)&&!a)return console.warn(\"Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this.\"),d.close(),i=d.version+1,a=!0,h(f());An(e,p)}catch{}rn.add(e),d.onversionchange=L(function(_){n.vcFired=!0,e.on(\"versionchange\").fire(_)}),d.onclose=L(function(){e.close({disableAutoOpen:!1})}),c&&Li(e._deps,g),h()},v)}).catch(function(h){switch(h?.name){case\"UnknownError\":if(n.PR1398_maxLoop>0)return n.PR1398_maxLoop--,console.warn(\"Dexie: Workaround for Chrome UnknownError on open()\"),f();break;case\"VersionError\":if(i>0)return i=0,f();break}return S.reject(h)})};return S.race([r,(typeof navigator>\"u\"?S.resolve():zi()).then(f)]).then(function(){return u(),n.onReadyBeingFired=[],S.resolve(mt(function(){return e.on.ready.fire(e.vip)})).then(function h(){if(n.onReadyBeingFired.length>0){var v=n.onReadyBeingFired.reduce($n,F);return n.onReadyBeingFired=[],S.resolve(mt(function(){return v(e.vip)})).then(h)}})}).finally(function(){n.openCanceller===r&&(n.onReadyBeingFired=null,n.isBeingOpened=!1)}).catch(function(h){n.dbOpenError=h;try{s&&s.abort()}catch{}return r===n.openCanceller&&e._close(),U(h)}).finally(function(){n.openComplete=!0,o()}).then(function(){if(c){var h={};e.tables.forEach(function(v){v.schema.indexes.forEach(function(g){g.name&&(h[\"idb://\".concat(e.name,\"/\").concat(v.name,\"/\").concat(g.name)]=new X(-1/0,[[[]]]))}),h[\"idb://\".concat(e.name,\"/\").concat(v.name,\"/\")]=h[\"idb://\".concat(e.name,\"/\").concat(v.name,\"/:dels\")]=new X(-1/0,[[[]]])}),me(Sn).fire(h),Et(h,!0)}return e})}function St(e){var n=function(u){return e.next(u)},t=function(u){return e.throw(u)},r=a(n),i=a(t);function a(u){return function(o){var s=u(o),c=s.value;return s.done?c:!c||typeof c.then!=\"function\"?W(c)?Promise.all(c).then(r,i):r(c):c.then(r,i)}}return a(n)()}function Ui(e,n,t){var r=arguments.length;if(r<2)throw new D.InvalidArgument(\"Too few arguments\");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];t=i.pop();var a=Ft(i);return[e,a,t]}function wr(e,n,t,r,i){return S.resolve().then(function(){var a=O.transless||O,u=e._createTransaction(n,t,e._dbSchema,r);u.explicit=!0;var o={trans:u,transless:a};if(r)u.idbtrans=r.idbtrans;else try{u.create(),u.idbtrans._explicit=!0,e._state.PR1398_maxLoop=3}catch(h){return h.name===Yn.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn(\"Dexie: Need to reopen db\"),e.close({disableAutoOpen:!1}),e.open().then(function(){return wr(e,n,t,null,i)})):U(h)}var s=Wn(i);s&&ze();var c,f=S.follow(function(){if(c=i.call(u,u),c)if(s){var h=ve.bind(null,null);c.then(h,h)}else typeof c.next==\"function\"&&typeof c.throw==\"function\"&&(c=St(c))},o);return(c&&typeof c.then==\"function\"?S.resolve(c).then(function(h){return u.active?h:U(new D.PrematureCommit(\"Transaction committed too early. See http://bit.ly/2kdckMn\"))}):f.then(function(){return c})).then(function(h){return r&&u._resolve(),u._completion.then(function(){return h})}).catch(function(h){return u._reject(h),U(h)})})}function In(e,n,t){for(var r=W(e)?e.slice():[e],i=0;i<t;++i)r.push(n);return r}function Yi(e){return P(P({},e),{table:function(n){var t=e.table(n),r=t.schema,i=Object.create(null),a=[];function u(d,y,p){var _=tn(d),w=i[_]=i[_]||[],m=d==null?0:typeof d==\"string\"?1:d.length,b=y>0,A=P(P({},p),{name:b?\"\".concat(_,\"(virtual-from:\").concat(p.name,\")\"):p.name,lowLevelIndex:p,isVirtual:b,keyTail:y,keyLength:m,extractKey:ft(d),unique:!b&&p.unique});if(w.push(A),A.isPrimaryKey||a.push(A),m>1){var x=m===2?d[0]:d.slice(0,m-1);u(x,y+1,p)}return w.sort(function(E,K){return E.keyTail-K.keyTail}),A}var o=u(r.primaryKey.keyPath,0,r.primaryKey);i[\":id\"]=[o];for(var s=0,c=r.indexes;s<c.length;s++){var f=c[s];u(f.keyPath,0,f)}function h(d){var y=i[tn(d)];return y&&y[0]}function v(d,y){return{type:d.type===1?2:d.type,lower:In(d.lower,d.lowerOpen?e.MAX_KEY:e.MIN_KEY,y),lowerOpen:!0,upper:In(d.upper,d.upperOpen?e.MIN_KEY:e.MAX_KEY,y),upperOpen:!0}}function g(d){var y=d.query.index;return y.isVirtual?P(P({},d),{query:{index:y.lowLevelIndex,range:v(d.query.range,y.keyTail)}}):d}var l=P(P({},t),{schema:P(P({},r),{primaryKey:o,indexes:a,getIndexByKeyPath:h}),count:function(d){return t.count(g(d))},query:function(d){return t.query(g(d))},openCursor:function(d){var y=d.query.index,p=y.keyTail,_=y.isVirtual,w=y.keyLength;if(!_)return t.openCursor(d);function m(b){function A(E){E!=null?b.continue(In(E,d.reverse?e.MAX_KEY:e.MIN_KEY,p)):d.unique?b.continue(b.key.slice(0,w).concat(d.reverse?e.MIN_KEY:e.MAX_KEY,p)):b.continue()}var x=Object.create(b,{continue:{value:A},continuePrimaryKey:{value:function(E,K){b.continuePrimaryKey(In(E,e.MAX_KEY,p),K)}},primaryKey:{get:function(){return b.primaryKey}},key:{get:function(){var E=b.key;return w===1?E[0]:E.slice(0,w)}},value:{get:function(){return b.value}}});return x}return t.openCursor(g(d)).then(function(b){return b&&m(b)})}});return l}})}var $i={stack:\"dbcore\",name:\"VirtualIndexMiddleware\",level:1,create:Yi};function At(e,n,t,r){return t=t||{},r=r||\"\",$(e).forEach(function(i){if(!ee(n,i))t[r+i]=void 0;else{var a=e[i],u=n[i];if(typeof a==\"object\"&&typeof u==\"object\"&&a&&u){var o=Vn(a),s=Vn(u);o!==s?t[r+i]=n[i]:o===\"Object\"?At(a,u,t,r+i+\".\"):a!==u&&(t[r+i]=n[i])}else a!==u&&(t[r+i]=n[i])}}),$(n).forEach(function(i){ee(e,i)||(t[r+i]=n[i])}),t}function Kt(e,n){return n.type===\"delete\"?n.keys:n.keys||n.values.map(e.extractKey)}var Qi={stack:\"dbcore\",name:\"HooksMiddleware\",level:2,create:function(e){return P(P({},e),{table:function(n){var t=e.table(n),r=t.schema.primaryKey,i=P(P({},t),{mutate:function(a){var u=O.trans,o=u.table(n).hook,s=o.deleting,c=o.creating,f=o.updating;switch(a.type){case\"add\":if(c.fire===F)break;return u._promise(\"readwrite\",function(){return h(a)},!0);case\"put\":if(c.fire===F&&f.fire===F)break;return u._promise(\"readwrite\",function(){return h(a)},!0);case\"delete\":if(s.fire===F)break;return u._promise(\"readwrite\",function(){return h(a)},!0);case\"deleteRange\":if(s.fire===F)break;return u._promise(\"readwrite\",function(){return v(a)},!0)}return t.mutate(a);function h(l){var d=O.trans,y=l.keys||Kt(r,l);if(!y)throw new Error(\"Keys missing\");return l=l.type===\"add\"||l.type===\"put\"?P(P({},l),{keys:y}):P({},l),l.type!==\"delete\"&&(l.values=we([],l.values,!0)),l.keys&&(l.keys=we([],l.keys,!0)),Hi(t,l,y).then(function(p){var _=y.map(function(w,m){var b=p[m],A={onerror:null,onsuccess:null};if(l.type===\"delete\")s.fire.call(A,w,b,d);else if(l.type===\"add\"||b===void 0){var x=c.fire.call(A,w,l.values[m],d);w==null&&x!=null&&(w=x,l.keys[m]=w,r.outbound||Z(l.values[m],r.keyPath,w))}else{var E=At(b,l.values[m]),K=f.fire.call(A,E,w,b,d);if(K){var B=l.values[m];Object.keys(K).forEach(function(T){ee(B,T)?B[T]=K[T]:Z(B,T,K[T])})}}return A});return t.mutate(l).then(function(w){for(var m=w.failures,b=w.results,A=w.numFailures,x=w.lastResult,E=0;E<y.length;++E){var K=b?b[E]:y[E],B=_[E];K==null?B.onerror&&B.onerror(m[E]):B.onsuccess&&B.onsuccess(l.type===\"put\"&&p[E]?l.values[E]:K)}return{failures:m,results:b,numFailures:A,lastResult:x}}).catch(function(w){return _.forEach(function(m){return m.onerror&&m.onerror(w)}),Promise.reject(w)})})}function v(l){return g(l.trans,l.range,1e4)}function g(l,d,y){return t.query({trans:l,values:!1,query:{index:r,range:d},limit:y}).then(function(p){var _=p.result;return h({type:\"delete\",keys:_,trans:l}).then(function(w){return w.numFailures>0?Promise.reject(w.failures[0]):_.length<y?{failures:[],numFailures:0,lastResult:void 0}:g(l,P(P({},d),{lower:_[_.length-1],lowerOpen:!0}),y)})})}}});return i}})}};function Hi(e,n,t){return n.type===\"add\"?Promise.resolve([]):e.getMany({trans:n.trans,keys:t,cache:\"immutable\"})}function _r(e,n,t){try{if(!n||n.keys.length<e.length)return null;for(var r=[],i=0,a=0;i<n.keys.length&&a<e.length;++i)M(n.keys[i],e[a])===0&&(r.push(t?_e(n.values[i]):n.values[i]),++a);return r.length===e.length?r:null}catch{return null}}var Xi={stack:\"dbcore\",level:-1,create:function(e){return{table:function(n){var t=e.table(n);return P(P({},t),{getMany:function(r){if(!r.cache)return t.getMany(r);var i=_r(r.keys,r.trans._cache,r.cache===\"clone\");return i?S.resolve(i):t.getMany(r).then(function(a){return r.trans._cache={keys:r.keys,values:r.cache===\"clone\"?_e(a):a},a})},mutate:function(r){return r.type!==\"add\"&&(r.trans._cache=null),t.mutate(r)}})}}}};function xr(e,n){return e.trans.mode===\"readonly\"&&!!e.subscr&&!e.trans.explicit&&e.trans.db._options.cache!==\"disabled\"&&!n.schema.primaryKey.outbound}function Er(e,n){switch(e){case\"query\":return n.values&&!n.unique;case\"get\":return!1;case\"getMany\":return!1;case\"count\":return!1;case\"openCursor\":return!1}}var Gi={stack:\"dbcore\",level:0,name:\"Observability\",create:function(e){var n=e.schema.name,t=new X(e.MIN_KEY,e.MAX_KEY);return P(P({},e),{transaction:function(r,i,a){if(O.subscr&&i!==\"readonly\")throw new D.ReadOnly(\"Readwrite transaction in liveQuery context. Querier source: \".concat(O.querier));return e.transaction(r,i,a)},table:function(r){var i=e.table(r),a=i.schema,u=a.primaryKey,o=a.indexes,s=u.extractKey,c=u.outbound,f=u.autoIncrement&&o.filter(function(l){return l.compound&&l.keyPath.includes(u.keyPath)}),h=P(P({},i),{mutate:function(l){var d,y,p=l.trans,_=l.mutatedParts||(l.mutatedParts={}),w=function(I){var R=\"idb://\".concat(n,\"/\").concat(r,\"/\").concat(I);return _[R]||(_[R]=new X)},m=w(\"\"),b=w(\":dels\"),A=l.type,x=l.type===\"deleteRange\"?[l.range]:l.type===\"delete\"?[l.keys]:l.values.length<50?[Kt(u,l).filter(function(I){return I}),l.values]:[],E=x[0],K=x[1],B=l.trans._cache;if(W(E)){m.addKeys(E);var T=A===\"delete\"||E.length===K.length?_r(E,B):null;T||b.addKeys(E),(T||K)&&Ji(w,a,T,K)}else if(E){var k={from:(d=E.lower)!==null&&d!==void 0?d:e.MIN_KEY,to:(y=E.upper)!==null&&y!==void 0?y:e.MAX_KEY};b.add(k),m.add(k)}else m.add(t),b.add(t),a.indexes.forEach(function(I){return w(I.name).add(t)});return i.mutate(l).then(function(I){return E&&(l.type===\"add\"||l.type===\"put\")&&(m.addKeys(I.results),f&&f.forEach(function(R){for(var j=l.values.map(function(J){return R.extractKey(J)}),C=R.keyPath.findIndex(function(J){return J===u.keyPath}),Y=0,te=I.results.length;Y<te;++Y)j[Y][C]=I.results[Y];w(R.name).addKeys(j)})),p.mutatedParts=Cn(p.mutatedParts||{},_),I})}}),v=function(l){var d,y,p=l.query,_=p.index,w=p.range;return[_,new X((d=w.lower)!==null&&d!==void 0?d:e.MIN_KEY,(y=w.upper)!==null&&y!==void 0?y:e.MAX_KEY)]},g={get:function(l){return[u,new X(l.key)]},getMany:function(l){return[u,new X().addKeys(l.keys)]},count:v,query:v,openCursor:v};return $(g).forEach(function(l){h[l]=function(d){var y=O.subscr,p=!!y,_=xr(O,i)&&Er(l,d),w=_?d.obsSet={}:y;if(p){var m=function(T){var k=\"idb://\".concat(n,\"/\").concat(r,\"/\").concat(T);return w[k]||(w[k]=new X)},b=m(\"\"),A=m(\":dels\"),x=g[l](d),E=x[0],K=x[1];if(l===\"query\"&&E.isPrimaryKey&&!d.values?A.add(K):m(E.name||\"\").add(K),!E.isPrimaryKey)if(l===\"count\")A.add(t);else{var B=l===\"query\"&&c&&d.values&&i.query(P(P({},d),{values:!1}));return i[l].apply(this,arguments).then(function(T){if(l===\"query\"){if(c&&d.values)return B.then(function(j){var C=j.result;return b.addKeys(C),T});var k=d.values?T.result.map(s):T.result;d.values?b.addKeys(k):A.addKeys(k)}else if(l===\"openCursor\"){var I=T,R=d.values;return I&&Object.create(I,{key:{get:function(){return A.addKey(I.primaryKey),I.key}},primaryKey:{get:function(){var j=I.primaryKey;return A.addKey(j),j}},value:{get:function(){return R&&b.addKey(I.primaryKey),I.value}}})}return T})}}return i[l].apply(this,arguments)}}),h}})}};function Ji(e,n,t,r){function i(a){var u=e(a.name||\"\");function o(c){return c!=null?a.extractKey(c):null}var s=function(c){return a.multiEntry&&W(c)?c.forEach(function(f){return u.addKey(f)}):u.addKey(c)};(t||r).forEach(function(c,f){var h=t&&o(t[f]),v=r&&o(r[f]);M(h,v)!==0&&(h!=null&&s(h),v!=null&&s(v))})}n.indexes.forEach(i)}function Sr(e,n,t){if(t.numFailures===0)return n;if(n.type===\"deleteRange\")return null;var r=n.keys?n.keys.length:\"values\"in n&&n.values?n.values.length:1;if(t.numFailures===r)return null;var i=P({},n);return W(i.keys)&&(i.keys=i.keys.filter(function(a,u){return!(u in t.failures)})),\"values\"in i&&W(i.values)&&(i.values=i.values.filter(function(a,u){return!(u in t.failures)})),i}function Zi(e,n){return n.lower===void 0?!0:n.lowerOpen?M(e,n.lower)>0:M(e,n.lower)>=0}function qi(e,n){return n.upper===void 0?!0:n.upperOpen?M(e,n.upper)<0:M(e,n.upper)<=0}function kt(e,n){return Zi(e,n)&&qi(e,n)}function Ar(e,n,t,r,i,a){if(!t||t.length===0)return e;var u=n.query.index,o=u.multiEntry,s=n.query.range,c=r.schema.primaryKey,f=c.extractKey,h=u.extractKey,v=(u.lowLevelIndex||u).extractKey,g=t.reduce(function(d,y){var p=d,_=[];if(y.type===\"add\"||y.type===\"put\")for(var w=new X,m=y.values.length-1;m>=0;--m){var b=y.values[m],A=f(b);if(!w.hasKey(A)){var x=h(b);(o&&W(x)?x.some(function(k){return kt(k,s)}):kt(x,s))&&(w.addKey(A),_.push(b))}}switch(y.type){case\"add\":{var E=new X().addKeys(n.values?d.map(function(k){return f(k)}):d);p=d.concat(n.values?_.filter(function(k){var I=f(k);return E.hasKey(I)?!1:(E.addKey(I),!0)}):_.map(function(k){return f(k)}).filter(function(k){return E.hasKey(k)?!1:(E.addKey(k),!0)}));break}case\"put\":{var K=new X().addKeys(y.values.map(function(k){return f(k)}));p=d.filter(function(k){return!K.hasKey(n.values?f(k):k)}).concat(n.values?_:_.map(function(k){return f(k)}));break}case\"delete\":var B=new X().addKeys(y.keys);p=d.filter(function(k){return!B.hasKey(n.values?f(k):k)});break;case\"deleteRange\":var T=y.range;p=d.filter(function(k){return!kt(f(k),T)});break}return p},e);if(g===e)return e;var l=function(d,y){return M(v(d),v(y))||M(f(d),f(y))};return g.sort(n.direction===\"prev\"||n.direction===\"prevunique\"?function(d,y){return l(y,d)}:l),n.limit&&n.limit<1/0&&(g.length>n.limit?g.length=n.limit:e.length===n.limit&&g.length<n.limit&&(i.dirty=!0)),a?Object.freeze(g):g}function Kr(e,n){return M(e.lower,n.lower)===0&&M(e.upper,n.upper)===0&&!!e.lowerOpen==!!n.lowerOpen&&!!e.upperOpen==!!n.upperOpen}function ea(e,n,t,r){if(e===void 0)return n!==void 0?-1:0;if(n===void 0)return 1;var i=M(e,n);if(i===0){if(t&&r)return 0;if(t)return 1;if(r)return-1}return i}function na(e,n,t,r){if(e===void 0)return n!==void 0?1:0;if(n===void 0)return-1;var i=M(e,n);if(i===0){if(t&&r)return 0;if(t)return-1;if(r)return 1}return i}function ta(e,n){return ea(e.lower,n.lower,e.lowerOpen,n.lowerOpen)<=0&&na(e.upper,n.upper,e.upperOpen,n.upperOpen)>=0}function ra(e,n,t,r){var i,a=Te[\"idb://\".concat(e,\"/\").concat(n)];if(!a)return[];var u=a.queries[t];if(!u)return[null,!1,a,null];var o=r.query?r.query.index.name:null,s=u[o||\"\"];if(!s)return[null,!1,a,null];switch(t){case\"query\":var c=(i=r.direction)!==null&&i!==void 0?i:\"next\",f=s.find(function(g){var l;return g.req.limit===r.limit&&g.req.values===r.values&&((l=g.req.direction)!==null&&l!==void 0?l:\"next\")===c&&Kr(g.req.query.range,r.query.range)});if(f)return[f,!0,a,s];var h=s.find(function(g){var l,d=\"limit\"in g.req?g.req.limit:1/0;return d>=r.limit&&((l=g.req.direction)!==null&&l!==void 0?l:\"next\")===c&&(r.values?g.req.values:!0)&&ta(g.req.query.range,r.query.range)});return[h,!1,a,s];case\"count\":var v=s.find(function(g){return Kr(g.req.query.range,r.query.range)});return[v,!!v,a,s]}}function ia(e,n,t,r){e.subscribers.add(t),r.addEventListener(\"abort\",function(){e.subscribers.delete(t),e.subscribers.size===0&&aa(e,n)})}function aa(e,n){setTimeout(function(){e.subscribers.size===0&&xe(n,e)},3e3)}var ua={stack:\"dbcore\",level:0,name:\"Cache\",create:function(e){var n=e.schema.name,t=P(P({},e),{transaction:function(r,i,a){var u=e.transaction(r,i,a);if(i===\"readwrite\"){var o=new AbortController,s=o.signal,c=function(f){return function(){if(o.abort(),i===\"readwrite\"){for(var h=new Set,v=0,g=r;v<g.length;v++){var l=g[v],d=Te[\"idb://\".concat(n,\"/\").concat(l)];if(d){var y=e.table(l),p=d.optimisticOps.filter(function(R){return R.trans===u});if(u._explicit&&f&&u.mutatedParts)for(var _=0,w=Object.values(d.queries.query);_<w.length;_++)for(var m=w[_],b=0,A=m.slice();b<A.length;b++){var x=A[b];wt(x.obsSet,u.mutatedParts)&&(xe(m,x),x.subscribers.forEach(function(R){return h.add(R)}))}else if(p.length>0){d.optimisticOps=d.optimisticOps.filter(function(R){return R.trans!==u});for(var E=0,K=Object.values(d.queries.query);E<K.length;E++)for(var m=K[E],B=0,T=m.slice();B<T.length;B++){var x=T[B];if(x.res!=null&&u.mutatedParts)if(f&&!x.dirty){var k=Object.isFrozen(x.res),I=Ar(x.res,x.req,p,y,x,k);x.dirty?(xe(m,x),x.subscribers.forEach(function(C){return h.add(C)})):I!==x.res&&(x.res=I,x.promise=S.resolve({result:I}))}else x.dirty&&xe(m,x),x.subscribers.forEach(function(C){return h.add(C)})}}}}h.forEach(function(R){return R()})}}};u.addEventListener(\"abort\",c(!1),{signal:s}),u.addEventListener(\"error\",c(!1),{signal:s}),u.addEventListener(\"complete\",c(!0),{signal:s})}return u},table:function(r){var i=e.table(r),a=i.schema.primaryKey,u=P(P({},i),{mutate:function(o){var s=O.trans;if(a.outbound||s.db._options.cache===\"disabled\"||s.explicit||s.idbtrans.mode!==\"readwrite\")return i.mutate(o);var c=Te[\"idb://\".concat(n,\"/\").concat(r)];if(!c)return i.mutate(o);var f=i.mutate(o);return(o.type===\"add\"||o.type===\"put\")&&(o.values.length>=50||Kt(a,o).some(function(h){return h==null}))?f.then(function(h){var v=P(P({},o),{values:o.values.map(function(l,d){var y;if(h.failures[d])return l;var p=!((y=a.keyPath)===null||y===void 0)&&y.includes(\".\")?_e(l):P({},l);return Z(p,a.keyPath,h.results[d]),p})}),g=Sr(c,v,h);c.optimisticOps.push(g),queueMicrotask(function(){return o.mutatedParts&&Dn(o.mutatedParts)})}):(c.optimisticOps.push(o),o.mutatedParts&&Dn(o.mutatedParts),f.then(function(h){if(h.numFailures>0){xe(c.optimisticOps,o);var v=Sr(c,o,h);v&&c.optimisticOps.push(v),o.mutatedParts&&Dn(o.mutatedParts)}}),f.catch(function(){xe(c.optimisticOps,o),o.mutatedParts&&Dn(o.mutatedParts)})),f},query:function(o){var s;if(!xr(O,i)||!Er(\"query\",o))return i.query(o);var c=((s=O.trans)===null||s===void 0?void 0:s.db._options.cache)===\"immutable\",f=O,h=f.requery,v=f.signal,g=ra(n,r,\"query\",o),l=g[0],d=g[1],y=g[2],p=g[3];if(l&&d)l.obsSet=o.obsSet;else{var _=i.query(o).then(function(w){var m=w.result;if(l&&(l.res=m),c){for(var b=0,A=m.length;b<A;++b)Object.freeze(m[b]);Object.freeze(m)}return w}).catch(function(w){return p&&l&&xe(p,l),Promise.reject(w)});l={obsSet:o.obsSet,promise:_,subscribers:new Set,type:\"query\",req:o,dirty:!1},p?p.push(l):(p=[l],y||(y=Te[\"idb://\".concat(n,\"/\").concat(r)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}}),y.queries.query[o.query.index.name||\"\"]=p)}return ia(l,p,h,v),l.promise.then(function(w){var m=Ar(w.result,o,y?.optimisticOps,i,l,c);return{result:c?m:_e(m)}})}});return u}});return t}};function Rn(e,n){return new Proxy(e,{get:function(t,r,i){return r===\"db\"?n:Reflect.get(t,r,i)}})}var fe=(function(){function e(n,t){var r=this;this._middlewares={},this.verno=0;var i=e.dependencies;this._options=t=P({addons:e.addons,autoOpen:!0,indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange,cache:\"cloned\",maxConnections:er},t),this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};var a=t.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var u={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:F,dbReadyPromise:null,cancelOpen:F,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:t.autoOpen};u.dbReadyPromise=new S(function(s){u.dbReadyResolve=s}),u.openCanceller=new S(function(s,c){u.cancelOpen=c}),this._state=u,this.name=n,this.on=Ze(this,\"populate\",\"blocked\",\"versionchange\",\"close\",{ready:[$n,F]}),this.once=function(s,c){var f=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];r.on(s).unsubscribe(f),c.apply(r,h)};return r.on(s,f)},this.on.ready.subscribe=Rt(this.on.ready.subscribe,function(s){return function(c,f){e.vip(function(){var h=r._state;if(h.openComplete)h.dbOpenError||S.resolve().then(c),f&&s(c);else if(h.onReadyBeingFired)h.onReadyBeingFired.push(c),f&&s(c);else{s(c);var v=r;f||s(function g(){v.on.ready.unsubscribe(c),v.on.ready.unsubscribe(g)})}})}}),this.Collection=di(this),this.Table=li(this),this.Transaction=_i(this),this.Version=Fi(this),this.WhereClause=bi(this),this.on(\"versionchange\",function(s){s.newVersion>0?console.warn(\"Another connection wants to upgrade database '\".concat(r.name,\"'. Closing db now to resume the upgrade.\")):console.warn(\"Another connection wants to delete database '\".concat(r.name,\"'. Closing db now to resume the delete request.\")),r.close({disableAutoOpen:!1})}),this.on(\"blocked\",function(s){!s.newVersion||s.newVersion<s.oldVersion?console.warn(\"Dexie.delete('\".concat(r.name,\"') was blocked\")):console.warn(\"Upgrade '\".concat(r.name,\"' blocked by other connection holding version \").concat(s.oldVersion/10))}),this._maxKey=nn(t.IDBKeyRange),this._createTransaction=function(s,c,f,h){return new r.Transaction(s,c,f,r._options.chromeTransactionDurability,h)},this._fireOnBlocked=function(s){r.on(\"blocked\").fire(s),rn.toArray().filter(function(c){return c.name===r.name&&c!==r&&!c._state.vcFired}).map(function(c){return c.on(\"versionchange\").fire(s)})},this.use(Xi),this.use(ua),this.use(Gi),this.use($i),this.use(Qi);var o=new Proxy(this,{get:function(s,c,f){if(c===\"_vip\")return!0;if(c===\"table\")return function(v){return Rn(r.table(v),o)};var h=Reflect.get(s,c,f);return h instanceof ur?Rn(h,o):c===\"tables\"?h.map(function(v){return Rn(v,o)}):c===\"_createTransaction\"?function(){var v=h.apply(this,arguments);return Rn(v,o)}:h}});this.vip=o,a.forEach(function(s){return s(r)})}return e.prototype.version=function(n){if(isNaN(n)||n<.1)throw new D.Type(\"Given version is not a positive number\");if(n=Math.round(n*10)/10,this.idbdb||this._state.isBeingOpened)throw new D.Schema(\"Cannot add version when database is open\");this.verno=Math.max(this.verno,n);var t=this._versions,r=t.filter(function(i){return i._cfg.version===n})[0];return r||(r=new this.Version(n),t.push(r),t.sort(Oi),r.stores({}),this._state.autoSchema=!1,r)},e.prototype._whenReady=function(n){var t=this;return this.idbdb&&(this._state.openComplete||O.letThrough||this._vip)?n():new S(function(r,i){if(t._state.openComplete)return i(new D.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._state.autoOpen){i(new D.DatabaseClosed);return}t.open().catch(F)}t._state.dbReadyPromise.then(r,i)}).then(n)},e.prototype.use=function(n){var t=n.stack,r=n.create,i=n.level,a=n.name;a&&this.unuse({stack:t,name:a});var u=this._middlewares[t]||(this._middlewares[t]=[]);return u.push({stack:t,create:r,level:i??10,name:a}),u.sort(function(o,s){return o.level-s.level}),this},e.prototype.unuse=function(n){var t=n.stack,r=n.name,i=n.create;return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter(function(a){return i?a.create!==i:r?a.name!==r:!1})),this},e.prototype.open=function(){var n=this;return ke(ce,function(){return Wi(n)})},e.prototype._close=function(){this.on.close.fire(new CustomEvent(\"close\"));var n=this._state;if(rn.remove(this),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}n.isBeingOpened||(n.dbReadyPromise=new S(function(t){n.dbReadyResolve=t}),n.openCanceller=new S(function(t,r){n.cancelOpen=r}))},e.prototype.close=function(n){var t=n===void 0?{disableAutoOpen:!0}:n,r=t.disableAutoOpen,i=this._state;r?(i.isBeingOpened&&i.cancelOpen(new D.DatabaseClosed),this._close(),i.autoOpen=!1,i.dbOpenError=new D.DatabaseClosed):(this._close(),i.autoOpen=this._options.autoOpen||i.isBeingOpened,i.openComplete=!1,i.dbOpenError=null)},e.prototype.delete=function(n){var t=this;n===void 0&&(n={disableAutoOpen:!0});var r=arguments.length>0&&typeof arguments[0]!=\"object\",i=this._state;return new S(function(a,u){var o=function(){t.close(n);var s=t._deps.indexedDB.deleteDatabase(t.name);s.onsuccess=L(function(){Vi(t._deps,t.name),a()}),s.onerror=ie(u),s.onblocked=t._fireOnBlocked};if(r)throw new D.InvalidArgument(\"Invalid closeOptions argument to db.delete()\");i.isBeingOpened?i.dbReadyPromise.then(o):o()})},e.prototype.backendDB=function(){return this.idbdb},e.prototype.isOpen=function(){return this.idbdb!==null},e.prototype.hasBeenClosed=function(){var n=this._state.dbOpenError;return n&&n.name===\"DatabaseClosed\"},e.prototype.hasFailed=function(){return this._state.dbOpenError!==null},e.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(e.prototype,\"tables\",{get:function(){var n=this;return $(this._allTables).map(function(t){return n._allTables[t]})},enumerable:!1,configurable:!0}),e.prototype.transaction=function(){var n=Ui.apply(this,arguments);return this._transaction.apply(this,n)},e.prototype._transaction=function(n,t,r){var i=this,a=O.trans;(!a||a.db!==this||n.indexOf(\"!\")!==-1)&&(a=null);var u=n.indexOf(\"?\")!==-1;n=n.replace(\"!\",\"\").replace(\"?\",\"\");var o,s;try{if(s=t.map(function(f){var h=f instanceof i.Table?f.name:f;if(typeof h!=\"string\")throw new TypeError(\"Invalid table argument to Dexie.transaction(). Only Table or String are allowed\");return h}),n==\"r\"||n===it)o=it;else if(n==\"rw\"||n==at)o=at;else throw new D.InvalidArgument(\"Invalid transaction mode: \"+n);if(a){if(a.mode===it&&o===at)if(u)a=null;else throw new D.SubTransaction(\"Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY\");a&&s.forEach(function(f){if(a&&a.storeNames.indexOf(f)===-1)if(u)a=null;else throw new D.SubTransaction(\"Table \"+f+\" not included in parent transaction.\")}),u&&a&&!a.active&&(a=null)}}catch(f){return a?a._promise(null,function(h,v){v(f)}):U(f)}var c=wr.bind(null,this,o,s,a,r);return a?a._promise(o,c,\"lock\"):O.trans?ke(O.transless,function(){return i._whenReady(c)}):this._whenReady(c)},e.prototype.table=function(n){if(!ee(this._allTables,n))throw new D.InvalidTable(\"Table \".concat(n,\" does not exist\"));return this._allTables[n]},e})(),oa=typeof Symbol<\"u\"&&\"observable\"in Symbol?Symbol.observable:\"@@observable\",sa=(function(){function e(n){this._subscribe=n}return e.prototype.subscribe=function(n,t,r){return this._subscribe(!n||typeof n==\"function\"?{next:n,error:t,complete:r}:n)},e.prototype[oa]=function(){return this},e})(),Bn;try{Bn={indexedDB:z.indexedDB||z.mozIndexedDB||z.webkitIndexedDB||z.msIndexedDB,IDBKeyRange:z.IDBKeyRange||z.webkitIDBKeyRange}}catch{Bn={indexedDB:null,IDBKeyRange:null}}function kr(e){var n=!1,t,r=new sa(function(i){var a=Wn(e);function u(p){var _=Le();try{a&&ze();var w=de(e,p);return a&&(w=w.finally(ve)),w}finally{_&&Ve()}}var o=!1,s,c={},f={},h={get closed(){return o},unsubscribe:function(){o||(o=!0,s&&s.abort(),v&&me.storagemutated.unsubscribe(d))}};i.start&&i.start(h);var v=!1,g=function(){return nt(y)};function l(){return wt(f,c)}var d=function(p){Cn(c,p),l()&&g()},y=function(){if(!(o||!Bn.indexedDB)){c={};var p={};s&&s.abort(),s=new AbortController;var _={subscr:p,signal:s.signal,requery:g,querier:e,trans:null},w=u(_);v||(me.storagemutated.subscribe(d),v=!0),Promise.resolve(w).then(function(m){n=!0,t=m,!(o||_.signal.aborted)&&(l()?g():(f=p,l()?g():(c={},nt(function(){return!o&&i.next&&i.next(m)}))))},function(m){n=!1,[\"DatabaseClosedError\",\"AbortError\"].includes(m?.name)||o||nt(function(){o||i.error&&i.error(m)})})}};return setTimeout(g,0),h});return r.hasValue=function(){return n},r.getValue=function(){return t},r}var Ce=fe;Be(Ce,P(P({},cn),{delete:function(e){var n=new Ce(e,{addons:[]});return n.delete()},exists:function(e){return new Ce(e,{addons:[]}).open().then(function(n){return n.close(),!0}).catch(\"NoSuchDatabaseError\",function(){return!1})},getDatabaseNames:function(e){try{return Ni(Ce.dependencies).then(e)}catch{return U(new D.MissingAPI)}},defineClass:function(){function e(n){q(this,n)}return e},ignoreTransaction:function(e){return O.trans?ke(O.transless||ce,e):e()},vip:mt,async:function(e){return function(){try{var n=St(e.apply(this,arguments));return!n||typeof n.then!=\"function\"?S.resolve(n):n}catch(t){return U(t)}}},spawn:function(e,n,t){try{var r=St(e.apply(t,n||[]));return!r||typeof r.then!=\"function\"?S.resolve(r):r}catch(i){return U(i)}},currentTransaction:{get:function(){return O.trans||null}},waitFor:function(e,n){var t=S.resolve(typeof e==\"function\"?Ce.ignoreTransaction(e):e).timeout(n||6e4);return O.trans?O.trans.waitFor(t):t},Promise:S,debug:{get:function(){return ue},set:function(e){Wt(e)}},derive:Me,extend:q,props:Be,override:Rt,Events:Ze,on:me,liveQuery:kr,extendObservabilitySet:Cn,getByKeyPath:oe,setByKeyPath:Z,delByKeyPath:Mr,shallowClone:Mt,deepClone:_e,getObjectDiff:At,cmp:M,asap:Bt,minKey:rt,addons:[],connections:{get:rn.toArray},errnames:Yn,dependencies:Bn,cache:Te,semVer:Zt,version:Zt.split(\".\").map(function(e){return parseInt(e)}).reduce(function(e,n,t){return e+n/Math.pow(10,t*2)})})),Ce.maxKey=nn(Ce.dependencies.IDBKeyRange),typeof dispatchEvent<\"u\"&&typeof addEventListener<\"u\"&&(me(Sn,function(e){if(!ge){var n;n=new CustomEvent(st,{detail:e}),ge=!0,dispatchEvent(n),ge=!1}}),addEventListener(st,function(e){var n=e.detail;ge||Ot(n)}));function Ot(e){var n=ge;try{ge=!0,me.storagemutated.fire(e),Et(e,!0)}finally{ge=n}}var ge=!1,be,Pt=function(){};typeof BroadcastChannel<\"u\"&&(Pt=function(){be=new BroadcastChannel(st),be.onmessage=function(e){return e.data&&Ot(e.data)}},Pt(),typeof be.unref==\"function\"&&be.unref(),me(Sn,function(e){ge||be.postMessage(e)})),typeof addEventListener<\"u\"&&(addEventListener(\"pagehide\",function(e){if(!fe.disableBfCache&&e.persisted){ue&&console.debug(\"Dexie: handling persisted pagehide\"),be?.close();for(var n=0,t=rn.toArray();n<t.length;n++){var r=t[n];r.close({disableAutoOpen:!1})}}}),addEventListener(\"pageshow\",function(e){!fe.disableBfCache&&e.persisted&&(ue&&console.debug(\"Dexie: handling persisted pageshow\"),Pt(),Ot({all:new X(-1/0,[[]])}))}));function ca(e){return new Je({add:e})}function la(e){return new Je({remove:e})}function fa(e,n){return new Je({replacePrefix:[e,n]})}S.rejectionMapper=Ur,Wt(ue);var ha=Object.freeze({__proto__:null,DEFAULT_MAX_CONNECTIONS:er,Dexie:fe,Entity:tr,PropModification:Je,RangeSet:X,add:ca,cmp:M,default:fe,liveQuery:kr,mergeRanges:un,rangesOverlap:yr,remove:la,replacePrefix:fa});return P(fe,ha,{default:fe}),fe}))});var Ea={};wa(Ea,{Dexie:()=>Cr});var jn=_a(Pr(),1),Tr=Symbol.for(\"Dexie\"),Nn=globalThis[Tr]||(globalThis[Tr]=jn.default);if(jn.default.semVer!==Nn.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${jn.default.semVer} and ${Nn.semVer}`);var{liveQuery:Aa,mergeRanges:Ka,rangesOverlap:ka,RangeSet:Oa,cmp:Pa,Entity:Ta,PropModification:Ca,replacePrefix:Da,add:Ia,remove:Ra,DexieYProvider:Ba}=Nn;var Cr=Nn;return xa(Ea);})();\n;window.Bibliotecas=window.Bibliotecas||{};window.Bibliotecas[\"dexie\"]=_bibliotecaMethods;})();\n",
  "vendor/dexie/LICENSE": "===== dexie =====\nApache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"{}\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright {yyyy} {name of copyright owner}\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n\n",
  "vendor/dexie/package.json": "{\n  \"name\": \"dexie\",\n  \"version\": \"4.4.6\",\n  \"description\": \"A Minimalistic Wrapper for IndexedDB\",\n  \"main\": \"dist/dexie.js\",\n  \"module\": \"dist/dexie.mjs\",\n  \"jsnext:main\": \"dist/dexie.mjs\",\n  \"exports\": {\n    \".\": {\n      \"production\": {\n        \"module\": \"./import-wrapper-prod.mjs\",\n        \"import\": \"./import-wrapper-prod.mjs\",\n        \"require\": \"./dist/dexie.min.js\",\n        \"default\": \"./dist/dexie.min.js\"\n      },\n      \"development\": {\n        \"module\": \"./import-wrapper.mjs\",\n        \"import\": \"./import-wrapper.mjs\",\n        \"require\": \"./dist/dexie.js\",\n        \"default\": \"./dist/dexie.js\"\n      },\n      \"default\": {\n        \"module\": \"./import-wrapper.mjs\",\n        \"import\": \"./import-wrapper.mjs\",\n        \"require\": \"./dist/dexie.js\",\n        \"default\": \"./dist/dexie.js\"\n      }\n    },\n    \"./package.json\": \"./package.json\",\n    \"./dist/*\": \"./dist/*\"\n  },\n  \"typings\": \"dist/dexie.d.ts\",\n  \"jspm\": {\n    \"format\": \"cjs\",\n    \"ignore\": [\n      \"src/\"\n    ]\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/dexie/Dexie.js.git\"\n  },\n  \"keywords\": [\n    \"indexeddb\",\n    \"browser\",\n    \"database\"\n  ],\n  \"author\": \"David Fahlander <https://github.com/dfahlander>\",\n  \"contributors\": [\n    \"Christopher Hunt <https://github.com/chrahunt>\",\n    \"Nikolas Poniros <https://github.com/nponiros>\",\n    \"Anders Ekdahl <https://github.com/andersekdahl>\",\n    \"Yury Solovyov <https://github.com/YurySolovyov>\",\n    \"Martin Diphoorn <https://github.com/martindiphoorn>\"\n  ],\n  \"license\": \"Apache-2.0\",\n  \"bugs\": {\n    \"url\": \"https://github.com/dexie/Dexie.js/issues\"\n  },\n  \"just-build\": {\n    \"default\": [\n      \"# Build all targets (es5, es6 and test) and minify the default es5 UMD module\",\n      \"just-build release test\"\n    ],\n    \"dexie\": [\n      \"# Build dist/dexie.js, dist/dexie.mjs and dist/dexie.d.ts\",\n      \"cd src\",\n      \"tsc [--watch 'Watching for file changes']\",\n      \"tsc --target es2021 --outdir ../tools/tmp/modern/src/\",\n      \"rollup -c ../tools/build-configs/rollup.config.mjs\",\n      \"rollup -c ../tools/build-configs/rollup.umd.config.mjs\",\n      \"rollup -c ../tools/build-configs/rollup.modern.config.mjs\",\n      \"node ../tools/replaceVersionAndDate.js ../dist/dexie.js\",\n      \"node ../tools/replaceVersionAndDate.js ../dist/dexie.mjs\",\n      \"node ../tools/replaceVersionAndDate.js ../dist/modern/dexie.mjs\",\n      \"dts-bundle-generator --inline-declare-global --inline-declare-externals --no-check -o ../dist/dexie.d.ts public/index.d.ts\",\n      \"node ../tools/fix-dts-duplicates.js ../dist/dexie.d.ts\",\n      \"node ../tools/prepend.js ../dist/dexie.d.ts ../tools/build-configs/banner.txt\",\n      \"node ../tools/replaceVersionAndDate.js ../dist/dexie.d.ts\"\n    ],\n    \"release\": [\n      \"# Build ES5 umd module as well as the es6 module.\",\n      \"just-build dexie\",\n      \"node tools/replaceVersionAndDate.js dist/dexie.d.ts\",\n      \"# Minify the default ES5 UMD module\",\n      \"cd dist\",\n      \"uglifyjs dexie.js -m -c negate_iife=0 -o dexie.min.js --source-map url=dexie.min.js.map\",\n      \"# Minify modern bundle\",\n      \"cd modern\",\n      \"terser --comments false --compress --mangle --module --source-map url=dexie.min.mjs.map -o dexie.min.mjs -- dexie.mjs\"\n    ],\n    \"dev\": [\n      \"# Build ES5 module and the tests\",\n      \"just-build dexie test\"\n    ],\n    \"gzip\": [\n      \"# Optionally gzip to find the size of the minified & gzipped version\",\n      \"gzip dist/dexie.min.js -k -f -9\"\n    ],\n    \"test\": [\n      \"# Build the test suite.\",\n      \"cd test\",\n      \"tsc [--watch 'Watching for file changes']\",\n      \"rollup -c ../tools/build-configs/rollup.tests.config.mjs\"\n    ]\n  },\n  \"homepage\": \"https://dexie.org\",\n  \"devDependencies\": {\n    \"@lambdatest/node-tunnel\": \"^4.0.7\",\n    \"@rollup/plugin-commonjs\": \"^29.0.0\",\n    \"@rollup/plugin-node-resolve\": \"^16.0.3\",\n    \"cross-env\": \"^10.1.0\",\n    \"dts-bundle-generator\": \"^9.5.1\",\n    \"just-build\": \"^0.9.24\",\n    \"karma\": \"^6.1.1\",\n    \"karma-chrome-launcher\": \"^3.1.0\",\n    \"karma-firefox-launcher\": \"^2.1.0\",\n    \"karma-mocha-reporter\": \"^2.2.5\",\n    \"karma-qunit\": \"^4.1.1\",\n    \"karma-webdriver-launcher\": \"^1.0.8\",\n    \"qunit\": \"2.10.0\",\n    \"qunitjs\": \"1.23.1\",\n    \"rollup\": \"^4.53.3\",\n    \"rollup-plugin-cleanup\": \"^3.2.1\",\n    \"rollup-plugin-sourcemaps\": \"^0.6.3\",\n    \"rxjs\": \"^7.8.2\",\n    \"safari-14-idb-fix\": \"^3.0.0\",\n    \"serve-static\": \"^2.2.0\",\n    \"sorted-json\": \"^0.3.0\",\n    \"terser\": \"^5.3.1\",\n    \"tslib\": \"^2.1.0\",\n    \"typescript\": \"^5.6.3\",\n    \"uglify-js\": \"^3.9.2\",\n    \"yjs\": \"^13.6.27\",\n    \"prettier\": \"^3.8.1\"\n  },\n  \"scripts\": {\n    \"build\": \"just-build\",\n    \"watch\": \"just-build --watch\",\n    \"clean\": \"rm -rf tools/tmp && rm dist/*.js && rm dist/*.map && rm dist/*.ts && rm dist/*.mjs\",\n    \"test\": \"pnpm run build && pnpm run test:typings && pnpm run test:unit\",\n    \"test:unit\": \"karma start test/karma.conf.js --single-run\",\n    \"test:typings\": \"tsc -p test/typings-test/\",\n    \"test:debug\": \"karma start test/karma.conf.js --log-level debug\",\n    \"test:ltcloud\": \"cross-env LAMBDATEST=true pnpm run test:ltTunnel & sleep 10 && pnpm run test:unit; UNIT_STATUS=$?; kill $(cat tunnel.pid); exit $UNIT_STATUS\",\n    \"test:ltTunnel\": \"node test/lt-local\",\n    \"format\": \"prettier --write \\\"src/**/*.{ts,tsx,js}\\\" \\\"libs/**/*.{ts,tsx,js}\\\" \\\"addons/**/*.{ts,tsx,js}\\\"\",\n    \"format:check\": \"prettier --check \\\"src/**/*.{ts,tsx,js}\\\" \\\"libs/**/*.{ts,tsx,js}\\\" \\\"addons/**/*.{ts,tsx,js}\\\"\"\n  }\n}\n",
  "vendor/smiles-drawer/erlen-bundle.js": "(function(){var _bibliotecaMethods=(()=>{var ki=Object.defineProperty;var bl=Object.getOwnPropertyDescriptor;var vl=Object.getOwnPropertyNames;var wl=Object.prototype.hasOwnProperty;var yl=(d,t)=>{for(var e in t)ki(d,e,{get:t[e],enumerable:!0})},Sl=(d,t,e,r)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let i of vl(t))!wl.call(d,i)&&i!==e&&ki(d,i,{get:()=>t[i],enumerable:!(r=bl(t,i))||r.enumerable});return d};var xl=d=>Sl(ki({},\"__esModule\",{value:!0}),d);var Kl={};yl(Kl,{SmilesDrawer:()=>zi});var Cl=Object.create,Li=Object.defineProperty,Al=Object.getOwnPropertyDescriptor,Nl=Object.getOwnPropertyNames,Rl=Object.getPrototypeOf,kl=Object.prototype.hasOwnProperty,Il=(d,t,e)=>t in d?Li(d,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):d[t]=e,Ml=(d,t)=>()=>{try{return t||d((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},El=(d,t,e,r)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let i of Nl(t))!kl.call(d,i)&&i!==e&&Li(d,i,{get:()=>t[i],enumerable:!(r=Al(t,i))||r.enumerable});return d},Bl=(d,t,e)=>(e=d!=null?Cl(Rl(d)):{},El(t||!d||!d.__esModule?Li(e,\"default\",{value:d,enumerable:!0}):e,d)),Ol=(d,t,e)=>Il(d,typeof t!=\"symbol\"?t+\"\":t,e),Ll=Ml((d,t)=>{(function(e,r){typeof d==\"object\"&&typeof t<\"u\"?t.exports=r():typeof define==\"function\"&&define.amd?define(r):(e=typeof globalThis<\"u\"?globalThis:e||self,e.chroma=r())})(d,(function(){\"use strict\";for(var e=function(a,l,g){return l===void 0&&(l=0),g===void 0&&(g=1),a<l?l:a>g?g:a},r=e,i=function(a){a._clipped=!1,a._unclipped=a.slice(0);for(var l=0;l<=3;l++)l<3?((a[l]<0||a[l]>255)&&(a._clipped=!0),a[l]=r(a[l],0,255)):l===3&&(a[l]=r(a[l],0,1));return a},s={},o=0,n=[\"Boolean\",\"Number\",\"String\",\"Function\",\"Array\",\"Date\",\"RegExp\",\"Undefined\",\"Null\"];o<n.length;o+=1){var h=n[o];s[\"[object \"+h+\"]\"]=h.toLowerCase()}var c=function(a){return s[Object.prototype.toString.call(a)]||\"object\"},u=c,p=function(a,l){return l===void 0&&(l=null),a.length>=3?Array.prototype.slice.call(a):u(a[0])==\"object\"&&l?l.split(\"\").filter(function(g){return a[0][g]!==void 0}).map(function(g){return a[0][g]}):a[0]},b=c,f=function(a){if(a.length<2)return null;var l=a.length-1;return b(a[l])==\"string\"?a[l].toLowerCase():null},S=Math.PI,y={clip_rgb:i,limit:e,type:c,unpack:p,last:f,PI:S,TWOPI:S*2,PITHIRD:S/3,DEG2RAD:S/180,RAD2DEG:180/S},M={format:{},autodetect:[]},B=y.last,E=y.clip_rgb,P=y.type,V=M,z=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=this;if(P(a[0])===\"object\"&&a[0].constructor&&a[0].constructor===this.constructor)return a[0];var m=B(a),C=!1;if(!m){C=!0,V.sorted||(V.autodetect=V.autodetect.sort(function(L,H){return H.p-L.p}),V.sorted=!0);for(var A=0,x=V.autodetect;A<x.length;A+=1){var R=x[A];if(m=R.test.apply(R,a),m)break}}if(V.format[m]){var I=V.format[m].apply(null,C?a:a.slice(0,-1));g._rgb=E(I)}else throw new Error(\"unknown format: \"+a);g._rgb.length===3&&g._rgb.push(1)};z.prototype.toString=function(){return P(this.hex)==\"function\"?this.hex():\"[\"+this._rgb.join(\",\")+\"]\"};var T=z,F=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(F.Color,[null].concat(a)))};F.Color=T,F.version=\"2.4.2\";var X=F,J=y.unpack,mt=Math.max,Vt=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=J(a,\"rgb\"),m=g[0],C=g[1],A=g[2];m=m/255,C=C/255,A=A/255;var x=1-mt(m,mt(C,A)),R=x<1?1/(1-x):0,I=(1-m-x)*R,L=(1-C-x)*R,H=(1-A-x)*R;return[I,L,H,x]},At=Vt,Nt=y.unpack,ee=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];a=Nt(a,\"cmyk\");var g=a[0],m=a[1],C=a[2],A=a[3],x=a.length>4?a[4]:1;return A===1?[0,0,0,x]:[g>=1?0:255*(1-g)*(1-A),m>=1?0:255*(1-m)*(1-A),C>=1?0:255*(1-C)*(1-A),x]},Kt=ee,Gt=X,Zt=T,ne=M,kt=y.unpack,Ft=y.type,Ae=At;Zt.prototype.cmyk=function(){return Ae(this._rgb)},Gt.cmyk=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(Zt,[null].concat(a,[\"cmyk\"])))},ne.format.cmyk=Kt,ne.autodetect.push({p:2,test:function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];if(a=kt(a,\"cmyk\"),Ft(a)===\"array\"&&a.length===4)return\"cmyk\"}});var W=y.unpack,et=y.last,It=function(a){return Math.round(a*100)/100},Pt=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=W(a,\"hsla\"),m=et(a)||\"lsa\";return g[0]=It(g[0]||0),g[1]=It(g[1]*100)+\"%\",g[2]=It(g[2]*100)+\"%\",m===\"hsla\"||g.length>3&&g[3]<1?(g[3]=g.length>3?g[3]:1,m=\"hsla\"):g.length=3,m+\"(\"+g.join(\",\")+\")\"},gt=Pt,Mt=y.unpack,wt=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];a=Mt(a,\"rgba\");var g=a[0],m=a[1],C=a[2];g/=255,m/=255,C/=255;var A=Math.min(g,m,C),x=Math.max(g,m,C),R=(x+A)/2,I,L;return x===A?(I=0,L=Number.NaN):I=R<.5?(x-A)/(x+A):(x-A)/(2-x-A),g==x?L=(m-C)/(x-A):m==x?L=2+(C-g)/(x-A):C==x&&(L=4+(g-m)/(x-A)),L*=60,L<0&&(L+=360),a.length>3&&a[3]!==void 0?[L,I,R,a[3]]:[L,I,R]},Et=wt,bt=y.unpack,Bt=y.last,Jt=gt,Ot=Et,xt=Math.round,Qt=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=bt(a,\"rgba\"),m=Bt(a)||\"rgb\";return m.substr(0,3)==\"hsl\"?Jt(Ot(g),m):(g[0]=xt(g[0]),g[1]=xt(g[1]),g[2]=xt(g[2]),(m===\"rgba\"||g.length>3&&g[3]<1)&&(g[3]=g.length>3?g[3]:1,m=\"rgba\"),m+\"(\"+g.slice(0,m===\"rgb\"?3:4).join(\",\")+\")\")},Ut=Qt,Lt=y.unpack,yt=Math.round,zt=function(){for(var a,l=[],g=arguments.length;g--;)l[g]=arguments[g];l=Lt(l,\"hsl\");var m=l[0],C=l[1],A=l[2],x,R,I;if(C===0)x=R=I=A*255;else{var L=[0,0,0],H=[0,0,0],j=A<.5?A*(1+C):A+C-A*C,$=2*A-j,G=m/360;L[0]=G+1/3,L[1]=G,L[2]=G-1/3;for(var q=0;q<3;q++)L[q]<0&&(L[q]+=1),L[q]>1&&(L[q]-=1),6*L[q]<1?H[q]=$+(j-$)*6*L[q]:2*L[q]<1?H[q]=j:3*L[q]<2?H[q]=$+(j-$)*(2/3-L[q])*6:H[q]=$;a=[yt(H[0]*255),yt(H[1]*255),yt(H[2]*255)],x=a[0],R=a[1],I=a[2]}return l.length>3?[x,R,I,l[3]]:[x,R,I,1]},ge=zt,se=ge,de=M,Ue=/^rgb\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*\\)$/,sr=/^rgba\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/,Xe=/^rgb\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$/,Ye=/^rgba\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/,je=/^hsl\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$/,ar=/^hsla\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/,qe=Math.round,or=function(a){a=a.toLowerCase().trim();var l;if(de.format.named)try{return de.format.named(a)}catch{}if(l=a.match(Ue)){for(var g=l.slice(1,4),m=0;m<3;m++)g[m]=+g[m];return g[3]=1,g}if(l=a.match(sr)){for(var C=l.slice(1,5),A=0;A<4;A++)C[A]=+C[A];return C}if(l=a.match(Xe)){for(var x=l.slice(1,4),R=0;R<3;R++)x[R]=qe(x[R]*2.55);return x[3]=1,x}if(l=a.match(Ye)){for(var I=l.slice(1,5),L=0;L<3;L++)I[L]=qe(I[L]*2.55);return I[3]=+I[3],I}if(l=a.match(je)){var H=l.slice(1,4);H[1]*=.01,H[2]*=.01;var j=se(H);return j[3]=1,j}if(l=a.match(ar)){var $=l.slice(1,4);$[1]*=.01,$[2]*=.01;var G=se($);return G[3]=+l[4],G}};or.test=function(a){return Ue.test(a)||sr.test(a)||Xe.test(a)||Ye.test(a)||je.test(a)||ar.test(a)};var Pr=or,Tr=X,Ge=T,lr=M,hr=y.type,Dr=Ut,ur=Pr;Ge.prototype.css=function(a){return Dr(this._rgb,a)},Tr.css=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(Ge,[null].concat(a,[\"css\"])))},lr.format.css=ur,lr.autodetect.push({p:5,test:function(a){for(var l=[],g=arguments.length-1;g-- >0;)l[g]=arguments[g+1];if(!l.length&&hr(a)===\"string\"&&ur.test(a))return\"css\"}});var gr=T,cr=X,dr=M,Fr=y.unpack;dr.format.gl=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=Fr(a,\"rgba\");return g[0]*=255,g[1]*=255,g[2]*=255,g},cr.gl=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(gr,[null].concat(a,[\"gl\"])))},gr.prototype.gl=function(){var a=this._rgb;return[a[0]/255,a[1]/255,a[2]/255,a[3]]};var fr=y.unpack,pr=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=fr(a,\"rgb\"),m=g[0],C=g[1],A=g[2],x=Math.min(m,C,A),R=Math.max(m,C,A),I=R-x,L=I*100/255,H=x/(255-I)*100,j;return I===0?j=Number.NaN:(m===R&&(j=(C-A)/I),C===R&&(j=2+(A-m)/I),A===R&&(j=4+(m-C)/I),j*=60,j<0&&(j+=360)),[j,L,H]},zr=pr,Hr=y.unpack,Vr=Math.floor,$r=function(){for(var a,l,g,m,C,A,x=[],R=arguments.length;R--;)x[R]=arguments[R];x=Hr(x,\"hcg\");var I=x[0],L=x[1],H=x[2],j,$,G;H=H*255;var q=L*255;if(L===0)j=$=G=H;else{I===360&&(I=0),I>360&&(I-=360),I<0&&(I+=360),I/=60;var rt=Vr(I),st=I-rt,lt=H*(1-L),ct=lt+q*(1-st),Xt=lt+q*st,_t=lt+q;switch(rt){case 0:a=[_t,Xt,lt],j=a[0],$=a[1],G=a[2];break;case 1:l=[ct,_t,lt],j=l[0],$=l[1],G=l[2];break;case 2:g=[lt,_t,Xt],j=g[0],$=g[1],G=g[2];break;case 3:m=[lt,ct,_t],j=m[0],$=m[1],G=m[2];break;case 4:C=[Xt,lt,_t],j=C[0],$=C[1],G=C[2];break;case 5:A=[_t,lt,ct],j=A[0],$=A[1],G=A[2];break}}return[j,$,G,x.length>3?x[3]:1]},_r=$r,Ur=y.unpack,Xr=y.type,Yr=X,mr=T,br=M,w=zr;mr.prototype.hcg=function(){return w(this._rgb)},Yr.hcg=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(mr,[null].concat(a,[\"hcg\"])))},br.format.hcg=_r,br.autodetect.push({p:1,test:function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];if(a=Ur(a,\"hcg\"),Xr(a)===\"array\"&&a.length===3)return\"hcg\"}});var Rt=y.unpack,Ee=y.last,jt=Math.round,We=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=Rt(a,\"rgba\"),m=g[0],C=g[1],A=g[2],x=g[3],R=Ee(a)||\"auto\";x===void 0&&(x=1),R===\"auto\"&&(R=x<1?\"rgba\":\"rgb\"),m=jt(m),C=jt(C),A=jt(A);var I=m<<16|C<<8|A,L=\"000000\"+I.toString(16);L=L.substr(L.length-6);var H=\"0\"+jt(x*255).toString(16);switch(H=H.substr(H.length-2),R.toLowerCase()){case\"rgba\":return\"#\"+L+H;case\"argb\":return\"#\"+H+L;default:return\"#\"+L}},K=We,Be=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Hi=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Vi=function(a){if(a.match(Be)){(a.length===4||a.length===7)&&(a=a.substr(1)),a.length===3&&(a=a.split(\"\"),a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]);var l=parseInt(a,16),g=l>>16,m=l>>8&255,C=l&255;return[g,m,C,1]}if(a.match(Hi)){(a.length===5||a.length===9)&&(a=a.substr(1)),a.length===4&&(a=a.split(\"\"),a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]+a[3]+a[3]);var A=parseInt(a,16),x=A>>24&255,R=A>>16&255,I=A>>8&255,L=Math.round((A&255)/255*100)/100;return[x,R,I,L]}throw new Error(\"unknown hex color: \"+a)},jr=Vi,$i=X,Ct=T,re=y.type,qr=M,Gr=K;Ct.prototype.hex=function(a){return Gr(this._rgb,a)},$i.hex=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(Ct,[null].concat(a,[\"hex\"])))},qr.format.hex=jr,qr.autodetect.push({p:4,test:function(a){for(var l=[],g=arguments.length-1;g-- >0;)l[g]=arguments[g+1];if(!l.length&&re(a)===\"string\"&&[3,4,5,6,7,8,9].indexOf(a.length)>=0)return\"hex\"}});var Wr=y.unpack,Ke=y.TWOPI,Ne=Math.min,Z=Math.sqrt,Ze=Math.acos,vr=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=Wr(a,\"rgb\"),m=g[0],C=g[1],A=g[2];m/=255,C/=255,A/=255;var x,R=Ne(m,C,A),I=(m+C+A)/3,L=I>0?1-R/I:0;return L===0?x=NaN:(x=(m-C+(m-A))/2,x/=Z((m-C)*(m-C)+(m-A)*(C-A)),x=Ze(x),A>C&&(x=Ke-x),x/=Ke),[x*360,L,I]},Oe=vr,be=y.unpack,Je=y.limit,ae=y.TWOPI,Qe=y.PITHIRD,ve=Math.cos,wr=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];a=be(a,\"hsi\");var g=a[0],m=a[1],C=a[2],A,x,R;return isNaN(g)&&(g=0),isNaN(m)&&(m=0),g>360&&(g-=360),g<0&&(g+=360),g/=360,g<1/3?(R=(1-m)/3,A=(1+m*ve(ae*g)/ve(Qe-ae*g))/3,x=1-(R+A)):g<2/3?(g-=1/3,A=(1-m)/3,x=(1+m*ve(ae*g)/ve(Qe-ae*g))/3,R=1-(A+x)):(g-=2/3,x=(1-m)/3,R=(1+m*ve(ae*g)/ve(Qe-ae*g))/3,A=1-(x+R)),A=Je(C*A*3),x=Je(C*x*3),R=Je(C*R*3),[A*255,x*255,R*255,a.length>3?a[3]:1]},yr=wr,Kr=y.unpack,Sr=y.type,Zr=X,xr=T,Cr=M,Jr=Oe;xr.prototype.hsi=function(){return Jr(this._rgb)},Zr.hsi=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(xr,[null].concat(a,[\"hsi\"])))},Cr.format.hsi=yr,Cr.autodetect.push({p:2,test:function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];if(a=Kr(a,\"hsi\"),Sr(a)===\"array\"&&a.length===3)return\"hsi\"}});var Qr=y.unpack,ti=y.type,ei=X,N=T,v=M,D=Et;N.prototype.hsl=function(){return D(this._rgb)},ei.hsl=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(N,[null].concat(a,[\"hsl\"])))},v.format.hsl=ge,v.autodetect.push({p:2,test:function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];if(a=Qr(a,\"hsl\"),ti(a)===\"array\"&&a.length===3)return\"hsl\"}});var k=y.unpack,_=Math.min,Y=Math.max,Q=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];a=k(a,\"rgb\");var g=a[0],m=a[1],C=a[2],A=_(g,m,C),x=Y(g,m,C),R=x-A,I,L,H;return H=x/255,x===0?(I=Number.NaN,L=0):(L=R/x,g===x&&(I=(m-C)/R),m===x&&(I=2+(C-g)/R),C===x&&(I=4+(g-m)/R),I*=60,I<0&&(I+=360)),[I,L,H]},Ht=Q,ie=y.unpack,oe=Math.floor,ds=function(){for(var a,l,g,m,C,A,x=[],R=arguments.length;R--;)x[R]=arguments[R];x=ie(x,\"hsv\");var I=x[0],L=x[1],H=x[2],j,$,G;if(H*=255,L===0)j=$=G=H;else{I===360&&(I=0),I>360&&(I-=360),I<0&&(I+=360),I/=60;var q=oe(I),rt=I-q,st=H*(1-L),lt=H*(1-L*rt),ct=H*(1-L*(1-rt));switch(q){case 0:a=[H,ct,st],j=a[0],$=a[1],G=a[2];break;case 1:l=[lt,H,st],j=l[0],$=l[1],G=l[2];break;case 2:g=[st,H,ct],j=g[0],$=g[1],G=g[2];break;case 3:m=[st,lt,H],j=m[0],$=m[1],G=m[2];break;case 4:C=[ct,st,H],j=C[0],$=C[1],G=C[2];break;case 5:A=[H,st,lt],j=A[0],$=A[1],G=A[2];break}}return[j,$,G,x.length>3?x[3]:1]},fs=ds,ps=y.unpack,ms=y.type,bs=X,_i=T,Ui=M,vs=Ht;_i.prototype.hsv=function(){return vs(this._rgb)},bs.hsv=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(_i,[null].concat(a,[\"hsv\"])))},Ui.format.hsv=fs,Ui.autodetect.push({p:2,test:function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];if(a=ps(a,\"hsv\"),ms(a)===\"array\"&&a.length===3)return\"hsv\"}});var Ar={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Le=Ar,ws=y.unpack,Xi=Math.pow,ys=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=ws(a,\"rgb\"),m=g[0],C=g[1],A=g[2],x=Ss(m,C,A),R=x[0],I=x[1],L=x[2],H=116*I-16;return[H<0?0:H,500*(R-I),200*(I-L)]},ri=function(a){return(a/=255)<=.04045?a/12.92:Xi((a+.055)/1.055,2.4)},ii=function(a){return a>Le.t3?Xi(a,1/3):a/Le.t2+Le.t0},Ss=function(a,l,g){a=ri(a),l=ri(l),g=ri(g);var m=ii((.4124564*a+.3575761*l+.1804375*g)/Le.Xn),C=ii((.2126729*a+.7151522*l+.072175*g)/Le.Yn),A=ii((.0193339*a+.119192*l+.9503041*g)/Le.Zn);return[m,C,A]},Yi=ys,Pe=Ar,xs=y.unpack,Cs=Math.pow,As=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];a=xs(a,\"lab\");var g=a[0],m=a[1],C=a[2],A,x,R,I,L,H;return x=(g+16)/116,A=isNaN(m)?x:x+m/500,R=isNaN(C)?x:x-C/200,x=Pe.Yn*si(x),A=Pe.Xn*si(A),R=Pe.Zn*si(R),I=ni(3.2404542*A-1.5371385*x-.4985314*R),L=ni(-.969266*A+1.8760108*x+.041556*R),H=ni(.0556434*A-.2040259*x+1.0572252*R),[I,L,H,a.length>3?a[3]:1]},ni=function(a){return 255*(a<=.00304?12.92*a:1.055*Cs(a,1/2.4)-.055)},si=function(a){return a>Pe.t1?a*a*a:Pe.t2*(a-Pe.t0)},ji=As,Ns=y.unpack,Rs=y.type,ks=X,qi=T,Gi=M,Is=Yi;qi.prototype.lab=function(){return Is(this._rgb)},ks.lab=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(qi,[null].concat(a,[\"lab\"])))},Gi.format.lab=ji,Gi.autodetect.push({p:2,test:function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];if(a=Ns(a,\"lab\"),Rs(a)===\"array\"&&a.length===3)return\"lab\"}});var Ms=y.unpack,Es=y.RAD2DEG,Bs=Math.sqrt,Os=Math.atan2,Ls=Math.round,Ps=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=Ms(a,\"lab\"),m=g[0],C=g[1],A=g[2],x=Bs(C*C+A*A),R=(Os(A,C)*Es+360)%360;return Ls(x*1e4)===0&&(R=Number.NaN),[m,x,R]},Wi=Ps,Ts=y.unpack,Ds=Yi,Fs=Wi,zs=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=Ts(a,\"rgb\"),m=g[0],C=g[1],A=g[2],x=Ds(m,C,A),R=x[0],I=x[1],L=x[2];return Fs(R,I,L)},Hs=zs,Vs=y.unpack,$s=y.DEG2RAD,_s=Math.sin,Us=Math.cos,Xs=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=Vs(a,\"lch\"),m=g[0],C=g[1],A=g[2];return isNaN(A)&&(A=0),A=A*$s,[m,Us(A)*C,_s(A)*C]},Ki=Xs,Ys=y.unpack,js=Ki,qs=ji,Gs=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];a=Ys(a,\"lch\");var g=a[0],m=a[1],C=a[2],A=js(g,m,C),x=A[0],R=A[1],I=A[2],L=qs(x,R,I),H=L[0],j=L[1],$=L[2];return[H,j,$,a.length>3?a[3]:1]},Zi=Gs,Ws=y.unpack,Ks=Zi,Zs=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=Ws(a,\"hcl\").reverse();return Ks.apply(void 0,g)},Js=Zs,Qs=y.unpack,ta=y.type,Ji=X,Nr=T,ai=M,Qi=Hs;Nr.prototype.lch=function(){return Qi(this._rgb)},Nr.prototype.hcl=function(){return Qi(this._rgb).reverse()},Ji.lch=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(Nr,[null].concat(a,[\"lch\"])))},Ji.hcl=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(Nr,[null].concat(a,[\"hcl\"])))},ai.format.lch=Zi,ai.format.hcl=Js,[\"lch\",\"hcl\"].forEach(function(a){return ai.autodetect.push({p:2,test:function(){for(var l=[],g=arguments.length;g--;)l[g]=arguments[g];if(l=Qs(l,a),ta(l)===\"array\"&&l.length===3)return a}})});var ea={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflower:\"#6495ed\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",laserlemon:\"#ffff54\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrod:\"#fafad2\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",maroon2:\"#7f0000\",maroon3:\"#b03060\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",purple2:\"#7f007f\",purple3:\"#a020f0\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},tn=ea,ra=T,en=M,ia=y.type,tr=tn,na=jr,sa=K;ra.prototype.name=function(){for(var a=sa(this._rgb,\"rgb\"),l=0,g=Object.keys(tr);l<g.length;l+=1){var m=g[l];if(tr[m]===a)return m.toLowerCase()}return a},en.format.named=function(a){if(a=a.toLowerCase(),tr[a])return na(tr[a]);throw new Error(\"unknown color name: \"+a)},en.autodetect.push({p:5,test:function(a){for(var l=[],g=arguments.length-1;g-- >0;)l[g]=arguments[g+1];if(!l.length&&ia(a)===\"string\"&&tr[a.toLowerCase()])return\"named\"}});var aa=y.unpack,oa=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=aa(a,\"rgb\"),m=g[0],C=g[1],A=g[2];return(m<<16)+(C<<8)+A},la=oa,ha=y.type,ua=function(a){if(ha(a)==\"number\"&&a>=0&&a<=16777215){var l=a>>16,g=a>>8&255,m=a&255;return[l,g,m,1]}throw new Error(\"unknown num color: \"+a)},ga=ua,ca=X,rn=T,nn=M,da=y.type,fa=la;rn.prototype.num=function(){return fa(this._rgb)},ca.num=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(rn,[null].concat(a,[\"num\"])))},nn.format.num=ga,nn.autodetect.push({p:5,test:function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];if(a.length===1&&da(a[0])===\"number\"&&a[0]>=0&&a[0]<=16777215)return\"num\"}});var pa=X,oi=T,sn=M,an=y.unpack,on=y.type,ln=Math.round;oi.prototype.rgb=function(a){return a===void 0&&(a=!0),a===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(ln)},oi.prototype.rgba=function(a){return a===void 0&&(a=!0),this._rgb.slice(0,4).map(function(l,g){return g<3?a===!1?l:ln(l):l})},pa.rgb=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(oi,[null].concat(a,[\"rgb\"])))},sn.format.rgb=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=an(a,\"rgba\");return g[3]===void 0&&(g[3]=1),g},sn.autodetect.push({p:3,test:function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];if(a=an(a,\"rgba\"),on(a)===\"array\"&&(a.length===3||a.length===4&&on(a[3])==\"number\"&&a[3]>=0&&a[3]<=1))return\"rgb\"}});var Rr=Math.log,ma=function(a){var l=a/100,g,m,C;return l<66?(g=255,m=l<6?0:-155.25485562709179-.44596950469579133*(m=l-2)+104.49216199393888*Rr(m),C=l<20?0:-254.76935184120902+.8274096064007395*(C=l-10)+115.67994401066147*Rr(C)):(g=351.97690566805693+.114206453784165*(g=l-55)-40.25366309332127*Rr(g),m=325.4494125711974+.07943456536662342*(m=l-50)-28.0852963507957*Rr(m),C=255),[g,m,C,1]},hn=ma,ba=hn,va=y.unpack,wa=Math.round,ya=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];for(var g=va(a,\"rgb\"),m=g[0],C=g[2],A=1e3,x=4e4,R=.4,I;x-A>R;){I=(x+A)*.5;var L=ba(I);L[2]/L[0]>=C/m?x=I:A=I}return wa(I)},Sa=ya,li=X,kr=T,hi=M,xa=Sa;kr.prototype.temp=kr.prototype.kelvin=kr.prototype.temperature=function(){return xa(this._rgb)},li.temp=li.kelvin=li.temperature=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(kr,[null].concat(a,[\"temp\"])))},hi.format.temp=hi.format.kelvin=hi.format.temperature=hn;var Ca=y.unpack,ui=Math.cbrt,Aa=Math.pow,Na=Math.sign,Ra=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=Ca(a,\"rgb\"),m=g[0],C=g[1],A=g[2],x=[gi(m/255),gi(C/255),gi(A/255)],R=x[0],I=x[1],L=x[2],H=ui(.4122214708*R+.5363325363*I+.0514459929*L),j=ui(.2119034982*R+.6806995451*I+.1073969566*L),$=ui(.0883024619*R+.2817188376*I+.6299787005*L);return[.2104542553*H+.793617785*j-.0040720468*$,1.9779984951*H-2.428592205*j+.4505937099*$,.0259040371*H+.7827717662*j-.808675766*$]},un=Ra;function gi(a){var l=Math.abs(a);return l<.04045?a/12.92:(Na(a)||1)*Aa((l+.055)/1.055,2.4)}var ka=y.unpack,Ir=Math.pow,Ia=Math.sign,Ma=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];a=ka(a,\"lab\");var g=a[0],m=a[1],C=a[2],A=Ir(g+.3963377774*m+.2158037573*C,3),x=Ir(g-.1055613458*m-.0638541728*C,3),R=Ir(g-.0894841775*m-1.291485548*C,3);return[255*ci(4.0767416621*A-3.3077115913*x+.2309699292*R),255*ci(-1.2684380046*A+2.6097574011*x-.3413193965*R),255*ci(-.0041960863*A-.7034186147*x+1.707614701*R),a.length>3?a[3]:1]},gn=Ma;function ci(a){var l=Math.abs(a);return l>.0031308?(Ia(a)||1)*(1.055*Ir(l,1/2.4)-.055):a*12.92}var Ea=y.unpack,Ba=y.type,Oa=X,cn=T,dn=M,La=un;cn.prototype.oklab=function(){return La(this._rgb)},Oa.oklab=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(cn,[null].concat(a,[\"oklab\"])))},dn.format.oklab=gn,dn.autodetect.push({p:3,test:function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];if(a=Ea(a,\"oklab\"),Ba(a)===\"array\"&&a.length===3)return\"oklab\"}});var Pa=y.unpack,Ta=un,Da=Wi,Fa=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var g=Pa(a,\"rgb\"),m=g[0],C=g[1],A=g[2],x=Ta(m,C,A),R=x[0],I=x[1],L=x[2];return Da(R,I,L)},za=Fa,Ha=y.unpack,Va=Ki,$a=gn,_a=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];a=Ha(a,\"lch\");var g=a[0],m=a[1],C=a[2],A=Va(g,m,C),x=A[0],R=A[1],I=A[2],L=$a(x,R,I),H=L[0],j=L[1],$=L[2];return[H,j,$,a.length>3?a[3]:1]},Ua=_a,Xa=y.unpack,Ya=y.type,ja=X,fn=T,pn=M,qa=za;fn.prototype.oklch=function(){return qa(this._rgb)},ja.oklch=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return new(Function.prototype.bind.apply(fn,[null].concat(a,[\"oklch\"])))},pn.format.oklch=Ua,pn.autodetect.push({p:3,test:function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];if(a=Xa(a,\"oklch\"),Ya(a)===\"array\"&&a.length===3)return\"oklch\"}});var mn=T,Ga=y.type;mn.prototype.alpha=function(a,l){return l===void 0&&(l=!1),a!==void 0&&Ga(a)===\"number\"?l?(this._rgb[3]=a,this):new mn([this._rgb[0],this._rgb[1],this._rgb[2],a],\"rgb\"):this._rgb[3]};var Wa=T;Wa.prototype.clipped=function(){return this._rgb._clipped||!1};var Re=T,Ka=Ar;Re.prototype.darken=function(a){a===void 0&&(a=1);var l=this,g=l.lab();return g[0]-=Ka.Kn*a,new Re(g,\"lab\").alpha(l.alpha(),!0)},Re.prototype.brighten=function(a){return a===void 0&&(a=1),this.darken(-a)},Re.prototype.darker=Re.prototype.darken,Re.prototype.brighter=Re.prototype.brighten;var Za=T;Za.prototype.get=function(a){var l=a.split(\".\"),g=l[0],m=l[1],C=this[g]();if(m){var A=g.indexOf(m)-(g.substr(0,2)===\"ok\"?2:0);if(A>-1)return C[A];throw new Error(\"unknown channel \"+m+\" in mode \"+g)}else return C};var Te=T,Ja=y.type,Qa=Math.pow,to=1e-7,eo=20;Te.prototype.luminance=function(a){if(a!==void 0&&Ja(a)===\"number\"){if(a===0)return new Te([0,0,0,this._rgb[3]],\"rgb\");if(a===1)return new Te([255,255,255,this._rgb[3]],\"rgb\");var l=this.luminance(),g=\"rgb\",m=eo,C=function(x,R){var I=x.interpolate(R,.5,g),L=I.luminance();return Math.abs(a-L)<to||!m--?I:L>a?C(x,I):C(I,R)},A=(l>a?C(new Te([0,0,0]),this):C(this,new Te([255,255,255]))).rgb();return new Te(A.concat([this._rgb[3]]))}return ro.apply(void 0,this._rgb.slice(0,3))};var ro=function(a,l,g){return a=di(a),l=di(l),g=di(g),.2126*a+.7152*l+.0722*g},di=function(a){return a/=255,a<=.03928?a/12.92:Qa((a+.055)/1.055,2.4)},te={},bn=T,vn=y.type,Mr=te,wn=function(a,l,g){g===void 0&&(g=.5);for(var m=[],C=arguments.length-3;C-- >0;)m[C]=arguments[C+3];var A=m[0]||\"lrgb\";if(!Mr[A]&&!m.length&&(A=Object.keys(Mr)[0]),!Mr[A])throw new Error(\"interpolation mode \"+A+\" is not defined\");return vn(a)!==\"object\"&&(a=new bn(a)),vn(l)!==\"object\"&&(l=new bn(l)),Mr[A](a,l,g).alpha(a.alpha()+g*(l.alpha()-a.alpha()))},yn=T,io=wn;yn.prototype.mix=yn.prototype.interpolate=function(a,l){l===void 0&&(l=.5);for(var g=[],m=arguments.length-2;m-- >0;)g[m]=arguments[m+2];return io.apply(void 0,[this,a,l].concat(g))};var Sn=T;Sn.prototype.premultiply=function(a){a===void 0&&(a=!1);var l=this._rgb,g=l[3];return a?(this._rgb=[l[0]*g,l[1]*g,l[2]*g,g],this):new Sn([l[0]*g,l[1]*g,l[2]*g,g],\"rgb\")};var fi=T,no=Ar;fi.prototype.saturate=function(a){a===void 0&&(a=1);var l=this,g=l.lch();return g[1]+=no.Kn*a,g[1]<0&&(g[1]=0),new fi(g,\"lch\").alpha(l.alpha(),!0)},fi.prototype.desaturate=function(a){return a===void 0&&(a=1),this.saturate(-a)};var xn=T,Cn=y.type;xn.prototype.set=function(a,l,g){g===void 0&&(g=!1);var m=a.split(\".\"),C=m[0],A=m[1],x=this[C]();if(A){var R=C.indexOf(A)-(C.substr(0,2)===\"ok\"?2:0);if(R>-1){if(Cn(l)==\"string\")switch(l.charAt(0)){case\"+\":x[R]+=+l;break;case\"-\":x[R]+=+l;break;case\"*\":x[R]*=+l.substr(1);break;case\"/\":x[R]/=+l.substr(1);break;default:x[R]=+l}else if(Cn(l)===\"number\")x[R]=l;else throw new Error(\"unsupported value for Color.set\");var I=new xn(x,C);return g?(this._rgb=I._rgb,this):I}throw new Error(\"unknown channel \"+A+\" in mode \"+C)}else return x};var so=T,ao=function(a,l,g){var m=a._rgb,C=l._rgb;return new so(m[0]+g*(C[0]-m[0]),m[1]+g*(C[1]-m[1]),m[2]+g*(C[2]-m[2]),\"rgb\")};te.rgb=ao;var oo=T,pi=Math.sqrt,De=Math.pow,lo=function(a,l,g){var m=a._rgb,C=m[0],A=m[1],x=m[2],R=l._rgb,I=R[0],L=R[1],H=R[2];return new oo(pi(De(C,2)*(1-g)+De(I,2)*g),pi(De(A,2)*(1-g)+De(L,2)*g),pi(De(x,2)*(1-g)+De(H,2)*g),\"rgb\")};te.lrgb=lo;var ho=T,uo=function(a,l,g){var m=a.lab(),C=l.lab();return new ho(m[0]+g*(C[0]-m[0]),m[1]+g*(C[1]-m[1]),m[2]+g*(C[2]-m[2]),\"lab\")};te.lab=uo;var An=T,Fe=function(a,l,g,m){var C,A,x,R;m===\"hsl\"?(x=a.hsl(),R=l.hsl()):m===\"hsv\"?(x=a.hsv(),R=l.hsv()):m===\"hcg\"?(x=a.hcg(),R=l.hcg()):m===\"hsi\"?(x=a.hsi(),R=l.hsi()):m===\"lch\"||m===\"hcl\"?(m=\"hcl\",x=a.hcl(),R=l.hcl()):m===\"oklch\"&&(x=a.oklch().reverse(),R=l.oklch().reverse());var I,L,H,j,$,G;(m.substr(0,1)===\"h\"||m===\"oklch\")&&(C=x,I=C[0],H=C[1],$=C[2],A=R,L=A[0],j=A[1],G=A[2]);var q,rt,st,lt;return!isNaN(I)&&!isNaN(L)?(L>I&&L-I>180?lt=L-(I+360):L<I&&I-L>180?lt=L+360-I:lt=L-I,rt=I+g*lt):isNaN(I)?isNaN(L)?rt=Number.NaN:(rt=L,($==1||$==0)&&m!=\"hsv\"&&(q=j)):(rt=I,(G==1||G==0)&&m!=\"hsv\"&&(q=H)),q===void 0&&(q=H+g*(j-H)),st=$+g*(G-$),m===\"oklch\"?new An([st,q,rt],m):new An([rt,q,st],m)},go=Fe,Nn=function(a,l,g){return go(a,l,g,\"lch\")};te.lch=Nn,te.hcl=Nn;var co=T,fo=function(a,l,g){var m=a.num(),C=l.num();return new co(m+g*(C-m),\"num\")};te.num=fo;var po=Fe,mo=function(a,l,g){return po(a,l,g,\"hcg\")};te.hcg=mo;var bo=Fe,vo=function(a,l,g){return bo(a,l,g,\"hsi\")};te.hsi=vo;var wo=Fe,yo=function(a,l,g){return wo(a,l,g,\"hsl\")};te.hsl=yo;var So=Fe,xo=function(a,l,g){return So(a,l,g,\"hsv\")};te.hsv=xo;var Co=T,Ao=function(a,l,g){var m=a.oklab(),C=l.oklab();return new Co(m[0]+g*(C[0]-m[0]),m[1]+g*(C[1]-m[1]),m[2]+g*(C[2]-m[2]),\"oklab\")};te.oklab=Ao;var No=Fe,Ro=function(a,l,g){return No(a,l,g,\"oklch\")};te.oklch=Ro;var mi=T,ko=y.clip_rgb,bi=Math.pow,vi=Math.sqrt,wi=Math.PI,Rn=Math.cos,kn=Math.sin,Io=Math.atan2,Mo=function(a,l,g){l===void 0&&(l=\"lrgb\"),g===void 0&&(g=null);var m=a.length;g||(g=Array.from(new Array(m)).map(function(){return 1}));var C=m/g.reduce(function(rt,st){return rt+st});if(g.forEach(function(rt,st){g[st]*=C}),a=a.map(function(rt){return new mi(rt)}),l===\"lrgb\")return Eo(a,g);for(var A=a.shift(),x=A.get(l),R=[],I=0,L=0,H=0;H<x.length;H++)if(x[H]=(x[H]||0)*g[0],R.push(isNaN(x[H])?0:g[0]),l.charAt(H)===\"h\"&&!isNaN(x[H])){var j=x[H]/180*wi;I+=Rn(j)*g[0],L+=kn(j)*g[0]}var $=A.alpha()*g[0];a.forEach(function(rt,st){var lt=rt.get(l);$+=rt.alpha()*g[st+1];for(var ct=0;ct<x.length;ct++)if(!isNaN(lt[ct]))if(R[ct]+=g[st+1],l.charAt(ct)===\"h\"){var Xt=lt[ct]/180*wi;I+=Rn(Xt)*g[st+1],L+=kn(Xt)*g[st+1]}else x[ct]+=lt[ct]*g[st+1]});for(var G=0;G<x.length;G++)if(l.charAt(G)===\"h\"){for(var q=Io(L/R[G],I/R[G])/wi*180;q<0;)q+=360;for(;q>=360;)q-=360;x[G]=q}else x[G]=x[G]/R[G];return $/=m,new mi(x,l).alpha($>.99999?1:$,!0)},Eo=function(a,l){for(var g=a.length,m=[0,0,0,0],C=0;C<a.length;C++){var A=a[C],x=l[C]/g,R=A._rgb;m[0]+=bi(R[0],2)*x,m[1]+=bi(R[1],2)*x,m[2]+=bi(R[2],2)*x,m[3]+=R[3]*x}return m[0]=vi(m[0]),m[1]=vi(m[1]),m[2]=vi(m[2]),m[3]>.9999999&&(m[3]=1),new mi(ko(m))},le=X,ze=y.type,Bo=Math.pow,yi=function(a){var l=\"rgb\",g=le(\"#ccc\"),m=0,C=[0,1],A=[],x=[0,0],R=!1,I=[],L=!1,H=0,j=1,$=!1,G={},q=!0,rt=1,st=function(U){if(U=U||[\"#fff\",\"#000\"],U&&ze(U)===\"string\"&&le.brewer&&le.brewer[U.toLowerCase()]&&(U=le.brewer[U.toLowerCase()]),ze(U)===\"array\"){U.length===1&&(U=[U[0],U[0]]),U=U.slice(0);for(var tt=0;tt<U.length;tt++)U[tt]=le(U[tt]);A.length=0;for(var nt=0;nt<U.length;nt++)A.push(nt/(U.length-1))}return Wt(),I=U},lt=function(U){if(R!=null){for(var tt=R.length-1,nt=0;nt<tt&&U>=R[nt];)nt++;return nt-1}return 0},ct=function(U){return U},Xt=function(U){return U},_t=function(U,tt){var nt,it;if(tt==null&&(tt=!1),isNaN(U)||U===null)return g;if(tt)it=U;else if(R&&R.length>2){var Yt=lt(U);it=Yt/(R.length-2)}else j!==H?it=(U-H)/(j-H):it=1;it=Xt(it),tt||(it=ct(it)),rt!==1&&(it=Bo(it,rt)),it=x[0]+it*(1-x[0]-x[1]),it=Math.min(1,Math.max(0,it));var St=Math.floor(it*1e4);if(q&&G[St])nt=G[St];else{if(ze(I)===\"array\")for(var ht=0;ht<A.length;ht++){var dt=A[ht];if(it<=dt){nt=I[ht];break}if(it>=dt&&ht===A.length-1){nt=I[ht];break}if(it>dt&&it<A[ht+1]){it=(it-dt)/(A[ht+1]-dt),nt=le.interpolate(I[ht],I[ht+1],it,l);break}}else ze(I)===\"function\"&&(nt=I(it));q&&(G[St]=nt)}return nt},Wt=function(){return G={}};st(a);var ot=function(U){var tt=le(_t(U));return L&&tt[L]?tt[L]():tt};return ot.classes=function(U){if(U!=null){if(ze(U)===\"array\")R=U,C=[U[0],U[U.length-1]];else{var tt=le.analyze(C);U===0?R=[tt.min,tt.max]:R=le.limits(tt,\"e\",U)}return ot}return R},ot.domain=function(U){if(!arguments.length)return C;H=U[0],j=U[U.length-1],A=[];var tt=I.length;if(U.length===tt&&H!==j)for(var nt=0,it=Array.from(U);nt<it.length;nt+=1){var Yt=it[nt];A.push((Yt-H)/(j-H))}else{for(var St=0;St<tt;St++)A.push(St/(tt-1));if(U.length>2){var ht=U.map(function(ft,vt){return vt/(U.length-1)}),dt=U.map(function(ft){return(ft-H)/(j-H)});dt.every(function(ft,vt){return ht[vt]===ft})||(Xt=function(ft){if(ft<=0||ft>=1)return ft;for(var vt=0;ft>=dt[vt+1];)vt++;var ue=(ft-dt[vt])/(dt[vt+1]-dt[vt]),Se=ht[vt]+ue*(ht[vt+1]-ht[vt]);return Se})}}return C=[H,j],ot},ot.mode=function(U){return arguments.length?(l=U,Wt(),ot):l},ot.range=function(U,tt){return st(U),ot},ot.out=function(U){return L=U,ot},ot.spread=function(U){return arguments.length?(m=U,ot):m},ot.correctLightness=function(U){return U==null&&(U=!0),$=U,Wt(),$?ct=function(tt){for(var nt=_t(0,!0).lab()[0],it=_t(1,!0).lab()[0],Yt=nt>it,St=_t(tt,!0).lab()[0],ht=nt+(it-nt)*tt,dt=St-ht,ft=0,vt=1,ue=20;Math.abs(dt)>.01&&ue-- >0;)(function(){return Yt&&(dt*=-1),dt<0?(ft=tt,tt+=(vt-tt)*.5):(vt=tt,tt+=(ft-tt)*.5),St=_t(tt,!0).lab()[0],dt=St-ht})();return tt}:ct=function(tt){return tt},ot},ot.padding=function(U){return U!=null?(ze(U)===\"number\"&&(U=[U,U]),x=U,ot):x},ot.colors=function(U,tt){arguments.length<2&&(tt=\"hex\");var nt=[];if(arguments.length===0)nt=I.slice(0);else if(U===1)nt=[ot(.5)];else if(U>1){var it=C[0],Yt=C[1]-it;nt=Oo(0,U,!1).map(function(vt){return ot(it+vt/(U-1)*Yt)})}else{a=[];var St=[];if(R&&R.length>2)for(var ht=1,dt=R.length,ft=1<=dt;ft?ht<dt:ht>dt;ft?ht++:ht--)St.push((R[ht-1]+R[ht])*.5);else St=C;nt=St.map(function(vt){return ot(vt)})}return le[tt]&&(nt=nt.map(function(vt){return vt[tt]()})),nt},ot.cache=function(U){return U!=null?(q=U,ot):q},ot.gamma=function(U){return U!=null?(rt=U,ot):rt},ot.nodata=function(U){return U!=null?(g=le(U),ot):g},ot};function Oo(a,l,g){for(var m=[],C=a<l,A=g?C?l+1:l-1:l,x=a;C?x<A:x>A;C?x++:x--)m.push(x);return m}var er=T,Lo=yi,Po=function(a){for(var l=[1,1],g=1;g<a;g++){for(var m=[1],C=1;C<=l.length;C++)m[C]=(l[C]||0)+l[C-1];l=m}return l},To=function(a){var l,g,m,C,A,x,R;if(a=a.map(function($){return new er($)}),a.length===2)l=a.map(function($){return $.lab()}),A=l[0],x=l[1],C=function($){var G=[0,1,2].map(function(q){return A[q]+$*(x[q]-A[q])});return new er(G,\"lab\")};else if(a.length===3)g=a.map(function($){return $.lab()}),A=g[0],x=g[1],R=g[2],C=function($){var G=[0,1,2].map(function(q){return(1-$)*(1-$)*A[q]+2*(1-$)*$*x[q]+$*$*R[q]});return new er(G,\"lab\")};else if(a.length===4){var I;m=a.map(function($){return $.lab()}),A=m[0],x=m[1],R=m[2],I=m[3],C=function($){var G=[0,1,2].map(function(q){return(1-$)*(1-$)*(1-$)*A[q]+3*(1-$)*(1-$)*$*x[q]+3*(1-$)*$*$*R[q]+$*$*$*I[q]});return new er(G,\"lab\")}}else if(a.length>=5){var L,H,j;L=a.map(function($){return $.lab()}),j=a.length-1,H=Po(j),C=function($){var G=1-$,q=[0,1,2].map(function(rt){return L.reduce(function(st,lt,ct){return st+H[ct]*Math.pow(G,j-ct)*Math.pow($,ct)*lt[rt]},0)});return new er(q,\"lab\")}}else throw new RangeError(\"No point in running bezier with only one color.\");return C},Do=function(a){var l=To(a);return l.scale=function(){return Lo(l)},l},Si=X,he=function(a,l,g){if(!he[g])throw new Error(\"unknown blend mode \"+g);return he[g](a,l)},we=function(a){return function(l,g){var m=Si(g).rgb(),C=Si(l).rgb();return Si.rgb(a(m,C))}},ye=function(a){return function(l,g){var m=[];return m[0]=a(l[0],g[0]),m[1]=a(l[1],g[1]),m[2]=a(l[2],g[2]),m}},Fo=function(a){return a},zo=function(a,l){return a*l/255},Ho=function(a,l){return a>l?l:a},Vo=function(a,l){return a>l?a:l},$o=function(a,l){return 255*(1-(1-a/255)*(1-l/255))},_o=function(a,l){return l<128?2*a*l/255:255*(1-2*(1-a/255)*(1-l/255))},Uo=function(a,l){return 255*(1-(1-l/255)/(a/255))},Xo=function(a,l){return a===255?255:(a=255*(l/255)/(1-a/255),a>255?255:a)};he.normal=we(ye(Fo)),he.multiply=we(ye(zo)),he.screen=we(ye($o)),he.overlay=we(ye(_o)),he.darken=we(ye(Ho)),he.lighten=we(ye(Vo)),he.dodge=we(ye(Xo)),he.burn=we(ye(Uo));for(var Yo=he,xi=y.type,jo=y.clip_rgb,qo=y.TWOPI,Go=Math.pow,Wo=Math.sin,Ko=Math.cos,In=X,Zo=function(a,l,g,m,C){a===void 0&&(a=300),l===void 0&&(l=-1.5),g===void 0&&(g=1),m===void 0&&(m=1),C===void 0&&(C=[0,1]);var A=0,x;xi(C)===\"array\"?x=C[1]-C[0]:(x=0,C=[C,C]);var R=function(I){var L=qo*((a+120)/360+l*I),H=Go(C[0]+x*I,m),j=A!==0?g[0]+I*A:g,$=j*H*(1-H)/2,G=Ko(L),q=Wo(L),rt=H+$*(-.14861*G+1.78277*q),st=H+$*(-.29227*G-.90649*q),lt=H+$*(1.97294*G);return In(jo([rt*255,st*255,lt*255,1]))};return R.start=function(I){return I==null?a:(a=I,R)},R.rotations=function(I){return I==null?l:(l=I,R)},R.gamma=function(I){return I==null?m:(m=I,R)},R.hue=function(I){return I==null?g:(g=I,xi(g)===\"array\"?(A=g[1]-g[0],A===0&&(g=g[1])):A=0,R)},R.lightness=function(I){return I==null?C:(xi(I)===\"array\"?(C=I,x=I[1]-I[0]):(C=[I,I],x=0),R)},R.scale=function(){return In.scale(R)},R.hue(g),R},Jo=T,Qo=\"0123456789abcdef\",tl=Math.floor,el=Math.random,rl=function(){for(var a=\"#\",l=0;l<6;l++)a+=Qo.charAt(tl(el()*16));return new Jo(a,\"hex\")},Ci=c,Mn=Math.log,il=Math.pow,nl=Math.floor,sl=Math.abs,En=function(a,l){l===void 0&&(l=null);var g={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Ci(a)===\"object\"&&(a=Object.values(a)),a.forEach(function(m){l&&Ci(m)===\"object\"&&(m=m[l]),m!=null&&!isNaN(m)&&(g.values.push(m),g.sum+=m,m<g.min&&(g.min=m),m>g.max&&(g.max=m),g.count+=1)}),g.domain=[g.min,g.max],g.limits=function(m,C){return Bn(g,m,C)},g},Bn=function(a,l,g){l===void 0&&(l=\"equal\"),g===void 0&&(g=7),Ci(a)==\"array\"&&(a=En(a));var m=a.min,C=a.max,A=a.values.sort(function(Ni,Ri){return Ni-Ri});if(g===1)return[m,C];var x=[];if(l.substr(0,1)===\"c\"&&(x.push(m),x.push(C)),l.substr(0,1)===\"e\"){x.push(m);for(var R=1;R<g;R++)x.push(m+R/g*(C-m));x.push(C)}else if(l.substr(0,1)===\"l\"){if(m<=0)throw new Error(\"Logarithmic scales are only possible for values > 0\");var I=Math.LOG10E*Mn(m),L=Math.LOG10E*Mn(C);x.push(m);for(var H=1;H<g;H++)x.push(il(10,I+H/g*(L-I)));x.push(C)}else if(l.substr(0,1)===\"q\"){x.push(m);for(var j=1;j<g;j++){var $=(A.length-1)*j/g,G=nl($);if(G===$)x.push(A[G]);else{var q=$-G;x.push(A[G]*(1-q)+A[G+1]*q)}}x.push(C)}else if(l.substr(0,1)===\"k\"){var rt,st=A.length,lt=new Array(st),ct=new Array(g),Xt=!0,_t=0,Wt=null;Wt=[],Wt.push(m);for(var ot=1;ot<g;ot++)Wt.push(m+ot/g*(C-m));for(Wt.push(C);Xt;){for(var U=0;U<g;U++)ct[U]=0;for(var tt=0;tt<st;tt++)for(var nt=A[tt],it=Number.MAX_VALUE,Yt=void 0,St=0;St<g;St++){var ht=sl(Wt[St]-nt);ht<it&&(it=ht,Yt=St),ct[Yt]++,lt[tt]=Yt}for(var dt=new Array(g),ft=0;ft<g;ft++)dt[ft]=null;for(var vt=0;vt<st;vt++)rt=lt[vt],dt[rt]===null?dt[rt]=A[vt]:dt[rt]+=A[vt];for(var ue=0;ue<g;ue++)dt[ue]*=1/ct[ue];Xt=!1;for(var Se=0;Se<g;Se++)if(dt[Se]!==Wt[Se]){Xt=!0;break}Wt=dt,_t++,_t>200&&(Xt=!1)}for(var xe={},He=0;He<g;He++)xe[He]=[];for(var Ve=0;Ve<st;Ve++)rt=lt[Ve],xe[rt].push(A[Ve]);for(var pe=[],ke=0;ke<g;ke++)pe.push(xe[ke][0]),pe.push(xe[ke][xe[ke].length-1]);pe=pe.sort(function(Ni,Ri){return Ni-Ri}),x.push(pe[0]);for(var rr=1;rr<pe.length;rr+=2){var Ie=pe[rr];!isNaN(Ie)&&x.indexOf(Ie)===-1&&x.push(Ie)}}return x},On={analyze:En,limits:Bn},Ln=T,al=function(a,l){a=new Ln(a),l=new Ln(l);var g=a.luminance(),m=l.luminance();return g>m?(g+.05)/(m+.05):(m+.05)/(g+.05)},Pn=T,fe=Math.sqrt,Tt=Math.pow,ol=Math.min,ll=Math.max,Tn=Math.atan2,Dn=Math.abs,Er=Math.cos,Fn=Math.sin,hl=Math.exp,zn=Math.PI,ul=function(a,l,g,m,C){g===void 0&&(g=1),m===void 0&&(m=1),C===void 0&&(C=1);var A=function(Ie){return 360*Ie/(2*zn)},x=function(Ie){return 2*zn*Ie/360};a=new Pn(a),l=new Pn(l);var R=Array.from(a.lab()),I=R[0],L=R[1],H=R[2],j=Array.from(l.lab()),$=j[0],G=j[1],q=j[2],rt=(I+$)/2,st=fe(Tt(L,2)+Tt(H,2)),lt=fe(Tt(G,2)+Tt(q,2)),ct=(st+lt)/2,Xt=.5*(1-fe(Tt(ct,7)/(Tt(ct,7)+Tt(25,7)))),_t=L*(1+Xt),Wt=G*(1+Xt),ot=fe(Tt(_t,2)+Tt(H,2)),U=fe(Tt(Wt,2)+Tt(q,2)),tt=(ot+U)/2,nt=A(Tn(H,_t)),it=A(Tn(q,Wt)),Yt=nt>=0?nt:nt+360,St=it>=0?it:it+360,ht=Dn(Yt-St)>180?(Yt+St+360)/2:(Yt+St)/2,dt=1-.17*Er(x(ht-30))+.24*Er(x(2*ht))+.32*Er(x(3*ht+6))-.2*Er(x(4*ht-63)),ft=St-Yt;ft=Dn(ft)<=180?ft:St<=Yt?ft+360:ft-360,ft=2*fe(ot*U)*Fn(x(ft)/2);var vt=$-I,ue=U-ot,Se=1+.015*Tt(rt-50,2)/fe(20+Tt(rt-50,2)),xe=1+.045*tt,He=1+.015*tt*dt,Ve=30*hl(-Tt((ht-275)/25,2)),pe=2*fe(Tt(tt,7)/(Tt(tt,7)+Tt(25,7))),ke=-pe*Fn(2*x(Ve)),rr=fe(Tt(vt/(g*Se),2)+Tt(ue/(m*xe),2)+Tt(ft/(C*He),2)+ke*(ue/(m*xe))*(ft/(C*He)));return ll(0,ol(100,rr))},Hn=T,gl=function(a,l,g){g===void 0&&(g=\"lab\"),a=new Hn(a),l=new Hn(l);var m=a.get(g),C=l.get(g),A=0;for(var x in m){var R=(m[x]||0)-(C[x]||0);A+=R*R}return Math.sqrt(A)},cl=T,dl=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];try{return new(Function.prototype.bind.apply(cl,[null].concat(a))),!0}catch{return!1}},Vn=X,$n=yi,fl={cool:function(){return $n([Vn.hsl(180,1,.9),Vn.hsl(250,.7,.4)])},hot:function(){return $n([\"#000\",\"#f00\",\"#ff0\",\"#fff\"]).mode(\"rgb\")}},Br={OrRd:[\"#fff7ec\",\"#fee8c8\",\"#fdd49e\",\"#fdbb84\",\"#fc8d59\",\"#ef6548\",\"#d7301f\",\"#b30000\",\"#7f0000\"],PuBu:[\"#fff7fb\",\"#ece7f2\",\"#d0d1e6\",\"#a6bddb\",\"#74a9cf\",\"#3690c0\",\"#0570b0\",\"#045a8d\",\"#023858\"],BuPu:[\"#f7fcfd\",\"#e0ecf4\",\"#bfd3e6\",\"#9ebcda\",\"#8c96c6\",\"#8c6bb1\",\"#88419d\",\"#810f7c\",\"#4d004b\"],Oranges:[\"#fff5eb\",\"#fee6ce\",\"#fdd0a2\",\"#fdae6b\",\"#fd8d3c\",\"#f16913\",\"#d94801\",\"#a63603\",\"#7f2704\"],BuGn:[\"#f7fcfd\",\"#e5f5f9\",\"#ccece6\",\"#99d8c9\",\"#66c2a4\",\"#41ae76\",\"#238b45\",\"#006d2c\",\"#00441b\"],YlOrBr:[\"#ffffe5\",\"#fff7bc\",\"#fee391\",\"#fec44f\",\"#fe9929\",\"#ec7014\",\"#cc4c02\",\"#993404\",\"#662506\"],YlGn:[\"#ffffe5\",\"#f7fcb9\",\"#d9f0a3\",\"#addd8e\",\"#78c679\",\"#41ab5d\",\"#238443\",\"#006837\",\"#004529\"],Reds:[\"#fff5f0\",\"#fee0d2\",\"#fcbba1\",\"#fc9272\",\"#fb6a4a\",\"#ef3b2c\",\"#cb181d\",\"#a50f15\",\"#67000d\"],RdPu:[\"#fff7f3\",\"#fde0dd\",\"#fcc5c0\",\"#fa9fb5\",\"#f768a1\",\"#dd3497\",\"#ae017e\",\"#7a0177\",\"#49006a\"],Greens:[\"#f7fcf5\",\"#e5f5e0\",\"#c7e9c0\",\"#a1d99b\",\"#74c476\",\"#41ab5d\",\"#238b45\",\"#006d2c\",\"#00441b\"],YlGnBu:[\"#ffffd9\",\"#edf8b1\",\"#c7e9b4\",\"#7fcdbb\",\"#41b6c4\",\"#1d91c0\",\"#225ea8\",\"#253494\",\"#081d58\"],Purples:[\"#fcfbfd\",\"#efedf5\",\"#dadaeb\",\"#bcbddc\",\"#9e9ac8\",\"#807dba\",\"#6a51a3\",\"#54278f\",\"#3f007d\"],GnBu:[\"#f7fcf0\",\"#e0f3db\",\"#ccebc5\",\"#a8ddb5\",\"#7bccc4\",\"#4eb3d3\",\"#2b8cbe\",\"#0868ac\",\"#084081\"],Greys:[\"#ffffff\",\"#f0f0f0\",\"#d9d9d9\",\"#bdbdbd\",\"#969696\",\"#737373\",\"#525252\",\"#252525\",\"#000000\"],YlOrRd:[\"#ffffcc\",\"#ffeda0\",\"#fed976\",\"#feb24c\",\"#fd8d3c\",\"#fc4e2a\",\"#e31a1c\",\"#bd0026\",\"#800026\"],PuRd:[\"#f7f4f9\",\"#e7e1ef\",\"#d4b9da\",\"#c994c7\",\"#df65b0\",\"#e7298a\",\"#ce1256\",\"#980043\",\"#67001f\"],Blues:[\"#f7fbff\",\"#deebf7\",\"#c6dbef\",\"#9ecae1\",\"#6baed6\",\"#4292c6\",\"#2171b5\",\"#08519c\",\"#08306b\"],PuBuGn:[\"#fff7fb\",\"#ece2f0\",\"#d0d1e6\",\"#a6bddb\",\"#67a9cf\",\"#3690c0\",\"#02818a\",\"#016c59\",\"#014636\"],Viridis:[\"#440154\",\"#482777\",\"#3f4a8a\",\"#31678e\",\"#26838f\",\"#1f9d8a\",\"#6cce5a\",\"#b6de2b\",\"#fee825\"],Spectral:[\"#9e0142\",\"#d53e4f\",\"#f46d43\",\"#fdae61\",\"#fee08b\",\"#ffffbf\",\"#e6f598\",\"#abdda4\",\"#66c2a5\",\"#3288bd\",\"#5e4fa2\"],RdYlGn:[\"#a50026\",\"#d73027\",\"#f46d43\",\"#fdae61\",\"#fee08b\",\"#ffffbf\",\"#d9ef8b\",\"#a6d96a\",\"#66bd63\",\"#1a9850\",\"#006837\"],RdBu:[\"#67001f\",\"#b2182b\",\"#d6604d\",\"#f4a582\",\"#fddbc7\",\"#f7f7f7\",\"#d1e5f0\",\"#92c5de\",\"#4393c3\",\"#2166ac\",\"#053061\"],PiYG:[\"#8e0152\",\"#c51b7d\",\"#de77ae\",\"#f1b6da\",\"#fde0ef\",\"#f7f7f7\",\"#e6f5d0\",\"#b8e186\",\"#7fbc41\",\"#4d9221\",\"#276419\"],PRGn:[\"#40004b\",\"#762a83\",\"#9970ab\",\"#c2a5cf\",\"#e7d4e8\",\"#f7f7f7\",\"#d9f0d3\",\"#a6dba0\",\"#5aae61\",\"#1b7837\",\"#00441b\"],RdYlBu:[\"#a50026\",\"#d73027\",\"#f46d43\",\"#fdae61\",\"#fee090\",\"#ffffbf\",\"#e0f3f8\",\"#abd9e9\",\"#74add1\",\"#4575b4\",\"#313695\"],BrBG:[\"#543005\",\"#8c510a\",\"#bf812d\",\"#dfc27d\",\"#f6e8c3\",\"#f5f5f5\",\"#c7eae5\",\"#80cdc1\",\"#35978f\",\"#01665e\",\"#003c30\"],RdGy:[\"#67001f\",\"#b2182b\",\"#d6604d\",\"#f4a582\",\"#fddbc7\",\"#ffffff\",\"#e0e0e0\",\"#bababa\",\"#878787\",\"#4d4d4d\",\"#1a1a1a\"],PuOr:[\"#7f3b08\",\"#b35806\",\"#e08214\",\"#fdb863\",\"#fee0b6\",\"#f7f7f7\",\"#d8daeb\",\"#b2abd2\",\"#8073ac\",\"#542788\",\"#2d004b\"],Set2:[\"#66c2a5\",\"#fc8d62\",\"#8da0cb\",\"#e78ac3\",\"#a6d854\",\"#ffd92f\",\"#e5c494\",\"#b3b3b3\"],Accent:[\"#7fc97f\",\"#beaed4\",\"#fdc086\",\"#ffff99\",\"#386cb0\",\"#f0027f\",\"#bf5b17\",\"#666666\"],Set1:[\"#e41a1c\",\"#377eb8\",\"#4daf4a\",\"#984ea3\",\"#ff7f00\",\"#ffff33\",\"#a65628\",\"#f781bf\",\"#999999\"],Set3:[\"#8dd3c7\",\"#ffffb3\",\"#bebada\",\"#fb8072\",\"#80b1d3\",\"#fdb462\",\"#b3de69\",\"#fccde5\",\"#d9d9d9\",\"#bc80bd\",\"#ccebc5\",\"#ffed6f\"],Dark2:[\"#1b9e77\",\"#d95f02\",\"#7570b3\",\"#e7298a\",\"#66a61e\",\"#e6ab02\",\"#a6761d\",\"#666666\"],Paired:[\"#a6cee3\",\"#1f78b4\",\"#b2df8a\",\"#33a02c\",\"#fb9a99\",\"#e31a1c\",\"#fdbf6f\",\"#ff7f00\",\"#cab2d6\",\"#6a3d9a\",\"#ffff99\",\"#b15928\"],Pastel2:[\"#b3e2cd\",\"#fdcdac\",\"#cbd5e8\",\"#f4cae4\",\"#e6f5c9\",\"#fff2ae\",\"#f1e2cc\",\"#cccccc\"],Pastel1:[\"#fbb4ae\",\"#b3cde3\",\"#ccebc5\",\"#decbe4\",\"#fed9a6\",\"#ffffcc\",\"#e5d8bd\",\"#fddaec\",\"#f2f2f2\"]},Ai=0,_n=Object.keys(Br);Ai<_n.length;Ai+=1){var Un=_n[Ai];Br[Un.toLowerCase()]=Br[Un]}var pl=Br,$t=X;$t.average=Mo,$t.bezier=Do,$t.blend=Yo,$t.cubehelix=Zo,$t.mix=$t.interpolate=wn,$t.random=rl,$t.scale=yi,$t.analyze=On.analyze,$t.contrast=al,$t.deltaE=ul,$t.distance=gl,$t.limits=On.limits,$t.valid=dl,$t.scales=fl,$t.colors=tn,$t.brewer=pl;var ml=$t;return ml}))}),Dt=class Ii{static clone(t){let e=Array.isArray(t)?[]:{};for(let r in t){let i=t[r];typeof i.clone==\"function\"?e[r]=i.clone():e[r]=typeof i==\"object\"?Ii.clone(i):i}return e}static equals(t,e){if(t.length!==e.length)return!1;let r=t.slice().sort(),i=e.slice().sort();for(let s=0;s<r.length;s++)if(r[s]!==i[s])return!1;return!0}static print(t){if(t.length==0)return\"\";let e=\"(\";for(let r=0;r<t.length;r++)e+=t[r].id?t[r].id+\", \":t[r]+\", \";return e=e.substring(0,e.length-2),e+\")\"}static each(t,e){for(let r=0;r<t.length;r++)e(t[r])}static get(t,e,r){for(let i=0;i<t.length;i++)if(t[i][e]==r)return t[i]}static contains(t,e){if(!e.property&&!e.func){for(let r=0;r<t.length;r++)if(t[r]==e.value)return!0}else if(e.func){for(let r=0;r<t.length;r++)if(e.func(t[r]))return!0}else for(let r=0;r<t.length;r++)if(t[r][e.property]==e.value)return!0;return!1}static intersection(t,e){let r=[];for(let i=0;i<t.length;i++)for(let s=0;s<e.length;s++)t[i]===e[s]&&r.push(t[i]);return r}static unique(t){let e={};return t.filter(function(r){return e[r]!==void 0?!1:e[r]=!0})}static count(t,e){let r=0;for(let i=0;i<t.length;i++)t[i]===e&&r++;return r}static toggle(t,e){let r=[],i=!1;for(let s=0;s<t.length;s++)t[s]!==e?r.push(t[s]):i=!0;return i||r.push(e),r}static remove(t,e){let r=[];for(let i=0;i<t.length;i++)t[i]!==e&&r.push(t[i]);return r}static removeUnique(t,e){let r=t.indexOf(e);return r>-1&&t.splice(r,1),t}static removeAll(t,e){return t.filter(function(r){return e.indexOf(r)===-1})}static merge(t,e){let r=new Array(t.length+e.length);for(let i=0;i<t.length;i++)r[i]=t[i];for(let i=0;i<e.length;i++)r[t.length+i]=e[i];return r}static containsAll(t,e){let r=0;for(let i=0;i<t.length;i++)for(let s=0;s<e.length;s++)t[i]===e[s]&&r++;return r===e.length}static sortByAtomicNumberDesc(t){let e=t.map(function(r,i){return{index:i,value:r.atomicNumber.split(\".\").map(Number)}});return e.sort(function(r,i){let s=Math.min(i.value.length,r.value.length),o=0;for(;o<s&&i.value[o]===r.value[o];)o++;return o===s?i.value.length-r.value.length:i.value[o]-r.value[o]}),e.map(function(r){return t[r.index]})}static deepCopy(t){let e=[];for(let r=0;r<t.length;r++){let i=t[r];i instanceof Array?e[r]=Ii.deepCopy(i):e[r]=i}return e}},Kn=class Mi{constructor(t,e=\"-\"){this.idx=null,this.element=t.length===1?t.toUpperCase():t,this.drawExplicit=!1,this.ringbonds=[],this.rings=[],this.bondType=e,this.branchBond=null,this.isBridge=!1,this.isBridgeNode=!1,this.originalRings=[],this.bridgedRing=null,this.anchoredRings=[],this.bracket=null,this.plane=0,this.attachedPseudoElements={},this.hasAttachedPseudoElements=!1,this.isDrawn=!0,this.isConnectedToRing=!1,this.neighbouringElements=[],this.isPartOfAromaticRing=t!==this.element,this.bondCount=0,this.chirality=\"\",this.isStereoCenter=!1,this.priority=0,this.mainChain=!1,this.subtreeDepth=1,this.class=void 0}addNeighbouringElement(t){this.neighbouringElements.push(t)}attachPseudoElement(t,e,r=0,i=0){r===null&&(r=0),i===null&&(i=0);let s=r+t+i;this.attachedPseudoElements[s]?this.attachedPseudoElements[s].count+=1:this.attachedPseudoElements[s]={element:t,count:1,hydrogenCount:r,previousElement:e,charge:i},this.hasAttachedPseudoElements=!0}getAttachedPseudoElements(){let t={};return Object.keys(this.attachedPseudoElements).sort().forEach(e=>{t[e]=this.attachedPseudoElements[e]}),t}getAttachedPseudoElementsCount(){return Object.keys(this.attachedPseudoElements).length}isHeteroAtom(){return this.element!==\"C\"&&this.element!==\"H\"}addAnchoredRing(t){Dt.contains(this.anchoredRings,{value:t})||this.anchoredRings.push(t)}getRingbondCount(){return this.ringbonds.length}backupRings(){this.originalRings=Array(this.rings.length);for(let t=0;t<this.rings.length;t++)this.originalRings[t]=this.rings[t]}restoreRings(){this.rings=Array(this.originalRings.length);for(let t=0;t<this.originalRings.length;t++)this.rings[t]=this.originalRings[t]}haveCommonRingbond(t,e){for(let r=0;r<t.ringbonds.length;r++)for(let i=0;i<e.ringbonds.length;i++)if(t.ringbonds[r].id==e.ringbonds[i].id)return!0;return!1}neighbouringElementsEqual(t){if(t.length!==this.neighbouringElements.length)return!1;t.sort(),this.neighbouringElements.sort();for(let e=0;e<this.neighbouringElements.length;e++)if(t[e]!==this.neighbouringElements[e])return!1;return!0}getAtomicNumber(){return Mi.atomicNumbers[this.element]}countImplicitHydrogens(){if(this.bracket)return this.bracket.chirality?0:this.bracket.hcount||0;let t=this.bondCount;if(this.isPartOfAromaticRing){if(this.element!==\"C\")return 0;t+=1}let e=Mi.VALENCES[this.element];if(e===void 0)return 0;let r=e.find(i=>i>=t);return r!==void 0?r-t:0}static get atomicNumbers(){return{H:1,He:2,Li:3,Be:4,B:5,b:5,C:6,c:6,N:7,n:7,O:8,o:8,F:9,Ne:10,Na:11,Mg:12,Al:13,Si:14,P:15,p:15,S:16,s:16,Cl:17,Ar:18,K:19,Ca:20,Sc:21,Ti:22,V:23,Cr:24,Mn:25,Fe:26,Co:27,Ni:28,Cu:29,Zn:30,Ga:31,Ge:32,As:33,Se:34,Br:35,Kr:36,Rb:37,Sr:38,Y:39,Zr:40,Nb:41,Mo:42,Tc:43,Ru:44,Rh:45,Pd:46,Ag:47,Cd:48,In:49,Sn:50,Sb:51,Te:52,I:53,Xe:54,Cs:55,Ba:56,La:57,Ce:58,Pr:59,Nd:60,Pm:61,Sm:62,Eu:63,Gd:64,Tb:65,Dy:66,Ho:67,Er:68,Tm:69,Yb:70,Lu:71,Hf:72,Ta:73,W:74,Re:75,Os:76,Ir:77,Pt:78,Au:79,Hg:80,Tl:81,Pb:82,Bi:83,Po:84,At:85,Rn:86,Fr:87,Ra:88,Ac:89,Th:90,Pa:91,U:92,Np:93,Pu:94,Am:95,Cm:96,Bk:97,Cf:98,Es:99,Fm:100,Md:101,No:102,Lr:103,Rf:104,Db:105,Sg:106,Bh:107,Hs:108,Mt:109,Ds:110,Rg:111,Cn:112,Uut:113,Uuq:114,Uup:115,Uuh:116,Uus:117,Uuo:118}}};Ol(Kn,\"VALENCES\",{H:[1],B:[3],C:[4],N:[3,5],O:[2],F:[1],P:[3,5],S:[2,4,6],Cl:[1],Br:[1],I:[1]});var Zn=Kn,O=class pt{constructor(t,e){arguments.length==0?(this.x=0,this.y=0):t instanceof pt?(this.x=t.x,this.y=t.y):(this.x=t,this.y=e)}clone(){return new pt(this.x,this.y)}toString(){return\"(\"+this.x+\",\"+this.y+\")\"}add(t){return this.x+=t.x,this.y+=t.y,this}subtract(t){return this.x-=t.x,this.y-=t.y,this}divide(t){return this.x/=t,this.y/=t,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}invert(){return this.x=-this.x,this.y=-this.y,this}angle(){return Math.atan2(this.y,this.x)}distance(t){return Math.sqrt((t.x-this.x)*(t.x-this.x)+(t.y-this.y)*(t.y-this.y))}distanceSq(t){return(t.x-this.x)*(t.x-this.x)+(t.y-this.y)*(t.y-this.y)}clockwise(t){let e=this.y*t.x,r=this.x*t.y;return e>r?-1:e===r?0:1}relativeClockwise(t,e){let r=(this.y-t.y)*(e.x-t.x),i=(this.x-t.x)*(e.y-t.y);return r>i?-1:r===i?0:1}rotate(t){let e=new pt(0,0),r=Math.cos(t),i=Math.sin(t);return e.x=this.x*r-this.y*i,e.y=this.x*i+this.y*r,this.x=e.x,this.y=e.y,this}rotateAround(t,e){let r=Math.sin(t),i=Math.cos(t);this.x-=e.x,this.y-=e.y;let s=this.x*i-this.y*r,o=this.x*r+this.y*i;return this.x=s+e.x,this.y=o+e.y,this}rotateTo(t,e,r=0){this.x+=.001,this.y-=.001;let i=pt.subtract(this,e),s=pt.subtract(t,e),o=pt.angle(s,i);return this.rotateAround(o+r,e),this}rotateAwayFrom(t,e,r){this.rotateAround(r,e);let i=this.distanceSq(t);this.rotateAround(-2*r,e),this.distanceSq(t)<i&&this.rotateAround(2*r,e)}getRotateAwayFromAngle(t,e,r){let i=this.clone();i.rotateAround(r,e);let s=i.distanceSq(t);return i.rotateAround(-2*r,e),i.distanceSq(t)<s?r:-r}getRotateTowardsAngle(t,e,r){let i=this.clone();i.rotateAround(r,e);let s=i.distanceSq(t);return i.rotateAround(-2*r,e),i.distanceSq(t)>s?r:-r}getRotateToAngle(t,e){let r=pt.subtract(this,e),i=pt.subtract(t,e),s=pt.angle(i,r);return Number.isNaN(s)?0:s}isInPolygon(t){let e=!1;for(let r=0,i=t.length-1;r<t.length;i=r++){let s=t[r],o=t[i];s.y>this.y!=o.y>this.y&&this.x<(o.x-s.x)*(this.y-s.y)/(o.y-s.y)+s.x&&(e=!e)}return e}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}lengthSq(){return this.x*this.x+this.y*this.y}normalize(){return this.divide(this.length()),this}normalized(){return pt.divideScalar(this,this.length())}whichSide(t,e){return(this.x-t.x)*(e.y-t.y)-(this.y-t.y)*(e.x-t.x)}sameSideAs(t,e,r){let i=this.whichSide(t,e),s=r.whichSide(t,e);return i<0&&s<0||i==0&&s==0||i>0&&s>0}static add(t,e){return new pt(t.x+e.x,t.y+e.y)}static subtract(t,e){return new pt(t.x-e.x,t.y-e.y)}static multiply(t,e){return new pt(t.x*e.x,t.y*e.y)}static multiplyScalar(t,e){return new pt(t.x,t.y).multiplyScalar(e)}static midpoint(t,e){return new pt((t.x+e.x)/2,(t.y+e.y)/2)}static normals(t,e){let r=pt.subtract(e,t);return[new pt(-r.y,r.x),new pt(r.y,-r.x)]}static units(t,e){let r=pt.subtract(e,t);return[new pt(-r.y,r.x).normalize(),new pt(r.y,-r.x).normalize()]}static divide(t,e){return new pt(t.x/e.x,t.y/e.y)}static divideScalar(t,e){return new pt(t.x/e,t.y/e)}static dot(t,e){return t.x*e.x+t.y*e.y}static angle(t,e){let r=pt.dot(t,e);return Math.acos(r/(t.length()*e.length()))}static threePointangle(t,e,r){let i=pt.subtract(e,t),s=pt.subtract(r,e),o=t.distance(e),n=e.distance(r);return Math.acos(pt.dot(i,s)/(o*n))}static scalarProjection(t,e){let r=e.normalized();return pt.dot(t,r)}static averageDirection(t){let e=new pt(0,0);for(let r=0;r<t.length;r++){let i=t[r];e.add(i)}return e.normalize()}},at=class Jn{constructor(t=new O(0,0),e=new O(0,0),r=null,i=null,s=!1,o=!1){this.from=t,this.to=e,this.elementFrom=r,this.elementTo=i,this.chiralFrom=s,this.chiralTo=o}clone(){return new Jn(this.from.clone(),this.to.clone(),this.elementFrom,this.elementTo)}getLength(){let t=this.to.x-this.from.x,e=this.to.y-this.from.y;return Math.sqrt(t*t+e*e)}getAngle(){return O.subtract(this.getRightVector(),this.getLeftVector()).angle()}getRightVector(){return this.from.x<this.to.x?this.to:this.from}getLeftVector(){return this.from.x<this.to.x?this.from:this.to}getRightElement(){return this.from.x<this.to.x?this.elementTo:this.elementFrom}getLeftElement(){return this.from.x<this.to.x?this.elementFrom:this.elementTo}getRightChiral(){return this.from.x<this.to.x?this.chiralTo:this.chiralFrom}getLeftChiral(){return this.from.x<this.to.x?this.chiralFrom:this.chiralTo}setRightVector(t,e){return this.from.x<this.to.x?(this.to.x=t,this.to.y=e):(this.from.x=t,this.from.y=e),this}setLeftVector(t,e){return this.from.x<this.to.x?(this.from.x=t,this.from.y=e):(this.to.x=t,this.to.y=e),this}rotateToXAxis(){let t=this.getLeftVector();return this.setRightVector(t.x+this.getLength(),t.y),this}rotate(t){let e=this.getLeftVector(),r=this.getRightVector(),i=Math.sin(t),s=Math.cos(t),o=s*(r.x-e.x)-i*(r.y-e.y)+e.x,n=i*(r.x-e.x)-s*(r.y-e.y)+e.y;return this.setRightVector(o,n),this}shortenFrom(t){let e=O.subtract(this.to,this.from);return e.normalize(),e.multiplyScalar(t),this.from.add(e),this}shortenTo(t){let e=O.subtract(this.from,this.to);return e.normalize(),e.multiplyScalar(t),this.to.add(e),this}shortenRight(t){return this.from.x<this.to.x?this.shortenTo(t):this.shortenFrom(t),this}shortenLeft(t){return this.from.x<this.to.x?this.shortenFrom(t):this.shortenTo(t),this}shorten(t){let e=O.subtract(this.from,this.to);return e.normalize(),e.multiplyScalar(t/2),this.to.add(e),this.from.subtract(e),this}},ut=class Me{static round(t,e){if(e){let r=Math.pow(10,e);return Math.round(t*r)/r}else return Math.round(t)}static meanAngle(t){let e=0,r=0;for(let i=0;i<t.length;i++)e+=Math.sin(t[i]),r+=Math.cos(t[i]);return Math.atan2(e/t.length,r/t.length)}static innerAngle(t){return Me.toRad((t-2)*180/t)}static polyCircumradius(t,e){return t/(2*Math.sin(Math.PI/e))}static apothem(t,e){return t*Math.cos(Math.PI/e)}static apothemFromSideLength(t,e){let r=Me.polyCircumradius(t,e);return Me.apothem(r,e)}static centralAngle(t){return Me.toRad(360/t)}static toDeg(t){return t*Me.degFactor}static toRad(t){return t*Me.radFactor}static parityOfPermutation(t){let e=new Uint8Array(t.length),r=0,i=function(s,o=0){return e[s]===1?o:(o++,e[s]=1,i(t[s],o))};for(let s=0;s<t.length;s++){if(e[s]===1)continue;let o=i(s);r+=1-o%2}return r%2?-1:1}static get radFactor(){return Math.PI/180}static get degFactor(){return 180/Math.PI}static get twoPI(){return 2*Math.PI}},Qn=class ts{constructor(t,e=0,r=0){this.id=null,this.value=t,this.position=new O(e||0,r||0),this.previousPosition=new O(0,0),this.parentVertexId=null,this.children=[],this.spanningTreeChildren=[],this.edges=[],this.positioned=!1,this.angle=null,this.dir=1,this.neighbourCount=0,this.neighbours=[],this.neighbouringElements=[],this.forcePositioned=!1}setPosition(t,e){this.position.x=t,this.position.y=e}setPositionFromVector(t){this.position.x=t.x,this.position.y=t.y}addChild(t){this.children.push(t),this.neighbours.push(t),this.neighbourCount++}addRingbondChild(t,e){if(this.children.push(t),this.value.bracket){let r=1;this.id===0&&this.value.bracket.hcount===0&&(r=0),this.value.bracket.hcount===1&&e===0&&(r=2),this.value.bracket.hcount===1&&e===1&&(this.neighbours.length<3?r=2:r=3),this.value.bracket.hcount===null&&e===0&&(r=1),this.value.bracket.hcount===null&&e===1&&(this.neighbours.length<3?r=1:r=2),this.neighbours.splice(r,0,t)}else this.neighbours.push(t);this.neighbourCount++}setParentVertexId(t){this.neighbourCount++,this.parentVertexId=t,this.neighbours.push(t)}isTerminal(){return this.value.hasAttachedPseudoElements?!0:this.parentVertexId===null&&this.children.length<2||this.children.length===0}clone(){let t=new ts(this.value,this.position.x,this.position.y);return t.id=this.id,t.previousPosition=new O(this.previousPosition.x,this.previousPosition.y),t.parentVertexId=this.parentVertexId,t.children=Dt.clone(this.children),t.spanningTreeChildren=Dt.clone(this.spanningTreeChildren),t.edges=Dt.clone(this.edges),t.positioned=this.positioned,t.angle=this.angle,t.forcePositioned=this.forcePositioned,t}equals(t){return this.id===t.id}getAngle(t=null,e=!1){let r=null;return t?r=O.subtract(this.position,t):r=O.subtract(this.position,this.previousPosition),e?ut.toDeg(r.angle()):r.angle()}getTextDirection(t,e=!1){let r=this.getDrawnNeighbours(t),i=[];if(t.length===1)return\"right\";for(let o=0;o<r.length;o++)i.push(this.getAngle(t[r[o]].position));let s=ut.meanAngle(i);if(this.isTerminal()||e)Math.round(s*100)/100===1.57&&(s=s-.2),s=Math.round(Math.round(s/Math.PI)*Math.PI);else{let o=Math.PI/2;s=Math.round(Math.round(s/o)*o)}return s===2?\"down\":s===-2?\"up\":s===0?\"right\":s===3||s===-3?\"left\":\"down\"}getNeighbours(t=null){if(t===null)return this.neighbours.slice();let e=[];for(let r=0;r<this.neighbours.length;r++)this.neighbours[r]!==t&&e.push(this.neighbours[r]);return e}getDrawnNeighbours(t){let e=[];for(let r=0;r<this.neighbours.length;r++)t[this.neighbours[r]].value.isDrawn&&e.push(this.neighbours[r]);return e}getNeighbourCount(){return this.neighbourCount}getSpanningTreeNeighbours(t=null){let e=[];for(let r=0;r<this.spanningTreeChildren.length;r++)(t===void 0||t!=this.spanningTreeChildren[r])&&e.push(this.spanningTreeChildren[r]);return this.parentVertexId!=null&&(t===void 0||t!=this.parentVertexId)&&e.push(this.parentVertexId),e}getNextInRing(t,e,r){let i=this.getNeighbours();for(let s=0;s<i.length;s++)if(Dt.contains(t[i[s]].value.rings,{value:e})&&i[s]!=r)return i[s];return null}},ir=class{constructor(d,t){this.id=null,this.firstRingId=d.id,this.secondRingId=t.id,this.vertices=new Set,this.isForcedBridge=!1;for(let e=0;e<d.members.length;e++){let r=d.members[e];for(let i=0;i<t.members.length;i++){let s=t.members[i];r===s&&this.addVertex(r)}}}addVertex(d){this.vertices.add(d)}updateOther(d,t){this.firstRingId===t?this.secondRingId=d:this.firstRingId=d}containsRing(d){return this.firstRingId===d||this.secondRingId===d}isBridge(d){if(this.isForcedBridge||this.vertices.size>2)return!0;if(this.vertices.size===2){let[t,e]=[...this.vertices],r=new Set(d[e].neighbours);for(let i of d[t].neighbours)if(i!==e&&r.has(i)){let s=d[i].value.rings;if(s.includes(this.firstRingId)||s.includes(this.secondRingId))return!0}}return!1}static isBridge(d,t,e,r){let i=null;for(let s=0;s<d.length;s++)if(i=d[s],i.firstRingId===e&&i.secondRingId===r||i.firstRingId===r&&i.secondRingId===e)return i.isBridge(t);return!1}static getNeighbours(d,t){let e=[];for(let r=0;r<d.length;r++){let i=d[r];i.firstRingId===t?e.push(i.secondRingId):i.secondRingId===t&&e.push(i.firstRingId)}return e}static getVertices(d,t,e){for(let r=0;r<d.length;r++){let i=d[r];if(i.firstRingId===t&&i.secondRingId===e||i.firstRingId===e&&i.secondRingId===t)return[...i.vertices]}}},Xn=class es{constructor(t){this.id=null,this.members=t,this.edges=[],this.insiders=[],this.neighbours=[],this.positioned=!1,this.center=new O(0,0),this.rings=[],this.isBridged=!1,this.isPartOfBridged=!1,this.isSpiro=!1,this.isFused=!1,this.centralAngle=0,this.canFlip=!0}clone(){let t=new es(this.members);return t.id=this.id,t.insiders=Dt.clone(this.insiders),t.neighbours=Dt.clone(this.neighbours),t.positioned=this.positioned,t.center=this.center.clone(),t.rings=Dt.clone(this.rings),t.isBridged=this.isBridged,t.isPartOfBridged=this.isPartOfBridged,t.isSpiro=this.isSpiro,t.isFused=this.isFused,t.centralAngle=this.centralAngle,t.canFlip=this.canFlip,t}getSize(){return this.members.length}getPolygon(t){let e=[];for(let r=0;r<this.members.length;r++)e.push(t[this.members[r]].position);return e}getAngle(){return Math.PI-this.centralAngle}eachMember(t,e,r,i){r=r||r===0?r:this.members[0];let s=r,o=0;for(;s!=null&&o<100;){let n=s;e(n),s=t[s].getNextInRing(t,this.id,i),i=n,s==r&&(s=null),o++}}getOrderedNeighbours(t){let e=Array(this.neighbours.length);for(let r=0;r<this.neighbours.length;r++){let i=ir.getVertices(t,this.id,this.neighbours[r]);e[r]={n:i.length,neighbour:this.neighbours[r]}}return e.sort((r,i)=>i.n-r.n),e}isBenzeneLike(t){let e=this.getDoubleBondCount(t),r=this.members.length;return e===3&&r===6||e===2&&r===5}getDoubleBondCount(t){let e=0;for(let r=0;r<this.members.length;r++){let i=t[this.members[r]].value;(i.bondType===\"=\"||i.branchBond===\"=\")&&e++}return e}contains(t){for(let e=0;e<this.members.length;e++)if(this.members[e]==t)return!0;return!1}},Pi=class{constructor(d,t){this.colors=d,this.theme=this.colors[t]}getColor(d){return d&&(d=d.toUpperCase(),d in this.theme)?this.theme[d]:this.theme.C}setTheme(d){d in this.colors&&(this.theme=this.colors[d])}};function Yn(d){return d?d===1?\"+\":d===-1?\"-\":d>0?d+\"+\":d+\"-\":\"\"}var Pl=class{constructor(d,t,e){let r=null;if(d instanceof String?r=document.getElementById(d.valueOf()):typeof d==\"string\"?r=document.getElementById(d):r=d,r instanceof HTMLCanvasElement)this.canvas=r;else throw Error(\"First argument was not a canvas or the ID of a canvas.\");this.ctx=this.canvas.getContext(\"2d\"),this.themeManager=t,this.opts=e,this.drawingWidth=0,this.drawingHeight=0,this.offsetX=0,this.offsetY=0,this.fontLarge=this.opts.fontSizeLarge+\"pt Helvetica, Arial, sans-serif\",this.fontSmall=this.opts.fontSizeSmall+\"pt Helvetica, Arial, sans-serif\",this.updateSize(this.opts.width,this.opts.height),this.ctx.font=this.fontLarge,this.hydrogenWidth=this.ctx.measureText(\"H\").width,this.halfHydrogenWidth=this.hydrogenWidth/2,this.halfBondThickness=this.opts.bondThickness/2}updateSize(d,t){this.ratio=window.devicePixelRatio||1,this.ratio!==1?(this.canvas.width=d*this.ratio,this.canvas.height=t*this.ratio,this.canvas.style.width=d+\"px\",this.canvas.style.height=t+\"px\",this.ctx.setTransform(this.ratio,0,0,this.ratio,0,0)):(this.canvas.width=d*this.ratio,this.canvas.height=t*this.ratio)}setTheme(d){this.colors=d}scale(d){let t=-Number.MAX_VALUE,e=-Number.MAX_VALUE,r=Number.MAX_VALUE,i=Number.MAX_VALUE;for(let c=0;c<d.length;c++){if(!d[c].value.isDrawn)continue;let u=d[c].position;t<u.x&&(t=u.x),e<u.y&&(e=u.y),r>u.x&&(r=u.x),i>u.y&&(i=u.y)}let s=this.opts.padding;t+=s,e+=s,r-=s,i-=s,this.drawingWidth=t-r,this.drawingHeight=e-i;let o=this.canvas.offsetWidth/this.drawingWidth,n=this.canvas.offsetHeight/this.drawingHeight,h=o<n?o:n;this.ctx.scale(h,h),this.offsetX=-r,this.offsetY=-i,o<n?this.offsetY+=this.canvas.offsetHeight/(2*h)-this.drawingHeight/2:this.offsetX+=this.canvas.offsetWidth/(2*h)-this.drawingWidth/2}reset(){this.ctx.setTransform(1,0,0,1,0,0)}getColor(d){return d=d.toUpperCase(),d in this.colors?this.colors[d]:this.colors.C}drawCircle(d,t,e,r,i=!0,s=!1,o=\"\"){let n=this.ctx,h=this.offsetX,c=this.offsetY;n.save(),n.lineWidth=1.5,n.beginPath(),n.arc(d+h,t+c,e,0,ut.twoPI,!0),n.closePath(),s?(i?(n.fillStyle=\"#f00\",n.fill()):(n.strokeStyle=\"#f00\",n.stroke()),this.drawDebugText(d,t,o)):i?(n.fillStyle=r,n.fill()):(n.strokeStyle=r,n.stroke()),n.restore()}drawLine(d,t=!1,e=1){let r=this.ctx,i=this.offsetX,s=this.offsetY,o=d.clone().shorten(4),n=o.getLeftVector().clone(),h=o.getRightVector().clone();n.x+=i,n.y+=s,h.x+=i,h.y+=s,t||(r.save(),r.globalCompositeOperation=\"destination-out\",r.beginPath(),r.moveTo(n.x,n.y),r.lineTo(h.x,h.y),r.lineCap=\"round\",r.lineWidth=this.opts.bondThickness+1.2,r.strokeStyle=this.themeManager.getColor(\"BACKGROUND\"),r.stroke(),r.globalCompositeOperation=\"source-over\",r.restore()),n=d.getLeftVector().clone(),h=d.getRightVector().clone(),n.x+=i,n.y+=s,h.x+=i,h.y+=s,r.save(),r.beginPath(),r.moveTo(n.x,n.y),r.lineTo(h.x,h.y),r.lineCap=\"round\",r.lineWidth=this.opts.bondThickness;let c=this.ctx.createLinearGradient(n.x,n.y,h.x,h.y);c.addColorStop(.4,this.themeManager.getColor(d.getLeftElement())||this.themeManager.getColor(\"C\")),c.addColorStop(.6,this.themeManager.getColor(d.getRightElement())||this.themeManager.getColor(\"C\")),t&&(r.setLineDash([1,1.5]),r.lineWidth=this.opts.bondThickness/1.5),e<1&&(r.globalAlpha=e),r.strokeStyle=c,r.stroke(),r.restore()}drawWedge(d,t=1){if(isNaN(d.from.x)||isNaN(d.from.y)||isNaN(d.to.x)||isNaN(d.to.y))return;let e=this.ctx,r=this.offsetX,i=this.offsetY,s=d.clone().shorten(5),o=s.getLeftVector().clone(),n=s.getRightVector().clone();o.x+=r,o.y+=i,n.x+=r,n.y+=i,o=d.getLeftVector().clone(),n=d.getRightVector().clone(),o.x+=r,o.y+=i,n.x+=r,n.y+=i,e.save();let h=O.normals(o,n);h[0].normalize(),h[1].normalize();let c=d.getRightChiral(),u=o,p=n;c&&(u=n,p=o);let b=O.add(u,O.multiplyScalar(h[0],this.halfBondThickness)),f=O.add(p,O.multiplyScalar(h[0],1.5+this.halfBondThickness)),S=O.add(p,O.multiplyScalar(h[1],1.5+this.halfBondThickness)),y=O.add(u,O.multiplyScalar(h[1],this.halfBondThickness));e.beginPath(),e.moveTo(b.x,b.y),e.lineTo(f.x,f.y),e.lineTo(S.x,S.y),e.lineTo(y.x,y.y);let M=this.ctx.createRadialGradient(n.x,n.y,this.opts.bondLength,n.x,n.y,0);M.addColorStop(.4,this.themeManager.getColor(d.getLeftElement())||this.themeManager.getColor(\"C\")),M.addColorStop(.6,this.themeManager.getColor(d.getRightElement())||this.themeManager.getColor(\"C\")),e.fillStyle=M,e.fill(),e.restore()}drawDashedWedge(d){if(isNaN(d.from.x)||isNaN(d.from.y)||isNaN(d.to.x)||isNaN(d.to.y))return;let t=this.ctx,e=this.offsetX,r=this.offsetY,i=d.getLeftVector().clone(),s=d.getRightVector().clone();i.x+=e,i.y+=r,s.x+=e,s.y+=r,t.save();let o=O.normals(i,s);o[0].normalize(),o[1].normalize();let n=d.getRightChiral(),h,c,u,p,b=d.clone();n?(h=s,c=i,b.shortenRight(1),u=b.getRightVector().clone(),p=b.getLeftVector().clone()):(h=i,c=s,b.shortenLeft(1),u=b.getLeftVector().clone(),p=b.getRightVector().clone()),u.x+=e,u.y+=r,p.x+=e,p.y+=r;let f=O.subtract(c,h).normalize();t.strokeStyle=this.themeManager.getColor(\"C\"),t.lineCap=\"round\",t.lineWidth=this.opts.bondThickness,t.beginPath();let S=d.getLength(),y=1.25/(S/(this.opts.bondThickness*3)),M=!1;for(let B=0;B<1;B+=y){let E=O.multiplyScalar(f,B*S),P=O.add(h,E),V=1.5*B,z=O.multiplyScalar(o[0],V);!M&&B>.5&&(t.stroke(),t.beginPath(),t.strokeStyle=this.themeManager.getColor(d.getRightElement())||this.themeManager.getColor(\"C\"),M=!0),P.subtract(z),t.moveTo(P.x,P.y),P.add(O.multiplyScalar(z,2)),t.lineTo(P.x,P.y)}t.stroke(),t.restore()}drawDebugText(d,t,e){let r=this.ctx;r.save(),r.font=\"5px Droid Sans, sans-serif\",r.textAlign=\"start\",r.textBaseline=\"top\",r.fillStyle=\"#ff0000\",r.fillText(e,d+this.offsetX,t+this.offsetY),r.restore()}drawBall(d,t,e){let r=this.ctx;r.save(),r.beginPath(),r.arc(d+this.offsetX,t+this.offsetY,this.opts.bondLength/4.5,0,ut.twoPI,!1),r.fillStyle=this.themeManager.getColor(e),r.fill(),r.restore()}drawPoint(d,t,e){let r=this.ctx,i=this.offsetX,s=this.offsetY;r.save(),r.globalCompositeOperation=\"destination-out\",r.beginPath(),r.arc(d+i,t+s,1.5,0,ut.twoPI,!0),r.closePath(),r.fill(),r.globalCompositeOperation=\"source-over\",r.beginPath(),r.arc(d+this.offsetX,t+this.offsetY,.75,0,ut.twoPI,!1),r.fillStyle=this.themeManager.getColor(e),r.fill(),r.restore()}drawText(d,t,e,r,i,s,o,n,h,c={}){let u=this.ctx,p=this.offsetX,b=this.offsetY;u.save(),u.textAlign=\"start\",u.textBaseline=\"alphabetic\";let f=!1,S=\"\",y=0;o&&(S=Yn(o),u.font=this.fontSmall,y=u.measureText(S).width);let M=\"0\",B=0;n>0&&(M=n.toString(),u.font=this.fontSmall,B=u.measureText(M).width),o===1&&e===\"N\"&&\"0O\"in c&&\"0O-1\"in c&&(c={\"0O\":{element:\"O\",count:2,hydrogenCount:0,previousElement:\"C\",charge:\"\"}},o=0),u.font=this.fontLarge,u.fillStyle=this.themeManager.getColor(\"BACKGROUND\");let E=u.measureText(e),P=E.width>this.opts.fontSizeLarge?E.width:this.opts.fontSizeLarge;P/=1.5,u.globalCompositeOperation=\"destination-out\",u.beginPath(),u.arc(d+p,t+b,P,0,ut.twoPI,!0),u.closePath(),u.fill(),u.globalCompositeOperation=\"source-over\";let V=-E.width/2,z=-E.width/2;u.fillStyle=this.themeManager.getColor(e),u.fillText(e,d+p+V,t+this.opts.halfFontSizeLarge+b),V+=E.width,o&&(u.font=this.fontSmall,u.fillText(S,d+p+V,t-this.opts.fifthFontSizeSmall+b),V+=y),n>0&&(u.font=this.fontSmall,u.fillText(M,d+p+z-B,t-this.opts.fifthFontSizeSmall+b),z-=B),u.font=this.fontLarge;let T=0,F=0;if(r===1){let X=d+p,J=t+b+this.opts.halfFontSizeLarge;T=this.hydrogenWidth,z-=T,i===\"left\"?X+=z:i===\"right\"||i===\"up\"&&s||i===\"down\"&&s?X+=V:i===\"up\"&&!s?(J-=this.opts.fontSizeLarge+this.opts.quarterFontSizeLarge,X-=this.halfHydrogenWidth):i===\"down\"&&!s&&(J+=this.opts.fontSizeLarge+this.opts.quarterFontSizeLarge,X-=this.halfHydrogenWidth),u.fillText(\"H\",X,J),V+=T}else if(r>1){let X=d+p,J=t+b+this.opts.halfFontSizeLarge;T=this.hydrogenWidth,u.font=this.fontSmall,F=u.measureText(r.toString()).width,z-=T+F,i===\"left\"?X+=z:i===\"right\"||i===\"up\"&&s||i===\"down\"&&s?X+=V:i===\"up\"&&!s?(J-=this.opts.fontSizeLarge+this.opts.quarterFontSizeLarge,X-=this.halfHydrogenWidth):i===\"down\"&&!s&&(J+=this.opts.fontSizeLarge+this.opts.quarterFontSizeLarge,X-=this.halfHydrogenWidth),u.font=this.fontLarge,u.fillText(\"H\",X,J),u.font=this.fontSmall,u.fillText(r.toString(),X+this.halfHydrogenWidth+F,J+this.opts.fifthFontSizeSmall),V+=T+this.halfHydrogenWidth+F}if(f){u.restore();return}for(let X of Object.keys(c)){let J=0,mt=0,Vt=c[X].element,At=c[X].count,Nt=c[X].hydrogenCount,ee=c[X].charge;u.font=this.fontLarge,At>1&&Nt>0&&(J=u.measureText(\"(\").width,mt=u.measureText(\")\").width);let Kt=u.measureText(Vt).width,Gt=0,Zt=\"\",ne=0;T=0,Nt>0&&(T=this.hydrogenWidth),u.font=this.fontSmall,At>1&&(Gt=u.measureText(At).width),ee!==0&&(Zt=Yn(ee),ne=u.measureText(Zt).width),F=0,Nt>1&&(F=u.measureText(Nt).width),u.font=this.fontLarge;let kt=d+p,Ft=t+b+this.opts.halfFontSizeLarge;u.fillStyle=this.themeManager.getColor(Vt),At>0&&(z-=Gt),At>1&&Nt>0&&(i===\"left\"?(z-=mt,u.fillText(\")\",kt+z,Ft)):(u.fillText(\"(\",kt+V,Ft),V+=J)),i===\"left\"?(z-=Kt,u.fillText(Vt,kt+z,Ft)):(u.fillText(Vt,kt+V,Ft),V+=Kt),Nt>0&&(i===\"left\"?(z-=T+F,u.fillText(\"H\",kt+z,Ft),Nt>1&&(u.font=this.fontSmall,u.fillText(Nt,kt+z+T,Ft+this.opts.fifthFontSizeSmall))):(u.fillText(\"H\",kt+V,Ft),V+=T,Nt>1&&(u.font=this.fontSmall,u.fillText(Nt,kt+V,Ft+this.opts.fifthFontSizeSmall),V+=F))),u.font=this.fontLarge,At>1&&Nt>0&&(i===\"left\"?(z-=J,u.fillText(\"(\",kt+z,Ft)):(u.fillText(\")\",kt+V,Ft),V+=mt)),u.font=this.fontSmall,At>1&&(i===\"left\"?u.fillText(At,kt+z+J+mt+T+F+Kt,Ft+this.opts.fifthFontSizeSmall):(u.fillText(At,kt+V,Ft+this.opts.fifthFontSizeSmall),V+=Gt)),ee!==0&&(i===\"left\"?u.fillText(Zt,kt+z+J+mt+T+F+Kt,t-this.opts.fifthFontSizeSmall+b):(u.fillText(Zt,kt+V,t-this.opts.fifthFontSizeSmall+b),V+=ne))}u.restore()}drawDebugPoint(d,t,e=\"\",r=\"#f00\"){this.drawCircle(d,t,2,r,!0,!0,e)}drawAromaticityRing(d){let t=this.ctx,e=ut.apothemFromSideLength(this.opts.bondLength,d.getSize());t.save(),t.strokeStyle=this.themeManager.getColor(\"C\"),t.lineWidth=this.opts.bondThickness,t.beginPath(),t.arc(d.center.x+this.offsetX,d.center.y+this.offsetY,e-this.opts.bondSpacing,0,Math.PI*2,!0),t.closePath(),t.stroke(),t.restore()}clear(){this.ctx.clearRect(0,0,this.canvas.offsetWidth,this.canvas.offsetHeight)}},jn=class Ce{static build(t,e){let r=new Ce(t,e,null,new Map);return r.findChildren(),r.sortChildren(),r}static compareAtoms(t,e){if(t.atomicNumber!==e.atomicNumber)return[e.atomicNumber-t.atomicNumber,!1];if(t.cloneDepth&&e.cloneDepth){let r=t.cloneDepth-e.cloneDepth;if(r!==0)return[r,!1]}return t.atomicWeight!==e.atomicWeight?[e.atomicWeight-t.atomicWeight,!1]:[0,t.stereocenter||e.stereocenter]}static compareTrees(t,e){let r=this.compareAtoms(t,e);if(r[0]!==0)return r;let i=[t],s=[e],o=!1;for(;i.length!==0;){for(let n=0;n<i.length;++n){let h=i[n].findChildren(),c=s[n].findChildren(),u=Math.max(h.length,c.length);for(let p=0;p<u;++p){if(p>=h.length)return[1,!1];if(p>=c.length)return[-1,!1];if(r=this.compareAtoms(h[p],c[p]),r[0]!==0)return r;o||(o=r[1])}}i=i.flatMap(n=>n.sortChildren()),s=s.flatMap(n=>n.sortChildren())}return[0,o]}constructor(t,e,r,i){this.graph=t,this.parent=r,e instanceof Qn?(this.vertex=e,this.atomicNumber=e.value.getAtomicNumber(),this.atomicWeight=0,this.stereocenter=!!(e.value.bracket&&e.value.bracket.chirality)):(this.vertex=null,this.atomicNumber=e,this.atomicWeight=0,this.stereocenter=!1),i instanceof Map?(this.cloneDepth=void 0,this.visited=i,this.children=void 0,this.sorted=!1):(this.cloneDepth=i,this.visited=null,this.children=[],this.sorted=!0,this.stereocenter=!1)}findChildren(){if(this.children===void 0){this.children=[];let t=this.visited.size+1,e=new Map(this.visited);e.set(this.vertex,t),this.visited=null;for(let i of this.vertex.neighbours){let s=this.graph.getEdge(this.vertex.id,i).weight;if(!s)continue;let o=this.graph.vertices[i],n=e.get(o);if(Object.is(o,this.parent))s-=1;else if(n===void 0){let h=new Ce(this.graph,o,this.vertex,e);this.children.push(h),n=t+1,s-=1}if(s>0){let h=new Ce(this.graph,o,this.vertex,n);for(;s-- >0;)this.children.push(h)}}if(this.vertex.value.isPartOfAromaticRing){let i=new Ce(this.graph,6,this.vertex);this.children.push(i)}let r=this.vertex.value.countImplicitHydrogens();if(r>0){let i=new Ce(this.graph,1,this.vertex);for(;r-- >0;)this.children.push(i)}this.children.sort((i,s)=>Ce.compareAtoms(i,s)[0])}return this.children}size(){return this.children!==void 0?this.children.reduce((t,e)=>t+e.size(),1):1}sortChildren(){return this.sorted||(this.children.sort((t,e)=>{let[r,i]=Ce.compareTrees(t,e);return i&&this.stereocenter?this.vertex.value.bracket.chirality===\"@\"?e.vertex.id-t.vertex.id:t.vertex.id-e.vertex.id:r}),this.sorted=!0),this.children}},Tl=class{static getOrderArray(d,t){let e=jn.build(d,t);for(let s=1;s<e.children.length;++s){let o=jn.compareTrees(e.children[s-1],e.children[s]);if(o[0]===0&&!o[1])return}let r=t.neighbours.length,i=new Array(r);for(let s=0;s<r;++s){let o=e.children[s].vertex.id;i[s]=t.neighbours.findIndex(n=>n===o)}return i}},rs=class is{constructor(t,e,r=1){this.id=null,this.sourceId=t,this.targetId=e,this.weight=r,this.bondType=\"-\",this.isPartOfAromaticRing=!1,this.center=!1,this.wedge=\"\"}setBondType(t){this.bondType=t,this.weight=is.bonds[t]}static get bonds(){return{\".\":0,\"-\":1,\"/\":1,\"\\\\\":1,\"=\":2,\"#\":3,$:4}}},Ei=class ce{constructor(t,e=!1){this.vertices=[],this.edges=[],this.atomIdxToVertexId=[],this.vertexIdsToEdgeId={},this.isomeric=e,this._atomIdx=0,this._time=0,this._init(t)}_init(t,e=0,r=null,i=!1){let s=t.atom.element?t.atom.element:t.atom,o=new Zn(s,t.bond);(s!==\"H\"||!t.hasNext&&r===null)&&(o.idx=this._atomIdx,this._atomIdx++),o.branchBond=t.branchBond,o.ringbonds=t.ringbonds,o.bracket=t.atom.element?t.atom:null,o.class=t.atom.class;let n=new Qn(o),h=this.vertices[r];if(this.addVertex(n),o.idx!==null&&this.atomIdxToVertexId.push(n.id),r!==null){n.setParentVertexId(r),n.value.addNeighbouringElement(h.value.element),h.addChild(n.id),h.value.addNeighbouringElement(o.element),h.spanningTreeChildren.push(n.id);let p=new rs(r,n.id,1);i?p.setBondType(n.value.branchBond||\"-\"):p.setBondType(h.value.bondType||\"-\"),this.addEdge(p)}let c=t.ringbondCount+1;o.bracket&&(c+=o.bracket.hcount);let u=0;if(o.bracket&&o.bracket.chirality){o.isStereoCenter=!0,u=o.bracket.hcount;for(let p=0;p<u;p++)this._init({atom:\"H\",isBracket:\"false\",branches:[],branchCount:0,ringbonds:[],ringbondCount:!1,next:null,hasNext:!1,bond:\"-\"},p,n.id,!0)}for(let p=0;p<t.branchCount;p++)this._init(t.branches[p],p+c,n.id,!0);t.hasNext&&this._init(t.next,t.branchCount+c,n.id)}clear(){this.vertices=[],this.edges=[],this.vertexIdsToEdgeId={}}addVertex(t){return t.id=this.vertices.length,this.vertices.push(t),t.id}addEdge(t){let e=this.vertices[t.sourceId],r=this.vertices[t.targetId];return t.id=this.edges.length,this.edges.push(t),this.vertexIdsToEdgeId[t.sourceId+\"_\"+t.targetId]=t.id,this.vertexIdsToEdgeId[t.targetId+\"_\"+t.sourceId]=t.id,t.isPartOfAromaticRing=e.value.isPartOfAromaticRing&&r.value.isPartOfAromaticRing,e.value.bondCount+=t.weight,r.value.bondCount+=t.weight,e.edges.push(t.id),r.edges.push(t.id),t.id}getEdge(t,e){let r=this.vertexIdsToEdgeId[t+\"_\"+e];return r===void 0?null:this.edges[r]}getEdges(t){let e=[],r=this.vertices[t];for(let i=0;i<r.neighbours.length;i++)e.push(this.vertexIdsToEdgeId[t+\"_\"+r.neighbours[i]]);return e}hasEdge(t,e){return this.vertexIdsToEdgeId[t+\"_\"+e]!==void 0}getVertexList(){let t=[this.vertices.length];for(let e=0;e<this.vertices.length;e++)t[e]=this.vertices[e].id;return t}getEdgeList(){let t=Array(this.edges.length);for(let e=0;e<this.edges.length;e++)t[e]=[this.edges[e].sourceId,this.edges[e].targetId];return t}getAdjacencyMatrix(){let t=this.vertices.length,e=Array(t);for(let r=0;r<t;r++)e[r]=new Array(t),e[r].fill(0);for(let r=0;r<this.edges.length;r++){let i=this.edges[r];e[i.sourceId][i.targetId]=1,e[i.targetId][i.sourceId]=1}return e}getComponentsAdjacencyMatrix(){let t=this.vertices.length,e=Array(t),r=this.getBridges();for(let i=0;i<t;i++)e[i]=new Array(t),e[i].fill(0);for(let i=0;i<this.edges.length;i++){let s=this.edges[i];e[s.sourceId][s.targetId]=1,e[s.targetId][s.sourceId]=1}for(let i=0;i<r.length;i++)e[r[i][0]][r[i][1]]=0,e[r[i][1]][r[i][0]]=0;return e}getSubgraphAdjacencyMatrix(t){let e=t.length,r=Array(e);for(let i=0;i<e;i++){r[i]=new Array(e),r[i].fill(0);for(let s=0;s<e;s++)i!==s&&this.hasEdge(t[i],t[s])&&(r[i][s]=1)}return r}getDistanceMatrix(){let t=this.vertices.length,e=this.getAdjacencyMatrix(),r=Array(t);for(let i=0;i<t;i++)r[i]=Array(t),r[i].fill(1/0);for(let i=0;i<t;i++)for(let s=0;s<t;s++)e[i][s]===1&&(r[i][s]=1);for(let i=0;i<t;i++)for(let s=0;s<t;s++)for(let o=0;o<t;o++)r[s][o]>r[s][i]+r[i][o]&&(r[s][o]=r[s][i]+r[i][o]);return r}getSubgraphDistanceMatrix(t){let e=t.length,r=this.getSubgraphAdjacencyMatrix(t),i=Array(e);for(let s=0;s<e;s++)i[s]=Array(e),i[s].fill(1/0),i[s][s]=0;for(let s=0;s<e;s++)for(let o=0;o<e;o++)r[s][o]===1&&(i[s][o]=1);for(let s=0;s<e;s++)for(let o=0;o<e;o++)for(let n=0;n<e;n++)i[o][n]>i[o][s]+i[s][n]&&(i[o][n]=i[o][s]+i[s][n]);return i}getAdjacencyList(){let t=this.vertices.length,e=Array(t);for(let r=0;r<t;r++){e[r]=[];for(let i=0;i<t;i++)r!==i&&this.hasEdge(this.vertices[r].id,this.vertices[i].id)&&e[r].push(i)}return e}getSubgraphAdjacencyList(t){let e=t.length,r=Array(e);for(let i=0;i<e;i++){r[i]=[];for(let s=0;s<e;s++)i!==s&&this.hasEdge(t[i],t[s])&&r[i].push(s)}return r}getBridgedRingPerimeter(t,e,r){let i=new Set(e.insiders||[]),s=t.filter(b=>!i.has(b));if(s.length<3)return s;let o=new Set(s),n=new Map;for(let b=0;b<s.length;b++){let f=s[b],S=this.vertices[f].neighbours.filter(y=>o.has(y));if(n.set(f,S),S.length!==2)return s}let h=o.has(r)?r:s[0],c=[h],u=null,p=h;for(;c.length<s.length;){let b=n.get(p).filter(S=>S!==u);if(u===null&&b.sort((S,y)=>this.vertices[S].value.smilesOrder-this.vertices[y].value.smilesOrder),b.length===0)return s;let f=b[0];if(f===h)return s;c.push(f),u=p,p=f}return n.get(p).includes(h)?c:s}getBridges(){let t=this.vertices.length,e=new Array(t),r=new Array(t),i=new Array(t),s=new Array(t),o=this.getAdjacencyList(),n=[];e.fill(!1),s.fill(null),this._time=0;for(let h=0;h<t;h++)e[h]||this._bridgeDfs(h,e,r,i,s,o,n);return n}traverseBF(t,e){let r=this.vertices.length,i=new Array(r);i.fill(!1);let s=[t];for(;s.length>0;){let o=s.shift(),n=this.vertices[o];e(n);for(let h=0;h<n.neighbours.length;h++){let c=n.neighbours[h];i[c]||(i[c]=!0,s.push(c))}}}getTreeDepth(t,e){if(t===null||e===null)return 0;let r=this.vertices[t].getSpanningTreeNeighbours(e),i=0;for(let s=0;s<r.length;s++){let o=r[s],n=this.getTreeDepth(o,t);n>i&&(i=n)}return i+1}traverseTree(t,e,r,i=999999,s=!1,o=1,n=null){if(n===null&&(n=new Uint8Array(this.vertices.length)),o>i+1||n[t]===1)return;n[t]=1;let h=this.vertices[t],c=h.getNeighbours(e);(!s||o>1)&&r(h);for(let u=0;u<c.length;u++)this.traverseTree(c[u],t,r,i,s,o+1,n)}static mdsLayout(t,e,r){let i=new Array(e);for(let E=0;E<e;E++){i[E]=new Float64Array(e);for(let P=0;P<e;P++)i[E][P]=t[E][P]*t[E][P]}let s=new Float64Array(e),o=0;for(let E=0;E<e;E++){let P=0;for(let V=0;V<e;V++)P+=i[E][V];s[E]=P/e,o+=P}o/=e*e;let n=new Array(e);for(let E=0;E<e;E++){n[E]=new Float64Array(e);for(let P=0;P<e;P++)n[E][P]=-.5*(i[E][P]-s[E]-s[P]+o)}let h=ce._powerIteration(n,e,200),c=ce._rayleigh(n,h,e);for(let E=0;E<e;E++)for(let P=0;P<e;P++)n[E][P]-=c*h[E]*h[P];let u=ce._powerIteration(n,e,200),p=ce._rayleigh(n,u,e),b=c>0?Math.sqrt(c):0,f=p>0?Math.sqrt(p):0,S=new Float32Array(e),y=new Float32Array(e);for(let E=0;E<e;E++)S[E]=h[E]*b,y[E]=u[E]*f;let M=0;for(let E=0;E<e;E++)for(let P=E+1;P<e;P++){let V=S[E]-S[P],z=y[E]-y[P],T=V*V+z*z;T>M&&(M=T)}let B=Math.sqrt(M);if(B>0){let E=r*Math.max(2,Math.sqrt(e))/B;for(let P=0;P<e;P++)S[P]*=E,y[P]*=E}return{xs:S,ys:y}}static _powerIteration(t,e,r){let i=new Float64Array(e);for(let o=0;o<e;o++)i[o]=1+.1*o;let s=new Float64Array(e);for(let o=0;o<r;o++){for(let h=0;h<e;h++){let c=0;for(let u=0;u<e;u++)c+=t[h][u]*i[u];s[h]=c}let n=0;for(let h=0;h<e;h++)n+=s[h]*s[h];if(n=Math.sqrt(n),n<1e-12)break;for(let h=0;h<e;h++)i[h]=s[h]/n}return i}static _rayleigh(t,e,r){let i=0;for(let s=0;s<r;s++){let o=0;for(let n=0;n<r;n++)o+=t[s][n]*e[n];i+=e[s]*o}return i}kkLayout(t,e,r,i,s,o=.1,n=.1,h=2e3,c=50,u=1e9){let p=s,b=this.getSubgraphDistanceMatrix(t),f=t.length,S=new Float32Array(f),y=new Float32Array(f),M=Array(f),B=ut.polyCircumradius(s,f),E=ut.centralAngle(f),P=0,V=new Set(i.insiders||[]),z=t.filter(W=>V.has(W)),T=!1;for(let W=0;W<f;W++)if(this.vertices[t[W]].positioned){T=!0;break}if(z.length>0&&z.length<=2){let W=this.getBridgedRingPerimeter(t,i,r),et=new Set(W),It=W.length,Pt=It>2?ut.polyCircumradius(s,It):B,gt=It>0?Math.PI*2/It:E,Mt=0,wt=new Map;if(et.has(r)){let bt=W.indexOf(r),Bt=this.vertices[r];Bt.positioned&&(Mt=O.subtract(Bt.position,e).angle()-bt*gt)}for(let bt=0;bt<W.length;bt++){let Bt=W[bt],Jt=this.vertices[Bt];if(Jt.positioned)wt.set(Bt,Jt.position.clone());else{let Ot=new O(e.x+Math.cos(Mt+bt*gt)*Pt,e.y+Math.sin(Mt+bt*gt)*Pt);wt.set(Bt,Ot)}}let Et=Math.max(s*.35,Pt*.35);for(let bt=0;bt<z.length;bt++){let Bt=z[bt],Jt=this.vertices[Bt];if(Jt.positioned){wt.set(Bt,Jt.position.clone());continue}let Ot=Jt.neighbours.filter(Qt=>et.has(Qt)),xt=new O(e.x,e.y);if(Ot.length>0){xt=new O(0,0);for(let Ut=0;Ut<Ot.length;Ut++)xt.add(wt.get(Ot[Ut]));xt.divide(Ot.length);let Qt=O.subtract(xt,e);Qt.lengthSq()<1e-4?Qt=new O(Math.cos(bt*gt),Math.sin(bt*gt)):Qt.normalize(),xt=Qt.multiplyScalar(Et).add(e.clone())}else xt.x+=Math.cos(bt*gt)*Et,xt.y+=Math.sin(bt*gt)*Et;wt.set(Bt,xt)}for(var F=f;F--;){let bt=this.vertices[t[F]];if(bt.positioned)S[F]=bt.position.x,y[F]=bt.position.y;else{let Bt=wt.get(bt.id);Bt?(S[F]=Bt.x,y[F]=Bt.y):(S[F]=e.x+Math.cos(P)*B,y[F]=e.y+Math.sin(P)*B)}M[F]=bt.positioned,P+=E}}else if(!T&&f>=6){let W=ce.mdsLayout(b,f,s);for(let et=0;et<f;et++)S[et]=e.x+W.xs[et],y[et]=e.y+W.ys[et],M[et]=!1}else for(var F=f;F--;){let et=this.vertices[t[F]];et.positioned?(S[F]=et.position.x,y[F]=et.position.y):(S[F]=e.x+Math.cos(P)*B,y[F]=e.y+Math.sin(P)*B),M[F]=et.positioned,P+=E}let X=Array(f);for(F=f;F--;){X[F]=new Array(f);let W=f;for(;W--;)X[F][W]=s*b[F][W]}let J=Array(f);for(F=f;F--;){J[F]=Array(f);let W=f;for(;W--;)J[F][W]=p*Math.pow(b[F][W],-2)}let mt=Array(f),Vt=new Float32Array(f),At=new Float32Array(f);for(F=f;F--;)mt[F]=Array(f);for(F=f;F--;){let W=S[F],et=y[F],It=0,Pt=0,gt=f;for(;gt--;){if(F===gt)continue;let Mt=S[gt],wt=y[gt],Et=1/Math.sqrt((W-Mt)*(W-Mt)+(et-wt)*(et-wt));mt[F][gt]=[J[F][gt]*(W-Mt-X[F][gt]*(W-Mt)*Et),J[F][gt]*(et-wt-X[F][gt]*(et-wt)*Et)],mt[gt][F]=mt[F][gt],It+=mt[F][gt][0],Pt+=mt[F][gt][1]}Vt[F]=It,At[F]=Pt}let Nt=function(W){return[Vt[W]*Vt[W]+At[W]*At[W],Vt[W],At[W]]},ee=function(){let W=0,et=0,It=0,Pt=0;for(F=f;F--;){let[gt,Mt,wt]=Nt(F);gt>W&&M[F]===!1&&(W=gt,et=F,It=Mt,Pt=wt)}return[et,W,It,Pt]},Kt=function(W,et,It){let Pt=0,gt=0,Mt=0,wt=S[W],Et=y[W],bt=X[W],Bt=J[W];for(F=f;F--;){if(F===W)continue;let Lt=S[F],yt=y[F],zt=bt[F],ge=Bt[F],se=(wt-Lt)*(wt-Lt),de=1/Math.pow(se+(Et-yt)*(Et-yt),1.5);Pt+=ge*(1-zt*(Et-yt)*(Et-yt)*de),gt+=ge*(1-zt*se*de),Mt+=ge*(zt*(wt-Lt)*(Et-yt)*de)}Pt===0&&(Pt=.1),gt===0&&(gt=.1),Mt===0&&(Mt=.1);let Jt=Mt/Pt-gt/Mt,Ot,xt;Math.abs(Jt)<1e-6?(xt=-et*.1,Ot=-It*.1):(Ot=(et/Pt+It/Mt)/Jt,xt=-(Mt*Ot+et)/Pt);let Qt=Math.sqrt(xt*xt+Ot*Ot);if(Qt>s){let Lt=s/Qt;xt*=Lt,Ot*=Lt}S[W]+=xt,y[W]+=Ot;let Ut=mt[W];for(et=0,It=0,wt=S[W],Et=y[W],F=f;F--;){if(W===F)continue;let Lt=S[F],yt=y[F],zt=Ut[F][0],ge=Ut[F][1],se=1/Math.sqrt((wt-Lt)*(wt-Lt)+(Et-yt)*(Et-yt));xt=Bt[F]*(wt-Lt-bt[F]*(wt-Lt)*se),Ot=Bt[F]*(Et-yt-bt[F]*(Et-yt)*se),Ut[F]=[xt,Ot],et+=xt,It+=Ot,Vt[F]+=xt-zt,At[F]+=Ot-ge}Vt[W]=et,At[W]=It},Gt=0,Zt=0,ne=0,kt=0,Ft=0,Ae=0;for(;u>o&&h>Ft;)for(Ft++,[Gt,u,Zt,ne]=ee(),kt=u,Ae=0;kt>n&&c>Ae;)Ae++,Kt(Gt,Zt,ne),[kt,Zt,ne]=Nt(Gt);for(F=f;F--;){let W=t[F],et=this.vertices[W];et.position.x=S[F],et.position.y=y[F],et.positioned=!0,et.forcePositioned=!0}}_bridgeDfs(t,e,r,i,s,o,n){e[t]=!0,r[t]=i[t]=++this._time;for(let h=0;h<o[t].length;h++){let c=o[t][h];e[c]?c!==s[t]&&(i[t]=Math.min(i[t],r[c])):(s[c]=t,this._bridgeDfs(c,e,r,i,s,o,n),i[t]=Math.min(i[t],i[c]),i[c]>r[t]&&n.push([t,c]))}}static getConnectedComponents(t){let e=t.length,r=new Array(e),i=[];r.fill(!1);for(let s=0;s<e;s++)if(!r[s]){let o=[];r[s]=!0,o.push(s),ce._ccGetDfs(s,r,t,o),o.length>1&&i.push(o)}return i}static getConnectedComponentCount(t){let e=t.length,r=new Array(e),i=0;r.fill(!1);for(let s=0;s<e;s++)r[s]||(r[s]=!0,i++,ce._ccCountDfs(s,r,t));return i}static _ccCountDfs(t,e,r){for(let i=0;i<r[t].length;i++)!r[t][i]||e[i]||t===i||(e[i]=!0,ce._ccCountDfs(i,e,r))}static _ccGetDfs(t,e,r,i){for(let s=0;s<r[t].length;s++)!r[t][s]||e[s]||t===s||(e[s]=!0,i.push(s),ce._ccGetDfs(s,e,r,i))}},Ti=class ns{static extend(){let t={},e=!1,r=0,i=arguments.length;Object.prototype.toString.call(arguments[0])===\"[object Boolean]\"&&(e=arguments[0],r++);let s=function(o){for(let n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e&&Object.prototype.toString.call(o[n])===\"[object Object]\"?t[n]=ns.extend(!0,t[n],o[n]):t[n]=o[n])};for(;r<i;r++){let o=arguments[r];s(o)}return t}},ss=class nr{constructor(t){this.size=t;let e=t===0?0:(t-1>>>5)+1;this.words=new Uint32Array(e)}set(t){this.words[t>>>5]|=1<<(t&31)}get(t){return(this.words[t>>>5]&1<<(t&31))!==0}_assertSameSize(t,e){if(this.size!==t.size)throw new Error(\"BitSet.\"+e+\": size mismatch (\"+this.size+\" vs \"+t.size+\"). Operands must share the same bit length.\")}xor(t){this._assertSameSize(t,\"xor\");let e=new nr(this.size);for(let r=0;r<this.words.length;r++)e.words[r]=this.words[r]^t.words[r];return e}and(t){this._assertSameSize(t,\"and\");let e=new nr(this.size);for(let r=0;r<this.words.length;r++)e.words[r]=this.words[r]&t.words[r];return e}or(t){this._assertSameSize(t,\"or\");let e=new nr(this.size);for(let r=0;r<this.words.length;r++)e.words[r]=this.words[r]|t.words[r];return e}orWith(t){this._assertSameSize(t,\"orWith\");for(let e=0;e<this.words.length;e++)this.words[e]|=t.words[e]}isSubsetOf(t){this._assertSameSize(t,\"isSubsetOf\");for(let e=0;e<this.words.length;e++)if((this.words[e]&~t.words[e])!==0)return!1;return!0}clone(){let t=new nr(this.size);for(let e=0;e<this.words.length;e++)t.words[e]=this.words[e];return t}isEmpty(){for(let t=0;t<this.words.length;t++)if(this.words[t]!==0)return!1;return!0}popcount(){let t=0;for(let e=0;e<this.words.length;e++){let r=this.words[e];for(;r!==0;)r&=r-1,t++}return t}clz(){for(let t=this.words.length-1;t>=0;t--)if(this.words[t]!==0){let e=t*32+(31-Math.clz32(this.words[t]));return this.size-1-e}return this.size}},Dl=2147483647;function Fl(d,t,e,r){let i=d.length,s=new Int32Array(i).fill(Dl),o=new Array(i).fill(!1),n=new Array(i).fill(null),h=new Int32Array(i);s[t]=0,o[t]=!0,h[t]=1,n[t]={type:\"source\",vertex:t};let c=[t],u=1;for(let f=0;f<u;f++){let S=c[f],y=s[S]+1;if(!(y>e))for(let M=0;M<d[S].length;M++){let B=d[S][M];if(y<s[B])s[B]=y,n[B]={type:\"seq\",parent:n[S],vertex:B,dist:y},o[B]=o[S]&&r[B]<r[t],h[B]=h[S],c[u++]=B;else if(y===s[B]){if(!(o[S]&&r[B]<r[t]))continue;let E={type:\"seq\",parent:n[S],vertex:B,dist:y};o[B]?(n[B]={type:\"branch\",left:n[B],right:E},h[B]+=h[S]):(o[B]=!0,n[B]=E,h[B]=h[S])}}}function p(f,S){if(!f)return[];let y=new Array(S),M=f;for(;M;)if(M.type===\"source\"){y[0]=M.vertex;break}else M.type===\"seq\"?(y[M.dist]=M.vertex,M=M.parent):M=M.left;return y}function b(f,S){if(!f)return[];if(f.type===\"source\"){let y=new Array(S);return y[0]=f.vertex,[y]}else if(f.type===\"seq\"){let y=b(f.parent,S);for(let M=0;M<y.length;M++)y[M][f.dist]=f.vertex;return y}else{let y=b(f.left,S),M=b(f.right,S);return y.concat(M)}}return{distTo:s,nPathsTo:h,precedes:o,pathTo(f){return f<0||f>=i||!n[f]?[]:p(n[f],s[f]+1)},pathsTo(f){return f<0||f>=i||!n[f]?[]:b(n[f],s[f]+1)},isPrecedingPathTo(f){return f>=0&&f<i&&o[f]}}}function qn(d,t){let e=d.length;for(let r=1;r<e;r++)if(d[r]===t[r])return!1;return!0}function zl(d,t,e){let r=new ss(e),i=d.length-1;for(let s=0;s<i;s++){let o=d[s],n=d[s+1],h=o<n?o+\",\"+n:n+\",\"+o;r.set(t.get(h))}return r}function Hl(d){let t=new Map,e=d.length;for(let r=0;r<e;r++)for(let i=0;i<d[r].length;i++){let s=d[r][i];s>r&&t.set(r+\",\"+s,t.size)}return t}function Vl(d){let t=d.length,e=0,r=new Array(t).fill(0);for(let o=0;o<t;o++)d[o].length>e&&(e=d[o].length);let i=new Array(e+1);for(let o=0;o<=e;o++)i[o]=[];for(let o=0;o<t;o++)i[d[o].length].push(o);let s=0;for(let o=0;o<=e;o++)for(let n of i[o])r[n]=s++;return r}function as(d){let t=d.length,e=Vl(d),r=new Map,i=Hl(d),s=i.size,o=new Array(t);for(let u=0;u<t;u++)o[e[u]]=u;function n(u){let p=zl(u,i,s),b=u.length-1,f=r.get(b);f||(f=[],r.set(b,f)),f.push({path:u,edgeVector:p})}let h=new Array(t),c=2;for(let u=c;u<t;u++){let p=o[u],b=Fl(d,p,Math.floor(t/2),e);for(let f=0;f<u;f++){let S=o[f];if(!b.isPrecedingPathTo(S))continue;let y=0;for(let M=0;M<d[S].length;M++){let B=d[S][M];if(!b.isPrecedingPathTo(B))continue;let E=b.distTo[B],P=b.distTo[S];if(E+1===P)h[y++]=B;else if(E===P&&e[B]<e[S]){let V=b.pathTo(S),z=b.pathTo(B);qn(z,V)&&n(V.concat(z.reverse()))}}for(let M=0;M<y;M++)for(let B=M+1;B<y;B++){let E=b.pathTo(h[M]),P=b.pathTo(h[B]);qn(E,P)&&n(E.concat([S],P.reverse()))}}}return{cycles:r,edgeIndex:i,nEdges:s}}var $l=class{constructor(d,t){this._n=d,this._max=t,this._rows=new Array(t),this._indices=new Int32Array(t),this._m=0}add(d){this._rows[this._m]=d,this._indices[this._m]=this._m,this._m++}swap(d,t){let e=this._rows[d],r=this._indices[d];this._rows[d]=this._rows[t],this._indices[d]=this._indices[t],this._rows[t]=e,this._indices[t]=r}_rowIndex(d){for(let t=0;t<this._m;t++)if(this._indices[t]===d)return t;return-1}eliminated(d){return this._rows[this._rowIndex(d)].isEmpty()}eliminate(){return this._eliminate(0,0)}_eliminate(d,t){for(;d<this._n&&t<this._m;){let e=-1;for(let r=t;r<this._m;r++)if(this._rows[r].get(d)){e=r;break}if(e<0)return this._eliminate(d+1,t);e!==t&&this.swap(e,t);for(let r=t+1;r<this._m;r++)this._rows[r].get(d)&&(this._rows[r]=this._rows[r].xor(this._rows[t]));t++}return t}},os=class{constructor(d){this._members=[],this._edgesOfBasis=new ss(d),this._nEdges=d}add(d){this._members.push(d),this._edgesOfBasis.orWith(d.edgeVector)}members(){return this._members}size(){return this._members.length}isSubsetOfBasis(d){return d.edgeVector.isSubsetOf(this._edgesOfBasis)}isIndependent(d){if(this._members.length===0||!this.isSubsetOfBasis(d))return!0;let t=new $l(this._nEdges,this._members.length+1);for(let e=0;e<this._members.length;e++)t.add(this._members[e].edgeVector.clone());return t.add(d.edgeVector.clone()),t.eliminate(),!t.eliminated(this._members.length)}};function _l(d){let t=d.length;if(t<3)return[];let{cycles:e,nEdges:r}=as(d),i=new os(r),s=r-t+1,o=[...e.keys()].sort((n,h)=>n-h);for(let n=0;n<o.length;n++){let h=e.get(o[n]);for(let c=0;c<h.length&&!(i.size()>=s);c++)i.isIndependent(h[c])&&i.add(h[c])}return i.members().map(n=>n.path)}function Ul(d){if(d.length<3)return[];let{cycles:t,nEdges:e}=as(d),r=new os(e),i=[],s=[...t.keys()].sort((o,n)=>o-n);for(let o=0;o<s.length;o++){let n=t.get(s[o]),h=[];for(let c=0;c<n.length;c++)r.isIndependent(n[c])&&(h.push(n[c]),i.push(n[c].path));for(let c=0;c<h.length;c++)r.add(h[c])}return i}function Xl(d){let t=d.length,e=new Array(t);for(let r=0;r<t;r++){e[r]=[];for(let i=0;i<t;i++)d[r][i]===1&&e[r].push(i)}return e}var Yl=class Bi{static getRings(t,e=!1){return Bi._findRings(t,!1)}static getRingsForLayout(t,e=!1){return Bi._findRings(t,!0)}static _findRings(t,e){let r=t.getComponentsAdjacencyMatrix();if(r.length===0)return[];let i=Ei.getConnectedComponents(r),s=[];for(let o=0;o<i.length;o++){let n=i[o],h=t.getSubgraphAdjacencyMatrix([...n]),c=Xl(h),u=e?Ul(c):_l(c);for(let p=0;p<u.length;p++){let b=u[p],f=[];for(let S=0;S<b.length-1;S++)f.push(n[b[S]]);s.push(f)}}return s}static matrixToString(t){let e=\"\";for(let r=0;r<t.length;r++){for(let i=0;i<t[r].length;i++)e+=t[r][i]+\" \";e+=`\n`}return e}static areSetsEqual(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}static isSupersetOf(t,e){for(let r of e)if(!t.has(r))return!1;return!0}},Gn=class Or{constructor(t){this.graph=null,this.doubleBondConfigCount=0,this.doubleBondConfig=null,this.ringIdCounter=0,this.ringConnectionIdCounter=0,this.canvasWrapper=null,this.totalOverlapScore=0,this.defaultOptions={width:500,height:500,scale:0,bondThickness:1,bondLength:30,shortBondLength:.8,bondSpacing:.17*30,atomVisualization:\"default\",isomeric:!0,debug:!1,terminalCarbons:!1,showCarbons:\"default\",explicitHydrogens:!0,overlapSensitivity:.42,overlapResolutionIterations:1,compactDrawing:!0,fontFamily:\"Arial, Helvetica, sans-serif\",fontSizeLarge:11,fontSizeSmall:3,padding:10,experimentalSSSR:!1,experimentalWeights:!1,kkThreshold:.1,kkInnerThreshold:.1,kkMaxIteration:2e4,kkMaxInnerIteration:50,kkMaxEnergy:1e9,weights:{colormap:null,additionalPadding:20,sigma:10,interval:0,opacity:1},themes:{dark:{FOREGROUND:\"#ffffff\",BACKGROUND:\"#141414\",C:\"#ffffff\",O:\"#e74c3c\",N:\"#3498db\",F:\"#27ae60\",CL:\"#16a085\",BR:\"#d35400\",I:\"#8e44ad\",P:\"#d35400\",S:\"#f1c40f\",B:\"#e67e22\",SI:\"#e67e22\",H:\"#aaaaaa\"},light:{FOREGROUND:\"#222222\",BACKGROUND:\"#ffffff\",C:\"#222222\",O:\"#e74c3c\",N:\"#3498db\",F:\"#27ae60\",CL:\"#16a085\",BR:\"#d35400\",I:\"#8e44ad\",P:\"#d35400\",S:\"#f1c40f\",B:\"#e67e22\",SI:\"#e67e22\",H:\"#666666\"},oldschool:{FOREGROUND:\"#000000\",BACKGROUND:\"#ffffff\",C:\"#000000\",O:\"#000000\",N:\"#000000\",F:\"#000000\",CL:\"#000000\",BR:\"#000000\",I:\"#000000\",P:\"#000000\",S:\"#000000\",B:\"#000000\",SI:\"#000000\",H:\"#000000\"},solarized:{FOREGROUND:\"#586e75\",BACKGROUND:\"#eee8d5\",C:\"#586e75\",O:\"#dc322f\",N:\"#268bd2\",F:\"#859900\",CL:\"#16a085\",BR:\"#cb4b16\",I:\"#6c71c4\",P:\"#d33682\",S:\"#b58900\",B:\"#2aa198\",SI:\"#2aa198\",H:\"#657b83\"},\"solarized-dark\":{FOREGROUND:\"#93a1a1\",BACKGROUND:\"#073642\",C:\"#93a1a1\",O:\"#dc322f\",N:\"#268bd2\",F:\"#859900\",CL:\"#16a085\",BR:\"#cb4b16\",I:\"#6c71c4\",P:\"#d33682\",S:\"#b58900\",B:\"#2aa198\",SI:\"#2aa198\",H:\"#839496\"},matrix:{FOREGROUND:\"#678c61\",BACKGROUND:\"#ffffff\",C:\"#678c61\",O:\"#2fc079\",N:\"#4f7e7e\",F:\"#90d762\",CL:\"#82d967\",BR:\"#23755a\",I:\"#409931\",P:\"#c1ff8a\",S:\"#faff00\",B:\"#50b45a\",SI:\"#409931\",H:\"#426644\"},github:{FOREGROUND:\"#24292f\",BACKGROUND:\"#ffffff\",C:\"#24292f\",O:\"#cf222e\",N:\"#0969da\",F:\"#2da44e\",CL:\"#6fdd8b\",BR:\"#bc4c00\",I:\"#8250df\",P:\"#bf3989\",S:\"#d4a72c\",B:\"#fb8f44\",SI:\"#bc4c00\",H:\"#57606a\"},carbon:{FOREGROUND:\"#161616\",BACKGROUND:\"#ffffff\",C:\"#161616\",O:\"#da1e28\",N:\"#0f62fe\",F:\"#198038\",CL:\"#007d79\",BR:\"#fa4d56\",I:\"#8a3ffc\",P:\"#ff832b\",S:\"#f1c21b\",B:\"#8a3800\",SI:\"#e67e22\",H:\"#525252\"},cyberpunk:{FOREGROUND:\"#ea00d9\",BACKGROUND:\"#ffffff\",C:\"#ea00d9\",O:\"#ff3131\",N:\"#0abdc6\",F:\"#00ff9f\",CL:\"#00fe00\",BR:\"#fe9f20\",I:\"#ff00ff\",P:\"#fe7f00\",S:\"#fcee0c\",B:\"#ff00ff\",SI:\"#ffffff\",H:\"#913cb1\"},gruvbox:{FOREGROUND:\"#665c54\",BACKGROUND:\"#fbf1c7\",C:\"#665c54\",O:\"#cc241d\",N:\"#458588\",F:\"#98971a\",CL:\"#79740e\",BR:\"#d65d0e\",I:\"#b16286\",P:\"#af3a03\",S:\"#d79921\",B:\"#689d6a\",SI:\"#427b58\",H:\"#7c6f64\"},\"gruvbox-dark\":{FOREGROUND:\"#ebdbb2\",BACKGROUND:\"#282828\",C:\"#ebdbb2\",O:\"#cc241d\",N:\"#458588\",F:\"#98971a\",CL:\"#b8bb26\",BR:\"#d65d0e\",I:\"#b16286\",P:\"#fe8019\",S:\"#d79921\",B:\"#8ec07c\",SI:\"#83a598\",H:\"#bdae93\"},custom:{FOREGROUND:\"#222222\",BACKGROUND:\"#ffffff\",C:\"#222222\",O:\"#e74c3c\",N:\"#3498db\",F:\"#27ae60\",CL:\"#16a085\",BR:\"#d35400\",I:\"#8e44ad\",P:\"#d35400\",S:\"#f1c40f\",B:\"#e67e22\",SI:\"#e67e22\",H:\"#666666\"}}},this.opts=Ti.extend(!0,this.defaultOptions,t),[\"none\",\"default\",\"terminal\",\"acyclic\",\"all\"].indexOf(this.opts.showCarbons)===-1&&(this.opts.showCarbons=\"default\"),this.opts.halfBondSpacing=this.opts.bondSpacing/2,this.opts.bondLengthSq=this.opts.bondLength*this.opts.bondLength,this.opts.halfFontSizeLarge=this.opts.fontSizeLarge/2,this.opts.quarterFontSizeLarge=this.opts.fontSizeLarge/4,this.opts.fifthFontSizeSmall=this.opts.fontSizeSmall/5,this.theme=this.opts.themes.dark}static getEffectiveShowCarbonsMode(t){let e=[\"none\",\"default\",\"terminal\",\"acyclic\",\"all\"],r=t.showCarbons;return(r==null||e.indexOf(r)===-1)&&(r=\"default\"),r===\"default\"&&t.terminalCarbons?\"terminal\":r}draw(t,e,r=\"light\",i=!1){this.initDraw(t,r,i),this.infoOnly||(this.themeManager=new Pi(this.opts.themes,r),this.canvasWrapper=new Pl(e,this.themeManager,this.opts)),i||(this.processGraph(),this.canvasWrapper.scale(this.graph.vertices),this.drawEdges(this.opts.debug),this.drawVertices(this.opts.debug),this.canvasWrapper.reset(),this.opts.debug&&console.debug(\"DrawerBase::draw()\",{graph:this.graph,rings:this.rings,ringConnections:this.ringConnections}))}edgeRingCount(t){let e=this.graph.edges[t],r=this.graph.vertices[e.sourceId],i=this.graph.vertices[e.targetId];return Math.min(r.value.rings.length,i.value.rings.length)}getBridgedRings(){return this.rings.filter(t=>t.isBridged)}getFusedRings(){return this.rings.filter(t=>t.isFused)}getSpiros(){return this.rings.filter(t=>t.isSpiro)}printRingInfo(){let t=\"\";for(let e=0;e<this.rings.length;e++){let r=this.rings[e];t+=r.id+\";\",t+=r.members.length+\";\",t+=r.neighbours.length+\";\",t+=r.isSpiro?\"true;\":\"false;\",t+=r.isFused?\"true;\":\"false;\",t+=r.isBridged?\"true;\":\"false;\",t+=r.rings.length+\";\",t+=`\n`}return t}rotateDrawing(){let t=0,e=0,r=0;for(let s=0;s<this.graph.vertices.length;s++){let o=this.graph.vertices[s];if(o.value.isDrawn)for(let n=s+1;n<this.graph.vertices.length;n++){let h=this.graph.vertices[n];if(!h.value.isDrawn)continue;let c=o.position.distanceSq(h.position);c>r&&(r=c,t=s,e=n)}}let i=-O.subtract(this.graph.vertices[t].position,this.graph.vertices[e].position).angle();if(!isNaN(i)){let s=i%.523599;s<.2617995?i=i-s:i+=.523599-s;for(let o=0;o<this.graph.vertices.length;o++)o!==e&&this.graph.vertices[o].position.rotateAround(i,this.graph.vertices[e].position);for(let o=0;o<this.rings.length;o++)this.rings[o].center.rotateAround(i,this.graph.vertices[e].position)}}getTotalOverlapScore(){return this.totalOverlapScore}getRingCount(){return this.rings.length}hasBridgedRing(){return this.bridgedRing}getHeavyAtomCount(){let t=0;for(let e=0;e<this.graph.vertices.length;e++)this.graph.vertices[e].value.element!==\"H\"&&t++;return t}getMolecularFormula(t=null){let e=\"\",r=new Map,i=t===null?this.graph:new Ei(t,this.opts.isomeric);for(let s=0;s<i.vertices.length;s++){let o=i.vertices[s].value,n=r.get(o.element)||0;r.set(o.element,n+1);let h=o.countImplicitHydrogens();if(h){let c=r.get(\"H\")||0;r.set(\"H\",c+h)}}if(r.has(\"C\")){let s=r.get(\"C\");e+=\"C\"+(s>1?s:\"\"),r.delete(\"C\")}if(r.has(\"H\")){let s=r.get(\"H\");e+=\"H\"+(s>1?s:\"\"),r.delete(\"H\")}return Object.keys(Zn.atomicNumbers).sort().map(s=>{if(r.has(s)){let o=r.get(s);e+=s+(o>1?o:\"\")}}),e}getRingbondType(t,e){if(t.value.getRingbondCount()<1||e.value.getRingbondCount()<1)return null;for(let r=0;r<t.value.ringbonds.length;r++)for(let i=0;i<e.value.ringbonds.length;i++)if(t.value.ringbonds[r].id===e.value.ringbonds[i].id)return t.value.ringbonds[r].bondType===\"-\"?e.value.ringbonds[i].bond:t.value.ringbonds[r].bond;return null}initDraw(t,e,r,i){this.data=t,this.infoOnly=r,this.ringIdCounter=0,this.ringConnectionIdCounter=0,this.graph=new Ei(t,this.opts.isomeric),this.rings=[],this.ringConnections=[],this.originalRings=[],this.originalRingConnections=[],this.bridgedRing=!1,this.doubleBondConfigCount=null,this.doubleBondConfig=null,this.highlight_atoms=i,this.initRings(),this.initHydrogens()}processGraph(){this.position(),this.fixDoubleBondStereo(),this.restoreRingInformation(),this.resolvePrimaryOverlaps();let t=this.getOverlapScore();this.totalOverlapScore=this.getOverlapScore().total;for(let e=0;e<this.opts.overlapResolutionIterations;e++)for(let r=0;r<this.graph.edges.length;r++){let i=this.graph.edges[r];if(this.isEdgeRotatable(i)){let s=this.graph.getTreeDepth(i.sourceId,i.targetId),o=this.graph.getTreeDepth(i.targetId,i.sourceId),n=i.targetId,h=i.sourceId;if(s>o&&(n=i.sourceId,h=i.targetId),this.getSubtreeOverlapScore(h,n,t.vertexScores).value>this.opts.overlapSensitivity){let c=this.graph.vertices[n],u=this.graph.vertices[h],p=u.getNeighbours(n);if(p.length===1){let b=this.graph.vertices[p[0]],f=b.position.getRotateAwayFromAngle(c.position,u.position,ut.toRad(120));this.rotateSubtree(b.id,u.id,f,u.position);let S=this.getOverlapScore().total;S>this.totalOverlapScore?this.rotateSubtree(b.id,u.id,-f,u.position):this.totalOverlapScore=S}else if(p.length===2){if(u.value.rings.length!==0&&c.value.rings.length!==0)continue;let b=this.graph.vertices[p[0]],f=this.graph.vertices[p[1]];if(b.value.rings.length===1&&f.value.rings.length===1){if(b.value.rings[0]!==f.value.rings[0])continue;let S=b.value.rings[0];if(this.getRingExternalConnectionCount(S)!==1)continue;let y=0,M=this.totalOverlapScore,B=this.getRing(S),E=ut.centralAngle(B.getSize()),P=Math.max(1,Math.floor(B.getSize()/2));for(let V=1;V<=P;V++){let z=E*V;this.rotateSubtree(u.id,c.id,z,u.position);let T=this.getOverlapScore().total;T<M&&(M=T,y=z),this.rotateSubtree(u.id,c.id,-z,u.position),this.rotateSubtree(u.id,c.id,-z,u.position),T=this.getOverlapScore().total,T<M&&(M=T,y=-z),this.rotateSubtree(u.id,c.id,z,u.position)}y!==0&&(this.rotateSubtree(u.id,c.id,y,u.position),this.totalOverlapScore=M)}else{if(b.value.rings.length!==0||f.value.rings.length!==0)continue;{let S=b.position.getRotateAwayFromAngle(c.position,u.position,ut.toRad(120)),y=f.position.getRotateAwayFromAngle(c.position,u.position,ut.toRad(120));this.rotateSubtree(b.id,u.id,S,u.position),this.rotateSubtree(f.id,u.id,y,u.position);let M=this.getOverlapScore().total;M>this.totalOverlapScore?(this.rotateSubtree(b.id,u.id,-S,u.position),this.rotateSubtree(f.id,u.id,-y,u.position)):this.totalOverlapScore=M}}}t=this.getOverlapScore()}}}this.resolveSecondaryOverlaps(t.scores),this.resolveRigidRingOverlaps(),t=this.getOverlapScore(),this.resolveSecondaryOverlaps(t.scores),this.opts.isomeric&&this.annotateStereochemistry(),this.opts.compactDrawing&&this.opts.atomVisualization===\"default\"&&this.initPseudoElements(),this.rotateDrawing()}static flipEZ(t){return t===\"/\"?\"\\\\\":t===\"\\\\\"?\"/\":t}static getRingbondType(t,e){return t&&t!==\"-\"?t:e&&e!==\"-\"?Or.flipEZ(e):\"-\"}initRings(){let t=new Map;for(let r=this.graph.vertices.length-1;r>=0;r--){let i=this.graph.vertices[r];if(i.value.ringbonds.length!==0)for(let s=0;s<i.value.ringbonds.length;s++){let o=i.value.ringbonds[s].id,n=i.value.ringbonds[s].bond;if(!t.has(o))t.set(o,[i.id,n]);else{let h=i.id,c=t.get(o)[0],u=t.get(o)[1],p=new rs(h,c,1);p.setBondType(Or.getRingbondType(n,u));let b=this.graph.addEdge(p),f=this.graph.vertices[c];i.addRingbondChild(c,s),i.value.addNeighbouringElement(f.value.element);let S=0;for(let y=0;y<f.value.ringbonds.length;y++)if(f.value.ringbonds[y].id===o){S=y;break}f.addRingbondChild(h,S),f.value.addNeighbouringElement(i.value.element),i.edges.push(b),f.edges.push(b),t.delete(o)}}}let e=Yl.getRings(this.graph,this.opts.experimentalSSSR);if(!(e===null||e.length===0)){for(let r=0;r<e.length;r++){let i=[...e[r]],s=this.addRing(new Xn(i));for(let o=0;o<i.length;o++)this.graph.vertices[i[o]].value.rings.push(s)}for(let r=0;r<this.rings.length-1;r++)for(let i=r+1;i<this.rings.length;i++){let s=this.rings[r],o=this.rings[i],n=new ir(s,o);n.vertices.size>0&&this.addRingConnection(n)}for(let r=0;r<this.rings.length;r++){let i=this.rings[r];i.neighbours=ir.getNeighbours(this.ringConnections,i.id)}for(let r=0;r<this.rings.length;r++){let i=this.rings[r];this.graph.vertices[i.members[0]].value.addAnchoredRing(i.id)}for(this.markCageRingSystems(),this.backupRingInformation();this.rings.length>0;){let r=-1;for(let o=0;o<this.rings.length;o++){let n=this.rings[o];this.isPartOfBridgedRing(n.id)&&!n.isBridged&&(r=n.id)}if(r===-1)break;let i=this.getRing(r),s=this.getBridgedRingRings(i.id);this.bridgedRing=!0,this.createBridgedRing(s,i.members[0]),this.bridgedRing=!1;for(let o=0;o<s.length;o++)this.removeRing(s[o])}}}initHydrogens(){if(!this.opts.explicitHydrogens)for(let t of this.graph.vertices){if(t.value.element!==\"H\"||t.neighbours.length!==1)continue;let e=this.graph.vertices[t.neighbours[0]];(!e.value.isStereoCenter||e.value.rings.length<2&&!e.value.bridgedRing||e.value.bridgedRing&&e.value.originalRings.length<2)&&(t.value.isDrawn=!1)}}getBridgedRingRings(t){let e=[],r=s=>{let o=this.getRing(s);e.push(s);for(let n=0;n<o.neighbours.length;n++){let h=o.neighbours[n];e.indexOf(h)===-1&&h!==s&&ir.isBridge(this.ringConnections,this.graph.vertices,s,h)&&r(h)}};r(t);let i=!0;for(;i;){i=!1;for(let s=0;s<this.ringConnections.length;s++){let o=this.ringConnections[s];if(o.vertices.size<2)continue;let n=e.indexOf(o.firstRingId)!==-1,h=e.indexOf(o.secondRingId)!==-1;n&&!h?(e.push(o.secondRingId),i=!0):h&&!n&&(e.push(o.firstRingId),i=!0)}}return Dt.unique(e)}isPartOfBridgedRing(t){for(let e=0;e<this.ringConnections.length;e++)if(this.ringConnections[e].containsRing(t)&&this.ringConnections[e].isBridge(this.graph.vertices))return!0;return!1}markCageRingSystems(){let t=new Map,e=new Map;for(let s=0;s<this.rings.length;s++)t.set(this.rings[s].id,0),e.set(this.rings[s].id,[]);for(let s=0;s<this.ringConnections.length;s++){let o=this.ringConnections[s];o.vertices.size<2||(t.set(o.firstRingId,t.get(o.firstRingId)+1),t.set(o.secondRingId,t.get(o.secondRingId)+1),e.get(o.firstRingId).push(o.secondRingId),e.get(o.secondRingId).push(o.firstRingId))}let r=new Set,i=new Set;for(let s=0;s<this.rings.length;s++){let o=this.rings[s].id;if(r.has(o))continue;let n=[],h=[o];for(r.add(o);h.length>0;){let c=h.shift();n.push(c);let u=e.get(c);for(let p=0;p<u.length;p++){let b=u[p];r.has(b)||(r.add(b),h.push(b))}}if(this.isCageRingComponent(n,t))for(let c=0;c<n.length;c++)i.add(n[c])}if(i.size!==0)for(let s=0;s<this.ringConnections.length;s++){let o=this.ringConnections[s];o.vertices.size<2||i.has(o.firstRingId)&&i.has(o.secondRingId)&&(o.isForcedBridge=!0)}}isCageRingComponent(t,e){let r=0;for(let s=0;s<t.length;s++)e.get(t[s])>=3&&r++;if(r<2)return!1;let i=this.getRingSystemStats(t);return i.atomCount>0&&i.edgeCount>0&&i.nonCageAtomCount===0&&i.boundaryEdgeRatio<=.5}getRingSystemStats(t){let e=new Map,r=new Set,i=new Map;for(let h=0;h<t.length;h++){let c=this.getRing(t[h]),u=new Set(c.members);e.set(t[h],u);for(let p=0;p<c.members.length;p++)r.add(c.members[p]),i.set(c.members[p],0)}let s=0,o=0;for(let h=0;h<this.graph.edges.length;h++){let c=this.graph.edges[h];if(!r.has(c.sourceId)||!r.has(c.targetId))continue;let u=0;for(let p=0;p<t.length;p++){let b=e.get(t[p]);b.has(c.sourceId)&&b.has(c.targetId)&&u++}u!==0&&(s++,i.set(c.sourceId,i.get(c.sourceId)+1),i.set(c.targetId,i.get(c.targetId)+1),u===1&&o++)}let n=0;for(let h of i.values())h!==3&&n++;return{atomCount:r.size,edgeCount:s,nonCageAtomCount:n,boundaryEdgeRatio:s===0?1:o/s}}createBridgedRing(t,e){let r=new Set,i=new Set,s=new Set;for(let c=0;c<t.length;c++){let u=this.getRing(t[c]);u.isPartOfBridged=!0;for(let p=0;p<u.members.length;p++)i.add(u.members[p]);for(let p=0;p<u.neighbours.length;p++){let b=u.neighbours[p];t.indexOf(b)===-1&&s.add(u.neighbours[p])}}let o=new Set;for(let c of i){let u=this.graph.vertices[c],p=Dt.intersection(t,u.value.rings);u.value.rings.length===1||p.length===1?r.add(u.id):o.add(u.id)}let n=[];for(let c of o){let u=this.graph.vertices[c],p=!1;for(let b=0;b<u.edges.length;b++)this.edgeRingCount(u.edges[b])===1&&(p=!0);p?(u.value.isBridgeNode=!0,r.add(u.id)):(u.value.isBridge=!0,n.push(u.id),r.add(u.id))}let h=new Xn([...r]);this.addRing(h),h.isBridged=!0,h.insiders=n,h.neighbours=[...s];for(let c=0;c<t.length;c++)h.rings.push(this.getRing(t[c]).clone());for(let c=0;c<h.members.length;c++)this.graph.vertices[h.members[c]].value.bridgedRing=h.id;for(let c=0;c<n.length;c++){let u=this.graph.vertices[n[c]];u.value.rings=[]}for(let c of r){let u=this.graph.vertices[c];u.value.rings=Dt.removeAll(u.value.rings,t),u.value.rings.push(h.id)}for(let c=0;c<t.length;c++)for(let u=c+1;u<t.length;u++)this.removeRingConnectionsBetween(t[c],t[u]);for(let c of s){let u=this.getRingConnections(c,t);for(let p=0;p<u.length;p++)this.getRingConnection(u[p]).updateOther(h.id,c);this.getRing(c).neighbours.push(h.id)}return h}areVerticesInSameRing(t,e){for(let r=0;r<t.value.rings.length;r++)for(let i=0;i<e.value.rings.length;i++)if(t.value.rings[r]===e.value.rings[i])return!0;return!1}getCommonRings(t,e){let r=[];for(let i=0;i<t.value.rings.length;i++)for(let s=0;s<e.value.rings.length;s++)t.value.rings[i]==e.value.rings[s]&&r.push(t.value.rings[i]);return r}getLargestOrAromaticCommonRing(t,e){let r=this.getCommonRings(t,e),i=0,s=null;for(let o=0;o<r.length;o++){let n=this.getRing(r[o]),h=n.getSize();if(n.isBenzeneLike(this.graph.vertices))return n;h>i&&(i=h,s=n)}return s}getVerticesAt(t,e,r){let i=[];for(let s=0;s<this.graph.vertices.length;s++){let o=this.graph.vertices[s];o.id===r||!o.positioned||t.distanceSq(o.position)<=e*e&&i.push(o.id)}return i}getClosestVertex(t){let e=99999,r=null;for(let i=0;i<this.graph.vertices.length;i++){let s=this.graph.vertices[i];if(s.id===t.id)continue;let o=t.position.distanceSq(s.position);o<e&&(e=o,r=s)}return r}addRing(t){return t.id=this.ringIdCounter++,this.rings.push(t),t.id}removeRing(t){this.rings=this.rings.filter(function(e){return e.id!==t}),this.ringConnections=this.ringConnections.filter(function(e){return e.firstRingId!==t&&e.secondRingId!==t});for(let e=0;e<this.rings.length;e++){let r=this.rings[e];r.neighbours=r.neighbours.filter(function(i){return i!==t})}}getRing(t){for(let e=0;e<this.rings.length;e++)if(this.rings[e].id==t)return this.rings[e]}addRingConnection(t){return t.id=this.ringConnectionIdCounter++,this.ringConnections.push(t),t.id}removeRingConnection(t){this.ringConnections=this.ringConnections.filter(function(e){return e.id!==t})}removeRingConnectionsBetween(t,e){let r=[];for(let i=0;i<this.ringConnections.length;i++){let s=this.ringConnections[i];(s.firstRingId===t&&s.secondRingId===e||s.firstRingId===e&&s.secondRingId===t)&&r.push(s.id)}for(let i=0;i<r.length;i++)this.removeRingConnection(r[i])}getRingConnection(t){for(let e=0;e<this.ringConnections.length;e++)if(this.ringConnections[e].id==t)return this.ringConnections[e]}getRingConnections(t,e){let r=[];for(let i=0;i<this.ringConnections.length;i++){let s=this.ringConnections[i];for(let o=0;o<e.length;o++){let n=e[o];(s.firstRingId===t&&s.secondRingId===n||s.firstRingId===n&&s.secondRingId===t)&&r.push(s.id)}}return r}getOverlapScore(){let t=0,e=new Float32Array(this.graph.vertices.length);for(let i=0;i<this.graph.vertices.length;i++)e[i]=0;for(let i=0;i<this.graph.vertices.length;i++){let s=this.graph.vertices.length;for(;--s>i;){let o=this.graph.vertices[i],n=this.graph.vertices[s];if(!o.value.isDrawn||!n.value.isDrawn)continue;let h=O.subtract(o.position,n.position).lengthSq();if(h<this.opts.bondLengthSq){let c=(this.opts.bondLength-Math.sqrt(h))/this.opts.bondLength;t+=c,e[i]+=c,e[s]+=c}}}let r=[];for(let i=0;i<this.graph.vertices.length;i++)r.push({id:i,score:e[i]});return r.sort(function(i,s){return s.score-i.score}),{total:t,scores:r,vertexScores:e}}chooseSide(t,e,r){let i=t.getNeighbours(e.id),s=e.getNeighbours(t.id),o=i.length,n=s.length,h=Dt.merge(i,s),c=[0,0];for(let p=0;p<h.length;p++)this.graph.vertices[h[p]].position.sameSideAs(t.position,e.position,r[0])?c[0]++:c[1]++;let u=[0,0];for(let p=0;p<this.graph.vertices.length;p++)this.graph.vertices[p].position.sameSideAs(t.position,e.position,r[0])?u[0]++:u[1]++;return{totalSideCount:u,totalPosition:u[0]>u[1]?0:1,sideCount:c,position:c[0]>c[1]?0:1,anCount:o,bnCount:n}}setRingCenter(t){let e=t.getSize(),r=new O(0,0);for(let i=0;i<e;i++)r.add(this.graph.vertices[t.members[i]].position);t.center=r.divide(e)}getSubringCenter(t,e){let r=e.value.originalRings,i=t.center,s=Number.MAX_VALUE;for(let o=0;o<r.length;o++)for(let n=0;n<t.rings.length;n++)r[o]===t.rings[n].id&&t.rings[n].getSize()<s&&(i=t.rings[n].center,s=t.rings[n].getSize());return i}drawEdges(t){let e=Array(this.graph.edges.length);e.fill(!1),this.graph.traverseBF(0,r=>{let i=this.graph.getEdges(r.id);for(let s=0;s<i.length;s++){let o=i[s];e[o]||(e[o]=!0,this.drawEdge(o,t))}});for(let r=0;r<this.rings.length;r++){let i=this.rings[r];this.isRingAromatic(i)&&(i.isPartOfBridged&&!this.isRingRegularPolygon(i)||this.canvasWrapper.drawAromaticityRing(i))}}drawEdge(t,e){let r=this.graph.edges[t],i=this.graph.vertices[r.sourceId],s=this.graph.vertices[r.targetId],o=i.value.element,n=s.value.element;if((!i.value.isDrawn||!s.value.isDrawn)&&this.opts.atomVisualization===\"default\")return;let h=i.position,c=s.position,u=this.getEdgeNormals(r),p=Dt.clone(u);p[0].multiplyScalar(10).add(h),p[1].multiplyScalar(10).add(h);let b=r.isPartOfAromaticRing&&i.value.bridgedRing!==null&&s.value.bridgedRing!==null?this.getLargestOrAromaticCommonRing(i,s):null;if(r.bondType===\"=\"||this.getRingbondType(i,s)===\"=\"||b&&!this.isRingRegularPolygon(b)){let f=this.areVerticesInSameRing(i,s),S=this.chooseSide(i,s,p);if(f){let y=this.getLargestOrAromaticCommonRing(i,s).center;u[0].multiplyScalar(this.opts.bondSpacing),u[1].multiplyScalar(this.opts.bondSpacing);let M=null;y.sameSideAs(i.position,s.position,O.add(h,u[0]))?M=new at(O.add(h,u[0]),O.add(c,u[0]),o,n):M=new at(O.add(h,u[1]),O.add(c,u[1]),o,n),M.shorten(this.opts.bondLength-this.opts.shortBondLength*this.opts.bondLength),r.isPartOfAromaticRing?this.canvasWrapper.drawLine(M,!0):this.canvasWrapper.drawLine(M),this.canvasWrapper.drawLine(new at(h,c,o,n))}else if(r.center||i.isTerminal()&&s.isTerminal()){u[0].multiplyScalar(this.opts.halfBondSpacing),u[1].multiplyScalar(this.opts.halfBondSpacing);let y=new at(O.add(h,u[0]),O.add(c,u[0]),o,n),M=new at(O.add(h,u[1]),O.add(c,u[1]),o,n);this.canvasWrapper.drawLine(y),this.canvasWrapper.drawLine(M)}else if(S.anCount==0&&S.bnCount>1||S.bnCount==0&&S.anCount>1){u[0].multiplyScalar(this.opts.halfBondSpacing),u[1].multiplyScalar(this.opts.halfBondSpacing);let y=new at(O.add(h,u[0]),O.add(c,u[0]),o,n),M=new at(O.add(h,u[1]),O.add(c,u[1]),o,n);this.canvasWrapper.drawLine(y),this.canvasWrapper.drawLine(M)}else if(S.sideCount[0]>S.sideCount[1]){u[0].multiplyScalar(this.opts.bondSpacing),u[1].multiplyScalar(this.opts.bondSpacing);let y=new at(O.add(h,u[0]),O.add(c,u[0]),o,n);y.shorten(this.opts.bondLength-this.opts.shortBondLength*this.opts.bondLength),this.canvasWrapper.drawLine(y),this.canvasWrapper.drawLine(new at(h,c,o,n))}else if(S.sideCount[0]<S.sideCount[1]){u[0].multiplyScalar(this.opts.bondSpacing),u[1].multiplyScalar(this.opts.bondSpacing);let y=new at(O.add(h,u[1]),O.add(c,u[1]),o,n);y.shorten(this.opts.bondLength-this.opts.shortBondLength*this.opts.bondLength),this.canvasWrapper.drawLine(y),this.canvasWrapper.drawLine(new at(h,c,o,n))}else if(S.totalSideCount[0]>S.totalSideCount[1]){u[0].multiplyScalar(this.opts.bondSpacing),u[1].multiplyScalar(this.opts.bondSpacing);let y=new at(O.add(h,u[0]),O.add(c,u[0]),o,n);y.shorten(this.opts.bondLength-this.opts.shortBondLength*this.opts.bondLength),this.canvasWrapper.drawLine(y),this.canvasWrapper.drawLine(new at(h,c,o,n))}else if(S.totalSideCount[0]<=S.totalSideCount[1]){u[0].multiplyScalar(this.opts.bondSpacing),u[1].multiplyScalar(this.opts.bondSpacing);let y=new at(O.add(h,u[1]),O.add(c,u[1]),o,n);y.shorten(this.opts.bondLength-this.opts.shortBondLength*this.opts.bondLength),this.canvasWrapper.drawLine(y),this.canvasWrapper.drawLine(new at(h,c,o,n))}}else if(r.bondType===\"#\"){u[0].multiplyScalar(this.opts.bondSpacing/1.5),u[1].multiplyScalar(this.opts.bondSpacing/1.5);let f=new at(O.add(h,u[0]),O.add(c,u[0]),o,n),S=new at(O.add(h,u[1]),O.add(c,u[1]),o,n);this.canvasWrapper.drawLine(f),this.canvasWrapper.drawLine(S),this.canvasWrapper.drawLine(new at(h,c,o,n))}else if(r.bondType!==\".\"){let f=i.value.isStereoCenter,S=s.value.isStereoCenter;r.wedge===\"up\"?this.canvasWrapper.drawWedge(new at(h,c,o,n,f,S)):r.wedge===\"down\"?this.canvasWrapper.drawDashedWedge(new at(h,c,o,n,f,S)):this.canvasWrapper.drawLine(new at(h,c,o,n,f,S))}if(e){let f=O.midpoint(h,c);this.canvasWrapper.drawDebugText(f.x,f.y,\"e: \"+t)}}drawVertices(t){for(let e=0;e<this.graph.vertices.length;e++){let r=this.graph.vertices[e],i=r.value,s=0,o=0,n=i.element,h=i.countImplicitHydrogens(),c=r.getTextDirection(this.graph.vertices),u=Or.getEffectiveShowCarbonsMode(this.opts),p=u===\"terminal\"||n!==\"C\"||i.hasAttachedPseudoElements?r.isTerminal():!1,b=i.element===\"C\";if(n===\"C\"){let f=i.rings&&i.rings.length>0;u===\"none\"?(b=!0,p=!1):(u===\"all\"||u===\"acyclic\"&&!f)&&(b=!1,p=!0)}if(i.element===\"N\"&&i.isPartOfAromaticRing&&(h=0),i.bracket&&(h=i.bracket.hcount,s=i.bracket.charge,o=i.bracket.isotope),(s||o||this.graph.vertices.length<3)&&(b=!1),this.opts.atomVisualization===\"allballs\")this.canvasWrapper.drawBall(r.position.x,r.position.y,n);else if(i.isDrawn&&(!b||i.drawExplicit||p||i.hasAttachedPseudoElements)||this.graph.vertices.length===1)this.opts.atomVisualization===\"default\"?this.canvasWrapper.drawText(r.position.x,r.position.y,n,h,c,p,s,o,this.graph.vertices.length,i.getAttachedPseudoElements()):this.opts.atomVisualization===\"balls\"&&this.canvasWrapper.drawBall(r.position.x,r.position.y,n);else if(r.getNeighbourCount()===2&&r.forcePositioned==!0){let f=this.graph.vertices[r.neighbours[0]].position,S=this.graph.vertices[r.neighbours[1]].position,y=O.threePointangle(r.position,f,S);Math.abs(Math.PI-y)<.1&&this.canvasWrapper.drawPoint(r.position.x,r.position.y,n)}if(t){let f=\"v: \"+r.id+\" \"+Dt.print(i.ringbonds);this.canvasWrapper.drawDebugText(r.position.x,r.position.y,f)}}if(this.opts.debug)for(let e=0;e<this.rings.length;e++){let r=this.rings[e].center;this.canvasWrapper.drawDebugPoint(r.x,r.y,\"r: \"+this.rings[e].id)}}position(){let t=null;for(let e=0;e<this.graph.vertices.length;e++)if(this.graph.vertices[e].value.bridgedRing!==null){t=this.graph.vertices[e];break}for(let e=0;e<this.rings.length;e++)this.rings[e].isBridged&&(t=this.graph.vertices[this.rings[e].members[0]]);this.rings.length>0&&t===null&&(t=this.graph.vertices[this.rings[0].members[0]]),t===null&&(t=this.graph.vertices[0]),this.createNextBond(t,null,0)}backupRingInformation(){this.originalRings=[],this.originalRingConnections=[];for(let t=0;t<this.rings.length;t++)this.originalRings.push(this.rings[t]);for(let t=0;t<this.ringConnections.length;t++)this.originalRingConnections.push(this.ringConnections[t]);for(let t=0;t<this.graph.vertices.length;t++)this.graph.vertices[t].value.backupRings()}restoreRingInformation(){let t=this.getBridgedRings();this.rings=[],this.ringConnections=[];for(let e=0;e<t.length;e++){let r=t[e];for(let i=0;i<r.rings.length;i++){let s=r.rings[i];this.originalRings[s.id].center=s.center}}for(let e=0;e<this.originalRings.length;e++)this.rings.push(this.originalRings[e]);for(let e=0;e<this.originalRingConnections.length;e++)this.ringConnections.push(this.originalRingConnections[e]);for(let e=0;e<this.graph.vertices.length;e++)this.graph.vertices[e].value.restoreRings()}createRing(t,e=null,r=null,i=null){if(t.positioned)return;e=e||new O(0,0);let s=t.getOrderedNeighbours(this.ringConnections),o=r?O.subtract(r.position,e).angle():0,n=ut.polyCircumradius(this.opts.bondLength,t.getSize()),h=ut.centralAngle(t.getSize());t.centralAngle=h;let c=o,u=r?r.id:null;if(t.members.indexOf(u)===-1&&(r&&(r.positioned=!1),u=t.members[0]),t.isBridged){this.graph.kkLayout(t.members.slice(),e,r.id,t,this.opts.bondLength,this.opts.kkThreshold,this.opts.kkInnerThreshold,this.opts.kkMaxIteration,this.opts.kkMaxInnerIteration,this.opts.kkMaxEnergy),t.positioned=!0,this.setRingCenter(t),e=t.center;for(let p=0;p<t.rings.length;p++)this.setRingCenter(t.rings[p])}else t.eachMember(this.graph.vertices,p=>{let b=this.graph.vertices[p];b.positioned||b.setPosition(e.x+Math.cos(c)*n,e.y+Math.sin(c)*n),c+=h,(!t.isBridged||t.rings.length<3)&&(b.angle=c,b.positioned=!0)},u,i?i.id:null);t.positioned=!0,t.center=e;for(let p=0;p<s.length;p++){let b=this.getRing(s[p].neighbour);if(b.positioned)continue;let f=ir.getVertices(this.ringConnections,t.id,b.id);if(f.length===2){t.isFused=!0,b.isFused=!0;let S=this.graph.vertices[f[0]],y=this.graph.vertices[f[1]],M=O.midpoint(S.position,y.position),B=O.normals(S.position,y.position);B[0].normalize(),B[1].normalize();let E=ut.polyCircumradius(this.opts.bondLength,b.getSize()),P=ut.apothem(E,b.getSize());B[0].multiplyScalar(P).add(M),B[1].multiplyScalar(P).add(M);let V=B[0];O.subtract(e,B[1]).lengthSq()>O.subtract(e,B[0]).lengthSq()&&(V=B[1]);let z=O.subtract(S.position,V),T=O.subtract(y.position,V);z.clockwise(T)===-1?b.positioned||this.createRing(b,V,S,y):b.positioned||this.createRing(b,V,y,S)}else if(f.length===1){t.isSpiro=!0,b.isSpiro=!0;let S=this.graph.vertices[f[0]],y=O.subtract(e,S.position);y.invert(),y.normalize();let M=ut.polyCircumradius(this.opts.bondLength,b.getSize());y.multiplyScalar(M),y.add(S.position),b.positioned||this.createRing(b,y,S)}}for(let p=0;p<t.members.length;p++){let b=this.graph.vertices[t.members[p]],f=b.neighbours;for(let S=0;S<f.length;S++){let y=this.graph.vertices[f[S]];y.positioned||(y.value.isConnectedToRing=!0,this.createNextBond(y,b,0))}}}fixDoubleBondStereo(){let t=this.graph;for(let e=0;e<t.edges.length;e++){let r=t.edges[e];if(r.bondType!==\"=\")continue;let i=r.sourceId,s=r.targetId;if(this.areVerticesInSameRing(t.vertices[i],t.vertices[s]))continue;let o=null,n=null;for(let X of t.vertices[i].getNeighbours()){if(X===s)continue;let J=t.getEdge(i,X);if(J&&(J.bondType===\"/\"||J.bondType===\"\\\\\")){let mt=J.sourceId===i?J.bondType===\"/\":J.bondType===\"\\\\\";o={nid:X,above:mt};break}}for(let X of t.vertices[s].getNeighbours()){if(X===i)continue;let J=t.getEdge(s,X);if(J&&(J.bondType===\"/\"||J.bondType===\"\\\\\")){let mt=J.sourceId===s?J.bondType===\"/\":J.bondType===\"\\\\\";n={nid:X,above:mt};break}}if(!o||!n)continue;let h=o.above===n.above,c=t.vertices[i].position,u=t.vertices[s].position,p=t.vertices[o.nid].position,b=t.vertices[n.nid].position,f=u.x-c.x,S=u.y-c.y,y=f*(p.y-c.y)-S*(p.x-c.x),M=f*(b.y-u.y)-S*(b.x-u.x),B=y>0==M>0;if(h===B)continue;let E=0,P=0;for(let X of t.vertices[i].getNeighbours()){if(X===s)continue;let J=t.getEdge(i,X);J&&(J.bondType===\"/\"||J.bondType===\"\\\\\")&&E++}for(let X of t.vertices[s].getNeighbours()){if(X===i)continue;let J=t.getEdge(s,X);J&&(J.bondType===\"/\"||J.bondType===\"\\\\\")&&P++}let V=E<=P?i:s,z=E<=P?s:i,T=t.vertices[z].position,F=f*f+S*S;F<.001||t.traverseTree(V,z,X=>{let J=X.position.x-T.x,mt=X.position.y-T.y,Vt=J*f+mt*S;X.position.x=T.x+2*Vt*f/F-J,X.position.y=T.y+2*Vt*S/F-mt;for(let At=0;At<X.value.anchoredRings.length;At++){let Nt=this.rings[X.value.anchoredRings[At]];if(Nt){let ee=Nt.center.x-T.x,Kt=Nt.center.y-T.y,Gt=ee*f+Kt*S;Nt.center.x=T.x+2*Gt*f/F-ee,Nt.center.y=T.y+2*Gt*S/F-Kt}}})}}rotateSubtree(t,e,r,i){let s=i.clone();this.graph.traverseTree(t,e,o=>{o.position.rotateAround(r,s);for(let n=0;n<o.value.anchoredRings.length;n++){let h=this.rings[o.value.anchoredRings[n]];h&&h.center.rotateAround(r,s)}})}getSubtreeOverlapScore(t,e,r){let i=0,s=new O(0,0),o=0;return this.graph.traverseTree(t,e,n=>{if(!n.value.isDrawn)return;let h=r[n.id];h>this.opts.overlapSensitivity&&(i+=h,o++);let c=this.graph.vertices[n.id].position.clone();c.multiplyScalar(h),s.add(c)}),s.divide(i),{value:i/o,center:s}}getCurrentCenterOfMass(){let t=new O(0,0),e=0;for(let r=0;r<this.graph.vertices.length;r++){let i=this.graph.vertices[r];i.positioned&&(t.add(i.position),e++)}return t.divide(e)}getCurrentCenterOfMassInNeigbourhood(t,e=this.opts.bondLength*2){let r=new O(0,0),i=0,s=e*e;for(let o=0;o<this.graph.vertices.length;o++){let n=this.graph.vertices[o];n.positioned&&t.distanceSq(n.position)<s&&(r.add(n.position),i++)}return r.divide(i)}resolvePrimaryOverlaps(){let t=[],e=Array(this.graph.vertices.length);for(let r=0;r<this.rings.length;r++){let i=this.rings[r];for(let s=0;s<i.members.length;s++){let o=this.graph.vertices[i.members[s]];if(e[o.id])continue;e[o.id]=!0;let n=this.getNonRingNeighbours(o.id);if(n.length>1){let h=[];for(let c=0;c<o.value.rings.length;c++)h.push(o.value.rings[c]);t.push({common:o,rings:h,vertices:n})}else if(n.length===1&&o.value.rings.length===2){let h=[];for(let c=0;c<o.value.rings.length;c++)h.push(o.value.rings[c]);t.push({common:o,rings:h,vertices:n})}}}for(let r=0;r<t.length;r++){let i=t[r];if(i.vertices.length===2){let s=i.vertices[0],o=i.vertices[1];if(!s.value.isDrawn||!o.value.isDrawn)continue;let n=(2*Math.PI-this.getRing(i.rings[0]).getAngle())/6;this.rotateSubtree(s.id,i.common.id,n,i.common.position),this.rotateSubtree(o.id,i.common.id,-n,i.common.position);let h=this.getOverlapScore(),c=this.getSubtreeOverlapScore(s.id,i.common.id,h.vertexScores),u=this.getSubtreeOverlapScore(o.id,i.common.id,h.vertexScores),p=c.value+u.value;this.rotateSubtree(s.id,i.common.id,-2*n,i.common.position),this.rotateSubtree(o.id,i.common.id,2*n,i.common.position),h=this.getOverlapScore(),c=this.getSubtreeOverlapScore(s.id,i.common.id,h.vertexScores),u=this.getSubtreeOverlapScore(o.id,i.common.id,h.vertexScores),c.value+u.value>p&&(this.rotateSubtree(s.id,i.common.id,2*n,i.common.position),this.rotateSubtree(o.id,i.common.id,-2*n,i.common.position))}else i.vertices.length===1&&i.rings.length}}resolveSecondaryOverlaps(t){for(let e=0;e<t.length;e++)if(t[e].score>this.opts.overlapSensitivity){let r=this.graph.vertices[t[e].id];if(r.isTerminal()){let i=this.getClosestVertex(r);if(i){let s=null;i.isTerminal()?s=i.id===0?this.graph.vertices[1].position:i.previousPosition:s=i.id===0?this.graph.vertices[1].position:i.position;let o=r.id===0?this.graph.vertices[1].position:r.previousPosition;r.position.rotateAwayFrom(s,o,ut.toRad(20))}}}}getLastAngle(t){for(;t;){let e=this.graph.vertices[t];if(e.value.rings.length>0)return 0;if(e.angle)return e.angle;t=e.parentVertexId}return 0}createNextBond(t,e=null,r=0,i=!1,s=!1){if(t.positioned&&!s)return;let o=!1;if(e){let n=this.graph.getEdge(t.id,e.id);(n.bondType===\"/\"||n.bondType===\"\\\\\")&&++this.doubleBondConfigCount%2===1&&this.doubleBondConfig===null&&(this.doubleBondConfig=n.bondType,o=!0,e.parentVertexId===null&&t.value.branchBond&&(this.doubleBondConfig===\"/\"?this.doubleBondConfig=\"\\\\\":this.doubleBondConfig===\"\\\\\"&&(this.doubleBondConfig=\"/\")))}if(!s)if(e)if(e.value.rings.length>0){let n=e.neighbours,h=null,c=new O(0,0);if(e.value.bridgedRing===null&&e.value.rings.length>1)for(let u=0;u<n.length;u++){let p=this.graph.vertices[n[u]];if(Dt.containsAll(p.value.rings,e.value.rings)){h=p;break}}if(h===null){for(let u=0;u<n.length;u++){let p=this.graph.vertices[n[u]];p.positioned&&this.areVerticesInSameRing(p,e)&&c.add(O.subtract(p.position,e.position))}if(c.lengthSq()<1){let u=null;e.value.bridgedRing!==null?u=this.getRing(e.value.bridgedRing):u=this.getRing(e.value.rings[0]),u&&u.center?c=O.subtract(u.center,e.position):c=new O(1,0)}c.invert().normalize().multiplyScalar(this.opts.bondLength).add(e.position)}else c=h.position.clone().rotateAround(Math.PI,e.position);t.previousPosition=e.position,t.setPositionFromVector(c),t.positioned=!0}else{let n=new O(this.opts.bondLength,0);n.rotate(r),n.add(e.position),t.setPositionFromVector(n),t.previousPosition=e.position,t.positioned=!0}else{let n=new O(this.opts.bondLength,0);n.rotate(ut.toRad(-60)),t.previousPosition=n,t.setPosition(this.opts.bondLength,0),t.angle=ut.toRad(-60),t.value.bridgedRing===null&&(t.positioned=!0)}if(t.value.bridgedRing!==null){let n=this.getRing(t.value.bridgedRing);if(!n.positioned){let h=O.subtract(t.previousPosition,t.position);h.invert(),h.normalize();let c=ut.polyCircumradius(this.opts.bondLength,n.members.length);h.multiplyScalar(c),h.add(t.position),this.createRing(n,h,t)}}else if(t.value.rings.length>0){let n=this.getRing(t.value.rings[0]);if(!n.positioned){let h=O.subtract(t.previousPosition,t.position);h.invert(),h.normalize();let c=ut.polyCircumradius(this.opts.bondLength,n.getSize());h.multiplyScalar(c),h.add(t.position),this.createRing(n,h,t)}}else{let n=t.getNeighbours(),h=[];for(let u=0;u<n.length;u++)this.graph.vertices[n[u]].value.isDrawn&&h.push(n[u]);e&&(h=Dt.remove(h,e.id));let c=t.getAngle();if(h.length===1){let u=this.graph.vertices[h[0]],p=e?this.graph.getEdge(t.id,e.id):null,b=this.graph.getEdge(t.id,u.id);if(p&&b&&p.weight+b.weight>=4)p.center=!0,b.center=!0,u.angle=0,p.weight===b.weight&&(t.value.drawExplicit=!0),this.createNextBond(u,t,c+u.angle);else if(e&&e.value.rings.length>0){let f=ut.toRad(60),S=-f,y=new O(this.opts.bondLength,0),M=new O(this.opts.bondLength,0);y.rotate(f).add(t.position),M.rotate(S).add(t.position);let B=this.getCurrentCenterOfMass(),E=y.distanceSq(B),P=M.distanceSq(B);u.angle=E<P?S:f,this.createNextBond(u,t,c+u.angle)}else{let f=this.getLastAngle(t.id);if(f=f>=0?1.0472:-1.0472,e&&!o){let S=this.graph.getEdge(t.id,u.id).bondType;S===\"/\"?(this.doubleBondConfig===\"/\"||this.doubleBondConfig===\"\\\\\"&&(f=-f),this.doubleBondConfig=null):S===\"\\\\\"&&(this.doubleBondConfig===\"/\"?f=-f:this.doubleBondConfig,this.doubleBondConfig=null)}i?u.angle=f:u.angle=-f,this.createNextBond(u,t,c+u.angle)}}else if(h.length===2){let u=t.angle;u||(u=1.0472);let p=this.graph.getTreeDepth(h[0],t.id),b=this.graph.getTreeDepth(h[1],t.id),f=this.graph.vertices[h[0]],S=this.graph.vertices[h[1]];f.value.subtreeDepth=p,S.value.subtreeDepth=b;let y=this.graph.getTreeDepth(e?e.id:null,t.id);e&&(e.value.subtreeDepth=y);let M=0,B=1;S.value.element===\"C\"&&f.value.element!==\"C\"&&b>1&&p<5?(M=1,B=0):S.value.element!==\"C\"&&f.value.element===\"C\"&&p>1&&b<5?(M=0,B=1):b>p&&(M=1,B=0);let E=this.graph.vertices[h[M]],P=this.graph.vertices[h[B]],V=y<p&&y<b;P.angle=u,E.angle=-u,this.doubleBondConfig===\"\\\\\"?P.value.branchBond===\"\\\\\"&&(P.angle=-u,E.angle=u):this.doubleBondConfig===\"/\"&&P.value.branchBond===\"/\"&&(P.angle=-u,E.angle=u),this.createNextBond(P,t,c+P.angle,V),this.createNextBond(E,t,c+E.angle,V)}else if(h.length>0){let u=h.map(p=>{let b=this.graph.vertices[p],f=this.graph.getTreeDepth(p,t.id);return b.value.subtreeDepth=f,b});if(u.sort((p,b)=>b.value.subtreeDepth-p.value.subtreeDepth),h.length===3&&e&&e.parentVertexId!==null&&e.value.rings.length<1&&u[2].value.rings.length<1&&u[1].value.rings.length<1&&u[0].value.rings.length<1&&u[2].value.subtreeDepth===1&&u[1].value.subtreeDepth===1&&u[0].value.subtreeDepth>1)t.angle>=0?(u[0].angle=-1.0472,u[1].angle=ut.toRad(30),u[2].angle=ut.toRad(90)):(u[0].angle=1.0472,u[1].angle=-ut.toRad(30),u[2].angle=-ut.toRad(90)),this.createNextBond(u[0],t,c+u[0].angle),this.createNextBond(u[1],t,c+u[1].angle),this.createNextBond(u[2],t,c+u[2].angle);else{let p=h.length+(e?1:0),b=2*Math.PI/p,f=b,S=0;for(h.length%2!==0?(this.createNextBond(u[0],t,c),S=1):f/=2;S<h.length;)this.createNextBond(u[S+0],t,c+f),this.createNextBond(u[S+1],t,c-f),f+=b,S+=2}}}}getCommonRingbondNeighbour(t){let e=t.neighbours;for(let r=0;r<e.length;r++){let i=this.graph.vertices[e[r]];if(Dt.containsAll(i.value.rings,t.value.rings))return i}return null}isPointInRing(t){for(let e=0;e<this.rings.length;e++){let r=this.rings[e];if(!r.positioned)continue;let i=ut.polyCircumradius(this.opts.bondLength,r.getSize()),s=i*i;if(t.distanceSq(r.center)<s)return!0}return!1}isEdgeInRing(t){let e=this.graph.vertices[t.sourceId],r=this.graph.vertices[t.targetId];return this.areVerticesInSameRing(e,r)}isEdgeRotatable(t){let e=this.graph.vertices[t.sourceId],r=this.graph.vertices[t.targetId];return!(t.bondType!==\"-\"||e.isTerminal()||r.isTerminal()||e.value.rings.length>0&&r.value.rings.length>0&&this.areVerticesInSameRing(e,r))}isRingAromatic(t){for(let e=0;e<t.members.length;e++)if(!this.graph.vertices[t.members[e]].value.isPartOfAromaticRing)return!1;return!0}isRingRegularPolygon(t,e=1.15){if(t.members.length<3)return!1;let r=t.getPolygon(this.graph.vertices),i=t.center,s=1/0,o=-1/0;for(let n=0;n<r.length;n++){let h=r[n].distance(i);h<s&&(s=h),h>o&&(o=h)}return s<1e-6?!1:o/s<e}getEdgeNormals(t){let e=this.graph.vertices[t.sourceId].position,r=this.graph.vertices[t.targetId].position;return O.units(e,r)}getNonRingNeighbours(t){let e=[],r=this.graph.vertices[t],i=r.neighbours;for(let s=0;s<i.length;s++){let o=this.graph.vertices[i[s]];Dt.intersection(r.value.rings,o.value.rings).length===0&&o.value.isBridge==!1&&e.push(o)}return e}getMinimumNonBondedDistance(){let t=Number.POSITIVE_INFINITY;for(let e=0;e<this.graph.vertices.length;e++){let r=this.graph.vertices[e];if(r.value.isDrawn)for(let i=e+1;i<this.graph.vertices.length;i++){if(this.graph.hasEdge(e,i))continue;let s=this.graph.vertices[i];if(!s.value.isDrawn)continue;let o=r.position.distance(s.position);o<t&&(t=o)}}return t}getRingExternalConnectionCount(t){let e=this.getRing(t);if(!e)return 0;let r=new Set(e.members),i=new Set;for(let s=0;s<e.members.length;s++){let o=e.members[s],n=this.graph.vertices[o];for(let h=0;h<n.neighbours.length;h++){let c=n.neighbours[h];r.has(c)||i.add(`${o}:${c}`)}}return i.size}resolveRigidRingOverlaps(){let t=this.getOverlapScore().total,e=this.getMinimumNonBondedDistance(),r=this.opts.bondLength*.3;for(let i=0;i<this.graph.edges.length;i++){let s=this.graph.edges[i];if(!this.isEdgeRotatable(s))continue;let o=this.graph.getTreeDepth(s.sourceId,s.targetId),n=this.graph.getTreeDepth(s.targetId,s.sourceId),h=s.targetId,c=s.sourceId;o>n&&(h=s.sourceId,c=s.targetId);let u=this.graph.vertices[h],p=this.graph.vertices[c],b=p.getNeighbours(h);if(b.length!==2)continue;let f=this.graph.vertices[b[0]],S=this.graph.vertices[b[1]];if(f.value.rings.length!==1||S.value.rings.length!==1||f.value.rings[0]!==S.value.rings[0])continue;let y=this.getRing(f.value.rings[0]);if(!y)continue;let M=0,B=t,E=e,P=ut.centralAngle(y.getSize()),V=Math.max(1,Math.floor(y.getSize()/2));for(let z=1;z<=V;z++){let T=P*z;for(let F=0;F<2;F++){let X=F===0?T:-T;this.rotateSubtree(p.id,u.id,X,p.position);let J=this.getOverlapScore().total,mt=this.getMinimumNonBondedDistance();this.rotateSubtree(p.id,u.id,-X,p.position),!(mt<=r)&&(J<B-1e-6||Math.abs(J-B)<=1e-6&&mt>E+1e-6)&&(M=X,B=J,E=mt)}}M!==0&&(this.rotateSubtree(p.id,u.id,M,p.position),t=B,e=E)}this.totalOverlapScore=t}annotateStereochemistry(){for(let t=0;t<this.graph.vertices.length;t++){let e=this.graph.vertices[t];if(!e.value.isStereoCenter)continue;let r=e.neighbours;if(r.length+e.value.countImplicitHydrogens()!==4){e.value.isStereoCenter=!1;continue}let i=Tl.getOrderArray(this.graph,e);if(i===void 0){e.value.isStereoCenter=!1;continue}let s=ut.parityOfPermutation(i),o=e.value.bracket.chirality===\"@\"?-1:1,n=s===o?\"R\":\"S\";e.value.chirality=n;let h=i.map(u=>{let p=r[u],b=this.graph.vertices[p],f=0;return f-=b.value.isStereoCenter?1e6:0,f-=this.areVerticesInSameRing(b,e)?1e5:0,f+=b.value.isDrawn?1e4:0,f+=b.value.element!==\"C\"?100:0,f-=this.graph.getTreeDepth(p,e.id),[f,p]}).sort((u,p)=>p[0]-u[0])[0][1],c=this._computeWedgeDirection(e,h,i,r,n);this.graph.getEdge(e.id,h).wedge=c,this.graph.vertices[h].value.isDrawn=!0}}_computeWedgeDirection(t,e,r,i,s){let o=i.length,n=0;for(let u=0;u<o;u++)if(i[r[u]]===e){n=u;break}let h=[];for(let u=0;u<o;u++)i[r[u]]!==e&&h.push(this.graph.vertices[i[r[u]]].position);if(h.length===2){let u=this.graph.vertices[e].position,p=(u.x+h[0].x+h[1].x)/3,b=(u.y+h[0].y+h[1].y)/3;h.push({x:2*t.position.x-p,y:2*t.position.y-b})}let c=(h[1].x-h[0].x)*(h[2].y-h[0].y)-(h[2].x-h[0].x)*(h[1].y-h[0].y);return(n%2===0?c>0:c<0)==(s===\"R\")?\"up\":\"down\"}initPseudoElements(){for(let t=0;t<this.graph.vertices.length;t++){let e=this.graph.vertices[t],r=e.neighbours,i=Array(r.length);for(let h=0;h<r.length;h++)i[h]=this.graph.vertices[r[h]];if(e.getNeighbourCount()<3||e.value.rings.length>0||e.value.element===\"P\"||e.value.element===\"C\"&&i.length===3&&i[0].value.element===\"N\"&&i[1].value.element===\"N\"&&i[2].value.element===\"N\")continue;let s=0,o=0;for(let h=0;h<i.length;h++){let c=i[h],u=c.value.element,p=c.getNeighbourCount();u!==\"C\"&&u!==\"H\"&&p===1&&s++,p>1&&o++}if(o>1||s<2)continue;let n=null;for(let h=0;h<i.length;h++){let c=i[h];c.getNeighbourCount()>1&&(n=c)}for(let h=0;h<i.length;h++){let c=i[h];if(c.getNeighbourCount()>1)continue;c.value.isDrawn=!1;let u=c.value.countImplicitHydrogens(),p=\"\";c.value.bracket&&(p=c.value.bracket.charge||0),e.value.attachPseudoElement(c.value.element,n?n.value.element:null,u,p)}}}};function jl(d){\"use strict\";function t(b,f){let S=b.length;if(S===0||S>0&&S-1 in b)for(let y=0;y<S&&f.call(b[y],y,b[y])!==!1;y++);else for(let y in b)if(f.call(b[y],y,b[y])===!1)break}function e(b){let f=parseInt(b).toString(16);return f.length==1?\"0\"+f:f}function r(b,f,S,y){return y=parseInt(y),y===void 0||y===255?\"#\"+e(b)+e(f)+e(S):y===0?!1:\"rgba(\"+b+\",\"+f+\",\"+S+\",\"+y/255+\")\"}function i(b,f,S){return\"M\"+b+\" \"+f+\"h\"+S}function s(b,f){return'<path stroke=\"'+b+'\" d=\"'+f+`\" />\n`}function o(b){let f=\"\";return t(b,function(S,y){if(S=r.apply(null,S.split(\",\")),S===!1)return;let M=[],B,E=1;t(y,function(P,V){B&&V[1]===B[1]&&V[0]===B[0]+E?E++:(B&&(M.push(i(B[0],B[1],E)),E=1),B=V)}),M.push(i(B[0],B[1],E)),f+=s(S,M.join(\"\"))}),f}function n(b){let f={},S=b.data,y=S.length,M=b.width,B=0,E=0,P;for(let V=0;V<y;V+=4)S[V+3]>0&&(P=S[V]+\",\"+S[V+1]+\",\"+S[V+2]+\",\"+S[V+3],f[P]=f[P]||[],B=V/4%M,E=Math.floor(V/4/M),f[P].push([B,E]));return f}let h=n(d),c=o(h),u='<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -0.5 '+d.width+\" \"+d.height+'\" shape-rendering=\"crispEdges\"><g shape-rendering=\"crispEdges\">'+c+\"</g></svg>\",p=document.createElement(\"div\");return p.innerHTML=u,p.firstElementChild}var ql=Bl(Ll()),ls=class{constructor(d,t,e,r,i=.3,s=0,o=null,n=1,h=!1){this.points=d,this.weights=t,this.width=e,this.height=r,this.sigma=i,this.interval=s,this.opacity=n,this.normalized=h,o===null&&(o=[\"#c51b7d\",\"#de77ae\",\"#f1b6da\",\"#fde0ef\",\"#ffffff\",\"#e6f5d0\",\"#b8e186\",\"#7fbc41\",\"#4d9221\"]),this.colormap=o,this.canvas=document.createElement(\"canvas\"),this.context=this.canvas.getContext(\"2d\"),this.canvas.width=this.width,this.canvas.height=this.height}setFromArray(d,t){this.points=[],d.forEach(e=>{this.points.push(new O(e[0],e[1]))}),this.weights=[],t.forEach(e=>{this.weights.push(e)})}draw(){let d=[];for(let i=0;i<this.width;i++){let s=[];for(let o=0;o<this.height;o++)s.push(0);d.push(s)}let t=1/(2*this.sigma*this.sigma);for(let i=0;i<this.points.length;i++){let s=this.points[i],o=this.weights[i];for(let n=0;n<this.width;n++)for(let h=0;h<this.height;h++){let c=n-s.x,u=h-s.y,p=(c*c+u*u)*t,b=o*Math.exp(-p);d[n][h]+=b}}let e=1;if(!this.normalized){let i=-Number.MAX_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER;for(let o=0;o<this.width;o++)for(let n=0;n<this.height;n++)d[o][n]<s&&(s=d[o][n]),d[o][n]>i&&(i=d[o][n]);e=Math.max(Math.abs(s),Math.abs(i))}let r=ql.default.scale(this.colormap).domain([-1,1]);for(let i=0;i<this.width;i++)for(let s=0;s<this.height;s++){this.normalized||(d[i][s]=d[i][s]/e),this.interval!==0&&(d[i][s]=Math.round(d[i][s]/this.interval)*this.interval);let[o,n,h]=r(d[i][s]).rgb();this.setPixel(new O(i,s),o,n,h)}}getImage(d){let t=new Image;t.onload=()=>{this.context.imageSmoothingEnabled=!1,this.context.drawImage(t,0,0,this.width,this.height),d&&d(t)},t.onerror=e=>{console.log(e)},t.src=this.canvas.toDataURL()}getSVG(){return jl(this.context.getImageData(0,0,this.width,this.height))}setPixel(d,t,e,r){this.context.fillStyle=\"rgba(\"+t+\",\"+e+\",\"+r+\",\"+this.opacity+\")\",this.context.fillRect(d.x,d.y,1,1)}};function Gl(d){let t=\"\",e=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\",r=e.length;for(let i=0;i<d;i++)t+=e.charAt(Math.floor(Math.random()*r));return t}var $e=class qt{constructor(t,e,r,i=!0){if(typeof e==\"string\"||e instanceof String?this.svg=document.getElementById(e):this.svg=e,this.container=null,this.opts=r,this.uid=Gl(5),this.gradientId=0,this.defaultGradients=new Map,this.backgroundItems=[],this.paths=[],this.vertices=[],this.gradients=[],this.highlights=[],this.drawingWidth=0,this.drawingHeight=0,this.halfBondThickness=this.opts.bondThickness/2,this.themeManager=t,this.maskElements=[],this.maxX=-Number.MAX_VALUE,this.maxY=-Number.MAX_VALUE,this.minX=Number.MAX_VALUE,this.minY=Number.MAX_VALUE,i)for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);this.style=document.createElementNS(\"http://www.w3.org/2000/svg\",\"style\"),this.style.appendChild(document.createTextNode(`\n                .element {\n                    font: ${this.opts.fontSizeLarge}pt ${this.opts.fontFamily};\n                }\n                .sub {\n                    font: ${this.opts.fontSizeSmall}pt ${this.opts.fontFamily};\n                }\n            `)),this.svg?this.svg.appendChild(this.style):(this.container=document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\"),this.container.appendChild(this.style))}constructSvg(){let t=document.createElementNS(\"http://www.w3.org/2000/svg\",\"defs\"),e=document.createElementNS(\"http://www.w3.org/2000/svg\",\"mask\"),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\"),i=document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\"),s=document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\"),o=document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\"),n=this.paths;{let h=document.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\");h.setAttributeNS(null,\"x\",this.minX),h.setAttributeNS(null,\"y\",this.minY),h.setAttributeNS(null,\"width\",this.maxX-this.minX),h.setAttributeNS(null,\"height\",this.maxY-this.minY),h.setAttributeNS(null,\"fill\",\"white\"),e.appendChild(h)}e.setAttributeNS(null,\"id\",this.uid+\"-text-mask\"),e.setAttributeNS(null,\"maskUnits\",\"userSpaceOnUse\"),e.setAttributeNS(null,\"x\",this.minX),e.setAttributeNS(null,\"y\",this.minY),e.setAttributeNS(null,\"width\",this.maxX-this.minX),e.setAttributeNS(null,\"height\",this.maxY-this.minY);for(let h of n)s.appendChild(h);for(let h of this.backgroundItems)r.appendChild(h);for(let h of this.highlights)i.appendChild(h);for(let h of this.vertices)o.appendChild(h);for(let h of this.maskElements)e.appendChild(h);for(let h of this.gradients)t.appendChild(h);if(s.setAttributeNS(null,\"mask\",\"url(#\"+this.uid+\"-text-mask)\"),this.updateViewbox(this.opts.scale),this.svg)this.svg.appendChild(t),this.svg.appendChild(e),this.svg.appendChild(r),this.svg.appendChild(i),this.svg.appendChild(s),this.svg.appendChild(o);else return this.container.appendChild(t),this.container.appendChild(e),this.container.appendChild(r),this.container.appendChild(s),this.container.appendChild(o),this.container}addLayer(t){this.backgroundItems.push(t.firstChild)}getBondColor(t,e){let r=this.themeManager.getColor(t.value.element),i=this.themeManager.getColor(e.value.element);if(r===i)return r;let s=this.themeManager.getColor(\"C\"),o=t.position.distance(e.position)/this.opts.bondLength;if(o>.9&&o<1.1){if(r===s)return this.getDefaultGradient(e,i,s);if(i===s)return this.getDefaultGradient(t,r,s)}return this.createLinearGradient(t.position,e.position,[[\"20%\",r],[\"80%\",i]])}getDefaultGradient(t,e,r){let i=this.defaultGradients.get(t);return i||(i=this.createRadialGradient(t.position,this.opts.bondLength,[[\"20%\",e||this.themeManager.getColor(t.value.element)],[\"80%\",r||this.themeManager.getColor(\"C\")]]),this.defaultGradients.set(t,i),i)}createRadialGradient(t,e,r){let i=document.createElementNS(\"http://www.w3.org/2000/svg\",\"radialGradient\"),s=this.uid+`-atom-${this.gradientId++}`;i.setAttributeNS(null,\"id\",s),i.setAttributeNS(null,\"gradientUnits\",\"userSpaceOnUse\"),i.setAttributeNS(null,\"cx\",t.x),i.setAttributeNS(null,\"cy\",t.y),i.setAttributeNS(null,\"r\",e);for(let[o,n]of r){let h=document.createElementNS(\"http://www.w3.org/2000/svg\",\"stop\");h.setAttributeNS(null,\"offset\",o),h.setAttributeNS(null,\"stop-color\",n),i.appendChild(h)}return this.gradients.push(i),`url(#${s})`}createLinearGradient(t,e,r){let i=document.createElementNS(\"http://www.w3.org/2000/svg\",\"linearGradient\"),s=this.uid+`-bond-${this.gradientId++}`;i.setAttributeNS(null,\"id\",s),i.setAttributeNS(null,\"gradientUnits\",\"userSpaceOnUse\"),i.setAttributeNS(null,\"x1\",t.x),i.setAttributeNS(null,\"y1\",t.y),i.setAttributeNS(null,\"x2\",e.x),i.setAttributeNS(null,\"y2\",e.y);for(let[o,n]of r){let h=document.createElementNS(\"http://www.w3.org/2000/svg\",\"stop\");h.setAttributeNS(null,\"offset\",o),h.setAttributeNS(null,\"stop-color\",n),i.appendChild(h)}return this.gradients.push(i),`url(#${s})`}createSubSuperScripts(t,e){let r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"tspan\");return r.setAttributeNS(null,\"baseline-shift\",e),r.appendChild(document.createTextNode(t)),r.setAttributeNS(null,\"class\",\"sub\"),r}static createUnicodeCharge(t){return t===1?\"\\u207A\":t===-1?\"\\u207B\":t>1?qt.createUnicodeSuperscript(t)+\"\\u207A\":t<-1?qt.createUnicodeSuperscript(t)+\"\\u207B\":\"\"}determineDimensions(t){for(let r=0;r<t.length;r++){if(!t[r].value.isDrawn)continue;let i=t[r].position;this.maxX<i.x&&(this.maxX=i.x),this.maxY<i.y&&(this.maxY=i.y),this.minX>i.x&&(this.minX=i.x),this.minY>i.y&&(this.minY=i.y)}let e=this.opts.padding;this.maxX+=e,this.maxY+=e,this.minX-=e,this.minY-=e,this.drawingWidth=this.maxX-this.minX,this.drawingHeight=this.maxY-this.minY}updateViewbox(t){let e=this.minX,r=this.minY,i=this.maxX-this.minX,s=this.maxY-this.minY;if(t<=0)if(i>s){let o=i-s;s=i,r-=o/2}else{let o=s-i;i=s,e-=o/2}else this.svg&&(this.svg.style.width=t*i+\"px\",this.svg.style.height=t*s+\"px\");this.svg.setAttributeNS(null,\"viewBox\",`${e} ${r} ${i} ${s}`)}drawBall(t,e,r){let i=this.opts.bondLength/4.5;t-i<this.minX&&(this.minX=t-i),t+i>this.maxX&&(this.maxX=t+i),e-i<this.minY&&(this.minY=e-i),e+i>this.maxY&&(this.maxY=e+i);let s=document.createElementNS(\"http://www.w3.org/2000/svg\",\"circle\");s.setAttributeNS(null,\"cx\",t),s.setAttributeNS(null,\"cy\",e),s.setAttributeNS(null,\"r\",i),s.setAttributeNS(null,\"fill\",this.themeManager.getColor(r)),this.vertices.push(s)}drawWedge(t,e=\"#000\"){let r=t.getLeftVector().clone(),i=t.getRightVector().clone(),s=O.normals(r,i);s[0].normalize(),s[1].normalize();let o=t.getRightChiral(),n=r,h=i;o&&(n=i,h=r);let c=O.add(n,O.multiplyScalar(s[0],this.halfBondThickness)),u=O.add(h,O.multiplyScalar(s[0],3+this.opts.fontSizeLarge/4)),p=O.add(h,O.multiplyScalar(s[1],3+this.opts.fontSizeLarge/4)),b=O.add(n,O.multiplyScalar(s[1],this.halfBondThickness)),f=document.createElementNS(\"http://www.w3.org/2000/svg\",\"polygon\");f.setAttributeNS(null,\"points\",`${c.x},${c.y} ${u.x},${u.y} ${p.x},${p.y} ${b.x},${b.y}`),f.setAttributeNS(null,\"fill\",e),this.paths.push(f)}drawAtomHighlight(t,e,r=\"#03fc9d\"){let i=document.createElementNS(\"http://www.w3.org/2000/svg\",\"circle\");i.setAttributeNS(null,\"cx\",t),i.setAttributeNS(null,\"cy\",e),i.setAttributeNS(null,\"r\",this.opts.bondLength/3),i.setAttributeNS(null,\"fill\",r),this.highlights.push(i)}drawDashedWedge(t,e=\"#000\"){if(isNaN(t.from.x)||isNaN(t.from.y)||isNaN(t.to.x)||isNaN(t.to.y)){console.error(\"Invalid line passed to SvgWrapper.drawDashedWedge()!\",t);return}let r=t.getLeftVector().clone(),i=t.getRightVector().clone(),s=O.normals(r,i);s[0].normalize(),s[1].normalize();let o=t.getRightChiral(),n,h;o?(n=i,h=r):(n=r,h=i);let c=O.subtract(h,n).normalize(),u=t.getLength(),p=1.25/(u/(this.opts.bondLength/10));for(let b=0;b<1;b+=p){let f=O.multiplyScalar(c,b*u),S=O.add(n,f),y=this.opts.fontSizeLarge/2*b,M=O.multiplyScalar(s[0],y);S.subtract(M);let B=S.clone();B.add(O.multiplyScalar(M,2)),this.drawLine(new at(S,B),!1,e)}}drawDebugPoint(t,e,r=\"\",i=\"#f00\"){let s=document.createElementNS(\"http://www.w3.org/2000/svg\",\"circle\");s.setAttributeNS(null,\"cx\",t),s.setAttributeNS(null,\"cy\",e),s.setAttributeNS(null,\"r\",\"2\"),s.setAttributeNS(null,\"fill\",i),this.vertices.push(s),this.drawDebugText(t+2,e-2,r,i)}drawDebugText(t,e,r,i=\"#f00\"){let s=document.createElementNS(\"http://www.w3.org/2000/svg\",\"text\");s.setAttributeNS(null,\"x\",t),s.setAttributeNS(null,\"y\",e),s.setAttributeNS(null,\"class\",\"debug\"),s.setAttributeNS(null,\"fill\",i),s.setAttributeNS(null,\"style\",\"font: 5px sans-serif\"),s.appendChild(document.createTextNode(r)),this.vertices.push(s)}drawRing(t,e,r){let i=document.createElementNS(\"http://www.w3.org/2000/svg\",\"circle\"),s=ut.apothemFromSideLength(this.opts.bondLength,r);i.setAttributeNS(null,\"cx\",t),i.setAttributeNS(null,\"cy\",e),i.setAttributeNS(null,\"r\",s-this.opts.bondSpacing),i.setAttributeNS(null,\"stroke\",this.themeManager.getColor(\"C\")),i.setAttributeNS(null,\"stroke-width\",this.opts.bondThickness),i.setAttributeNS(null,\"fill\",\"none\"),this.paths.push(i)}drawLine(t,e=!1,r=\"#000\",i=\"round\"){let s=t.getLeftVector(),o=t.getRightVector(),n=document.createElementNS(\"http://www.w3.org/2000/svg\",\"line\");n.setAttributeNS(null,\"x1\",s.x),n.setAttributeNS(null,\"y1\",s.y),n.setAttributeNS(null,\"x2\",o.x),n.setAttributeNS(null,\"y2\",o.y),n.setAttributeNS(null,\"stroke\",r),n.setAttributeNS(null,\"stroke-width\",this.opts.bondThickness),n.setAttributeNS(null,\"stroke-linecap\",i),e&&n.setAttributeNS(null,\"stroke-dasharray\",\"5,5\"),this.paths.push(n)}drawPoint(t,e,r){let i=.75;t-i<this.minX&&(this.minX=t-i),t+i>this.maxX&&(this.maxX=t+i),e-i<this.minY&&(this.minY=e-i),e+i>this.maxY&&(this.maxY=e+i);let s=document.createElementNS(\"http://www.w3.org/2000/svg\",\"circle\");s.setAttributeNS(null,\"cx\",t),s.setAttributeNS(null,\"cy\",e),s.setAttributeNS(null,\"r\",\"1.5\"),s.setAttributeNS(null,\"fill\",\"black\"),this.maskElements.push(s);let o=document.createElementNS(\"http://www.w3.org/2000/svg\",\"circle\");o.setAttributeNS(null,\"cx\",t),o.setAttributeNS(null,\"cy\",e),o.setAttributeNS(null,\"r\",i),o.setAttributeNS(null,\"fill\",this.themeManager.getColor(r)),this.vertices.push(o)}drawText(t,e,r,i,s,o,n,h,c,u={}){let p=[],b=r;n!==0&&n!==null&&(b+=qt.createUnicodeCharge(n)),h!==0&&h!==null&&(b=qt.createUnicodeSuperscript(h)+b),p.push([b,r]),i===1?p.push([\"H\",\"H\"]):i>1&&p.push([\"H\"+qt.createUnicodeSubscript(i),\"H\"]),n===1&&r===\"N\"&&\"0O\"in u&&\"0O-1\"in u&&(u={\"0O\":{element:\"O\",count:2,hydrogenCount:0,previousElement:\"C\",charge:\"\"}},n=0);for(let f of Object.keys(u)){let S=u[f],y=S.element;S.count>1&&(y+=qt.createUnicodeSubscript(S.count)),S.charge&&(y+=qt.createUnicodeCharge(S.charge)),p.push([y,S.element]);let M=S.hydrogenCount*S.count;M===1?p.push([\"H\",\"H\"]):M>1&&p.push([\"H\"+qt.createUnicodeSubscript(M),\"H\"])}this.write(p,s,t,e,c===1)}drawWeights(t,e,r){let i=this.opts.weights.sigma,s=this.opts.weights.colormap,o=s==null?\"#4d9221\":s[s.length-1],n=s==null?\"#c51b7d\":s[0],h=document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\");h.setAttributeNS(null,\"style\",`filter:blur(${i/2}px)`),this.backgroundItems.push(h);for(let c=0;c<t.length;++c){let u=t[c],p=e[c];if(!u)continue;let b=u>0?o:n;b=`rgb(from ${b} r g b / ${Math.abs(u)*r})`;let f=document.createElementNS(\"http://www.w3.org/2000/svg\",\"circle\");f.setAttributeNS(null,\"cx\",p.x),f.setAttributeNS(null,\"cy\",p.y),f.setAttributeNS(null,\"r\",i),f.setAttributeNS(null,\"fill\",b),h.appendChild(f)}}write(t,e,r,i,s){let o=qt.measureText(t[0][1],this.opts.fontSizeLarge,this.opts.fontFamily);if(e===\"left\"&&t[0][0]!==t[0][1]){let f=qt.measureText(t[0][0],this.opts.fontSizeLarge,this.opts.fontFamily);o.width=f.width}s?(r+o.width*t.length>this.maxX&&(this.maxX=r+o.width*t.length),r-o.width/2<this.minX&&(this.minX=r-o.width/2),i-o.height<this.minY&&(this.minY=i-o.height),i+o.height>this.maxY&&(this.maxY=i+o.height)):(e!==\"right\"?(r+o.width*t.length>this.maxX&&(this.maxX=r+o.width*t.length),r-o.width*t.length<this.minX&&(this.minX=r-o.width*t.length)):e!==\"left\"&&(r+o.width*t.length>this.maxX&&(this.maxX=r+o.width*t.length),r-o.width/2<this.minX&&(this.minX=r-o.width/2)),i-o.height<this.minY&&(this.minY=i-o.height),i+o.height>this.maxY&&(this.maxY=i+o.height),e===\"down\"&&i+.8*o.height*t.length>this.maxY&&(this.maxY=i+.8*o.height*t.length),e===\"up\"&&i-.8*o.height*t.length<this.minY&&(this.minY=i-.8*o.height*t.length));let n=r,h=i,c=document.createElementNS(\"http://www.w3.org/2000/svg\",\"text\");c.setAttributeNS(null,\"class\",\"element\");let u=document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\");c.setAttributeNS(null,\"fill\",\"#ffffff\"),e===\"left\"&&(t=t.reverse()),(e===\"right\"||e===\"down\"||e===\"up\")&&(r-=o.width/2),e===\"left\"&&(r+=o.width/2),t.forEach((f,S)=>{let y=f[0],M=f[1],B=document.createElementNS(\"http://www.w3.org/2000/svg\",\"tspan\");B.setAttributeNS(null,\"fill\",this.themeManager.getColor(M)),B.textContent=y,(e===\"up\"||e===\"down\")&&(B.setAttributeNS(null,\"x\",\"0px\"),e===\"up\"?B.setAttributeNS(null,\"y\",`-${.9*S}em`):B.setAttributeNS(null,\"y\",`${.9*S}em`)),c.appendChild(B)}),c.setAttributeNS(null,\"data-direction\",e),e===\"left\"||e===\"right\"?(c.setAttributeNS(null,\"dominant-baseline\",\"alphabetic\"),c.setAttributeNS(null,\"y\",\"0.36em\")):c.setAttributeNS(null,\"dominant-baseline\",\"central\"),e===\"left\"&&c.setAttributeNS(null,\"text-anchor\",\"end\"),u.appendChild(c),u.setAttributeNS(null,\"style\",`transform: translateX(${r}px) translateY(${i}px)`);let p=this.opts.fontSizeLarge*.75;t[0][1].length>1&&(p=this.opts.fontSizeLarge*1.1);let b=document.createElementNS(\"http://www.w3.org/2000/svg\",\"circle\");b.setAttributeNS(null,\"cx\",n),b.setAttributeNS(null,\"cy\",h),b.setAttributeNS(null,\"r\",p),b.setAttributeNS(null,\"fill\",\"black\"),this.maskElements.push(b),this.vertices.push(u)}toCanvas(t,e,r){(typeof t==\"string\"||t instanceof String)&&(t=document.getElementById(t));let i=new Image;i.onload=function(){t.width=e,t.height=r,t.getContext(\"2d\").drawImage(i,0,0,e,r)},i.src=\"data:image/svg+xml;charset-utf-8,\"+encodeURIComponent(this.svg.outerHTML)}static createUnicodeSubscript(t){let e=\"\";return t.toString().split(\"\").forEach(r=>{e+=[\"\\u2080\",\"\\u2081\",\"\\u2082\",\"\\u2083\",\"\\u2084\",\"\\u2085\",\"\\u2086\",\"\\u2087\",\"\\u2088\",\"\\u2089\"][parseInt(r)]}),e}static createUnicodeSuperscript(t){let e=\"\";return t.toString().split(\"\").forEach(r=>{let i=parseInt(r);Number.isFinite(i)&&(e+=[\"\\u2070\",\"\\xB9\",\"\\xB2\",\"\\xB3\",\"\\u2074\",\"\\u2075\",\"\\u2076\",\"\\u2077\",\"\\u2078\",\"\\u2079\"][i])}),e}static replaceNumbersWithSubscript(t){let e={0:\"\\u2080\",1:\"\\u2081\",2:\"\\u2082\",3:\"\\u2083\",4:\"\\u2084\",5:\"\\u2085\",6:\"\\u2086\",7:\"\\u2087\",8:\"\\u2088\",9:\"\\u2089\"};for(let[r,i]of Object.entries(e))t=t.replaceAll(r,i);return t}static measureText(t,e,r){let i=document.createElement(\"canvas\").getContext(\"2d\");if(!i)return qt.estimateTextSize(t,e);let s=e/16;i.font=`16pt ${r}`;let o=i.measureText(t),n=Math.abs(o.actualBoundingBoxLeft)+Math.abs(o.actualBoundingBoxRight),h=Math.abs(o.actualBoundingBoxAscent)+Math.abs(o.actualBoundingBoxDescent);return{width:n*s,height:h*s}}static estimateTextSize(t,e){let r=0;for(let i of String(t))i===\" \"?r+=.35:/[A-Z]/.test(i)?r+=.68:/[a-z]/.test(i)?r+=.56:/[0-9]/.test(i)?r+=.55:r+=.45;return{width:e*r,height:e}}static svgToCanvas(t,e,r,i,s=null){t.setAttributeNS(null,\"width\",r),t.setAttributeNS(null,\"height\",i);let o=document.createElement(\"img\");return o.onload=function(){e.width=r,e.height=i;let n=e.getContext(\"2d\");n.imageSmoothingEnabled=!1,n.drawImage(o,0,0,r,i),s&&s(e)},o.onerror=function(n){console.log(n)},o.src=\"data:image/svg+xml;charset-utf-8,\"+encodeURIComponent(t.outerHTML),e}static svgToImg(t,e,r,i){let s=document.createElement(\"canvas\");this.svgToCanvas(t,s,r,i,()=>{e.src=s.toDataURL(\"image/png\")})}static writeText(t,e,r,i,s=Number.MAX_SAFE_INTEGER){let o=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\"),n=document.createElementNS(\"http://www.w3.org/2000/svg\",\"style\");n.appendChild(document.createTextNode(`\n            .text {\n                font: ${r}pt ${i};\n                dominant-baseline: alphabetic;\n            }\n        `)),o.appendChild(n);let h=document.createElementNS(\"http://www.w3.org/2000/svg\",\"text\");h.setAttributeNS(null,\"class\",\"text\");let c=[];t.split(`\n`).forEach(p=>{if(qt.measureText(p,r,i).width>=s){let b=p.split(\" \"),f=0;for(let S=0;S<b.length;S++){let y=b.slice(f,S+1).join(\" \");qt.measureText(y,r,i).width>s&&S>f&&(c.push(b.slice(f,S).join(\" \")),f=S)}f<b.length&&c.push(b.slice(f,b.length).join(\" \"))}else c.push(p)});let u=0;return c.forEach((p,b)=>{let f=document.createElementNS(\"http://www.w3.org/2000/svg\",\"tspan\");f.setAttributeNS(null,\"fill\",e.getColor(\"C\")),f.textContent=p,f.setAttributeNS(null,\"x\",\"0px\"),f.setAttributeNS(null,\"y\",`${b+1}em`),h.appendChild(f);let S=qt.measureText(p,r,i);u=Math.max(u,S.width)}),h.setAttributeNS(null,\"transform\",`translate(${u/2}, 0)`),h.setAttributeNS(null,\"text-anchor\",\"middle\"),o.appendChild(h),{svg:o,width:u,height:(c.length+.4)*r*4/3}}},Lr=class{constructor(d,t=!0){this.preprocessor=new Gn(d),this.opts=this.preprocessor.opts,this.clear=t,this.svgWrapper=null}draw(d,t,e=\"light\",r=null,i=!1,s=[],o=!1){let n=null;if(t===null||t===\"svg\"?(n=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\"),n.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),n.setAttribute(\"xmlns:xlink\",\"http://www.w3.org/1999/xlink\"),n.setAttributeNS(null,\"width\",this.opts.width),n.setAttributeNS(null,\"height\",this.opts.height)):t instanceof String?n=document.getElementById(t.valueOf()):typeof t==\"string\"?n=document.getElementById(t):n=t,!(n instanceof SVGSVGElement))throw Error(\"Second argument was not an SVG or the ID of an SVG.\");let h={padding:this.opts.padding,compactDrawing:this.opts.compactDrawing};r!==null&&(this.opts.padding+=this.opts.weights.additionalPadding,this.opts.compactDrawing=!1);let c=this.preprocessor;return c.initDraw(d,e,i,s),i||(this.themeManager=new Pi(this.opts.themes,e),(this.svgWrapper===null||this.clear)&&(this.svgWrapper=new $e(this.themeManager,n,this.opts,this.clear))),c.processGraph(),this.svgWrapper.determineDimensions(c.graph.vertices),this.drawAtomHighlights(c.opts.debug),this.drawEdges(c.opts.debug),this.drawVertices(c.opts.debug),r!==null&&this.drawWeights(r,o),c.opts.debug&&console.debug(\"SvgDrawer::draw()\",{graph:c.graph,rings:c.rings,ringConnections:c.ringConnections}),this.svgWrapper.constructSvg(),r!==null&&(this.opts.padding=h.padding,this.opts.compactDrawing=h.padding),n}drawCanvas(d,t,e=\"light\",r=!1){let i=null;if(t instanceof String?i=document.getElementById(t.valueOf()):typeof t==\"string\"?i=document.getElementById(t):i=t,!(i instanceof HTMLCanvasElement))throw Error(\"Second argument was not a canvas or the ID of a canvas.\");let s=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");return s.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),s.setAttributeNS(null,\"viewBox\",\"0 0 500 500\"),s.setAttributeNS(null,\"width\",\"500\"),s.setAttributeNS(null,\"height\",\"500\"),s.setAttributeNS(null,\"style\",\"visibility: hidden: position: absolute; left: -1000px\"),document.body.appendChild(s),this.draw(d,s,e,r),this.svgWrapper.toCanvas(i,this.opts.width,this.opts.height),document.body.removeChild(s),t}drawAromaticityRing(d){this.svgWrapper.drawRing(d.center.x,d.center.y,d.getSize())}drawEdges(d){let t=this.preprocessor,e=t.graph,r=t.rings,i=Array(this.preprocessor.graph.edges.length);i.fill(!1),e.traverseBF(0,s=>{let o=e.getEdges(s.id);for(let n=0;n<o.length;n++){let h=o[n];i[h]||(i[h]=!0,this.drawEdge(h,d))}});for(let s=0;s<r.length;s++){let o=r[s];t.isRingAromatic(o)&&(o.isPartOfBridged&&!t.isRingRegularPolygon(o)||this.drawAromaticityRing(o))}}drawEdge(d,t){let e=this.preprocessor,r=e.opts,i=this.svgWrapper,s=e.graph.edges[d],o=e.graph.vertices[s.sourceId],n=e.graph.vertices[s.targetId],h=o.value.element,c=n.value.element;if((!o.value.isDrawn||!n.value.isDrawn)&&e.opts.atomVisualization===\"default\")return;let u=i.getBondColor(o,n),p=o.position,b=n.position,f=e.getEdgeNormals(s),S=Dt.clone(f);S[0].multiplyScalar(10).add(p),S[1].multiplyScalar(10).add(p);let y=s.isPartOfAromaticRing&&o.value.bridgedRing!==null&&n.value.bridgedRing!==null?e.getLargestOrAromaticCommonRing(o,n):null;if(s.bondType===\"=\"||e.getRingbondType(o,n)===\"=\"||y&&!e.isRingRegularPolygon(y)){let M=e.areVerticesInSameRing(o,n),B=e.chooseSide(o,n,S);if(M){let E=e.getLargestOrAromaticCommonRing(o,n).center;f[0].multiplyScalar(r.bondSpacing),f[1].multiplyScalar(r.bondSpacing);let P=null;E.sameSideAs(o.position,n.position,O.add(p,f[0]))?P=new at(O.add(p,f[0]),O.add(b,f[0]),h,c):P=new at(O.add(p,f[1]),O.add(b,f[1]),h,c),P.shorten(r.bondLength-r.shortBondLength*r.bondLength),i.drawLine(P,s.isPartOfAromaticRing,u),i.drawLine(new at(p,b,h,c),!1,u)}else if(s.center||o.isTerminal()&&n.isTerminal()||B.anCount==0&&B.bnCount>1||B.bnCount==0&&B.anCount>1){this.multiplyNormals(f,r.halfBondSpacing);let E=new at(O.add(p,f[0]),O.add(b,f[0]),h,c),P=new at(O.add(p,f[1]),O.add(b,f[1]),h,c);i.drawLine(E,!1,u),i.drawLine(P,!1,u)}else if(B.sideCount[0]>B.sideCount[1]||B.totalSideCount[0]>B.totalSideCount[1]){this.multiplyNormals(f,r.bondSpacing);let E=new at(O.add(p,f[0]),O.add(b,f[0]),h,c);E.shorten(r.bondLength-r.shortBondLength*r.bondLength),i.drawLine(E,!1,u),i.drawLine(new at(p,b,h,c),!1,u)}else if(B.sideCount[0]<B.sideCount[1]||B.totalSideCount[0]<=B.totalSideCount[1]){this.multiplyNormals(f,r.bondSpacing);let E=new at(O.add(p,f[1]),O.add(b,f[1]),h,c);E.shorten(r.bondLength-r.shortBondLength*r.bondLength),i.drawLine(E,!1,u),i.drawLine(new at(p,b,h,c),!1,u)}}else if(s.bondType===\"#\"){f[0].multiplyScalar(r.bondSpacing/1.5),f[1].multiplyScalar(r.bondSpacing/1.5);let M=new at(O.add(p,f[0]),O.add(b,f[0]),h,c),B=new at(O.add(p,f[1]),O.add(b,f[1]),h,c);i.drawLine(M,!1,u),i.drawLine(B,!1,u),i.drawLine(new at(p,b,h,c),!1,u)}else if(s.bondType!==\".\"){let M=o.value.isStereoCenter,B=n.value.isStereoCenter;s.wedge===\"up\"?i.drawWedge(new at(p,b,h,c,M,B),u):s.wedge===\"down\"?i.drawDashedWedge(new at(p,b,h,c,M,B),u):i.drawLine(new at(p,b,h,c,M,B),!1,u)}if(t){let M=O.midpoint(p,b);i.drawDebugText(M.x,M.y,\"e\"+d,\"#0c0\")}}drawAtomHighlights(d){let t=this.preprocessor,e=t.graph,r=this.svgWrapper;for(let i=0;i<e.vertices.length;i++){let s=e.vertices[i],o=s.value;for(let n=0;n<t.highlight_atoms.length;n++){let h=t.highlight_atoms[n];o.class===h[0]&&r.drawAtomHighlight(s.position.x,s.position.y,h[1])}}}drawVertices(d){let t=this.preprocessor,e=t.opts,r=t.graph,i=t.rings,s=this.svgWrapper;for(let o=0;o<r.vertices.length;o++){let n=r.vertices[o],h=n.value,c=0,u=0,p=h.element,b=h.countImplicitHydrogens(),f=n.getTextDirection(r.vertices,h.hasAttachedPseudoElements),S=Gn.getEffectiveShowCarbonsMode(e),y=S===\"terminal\"||p!==\"C\"||h.hasAttachedPseudoElements?n.isTerminal():!1,M=h.element===\"C\";if(p===\"C\"){let B=h.rings&&h.rings.length>0;S===\"none\"?(M=!0,y=!1):(S===\"all\"||S===\"acyclic\"&&!B)&&(M=!1,y=!0)}if(h.bracket&&(c=h.bracket.charge,u=h.bracket.isotope),(c||u||r.vertices.length<3)&&(M=!1),e.atomVisualization===\"allballs\")s.drawBall(n.position.x,n.position.y,p);else if(h.isDrawn&&(!M||h.drawExplicit||y||h.hasAttachedPseudoElements)||r.vertices.length===1)if(e.atomVisualization===\"default\"){let B=h.getAttachedPseudoElements();h.hasAttachedPseudoElements&&r.vertices.length===Object.keys(B).length+1&&(f=\"right\"),s.drawText(n.position.x,n.position.y,p,b,f,y,c,u,r.vertices.length,B)}else e.atomVisualization===\"balls\"&&s.drawBall(n.position.x,n.position.y,p);else if(n.getNeighbourCount()===2&&n.forcePositioned==!0){let B=r.vertices[n.neighbours[0]].position,E=r.vertices[n.neighbours[1]].position,P=O.threePointangle(n.position,B,E);Math.abs(Math.PI-P)<.1&&s.drawPoint(n.position.x,n.position.y,p)}if(d){let B=\"v\"+n.id+\" \"+Dt.print(h.ringbonds);s.drawDebugText(n.position.x,n.position.y,B)}}if(e.debug)for(let o=0;o<i.length;o++){let n=i[o].center;s.drawDebugPoint(n.x,n.y,\"r\"+i[o].id,\"#00f\")}}drawWeights(d,t){if(!d)return;let e=this.preprocessor.graph.atomIdxToVertexId;d.length<e.length?e=e.slice(0,d.length):d.length>e.length&&(console.warn(`More weights (${d.length}) than heavy atoms (${e.length}); truncating.`),d=d.slice(0,e.length));let r=0,i=0;for(let u=0;u<d.length;++u){let p=d[u];p&&(p<r&&(r=p),p>i&&(i=p))}if(r===0&&i===0)return;if(this.opts.experimentalWeights){let u=e.map(b=>this.preprocessor.graph.vertices[b].position),p=this.opts.weights.opacity;return t||(p/=Math.max(-r,i)),this.svgWrapper.drawWeights(d,u,p)}let s=this.svgWrapper.minX,o=this.svgWrapper.minY,n=e.map(u=>{let p=this.preprocessor.graph.vertices[u];return new O(p.position.x-s,p.position.y-o)}),h=new ls(n,d,this.svgWrapper.drawingWidth,this.svgWrapper.drawingHeight,this.opts.weights.sigma,this.opts.weights.interval,this.opts.weights.colormap,this.opts.weights.opacity,t);h.draw();let c=h.getSVG();c.firstElementChild.setAttributeNS(null,\"transform\",`translate(${s},${o})`),this.svgWrapper.addLayer(c)}getTotalOverlapScore(){return this.preprocessor.getTotalOverlapScore()}getMolecularFormula(d=null){return this.preprocessor.getMolecularFormula(d)}multiplyNormals(d,t){d[0].multiplyScalar(t),d[1].multiplyScalar(t)}},hs=class{constructor(d){this.svgDrawer=new Lr(d)}draw(d,t,e=\"light\",r=!1,i=[]){let s=null,o=null;if(t instanceof String?s=document.getElementById(t.valueOf()):typeof t==\"string\"?s=document.getElementById(t):s=t,s instanceof HTMLCanvasElement)o=s;else throw Error(\"Second argument was not a canvas or the ID of a canvas.\");let n=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");n.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),n.setAttributeNS(null,\"viewBox\",\"0 0 \"+this.svgDrawer.opts.width+\" \"+this.svgDrawer.opts.height),n.setAttributeNS(null,\"width\",this.svgDrawer.opts.width+\"\"),n.setAttributeNS(null,\"height\",this.svgDrawer.opts.height+\"\"),this.svgDrawer.draw(d,n,e,null,r,i),this.svgDrawer.svgWrapper.toCanvas(o,this.svgDrawer.opts.width,this.svgDrawer.opts.height)}getTotalOverlapScore(){return this.svgDrawer.getTotalOverlapScore()}getMolecularFormula(){return this.svgDrawer.getMolecularFormula()}},_e=(function(){\"use strict\";function d(r,i){function s(){this.constructor=r}s.prototype=i.prototype,r.prototype=new s}function t(r,i,s,o){this.message=r,this.expected=i,this.found=s,this.location=o,this.name=\"SyntaxError\",typeof Error.captureStackTrace==\"function\"&&Error.captureStackTrace(this,t)}d(t,Error),t.buildMessage=function(r,i){var s={literal:function(b){return'\"'+n(b.text)+'\"'},class:function(b){var f=\"\",S;for(S=0;S<b.parts.length;S++)f+=b.parts[S]instanceof Array?h(b.parts[S][0])+\"-\"+h(b.parts[S][1]):h(b.parts[S]);return\"[\"+(b.inverted?\"^\":\"\")+f+\"]\"},any:function(b){return\"any character\"},end:function(b){return\"end of input\"},other:function(b){return b.description}};function o(b){return b.charCodeAt(0).toString(16).toUpperCase()}function n(b){return b.replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,'\\\\\"').replace(/\\0/g,\"\\\\0\").replace(/\\t/g,\"\\\\t\").replace(/\\n/g,\"\\\\n\").replace(/\\r/g,\"\\\\r\").replace(/[\\x00-\\x0F]/g,function(f){return\"\\\\x0\"+o(f)}).replace(/[\\x10-\\x1F\\x7F-\\x9F]/g,function(f){return\"\\\\x\"+o(f)})}function h(b){return b.replace(/\\\\/g,\"\\\\\\\\\").replace(/\\]/g,\"\\\\]\").replace(/\\^/g,\"\\\\^\").replace(/-/g,\"\\\\-\").replace(/\\0/g,\"\\\\0\").replace(/\\t/g,\"\\\\t\").replace(/\\n/g,\"\\\\n\").replace(/\\r/g,\"\\\\r\").replace(/[\\x00-\\x0F]/g,function(f){return\"\\\\x0\"+o(f)}).replace(/[\\x10-\\x1F\\x7F-\\x9F]/g,function(f){return\"\\\\x\"+o(f)})}function c(b){return s[b.type](b)}function u(b){var f=new Array(b.length),S,y;for(S=0;S<b.length;S++)f[S]=c(b[S]);if(f.sort(),f.length>0){for(S=1,y=1;S<f.length;S++)f[S-1]!==f[S]&&(f[y]=f[S],y++);f.length=y}switch(f.length){case 1:return f[0];case 2:return f[0]+\" or \"+f[1];default:return f.slice(0,-1).join(\", \")+\", or \"+f[f.length-1]}}function p(b){return b?'\"'+n(b)+'\"':\"end of input\"}return\"Expected \"+u(r)+\" but \"+p(i)+\" found.\"};function e(r,i){i=i!==void 0?i:{};var s=r.split(\"(\").length-1,o=r.split(\")\").length-1;if(s!==o)throw Ze(\"The number of opening parentheses does not match the number of closing parentheses.\",0);var n={},h={chain:Oe},c=Oe,u=function(N){for(var v=[],D=[],k=0;k<N[1].length;k++)v.push(N[1][k]);for(var k=0;k<N[2].length;k++){var _=N[2][k][0]?N[2][k][0]:\"-\";D.push({bond:_,id:N[2][k][1]})}for(var k=0;k<N[3].length;k++)v.push(N[3][k]);for(var k=0;k<N[6].length;k++)v.push(N[6][k]);return{atom:N[0],isBracket:!!N[0].element,branches:v,branchCount:v.length,ringbonds:D,ringbondCount:D.length,bond:N[4]?N[4]:\"-\",next:N[5],hasNext:!!N[5]}},p=\"(\",b=Ct(\"(\",!1),f=\")\",S=Ct(\")\",!1),y=function(N){var v=N[1]?N[1]:\"-\";return N[2].branchBond=v,N[2]},M=function(N){return N},B=/^[\\-=#$:\\/\\\\.]/,E=re([\"-\",\"=\",\"#\",\"$\",\":\",\"/\",\"\\\\\",\".\"],!1,!1),P=function(N){return N},V=\"[\",z=Ct(\"[\",!1),T=\"se\",F=Ct(\"se\",!1),X=\"as\",J=Ct(\"as\",!1),mt=\"]\",Vt=Ct(\"]\",!1),At=function(N){return{isotope:N[1],element:N[2],chirality:N[3],hcount:N[4],charge:N[5],class:N[6]}},Nt=\"B\",ee=Ct(\"B\",!1),Kt=\"r\",Gt=Ct(\"r\",!1),Zt=\"C\",ne=Ct(\"C\",!1),kt=\"l\",Ft=Ct(\"l\",!1),Ae=/^[NOPSFI]/,W=re([\"N\",\"O\",\"P\",\"S\",\"F\",\"I\"],!1,!1),et=function(N){return N.length>1?N.join(\"\"):N},It=/^[bcnops]/,Pt=re([\"b\",\"c\",\"n\",\"o\",\"p\",\"s\"],!1,!1),gt=\"*\",Mt=Ct(\"*\",!1),wt=function(N){return N},Et=/^[A-Z]/,bt=re([[\"A\",\"Z\"]],!1,!1),Bt=/^[a-z]/,Jt=re([[\"a\",\"z\"]],!1,!1),Ot=function(N){return N.join(\"\")},xt=\"%\",Qt=Ct(\"%\",!1),Ut=/^[1-9]/,Lt=re([[\"1\",\"9\"]],!1,!1),yt=/^[0-9]/,zt=re([[\"0\",\"9\"]],!1,!1),ge=function(N){return N.length==1?Number(N):Number(N.join(\"\").replace(\"%\",\"\"))},se=\"@\",de=Ct(\"@\",!1),Ue=\"TH\",sr=Ct(\"TH\",!1),Xe=/^[12]/,Ye=re([\"1\",\"2\"],!1,!1),je=\"AL\",ar=Ct(\"AL\",!1),qe=\"SP\",or=Ct(\"SP\",!1),Pr=/^[1-3]/,Tr=re([[\"1\",\"3\"]],!1,!1),Ge=\"TB\",lr=Ct(\"TB\",!1),hr=\"OH\",Dr=Ct(\"OH\",!1),ur=function(N){return N[1]?N[1]==\"@\"?\"@@\":N[1].join(\"\").replace(\",\",\"\"):\"@\"},gr=function(N){return N},cr=\"+\",dr=Ct(\"+\",!1),Fr=function(N){return N[1]?N[1]!=\"+\"?Number(N[1].join(\"\")):2:1},fr=\"-\",pr=Ct(\"-\",!1),zr=function(N){return N[1]?N[1]!=\"-\"?-Number(N[1].join(\"\")):-2:-1},Hr=\"H\",Vr=Ct(\"H\",!1),$r=function(N){return N[1]?Number(N[1]):1},_r=\":\",Ur=Ct(\":\",!1),Xr=/^[0]/,Yr=re([\"0\"],!1,!1),mr=function(N){return Number(N[1][0]+N[1][1].join(\"\"))},br=function(N){return Number(N.join(\"\"))},w=0,Rt=0,Ee=[{line:1,column:1}],jt=0,We=[],K=0,Be;if(\"startRule\"in i){if(!(i.startRule in h))throw new Error(`Can't start parsing from rule \"`+i.startRule+'\".');c=h[i.startRule]}function Hi(){return r.substring(Rt,w)}function Vi(){return Ne(Rt,w)}function jr(N,v){throw v=v!==void 0?v:Ne(Rt,w),vr([Wr(N)],r.substring(Rt,w),v)}function $i(N,v){throw v=v!==void 0?v:Ne(Rt,w),Ze(N,v)}function Ct(N,v){return{type:\"literal\",text:N,ignoreCase:v}}function re(N,v,D){return{type:\"class\",parts:N,inverted:v,ignoreCase:D}}function qr(){return{type:\"any\"}}function Gr(){return{type:\"end\"}}function Wr(N){return{type:\"other\",description:N}}function Ke(N){var v=Ee[N],D;if(v)return v;for(D=N-1;!Ee[D];)D--;for(v=Ee[D],v={line:v.line,column:v.column};D<N;)r.charCodeAt(D)===10?(v.line++,v.column=1):v.column++,D++;return Ee[N]=v,v}function Ne(N,v){var D=Ke(N),k=Ke(v);return{start:{offset:N,line:D.line,column:D.column},end:{offset:v,line:k.line,column:k.column}}}function Z(N){w<jt||(w>jt&&(jt=w,We=[]),We.push(N))}function Ze(N,v){return new t(N,null,null,v)}function vr(N,v,D){return new t(t.buildMessage(N,v),N,v,D)}function Oe(){var N,v,D,k,_,Y,Q,Ht,ie,oe;if(N=w,v=w,D=Je(),D!==n){for(k=[],_=be();_!==n;)k.push(_),_=be();if(k!==n){for(_=[],Y=w,Q=ae(),Q===n&&(Q=null),Q!==n?(Ht=Sr(),Ht!==n?(Q=[Q,Ht],Y=Q):(w=Y,Y=n)):(w=Y,Y=n);Y!==n;)_.push(Y),Y=w,Q=ae(),Q===n&&(Q=null),Q!==n?(Ht=Sr(),Ht!==n?(Q=[Q,Ht],Y=Q):(w=Y,Y=n)):(w=Y,Y=n);if(_!==n){for(Y=[],Q=be();Q!==n;)Y.push(Q),Q=be();if(Y!==n)if(Q=ae(),Q===n&&(Q=null),Q!==n)if(Ht=Oe(),Ht===n&&(Ht=null),Ht!==n){for(ie=[],oe=be();oe!==n;)ie.push(oe),oe=be();ie!==n?(D=[D,k,_,Y,Q,Ht,ie],v=D):(w=v,v=n)}else w=v,v=n;else w=v,v=n;else w=v,v=n}else w=v,v=n}else w=v,v=n}else w=v,v=n;return v!==n&&(Rt=N,v=u(v)),N=v,N}function be(){var N,v,D,k,_,Y;return N=w,v=w,r.charCodeAt(w)===40?(D=p,w++):(D=n,K===0&&Z(b)),D!==n?(k=ae(),k===n&&(k=null),k!==n?(_=Oe(),_!==n?(r.charCodeAt(w)===41?(Y=f,w++):(Y=n,K===0&&Z(S)),Y!==n?(D=[D,k,_,Y],v=D):(w=v,v=n)):(w=v,v=n)):(w=v,v=n)):(w=v,v=n),v!==n&&(Rt=N,v=y(v)),N=v,N}function Je(){var N,v;return N=w,v=ve(),v===n&&(v=wr(),v===n&&(v=Qe(),v===n&&(v=yr()))),v!==n&&(Rt=N,v=M(v)),N=v,N}function ae(){var N,v;if(N=w,B.test(r.charAt(w))){if(v=r.charAt(w),v===r.charAt(w+1)&&(v=n,K===0))throw Ze(\"The parser encountered a bond repetition.\",w+1);w++}else v=n,K===0&&Z(E);return v!==n&&(Rt=N,v=P(v)),N=v,N}function Qe(){var N,v,D,k,_,Y,Q,Ht,ie,oe;return N=w,v=w,r.charCodeAt(w)===91?(D=V,w++):(D=n,K===0&&Z(z)),D!==n?(k=ei(),k===n&&(k=null),k!==n?(r.substr(w,2)===T?(_=T,w+=2):(_=n,K===0&&Z(F)),_===n&&(r.substr(w,2)===X?(_=X,w+=2):(_=n,K===0&&Z(J)),_===n&&(_=wr(),_===n&&(_=Kr(),_===n&&(_=yr())))),_!==n?(Y=Zr(),Y===n&&(Y=null),Y!==n?(Q=Qr(),Q===n&&(Q=null),Q!==n?(Ht=xr(),Ht===n&&(Ht=null),Ht!==n?(ie=ti(),ie===n&&(ie=null),ie!==n?(r.charCodeAt(w)===93?(oe=mt,w++):(oe=n,K===0&&Z(Vt)),oe!==n?(D=[D,k,_,Y,Q,Ht,ie,oe],v=D):(w=v,v=n)):(w=v,v=n)):(w=v,v=n)):(w=v,v=n)):(w=v,v=n)):(w=v,v=n)):(w=v,v=n)):(w=v,v=n),v!==n&&(Rt=N,v=At(v)),N=v,N}function ve(){var N,v,D,k;return N=w,v=w,r.charCodeAt(w)===66?(D=Nt,w++):(D=n,K===0&&Z(ee)),D!==n?(r.charCodeAt(w)===114?(k=Kt,w++):(k=n,K===0&&Z(Gt)),k===n&&(k=null),k!==n?(D=[D,k],v=D):(w=v,v=n)):(w=v,v=n),v===n&&(v=w,r.charCodeAt(w)===67?(D=Zt,w++):(D=n,K===0&&Z(ne)),D!==n?(r.charCodeAt(w)===108?(k=kt,w++):(k=n,K===0&&Z(Ft)),k===n&&(k=null),k!==n?(D=[D,k],v=D):(w=v,v=n)):(w=v,v=n),v===n&&(Ae.test(r.charAt(w))?(v=r.charAt(w),w++):(v=n,K===0&&Z(W)))),v!==n&&(Rt=N,v=et(v)),N=v,N}function wr(){var N,v;return N=w,It.test(r.charAt(w))?(v=r.charAt(w),w++):(v=n,K===0&&Z(Pt)),v!==n&&(Rt=N,v=M(v)),N=v,N}function yr(){var N,v;return N=w,r.charCodeAt(w)===42?(v=gt,w++):(v=n,K===0&&Z(Mt)),v!==n&&(Rt=N,v=wt(v)),N=v,N}function Kr(){var N,v,D,k;return N=w,v=w,Et.test(r.charAt(w))?(D=r.charAt(w),w++):(D=n,K===0&&Z(bt)),D!==n?(Bt.test(r.charAt(w))?(k=r.charAt(w),w++):(k=n,K===0&&Z(Jt)),k===n&&(k=null),k!==n?(D=[D,k],v=D):(w=v,v=n)):(w=v,v=n),v!==n&&(Rt=N,v=Ot(v)),N=v,N}function Sr(){var N,v,D,k,_;return N=w,v=w,r.charCodeAt(w)===37?(D=xt,w++):(D=n,K===0&&Z(Qt)),D!==n?(Ut.test(r.charAt(w))?(k=r.charAt(w),w++):(k=n,K===0&&Z(Lt)),k!==n?(yt.test(r.charAt(w))?(_=r.charAt(w),w++):(_=n,K===0&&Z(zt)),_!==n?(D=[D,k,_],v=D):(w=v,v=n)):(w=v,v=n)):(w=v,v=n),v===n&&(yt.test(r.charAt(w))?(v=r.charAt(w),w++):(v=n,K===0&&Z(zt))),v!==n&&(Rt=N,v=ge(v)),N=v,N}function Zr(){var N,v,D,k,_,Y,Q;return N=w,v=w,r.charCodeAt(w)===64?(D=se,w++):(D=n,K===0&&Z(de)),D!==n?(r.charCodeAt(w)===64?(k=se,w++):(k=n,K===0&&Z(de)),k===n&&(k=w,r.substr(w,2)===Ue?(_=Ue,w+=2):(_=n,K===0&&Z(sr)),_!==n?(Xe.test(r.charAt(w))?(Y=r.charAt(w),w++):(Y=n,K===0&&Z(Ye)),Y!==n?(_=[_,Y],k=_):(w=k,k=n)):(w=k,k=n),k===n&&(k=w,r.substr(w,2)===je?(_=je,w+=2):(_=n,K===0&&Z(ar)),_!==n?(Xe.test(r.charAt(w))?(Y=r.charAt(w),w++):(Y=n,K===0&&Z(Ye)),Y!==n?(_=[_,Y],k=_):(w=k,k=n)):(w=k,k=n),k===n&&(k=w,r.substr(w,2)===qe?(_=qe,w+=2):(_=n,K===0&&Z(or)),_!==n?(Pr.test(r.charAt(w))?(Y=r.charAt(w),w++):(Y=n,K===0&&Z(Tr)),Y!==n?(_=[_,Y],k=_):(w=k,k=n)):(w=k,k=n),k===n&&(k=w,r.substr(w,2)===Ge?(_=Ge,w+=2):(_=n,K===0&&Z(lr)),_!==n?(Ut.test(r.charAt(w))?(Y=r.charAt(w),w++):(Y=n,K===0&&Z(Lt)),Y!==n?(yt.test(r.charAt(w))?(Q=r.charAt(w),w++):(Q=n,K===0&&Z(zt)),Q===n&&(Q=null),Q!==n?(_=[_,Y,Q],k=_):(w=k,k=n)):(w=k,k=n)):(w=k,k=n),k===n&&(k=w,r.substr(w,2)===hr?(_=hr,w+=2):(_=n,K===0&&Z(Dr)),_!==n?(Ut.test(r.charAt(w))?(Y=r.charAt(w),w++):(Y=n,K===0&&Z(Lt)),Y!==n?(yt.test(r.charAt(w))?(Q=r.charAt(w),w++):(Q=n,K===0&&Z(zt)),Q===n&&(Q=null),Q!==n?(_=[_,Y,Q],k=_):(w=k,k=n)):(w=k,k=n)):(w=k,k=n)))))),k===n&&(k=null),k!==n?(D=[D,k],v=D):(w=v,v=n)):(w=v,v=n),v!==n&&(Rt=N,v=ur(v)),N=v,N}function xr(){var N,v;return N=w,v=Cr(),v===n&&(v=Jr()),v!==n&&(Rt=N,v=gr(v)),N=v,N}function Cr(){var N,v,D,k,_,Y;return N=w,v=w,r.charCodeAt(w)===43?(D=cr,w++):(D=n,K===0&&Z(dr)),D!==n?(r.charCodeAt(w)===43?(k=cr,w++):(k=n,K===0&&Z(dr)),k===n&&(k=w,Ut.test(r.charAt(w))?(_=r.charAt(w),w++):(_=n,K===0&&Z(Lt)),_!==n?(yt.test(r.charAt(w))?(Y=r.charAt(w),w++):(Y=n,K===0&&Z(zt)),Y===n&&(Y=null),Y!==n?(_=[_,Y],k=_):(w=k,k=n)):(w=k,k=n)),k===n&&(k=null),k!==n?(D=[D,k],v=D):(w=v,v=n)):(w=v,v=n),v!==n&&(Rt=N,v=Fr(v)),N=v,N}function Jr(){var N,v,D,k,_,Y;return N=w,v=w,r.charCodeAt(w)===45?(D=fr,w++):(D=n,K===0&&Z(pr)),D!==n?(r.charCodeAt(w)===45?(k=fr,w++):(k=n,K===0&&Z(pr)),k===n&&(k=w,Ut.test(r.charAt(w))?(_=r.charAt(w),w++):(_=n,K===0&&Z(Lt)),_!==n?(yt.test(r.charAt(w))?(Y=r.charAt(w),w++):(Y=n,K===0&&Z(zt)),Y===n&&(Y=null),Y!==n?(_=[_,Y],k=_):(w=k,k=n)):(w=k,k=n)),k===n&&(k=null),k!==n?(D=[D,k],v=D):(w=v,v=n)):(w=v,v=n),v!==n&&(Rt=N,v=zr(v)),N=v,N}function Qr(){var N,v,D,k;return N=w,v=w,r.charCodeAt(w)===72?(D=Hr,w++):(D=n,K===0&&Z(Vr)),D!==n?(yt.test(r.charAt(w))?(k=r.charAt(w),w++):(k=n,K===0&&Z(zt)),k===n&&(k=null),k!==n?(D=[D,k],v=D):(w=v,v=n)):(w=v,v=n),v!==n&&(Rt=N,v=$r(v)),N=v,N}function ti(){var N,v,D,k,_,Y,Q;if(N=w,v=w,r.charCodeAt(w)===58?(D=_r,w++):(D=n,K===0&&Z(Ur)),D!==n){if(k=w,Ut.test(r.charAt(w))?(_=r.charAt(w),w++):(_=n,K===0&&Z(Lt)),_!==n){for(Y=[],yt.test(r.charAt(w))?(Q=r.charAt(w),w++):(Q=n,K===0&&Z(zt));Q!==n;)Y.push(Q),yt.test(r.charAt(w))?(Q=r.charAt(w),w++):(Q=n,K===0&&Z(zt));Y!==n?(_=[_,Y],k=_):(w=k,k=n)}else w=k,k=n;k===n&&(Xr.test(r.charAt(w))?(k=r.charAt(w),w++):(k=n,K===0&&Z(Yr))),k!==n?(D=[D,k],v=D):(w=v,v=n)}else w=v,v=n;return v!==n&&(Rt=N,v=mr(v)),N=v,N}function ei(){var N,v,D,k,_;return N=w,v=w,Ut.test(r.charAt(w))?(D=r.charAt(w),w++):(D=n,K===0&&Z(Lt)),D!==n?(yt.test(r.charAt(w))?(k=r.charAt(w),w++):(k=n,K===0&&Z(zt)),k===n&&(k=null),k!==n?(yt.test(r.charAt(w))?(_=r.charAt(w),w++):(_=n,K===0&&Z(zt)),_===n&&(_=null),_!==n?(D=[D,k,_],v=D):(w=v,v=n)):(w=v,v=n)):(w=v,v=n),v!==n&&(Rt=N,v=br(v)),N=v,N}if(Be=c(),Be!==n&&w===r.length)return Be;throw Be!==n&&w<r.length&&Z(Gr()),vr(We,jt<r.length?r.charAt(jt):null,jt<r.length?Ne(jt,jt+1):Ne(jt,jt))}return{SyntaxError:t,parse:e}})(),Di=class{static parse(d){return _e.parse(d)}};Di.SyntaxError=_e.SyntaxError;var Wn={C2H4O2:\"acetic acid\",C3H6O:\"acetone\",C2H3N:\"acetonitrile\",C6H6:\"benzene\",CCl4:\"carbon tetrachloride\",C6H5Cl:\"chlorobenzene\",CHCl3:\"chloroform\",C6H12:\"cyclohexane\",C2H4Cl2:\"1,2-dichloroethane\",C4H10O3:\"diethylene glycol\",C6H14O3:\"diglyme\",C4H10O2:\"DME\",C3H7NO:\"DMF\",C2H6OS:\"DMSO\",C2H6O:\"ethanol\",C2H6O2:\"ethylene glycol\",C3H8O3:\"glycerin\",C7H16:\"heptane\",C6H18N3OP:\"HMPA\",C6H18N3P:\"HMPT\",C6H14:\"hexane\",CH4O:\"methanol\",C5H12O:\"MTBE\",CH2Cl2:\"methylene chloride\",CH5H9NO:\"NMP\",CH3NO2:\"nitromethane\",C5H12:\"pentane\",C5H5N:\"pyridine\",C7H8:\"toluene\",C6H15N:\"triethyl amine\",H2O:\"water\"},us=class{constructor(d,t){this.drawer=new Lr(t),this.molOpts=this.drawer.opts,this.defaultOptions={scale:this.molOpts.scale>0?this.molOpts.scale:1,fontSize:this.molOpts.fontSizeLarge*.8,fontFamily:\"Arial, Helvetica, sans-serif\",spacing:10,plus:{size:9,thickness:1},arrow:{length:this.molOpts.bondLength*4,headSize:6,thickness:1,margin:3},weights:{normalize:!1}},this.opts=Ti.extend(!0,this.defaultOptions,d)}draw(d,t,e=\"light\",r=null,i=\"{reagents}\",s=\"\",o=!1){if(this.themeManager=new Pi(this.molOpts.themes,e),this.opts.weights.normalize){let E=-Number.MAX_SAFE_INTEGER,P=Number.MAX_SAFE_INTEGER;if(\"reactants\"in r)for(let z=0;z<r.reactants.length;z++)for(let T=0;T<r.reactants[z].length;T++)r.reactants[z][T]<P&&(P=r.reactants[z][T]),r.reactants[z][T]>E&&(E=r.reactants[z][T]);if(\"reagents\"in r)for(let z=0;z<r.reagents.length;z++)for(let T=0;T<r.reagents[z].length;T++)r.reagents[z][T]<P&&(P=r.reagents[z][T]),r.reagents[z][T]>E&&(E=r.reagents[z][T]);if(\"products\"in r)for(let z=0;z<r.products.length;z++)for(let T=0;T<r.products[z].length;T++)r.products[z][T]<P&&(P=r.products[z][T]),r.products[z][T]>E&&(E=r.products[z][T]);let V=Math.max(Math.abs(P),Math.abs(E));if(V===0&&(V=1),\"reactants\"in r)for(let z=0;z<r.reactants.length;z++)for(let T=0;T<r.reactants[z].length;T++)r.reactants[z][T]/=V;if(\"reagents\"in r)for(let z=0;z<r.reagents.length;z++)for(let T=0;T<r.reagents[z].length;T++)r.reagents[z][T]/=V;if(\"products\"in r)for(let z=0;z<r.products.length;z++)for(let T=0;T<r.products[z].length;T++)r.products[z][T]/=V}let n=null;for(t===null||t===\"svg\"?(n=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\"),n.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),n.setAttributeNS(null,\"width\",\"500\"),n.setAttributeNS(null,\"height\",\"500\")):typeof t==\"string\"||t instanceof String?n=document.getElementById(t):n=t;n.firstChild;)n.removeChild(n.firstChild);let h=[],c=0;for(let E=0;E<d.reactants.length;E++){E>0&&h.push({width:this.opts.plus.size*this.opts.scale,height:this.opts.plus.size*this.opts.scale,svg:this.getPlus()});let P=null;r&&\"reactants\"in r&&r.reactants.length>E&&(P=r.reactants[E]);let V=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");this.drawer.draw(d.reactants[E],V,e,P,o,[],this.opts.weights.normalize);let z={width:V.viewBox.baseVal.width*this.opts.scale,height:V.viewBox.baseVal.height*this.opts.scale,svg:V};h.push(z),z.height>c&&(c=z.height)}h.push({width:this.opts.arrow.length*this.opts.scale,height:this.opts.arrow.headSize*this.opts.scale*2,svg:this.getArrow()});let u=\"\";for(let E=0;E<d.reagents.length;E++){E>0&&(u+=\", \");let P=this.drawer.getMolecularFormula(d.reagents[E]);P in Wn&&(P=Wn[P]),u+=$e.replaceNumbersWithSubscript(P)}i=i.replace(\"{reagents}\",u);let p=$e.writeText(i,this.themeManager,this.opts.fontSize*this.opts.scale,this.opts.fontFamily,this.opts.arrow.length*this.opts.scale),b=(this.opts.arrow.length*this.opts.scale-p.width)/2;h.push({svg:p.svg,height:p.height,width:p.width,offsetX:-(this.opts.arrow.length*this.opts.scale+this.opts.spacing)+b,offsetY:-(p.height/2)-this.opts.arrow.margin,position:\"relative\"});let f=$e.writeText(s,this.themeManager,this.opts.fontSize*this.opts.scale,this.opts.fontFamily,this.opts.arrow.length*this.opts.scale);b=(this.opts.arrow.length*this.opts.scale-f.width)/2,h.push({svg:f.svg,height:f.height,width:f.width,offsetX:-(this.opts.arrow.length*this.opts.scale+this.opts.spacing)+b,offsetY:f.height/2+this.opts.arrow.margin,position:\"relative\"});for(let E=0;E<d.products.length;E++){E>0&&h.push({width:this.opts.plus.size*this.opts.scale,height:this.opts.plus.size*this.opts.scale,svg:this.getPlus()});let P=null;r&&\"products\"in r&&r.products.length>E&&(P=r.products[E]);let V=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");this.drawer.draw(d.products[E],V,e,P,o,[],this.opts.weights.normalize);let z={width:V.viewBox.baseVal.width*this.opts.scale,height:V.viewBox.baseVal.height*this.opts.scale,svg:V};h.push(z),z.height>c&&(c=z.height)}let S=0,y=0,M=0;h.forEach(E=>{let P=E.offsetX||0,V=E.offsetY||0,z=(c-E.height)/2+V;y=Math.max(y,z+E.height),S=Math.min(S,z),E.svg.setAttributeNS(null,\"x\",Math.round(M+P)),E.svg.setAttributeNS(null,\"y\",Math.round(z)),E.svg.setAttributeNS(null,\"width\",Math.round(E.width)),E.svg.setAttributeNS(null,\"height\",Math.round(E.height)),n.appendChild(E.svg),E.position!==\"relative\"&&(M+=Math.round(E.width+this.opts.spacing+P))});let B=Math.max(c,y-S);return n.setAttributeNS(null,\"viewBox\",`0 ${S} ${M} ${B}`),n.style.width=M+\"px\",n.style.height=c+\"px\",n}getPlus(){let d=this.opts.plus.size,t=this.opts.plus.thickness,e=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\"),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\"),i=document.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\");return e.setAttributeNS(null,\"id\",\"plus\"),r.setAttributeNS(null,\"x\",0),r.setAttributeNS(null,\"y\",d/2-t/2),r.setAttributeNS(null,\"width\",d),r.setAttributeNS(null,\"height\",t),r.setAttributeNS(null,\"fill\",this.themeManager.getColor(\"C\")),i.setAttributeNS(null,\"x\",d/2-t/2),i.setAttributeNS(null,\"y\",0),i.setAttributeNS(null,\"width\",t),i.setAttributeNS(null,\"height\",d),i.setAttributeNS(null,\"fill\",this.themeManager.getColor(\"C\")),e.appendChild(r),e.appendChild(i),e.setAttributeNS(null,\"viewBox\",`0 0 ${d} ${d}`),e}getArrowhead(){let d=this.opts.arrow.headSize,t=document.createElementNS(\"http://www.w3.org/2000/svg\",\"marker\"),e=document.createElementNS(\"http://www.w3.org/2000/svg\",\"polygon\");return t.setAttributeNS(null,\"id\",\"arrowhead\"),t.setAttributeNS(null,\"viewBox\",`0 0 ${d} ${d}`),t.setAttributeNS(null,\"markerUnits\",\"userSpaceOnUse\"),t.setAttributeNS(null,\"markerWidth\",d),t.setAttributeNS(null,\"markerHeight\",d),t.setAttributeNS(null,\"refX\",0),t.setAttributeNS(null,\"refY\",d/2),t.setAttributeNS(null,\"orient\",\"auto\"),t.setAttributeNS(null,\"fill\",this.themeManager.getColor(\"C\")),e.setAttributeNS(null,\"points\",`0 0, ${d} ${d/2}, 0 ${d}`),t.appendChild(e),t}getCDArrowhead(){let d=this.opts.arrow.headSize,t=d*(7/4.5),e=document.createElementNS(\"http://www.w3.org/2000/svg\",\"marker\"),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return e.setAttributeNS(null,\"id\",\"arrowhead\"),e.setAttributeNS(null,\"viewBox\",`0 0 ${t} ${d}`),e.setAttributeNS(null,\"markerUnits\",\"userSpaceOnUse\"),e.setAttributeNS(null,\"markerWidth\",t*2),e.setAttributeNS(null,\"markerHeight\",d*2),e.setAttributeNS(null,\"refX\",2.2),e.setAttributeNS(null,\"refY\",2.2),e.setAttributeNS(null,\"orient\",\"auto\"),e.setAttributeNS(null,\"fill\",this.themeManager.getColor(\"C\")),r.setAttributeNS(null,\"style\",\"fill-rule:nonzero;\"),r.setAttributeNS(null,\"d\",\"m 0 0 l 7 2.25 l -7 2.25 c 0 0 0.735 -1.084 0.735 -2.28 c 0 -1.196 -0.735 -2.22 -0.735 -2.22 z\"),e.appendChild(r),e}getArrow(){let d=this.opts.arrow.headSize,t=this.opts.arrow.length,e=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\"),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"defs\"),i=document.createElementNS(\"http://www.w3.org/2000/svg\",\"line\");return r.appendChild(this.getCDArrowhead()),e.appendChild(r),e.setAttributeNS(null,\"id\",\"arrow\"),i.setAttributeNS(null,\"x1\",0),i.setAttributeNS(null,\"y1\",-this.opts.arrow.thickness/2),i.setAttributeNS(null,\"x2\",t),i.setAttributeNS(null,\"y2\",-this.opts.arrow.thickness/2),i.setAttributeNS(null,\"stroke-width\",this.opts.arrow.thickness),i.setAttributeNS(null,\"stroke\",this.themeManager.getColor(\"C\")),i.setAttributeNS(null,\"marker-end\",\"url(#arrowhead)\"),e.appendChild(i),e.setAttributeNS(null,\"viewBox\",`0 ${-d/2} ${t+d*(7/4.5)} ${d}`),e}},Wl=class{constructor(d){this.reactantsSmiles=[],this.reagentsSmiles=[],this.productsSmiles=[],this.reactantsWeights=[],this.reagentsWeights=[],this.productsWeights=[],this.reactants=[],this.reagents=[],this.products=[];let t=d.split(\">\");if(t.length!==3)throw new Error('Invalid reaction SMILES: Expected exactly two \">\" symbols.');t[0]!==\"\"&&(this.reactantsSmiles=t[0].split(\".\")),t[1]!==\"\"&&(this.reagentsSmiles=t[1].split(\".\")),t[2]!==\"\"&&(this.productsSmiles=t[2].split(\".\"));for(let e=0;e<this.reactantsSmiles.length;e++)this.reactants.push(_e.parse(this.reactantsSmiles[e]));for(let e=0;e<this.reagentsSmiles.length;e++)this.reagents.push(_e.parse(this.reagentsSmiles[e]));for(let e=0;e<this.productsSmiles.length;e++)this.products.push(_e.parse(this.productsSmiles[e]))}},Fi=class{static parse(d){return new Wl(d)}},gs=class Oi{constructor(t={},e={}){this.drawer=new Lr(t),this.reactionDrawer=new us(e,JSON.parse(JSON.stringify(this.drawer.opts)))}static apply(t={},e={},r=\"data-smiles\",i=\"light\",s=null,o=null){new Oi(t,e).apply(r,i,s,o)}apply(t=\"data-smiles\",e=\"light\",r=null,i=null){document.querySelectorAll(`[${t}]`).forEach(s=>{let o=s.getAttribute(t);if(o===null)throw Error(\"No SMILES provided.\");let n=e,h=null;if(s.hasAttribute(\"data-smiles-theme\")&&(n=s.getAttribute(\"data-smiles-theme\")),s.hasAttribute(\"data-smiles-weights\")&&(h=s.getAttribute(\"data-smiles-weights\").split(\",\").map(parseFloat)),(s.hasAttribute(\"data-smiles-reactant-weights\")||s.hasAttribute(\"data-smiles-reagent-weights\")||s.hasAttribute(\"data-smiles-product-weights\"))&&(h={reactants:[],reagents:[],products:[]},s.hasAttribute(\"data-smiles-reactant-weights\")&&(h.reactants=s.getAttribute(\"data-smiles-reactant-weights\").split(\";\").map(c=>c.split(\",\").map(parseFloat))),s.hasAttribute(\"data-smiles-reagent-weights\")&&(h.reagents=s.getAttribute(\"data-smiles-reagent-weights\").split(\";\").map(c=>c.split(\",\").map(parseFloat))),s.hasAttribute(\"data-smiles-product-weights\")&&(h.products=s.getAttribute(\"data-smiles-product-weights\").split(\";\").map(c=>c.split(\",\").map(parseFloat)))),s.hasAttribute(\"data-smiles-options\")||s.hasAttribute(\"data-smiles-reaction-options\")){let c={};if(s.hasAttribute(\"data-smiles-options\")){let p=s.getAttribute(\"data-smiles-options\");try{c=JSON.parse(p)}catch{c=JSON.parse(p.replace(/'/g,'\"'))}}let u={};if(s.hasAttribute(\"data-smiles-reaction-options\")){let p=s.getAttribute(\"data-smiles-reaction-options\");try{u=JSON.parse(p)}catch{u=JSON.parse(p.replace(/'/g,'\"'))}}new Oi(c,u).draw(o,s,n,r,i,h)}else this.draw(o,s,n,r,i,h)})}draw(t,e,r=\"light\",i=null,s=null,o=null){let n=[];[t,...n]=t.split(\" \");let h=n.join(\" \"),c={};if(h.includes(\"__\")){let p=h.substring(h.indexOf(\"__\")+2,h.lastIndexOf(\"__\"));try{c=JSON.parse(p)}catch{c=JSON.parse(p.replace(/'/g,'\"'))}}let u={textAboveArrow:\"{reagents}\",textBelowArrow:\"\"};if(c=Ti.extend(!0,u,c),t.includes(\">\"))try{this.drawReaction(t,e,r,c,o,i)}catch(p){s?s(p):console.error(p)}else try{this.drawMolecule(t,e,r,o,i)}catch(p){s?s(p):console.error(p)}}drawMolecule(t,e,r,i,s){let o=_e.parse(t);if(e===null||e===\"svg\"){let n=this.drawer.draw(o,null,r,i),h=this.getDimensions(n);n.setAttributeNS(null,\"width\",\"\"+h.w),n.setAttributeNS(null,\"height\",\"\"+h.h),s&&s(n)}else if(e===\"canvas\"){let n=this.svgToCanvas(this.drawer.draw(o,null,r,i));s&&s(n)}else if(e===\"img\"){let n=this.svgToImg(this.drawer.draw(o,null,r,i));s&&s(n)}else e instanceof HTMLImageElement?(this.svgToImg(this.drawer.draw(o,null,r,i),e),s&&s(e)):e instanceof SVGElement?(this.drawer.draw(o,e,r,i),s&&s(e)):document.querySelectorAll(e).forEach(n=>{let h=n.nodeName.toLowerCase();h===\"svg\"?(this.drawer.draw(o,n,r,i),s&&s(n)):h===\"canvas\"?(this.svgToCanvas(this.drawer.draw(o,null,r,i),n),s&&s(n)):h===\"img\"&&(this.svgToImg(this.drawer.draw(o,null,r,i),n),s&&s(n))})}drawReaction(t,e,r,i,s,o){let n=Fi.parse(t);if(e===null||e===\"svg\"){let h=this.reactionDrawer.draw(n,null,r),c=this.getDimensions(h);h.setAttributeNS(null,\"width\",\"\"+c.w),h.setAttributeNS(null,\"height\",\"\"+c.h),o&&o(h)}else if(e===\"canvas\"){let h=this.svgToCanvas(this.reactionDrawer.draw(n,null,r,s,i.textAboveArrow,i.textBelowArrow));o&&o(h)}else if(e===\"img\"){let h=this.svgToImg(this.reactionDrawer.draw(n,null,r,s,i.textAboveArrow,i.textBelowArrow));o&&o(h)}else e instanceof HTMLImageElement?(this.svgToImg(this.reactionDrawer.draw(n,null,r,s,i.textAboveArrow,i.textBelowArrow),e),o&&o(e)):e instanceof SVGElement?(this.reactionDrawer.draw(n,e,r,s,i.textAboveArrow,i.textBelowArrow),o&&o(e)):document.querySelectorAll(e).forEach(h=>{let c=h.nodeName.toLowerCase();c===\"svg\"?(this.reactionDrawer.draw(n,h,r,s,i.textAboveArrow,i.textBelowArrow),this.reactionDrawer.opts.scale<=0&&(h.style.width=null,h.style.height=null),o&&o(h)):c===\"canvas\"?(this.svgToCanvas(this.reactionDrawer.draw(n,null,r,s,i.textAboveArrow,i.textBelowArrow),h),o&&o(h)):c===\"img\"&&(this.svgToImg(this.reactionDrawer.draw(n,null,r,s,i.textAboveArrow,i.textBelowArrow),h),o&&o(h))})}svgToCanvas(t,e=null){e===null&&(e=document.createElement(\"canvas\"));let r=this.getDimensions(e,t);return $e.svgToCanvas(t,e,r.w,r.h),e}svgToImg(t,e=null){e===null&&(e=document.createElement(\"img\"));let r=this.getDimensions(e,t);return $e.svgToImg(t,e,r.w,r.h),e}getDimensions(t,e=null){let r=this.drawer.opts.width,i=this.drawer.opts.height;return this.drawer.opts.scale<=0?(t instanceof SVGElement||(r===null&&(r=t.width),i===null&&(i=t.height)),t.style.width!==\"\"&&(r=parseInt(t.style.width)),t.style.height!==\"\"&&(i=parseInt(t.style.height))):e&&(r=parseFloat(e.style.width),i=parseFloat(e.style.height)),{w:r,h:i}}},me=class cs{static clean(t){return t.replace(/[^A-Za-z0-9@.+\\-?!()[\\]{}/\\\\=#$:*]/g,\"\")}static apply(t,e=\"canvas[data-smiles]\",r=\"light\",i){let s=new hs(t),o=document.querySelectorAll(e);for(let n=0;n<o.length;n++){let h=o[n];cs.parse(h.getAttribute(\"data-smiles\"),function(c){s.draw(c,h,r,!1)},function(c){i&&i(c)})}}static parse(t,e,r){try{e&&e(Di.parse(t))}catch(i){r&&r(i)}}static parseReaction(t,e,r){try{e&&e(Fi.parse(t))}catch(i){r&&r(i)}}};me.Version=\"2.4.1\",me.Drawer=hs,me.GaussDrawer=ls,me.Parser=Di,me.ReactionDrawer=us,me.ReactionParser=Fi,me.SmiDrawer=gs,me.SvgDrawer=Lr;var zi=me;typeof window<\"u\"&&window.document&&window.document.createElement&&(window.SmilesDrawer=zi,window.SmiDrawer=gs);/*! Bundled license information:\n\nchroma-js/chroma.js:\n  (**\n   * chroma.js - JavaScript library for color conversions\n   *\n   * Copyright (c) 2011-2019, Gregor Aisch\n   * All rights reserved.\n   *\n   * Redistribution and use in source and binary forms, with or without\n   * modification, are permitted provided that the following conditions are met:\n   *\n   * 1. Redistributions of source code must retain the above copyright notice, this\n   * list of conditions and the following disclaimer.\n   *\n   * 2. Redistributions in binary form must reproduce the above copyright notice,\n   * this list of conditions and the following disclaimer in the documentation\n   * and/or other materials provided with the distribution.\n   *\n   * 3. The name Gregor Aisch may not be used to endorse or promote products\n   * derived from this software without specific prior written permission.\n   *\n   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n   * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\n   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n   * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n   * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n   * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\n   * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n   *\n   * -------------------------------------------------------\n   *\n   * chroma.js includes colors from colorbrewer2.org, which are released under\n   * the following license:\n   *\n   * Copyright (c) 2002 Cynthia Brewer, Mark Harrower,\n   * and The Pennsylvania State University.\n   *\n   * Licensed under the Apache License, Version 2.0 (the \"License\");\n   * you may not use this file except in compliance with the License.\n   * You may obtain a copy of the License at\n   * http://www.apache.org/licenses/LICENSE-2.0\n   *\n   * Unless required by applicable law or agreed to in writing,\n   * software distributed under the License is distributed on an\n   * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\n   * either express or implied. See the License for the specific\n   * language governing permissions and limitations under the License.\n   *\n   * ------------------------------------------------------\n   *\n   * Named colors are taken from X11 Color Names.\n   * http://www.w3.org/TR/css3-color/#svg-color\n   *\n   * @preserve\n   *)\n*/return xl(Kl);})();\n;window.Bibliotecas=window.Bibliotecas||{};window.Bibliotecas[\"smiles-drawer\"]=_bibliotecaMethods;})();\n",
  "vendor/smiles-drawer/LICENSE": "===== smiles-drawer =====\nMIT License\r\n\r\nCopyright (c) 2017 GDB / Reymond Research Group\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n",
  "vendor/smiles-drawer/package.json": "{\n  \"name\": \"smiles-drawer\",\n  \"version\": \"2.4.1\",\n  \"description\": \"A SMILES drawer and parser. Generate molecular structure depictions in pure JavaScript.\",\n  \"exports\": {\n    \".\": {\n      \"types\": \"./dist/types/app.d.ts\",\n      \"import\": \"./dist/smiles-drawer.min.mjs\",\n      \"default\": \"./dist/smiles-drawer.min.js\"\n    }\n  },\n  \"main\": \"./dist/smiles-drawer.min.js\",\n  \"module\": \"./dist/smiles-drawer.min.mjs\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/reymond-group/smilesDrawer.git\"\n  },\n  \"author\": \"Daniel Probst, Reymond Group, University of Berne\",\n  \"license\": \"MIT\",\n  \"private\": false,\n  \"devDependencies\": {\n    \"@stylistic/eslint-plugin\": \"^5.6.1\",\n    \"esbuild\": \"^0.28.1\",\n    \"eslint\": \"^9.39.1\",\n    \"jsdom\": \"^26.1.0\",\n    \"typescript\": \"^5.8.2\",\n    \"typescript-eslint\": \"^8.61.1\",\n    \"vitest\": \"^4.1.9\"\n  },\n  \"dependencies\": {\n    \"chroma-js\": \"^2.4.2\"\n  },\n  \"scripts\": {\n    \"build\": \"node ./scripts/build.mjs\",\n    \"lint\": \"npm exec -- eslint\",\n    \"minify\": \"node ./scripts/minify.mjs\",\n    \"release\": \"npm run typedefs && node ./scripts/release.mjs\",\n    \"typecheck\": \"npm exec -- tsc --noEmit\",\n    \"typedefs\": \"npm exec -- tsc --emitDeclarationOnly\",\n    \"watch\": \"node ./scripts/watch.mjs\",\n    \"test:ci\": \"npm exec -- vitest run test/unit test/regression test/formula-reference test/stereo-reference\",\n    \"test:formulae\": \"npm exec -- vitest run test/formula-reference\",\n    \"test:stereo\": \"npm exec -- vitest run test/stereo-reference\",\n    \"test:unit\": \"npm exec -- vitest run test/unit test/regression\"\n  }\n}\n",
  "vendor/@citation-js/core/erlen-bundle.js": "(function(){var _bibliotecaMethods=(()=>{var gi=Object.create;var ze=Object.defineProperty;var Ei=Object.getOwnPropertyDescriptor;var Ai=Object.getOwnPropertyNames;var yi=Object.getPrototypeOf,Ci=Object.prototype.hasOwnProperty;var U=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},P=(e,t)=>{for(var r in t)ze(e,r,{get:t[r],enumerable:!0})},zr=(e,t,r,n)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let o of Ai(t))!Ci.call(e,o)&&o!==r&&ze(e,o,{get:()=>t[o],enumerable:!(n=Ei(t,o))||n.enumerable});return e};var J=(e,t,r)=>(r=e!=null?gi(yi(e)):{},zr(t||!e||!e.__esModule?ze(r,\"default\",{value:e,enumerable:!0}):r,e)),Ti=e=>zr(ze({},\"__esModule\",{value:!0}),e);var an=U(Y=>{\"use strict\";Object.defineProperty(Y,\"__esModule\",{value:!0});Y.default=Y.parse=Y.types=Y.scope=void 0;function nn(e,t){return Ui(e)||Fi(e,t)||ki()}function ki(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}function Fi(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(E){o=!0,i=E}finally{try{!n&&s.return!=null&&s.return()}finally{if(o)throw i}}return r}function Ui(e){if(Array.isArray(e))return e}var on=e=>e.replace(/$|( )|(?!^)(?=[A-Z])/g,\"\\\\.?$1\"),$t=e=>`(?:${e.join(\"|\")})\\\\b`,Jt=(e,t)=>new RegExp(`(?:^| )(${e}$)`,t),ji=[\"mr\",\"mrs\",\"ms\",\"miss\",\"dr\",\"herr\",\"monsieur\",\"hr\",\"frau\",\"a v m\",\"admiraal\",\"admiral\",\"air cdre\",\"air commodore\",\"air marshal\",\"air vice marshal\",\"alderman\",\"alhaji\",\"ambassador\",\"baron\",\"barones\",\"brig\",\"brig gen\",\"brig general\",\"brigadier\",\"brigadier general\",\"brother\",\"canon\",\"capt\",\"captain\",\"cardinal\",\"cdr\",\"chief\",\"cik\",\"cmdr\",\"coach\",\"col\",\"col dr\",\"colonel\",\"commandant\",\"commander\",\"commissioner\",\"commodore\",\"comte\",\"comtessa\",\"congressman\",\"conseiller\",\"consul\",\"conte\",\"contessa\",\"corporal\",\"councillor\",\"count\",\"countess\",\"crown prince\",\"crown princess\",\"dame\",\"datin\",\"dato\",\"datuk\",\"datuk seri\",\"deacon\",\"deaconess\",\"dean\",\"dhr\",\"dipl ing\",\"doctor\",\"dott\",\"dott sa\",\"dr\",\"dr ing\",\"dra\",\"drs\",\"embajador\",\"embajadora\",\"en\",\"encik\",\"eng\",\"eur ing\",\"exma sra\",\"exmo sr\",\"f o\",\"father\",\"first lieutient\",\"first officer\",\"flt lieut\",\"flying officer\",\"fr\",\"frau\",\"fraulein\",\"fru\",\"gen\",\"generaal\",\"general\",\"governor\",\"graaf\",\"gravin\",\"group captain\",\"grp capt\",\"h e dr\",\"h h\",\"h m\",\"h r h\",\"hajah\",\"haji\",\"hajim\",\"her highness\",\"her majesty\",\"herr\",\"high chief\",\"his highness\",\"his holiness\",\"his majesty\",\"hon\",\"hr\",\"hra\",\"ing\",\"ir\",\"jonkheer\",\"judge\",\"justice\",\"khun ying\",\"kolonel\",\"lady\",\"lcda\",\"lic\",\"lieut\",\"lieut cdr\",\"lieut col\",\"lieut gen\",\"lord\",\"m\",\"m l\",\"m r\",\"madame\",\"mademoiselle\",\"maj gen\",\"major\",\"master\",\"mevrouw\",\"miss\",\"mlle\",\"mme\",\"monsieur\",\"monsignor\",\"mr\",\"mrs\",\"ms\",\"mstr\",\"nti\",\"pastor\",\"president\",\"prince\",\"princess\",\"princesse\",\"prinses\",\"prof\",\"prof dr\",\"prof sir\",\"professor\",\"puan\",\"puan sri\",\"rabbi\",\"rear admiral\",\"rev\",\"rev canon\",\"rev dr\",\"rev mother\",\"reverend\",\"rva\",\"senator\",\"sergeant\",\"sheikh\",\"sheikha\",\"sig\",\"sig na\",\"sig ra\",\"sir\",\"sister\",\"sqn ldr\",\"sr\",\"sr d\",\"sra\",\"srta\",\"sultan\",\"tan sri\",\"tan sri dato\",\"tengku\",\"teuku\",\"than puying\",\"the hon dr\",\"the hon justice\",\"the hon miss\",\"the hon mr\",\"the hon mrs\",\"the hon ms\",\"the hon sir\",\"the very rev\",\"toh puan\",\"tun\",\"vice admiral\",\"viscount\",\"viscountess\",\"wg cdr\"],Gi=[\"I\",\"II\",\"III\",\"IV\",\"V\",\"Senior\",\"Junior\",\"Jr\",\"Sr\",\"PhD\",\"Ph\\\\.D\",\"APR\",\"RPh\",\"PE\",\"MD\",\"MA\",\"DMD\",\"CME\",\"BVM\",\"CFRE\",\"CLU\",\"CPA\",\"CSC\",\"CSJ\",\"DC\",\"DD\",\"DDS\",\"DO\",\"DVM\",\"EdD\",\"Esq\",\"JD\",\"LLD\",\"OD\",\"OSB\",\"PC\",\"Ret\",\"RGS\",\"RN\",\"RNC\",\"SHCJ\",\"SJ\",\"SNJM\",\"SSMO\",\"USA\",\"USAF\",\"USAFR\",\"USAR\",\"USCG\",\"USMC\",\"USMCR\",\"USN\",\"USNR\"],_i=[\"Vere\",\"Von\",\"Van\",\"De\",\"Del\",\"Della\",\"Di\",\"Da\",\"Pietro\",\"Vanden\",\"Du\",\"St.\",\"St\",\"La\",\"Lo\",\"Ter\",\"O\",\"O'\",\"Mac\",\"Fitz\"],Yi=$t(ji.map(on)),Kt=$t(Gi.map(on)),Hi=$t(_i),Ki=new RegExp(`^((?:${Yi} )*)(.*)$`,\"i\"),$i=Jt(`(?:${Kt}, )*(?:${Kt})`,\"i\"),Ji=Jt(`${/(?:[A-Z\\xC0-\\xD6\\xD8-\\xDE\\u0100\\u0102\\u0104\\u0106\\u0108\\u010A\\u010C\\u010E\\u0110\\u0112\\u0114\\u0116\\u0118\\u011A\\u011C\\u011E\\u0120\\u0122\\u0124\\u0126\\u0128\\u012A\\u012C\\u012E\\u0130\\u0132\\u0134\\u0136\\u0139\\u013B\\u013D\\u013F\\u0141\\u0143\\u0145\\u0147\\u014A\\u014C\\u014E\\u0150\\u0152\\u0154\\u0156\\u0158\\u015A\\u015C\\u015E\\u0160\\u0162\\u0164\\u0166\\u0168\\u016A\\u016C\\u016E\\u0170\\u0172\\u0174\\u0176\\u0178\\u0179\\u017B\\u017D\\u0181\\u0182\\u0184\\u0186\\u0187\\u0189-\\u018B\\u018E-\\u0191\\u0193\\u0194\\u0196-\\u0198\\u019C\\u019D\\u019F\\u01A0\\u01A2\\u01A4\\u01A6\\u01A7\\u01A9\\u01AC\\u01AE\\u01AF\\u01B1-\\u01B3\\u01B5\\u01B7\\u01B8\\u01BC\\u01C4\\u01C7\\u01CA\\u01CD\\u01CF\\u01D1\\u01D3\\u01D5\\u01D7\\u01D9\\u01DB\\u01DE\\u01E0\\u01E2\\u01E4\\u01E6\\u01E8\\u01EA\\u01EC\\u01EE\\u01F1\\u01F4\\u01F6-\\u01F8\\u01FA\\u01FC\\u01FE\\u0200\\u0202\\u0204\\u0206\\u0208\\u020A\\u020C\\u020E\\u0210\\u0212\\u0214\\u0216\\u0218\\u021A\\u021C\\u021E\\u0220\\u0222\\u0224\\u0226\\u0228\\u022A\\u022C\\u022E\\u0230\\u0232\\u023A\\u023B\\u023D\\u023E\\u0241\\u0243-\\u0246\\u0248\\u024A\\u024C\\u024E\\u0370\\u0372\\u0376\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E\\u038F\\u0391-\\u03A1\\u03A3-\\u03AB\\u03CF\\u03D2-\\u03D4\\u03D8\\u03DA\\u03DC\\u03DE\\u03E0\\u03E2\\u03E4\\u03E6\\u03E8\\u03EA\\u03EC\\u03EE\\u03F4\\u03F7\\u03F9\\u03FA\\u03FD-\\u042F\\u0460\\u0462\\u0464\\u0466\\u0468\\u046A\\u046C\\u046E\\u0470\\u0472\\u0474\\u0476\\u0478\\u047A\\u047C\\u047E\\u0480\\u048A\\u048C\\u048E\\u0490\\u0492\\u0494\\u0496\\u0498\\u049A\\u049C\\u049E\\u04A0\\u04A2\\u04A4\\u04A6\\u04A8\\u04AA\\u04AC\\u04AE\\u04B0\\u04B2\\u04B4\\u04B6\\u04B8\\u04BA\\u04BC\\u04BE\\u04C0\\u04C1\\u04C3\\u04C5\\u04C7\\u04C9\\u04CB\\u04CD\\u04D0\\u04D2\\u04D4\\u04D6\\u04D8\\u04DA\\u04DC\\u04DE\\u04E0\\u04E2\\u04E4\\u04E6\\u04E8\\u04EA\\u04EC\\u04EE\\u04F0\\u04F2\\u04F4\\u04F6\\u04F8\\u04FA\\u04FC\\u04FE\\u0500\\u0502\\u0504\\u0506\\u0508\\u050A\\u050C\\u050E\\u0510\\u0512\\u0514\\u0516\\u0518\\u051A\\u051C\\u051E\\u0520\\u0522\\u0524\\u0526\\u0528\\u052A\\u052C\\u052E\\u0531-\\u0556\\u10A0-\\u10C5\\u10C7\\u10CD\\u13A0-\\u13F5\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1E00\\u1E02\\u1E04\\u1E06\\u1E08\\u1E0A\\u1E0C\\u1E0E\\u1E10\\u1E12\\u1E14\\u1E16\\u1E18\\u1E1A\\u1E1C\\u1E1E\\u1E20\\u1E22\\u1E24\\u1E26\\u1E28\\u1E2A\\u1E2C\\u1E2E\\u1E30\\u1E32\\u1E34\\u1E36\\u1E38\\u1E3A\\u1E3C\\u1E3E\\u1E40\\u1E42\\u1E44\\u1E46\\u1E48\\u1E4A\\u1E4C\\u1E4E\\u1E50\\u1E52\\u1E54\\u1E56\\u1E58\\u1E5A\\u1E5C\\u1E5E\\u1E60\\u1E62\\u1E64\\u1E66\\u1E68\\u1E6A\\u1E6C\\u1E6E\\u1E70\\u1E72\\u1E74\\u1E76\\u1E78\\u1E7A\\u1E7C\\u1E7E\\u1E80\\u1E82\\u1E84\\u1E86\\u1E88\\u1E8A\\u1E8C\\u1E8E\\u1E90\\u1E92\\u1E94\\u1E9E\\u1EA0\\u1EA2\\u1EA4\\u1EA6\\u1EA8\\u1EAA\\u1EAC\\u1EAE\\u1EB0\\u1EB2\\u1EB4\\u1EB6\\u1EB8\\u1EBA\\u1EBC\\u1EBE\\u1EC0\\u1EC2\\u1EC4\\u1EC6\\u1EC8\\u1ECA\\u1ECC\\u1ECE\\u1ED0\\u1ED2\\u1ED4\\u1ED6\\u1ED8\\u1EDA\\u1EDC\\u1EDE\\u1EE0\\u1EE2\\u1EE4\\u1EE6\\u1EE8\\u1EEA\\u1EEC\\u1EEE\\u1EF0\\u1EF2\\u1EF4\\u1EF6\\u1EF8\\u1EFA\\u1EFC\\u1EFE\\u1F08-\\u1F0F\\u1F18-\\u1F1D\\u1F28-\\u1F2F\\u1F38-\\u1F3F\\u1F48-\\u1F4D\\u1F59\\u1F5B\\u1F5D\\u1F5F\\u1F68-\\u1F6F\\u1FB8-\\u1FBB\\u1FC8-\\u1FCB\\u1FD8-\\u1FDB\\u1FE8-\\u1FEC\\u1FF8-\\u1FFB\\u2102\\u2107\\u210B-\\u210D\\u2110-\\u2112\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u2130-\\u2133\\u213E\\u213F\\u2145\\u2160-\\u216F\\u2183\\u24B6-\\u24CF\\u2C00-\\u2C2E\\u2C60\\u2C62-\\u2C64\\u2C67\\u2C69\\u2C6B\\u2C6D-\\u2C70\\u2C72\\u2C75\\u2C7E-\\u2C80\\u2C82\\u2C84\\u2C86\\u2C88\\u2C8A\\u2C8C\\u2C8E\\u2C90\\u2C92\\u2C94\\u2C96\\u2C98\\u2C9A\\u2C9C\\u2C9E\\u2CA0\\u2CA2\\u2CA4\\u2CA6\\u2CA8\\u2CAA\\u2CAC\\u2CAE\\u2CB0\\u2CB2\\u2CB4\\u2CB6\\u2CB8\\u2CBA\\u2CBC\\u2CBE\\u2CC0\\u2CC2\\u2CC4\\u2CC6\\u2CC8\\u2CCA\\u2CCC\\u2CCE\\u2CD0\\u2CD2\\u2CD4\\u2CD6\\u2CD8\\u2CDA\\u2CDC\\u2CDE\\u2CE0\\u2CE2\\u2CEB\\u2CED\\u2CF2\\uA640\\uA642\\uA644\\uA646\\uA648\\uA64A\\uA64C\\uA64E\\uA650\\uA652\\uA654\\uA656\\uA658\\uA65A\\uA65C\\uA65E\\uA660\\uA662\\uA664\\uA666\\uA668\\uA66A\\uA66C\\uA680\\uA682\\uA684\\uA686\\uA688\\uA68A\\uA68C\\uA68E\\uA690\\uA692\\uA694\\uA696\\uA698\\uA69A\\uA722\\uA724\\uA726\\uA728\\uA72A\\uA72C\\uA72E\\uA732\\uA734\\uA736\\uA738\\uA73A\\uA73C\\uA73E\\uA740\\uA742\\uA744\\uA746\\uA748\\uA74A\\uA74C\\uA74E\\uA750\\uA752\\uA754\\uA756\\uA758\\uA75A\\uA75C\\uA75E\\uA760\\uA762\\uA764\\uA766\\uA768\\uA76A\\uA76C\\uA76E\\uA779\\uA77B\\uA77D\\uA77E\\uA780\\uA782\\uA784\\uA786\\uA78B\\uA78D\\uA790\\uA792\\uA796\\uA798\\uA79A\\uA79C\\uA79E\\uA7A0\\uA7A2\\uA7A4\\uA7A6\\uA7A8\\uA7AA-\\uA7AE\\uA7B0-\\uA7B4\\uA7B6\\uA7B8\\uFF21-\\uFF3A]|\\uD801[\\uDC00-\\uDC27\\uDCB0-\\uDCD3]|\\uD803[\\uDC80-\\uDCB2]|\\uD806[\\uDCA0-\\uDCBF]|\\uD81B[\\uDE40-\\uDE5F]|\\uD835[\\uDC00-\\uDC19\\uDC34-\\uDC4D\\uDC68-\\uDC81\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB5\\uDCD0-\\uDCE9\\uDD04\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD38\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD6C-\\uDD85\\uDDA0-\\uDDB9\\uDDD4-\\uDDED\\uDE08-\\uDE21\\uDE3C-\\uDE55\\uDE70-\\uDE89\\uDEA8-\\uDEC0\\uDEE2-\\uDEFA\\uDF1C-\\uDF34\\uDF56-\\uDF6E\\uDF90-\\uDFA8\\uDFCA]|\\uD83A[\\uDD00-\\uDD21]|\\uD83C[\\uDD30-\\uDD49\\uDD50-\\uDD69\\uDD70-\\uDD89])/.source}.*`),Vi=Jt(`(?:${/(?:[a-z\\xAA\\xB5\\xBA\\xDF-\\xF6\\xF8-\\xFF\\u0101\\u0103\\u0105\\u0107\\u0109\\u010B\\u010D\\u010F\\u0111\\u0113\\u0115\\u0117\\u0119\\u011B\\u011D\\u011F\\u0121\\u0123\\u0125\\u0127\\u0129\\u012B\\u012D\\u012F\\u0131\\u0133\\u0135\\u0137\\u0138\\u013A\\u013C\\u013E\\u0140\\u0142\\u0144\\u0146\\u0148\\u0149\\u014B\\u014D\\u014F\\u0151\\u0153\\u0155\\u0157\\u0159\\u015B\\u015D\\u015F\\u0161\\u0163\\u0165\\u0167\\u0169\\u016B\\u016D\\u016F\\u0171\\u0173\\u0175\\u0177\\u017A\\u017C\\u017E-\\u0180\\u0183\\u0185\\u0188\\u018C\\u018D\\u0192\\u0195\\u0199-\\u019B\\u019E\\u01A1\\u01A3\\u01A5\\u01A8\\u01AA\\u01AB\\u01AD\\u01B0\\u01B4\\u01B6\\u01B9\\u01BA\\u01BD-\\u01BF\\u01C6\\u01C9\\u01CC\\u01CE\\u01D0\\u01D2\\u01D4\\u01D6\\u01D8\\u01DA\\u01DC\\u01DD\\u01DF\\u01E1\\u01E3\\u01E5\\u01E7\\u01E9\\u01EB\\u01ED\\u01EF\\u01F0\\u01F3\\u01F5\\u01F9\\u01FB\\u01FD\\u01FF\\u0201\\u0203\\u0205\\u0207\\u0209\\u020B\\u020D\\u020F\\u0211\\u0213\\u0215\\u0217\\u0219\\u021B\\u021D\\u021F\\u0221\\u0223\\u0225\\u0227\\u0229\\u022B\\u022D\\u022F\\u0231\\u0233-\\u0239\\u023C\\u023F\\u0240\\u0242\\u0247\\u0249\\u024B\\u024D\\u024F-\\u0293\\u0295-\\u02B8\\u02C0\\u02C1\\u02E0-\\u02E4\\u0345\\u0371\\u0373\\u0377\\u037A-\\u037D\\u0390\\u03AC-\\u03CE\\u03D0\\u03D1\\u03D5-\\u03D7\\u03D9\\u03DB\\u03DD\\u03DF\\u03E1\\u03E3\\u03E5\\u03E7\\u03E9\\u03EB\\u03ED\\u03EF-\\u03F3\\u03F5\\u03F8\\u03FB\\u03FC\\u0430-\\u045F\\u0461\\u0463\\u0465\\u0467\\u0469\\u046B\\u046D\\u046F\\u0471\\u0473\\u0475\\u0477\\u0479\\u047B\\u047D\\u047F\\u0481\\u048B\\u048D\\u048F\\u0491\\u0493\\u0495\\u0497\\u0499\\u049B\\u049D\\u049F\\u04A1\\u04A3\\u04A5\\u04A7\\u04A9\\u04AB\\u04AD\\u04AF\\u04B1\\u04B3\\u04B5\\u04B7\\u04B9\\u04BB\\u04BD\\u04BF\\u04C2\\u04C4\\u04C6\\u04C8\\u04CA\\u04CC\\u04CE\\u04CF\\u04D1\\u04D3\\u04D5\\u04D7\\u04D9\\u04DB\\u04DD\\u04DF\\u04E1\\u04E3\\u04E5\\u04E7\\u04E9\\u04EB\\u04ED\\u04EF\\u04F1\\u04F3\\u04F5\\u04F7\\u04F9\\u04FB\\u04FD\\u04FF\\u0501\\u0503\\u0505\\u0507\\u0509\\u050B\\u050D\\u050F\\u0511\\u0513\\u0515\\u0517\\u0519\\u051B\\u051D\\u051F\\u0521\\u0523\\u0525\\u0527\\u0529\\u052B\\u052D\\u052F\\u0560-\\u0588\\u10D0-\\u10FA\\u10FD-\\u10FF\\u13F8-\\u13FD\\u1C80-\\u1C88\\u1D00-\\u1DBF\\u1E01\\u1E03\\u1E05\\u1E07\\u1E09\\u1E0B\\u1E0D\\u1E0F\\u1E11\\u1E13\\u1E15\\u1E17\\u1E19\\u1E1B\\u1E1D\\u1E1F\\u1E21\\u1E23\\u1E25\\u1E27\\u1E29\\u1E2B\\u1E2D\\u1E2F\\u1E31\\u1E33\\u1E35\\u1E37\\u1E39\\u1E3B\\u1E3D\\u1E3F\\u1E41\\u1E43\\u1E45\\u1E47\\u1E49\\u1E4B\\u1E4D\\u1E4F\\u1E51\\u1E53\\u1E55\\u1E57\\u1E59\\u1E5B\\u1E5D\\u1E5F\\u1E61\\u1E63\\u1E65\\u1E67\\u1E69\\u1E6B\\u1E6D\\u1E6F\\u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2C9B\\u2C9D\\u2C9F\\u2CA1\\u2CA3\\u2CA5\\u2CA7\\u2CA9\\u2CAB\\u2CAD\\u2CAF\\u2CB1\\u2CB3\\u2CB5\\u2CB7\\u2CB9\\u2CBB\\u2CBD\\u2CBF\\u2CC1\\u2CC3\\u2CC5\\u2CC7\\u2CC9\\u2CCB\\u2CCD\\u2CCF\\u2CD1\\u2CD3\\u2CD5\\u2CD7\\u2CD9\\u2CDB\\u2CDD\\u2CDF\\u2CE1\\u2CE3\\u2CE4\\u2CEC\\u2CEE\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\uA641\\uA643\\uA645\\uA647\\uA649\\uA64B\\uA64D\\uA64F\\uA651\\uA653\\uA655\\uA657\\uA659\\uA65B\\uA65D\\uA65F\\uA661\\uA663\\uA665\\uA667\\uA669\\uA66B\\uA66D\\uA681\\uA683\\uA685\\uA687\\uA689\\uA68B\\uA68D\\uA68F\\uA691\\uA693\\uA695\\uA697\\uA699\\uA69B-\\uA69D\\uA723\\uA725\\uA727\\uA729\\uA72B\\uA72D\\uA72F-\\uA731\\uA733\\uA735\\uA737\\uA739\\uA73B\\uA73D\\uA73F\\uA741\\uA743\\uA745\\uA747\\uA749\\uA74B\\uA74D\\uA74F\\uA751\\uA753\\uA755\\uA757\\uA759\\uA75B\\uA75D\\uA75F\\uA761\\uA763\\uA765\\uA767\\uA769\\uA76B\\uA76D\\uA76F-\\uA778\\uA77A\\uA77C\\uA77F\\uA781\\uA783\\uA785\\uA787\\uA78C\\uA78E\\uA791\\uA793-\\uA795\\uA797\\uA799\\uA79B\\uA79D\\uA79F\\uA7A1\\uA7A3\\uA7A5\\uA7A7\\uA7A9\\uA7AF\\uA7B5\\uA7B7\\uA7B9\\uA7F8-\\uA7FA\\uAB30-\\uAB5A\\uAB5C-\\uAB65\\uAB70-\\uABBF\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFF41-\\uFF5A]|\\uD801[\\uDC28-\\uDC4F\\uDCD8-\\uDCFB]|\\uD803[\\uDCC0-\\uDCF2]|\\uD806[\\uDCC0-\\uDCDF]|\\uD81B[\\uDE60-\\uDE7F]|\\uD835[\\uDC1A-\\uDC33\\uDC4E-\\uDC54\\uDC56-\\uDC67\\uDC82-\\uDC9B\\uDCB6-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDCCF\\uDCEA-\\uDD03\\uDD1E-\\uDD37\\uDD52-\\uDD6B\\uDD86-\\uDD9F\\uDDBA-\\uDDD3\\uDDEE-\\uDE07\\uDE22-\\uDE3B\\uDE56-\\uDE6F\\uDE8A-\\uDEA5\\uDEC2-\\uDEDA\\uDEDC-\\uDEE1\\uDEFC-\\uDF14\\uDF16-\\uDF1B\\uDF36-\\uDF4E\\uDF50-\\uDF55\\uDF70-\\uDF88\\uDF8A-\\uDF8F\\uDFAA-\\uDFC2\\uDFC4-\\uDFC9\\uDFCB]|\\uD83A[\\uDD22-\\uDD43])/.source}.*|${Hi}.*|\\\\S*)`),Wi=function(t=\"\"){typeof t!=\"string\"&&(t=t+\"\");let r=\"\",n=\"\",o=\"\";if(/[^.], /.test(t)){let S=t.split(\", \");o=S.shift();let I=RegExp(Kt).exec(S.join(\", \"));r=S.splice(I&&I.index!==0?0:-1,1)[0],n=S.join(\", \")}else{let S=t.split($i,2),I=S.shift().split(Vi,2);r=I[0],o=I[1],n=S.pop()}let i=r.match(Ki),s=nn(i,3),c=s[1],E=s[2],y=n,D=o.split(Ji,2).reverse(),k=nn(D,2),x=k[0],Re=k[1];if(!E&&x)return x.includes(\" \")?{literal:x}:{family:x};if(x){let S={\"dropping-particle\":c,given:E,suffix:y,\"non-dropping-particle\":Re,family:x};return Object.keys(S).forEach(I=>{S[I]||delete S[I]}),S}else return{literal:t}};Y.default=Y.parse=Wi;var qi=\"@name\";Y.scope=qi;var zi=\"@name\";Y.types=zi});var un=U(Qe=>{\"use strict\";Object.defineProperty(Qe,\"__esModule\",{value:!0});Qe.default=void 0;var Vt=[\"dropping-particle\",\"given\"],Wt=[\"suffix\"],sn=[\"non-dropping-particle\",\"family\"],Zi=function(t,r=!1){let n=o=>o.map(i=>t[i]||\"\").filter(Boolean).join(\" \");if(t.literal)return t.literal;if(r){let o=n(Wt)?`, ${n(Wt)}`:\"\",i=n(Vt)?`, ${n(Vt)}`:\"\";return n(sn)+o+i}else return`${n([...Vt,...Wt,...sn])}`},Qi=Zi;Qe.default=Qi});var qt=U(Xe=>{\"use strict\";Object.defineProperty(Xe,\"__esModule\",{value:!0});Object.defineProperty(Xe,\"parse\",{enumerable:!0,get:function(){return Xi.default}});Object.defineProperty(Xe,\"format\",{enumerable:!0,get:function(){return ea.default}});var Xi=cn(an()),ea=cn(un());function cn(e){return e&&e.__esModule?e:{default:e}}});var Cn=U((Lc,yn)=>{var ma=new TextEncoder,ga=new TextDecoder;function H(...e){let t=new H.Request(...e),r=new XMLHttpRequest;r.withCredentials=t.credentials===\"include\",r.timeout=t[p].timeout,r.open(t.method,t.url,!1);let n=!1;try{r.responseType=\"arraybuffer\"}catch{r.overrideMimeType(\"text/plain; charset=x-user-defined\"),n=!0}for(let c of t.headers)r.setRequestHeader(...c);r.send(t[p].body||null);let o=r.getAllResponseHeaders();o=o&&o.split(`\\r\n`).filter(Boolean).map(c=>c.split(\": \",2));let i=r.response;if(n){let c=new Uint8Array(i.length);for(let E=0;E<i.length;E++)c[E]=i.charCodeAt(E)&255;i=c}let s=new H.Response(i,{headers:o,status:r.status,statusText:r.statusText});return s[p].url=r.responseURL,s[p].redirected=r.responseURL!==t.url,s}var p=Symbol(\"SyncFetch Internals\"),Ea=[\"mode\",\"cache\",\"redirect\",\"referrer\",\"integrity\"],Aa={100:\"Continue\",101:\"Switching Protocols\",200:\"OK\",201:\"Created\",202:\"Accepted\",203:\"Non-Authoritative Information\",204:\"No Content\",205:\"Reset Content\",206:\"Partial Content\",300:\"Multiple Choices\",301:\"Moved Permanently\",302:\"Found\",303:\"See Other\",304:\"Not Modified\",305:\"Use Proxy\",307:\"Temporary Redirect\",400:\"Bad Request\",401:\"Unauthorized\",402:\"Payment Required\",403:\"Forbidden\",404:\"Not Found\",405:\"Method Not Allowed\",406:\"Not Acceptable\",407:\"Proxy Authentication Required\",408:\"Request Timeout\",409:\"Conflict\",410:\"Gone\",411:\"Length Required\",412:\"Precondition Failed\",413:\"Payload Too Large\",414:\"URI Too Long\",415:\"Unsupported Media Type\",416:\"Range Not Satisfiable\",417:\"Expectation Failed\",426:\"Upgrade Required\",500:\"Internal Server Error\",501:\"Not Implemented\",502:\"Bad Gateway\",503:\"Service Unavailable\",504:\"Gateway Timeout\",505:\"HTTP Version Not Supported\"},rt=class e{constructor(t,r={}){for(let n of Ea)if(n in r)throw new TypeError(`option ${n} not supported`);if(r.credentials===\"same-origin\")throw new TypeError(\"option credentials with value 'same-origin' not supported\");if(this[p]={method:r.method||\"GET\",headers:new H.Headers(r.headers),body:ur(r.body),credentials:r.credentials||\"omit\",timeout:r.timeout||0},typeof t==\"string\")this[p].url=t;else if(t instanceof e)this[p].url=t.url,r.method||(this[p].method=t.method),r.headers||(this[p].headers=t.headers),r.body||(this[p].body=t[p].body),r.credentials||(this[p].credentials=t.credentials);else throw new TypeError(\"Request input should be a URL string or a Request object\")}get cache(){return\"default\"}get credentials(){return this[p].credentials}get destination(){return\"\"}get headers(){return this[p].headers}get integrity(){return\"\"}get method(){return this[p].method}get mode(){return\"cors\"}get priority(){return\"auto\"}get redirect(){return\"follow\"}get referrer(){return\"about:client\"}get referrerPolicy(){return\"\"}get url(){return this[p].url}clone(){return sr(this),new e(this.url,this[p])}},nt=class e{constructor(t,r={}){this[p]={body:ur(t),bodyUsed:!1,headers:new H.Headers(r.headers),status:r.status,statusText:r.statusText}}get headers(){return this[p].headers}get ok(){let t=this[p].status;return t>=200&&t<300}get redirected(){return this[p].redirected}get status(){return this[p].status}get statusText(){return this[p].statusText}get url(){return this[p].url}clone(){return this.redirect(this[p].url,this[p].status)}redirect(t,r){sr(this);let n=new e(this[p].body,{headers:this[p].headers,status:r||this[p].status,statusText:Aa[r]||this[p].statusText});return n[p].url=t||this[p].url,n[p].redirected=this[p].redirected,n}},ot=class e{constructor(t){this[p]={body:ur(t),bodyUsed:!1}}get bodyUsed(){return this[p].bodyUsed}static mixin(t){for(let r of Object.getOwnPropertyNames(e.prototype)){if(r===\"constructor\")continue;let n=Object.getOwnPropertyDescriptor(e.prototype,r);Object.defineProperty(t,r,{...n,enumerable:!0})}}arrayBuffer(){let t=ir(this);return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}blob(){let t=this.headers&&this.headers.get(\"content-type\");return new Blob([ir(this)],t&&{type:t})}text(){return ga.decode(ir(this))}json(){try{return JSON.parse(this.text())}catch(t){throw new TypeError(`invalid json response body at ${this.url} reason: ${t.message}`,\"invalid-json\")}}};function sr(e){if(e.bodyUsed)throw new TypeError(`body used already for: ${e.url}`)}function ir(e){return sr(e),e[p].bodyUsed=!0,e[p].body||new Uint8Array}function ur(e){return typeof e==\"string\"?ma.encode(e):e||null}ot.mixin(rt.prototype);ot.mixin(nt.prototype);var ar=class{constructor(t){if(t instanceof H.Headers)this[p]={...t[p]};else if(this[p]={},Array.isArray(t))for(let[r,n]of t)this.append(r,n);else if(typeof t==\"object\")for(let r in t)this.set(r,t[r])}append(t,r){t=t.toLowerCase(),this[p][t]||(this[p][t]=[]),this[p][t].push(r)}delete(t){delete this[p][t.toLowerCase()]}set(t,r){this[p][t.toLowerCase()]=[r]}entries(){let t=[];for(let r in this[p])for(let n of this[p][r])t.push([r,n]);return t}get(t){return t=t.toLowerCase(),t in this[p]?this[p][t].join(\", \"):null}keys(){return Object.keys(this[p])}has(t){return t.toLowerCase()in this[p]}values(){let t=[];for(let r in this[p])for(let n of this[p][r])t.push(n);return t}*[Symbol.iterator](){for(let t in this[p])for(let r of this[p][t])yield[t,r]}};H.Headers=ar;H.Request=rt;H.Response=nt;yn.exports=H});var Or=U((Hn,ht)=>{(function(e,t){typeof define==\"function\"&&define.amd?define([],t):typeof ht==\"object\"&&ht.exports?ht.exports=t():e.moo=t()})(Hn,function(){\"use strict\";var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=typeof new RegExp().sticky==\"boolean\";function n(a){return a&&t.call(a)===\"[object RegExp]\"}function o(a){return a&&typeof a==\"object\"&&!n(a)&&!Array.isArray(a)}function i(a){return a.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,function(u){return u===\"-\"?\"\\\\x2d\":\"\\\\\"+u})}function s(a){var u=new RegExp(\"|\"+a);return u.exec(\"\").length-1}function c(a){return\"(\"+a+\")\"}function E(a){if(!a.length)return\"(?!)\";var u=a.map(function(l){return\"(?:\"+l+\")\"}).join(\"|\");return\"(?:\"+u+\")\"}function y(a){if(typeof a==\"string\")return\"(?:\"+i(a)+\")\";if(n(a)){if(a.ignoreCase)throw new Error(\"RegExp /i flag not allowed\");if(a.global)throw new Error(\"RegExp /g flag is implied\");if(a.sticky)throw new Error(\"RegExp /y flag is implied\");if(a.multiline)throw new Error(\"RegExp /m flag is implied\");return a.source}else throw new Error(\"Not a pattern: \"+a)}function D(a,u){return a.length>u?a:Array(u-a.length+1).join(\" \")+a}function k(a,u){for(var l=a.length,f=0;;){var g=a.lastIndexOf(`\n`,l-1);if(g===-1||(f++,l=g,f===u)||l===0)break}var d=f<u?0:l+1;return a.substring(d).split(`\n`)}function x(a){for(var u=Object.getOwnPropertyNames(a),l=[],f=0;f<u.length;f++){var g=u[f],d=a[g],A=[].concat(d);if(g===\"include\"){for(var b=0;b<A.length;b++)l.push({include:A[b]});continue}var C=[];A.forEach(function(m){o(m)?(C.length&&l.push(S(g,C)),l.push(S(g,m)),C=[]):C.push(m)}),C.length&&l.push(S(g,C))}return l}function Re(a){for(var u=[],l=0;l<a.length;l++){var f=a[l];if(f.include){for(var g=[].concat(f.include),d=0;d<g.length;d++)u.push({include:g[d]});continue}if(!f.type)throw new Error(\"Rule has no type: \"+JSON.stringify(f));u.push(S(f.type,f))}return u}function S(a,u){if(o(u)||(u={match:u}),u.include)throw new Error(\"Matching rules cannot also include states\");var l={defaultType:a,lineBreaks:!!u.error||!!u.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var f in u)e.call(u,f)&&(l[f]=u[f]);if(typeof l.type==\"string\"&&a!==l.type)throw new Error(\"Type transform cannot be a string (type '\"+l.type+\"' for token '\"+a+\"')\");var g=l.match;return l.match=Array.isArray(g)?g:g?[g]:[],l.match.sort(function(d,A){return n(d)&&n(A)?0:n(A)?-1:n(d)?1:A.length-d.length}),l}function I(a){return Array.isArray(a)?Re(a):x(a)}var ci=S(\"error\",{lineBreaks:!0,shouldThrow:!0});function Wr(a,u){for(var l=null,f=Object.create(null),g=!0,d=null,A=[],b=[],C=0;C<a.length;C++)a[C].fallback&&(g=!1);for(var C=0;C<a.length;C++){var m=a[C];if(m.include)throw new Error(\"Inheritance is not allowed in stateless lexers\");if(m.error||m.fallback){if(l)throw!m.fallback==!l.fallback?new Error(\"Multiple \"+(m.fallback?\"fallback\":\"error\")+\" rules not allowed (for token '\"+m.defaultType+\"')\"):new Error(\"fallback and error are mutually exclusive (for token '\"+m.defaultType+\"')\");l=m}var v=m.match.slice();if(g)for(;v.length&&typeof v[0]==\"string\"&&v[0].length===1;){var Q=v.shift();f[Q.charCodeAt(0)]=m}if(m.pop||m.push||m.next){if(!u)throw new Error(\"State-switching options are not allowed in stateless lexers (for token '\"+m.defaultType+\"')\");if(m.fallback)throw new Error(\"State-switching options are not allowed on fallback tokens (for token '\"+m.defaultType+\"')\")}if(v.length!==0){g=!1,A.push(m);for(var X=0;X<v.length;X++){var ee=v[X];if(n(ee)){if(d===null)d=ee.unicode;else if(d!==ee.unicode&&m.fallback===!1)throw new Error(\"If one rule is /u then all must be\")}}var he=E(v.map(y)),F=new RegExp(he);if(F.test(\"\"))throw new Error(\"RegExp matches empty string: \"+F);var Le=s(he);if(Le>0)throw new Error(\"RegExp has capture groups: \"+F+`\nUse (?: \\u2026 ) instead`);if(!m.lineBreaks&&F.test(`\n`))throw new Error(\"Rule should declare lineBreaks: \"+F);b.push(c(he))}}var de=l&&l.fallback,Be=r&&!de?\"ym\":\"gm\",qe=r||de?\"\":\"|\";d===!0&&(Be+=\"u\");var mi=new RegExp(E(b)+qe,Be);return{regexp:mi,groups:A,fast:f,error:l||ci}}function li(a){var u=Wr(I(a));return new R({start:u},\"start\")}function qr(a,u,l){var f=a&&(a.push||a.next);if(f&&!l[f])throw new Error(\"Missing state '\"+f+\"' (in token '\"+a.defaultType+\"' of state '\"+u+\"')\");if(a&&a.pop&&+a.pop!=1)throw new Error(\"pop must be 1 (in token '\"+a.defaultType+\"' of state '\"+u+\"')\")}function pi(a,u){var l=a.$all?I(a.$all):[];delete a.$all;var f=Object.getOwnPropertyNames(a);u||(u=f[0]);for(var g=Object.create(null),d=0;d<f.length;d++){var A=f[d];g[A]=I(a[A]).concat(l)}for(var d=0;d<f.length;d++)for(var A=f[d],b=g[A],C=Object.create(null),m=0;m<b.length;m++){var v=b[m];if(v.include){var Q=[m,1];if(v.include!==A&&!C[v.include]){C[v.include]=!0;var X=g[v.include];if(!X)throw new Error(\"Cannot include nonexistent state '\"+v.include+\"' (in state '\"+A+\"')\");for(var ee=0;ee<X.length;ee++){var he=X[ee];b.indexOf(he)===-1&&Q.push(he)}}b.splice.apply(b,Q),m--}}for(var F=Object.create(null),d=0;d<f.length;d++){var A=f[d];F[A]=Wr(g[A],!0)}for(var d=0;d<f.length;d++){for(var Le=f[d],de=F[Le],Be=de.groups,m=0;m<Be.length;m++)qr(Be[m],Le,F);for(var qe=Object.getOwnPropertyNames(de.fast),m=0;m<qe.length;m++)qr(de.fast[qe[m]],Le,F)}return new R(F,u)}function fi(a){for(var u=typeof Map<\"u\",l=u?new Map:Object.create(null),f=Object.getOwnPropertyNames(a),g=0;g<f.length;g++){var d=f[g],A=a[d],b=Array.isArray(A)?A:[A];b.forEach(function(C){if(typeof C!=\"string\")throw new Error(\"keyword must be string (in keyword '\"+d+\"')\");u?l.set(C,d):l[C]=d})}return function(C){return u?l.get(C):l[C]}}var R=function(a,u){this.startState=u,this.states=a,this.buffer=\"\",this.stack=[],this.reset()};R.prototype.reset=function(a,u){return this.buffer=a||\"\",this.index=0,this.line=u?u.line:1,this.col=u?u.col:1,this.queuedToken=u?u.queuedToken:null,this.queuedText=u?u.queuedText:\"\",this.queuedThrow=u?u.queuedThrow:null,this.setState(u?u.state:this.startState),this.stack=u&&u.stack?u.stack.slice():[],this},R.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},R.prototype.setState=function(a){if(!(!a||this.state===a)){this.state=a;var u=this.states[a];this.groups=u.groups,this.error=u.error,this.re=u.regexp,this.fast=u.fast}},R.prototype.popState=function(){this.setState(this.stack.pop())},R.prototype.pushState=function(a){this.stack.push(this.state),this.setState(a)};var hi=r?function(a,u){return a.exec(u)}:function(a,u){var l=a.exec(u);return l[0].length===0?null:l};R.prototype._getGroup=function(a){for(var u=this.groups.length,l=0;l<u;l++)if(a[l+1]!==void 0)return this.groups[l];throw new Error(\"Cannot find token type for matched text\")};function di(){return this.value}if(R.prototype.next=function(){var a=this.index;if(this.queuedGroup){var u=this._token(this.queuedGroup,this.queuedText,a);return this.queuedGroup=null,this.queuedText=\"\",u}var l=this.buffer;if(a!==l.length){var A=this.fast[l.charCodeAt(a)];if(A)return this._token(A,l.charAt(a),a);var f=this.re;f.lastIndex=a;var g=hi(f,l),d=this.error;if(g==null)return this._token(d,l.slice(a,l.length),a);var A=this._getGroup(g),b=g[0];return d.fallback&&g.index!==a?(this.queuedGroup=A,this.queuedText=b,this._token(d,l.slice(a,g.index),a)):this._token(A,b,a)}},R.prototype._token=function(a,u,l){var f=0;if(a.lineBreaks){var g=/\\n/g,d=1;if(u===`\n`)f=1;else for(;g.exec(u);)f++,d=g.lastIndex}var A={type:typeof a.type==\"function\"&&a.type(u)||a.defaultType,value:typeof a.value==\"function\"?a.value(u):u,text:u,toString:di,offset:l,lineBreaks:f,line:this.line,col:this.col},b=u.length;if(this.index+=b,this.line+=f,f!==0?this.col=b-d+1:this.col+=b,a.shouldThrow){var C=new Error(this.formatError(A,\"invalid syntax\"));throw C}return a.pop?this.popState():a.push?this.pushState(a.push):a.next&&this.setState(a.next),A},typeof Symbol<\"u\"&&Symbol.iterator){var Lt=function(a){this.lexer=a};Lt.prototype.next=function(){var a=this.lexer.next();return{value:a,done:!a}},Lt.prototype[Symbol.iterator]=function(){return this},R.prototype[Symbol.iterator]=function(){return new Lt(this)}}return R.prototype.formatError=function(a,u){if(a==null)var l=this.buffer.slice(this.index),a={text:l,offset:this.index,lineBreaks:l.indexOf(`\n`)===-1?0:1,line:this.line,col:this.col};var f=2,g=Math.max(a.line-f,1),d=a.line+f,A=String(d).length,b=k(this.buffer,this.line-a.line+f+1).slice(0,5),C=[];C.push(u+\" at line \"+a.line+\" col \"+a.col+\":\"),C.push(\"\");for(var m=0;m<b.length;m++){var v=b[m],Q=g+m;C.push(D(String(Q),A)+\"  \"+v),Q===a.line&&C.push(D(\"\",A+a.col+1)+\"^\")}return C.join(`\n`)},R.prototype.clone=function(){return new R(this.states,this.state)},R.prototype.has=function(a){return!0},{compile:li,states:pi,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:fi}})});var to=U(Ot=>{\"use strict\";Object.defineProperty(Ot,\"__esModule\",{value:!0});Ot.default=void 0;function Pe(e,t){return Ms(e)||Is(e,t)||xs(e,t)||Bs()}function Bs(){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 xs(e,t){if(e){if(typeof e==\"string\")return Xn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r===\"Object\"&&e.constructor&&(r=e.constructor.name),r===\"Map\"||r===\"Set\")return Array.from(e);if(r===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xn(e,t)}}function Xn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Is(e,t){var r=e==null?null:typeof Symbol<\"u\"&&e[Symbol.iterator]||e[\"@@iterator\"];if(r!=null){var n=[],o=!0,i=!1,s,c;try{for(r=r.call(e);!(o=(s=r.next()).done)&&(n.push(s.value),!(t&&n.length===t));o=!0);}catch(E){i=!0,c=E}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw c}}return n}}function Ms(e){if(Array.isArray(e))return e}var ks={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},Fs=/ (?:to|[-/]) | ?(?:--|[–—]) ?/,eo=/^(\\d{4}-\\d{2}-\\d{2})\\/(\\d{4}-\\d{2}-\\d{2})$/;function le(e){return ks[e.toLowerCase().slice(0,3)]}function Us(e){let t=new Date(e);return typeof e==\"number\"&&!isNaN(t.valueOf())?[t.getFullYear(),t.getMonth()+1,t.getDate()]:null}var js=function(t){let r=/^(\\d{4}|[-+]\\d{6,})-(\\d{2})(?:-(\\d{2}))?/;if(typeof t!=\"string\"||!r.test(t))return null;let n=t.match(r),o=Pe(n,4),i=o[1],s=o[2],c=o[3];return+s?+c?[i,s,c]:[i,s]:[i]},Gs=function(t){let r=/^(?:[a-z]{3},\\s*)?(\\d{1,2}) ([a-z]{3}) (\\d{4,})/i;if(typeof t!=\"string\"||!r.test(t))return null;let n=t.match(r),o=Pe(n,4),i=o[1],s=o[2],c=o[3];return s=le(s),s?[c,s,i]:null};function _s(e){let t=/^(\\d{1,2})\\/(\\d{1,2})\\/(\\d{2}(?:\\d{2})?)/;if(typeof e!=\"string\"||!t.test(e))return null;let r=e.match(t),n=Pe(r,4),o=n[1],i=n[2],s=n[3];return new Date(s,o,i).getMonth()===parseInt(o)?[s,o,i]:null}function Ys(e){let t=/^(\\d{1,2})[ .\\-/](\\d{1,2}|[a-z]{3,10})[ .\\-/](-?\\d+)/i,r=/^(-?\\d+)[ .\\-/](\\d{1,2}|[a-z]{3,10})[ .\\-/](\\d{1,2})/i,n,o,i;if(typeof e!=\"string\")return null;if(t.test(e)){var s=e.match(t),c=Pe(s,4);i=c[1],o=c[2],n=c[3]}else if(r.test(e)){var E=e.match(r),y=Pe(E,4);n=y[1],o=y[2],i=y[3]}else return null;if(le(o))o=le(o);else if(isNaN(o))return null;return[n,o,i]}function Hs(e){let t=/^([a-z]{3,10}|-?\\d+)[^\\w-]+([a-z]{3,10}|-?\\d+)$/i;if(typeof e==\"string\"&&t.test(e)){let r=e.match(t).slice(1,3),n;if(le(r[1]))n=le(r.pop());else if(le(r[0]))n=le(r.shift());else{if(r.some(isNaN)||r.every(i=>+i<0))return null;+r[0]<0||+r[0]>+r[1]&&+r[1]>0?n=r.pop():n=r.shift()}return[r.pop(),n]}else return null}function Ks(e){if(typeof e!=\"string\")return null;let t=e.match(/^(\\d+) ?(a\\.?d\\.?|b\\.?c\\.?)$/i);if(t){let r=t.slice(1),n=Pe(r,2),o=n[0],i=n[1];return[o*(i.toLowerCase()[0]===\"a\"?1:-1)]}else return/^-?\\d+$/.test(e)?[e]:null}function $s(e){let t=Us(e)||js(e)||Gs(e)||_s(e)||Ys(e)||Hs(e)||Ks(e);return t&&t.map(r=>parseInt(r))}function Js(e){return eo.test(e)?e.match(eo).slice(1,3):e.split(Fs)}function Vs(e,t){let r=[],n=typeof e==\"string\"&&Js(e);t?r.push(e,t):n&&n.length===2?r.push(...n):r.push(e);let o=r.map($s);return o.filter(Boolean).length===r.length?{\"date-parts\":o}:{raw:t?r.join(\"/\"):e}}var Ws=Vs;Ot.default=Ws});var ro=U(wt=>{\"use strict\";Object.defineProperty(wt,\"__esModule\",{value:!0});wt.default=void 0;function Nr(e,t,r){if(e.length>=t)return e;for(;e.length<t;)e=r+e;return e.slice(-t)}var qs=function(t,r=\"-\"){if(!t[\"date-parts\"])return t.raw;let n=t[\"date-parts\"][0].map(o=>o.toString());switch(n.length){case 3:n[2]=Nr(n[2],2,\"0\");case 2:n[1]=Nr(n[1],2,\"0\");case 1:n[0]=Nr(n[0],4,\"0\");break}return n.join(r)},zs=qs;wt.default=zs});var Rr=U(Dt=>{\"use strict\";Object.defineProperty(Dt,\"__esModule\",{value:!0});Object.defineProperty(Dt,\"format\",{enumerable:!0,get:function(){return Qs.default}});Object.defineProperty(Dt,\"parse\",{enumerable:!0,get:function(){return Zs.default}});var Zs=no(to()),Qs=no(ro());function no(e){return e&&e.__esModule?e:{default:e}}});var $o=U(Pt=>{\"use strict\";Object.defineProperty(Pt,\"__esModule\",{value:!0});Pt.default=void 0;function ve(e,t){return Uu(e)||Fu(e,t)||ku(e,t)||Mu()}function Mu(){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 ku(e,t){if(e){if(typeof e==\"string\")return Ho(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r===\"Object\"&&e.constructor&&(r=e.constructor.name),r===\"Map\"||r===\"Set\")return Array.from(e);if(r===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ho(e,t)}}function Ho(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fu(e,t){var r=e==null?null:typeof Symbol<\"u\"&&e[Symbol.iterator]||e[\"@@iterator\"];if(r!=null){var n=[],o=!0,i=!1,s,c;try{for(r=r.call(e);!(o=(s=r.next()).done)&&(n.push(s.value),!(t&&n.length===t));o=!0);}catch(E){i=!0,c=E}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw c}}return n}}function Uu(e){if(Array.isArray(e))return e}var ju={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},Gu=/ (?:to|[-/]) | ?(?:--|[–—]) ?/,Ko=/^(\\d{4}-\\d{2}-\\d{2})\\/(\\d{4}-\\d{2}-\\d{2})$/;function fe(e){return ju[e.toLowerCase().slice(0,3)]}function _u(e){let t=new Date(e);return typeof e==\"number\"&&!isNaN(t.valueOf())?[t.getFullYear(),t.getMonth()+1,t.getDate()]:null}var Yu=function(t){let r=/^(\\d{4}|[-+]\\d{6,})-(\\d{2})(?:-(\\d{2}))?/;if(typeof t!=\"string\"||!r.test(t))return null;let n=t.match(r),o=ve(n,4),i=o[1],s=o[2],c=o[3];return+s?+c?[i,s,c]:[i,s]:[i]},Hu=function(t){let r=/^(?:[a-z]{3},\\s*)?(\\d{1,2}) ([a-z]{3}) (\\d{4,})/i;if(typeof t!=\"string\"||!r.test(t))return null;let n=t.match(r),o=ve(n,4),i=o[1],s=o[2],c=o[3];return s=fe(s),s?[c,s,i]:null};function Ku(e){let t=/^(\\d{1,2})\\/(\\d{1,2})\\/(\\d{2}(?:\\d{2})?)/;if(typeof e!=\"string\"||!t.test(e))return null;let r=e.match(t),n=ve(r,4),o=n[1],i=n[2],s=n[3];return new Date(s,o,i).getMonth()===parseInt(o)?[s,o,i]:null}function $u(e){let t=/^(\\d{1,2})[ .\\-/](\\d{1,2}|[a-z]{3,10})[ .\\-/](-?\\d+)/i,r=/^(-?\\d+)[ .\\-/](\\d{1,2}|[a-z]{3,10})[ .\\-/](\\d{1,2})/i,n,o,i;if(typeof e!=\"string\")return null;if(t.test(e)){var s=e.match(t),c=ve(s,4);i=c[1],o=c[2],n=c[3]}else if(r.test(e)){var E=e.match(r),y=ve(E,4);n=y[1],o=y[2],i=y[3]}else return null;if(fe(o))o=fe(o);else if(isNaN(o))return null;return[n,o,i]}function Ju(e){let t=/^([a-z]{3,10}|-?\\d+)[^\\w-]+([a-z]{3,10}|-?\\d+)$/i;if(typeof e==\"string\"&&t.test(e)){let r=e.match(t).slice(1,3),n;if(fe(r[1]))n=fe(r.pop());else if(fe(r[0]))n=fe(r.shift());else{if(r.some(isNaN)||r.every(i=>+i<0))return null;+r[0]<0||+r[0]>+r[1]&&+r[1]>0?n=r.pop():n=r.shift()}return[r.pop(),n]}else return null}function Vu(e){if(typeof e!=\"string\")return null;let t=e.match(/^(\\d+) ?(a\\.?d\\.?|b\\.?c\\.?)$/i);if(t){let r=t.slice(1),n=ve(r,2),o=n[0],i=n[1];return[o*(i.toLowerCase()[0]===\"a\"?1:-1)]}else return/^-?\\d+$/.test(e)?[e]:null}function Wu(e){let t=_u(e)||Yu(e)||Hu(e)||Ku(e)||$u(e)||Ju(e)||Vu(e);return t&&t.map(r=>parseInt(r))}function qu(e){return Ko.test(e)?e.match(Ko).slice(1,3):e.split(Gu)}function zu(e,t){let r=[],n=typeof e==\"string\"&&qu(e);t?r.push(e,t):n&&n.length===2?r.push(...n):r.push(e);let o=r.map(Wu);return o.filter(Boolean).length===r.length?{\"date-parts\":o}:{raw:t?r.join(\"/\"):e}}var Zu=zu;Pt.default=Zu});var Jo=U(vt=>{\"use strict\";Object.defineProperty(vt,\"__esModule\",{value:!0});vt.default=void 0;function $r(e,t,r){if(e.length>=t)return e;for(;e.length<t;)e=r+e;return e.slice(-t)}var Qu=function(t,r=\"-\"){if(!t[\"date-parts\"])return t.raw;let n=t[\"date-parts\"][0].map(o=>o.toString());switch(n.length){case 3:n[2]=$r(n[2],2,\"0\");case 2:n[1]=$r(n[1],2,\"0\");case 1:n[0]=$r(n[0],4,\"0\");break}return n.join(r)},Xu=Qu;vt.default=Xu});var Wo=U(Nt=>{\"use strict\";Object.defineProperty(Nt,\"__esModule\",{value:!0});Object.defineProperty(Nt,\"format\",{enumerable:!0,get:function(){return tc.default}});Object.defineProperty(Nt,\"parse\",{enumerable:!0,get:function(){return ec.default}});var ec=Vo($o()),tc=Vo(Jo());function Vo(e){return e&&e.__esModule?e:{default:e}}});var pc={};P(pc,{Cite:()=>Cr});var Bt={};P(Bt,{currentVersion:()=>bi,retrieveLastVersion:()=>Di,retrieveVersion:()=>Oi,save:()=>Si,undo:()=>wi});function bi(){return this.log.length}function Oi(e=1){if(e<=0||e>this.currentVersion())return null;{let[t,r]=this.log[e-1],n=new this.constructor(JSON.parse(t),JSON.parse(r));return n.log=this.log.slice(0,e),n}}function wi(e=1){return this.retrieveVersion(this.currentVersion()-e)}function Di(){return this.retrieveVersion(this.currentVersion())}function Si(){return this.log.push([JSON.stringify(this.data),JSON.stringify(this._options)]),this}var xt={};P(xt,{defaultOptions:()=>vi,options:()=>Ni});var Zr=[\"real\",\"string\"],Qr=[\"json\",\"html\",\"string\",\"rtf\"],Xr=[\"csl\",\"bibtex\",\"bibtxt\",\"citation-*\",\"ris\",\"ndjson\"],en=[\"string\",\"function\"];function me(e){if(typeof e!=\"object\")throw new TypeError(\"Options not an object!\");let{format:t,type:r,style:n,lang:o,append:i,prepend:s}=e;if(t&&!Zr.includes(t))throw new TypeError(`Option format (\"${t}\") should be one of: ${Zr}`);if(r&&!Qr.includes(r))throw new TypeError(`Option type (\"${r}\") should be one of: ${Qr}`);if(n&&!Xr.includes(n)&&!/^citation/.test(n))throw new TypeError(`Option style (\"${n}\") should be one of: ${Xr}`);if(o&&typeof o!=\"string\")throw new TypeError(`Option lang should be a string, but is a ${typeof o}`);if(s&&!en.includes(typeof s))throw new TypeError(`Option prepend should be a string or a function, but is a ${typeof s}`);if(i&&!en.includes(typeof i))throw new TypeError(`Option append should be a string or a function, but is a ${typeof i}`);if(/^citation/.test(n)&&r===\"json\")throw new Error(`Combination type/style of json/citation-* is not valid: ${r}/${n}`);return!0}function Pi(e){if(typeof e!=\"object\")throw new TypeError(\"Options should be an object\");if(e.output)me(e.output);else{if(e.maxChainLength&&typeof e.maxChainLength!=\"number\")throw new TypeError(\"Option maxChainLength should be a number\");if(e.forceType&&typeof e.forceType!=\"string\")throw new TypeError(\"Option forceType should be a string\");if(e.generateGraph!=null&&typeof e.generateGraph!=\"boolean\")throw new TypeError(\"Option generateGraph should be a boolean\");if(e.strict!=null&&typeof e.strict!=\"boolean\")throw new TypeError(\"Option strict should be a boolean\");if(e.target!=null&&typeof e.target!=\"string\")throw new TypeError(\"Option target should be a boolean\")}return!0}var vi={format:\"real\",type:\"json\",style:\"csl\",lang:\"en-US\"};function Ni(e,t){return me(e),t&&this.save(),Object.assign(this._options,e),this}var dr={};P(dr,{add:()=>Na,addAsync:()=>Ra,reset:()=>xa,set:()=>La,setAsync:()=>Ba});var ct={};P(ct,{add:()=>ua,addDataParser:()=>et,addTypeParser:()=>Gt,chain:()=>fr,chainAsync:()=>hr,chainLink:()=>Sa,chainLinkAsync:()=>Pa,data:()=>Ce,dataAsync:()=>Me,get:()=>or,has:()=>la,hasDataParser:()=>gn,hasTypeParser:()=>Ri,list:()=>pa,listDataParser:()=>sa,listTypeParser:()=>Li,remove:()=>ca,removeDataParser:()=>tt,removeTypeParser:()=>_t,treeTypeParser:()=>Bi,type:()=>M,typeMatcher:()=>Yt,util:()=>va});var kt={};P(kt,{dataTypeOf:()=>Mt,typeOf:()=>It});function It(e){switch(e){case void 0:return\"Undefined\";case null:return\"Null\";default:return e.constructor.name}}function Mt(e){switch(typeof e){case\"string\":return\"String\";case\"object\":if(Array.isArray(e))return\"Array\";if(It(e)===\"Object\")return\"SimpleObject\";if(It(e)!==\"Null\")return\"ComplexObject\";default:return\"Primitive\"}}var jt={};P(jt,{applyGraph:()=>Ft,removeGraph:()=>Ut});function Ft(e,t){if(e._graph){let r=t.findIndex(({type:n})=>n===\"@else/list+object\");r!==-1&&t.splice(r+1,0,...e._graph.slice(0,-1))}return e._graph=t,e}function Ut(e){return delete e._graph,e}var Ht={};P(Ht,{DataParser:()=>xe,FormatParser:()=>Ie,TypeParser:()=>Ze});var ge={_output(e,t,r){this._log.push(t,r),!(this._levels.indexOf(e)<this._levels.indexOf(this.level))&&this._console.log(t,...r)},_console:null,_log:[],_levels:[\"http\",\"debug\",\"unmapped\",\"info\",\"warn\",\"error\",\"silent\"],level:\"silent\"};for(let e of ge._levels)ge[e]=(t,...r)=>ge._output(e,t,r);typeof console.Console==\"function\"?ge._console=new console.Console(process.stderr):ge._console=console;var L=ge;var _={},te={},Ee={};function tn(e,t){switch(t){case\"Array\":return e.length===0||e.every(r=>M(r)===\"@csl/object\")?\"@csl/list+object\":\"@else/list+object\";case\"SimpleObject\":case\"ComplexObject\":return\"@csl/object\";default:return\"@invalid\"}}function rn(e=[],t){for(let r of e)if(_[r].predicate(t))return rn(_[r].extensions,t)||r}function M(e){let t=Mt(e);return t===\"Array\"&&e.length===0?tn(e,t):rn(te[t],e)||tn(e,t)}function Gt(e,{dataType:t,predicate:r,extends:n}){let o=[];e in Ee&&(o=Ee[e],delete Ee[e],L.debug(\"[core]\",`Subclasses \"${o}\" finally registered to parent type \"${e}\"`));let i={predicate:r,extensions:o};if(_[e]=i,n){let s=_[n];s?s.extensions.push(e):(Ee[n]||(Ee[n]=[]),Ee[n].push(e),L.debug(\"[core]\",`Subclass \"${e}\" is waiting on parent type \"${n}\"`))}else(te[t]||(te[t]=[])).push(e)}function Ri(e){return Object.prototype.hasOwnProperty.call(_,e)}function _t(e){delete _[e],[...Object.keys(te).map(r=>te[r]),...Object.keys(_).map(r=>_[r].extensions).filter(r=>r.length>0)].forEach(r=>{let n=r.indexOf(e);n>-1&&r.splice(n,1)})}function Li(){return Object.keys(_)}function Bi(){let e=t=>({name:t,children:_[t].extensions.map(e)});return{name:\"Type tree\",children:Object.keys(te).map(t=>({name:t,children:te[t].map(e)}))}}var Yt=/^(?:@(.+?))(?:\\/(?:(.+?)\\+)?(?:(.+)))?$/;function xi(e,t,r){return(t=Ii(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ii(e){var t=Mi(e,\"string\");return typeof t==\"symbol\"?t:t+\"\"}function Mi(e,t){if(typeof e!=\"object\"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||\"default\");if(typeof n!=\"object\")return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}var Ze=class{constructor(t){xi(this,\"validDataTypes\",[\"String\",\"Array\",\"SimpleObject\",\"ComplexObject\",\"Primitive\"]),this.data=t}validateDataType(){let t=this.data.dataType;if(t&&!this.validDataTypes.includes(t))throw new RangeError(`dataType was ${t}; expected one of ${this.validDataTypes}`)}validateParseType(){let t=this.data.predicate;if(t&&!(t instanceof RegExp||typeof t==\"function\"))throw new TypeError(`predicate was ${typeof t}; expected RegExp or function`)}validateTokenList(){let t=this.data.tokenList;if(t&&typeof t!=\"object\")throw new TypeError(`tokenList was ${typeof t}; expected object or RegExp`)}validatePropertyConstraint(){let t=this.data.propertyConstraint;if(t&&typeof t!=\"object\")throw new TypeError(`propertyConstraint was ${typeof t}; expected array or object`)}validateElementConstraint(){let t=this.data.elementConstraint;if(t&&typeof t!=\"string\")throw new TypeError(`elementConstraint was ${typeof t}; expected string`)}validateExtends(){let t=this.data.extends;if(t&&typeof t!=\"string\")throw new TypeError(`extends was ${typeof t}; expected string`)}validate(){if(this.data===null||typeof this.data!=\"object\")throw new TypeError(`typeParser was ${typeof this.data}; expected object`);this.validateDataType(),this.validateParseType(),this.validateTokenList(),this.validatePropertyConstraint(),this.validateElementConstraint(),this.validateExtends()}parseTokenList(){let t=this.data.tokenList;if(t)t instanceof RegExp&&(t={token:t});else return[];let{token:r,split:n=/\\s+/,trim:o=!0,every:i=!0}=t,s=y=>o?y.trim():y,c=i?\"every\":\"some\";return[y=>s(y).split(n)[c](D=>r.test(D))]}parsePropertyConstraint(){return[].concat(this.data.propertyConstraint||[]).map(({props:r,match:n,value:o})=>{switch(r=[].concat(r),n){case\"any\":case\"some\":return i=>r.some(s=>s in i&&(!o||o(i[s])));case\"none\":return i=>!r.some(s=>s in i&&(!o||o(i[s])));default:return i=>r.every(s=>s in i&&(!o||o(i[s])))}})}parseElementConstraint(){let t=this.data.elementConstraint;return t?[r=>r.every(n=>M(n)===t)]:[]}parsePredicate(){return this.data.predicate instanceof RegExp?[this.data.predicate.test.bind(this.data.predicate)]:this.data.predicate?[this.data.predicate]:[]}getCombinedPredicate(){let t=[...this.parsePredicate(),...this.parseTokenList(),...this.parsePropertyConstraint(),...this.parseElementConstraint()];return t.length===0?()=>!0:t.length===1?t[0]:r=>t.every(n=>n(r))}getDataType(){return this.data.dataType?this.data.dataType:this.data.predicate instanceof RegExp||this.data.tokenList?\"String\":this.data.elementConstraint?\"Array\":\"Primitive\"}get dataType(){return this.getDataType()}get predicate(){return this.getCombinedPredicate()}get extends(){return this.data.extends}},xe=class{constructor(t,{async:r}={}){this.parser=t,this.async=r}validate(){let t=this.parser;if(typeof t!=\"function\")throw new TypeError(`parser was ${typeof t}; expected function`)}},Ie=class{constructor(t,r={}){this.format=t,r.parseType&&(this.typeParser=new Ze(r.parseType)),r.parse&&(this.dataParser=new xe(r.parse,{async:!1})),r.parseAsync&&(this.asyncDataParser=new xe(r.parseAsync,{async:!0}))}validateFormat(){let t=this.format;if(!Yt.test(t))throw new TypeError(`format name was \"${t}\"; didn't match expected pattern`)}validate(){this.validateFormat(),this.typeParser&&this.typeParser.validate(),this.dataParser&&this.dataParser.validate(),this.asyncDataParser&&this.asyncDataParser.validate()}};var tr={};P(tr,{clean:()=>er});var fn=J(qt());function ln(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ln(Object(r),!0).forEach(function(n){ta(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ln(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ta(e,t,r){return(t=ra(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ra(e){var t=na(e,\"string\");return typeof t==\"symbol\"?t:t+\"\"}function na(e,t){if(typeof e!=\"object\"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||\"default\");if(typeof n!=\"object\")return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}var oa=1,T=2,V=3,hn=4,zt={article:!0,\"article-journal\":!0,\"article-magazine\":!0,\"article-newspaper\":!0,bill:!0,book:!0,broadcast:!0,chapter:!0,classic:!0,collection:!0,dataset:!0,document:!0,entry:!0,\"entry-dictionary\":!0,\"entry-encyclopedia\":!0,event:!0,figure:!0,graphic:!0,hearing:!0,interview:!0,legal_case:!0,legislation:!0,manuscript:!0,map:!0,motion_picture:!0,musical_score:!0,pamphlet:!0,\"paper-conference\":!0,patent:!0,performance:!0,periodical:!0,personal_communication:!0,post:!0,\"post-weblog\":!0,regulation:!0,report:!0,review:!0,\"review-book\":!0,software:!0,song:!0,speech:!0,standard:!0,thesis:!0,treaty:!0,webpage:!0,\"journal-article\":\"article-journal\",\"book-chapter\":\"chapter\",\"posted-content\":\"manuscript\",\"proceedings-article\":\"paper-conference\",dissertation:\"thesis\"},pn={author:T,chair:T,\"collection-editor\":T,compiler:T,composer:T,\"container-author\":T,contributor:T,curator:T,director:T,editor:T,\"editorial-director\":T,\"executive-producer\":T,guest:T,host:T,interviewer:T,illustrator:T,narrator:T,organizer:T,\"original-author\":T,performer:T,producer:T,\"reviewed-author\":T,recipient:T,\"script-writer\":T,\"series-creator\":T,translator:T,accessed:V,\"available-date\":V,container:V,\"event-date\":V,issued:V,\"original-date\":V,submitted:V,type:hn,categories:\"object\",custom:\"object\",id:[\"string\",\"number\"],language:\"string\",journalAbbreviation:\"string\",shortTitle:\"string\",abstract:\"string\",annote:\"string\",archive:\"string\",archive_collection:\"string\",archive_location:\"string\",\"archive-place\":\"string\",authority:\"string\",\"call-number\":\"string\",\"chapter-number\":\"string\",\"citation-number\":\"string\",\"citation-key\":\"string\",\"citation-label\":\"string\",\"collection-number\":\"string\",\"collection-title\":\"string\",\"container-title\":\"string\",\"container-title-short\":\"string\",dimensions:\"string\",division:\"string\",DOI:\"string\",edition:[\"string\",\"number\"],event:\"string\",\"event-title\":\"string\",\"event-place\":\"string\",\"first-reference-note-number\":\"string\",genre:\"string\",ISBN:\"string\",ISSN:\"string\",issue:[\"string\",\"number\"],jurisdiction:\"string\",keyword:\"string\",locator:\"string\",medium:\"string\",note:\"string\",number:[\"string\",\"number\"],\"number-of-pages\":\"string\",\"number-of-volumes\":[\"string\",\"number\"],\"original-publisher\":\"string\",\"original-publisher-place\":\"string\",\"original-title\":\"string\",page:\"string\",\"page-first\":\"string\",\"part-number\":[\"string\",\"number\"],\"part-title\":\"string\",PMCID:\"string\",PMID:\"string\",printing:\"string\",publisher:\"string\",\"publisher-place\":\"string\",references:\"string\",\"reviewed-title\":\"string\",\"reviewed-genre\":\"string\",scale:\"string\",section:\"string\",source:\"string\",status:\"string\",supplement:[\"string\",\"number\"],title:\"string\",\"title-short\":\"string\",URL:\"string\",version:\"string\",volume:[\"string\",\"number\"],\"volume-title\":\"string\",\"volume-title-short\":\"string\",\"year-suffix\":\"string\"};function dn(e,t){if(typeof e==\"object\"&&e!==null&&(e.literal||e.given||e.family))return(e.ORCID||e.orcid||e._ORCID)&&(e=Qt({_orcid:e.ORCID||e.orcid||e._ORCID},e),delete e.ORCID,delete e.orcid,delete e._ORCID),e;if(t){if(typeof e==\"string\")return(0,fn.parse)(e)}else return}function ia(e,t){if(e instanceof Array){let r=e.map(n=>dn(n,t)).filter(Boolean);return r.length?r:void 0}}function Zt(e,t){return e.every(r=>typeof r==\"number\")?e:!t||e.some(r=>isNaN(parseInt(r)))?void 0:e.map(r=>parseInt(r))}function aa(e,t){let r=\"date-parts\";if(!(typeof e!=\"object\"||e===null)){if(e[r]instanceof Array&&e[r].every(n=>n instanceof Array)){let n=e[r].map(o=>Zt(o,t)).filter(Boolean);return n.length?Qt(Qt({},e),{},{\"date-parts\":n}):void 0}else if(e instanceof Array&&e.every(n=>n[r]instanceof Array)){let n=e.map(o=>Zt(o[r],t)).filter(Boolean);return n.length?{\"date-parts\":n}:void 0}else if(e[r]instanceof Array){let n=Zt(e[r],t);return n&&{\"date-parts\":[n]}}else if(\"literal\"in e||\"raw\"in e)return e}}function mn(e,t){if(e=Xt(\"language\",e,t),zt[e]===!0)return e;if(t){if(e in zt)return zt[e];if(typeof e==\"string\"&&e.toLowerCase()!==e)return mn(e.toLowerCase(),t)}}function Xt(e,t,r){let n=[].concat(pn[e]);switch(pn[e]){case oa:return dn(t,r);case T:return ia(t,r);case V:return aa(t,r);case hn:return mn(t,r)}if(r){if(typeof t==\"string\"&&n.includes(\"number\")&&!n.includes(\"string\")&&!isNaN(+t))return parseFloat(t);if(typeof t==\"number\"&&n.includes(\"string\")&&!n.includes(\"number\"))return t.toString();if(Array.isArray(t)&&t.length)return Xt(e,t[0],r)}if(n.includes(typeof t))return t}function er(e,t=!0){return e.map(function(r){let n={};for(let o in r){let i=Xt(o,r[o],t);i!==void 0&&(n[o]=i)}return n})}var Ae={},ye={},rr={\"@csl/object\":e=>[e],\"@csl/list+object\":e=>e,\"@else/list+object\":e=>e.map(t=>{let r=M(t);return Ce(t,r)}).flat(),\"@invalid\":()=>{throw new Error(\"This format is not supported or recognized\")}},nr={\"@else/list+object\":e=>Promise.all(e.map(t=>{let r=M(t);return Me(t,r)})).then(t=>t.flat())};function Ce(e,t){if(typeof Ae[t]==\"function\")return Ae[t](e);if(typeof rr[t]==\"function\")return rr[t](e);throw new TypeError(`No synchronous parser found for ${t}`)}async function Me(e,t){if(typeof ye[t]==\"function\")return ye[t](e);if(typeof nr[t]==\"function\")return nr[t](e);if(gn(t,!1))return Ce(e,t);throw new TypeError(`No parser found for ${t}`)}function et(e,{parser:t,async:r}){r?ye[e]=t:Ae[e]=t}function gn(e,t){return t?ye[e]||nr[e]:Ae[e]||rr[e]}function tt(e,t){delete(t?ye:Ae)[e]}function sa(e){return Object.keys(e?ye:Ae)}var re={};function ua(e,t){let r=new Ie(e,t);r.validate();let n=re[e]||(re[e]={});r.typeParser&&(Gt(e,r.typeParser),n.type=!0),r.dataParser&&(et(e,r.dataParser),n.data=!0),r.asyncDataParser&&(et(e,r.asyncDataParser),n.asyncData=!0),t.outputs&&(n.outputs=t.outputs)}function or(e){return re[e]}function ca(e){let t=re[e];t&&(t.type&&_t(e),t.data&&tt(e),t.asyncData&&tt(e,!0),delete re[e])}function la(e){return e in re}function pa(){return Object.keys(re)}var B={};P(B,{Grammar:()=>st,Register:()=>be,TokenStack:()=>Pn,Translator:()=>ne,deepCopy:()=>W,downgradeCsl:()=>Te,fetchFile:()=>wn,fetchFileAsync:()=>Dn,fetchId:()=>Ue,setUserAgent:()=>Sn,upgradeCsl:()=>ke});function En(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function An(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?En(Object(r),!0).forEach(function(n){fa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):En(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fa(e,t,r){return(t=ha(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ha(e){var t=da(e,\"string\");return typeof t==\"symbol\"?t:t+\"\"}function da(e,t){if(typeof e!=\"object\"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||\"default\");if(typeof n!=\"object\")return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}function ke(e){return Array.isArray(e)?e.map(ke):(e=An({},e),\"event\"in e&&(e[\"event-title\"]=e.event,delete e.event),e.type===\"book\"&&\"version\"in e&&(e.type=\"software\"),e)}function Te(e){return Array.isArray(e)?e.map(Te):(e=An({},e),\"event-title\"in e&&(e.event=e[\"event-title\"],delete e[\"event-title\"]),e.type===\"software\"&&(e.type=\"book\"),e)}function Fe(e,t=new Set){if(typeof e!=\"object\"||e===null||e.constructor!==Object&&e.constructor!==Array)return e;if(t.has(e))throw new TypeError(\"Recursively copying circular structure\");t.add(e);let r;if(e.constructor===Array)r=e.map(n=>Fe(n,t));else{let n={};for(let o in e)n[o]=Fe(e[o],t);r=n}return t.delete(e),r}var W=Fe;var cr=J(Cn());var it={name:\"@citation-js/core\",version:\"0.9.0\",description:\"Convert different bibliographic metadata sources\",keywords:[\"citation-js\",\"citation\",\"bibliography\"],author:\"Lars Willighagen <lars.willighagen@gmail.com>\",license:\"MIT\",main:\"lib/index.js\",module:\"lib-mjs/index.js\",types:\"index.d.ts\",directories:{lib:\"src\",test:\"__tests__\"},homepage:\"https://citation.js.org/\",repository:{type:\"git\",url:\"https://github.com/citation-js/citation-js.git\",directory:\"packages/core\"},bugs:{url:\"https://github.com/citation-js/citation-js/issues\"},engines:{node:\">=22.12.0\"},files:[\"lib\",\"lib-mjs\",\"index.d.ts\"],scripts:{test:\"mocha -c -R dot -r @babel/register test/*.spec.js\",\"test:live\":\"TEST_MOCK_HTTP=false npm test\",coverage:\"BABEL_ENV=coverage nyc npm test && nyc report --reporter=text-lcov > coverage.lcov\"},dependencies:{\"@citation-js/date\":\"^0.5.0\",\"@citation-js/name\":\"^0.4.2\",\"sync-fetch-undici\":\"^0.7.1\"},gitHead:\"51a37ce28fd3508e5cc2957b7d17794cdbad8ed0\"};var Ca=typeof location<\"u\"&&typeof navigator<\"u\",at=`Citation.js/${it.version}`;typeof process<\"u\"&&process&&process.release&&process.release.name===\"node\"&&process.version&&(at+=` Node.js/${process.version}`);function Tn(e){let t={},r=e instanceof Headers||e instanceof cr.default.Headers?Array.from(e):Object.entries(e);for(let[n,o]of r)t[n.toLowerCase()]=o.toString();return t}function bn(e={}){let t={headers:{accept:\"*/*\"},method:\"GET\",checkContentType:e.checkContentType};if(at&&!Ca&&(t.headers[\"user-agent\"]=at),e.body){t.method=\"POST\";let r=typeof e.body!=\"string\";t.body=r?JSON.stringify(e.body):e.body,t.headers[\"content-type\"]=r?\"application/json\":\"text/plain\"}return e.headers&&Object.assign(t.headers,Tn(e.headers)),t}function Ta(e,t){if(!e.accept||e.accept===\"*/*\"||!t[\"content-type\"])return!0;let[r,n]=t[\"content-type\"].split(\";\")[0].trim().split(\"/\");return e.accept.split(\",\").map(o=>o.split(\";\")[0].trim().split(\"/\")).some(([o,i])=>(o===r||o===\"*\")&&(i===n||i===\"*\"))}function On(e,t){let{status:r,headers:n}=e,o;if(r>=400?o=new Error(`Server responded with status code ${r}`):t.checkContentType===!0&&!Ta(t.headers,Tn(n))&&(o=new Error(`Server responded with content-type ${n.get(\"content-type\")}`)),o)throw o.status=r,o.headers=n,o.body=e.body,o;return e}function wn(e,t){let r=bn(t);return L.http(\"[core]\",r.method,e,r),On((0,cr.default)(e,r),r).text()}async function Dn(e,t){let r=bn(t);return L.http(\"[core]\",r.method,e,r),fetch(e,r).then(n=>On(n,r)).then(n=>n.text())}function Sn(e){at=e}function ba(e,t){let r;for(;r===void 0||e.includes(r);)r=`${t}${Math.random().toString().slice(2)}`;return r}var Ue=ba;var lr=class e{constructor(t){this.stack=t,this.index=0,this.current=this.stack[this.index]}static getPatternText(t){return`\"${t instanceof RegExp?t.source:t}\"`}static getMatchCallback(t){if(Array.isArray(t)){let r=t.map(e.getMatchCallback);return n=>r.some(o=>o(n))}else return t instanceof Function?t:t instanceof RegExp?r=>t.test(r):r=>t===r}tokensLeft(){return this.stack.length-this.index}matches(t){return e.getMatchCallback(t)(this.current,this.index,this.stack)}matchesSequence(t){let r=this.stack.slice(this.index,this.index+t.length).join(\"\");return typeof t==\"string\"?r===t:t.every((n,o)=>e.getMatchCallback(n)(r[o]))}consumeToken(t=/^[\\s\\S]$/,{inverse:r=!1,spaced:n=!0}={}){n&&this.consumeWhitespace();let o=this.current;if(e.getMatchCallback(t)(o,this.index,this.stack))this.current=this.stack[++this.index];else throw new SyntaxError(`Unexpected token at index ${this.index}: Expected ${e.getPatternText(t)}, got \"${o}\"`);return n&&this.consumeWhitespace(),o}consumeWhitespace(t=/^\\s$/,{optional:r=!0}={}){return this.consume(t,{min:+!r})}consumeN(t){if(this.tokensLeft()<t)throw new SyntaxError(\"Not enough tokens left\");let r=this.index;for(;t--;)this.current=this.stack[++this.index];return this.stack.slice(r,this.index).join(\"\")}consumeSequence(t){if(this.matchesSequence(t))return this.consumeN(t.length);throw new SyntaxError(`Expected \"${t}\", got \"${this.consumeN(t.length)}\"`)}consume(t=/^[\\s\\S]$/,{min:r=0,max:n=1/0,inverse:o=!1,tokenMap:i,tokenFilter:s}={}){let c=this.index,E=e.getMatchCallback(t);for(;E(this.current,this.index,this.stack)!==o;)this.current=this.stack[++this.index];let y=this.stack.slice(c,this.index);if(y.length<r)throw new SyntaxError(`Not enough ${e.getPatternText(t)}`);if(y.length>n)throw new SyntaxError(`Too many ${e.getPatternText(t)}`);return i&&(y=y.map(i)),s&&(y=y.filter(s)),y.join(\"\")}},Pn=lr;var pr=class{constructor(t={}){this.data=t}set(t,r){return this.data[t]=r,this}add(...t){return this.set(...t)}delete(t){return delete this.data[t],this}remove(...t){return this.delete(...t)}get(t){return this.data[t]}has(t){return Object.prototype.hasOwnProperty.call(this.data,t)}list(){return Object.keys(this.data)}},be=pr;var st=class{constructor(t,r){this.rules=t,this.defaultState=r,this.mainRule=Object.keys(t)[0],this.log=[]}parse(t,r){return this.lexer=t,this.token=this.lexer.next(),this.state=Fe(this.defaultState),this.log=[],this.consumeRule(r||this.mainRule)}matchEndOfFile(){return!this.token}matchToken(t){return this.token&&t===this.token.type}consumeToken(t,r){let n=this.token;if(!t||n&&n.type===t)return this.token=this.lexer.next(),n;if(r)return;{let o=n?`\"${n.type}\"`:\"EOF\",i=new SyntaxError(this.lexer.formatError(n,`expected \"${t}\", got ${o}`));throw i.message+=` (${this.log.join(\"->\")})`,i}}consumeRule(t){this.log.push(t);let r=this.rules[t].call(this);return this.log.pop(),r}};function Oa(e){return function(r){return typeof e==\"boolean\"?e:Object.keys(e).every(n=>{let o=e[n];return o===!0?n in r:o===!1?!(n in r):typeof o==\"function\"?o(r[n]):Array.isArray(o)?o.includes(r[n]):r[n]===o})}}function wa(e,t){let r,n,o,i;if(typeof e==\"string\")r=n=e;else if(e)r=t?e.target:e.source,n=t?e.source:e.target,e.convert&&(o=t?e.convert.toSource:e.convert.toTarget),e.when&&(i=t?e.when.target:e.when.source,i!=null&&(i=Oa(i)));else return null;return r=[].concat(r).filter(Boolean),n=[].concat(n).filter(Boolean),{inputProp:r,outputProp:n,convert:o,condition:i}}function vn(e,t){return t=t===ne.CONVERT_TO_SOURCE,e=e.map(r=>wa(r,t)).filter(Boolean),function(n){let o={};for(let{inputProp:i,outputProp:s,convert:c,condition:E}of e){if(s.length===0)continue;if(E&&!E(n))continue;if(i.length!==0&&i.every(D=>!(D in n)))continue;let y=i.map(D=>n[D]);if(c)try{let D=c.apply(n,y);y=s.length===1?[D]:D}catch(D){throw new Error(`Failed to convert ${i} to ${s}`,{cause:D})}s.forEach((D,k)=>{let x=y[k];x!==void 0&&(o[D]=x)})}return o}}var ne=class e{constructor(t){this.convertToSource=vn(t,e.CONVERT_TO_SOURCE),this.convertToTarget=vn(t,e.CONVERT_TO_TARGET)}};ne.CONVERT_TO_SOURCE=Symbol(\"convert to source\");ne.CONVERT_TO_TARGET=Symbol(\"convert to target\");function Da(e){return e.reduce((t,r)=>{let n=t[t.length-1];return n&&n.type===r.type?n.count=n.count+1||2:t.push(r),t},[]).map(t=>(t.count>1?t.count+\"x \":\"\")+t.type).join(\" -> \")}var ut=class{constructor(t,r={}){this.options=Object.assign({generateGraph:!0,forceType:M(t),maxChainLength:10,strict:!0,target:\"@csl/list+object\"},r),this.type=this.options.forceType,this.data=typeof t==\"object\"?W(t):t,this.graph=[{type:this.type,data:t}],this.iteration=0}iterate(){if(this.iteration!==0){let t=or(this.type);t&&t.outputs?this.type=t.outputs:this.type=M(this.data),this.graph.push({type:this.type})}return this.error||this.type===this.options.target?!1:this.iteration>=this.options.maxChainLength?(this.error=new RangeError(`Max. number of parsing iterations reached (${Da(this.graph)})`),!1):(this.iteration++,!0)}end(){if(this.error){if(L.error(\"[core]\",this.error.message),this.options.strict!==!1)throw this.error;return[]}else return this.options.target===\"@csl/list+object\"?ke(this.data).map(this.options.generateGraph?t=>Ft(t,this.graph):Ut):this.data}},fr=(...e)=>{let t=new ut(...e);for(;t.iterate();)try{t.data=Ce(t.data,t.type)}catch(r){t.error=r}return t.end()},Sa=e=>{let t=M(e),r=t.match(/array|object/)?W(e):e;return Ce(r,t)},hr=async(...e)=>{let t=new ut(...e);for(;t.iterate();)t.data=await Me(t.data,t.type).catch(r=>{t.error=r});return t.end()},Pa=async e=>{let t=M(e),r=t.match(/array|object/)?W(e):e;return Me(r,t)};var va=Object.assign({},kt,jt,Ht,tr);function Na(e,t={},r=!1){return(t===!0||r===!0)&&this.save(),this.data.push(...fr(e,t)),this.data.filter(n=>!Object.prototype.hasOwnProperty.call(n,\"id\")).forEach(n=>{n.id=Ue(this.getIds(),\"temp_id_\")}),this}async function Ra(e,t={},r=!1){return(t===!0||r===!0)&&this.save(),this.data.push(...await hr(e,t)),this.data.filter(n=>!Object.prototype.hasOwnProperty.call(n,\"id\")).forEach(n=>{n.id=Ue(this.getIds(),\"temp_id_\")}),this}function La(e,t={},r=!1){return(t===!0||r===!0)&&this.save(),this.data=[],typeof t!=\"boolean\"?this.add(e,t):this.add(e)}async function Ba(e,t={},r=!1){return(t===!0||r===!0)&&this.save(),this.data=[],typeof t!=\"boolean\"?this.addAsync(e,t):this.addAsync(e)}function xa(e){return e&&this.save(),this.data=[],this._options={},this}var gr={};P(gr,{sort:()=>ka});function mr(e){if(\"citation-label\"in e)return e[\"citation-label\"];let t=\"\";return e.author&&(t+=e.author[0].family||e.author[0].literal),e.issued&&e.issued[\"date-parts\"]&&e.issued[\"date-parts\"][0]&&(t+=e.issued[\"date-parts\"][0][0]),e[\"year-suffix\"]?t+=e[\"year-suffix\"]:e.title&&(t+=e.title.replace(/<\\/?.*?>/g,\"\").match(/^(?:(?:the|a|an)\\s+)?(\\S+)/i)[1]),t}var Nn={label(e){return e.reduce((t,r)=>(t[r.id]=mr(r),t),{})}};var Ln=J(qt());function Rn(e,t,r=t===\"label\"){let n=r?mr(e):e[t];switch(t){case\"author\":case\"editor\":return n.map(o=>o.literal||o.family||(0,Ln.format)(o));case\"accessed\":case\"issued\":return n[\"date-parts\"][0];case\"page\":return n.split(\"-\").map(o=>parseInt(o));case\"edition\":case\"issue\":case\"volume\":return n=parseInt(n),isNaN(n)?-1/0:n;default:return n||-1/0}}function Ia(e,t,r,n=/^!/.test(r)){r=r.replace(/^!/,\"\");let o=Rn(e,r),i=Rn(t,r);return(n?-1:1)*(o>i?1:o<i?-1:0)}function Ma(...e){return(t,r)=>{let n=e.slice(),o=0;for(;!o&&n.length;)o=Ia(t,r,n.shift());return o}}function ka(e=[],t){return t&&this.save(),this.data.sort(typeof e==\"function\"?e:Ma(...e,\"label\")),this}var Ar={};P(Ar,{format:()=>Ha,get:()=>Ka,getIds:()=>Ya});var lt={};P(lt,{add:()=>Ua,format:()=>Er,has:()=>Ga,list:()=>_a,register:()=>oe,remove:()=>ja});function Fa(e,t){if(typeof e!=\"string\")throw new TypeError(`Invalid output format name, expected string, got ${typeof e}`);if(typeof t!=\"function\")throw new TypeError(`Invalid formatter, expected function, got ${typeof t}`)}var oe=new be;function Ua(e,t){Fa(e,t),oe.set(e,t)}function ja(e){oe.remove(e)}function Ga(e){return oe.has(e)}function _a(){return oe.list()}function Er(e,t,...r){if(!oe.has(e))throw new Error(`Output format \"${e}\" unavailable`);return oe.get(e)(t,...r)}function Ya(){return this.data.map(e=>e.id)}function Ha(e,...t){return Er(e,er(this.data),...t)}function Ka(e={}){me(e);let t=Object.assign({},this.defaultOptions,this._options.output,e),{type:r,style:n}=t,[o,i]=n.split(\"-\"),s=o===\"citation\"?\"bibliography\":o===\"csl\"?\"data\":o,c=r===\"string\"?\"text\":r===\"json\"?\"object\":r,E;switch(s){case\"bibliography\":{let{lang:k,append:x,prepend:Re}=t;E={template:i,lang:k,format:c,append:x,prepend:Re};break}case\"data\":case\"bibtex\":case\"bibtxt\":case\"ndjson\":case\"ris\":E={type:c};break;default:throw new Error(`Invalid style \"${s}\"`)}let y=this.format(s,Object.assign(E,e._newOptions)),{format:D}=t;if(D===\"real\"&&c===\"html\"&&typeof document<\"u\"&&typeof document.createElement==\"function\"){let k=document.createElement(\"div\");return k.innerHTML=y,k.firstChild}else return D===\"string\"&&typeof y==\"object\"?JSON.stringify(y):y}var yr={};P(yr,{async:()=>Bn,validateOptions:()=>Pi,validateOutputOptions:()=>me});function $a(e,t,r){typeof t==\"function\"&&!r&&(r=t,t=void 0);let n=new this().setAsync(e,t);if(typeof r==\"function\"){n.then(r);return}else return n}var Bn=$a;function Oe(e,t={}){return this instanceof Oe?(this._options=t,this.log=[],this.data=[],this.set(e,t),this.options(t),this):new Oe(e,t)}Object.assign(Oe.prototype,Bt,xt,dr,gr,Ar);Oe.prototype[Symbol.iterator]=function*(){yield*this.data};Object.assign(Oe,yr);var Cr=Oe;var j={};P(j,{add:()=>br,config:()=>pt,dict:()=>we,has:()=>os,input:()=>ct,list:()=>is,output:()=>lt,remove:()=>ns});var we={};P(we,{add:()=>Va,get:()=>Za,has:()=>qa,list:()=>za,register:()=>ie,remove:()=>Wa});function Ja(e,t){if(typeof e!=\"string\")throw new TypeError(`Invalid dict name, expected string, got ${typeof e}`);if(typeof t!=\"object\")throw new TypeError(`Invalid dict, expected object, got ${typeof t}`);for(let r in t){let n=t[r];if(!Array.isArray(n)||n.some(o=>typeof o!=\"string\"))throw new TypeError(`Invalid dict entry \"${r}\", expected array of strings`)}}var ie=new be({html:{bibliographyContainer:['<div class=\"csl-bib-body\">',\"</div>\"],entry:['<div class=\"csl-entry\">',\"</div>\"],list:['<ul style=\"list-style-type:none\">',\"</ul>\"],listItem:[\"<li>\",\"</li>\"]},text:{bibliographyContainer:[\"\",`\n`],entry:[\"\",`\n`],list:[`\n`,\"\"],listItem:[\"\t\",`\n`]}});function Va(e,t){Ja(e,t),ie.set(e,t)}function Wa(e){ie.remove(e)}function qa(e){return ie.has(e)}function za(){return ie.list()}function Za(e){if(!ie.has(e))throw new Error(`Dict \"${e}\" unavailable`);return ie.get(e)}var pt={};P(pt,{add:()=>Qa,get:()=>Xa,has:()=>es,list:()=>rs,remove:()=>ts});var je={};function Qa(e,t){je[e]=t}function Xa(e){return je[e]}function es(e){return Object.prototype.hasOwnProperty.call(je,e)}function ts(e){delete je[e]}function rs(){return Object.keys(je)}var Tr={input:ct,output:lt,dict:we,config:pt},Ge={};function br(e,t={}){let r=Ge[e]={};for(let n in t){if(n===\"config\"){r.config={[e]:t.config},Tr.config.add(e,t.config);continue}let o=r[n]={},i=t[n];for(let s in i){let c=i[s];o[s]=!0,Tr[n].add(s,c)}}}function ns(e){let t=Ge[e];for(let r in t){let n=t[r];for(let o in n)Tr[r].remove(o)}delete Ge[e]}function os(e){return e in Ge}function is(){return Object.keys(Ge)}function ft(){return[]}var ss=[[/((?:\\[|:|,)\\s*)'((?:\\\\'|[^'])*?[^\\\\])?'(?=\\s*(?:\\]|}|,))/g,'$1\"$2\"'],[/((?:(?:\"|]|}|\\/[gmiuys]|\\.|(?:\\d|\\.|-)*\\d)\\s*,|{)\\s*)(?:\"([^\":\\n]+?)\"|'([^\":\\n]+?)'|([^\":\\n]+?))(\\s*):/g,'$1\"$2$3$4\"$5:']];function xn(e){if(typeof e!=\"string\")return JSON.parse(e);try{return JSON.parse(e)}catch{return L.debug(\"[plugin-common]\",\"Invalid JSON, switching to experimental parser\"),ss.forEach(([r,n])=>{e=e.replace(r,n)}),JSON.parse(e)}}function In(e){return e.val()||e.text()||e.html()}function Mn(e){return e.value||e.textContent}var kn=\"@else\";var Fn={\"@empty/text\":{parse:ft,parseType:{dataType:\"String\",predicate:e=>e===\"\"}},\"@empty/whitespace+text\":{parse:ft,parseType:{dataType:\"String\",predicate:/^\\s+$/}},\"@empty\":{parse:ft,parseType:{dataType:\"Primitive\",predicate:e=>e==null}},\"@else/json\":{parse:xn,parseType:{dataType:\"String\",predicate:/^\\s*(\\{[\\S\\s]*\\}|\\[[\\S\\s]*\\])\\s*$/}},\"@else/url\":{parseType:{dataType:\"String\",predicate:/^https?:\\/\\/(([\\w-]+\\.)*[\\w-]+)(:\\d+)?(\\/[^?/]*)*(\\?[^#]*)?(#.*)?$/i}},\"@else/jquery\":{parse:In,parseType:{dataType:\"ComplexObject\",predicate(e){return typeof jQuery<\"u\"&&e instanceof jQuery}}},\"@else/html\":{parse:Mn,parseType:{dataType:\"ComplexObject\",predicate(e){return typeof HTMLElement<\"u\"&&e instanceof HTMLElement}}}};function jn(e,t,r){return e+(t<r.length-1?\",\":\"\")}function Gn(e,t){let r=Array.isArray(e),n;return r?n=e.map(o=>Un(o,t)):n=Object.keys(e).filter(o=>JSON.stringify(e[o])).map(o=>`\"${o}\": ${Un(e[o],t)}`),n=n.map(jn).map(o=>t.listItem.join(o)),n=t.list.join(n.join(\"\")),r?`[${n}]`:`{${n}}`}function Un(e,t){return typeof e==\"object\"&&e!==null?e.length===0?\"[]\":Object.keys(e).length===0?\"{}\":Gn(e,t):JSON.stringify(e)}function ps(e,t){let r=e.map(n=>Gn(n,t));return r=r.map(jn).map(n=>t.entry.join(n)),r=r.join(\"\"),t.bibliographyContainer.join(`[${r}]`)}var _n={data(e,{type:t,format:r=t||\"text\",version:n=\"1.0.2\"}={}){return n<\"1.0.2\"&&(e=Te(e)),r===\"object\"?W(e):r===\"text\"?JSON.stringify(e,null,2):(L.warn(\"[core]\",\"This feature (JSON output with special formatting) is unstable. See https://github.com/larsgw/citation.js/issues/144\"),ps(e,we.get(r)))},ndjson(e,{version:t=\"1.0.2\"}={}){return t<\"1.0.2\"&&(e=Te(e)),e.map(r=>JSON.stringify(r)).join(`\n`)}};var Yn=Object.assign({},_n,Nn);br(kn,{input:Fn,output:Yn});var xl=it.version;var Wn=J(Or());var _e={source:{article:\"article-journal\",book:\"book\",mvbook:\"book\",inbook:\"chapter\",bookinbook:\"book\",booklet:\"book\",collection:\"book\",mvcollection:\"book\",incollection:\"chapter\",dataset:\"dataset\",manual:\"report\",misc:\"document\",online:\"webpage\",patent:\"patent\",periodical:\"periodical\",proceedings:\"book\",mvproceedings:\"book\",inproceedings:\"paper-conference\",reference:\"book\",mvreference:\"book\",inreference:\"entry\",report:\"report\",software:\"software\",thesis:\"thesis\",unpublished:\"manuscript\",artwork:\"graphic\",audio:\"song\",image:\"figure\",jurisdiction:\"legal_case\",legislation:\"legislation\",legal:\"treaty\",letter:\"personal_communication\",movie:\"motion_picture\",music:\"musical_score\",performance:\"performance\",review:\"review\",standard:\"standard\",video:\"motion_picture\",conference:\"paper-conference\",electronic:\"webpage\",mastersthesis:\"thesis\",phdthesis:\"thesis\",techreport:\"report\",www:\"webpage\"},target:{article:\"article\",\"article-journal\":\"article\",\"article-magazine\":\"article\",\"article-newspaper\":\"article\",bill:\"legislation\",book:\"book\",broadcast:\"audio\",chapter:\"inbook\",classic:\"unpublished\",collection:\"misc\",dataset:\"dataset\",document:\"misc\",entry:\"inreference\",\"entry-dictionary\":\"inreference\",\"entry-encyclopedia\":\"inreference\",event:\"misc\",figure:\"artwork\",graphic:\"artwork\",hearing:\"legal\",interview:\"audio\",legal_case:\"jurisdiction\",legislation:\"legislation\",manuscript:\"unpublished\",motion_picture:\"movie\",musical_score:\"music\",\"paper-conference\":\"inproceedings\",patent:\"patent\",performance:\"performance\",periodical:\"periodical\",personal_communication:\"letter\",post:\"online\",\"post-weblog\":\"online\",regulation:\"legal\",report:\"report\",review:\"review\",\"review-book\":\"review\",software:\"software\",song:\"music\",speech:\"audio\",standard:\"standard\",thesis:\"thesis\",treaty:\"legal\",webpage:\"online\"}};var Ye={source:{article:\"article-journal\",book:\"book\",booklet:\"book\",conference:\"paper-conference\",inbook:\"chapter\",incollection:\"chapter\",inproceedings:\"paper-conference\",manual:\"report\",mastersthesis:\"thesis\",misc:\"document\",phdthesis:\"thesis\",proceedings:\"book\",techreport:\"report\",unpublished:\"manuscript\"},target:{article:\"article\",\"article-journal\":\"article\",\"article-magazine\":\"article\",\"article-newspaper\":\"article\",book:\"book\",chapter:\"inbook\",manuscript:\"unpublished\",\"paper-conference\":\"inproceedings\",report:\"techreport\",review:\"article\",\"review-book\":\"article\"}};var yt={};P(yt,{argumentCommands:()=>Et,commands:()=>se,defaultStrings:()=>wr,diacritics:()=>ae,fieldTypes:()=>De,formatting:()=>Ke,formattingCommands:()=>gt,formattingEnvs:()=>He,ligaturePattern:()=>Dr,ligatures:()=>ce,mathCommands:()=>ue,mathScriptFormatting:()=>$e,mathScripts:()=>At,required:()=>mt,sentenceCaseLanguages:()=>Sr});var Kn={biblatex:{article:[\"author\",\"title\",\"journaltitle\",[\"year\",\"date\"]],book:[\"author\",\"title\",[\"year\",\"date\"]],mvbook:[\"author\",\"title\",[\"year\",\"date\"]],inbook:[\"author\",\"title\",\"booktitle\",[\"year\",\"date\"]],booklet:[[\"author\",\"editor\"],\"title\",[\"year\",\"date\"]],collection:[\"editor\",\"title\",[\"year\",\"date\"]],mvcollection:[\"editor\",\"title\",[\"year\",\"date\"]],incollection:[\"author\",\"title\",\"booktitle\",[\"year\",\"date\"]],dataset:[[\"author\",\"editor\"],\"title\",[\"year\",\"date\"]],online:[[\"author\",\"editor\"],\"title\",[\"year\",\"date\"],[\"doi\",\"eprint\",\"url\"]],patent:[\"author\",\"title\",\"number\",[\"year\",\"date\"]],periodical:[\"editor\",\"title\",[\"year\",\"date\"]],proceedings:[\"title\",[\"year\",\"date\"]],mvproceedings:[\"title\",[\"year\",\"date\"]],inproceedings:[\"author\",\"title\",\"booktitle\",[\"year\",\"date\"]],report:[\"author\",\"title\",\"type\",\"institution\",[\"year\",\"date\"]],thesis:[\"author\",\"title\",\"type\",\"institution\",[\"year\",\"date\"]],unpublished:[\"author\",\"title\",[\"year\",\"date\"]],conference:[\"author\",\"title\",\"booktitle\",[\"year\",\"date\"]],electronic:[[\"author\",\"editor\"],\"title\",[\"year\",\"date\"],[\"doi\",\"eprint\",\"url\"]],mastersthesis:[\"author\",\"title\",\"institution\",[\"year\",\"date\"]],phdthesis:[\"author\",\"title\",\"institution\",[\"year\",\"date\"]],techreport:[\"author\",\"title\",\"institution\",[\"year\",\"date\"]],www:[[\"author\",\"editor\"],\"title\",[\"year\",\"date\"],[\"doi\",\"eprint\",\"url\"]]},bibtex:{article:[\"author\",\"title\",\"journal\",\"year\"],book:[[\"author\",\"editor\"],\"title\",\"publisher\",\"year\"],booklet:[\"title\"],inbook:[[\"author\",\"editor\"],\"title\",[\"chapter\",\"pages\"],\"publisher\",\"year\"],incollection:[\"author\",\"title\",\"booktitle\",\"publisher\",\"year\"],inproceedings:[\"author\",\"title\",\"booktitle\",\"year\"],mastersthesis:[\"author\",\"title\",\"school\",\"year\"],phdthesis:[\"author\",\"title\",\"school\",\"year\"],proceedings:[\"title\",\"year\"],techreport:[\"author\",\"title\",\"institution\",\"year\"],unpublished:[\"author\",\"title\",\"note\"]}};var $n={abstract:[\"field\",\"literal\"],addendum:[\"field\",\"literal\"],afterword:[\"list\",\"name\"],annotation:[\"field\",\"literal\"],annotator:[\"list\",\"name\"],author:[\"list\",\"name\"],authortype:[\"field\",\"key\"],bookauthor:[\"list\",\"name\"],bookpagination:[\"field\",\"key\"],booksubtitle:[\"field\",\"literal\"],booktitle:[\"field\",\"title\"],booktitleaddon:[\"field\",\"literal\"],chapter:[\"field\",\"literal\"],commentator:[\"list\",\"name\"],date:[\"field\",\"date\"],doi:[\"field\",\"verbatim\"],edition:[\"field\",\"literal\"],editor:[\"list\",\"name\"],editora:[\"list\",\"name\"],editorb:[\"list\",\"name\"],editorc:[\"list\",\"name\"],editortype:[\"field\",\"key\"],editoratype:[\"field\",\"key\"],editorbtype:[\"field\",\"key\"],editorctype:[\"field\",\"key\"],eid:[\"field\",\"literal\"],entrysubtype:[\"field\",\"literal\"],eprint:[\"field\",\"verbatim\"],eprintclass:[\"field\",\"literal\"],eprinttype:[\"field\",\"literal\"],eventdate:[\"field\",\"date\"],eventtitle:[\"field\",\"title\"],eventtitleaddon:[\"field\",\"literal\"],file:[\"field\",\"verbatim\"],foreword:[\"list\",\"name\"],holder:[\"list\",\"name\"],howpublished:[\"field\",\"literal\"],indextitle:[\"field\",\"literal\"],institution:[\"list\",\"literal\"],introduction:[\"list\",\"name\"],isan:[\"field\",\"literal\"],isbn:[\"field\",\"literal\"],ismn:[\"field\",\"literal\"],isrn:[\"field\",\"literal\"],issn:[\"field\",\"literal\"],issue:[\"field\",\"literal\"],issuesubtitle:[\"field\",\"literal\"],issuetitle:[\"field\",\"literal\"],iswc:[\"field\",\"literal\"],journalsubtitle:[\"field\",\"literal\"],journaltitle:[\"field\",\"literal\"],label:[\"field\",\"literal\"],language:[\"list\",\"key\"],library:[\"field\",\"literal\"],location:[\"list\",\"literal\"],mainsubtitle:[\"field\",\"literal\"],maintitle:[\"field\",\"title\"],maintitleaddon:[\"field\",\"literal\"],month:[\"field\",\"literal\"],nameaddon:[\"field\",\"literal\"],note:[\"field\",\"literal\"],number:[\"field\",\"literal\"],organization:[\"list\",\"literal\"],origdate:[\"field\",\"date\"],origlanguage:[\"list\",\"key\"],origlocation:[\"list\",\"literal\"],origpublisher:[\"list\",\"literal\"],origtitle:[\"field\",\"title\"],pages:[\"field\",\"range\"],pagetotal:[\"field\",\"literal\"],pagination:[\"field\",\"key\"],part:[\"field\",\"literal\"],publisher:[\"list\",\"literal\"],pubstate:[\"field\",\"key\"],reprinttitle:[\"field\",\"literal\"],series:[\"field\",\"title\"],shortauthor:[\"list\",\"name\"],shorteditor:[\"list\",\"name\"],shorthand:[\"field\",\"literal\"],shorthandintro:[\"field\",\"literal\"],shortjournal:[\"field\",\"literal\"],shortseries:[\"field\",\"literal\"],shorttitle:[\"field\",\"title\"],subtitle:[\"field\",\"literal\"],title:[\"field\",\"title\"],titleaddon:[\"field\",\"literal\"],translator:[\"list\",\"name\"],type:[\"field\",\"title\"],url:[\"field\",\"uri\"],urldate:[\"field\",\"date\"],venue:[\"field\",\"literal\"],version:[\"field\",\"literal\"],volume:[\"field\",\"integer\"],volumes:[\"field\",\"integer\"],year:[\"field\",\"literal\"],crossref:[\"field\",\"entry key\"],entryset:[\"separated\",\"literal\"],execute:[\"field\",\"code\"],gender:[\"field\",\"gender\"],langid:[\"field\",\"identifier\"],langidopts:[\"field\",\"literal\"],ids:[\"separated\",\"entry key\"],indexsorttitle:[\"field\",\"literal\"],keywords:[\"separated\",\"literal\"],options:[\"separated\",\"options\"],presort:[\"field\",\"string\"],related:[\"separated\",\"literal\"],relatedoptions:[\"separated\",\"literal\"],relatedtype:[\"field\",\"identifier\"],relatedstring:[\"field\",\"literal\"],sortkey:[\"field\",\"literal\"],sortname:[\"list\",\"name\"],sortshorthand:[\"field\",\"literal\"],sorttitle:[\"field\",\"literal\"],sortyear:[\"field\",\"integer\"],xdata:[\"separated\",\"entry key\"],xref:[\"field\",\"entry key\"],namea:[\"list\",\"name\"],nameb:[\"list\",\"name\"],namec:[\"list\",\"name\"],nameatype:[\"field\",\"key\"],namebtype:[\"field\",\"key\"],namectype:[\"field\",\"key\"],lista:[\"list\",\"literal\"],listb:[\"list\",\"literal\"],listc:[\"list\",\"literal\"],listd:[\"list\",\"literal\"],liste:[\"list\",\"literal\"],listf:[\"list\",\"literal\"],usera:[\"field\",\"literal\"],userb:[\"field\",\"literal\"],userc:[\"field\",\"literal\"],userd:[\"field\",\"literal\"],usere:[\"field\",\"literal\"],userf:[\"field\",\"literal\"],verba:[\"field\",\"literal\"],verbb:[\"field\",\"literal\"],verbc:[\"field\",\"literal\"],address:[\"list\",\"literal\"],annote:[\"field\",\"literal\"],archiveprefix:[\"field\",\"literal\"],journal:[\"field\",\"literal\"],key:[\"field\",\"literal\"],pdf:[\"field\",\"verbatim\"],primaryclass:[\"field\",\"literal\"],school:[\"list\",\"literal\"],numpages:[\"field\",\"integer\"],pmid:[\"field\",\"literal\"],pmcid:[\"field\",\"literal\"]};var dt={diacritics:{\"`\":\"\\u0300\",\"'\":\"\\u0301\",\"^\":\"\\u0302\",\"~\":\"\\u0303\",\"=\":\"\\u0304\",u:\"\\u0306\",\".\":\"\\u0307\",'\"':\"\\u0308\",r:\"\\u030A\",H:\"\\u030B\",v:\"\\u030C\",b:\"\\u0332\",d:\"\\u0323\",c:\"\\u0327\",k:\"\\u0328\",t:\"\\u0361\",textcommabelow:\"\\u0326\"},commands:{textquotesingle:\"'\",textasciigrave:\"`\",textquotedbl:'\"',textdollar:\"$\",textless:\"<\",textgreater:\">\",textbackslash:\"\\\\\",textasciicircum:\"^\",textunderscore:\"_\",textbraceleft:\"{\",textbar:\"|\",textbraceright:\"}\",textasciitilde:\"~\",textexclamdown:\"\\xA1\",textcent:\"\\xA2\",textsterling:\"\\xA3\",textcurrency:\"\\xA4\",textyen:\"\\xA5\",textbrokenbar:\"\\xA6\",textsection:\"\\xA7\",textasciidieresis:\"\\xA8\",textcopyright:\"\\xA9\",textordfeminine:\"\\xAA\",guillemetleft:\"\\xAB\",guillemotleft:\"\\xAB\",textlnot:\"\\xAC\",textregistered:\"\\xAE\",textasciimacron:\"\\xAF\",textdegree:\"\\xB0\",textpm:\"\\xB1\",texttwosuperior:\"\\xB2\",textthreesuperior:\"\\xB3\",textasciiacute:\"\\xB4\",textmu:\"\\xB5\",textparagraph:\"\\xB6\",textperiodcentered:\"\\xB7\",textonesuperior:\"\\xB9\",textordmasculine:\"\\xBA\",guillemetright:\"\\xBB\",guillemotright:\"\\xBB\",textonequarter:\"\\xBC\",textonehalf:\"\\xBD\",textthreequarters:\"\\xBE\",textquestiondown:\"\\xBF\",AE:\"\\xC6\",DH:\"\\xD0\",texttimes:\"\\xD7\",O:\"\\xD8\",TH:\"\\xDE\",ss:\"\\xDF\",ae:\"\\xE6\",dh:\"\\xF0\",textdiv:\"\\xF7\",o:\"\\xF8\",th:\"\\xFE\",DJ:\"\\u0110\",dj:\"\\u0111\",i:\"\\u0131\",IJ:\"\\u0132\",ij:\"\\u0133\",L:\"\\u0141\",l:\"\\u0142\",NG:\"\\u014A\",ng:\"\\u014B\",OE:\"\\u0152\",oe:\"\\u0153\",textflorin:\"\\u0192\",j:\"\\u0237\",textasciicaron:\"\\u02C7\",textasciibreve:\"\\u02D8\",textacutedbl:\"\\u02DD\",textgravedbl:\"\\u02F5\",texttildelow:\"\\u02F7\",textbaht:\"\\u0E3F\",SS:\"\\u1E9E\",textcompwordmark:\"\\u200C\",textendash:\"\\u2013\",textemdash:\"\\u2014\",textbardbl:\"\\u2016\",textquoteleft:\"\\u2018\",textquoteright:\"\\u2019\",quotesinglbase:\"\\u201A\",textquotedblleft:\"\\u201C\",textquotedblright:\"\\u201D\",quotedblbase:\"\\u201E\",textdagger:\"\\u2020\",textdaggerdbl:\"\\u2021\",textbullet:\"\\u2022\",textellipsis:\"\\u2026\",textperthousand:\"\\u2030\",textpertenthousand:\"\\u2031\",guilsinglleft:\"\\u2039\",guilsinglright:\"\\u203A\",textreferencemark:\"\\u203B\",textinterrobang:\"\\u203D\",textfractionsolidus:\"\\u2044\",textlquill:\"\\u2045\",textrquill:\"\\u2046\",textdiscount:\"\\u2052\",textcolonmonetary:\"\\u20A1\",textlira:\"\\u20A4\",textnaira:\"\\u20A6\",textwon:\"\\u20A9\",textdong:\"\\u20AB\",texteuro:\"\\u20AC\",textpeso:\"\\u20B1\",textcelsius:\"\\u2103\",textnumero:\"\\u2116\",textcircledP:\"\\u2117\",textrecipe:\"\\u211E\",textservicemark:\"\\u2120\",texttrademark:\"\\u2122\",textohm:\"\\u2126\",textmho:\"\\u2127\",textestimated:\"\\u212E\",textleftarrow:\"\\u2190\",textuparrow:\"\\u2191\",textrightarrow:\"\\u2192\",textdownarrow:\"\\u2193\",textminus:\"\\u2212\",Hwithstroke:\"\\u0126\",hwithstroke:\"\\u0127\",textasteriskcentered:\"\\u2217\",textsurd:\"\\u221A\",textlangle:\"\\u2329\",textrangle:\"\\u232A\",textblank:\"\\u2422\",textvisiblespace:\"\\u2423\",textopenbullet:\"\\u25E6\",textbigcircle:\"\\u25EF\",textmusicalnote:\"\\u266A\",textmarried:\"\\u26AD\",textdivorced:\"\\u26AE\",textinterrobangdown:\"\\u2E18\",textcommabelow:null,copyright:\"\\xA9\"},mathCommands:{Gamma:\"\\u0393\",Delta:\"\\u0394\",Theta:\"\\u0398\",Lambda:\"\\u039B\",Xi:\"\\u039E\",Pi:\"\\u03A0\",Sigma:\"\\u03A3\",Phi:\"\\u03A6\",Psi:\"\\u03A8\",Omega:\"\\u03A9\",alpha:\"\\u03B1\",beta:\"\\u03B2\",gamma:\"\\u03B3\",delta:\"\\u03B4\",varepsilon:\"\\u03B5\",zeta:\"\\u03B6\",eta:\"\\u03B7\",theta:\"\\u03B8\",iota:\"\\u03B9\",kappa:\"\\u03BA\",lambda:\"\\u03BB\",mu:\"\\u03BC\",nu:\"\\u03BD\",xi:\"\\u03BE\",pi:\"\\u03C0\",rho:\"\\u03C1\",varsigma:\"\\u03C2\",sigma:\"\\u03C3\",tau:\"\\u03C4\",upsilon:\"\\u03C5\",varphi:\"\\u03C6\",chi:\"\\u03C7\",psi:\"\\u03C8\",omega:\"\\u03C9\",vartheta:\"\\u03D1\",Upsilon:\"\\u03D2\",phi:\"\\u03D5\",varpi:\"\\u03D6\",varrho:\"\\u03F1\",epsilon:\"\\u03F5\"}};var mt=Kn,De=$n,ae=dt.diacritics,se=dt.commands,ue=dt.mathCommands,wr={jan:\"01\",feb:\"02\",mar:\"03\",apr:\"04\",may:\"05\",jun:\"06\",jul:\"07\",aug:\"08\",sep:\"09\",oct:\"10\",nov:\"11\",dec:\"12\",acmcs:\"ACM Computing Surveys\",acta:\"Acta Informatica\",cacm:\"Communications of the ACM\",ibmjrd:\"IBM Journal of Research and Development\",ibmsj:\"IBM Systems Journal\",ieeese:\"IEEE Transactions on Software Engineering\",ieeetc:\"IEEE Transactions on Computers\",ieeetcad:\"IEEE Transactions on Computer-Aided Design of Integrated Circuits\",ipl:\"Information Processing Letters\",jacm:\"Journal of the ACM\",jcss:\"Journal of Computer and System Sciences\",scp:\"Science of Computer Programming\",sicomp:\"SIAM Journal on Computing\",tocs:\"ACM Transactions on Computer Systems\",tods:\"ACM Transactions on Database Systems\",tog:\"ACM Transactions on Graphics\",toms:\"ACM Transactions on Mathematical Software\",toois:\"ACM Transactions on Office Information Systems\",toplas:\"ACM Transactions on Programming Languages and Systems\",tcs:\"Theoretical Computer Science\"},He={it:\"italics\",itshape:\"italics\",sl:\"italics\",slshape:\"italics\",em:\"italics\",bf:\"bold\",bfseries:\"bold\",sc:\"smallcaps\",scshape:\"smallcaps\",rm:void 0,sf:void 0,tt:void 0},gt={textit:\"italics\",textsl:\"italics\",emph:\"italics\",mkbibitalic:\"italics\",mkbibemph:\"italics\",textbf:\"bold\",strong:\"bold\",mkbibbold:\"bold\",textsc:\"smallcaps\",textsuperscript:\"superscript\",textsubscript:\"subscript\",enquote:\"quotes\",mkbibquote:\"quotes\",textmd:void 0,textrm:void 0,textsf:void 0,texttt:void 0,textup:void 0},Ke={italics:[\"<i>\",\"</i>\"],bold:[\"<b>\",\"</b>\"],superscript:[\"<sup>\",\"</sup>\"],subscript:[\"<sub>\",\"</sub>\"],smallcaps:['<span style=\"font-variant:small-caps;\">',\"</span>\"],nocase:['<span class=\"nocase\">',\"</span>\"],quotes:[\"\\u201C\",\"\\u201D\"]},Et={ElsevierGlyph(e){return String.fromCharCode(parseInt(e,16))},href(e,t){return e},url(e){return e}},Dr=/---?|''|``|~/g,ce={\"--\":\"\\u2013\",\"---\":\"\\u2014\",\"``\":\"\\u201C\",\"''\":\"\\u201D\",\"~\":\"\\xA0\"},$e={\"^\":\"superscript\",sp:\"superscript\",_:\"subscript\",sb:\"subscript\",mathrm:void 0},At={\"^\":{0:\"\\u2070\",1:\"\\xB9\",2:\"\\xB2\",3:\"\\xB3\",4:\"\\u2074\",5:\"\\u2075\",6:\"\\u2076\",7:\"\\u2077\",8:\"\\u2078\",9:\"\\u2079\",\"+\":\"\\u207A\",\"-\":\"\\u207B\",\"=\":\"\\u207C\",\"(\":\"\\u207D\",\")\":\"\\u207E\",i:\"\\u2071\",n:\"\\u207F\"},_:{0:\"\\u2080\",1:\"\\u2081\",2:\"\\u2082\",3:\"\\u2083\",4:\"\\u2084\",5:\"\\u2085\",6:\"\\u2086\",7:\"\\u2087\",8:\"\\u2088\",9:\"\\u2089\",\"+\":\"\\u208A\",\"-\":\"\\u208B\",\"=\":\"\\u208C\",\"(\":\"\\u208D\",\")\":\"\\u208E\",a:\"\\u2090\",e:\"\\u2091\",o:\"\\u2092\",x:\"\\u2093\",\\u0259:\"\\u2094\",h:\"\\u2095\",k:\"\\u2096\",l:\"\\u2097\",m:\"\\u2098\",n:\"\\u2099\",s:\"\\u209A\",p:\"\\u209B\",t:\"\\u209C\"}},Sr=[\"american\",\"british\",\"canadian\",\"english\",\"australian\",\"newzealand\",\"usenglish\",\"ukenglish\",\"en\",\"eng\",\"en-au\",\"en-bz\",\"en-ca\",\"en-cb\",\"en-gb\",\"en-ie\",\"en-jm\",\"en-nz\",\"en-ph\",\"en-tt\",\"en-us\",\"en-za\",\"en-zw\",\"anglais\"];var O={constants:yt,types:{biblatex:_e,bibtex:Ye},parse:{biblatex:!0,strict:!1,sentenceCase:\"never\"},format:{useIdAsLabel:!1,checkLabel:!0,asciiOnly:!0},biber:{annotationMarker:\"+an\",namedAnnotationMarker:\":\"}};function Jn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jn(Object(r),!0).forEach(function(n){Es(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Es(e,t,r){return(t=As(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function As(e){var t=ys(e,\"string\");return typeof t==\"symbol\"?t:t+\"\"}function ys(e,t){if(typeof e!=\"object\"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||\"default\");if(typeof n!=\"object\")return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}var Vn=/[a-zA-Z_][a-zA-Z0-9_:+-]*/,Ct={comment:/%.*/,whitespace:{match:/\\s+/,lineBreaks:!0}},Cs=Wn.default.states({main:{junk:{match:/@[cC][oO][mM][mM][eE][nN][tT].+|[^@]+/,lineBreaks:!0},at:{match:\"@\",push:\"entry\"}},entry:K(K({},Ct),{},{otherEntryType:{match:/[sS][tT][rR][iI][nN][gG]|[pP][rR][eE][aA][mM][bB][lL][eE]/,next:\"otherEntryContents\"},dataEntryType:{match:Vn,next:\"dataEntryContents\"}}),otherEntryContents:K(K({},Ct),{},{lbrace:{match:/[{(]/,next:\"fields\"}}),dataEntryContents:K(K({},Ct),{},{lbrace:{match:/[{(]/,next:\"dataEntryContents\"},label:/[^,\\s]+/,comma:{match:\",\",next:\"fields\"}}),fields:K(K({},Ct),{},{identifier:Vn,number:/-?\\d+/,hash:\"#\",equals:\"=\",comma:\",\",quote:{match:'\"',push:\"quotedLiteral\"},lbrace:{match:\"{\",push:\"bracedLiteral\"},rbrace:{match:/[})]/,pop:!0}}),quotedLiteral:{lbrace:{match:\"{\",push:\"bracedLiteral\"},quote:{match:'\"',pop:!0},text:{match:/(?:\\\\[\\\\{]|[^{\"])+/,lineBreaks:!0}},bracedLiteral:{lbrace:{match:\"{\",push:\"bracedLiteral\"},rbrace:{match:\"}\",pop:!0},text:{match:/(?:\\\\[\\\\{}]|[^{}])+/,lineBreaks:!0}}}),Ts={\"(\":\")\",\"{\":\"}\"},bs=new B.Grammar({Main(){let e=[];for(;;){for(;this.matchToken(\"junk\");)this.consumeToken(\"junk\");if(this.matchEndOfFile())break;e.push(this.consumeRule(\"Entry\"))}return e.filter(Boolean)},_(){let e;for(;e!==this.token;)e=this.token,this.consumeToken(\"whitespace\",!0),this.consumeToken(\"comment\",!0)},Entry(){this.consumeToken(\"at\"),this.consumeRule(\"_\");let e=(this.matchToken(\"otherEntryType\")?this.consumeToken(\"otherEntryType\"):this.consumeToken(\"dataEntryType\")).value.toLowerCase();this.consumeRule(\"_\");let t=this.consumeToken(\"lbrace\").value;this.consumeRule(\"_\");let r;if(e===\"string\"){let[o,i]=this.consumeRule(\"Field\");this.state.strings[o]=i}else if(e===\"preamble\")this.consumeRule(\"Expression\");else{let o=this.consumeToken(\"label\").value;this.consumeRule(\"_\"),this.consumeToken(\"comma\"),this.consumeRule(\"_\");let i=this.consumeRule(\"EntryBody\");r=K({type:e,label:o},i)}this.consumeRule(\"_\");let n=this.consumeToken(\"rbrace\").value;return n!==Ts[t]&&L.warn(\"[plugin-bibtex]\",`entry started with \"${t}\", but ends with \"${n}\"`),r},EntryBody(){let e={properties:{}};for(;this.matchToken(\"identifier\");){let[t,r]=this.consumeRule(\"Field\"),n,o=\"default\";if(t.endsWith(O.biber.annotationMarker)?n=t.slice(0,-O.biber.annotationMarker.length):t.includes(O.biber.annotationMarker+O.biber.namedAnnotationMarker)&&([n,o]=t.split(O.biber.annotationMarker+O.biber.namedAnnotationMarker)),n?(e.annotations||(e.annotations={}),e.annotations[n]||(e.annotations[n]={}),e.annotations[n][o]=r):e.properties[t]=r,this.consumeRule(\"_\"),this.consumeToken(\"comma\",!0))this.consumeRule(\"_\");else break}return e},Field(){let e=this.consumeToken(\"identifier\").value.toLowerCase();this.consumeRule(\"_\"),this.consumeToken(\"equals\"),this.consumeRule(\"_\");let t=this.consumeRule(\"Expression\");return[e,t]},Expression(){let e=this.consumeRule(\"ExpressionPart\");for(this.consumeRule(\"_\");this.matchToken(\"hash\");)this.consumeToken(\"hash\"),this.consumeRule(\"_\"),e+=this.consumeRule(\"ExpressionPart\").toString(),this.consumeRule(\"_\");return e},ExpressionPart(){return this.matchToken(\"identifier\")?this.state.strings[this.consumeToken(\"identifier\").value.toLowerCase()]||\"\":this.matchToken(\"number\")?parseInt(this.consumeToken(\"number\")):this.matchToken(\"quote\")?this.consumeRule(\"QuoteString\"):this.consumeRule(\"BracketString\")},QuoteString(){let e=\"\";for(this.consumeToken(\"quote\");!this.matchToken(\"quote\");)e+=this.consumeRule(\"Text\");return this.consumeToken(\"quote\"),e},BracketString(){let e=\"\";for(this.consumeToken(\"lbrace\");!this.matchToken(\"rbrace\");)e+=this.consumeRule(\"Text\");return this.consumeToken(\"rbrace\"),e},Text(){return this.matchToken(\"lbrace\")?`{${this.consumeRule(\"BracketString\")}}`:this.consumeToken(\"text\").value}},{strings:wr});function Pr(e){return bs.parse(Cs.reset(e))}var Tt={splitEntries:/\\n\\s*(?=\\[)/g,parseEntry:/^\\[(.+?)\\]\\s*(?:\\n([\\s\\S]+))?$/,splitPairs:/((?=.)\\s)*\\n\\s*/g,splitPair:/:(.*)/},Os=e=>{let[,t,r]=e.match(Tt.parseEntry)||[];if(!t||!r)return{};{let n={type:\"book\",label:t,properties:{}};return r.trim().split(Tt.splitPairs).filter(o=>o).forEach(o=>{let[i,s]=o.split(Tt.splitPair);s&&(i=i.trim(),s=s.trim(),i===\"type\"?n.type=s:n.properties[i]=s)}),n}},qn=e=>e.trim().split(Tt.splitEntries).map(Os);var ws=new Set([\"the\",\"a\",\"an\"]),vr=/(?:<\\/?.*?>|[\\u0020-\\u002F\\u003A-\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F])+/g,Ds=/[^\\u0020-\\u007F]+/g;function Ss(e){return!O.format.checkLabel||!e.match(vr)}function zn(e){return e===null?\"null\":e===void 0?\"undefined\":O.format.checkLabel?e.toString().replace(vr,\"\"):e.toString()}function Zn(e){return e?e.normalize(\"NFKD\").replace(Ds,\"\").split(vr).find(t=>t.length&&!ws.has(t.toLowerCase())):\"\"}var bt=new B.Translator([{source:\"given\",target:\"given\"},{source:\"family\",target:\"family\"},{source:\"suffix\",target:\"suffix\"},{source:\"prefix\",target:\"non-dropping-particle\"},{source:\"family\",target:\"literal\",when:{source:!1,target:{family:!1,given:!1}}}]),Ps=[\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\",\"aug\",\"sep\",\"oct\",\"nov\",\"dec\"],w=\"BibTeX type\",q=\"BibTeX label\",Se={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12,january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12,sept:9},Qn={bathesis:\"Bachelor's thesis\",mathesis:\"Master's thesis\",phdthesis:\"PhD thesis\",candthesis:\"Candidate thesis\",techreport:\"technical report\",resreport:\"research report\",software:\"computer software\",datacd:\"data cd\",audiocd:\"audio cd\",patent:\"patent\",patentde:\"German patent\",patenteu:\"European patent\",patentfr:\"French patent\",patentuk:\"British patent\",patentus:\"U.S. patent\",patreq:\"patent request\",patreqde:\"German patent request\",patreqeu:\"European patent request\",patreqfr:\"French patent request\",patrequk:\"British patent request\",patrequs:\"U.S. patent request\"},vs=/(^(?:ISAN )?(?:[0-9a-f]{4}-){4}[0-9a-z](?:-(?:[0-9a-f]{4}-){2}[0-9a-z])?$)|(^(?:979-?0-?|M-?)(?:\\d{9}|(?=[\\d-]{11}$)\\d+-\\d+-\\d)$)|(^ISRN .{1,36}$)|(^(?:ISWC )?T-?\\d{9}-?\\d$)/i;function Ns(e){let t=e.split(\"T\")[0].replace(/[?~%]$/,\"\").split(\"-\"),r=+t[0].replace(/^Y(?=-?\\d{4}\\d+)/,\"\").replace(/X/g,\"0\"),n=+t[1],o=+t[2];return!n||n>20?[r]:o?[r,n,o]:[r,n]}function Rs(e){if(e==null)return[];if(+e)return[parseInt(e,10)];if(e=e.trim().toLowerCase(),e in Se)return[Se[e]];let t=e.split(/\\s+/),r,n;return t[0]in Se?(r=Se[t[0]],n=parseInt(t[1])):t[1]in Se&&(r=Se[t[1]],n=parseInt(t[0])),n?[r,n]:r?[r]:[]}function Ls(e,t,r,n){let o=\"\";return e&&e[0]&&(o+=Zn(e[0].family||e[0].literal)),t&&t[\"date-parts\"]&&t[\"date-parts\"][0]&&(o+=t[\"date-parts\"][0][0]),r?o+=r:n&&(o+=Zn(n)),o}var h={PICK:{toTarget(...e){return e.find(Boolean)},toSource(e){return[e]}},DATE:{toTarget(e){let t=e.split(\"/\").map(r=>r&&r!==\"..\"?Ns(r):void 0);return isNaN(t[0][0])?{literal:e}:{\"date-parts\":t}},toSource(e){if(\"date-parts\"in e)return e[\"date-parts\"].map(t=>t.map(r=>r.toString().padStart(2,\"0\")).join(\"-\")).join(\"/\")}},YEAR_MONTH:{toTarget(e,t,r){return isNaN(+e)?{literal:e}:!isNaN(+r)&&!isNaN(+t)?{\"date-parts\":[[+e,+t,+r]]}:{\"date-parts\":[[+e,...Rs(t)]]}},toSource(e){if(\"date-parts\"in e){let[t,r,n]=e[\"date-parts\"][0];return[t.toString(),r?n?`${Ps[r-1]} ${n}`:r:void 0]}else return[]}},EPRINT:{toTarget(e,t){if(t===\"pubmed\")return e},toSource(e){return[e,\"pubmed\"]}},EVENT_TITLE:{toTarget(e,t){return t&&(e+=\" (\"+t+\")\"),e},toSource(e){return e.match(/^(.+)(?: \\((.+)\\))?$/).slice(1,3)}},HOW_PUBLISHED:{toTarget(e){if(e.startsWith(\"http\"))return e}},KEYWORDS:{toTarget(e){return e.join(\",\")},toSource(e){return e.split(\",\")}},LABEL:{toTarget(e){return[e,e]},toSource(e,t,r,n,o,i){return t&&Ss(t)?t:O.format.useIdAsLabel?zn(e):Ls(r,n,o,i)||zn(e)}},NAMES:{toTarget(e){return e.map(bt.convertToTarget)},toSource(e){return e.map(bt.convertToSource)}},NAMES_ORCID:{toTarget(e,t){return e.map((r,n)=>{var o;let i=bt.convertToTarget(r);return typeof(t==null||(o=t.item)===null||o===void 0?void 0:o[n])==\"string\"&&(i._orcid=t.item[n]),i})},toSource(e){let t=[],r=[];for(let n=0;n<e.length;n++)t.push(bt.convertToSource(e[n])),e[n]._orcid&&(r[n]=e[n]._orcid);return[t,r.length?{item:r}:void 0]}},PAGES:{toTarget(e){return e.replace(/[–—]/,\"-\")},toSource(e){return e.replace(\"-\",\"--\")}},STANDARD_NUMBERS:{toTarget(...e){return e.find(Boolean)},toSource(e){let t=e.toString().match(vs);return t?t.slice(1,5):[]}},STATUS:{toSource(e){if(/^(inpreparation|submitted|forthcoming|inpress|prepublished)$/i.test(e))return e}},TITLE:{toTarget(e,t,r){return t&&(e+=\": \"+t),e},toSource(e){return[e]}}};var oo=J(Rr());var Xs=[{source:\"note\",target:\"accessed\",when:{source:!1,target:{note:!1,addendum:!1}},convert:{toSource(e){return`[Online; accessed ${(0,oo.format)(e)}]`}}},{source:\"numpages\",target:\"number-of-pages\",when:{source:{pagetotal:!1},target:!1}},{source:\"pmid\",target:\"PMID\",when:{source:{eprinttype(e){return e!==\"pmid\"},archiveprefix(e){return e!==\"pmid\"}},target:!1}},{source:\"pmcid\",target:\"PMCID\",when:{target:!1}},{source:\"s2id\",target:\"custom\",convert:{toTarget(e){return{S2ID:e}},toSource({S2ID:e}){return e}}}],eu=[{source:\"annote\",target:\"annote\",when:{source:{annotation:!1},target:!1}},{source:\"address\",target:\"publisher-place\",convert:h.PICK,when:{source:{location:!1},target:!1}},{source:[\"eprint\",\"archiveprefix\"],target:\"PMID\",convert:h.EPRINT,when:{source:{eprinttype:!1},target:!1}},{source:\"journal\",target:\"container-title\",when:{source:{maintitle:!1,booktitle:!1,journaltitle:!1},target:!1}},{source:\"school\",target:\"publisher\",convert:h.PICK,when:{source:{institution:!1,organization:!1,publisher:!1},target:!1}}],Lr=new B.Translator([...eu,...Xs,{source:\"abstract\",target:\"abstract\"},{source:\"urldate\",target:\"accessed\",convert:h.DATE},{source:\"annotation\",target:\"annote\"},{source:[\"author\",\"author+an:orcid\"],target:\"author\",convert:h.NAMES_ORCID},{source:\"library\",target:\"call-number\"},{source:\"chapter\",target:\"chapter-number\"},{source:\"bookauthor\",target:\"container-author\",convert:h.NAMES},{source:[\"maintitle\",\"mainsubtitle\",\"maintitleaddon\"],target:\"container-title\",when:{source:!0,target:{\"number-of-volumes\":!0}},convert:h.TITLE},{source:[\"booktitle\",\"booksubtitle\",\"booktitleaddon\"],target:\"container-title\",when:{source:{maintitle:!1},target:{\"number-of-volumes\":!1,type(e){return!e||!e.startsWith(\"article\")}}},convert:h.TITLE},{source:[\"journaltitle\",\"journalsubtitle\",\"journaltitleaddon\"],target:\"container-title\",when:{source:{[w]:\"article\"},target:{type:[\"article\",\"article-newspaper\",\"article-journal\",\"article-magazine\"]}},convert:h.TITLE},{source:\"shortjournal\",target:\"container-title-short\",when:{source:{[w]:\"article\"},target:{type:[\"article\",\"article-newspaper\",\"article-journal\",\"article-magazine\"]}}},{source:\"shortjournal\",target:\"journalAbbreviation\",when:{source:!1,target:{\"container-title-short\":!1}}},{source:\"number\",target:\"collection-number\",when:{source:{[w]:[\"book\",\"mvbook\",\"inbook\",\"bookinbook\",\"suppbook\",\"collection\",\"mvcollection\",\"incollection\",\"suppcollection\",\"manual\",\"suppperiodical\",\"proceedings\",\"mvproceedings\",\"refererence\"]},target:{type:[\"bill\",\"book\",\"broadcast\",\"chapter\",\"dataset\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"figure\",\"graphic\",\"interview\",\"legislation\",\"legal_case\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"post\",\"post-weblog\",\"personal_communication\",\"review\",\"review-book\",\"song\",\"speech\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:\"series\",target:\"collection-title\"},{source:\"shortseries\",target:\"collection-title-short\"},{source:\"doi\",target:\"DOI\"},{source:\"edition\",target:\"edition\"},{source:\"editor\",target:\"editor\",convert:h.NAMES},{source:[w,\"entrysubtype\",\"type\"],target:[\"type\",\"genre\"],convert:{toTarget(e,t,r){return r||(e===\"mastersthesis\"&&(r=\"mathesis\"),e===\"phdthesis\"&&(r=\"phdthesis\"),e===\"techreport\"&&(r=\"techreport\")),[_e.source[e]||\"document\",r||t]},toSource(e,t){let r=_e.target[e]||\"misc\";return t in Qn?[r,void 0,t]:[r,t]}}},{source:w,when:{target:{type:!1}},convert:{toSource(){return\"misc\"}}},{source:\"eventdate\",target:\"event-date\",convert:h.DATE},{source:\"venue\",target:\"event-place\"},{source:[\"eventtitle\",\"eventtitleaddon\"],target:\"event-title\",convert:h.EVENT_TITLE},{source:[\"eventtitle\",\"eventtitleaddon\"],target:\"event\",convert:h.EVENT_TITLE,when:{source:!1,target:{\"event-title\":!1}}},{source:q,target:[\"id\",\"citation-key\",\"author\",\"issued\",\"year-suffix\",\"title\"],convert:h.LABEL},{source:\"isbn\",target:\"ISBN\"},{source:\"issn\",target:\"ISSN\"},{source:\"issue\",target:\"issue\",when:{source:{number:!1,[w]:[\"article\",\"periodical\"]},target:{issue(e){return typeof e==\"string\"&&!e.match(/\\d+/)},type:[\"article\",\"article-journal\",\"article-newspaper\",\"article-magazine\",\"periodical\"]}}},{source:\"number\",target:\"issue\",when:{source:{[w]:[\"article\",\"periodical\",\"inproceedings\"]},target:{issue(e){return e&&(typeof e==\"number\"||e.match(/\\d+/))},type:[\"article\",\"article-journal\",\"article-newspaper\",\"article-magazine\",\"paper-conference\",\"periodical\"]}}},{source:\"date\",target:\"issued\",convert:h.DATE},{source:[\"year\",\"month\",\"day\"],target:\"issued\",convert:h.YEAR_MONTH,when:{source:{date:!1},target:!1}},{source:\"location\",target:\"jurisdiction\",when:{source:{type:\"patent\"},target:{type:\"patent\"}}},{source:\"keywords\",target:\"keyword\",convert:h.KEYWORDS},{source:\"language\",target:\"language\",convert:h.PICK},{source:\"langid\",target:\"language\",when:{source:{language:!1},target:!1}},{source:\"note\",target:\"note\"},{source:\"addendum\",target:\"note\",when:{source:{note:!1},target:!1}},{source:\"eid\",target:\"number\",when:{target:{type:[\"article-journal\"]}}},{source:[\"isan\",\"ismn\",\"isrn\",\"iswc\"],target:\"number\",convert:h.STANDARD_NUMBERS,when:{source:{[w](e){return e!==\"patent\"}},target:{type(e){return e!==\"patent\"}}}},{source:\"number\",target:\"number\",when:{source:{[w]:[\"patent\",\"report\",\"techreport\",\"legislation\"]},target:{type:[\"patent\",\"report\",\"legislation\"]}}},{source:\"origdate\",target:\"original-date\",convert:h.DATE},{source:\"origlocation\",target:\"original-publisher-place\",convert:h.PICK},{source:\"origpublisher\",target:\"original-publisher\",convert:h.PICK},{source:\"origtitle\",target:\"original-title\"},{source:\"pages\",target:\"page\",when:{source:{bookpagination:[void 0,\"page\"]}},convert:h.PAGES},{source:\"pagetotal\",target:\"number-of-pages\"},{source:\"part\",target:\"part-number\"},{source:[\"eprint\",\"eprinttype\"],target:\"PMID\",convert:h.EPRINT},{source:\"location\",target:\"publisher-place\",convert:h.PICK},{source:\"publisher\",target:\"publisher\",convert:h.PICK,when:{source:!0,target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"hearing\",\"interview\",\"legal_case\",\"legislation\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"treaty\"]}}},{source:\"organization\",target:\"publisher\",convert:h.PICK,when:{source:{publisher:!1},target:{type:[\"paper-conference\",\"webpage\"]}}},{source:\"institution\",target:\"publisher\",convert:h.PICK,when:{source:{publisher:!1,organization:!1},target:{type:[\"report\",\"thesis\"]}}},{source:\"howpublished\",target:\"publisher\",convert:h.PICK,when:{source:{howpublished(e){return e&&!e.startsWith(\"http\")},publisher:!1,organization:!1,institution:!1},target:{type:\"manuscript\"}}},{source:[\"pages\",\"bookpagination\"],target:\"section\",when:{source:{bookpagination:\"section\"},target:{page:!1}},convert:{toTarget(e){return e},toSource(e){return[e,\"section\"]}}},{source:\"pubstate\",target:\"status\",convert:h.STATUS},{source:\"shorttitle\",target:\"title-short\"},{source:\"shorttitle\",target:\"shortTitle\",when:{source:!1,target:{\"title-short\":!1}}},{source:[\"title\",\"subtitle\",\"titleaddon\"],target:\"title\",convert:h.TITLE},{source:\"translator\",target:\"translator\",convert:h.NAMES},{source:\"url\",target:\"URL\"},{source:\"howpublished\",target:\"URL\",convert:h.HOW_PUBLISHED,when:{source:{url:!1},target:!1}},{source:\"version\",target:\"version\"},{source:\"volume\",target:\"volume\"},{source:\"volumes\",target:\"number-of-volumes\"},{source:[\"issuetitle\",\"issuesubtitle\",\"issuetitleaddon\"],target:\"volume-title\",convert:h.TITLE}]);var io=J(Rr());var Br=new B.Translator([{source:\"note\",target:\"accessed\",when:{source:!1,target:{note:!1}},convert:{toSource(e){return`[Online; accessed ${(0,io.format)(e)}]`}}},{source:\"annote\",target:\"annote\"},{source:\"address\",target:\"publisher-place\",convert:h.PICK},{source:\"author\",target:\"author\",convert:h.NAMES},{source:\"chapter\",target:\"chapter-number\"},{source:\"number\",target:\"collection-number\",when:{source:{[w]:[\"book\",\"mvbook\",\"inbook\",\"collection\",\"mvcollection\",\"incollection\",\"suppcollection\",\"manual\",\"suppperiodical\",\"proceedings\",\"mvproceedings\",\"refererence\"]},target:{type:[\"bill\",\"book\",\"broadcast\",\"chapter\",\"dataset\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"figure\",\"graphic\",\"interview\",\"legislation\",\"legal_case\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"post\",\"post-weblog\",\"personal_communication\",\"review\",\"review-book\",\"song\",\"speech\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:\"series\",target:\"collection-title\"},{source:\"booktitle\",target:\"container-title\",when:{target:{type:[\"chapter\",\"paper-conference\"]}}},{source:\"journal\",target:\"container-title\",when:{source:{[w]:\"article\"},target:{type:[\"article\",\"article-newspaper\",\"article-journal\",\"article-magazine\"]}}},{source:\"doi\",target:\"DOI\"},{source:\"edition\",target:\"edition\"},{source:\"editor\",target:\"editor\",convert:h.NAMES},{source:q,target:[\"id\",\"citation-key\",\"author\",\"issued\",\"year-suffix\",\"title\"],convert:h.LABEL},{source:\"isbn\",target:\"ISBN\"},{source:\"issn\",target:\"ISSN\"},{source:\"number\",target:\"issue\",when:{source:{[w]:[\"article\",\"periodical\",\"inproceedings\"]},target:{issue(e){return typeof e==\"number\"||typeof e==\"string\"&&e.match(/\\d+/)},type:[\"article\",\"article-journal\",\"article-newspaper\",\"article-magazine\",\"paper-conference\",\"periodical\"]}}},{source:[\"year\",\"month\",\"day\"],target:\"issued\",convert:h.YEAR_MONTH},{source:\"note\",target:\"note\"},{source:\"number\",target:\"number\",when:{source:{[w]:[\"patent\",\"report\",\"techreport\"]},target:{type:[\"patent\",\"report\"]}}},{source:\"eid\",target:\"number\",when:{source:{number:!1},target:{type:[\"article-journal\"]}}},{source:\"pages\",target:\"page\",convert:h.PAGES},{source:\"publisher\",target:\"publisher\",convert:h.PICK,when:{target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"hearing\",\"interview\",\"legal_case\",\"legislation\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"treaty\",\"webpage\"]}}},{source:\"organization\",target:\"publisher\",convert:h.PICK,when:{source:{publisher:!1},target:{type:\"paper-conference\"}}},{source:\"institution\",target:\"publisher\",convert:h.PICK,when:{source:{publisher:!1,organization:!1},target:{type:\"report\"}}},{source:\"school\",target:\"publisher\",convert:h.PICK,when:{source:{institution:!1,organization:!1,publisher:!1},target:{type:\"thesis\"}}},{source:\"howpublished\",target:\"publisher\",convert:h.PICK,when:{source:{howpublished(e){return e&&!e.startsWith(\"http\")},publisher:!1,organization:!1,institution:!1,school:!1},target:{type:\"manuscript\"}}},{source:\"title\",target:\"title\"},{source:[w,\"type\"],target:[\"type\",\"genre\"],convert:{toTarget(e,t){let r=Ye.source[e]||\"document\";return t?[r,t]:e===\"mastersthesis\"?[r,\"Master's thesis\"]:e===\"phdthesis\"?[r,\"PhD thesis\"]:[r]},toSource(e,t){let r=Ye.target[e]||\"misc\";return/^(master'?s|diploma) thesis$/i.test(t)?[\"mastersthesis\"]:/^(phd|doctoral) thesis$/i.test(t)?[\"phdthesis\"]:[r,t]}}},{source:w,when:{target:{type:!1}},convert:{toSource(){return\"misc\"}}},{source:\"url\",target:\"URL\"},{source:\"howpublished\",target:\"URL\",convert:h.HOW_PUBLISHED,when:{target:{publisher:!1}}},{source:\"volume\",target:\"volume\"}]);function ao(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function tu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ao(Object(r),!0).forEach(function(n){ru(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ao(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ru(e,t,r){return(t=nu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nu(e){var t=ou(e,\"string\");return typeof t==\"symbol\"?t:t+\"\"}function ou(e,t){if(typeof e!=\"object\"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||\"default\");if(typeof n!=\"object\")return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}var iu=new Set([\"book\",\"inbook\",\"bookinbook\",\"suppbook\"]),lo=new Set([\"inbook\",\"bookinbook\",\"suppbook\"]),so=new Set([\"collection\",\"reference\",\"incollection\",\"inreference\",\"suppcollection\"]),uo=new Set([\"incollection\",\"inreference\",\"suppcollection\"]),au=new Set([\"proceedings\",\"inproceedings\"]),su=new Set([\"inproceedings\"]),uu=new Set([\"article\",\"suppperiodical\"]),co={mvbook:[\"main\",iu],mvcollection:[\"main\",so],mvreference:[\"main\",so],mvproceedings:[\"main\",au],book:[\"book\",lo],collection:[\"book\",uo],reference:[\"book\",uo],proceedings:[\"book\",su],periodical:[\"journal\",uu]};function xr(e,t,r){if(t.crossref in r){let n=r[t.crossref];if(n.properties===t)return t;let o=tu({},xr(n.type,n.properties,r));if(delete o.ids,delete o.crossref,delete o.xref,delete o.entryset,delete o.entrysubtype,delete o.execute,delete o.label,delete o.options,delete o.presort,delete o.related,delete o.relatedoptions,delete o.relatedstring,delete o.relatedtype,delete o.shortand,delete o.shortandintro,delete o.sortkey,(n.type===\"mvbook\"||n.type===\"book\")&&lo.has(e)&&(o.bookauthor=o.author),n.type in co){let[i,s]=co[n.type];s.has(e)&&(o[i+\"title\"]=o.title,o[i+\"subtitle\"]=o.subtitle,i!==\"journal\"&&(o[i+\"titleaddon\"]=o.titleaddon),delete o.title,delete o.subtitle,delete o.titleaddon,delete o.shorttitle,delete o.sorttitle,delete o.indextitle,delete o.indexsorttitle)}return Object.assign(o,t)}return t}function cu(e,t){if(e==null)return{};var r,n,o=lu(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function lu(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function po(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function pu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?po(Object(r),!0).forEach(function(n){fu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):po(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fu(e,t,r){return(t=fo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fo(e){var t=hu(e,\"string\");return typeof t==\"symbol\"?t:t+\"\"}function hu(e,t){if(typeof e!=\"object\"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||\"default\");if(typeof n!=\"object\")return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}function ho(e,t){let r={};for(let n of e)r[n.label]=n;return e.map(({type:n,label:o,properties:i})=>t.convertToTarget(pu({[w]:n,[q]:o},xr(n,i,r))))}function mo(e,t){return e.map(r=>{let n=t.convertToSource(r),{[w]:o,[q]:i}=n,s=cu(n,[w,q].map(fo));return{type:o,label:i,properties:s}})}function go(e){return ho(e,Br)}function Eo(e){return mo(e,Br)}function Ao(e){return ho(e,Lr)}function yo(e){return mo(e,Lr)}var wo=J(Or());function Co(e){let t=e.toUpperCase(),r=e.toLowerCase();for(let n=0;n<e.length;n++)if(t[n]!==r[n])return t[n]===e[n];return null}function $(e){if(e.length===0)return;let t=\"\";for(;e.length>1;){let{value:n,hyphenated:o}=e.shift();t+=n+(o?\"-\":\" \")}let r=t+e[0].value;return r[0]&&r}function du(e,t=!0){let r=[],n=[];if(t)for(;e.length>1&&e[0].upperCase!==!1;){for(r.push(...n),n.length=0;e.length>1&&e[0].upperCase!==!1&&!e[0].hyphenated;)r.push(e.shift());for(;e.length>0&&e[0].upperCase!==!1&&e[0].hyphenated;)n.push(e.shift())}let o=[],i=[];for(;e.length>1;){for(o.push(...i),i.length=0;e.length>1&&e[0].upperCase===!1;)o.push(e.shift());for(;e.length>0&&e[0].upperCase!==!1;)i.push(e.shift())}return n.length&&i.unshift(...n),e.length&&i.push(e[0]),[$(r),$(o),$(i)]}function To(e){if(e[0][0].label){let i={};for(let[{value:s,label:c}]of e)i[c]=s;return i}let t={},[r,n,o]=du(e[0],e.length===1);return o&&(t.family=o),n&&(t.prefix=n),e.length===3?(t.given=$(e[2]),t.suffix=$(e[1])):e.length===2?t.given=$(e[1]):r&&(t.given=r),t}function bo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bo(Object(r),!0).forEach(function(n){mu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mu(e,t,r){return(t=gu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gu(e){var t=Eu(e,\"string\");return typeof t==\"symbol\"?t:t+\"\"}function Eu(e,t){if(typeof e!=\"object\"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||\"default\");if(typeof n!=\"object\")return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}var z={commandBegin:{match:\"\\\\begin\",push:\"environment\"},command:{match:/\\\\(?:[a-zA-Z]+|.) */,value:e=>e.slice(1).trim()},lbrace:{match:\"{\",push:\"bracedLiteral\"},mathShift:{match:\"$\",push:\"mathLiteral\"},whitespace:{match:/[\\s]+|~/,lineBreaks:!0,value(e){return e===\"~\"?\"\\xA0\":\" \"}}},Do=wo.default.states({stringLiteral:N(N({},z),{},{text:/[^{$}\\s~\\\\]+/}),namesLiteral:N(N({and:/\\s+[aA][nN][dD]\\s+/,comma:\",\",hyphen:\"-\",equals:\"=\"},z),{},{text:/[^{$}\\s~\\\\,=-]+/}),listLiteral:N(N({and:/\\s+and\\s+/},z),{},{text:/[^{$}\\s~\\\\]+/}),separatedLiteral:N(N({comma:\",\"},z),{},{text:/[^{$}\\s~\\\\,]+/}),annotation:N(N({},z),{},{colon:\":\",equals:\"=\",comma:\",\",semicolon:\";\",quote:'\"',itemCount:/\\d+/,text:/[^{$}\\s~\\\\\":;,=]+/}),bracedLiteral:N(N({},z),{},{rbrace:{match:\"}\",pop:!0},text:/[^{$}\\s~\\\\]+/}),mathLiteral:N(N({},z),{},{mathShift:{match:\"$\",pop:!0},script:/[\\^_]/,text:/[^{$}\\s~\\\\^_]+/}),environment:N(N({commandEnd:{match:\"\\\\end\",pop:!0}},z),{},{text:/[^{$}\\s~\\\\]+/})});function pe(e){return e[0],e}function Je(e,t){return t in Ke?e&&Ke[t].join(e):e}var So=new B.Grammar({String(){let e=\"\";for(;!this.matchEndOfFile();)e+=this.consumeRule(\"Text\");return pe(e)},StringNames(){let e=[];for(;;){if(this.consumeToken(\"whitespace\",!0),e.push(this.consumeRule(\"Name\")),this.consumeToken(\"whitespace\",!0),this.matchEndOfFile())return e;this.consumeToken(\"and\")}},Name(){let e=[];for(;;){if(e.push(this.consumeRule(\"NamePiece\")),this.matchEndOfFile()||this.matchToken(\"and\"))return To(e);this.consumeToken(\"comma\"),this.consumeToken(\"whitespace\",!0)}},NamePiece(){let e=[];for(;;){let t=this.consumeRule(\"NameToken\");if(t.label)return t.label=$([...e,{value:t.label}]),[t];if(e.push(t),this.matchEndOfFile()||this.matchToken(\"and\")||this.matchToken(\"comma\"))return e;for(;this.matchToken(\"hyphen\")||this.matchToken(\"whitespace\");)this.consumeToken()}},NameToken(){let e=null,t=\"\";for(;;)if(e===null&&this.matchToken(\"text\")){let r=this.consumeToken().value;t+=r,e=Co(r)}else{if(this.matchEndOfFile()||this.matchToken(\"and\")||this.matchToken(\"comma\")||this.matchToken(\"whitespace\"))return{value:t,upperCase:e};if(this.matchToken(\"hyphen\"))return{value:t,upperCase:e,hyphenated:!0};if(this.matchToken(\"equals\")){this.consumeToken(\"equals\");let r=this.consumeRule(\"NamePiece\");return r[0].label&&(t+=\"=\"+r[0].label),{value:$(r),label:t}}else t+=this.consumeRule(\"Text\")}},StringList(){let e=[];for(;!this.matchEndOfFile();){let t=\"\";for(;!this.matchEndOfFile()&&!this.matchToken(\"and\");)t+=this.consumeRule(\"Text\");e.push(pe(t)),this.consumeToken(\"and\",!0)}return e.length===1?e[0]:e},StringSeparated(){let e=[];for(;!this.matchEndOfFile();){let t=\"\";for(;!this.matchEndOfFile()&&!this.matchToken(\"comma\");)t+=this.consumeRule(\"Text\");e.push(t.trim()),this.consumeToken(\"comma\",!0),this.consumeToken(\"whitespace\",!0)}return e},StringVerbatim(){let e=\"\";for(;!this.matchEndOfFile();)e+=this.consumeToken().text;return pe(e)},StringUri(){let e=this.consumeRule(\"StringVerbatim\");try{return decodeURI(e)===e?encodeURI(e):e}catch{return encodeURI(e)}},StringTitleCase(){this.state.sentenceCase=!0;let e=\"\";for(;!this.matchEndOfFile();)e+=this.consumeRule(\"Text\");return pe(e)},Annotations(){let e={};for(;;){let{scope:t,item:r,part:n,value:o}=this.consumeRule(\"Annotation\");if(t===\"part\"?(e.part||(e.part=[]),e.part[r]||(e.part[r]={}),e.part[r][n]=o):t===\"item\"?(e.item||(e.item=[]),e.item[r]=o):e.field=o,this.matchEndOfFile())break;this.consumeToken(\"semicolon\"),this.consumeRule(\"_\")}return e},Annotation(){let e={};if(this.matchToken(\"itemCount\")?(e.item=parseInt(this.consumeToken(\"itemCount\"))-1,this.matchToken(\"colon\")?(this.consumeToken(\"colon\"),e.part=this.consumeToken(\"text\"),e.scope=\"part\"):e.scope=\"item\"):e.scope=\"field\",this.consumeToken(\"equals\"),this.consumeRule(\"_\"),this.matchToken(\"quote\")){this.consumeToken(\"quote\");let t=\"\";for(;!this.matchToken(\"quote\");)this.matchToken(\"itemCount\")||this.matchToken(\"colon\")||this.matchToken(\"comma\")||this.matchToken(\"semicolon\")||this.matchToken(\"equals\")?(t+=this.token.value,this.token=this.lexer.next()):t+=this.consumeRule(\"Text\");this.consumeToken(\"quote\"),e.value=pe(t),this.consumeRule(\"_\")}else{e.value=[];let t=\"\";for(;;)if(t+=this.consumeRule(\"Text\"),this.matchToken(\"comma\"))this.consumeToken(\"comma\"),this.consumeRule(\"_\"),e.value.push(pe(t)),t=\"\";else if(this.matchEndOfFile()||this.matchToken(\"semicolon\")){e.value.push(pe(t));break}}return e},BracketString(){var e;let t=\"\";this.consumeToken(\"lbrace\");let r=this.state.sentenceCase;for(this.state.sentenceCase=r&&this.matchToken(\"command\"),(e=this.state).partlyLowercase&&(e.partlyLowercase=this.state.sentenceCase);!this.matchToken(\"rbrace\");)t+=this.consumeRule(\"Text\");let o=r&&!this.state.sentenceCase&&this.state.partlyLowercase;return this.state.sentenceCase=r,this.consumeToken(\"rbrace\"),o?Je(t,\"nocase\"):t},MathString(){let e=\"\";for(this.consumeToken(\"mathShift\");!this.matchToken(\"mathShift\");){if(this.matchToken(\"script\")){let t=this.consumeToken(\"script\").value,r=this.consumeRule(\"Text\").split(\"\");if(r.every(n=>n in At[t]))e+=r.map(n=>At[t][n]).join(\"\");else{let n=$e[t];e+=Ke[n].join(r.join(\"\"))}continue}if(this.matchToken(\"command\")){let t=this.token.value;if(t in $e){this.consumeToken(\"command\");let r=this.consumeRule(\"BracketString\");e+=Je(r,$e[t]);continue}}e+=this.consumeRule(\"Text\")}return this.consumeToken(\"mathShift\"),e},Text(){if(this.matchToken(\"lbrace\"))return this.consumeRule(\"BracketString\");if(this.matchToken(\"mathShift\"))return this.consumeRule(\"MathString\");if(this.matchToken(\"whitespace\"))return this.consumeToken(\"whitespace\").value;if(this.matchToken(\"commandBegin\"))return this.consumeRule(\"EnclosedEnv\");if(this.matchToken(\"command\"))return this.consumeRule(\"Command\");let e=this.consumeToken(\"text\").value.replace(Dr,c=>ce[c]),t=this.state.afterPunctuation;if(this.state.afterPunctuation=/[?!.:]$/.test(e),!this.state.sentenceCase){var r;return(r=this.state).partlyLowercase||(r.partlyLowercase=e===e.toLowerCase()&&e!==e.toUpperCase()),e}let[n,...o]=e,i=o.join(\"\"),s=i.toLowerCase();return i!==s?e:t?n+s:e.toLowerCase()},Command(){let e=this.consumeToken(\"command\"),t=e.value;if(t in He){let r=this.consumeRule(\"Env\"),n=He[t];return Je(r,n)}else if(t in gt){let r=this.consumeRule(\"BracketString\"),n=gt[t];return Je(r,n)}else{if(t in se)return se[t];if(t in ue)return ue[t];if(t in ae&&!this.matchEndOfFile()){let r=this.consumeRule(\"Text\");return(r[0]+ae[t]).normalize(\"NFC\")+r.slice(1)}else if(t in Et){let r=Et[t],n=[],o=r.length;for(;o-- >0;)this.consumeToken(\"whitespace\",!0),n.push(this.consumeRule(\"BracketString\"));return r(...n)}else return/^[&%$#_{}]$/.test(t)?e.text.slice(1):e.text}},Env(){let e=\"\";for(;!this.matchEndOfFile()&&!this.matchToken(\"rbrace\");)e+=this.consumeRule(\"Text\");return e},EnclosedEnv(){this.consumeToken(\"commandBegin\");let e=this.consumeRule(\"BracketString\"),t=\"\";for(;!this.matchToken(\"commandEnd\");)t+=this.consumeRule(\"Text\");let r=this.consumeToken(\"commandEnd\"),n=this.consumeRule(\"BracketString\");if(e!==n)throw new SyntaxError(this.lexer.formatError(r,`environment started with \"${e}\", ended with \"${n}\"`));return Je(t,He[e])},_(){for(;this.matchToken(\"whitespace\");)this.consumeToken(\"whitespace\")}},{sentenceCase:!1,partlyLowercase:!1,afterPunctuation:!0});function Oo(e){return Sr.includes(e.toLowerCase())}function Au(e){return Array.isArray(e)?e.every(Oo):Oo(e)}function yu(e,t){if(e[1]===\"name\")return e[0]===\"list\"?\"StringNames\":\"Name\";if(e[1]===\"title\"){let r=O.parse.sentenceCase;return r===\"always\"||r===\"english\"&&Au(t)?\"StringTitleCase\":\"String\"}switch(e[0]===\"field\"?e[1]:e[0]){case\"list\":return\"StringList\";case\"separated\":return\"StringSeparated\";case\"verbatim\":return\"StringVerbatim\";case\"uri\":return\"StringUri\";default:return\"String\"}}function Cu(e){if(e[1]===\"name\")return\"namesLiteral\";switch(e[0]){case\"list\":return\"listLiteral\";case\"separated\":return\"separatedLiteral\";default:return\"stringLiteral\"}}function Ir(e,t,r=[]){let n=De[t]||[];return So.parse(Do.reset(e,{state:Cu(n),line:0,col:0}),yu(n,r))}function Po(e){return So.parse(Do.reset(e,{state:\"annotation\",line:0,col:0}),\"Annotations\")}function vo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function No(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vo(Object(r),!0).forEach(function(n){Tu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tu(e,t,r){return(t=bu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bu(e){var t=Ou(e,\"string\");return typeof t==\"symbol\"?t:t+\"\"}function Ou(e,t){if(typeof e!=\"object\"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||\"default\");if(typeof n!=\"object\")return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}function Ro(e,t){let r=[];for(let{type:n,label:o,properties:i}of e)if(n in t){let s=[];for(let c of t[n])Array.isArray(c)&&!c.some(E=>E in i)?s.push(c.join(\"/\")):typeof c==\"string\"&&!(c in i)&&s.push(c);s.length&&r.push([o,`missing fields: ${s.join(\", \")}`])}else r.push([o,`invalid type: \"${n}\"`]);if(r.length)throw new RangeError([\"Invalid entries:\"].concat(r.map(([n,o])=>`  - ${n} has ${o}`)).join(`\n`))}function Lo(e){let t={};\"language\"in e.properties&&(t.language=Ir(e.properties.language,\"language\"));for(let r in e.properties){let n=e.properties[r];n!==\"\"&&(t[r]=Ir(n+\"\",r,t.language))}for(let r in e.annotations)for(let n in e.annotations[r])t[r+\"+an:\"+n]=Po(e.annotations[r][n]);return No(No({},e),{},{properties:t})}function Mr(e){return O.parse.strict&&Ro(e,mt.biblatex),Ao(e.map(Lo))}function kr(e){return O.parse.strict&&Ro(e,mt.bibtex),go(e.map(Lo))}var Bo=\"@bibtex\",xo={\"@biblatex/text\":{parse:Pr,parseType:{dataType:\"String\",predicate:/@\\s{0,5}[A-Za-z]{1,13}\\s{0,5}\\{\\s{0,5}[^@{}\"=,\\\\\\s]{0,100}\\s{0,5},[\\s\\S]*\\}/}},\"@biblatex/entry+object\":{parse(e){return Mr([e])},parseType:{dataType:\"SimpleObject\",propertyConstraint:{props:[\"type\",\"label\",\"properties\"]}}},\"@biblatex/entries+list\":{parse:Mr,parseType:{elementConstraint:\"@biblatex/entry+object\"}},\"@bibtex/text\":{parse:Pr,outputs:\"@bibtex/entries+list\"},\"@bibtex/entry+object\":{parse(e){return kr([e])}},\"@bibtex/entries+list\":{parse:kr},\"@bibtxt/text\":{parse:qn,parseType:{dataType:\"String\",predicate:/^\\s*(\\[(?!\\s*[{[]).*?\\]\\s*(\\n\\s*[^[]((?!:)\\S)+\\s*:\\s*.+?\\s*)*\\s*)+$/}}};var Z={};for(let e in se)Z[se[e]]=e;for(let e in ae)Z[ae[e]]=e;for(let e in ce)Z[ce[e]]=e;var Ur={};for(let e in ue)Ur[ue[e]]=e;var wu=/[^a-zA-Z0-9\\s!\"'()*+,\\-./:;=?@[\\]\\u0300-\\u0308\\u030a-\\u030c\\u0332\\u0323\\u0327\\u0328\\u0361\\u0326]/g,Du=/.[\\u0300-\\u0308\\u030a-\\u030c\\u0332\\u0323\\u0327\\u0328\\u0361\\u0326]+/g,Su=/[\\u0300-\\u0308\\u030a-\\u030c\\u0332\\u0323\\u0327\\u0328\\u0361\\u0326]/g,Gr={separated:\",\",list:\" and \"},Io={i:\"\\\\textit{\",b:\"\\\\textbf{\",sc:\"\\\\textsc{\",sup:\"\\\\textsuperscript{\",sub:\"\\\\textsubscript{\",'span style=\"font-variant:small-caps;\"':\"\\\\textsc{\",'span class=\"nocase\"':\"{\"};function Pu(e){return e in Z?Z[e]in ce?Z[e]:`\\\\${Z[e]}{}`:e in Ur?`$\\\\${Ur[e]}$`:/^[&%$#_{}]$/.test(e)?`\\\\${e}`:\"\"}function Ve(e){return O.format.asciiOnly?e.normalize(\"NFKD\").replace(wu,t=>Pu(t)).replace(Du,t=>Array.from(t).reduce((r,n)=>`{\\\\${Z[n]} ${r}}`)).replace(Su,\"\"):e}function Mo(e){let t=[],r=e.split(/<(\\/?(?:i|b|sc|sup|sub|span)|span .*?)>/g);return r=r.map((n,o)=>o%2===0?Ve(n):n in Io?(t.push(\"/\"+n.split(\" \")[0]),Io[n]):n===t[t.length-1]?(t.pop(),\"}\"):\"\"),r.join(\"\")}function vu(e){if(e.family&&!e.prefix&&!e.given&!e.suffix)return e.family.includes(Gr.list)?e.family:`{${e.family}}`;let t=[\"\"];return e.prefix&&e.family&&(t[0]+=e.prefix+\" \"),e.family&&(t[0]+=e.family),e.suffix?(t.push(e.suffix),t.push(e.given||\"\")):t.push(e.given),Ve(t.join(\", \").trim())}function Nu(e){return Mo(e).split(/(:\\s*)/).map((t,r)=>r%2?t:t.replace(/([^\\\\])\\b([a-z]*[A-Z].*?)\\b/g,\"$1{$2}\")).join(\"\")}function jr(e,t){switch(t){case\"title\":return Nu(e);case\"literal\":return Mo(e.toString());case\"name\":return vu(e);case\"verbatim\":case\"uri\":return e.toString();default:return Ve(e.toString())}}function Ru(e,t,r){let n=Gr[r];return e.map(o=>{let i=jr(o,t);return i.includes(n)?`{${i}}`:i}).join(n)}function Fr(e){return Array.isArray(e)?e.map(t=>Ve(t).replace(/([;,\"])/g,\"{$1}\")).join(\", \"):'\"'+Ve(e).replace(/([\"])/g,\"{$1}\")+'\"'}function ko(e,t){if(!(e in De))return jr(t,\"verbatim\");let[r,n]=De[e];return r in Gr?Ru(t,n,r):jr(t,n)}function Fo(e){let t=[];if(e.field&&t.push(\"=\"+Fr(e.field)),e.item)for(let[r,n]of Object.entries(e.item)){if(!n)continue;let o=parseInt(r)+1;t.push(o+\"=\"+Fr(n))}if(e.part)for(let[r,n]of Object.entries(e.part)){if(!n)continue;let o=parseInt(r)+1;for(let i in n)n[i]&&t.push(o+\":\"+i+\"=\"+Fr(n[i]))}return t.join(\"; \")}function Uo({type:e,label:t,properties:r}){let n={type:e,label:t,properties:{}};for(let o in r){let i=r[o],[s,c]=o.split(\"+an:\");c?(n.annotations||(n.annotations={}),n.annotations[s]||(n.annotations[s]={}),n.annotations[s][c]=Fo(i)):n.properties[o]=ko(o,i)}return n}function jo(e){return yo(e).map(Uo)}function _r(e){return Eo(e).map(Uo)}function Go(e,t,r){return r.listItem.join(`${e} = {${t}},`)}function Lu(e,t){let r=[];for(let n in e.properties)if(r.push(Go(n,e.properties[n],t)),e.annotations&&e.annotations[n])for(let o in e.annotations[n]){let i=n+O.biber.annotationMarker;o!==\"default\"&&(i+=O.biber.namedAnnotationMarker+o),r.push(Go(i,e.annotations[n][o],t))}return t.entry.join(`@${e.type}{${e.label},${t.list.join(r.join(\"\"))}}`)}function Yr(e,t){let r=e.map(n=>Lu(n,t)).join(\"\");return t.bibliographyContainer.join(r)}function Bu({type:e,label:t,properties:r},n){let o=Object.entries(r).concat([[\"type\",e]]).map(([i,s])=>n.listItem.join(`${i}: ${s}`));return n.entry.join(`[${t}]${n.list.join(o.join(\"\"))}`)}function _o(e,t){let r=e.map(n=>Bu(n,t)).join(`\n`);return t.bibliographyContainer.join(r)}var Hr=function(e,t){return function(r,n={}){let{type:o,format:i=o||\"text\"}=n;if(r=e(r),i===\"object\")return r;if(j.dict.has(i))return t(r,j.dict.get(i),n);throw new RangeError(`Output dictionary \"${i}\" not available`)}},Yo={bibtex:Hr(_r,Yr),biblatex:Hr(jo,Yr),bibtxt:Hr(_r,_o)};j.add(Bo,{input:xo,output:Yo,config:O});var Kr={RIS:{ABST:\"article-journal\",ADVS:\"motion_picture\",AGGR:\"dataset\",ANCIENT:\"classic\",ART:\"graphic\",BILL:\"bill\",BLOG:\"post-weblog\",BOOK:\"book\",CASE:\"legal_case\",CHAP:\"chapter\",CHART:\"figure\",CLSWK:\"classic\",COMP:\"software\",CONF:\"paper-conference\",CPAPER:\"paper-conference\",CTLG:\"entry\",DATA:\"dataset\",DBASE:\"dataset\",DICT:\"entry-dictionary\",EBOOK:\"book\",ECHAP:\"chapter\",EDBOOK:\"book\",EJOUR:\"article-journal\",ELEC:\"webpage\",ENCYC:\"entry-encyclopedia\",EQUA:\"article\",FIGURE:\"figure\",GEN:\"document\",GOVDOC:\"report\",GRANT:\"article\",HEAR:\"hearing\",ICOMM:\"personal_communication\",INPR:\"article-journal\",JFULL:\"article-journal\",JOUR:\"article-journal\",LEGAL:\"legislation\",MANSCPT:\"manuscript\",MAP:\"map\",MGZN:\"article-magazine\",MPCT:\"broadcast\",MULTI:\"motion_picture\",MUSIC:\"musical_score\",NEWS:\"article-newspaper\",PAMP:\"pamphlet\",PAT:\"patent\",PCOMM:\"personal_communication\",RPRT:\"report\",SER:\"periodical\",SLIDE:\"motion_picture\",SOUND:\"motion_picture\",STAND:\"standard\",STAT:\"legislation\",THES:\"thesis\",UNBILL:\"manuscript\",UNPB:\"manuscript\",VIDEO:\"motion_picture\",WEB:\"webpage\"},CSL:{\"article-journal\":\"JOUR\",\"article-magazine\":\"MGZN\",\"article-newspaper\":\"NEWS\",article:\"JOUR\",bill:\"BILL\",book:\"BOOK\",broadcast:\"MPCT\",chapter:\"CHAP\",classic:\"CLSWK\",collection:\"GEN\",dataset:\"DATA\",document:\"GEN\",entry:\"CTLG\",\"entry-dictionary\":\"DICT\",\"entry-encyclopedia\":\"ENCYC\",event:\"GEN\",figure:\"FIGURE\",graphic:\"ART\",hearing:\"HEAR\",interview:\"GEN\",legal_case:\"CASE\",legislation:\"LEGAL\",manuscript:\"MANSCPT\",map:\"MAP\",motion_picture:\"MPCT\",musical_score:\"MUSIC\",pamphlet:\"PAMP\",\"paper-conference\":\"CONF\",patent:\"PAT\",performance:\"GEN\",periodical:\"SER\",personal_communication:\"PCOMM\",\"post-weblog\":\"BLOG\",post:\"ICOMM\",regulation:\"LEGAL\",report:\"RPRT\",\"review-book\":\"BOOK\",review:\"JOUR\",software:\"COMP\",song:\"SOUND\",speech:\"SOUND\",standard:\"STAND\",thesis:\"THES\",treaty:\"GEN\",webpage:\"ELEC\"}};var St=[{source:\"A2\",target:\"editor\",when:{source:{TY:[\"ANCIENT\",\"BLOG\",\"CHAP\",\"CONF\",\"CPAPER\",\"DICT\",\"EBOOK\",\"ECHAP\",\"ENCYC\",\"MUSIC\",\"SER\"]},target:{type:[\"chapter\",\"entry-dictionary\",\"entry-encyclopedia\",\"musical_score\",\"paper-conference\",\"periodical\",\"post-weblog\"]}}},{source:\"A2\",target:\"performer\",when:{source:{TY:[\"ADVS\",\"SLIDE\",\"SOUND\",\"VIDEO\"]},target:{type:[\"song\",\"speech\"]}}},{source:\"A2\",target:\"collection-editor\",when:{source:{TY:[\"BOOK\",\"CLSWK\",\"COMP\",\"EDBOOK\",\"ELEC\",\"MAP\",\"MULTI\",\"RPRT\",\"UNPB\"]},target:{type:[\"book\",\"classic\",\"map\",\"report\",\"review-book\",\"software\",\"webpage\"]}}},{source:\"A2\",target:\"reporter\",when:{source:{TY:[\"CASE\"]},target:{type:[\"legal_case\"]}}},{source:\"A2\",target:\"producer\",when:{source:{TY:[\"DATA\"]},target:{type:[\"dataset\"]}}},{source:\"A2\",target:\"recipient\",when:{source:{TY:[\"ICOMM\",\"PCOMM\"]},target:{type:[\"personal_communication\",\"post\"]}}},{source:\"A3\",target:\"collection-editor\",when:{source:{TY:[\"ADVS\",\"CHAP\",\"CONF\",\"EBOOK\",\"MUSIC\",\"SER\",\"SLIDE\",\"SOUND\",\"VIDEO\"]},target:{type:[\"chapter\",\"musical_score\",\"paper-conference\",\"periodical\",\"song\",\"speech\"]}}},{source:\"A3\",target:\"illustrator\",when:{source:{TY:[\"BLOG\"]},target:{type:[\"post-weblog\"]}}},{source:\"A3\",target:\"editor\",when:{source:{TY:[\"BOOK\"]},target:{type:[\"book\",\"review-book\"]}}},{source:\"A3\",target:\"producer\",when:{source:{TY:[\"MPCT\"]},target:{type:[\"broadcast\",\"motion_picture\"]}}},{source:\"A4\",target:\"translator\",when:{source:{TY:[\"ANCIENT\",\"BOOK\",\"CHAP\",\"CLSWK\",\"CTLG\",\"DICT\",\"EDBOOK\",\"ENCYC\",\"GRANT\",\"PAMP\"]},target:{type:[\"book\",\"chapter\",\"classic\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"pamphlet\",\"review-book\"]}}},{source:\"A4\",target:\"performer\",when:{source:{TY:[\"MPCT\"]},target:{type:[\"broadcast\",\"motion_picture\"]}}},{source:\"A4\",target:\"producer\",when:{source:{TY:[\"MUSIC\"]},target:{type:[\"musical_score\"]}}},{source:\"AB\",target:\"abstract\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"hearing\",\"interview\",\"legal_case\",\"legislation\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"report\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:\"AU\",target:\"author\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BLOG\",\"BOOK\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MULTI\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"THES\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"book\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"interview\",\"legislation\",\"manuscript\",\"map\",\"pamphlet\",\"paper-conference\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"report\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:\"AU\",target:\"editor\",when:{source:{TY:[\"EDBOOK\"]},target:!1}},{source:\"AU\",target:\"director\",when:{source:{TY:[\"MPCT\"]},target:{type:[\"broadcast\",\"motion_picture\"]}}},{source:\"AU\",target:\"composer\",when:{source:{TY:[\"MUSIC\"]},target:{type:[\"musical_score\"]}}},{source:\"AU\",target:\"reporter\",when:{source:{TY:[\"NEWS\"]},target:{type:[\"article-newspaper\"]}}},{source:\"C1\",target:\"section\",when:{source:{TY:[\"CHAP\",\"ECHAP\",\"SER\"]},target:{type:[\"chapter\",\"periodical\"]}}},{source:\"C1\",target:\"publisher-place\",when:{source:{TY:[\"CONF\",\"CPAPER\"]},target:{type:[\"paper-conference\"]}}},{source:\"C1\",target:\"scale\",when:{source:{TY:[\"MAP\"]},target:{type:[\"map\"]}}},{source:\"C2\",target:\"PMCID\",when:{source:{TY:[\"ABST\",\"INPR\",\"JFULL\",\"JOUR\"]},target:{type:[\"article\",\"article-journal\",\"review\"]}}},{source:\"C2\",target:\"issue\",when:{source:{TY:[\"NEWS\"]},target:{type:[\"article-newspaper\"]}}},{source:\"C2\",target:\"number\",when:{source:{TY:[\"SER\"]},target:{type:[\"periodical\"]}}},{source:\"C3\",target:\"dimensions\",when:{source:{TY:[\"ADVS\",\"MAP\",\"SLIDE\",\"SOUND\",\"VIDEO\"]},target:{type:[\"map\",\"song\",\"speech\"]}}},{source:\"C3\",target:\"container-title\",when:{source:{TY:[\"CONF\"]},target:{type:[\"paper-conference\"]}}},{source:\"C3\",target:\"PMCID\",when:{source:{TY:[\"EJOUR\"]},target:!1}},{source:\"C3\",target:\"jurisdiction\",when:{source:{TY:[\"PAT\"]},target:{type:[\"patent\"]}}},{source:[\"C3\",\"M1\"],target:\"dimensions\",when:{source:{TY:[\"ART\"]},target:{type:[\"graphic\"]}}},{source:\"C5\",target:\"volume-title\",when:{source:{TY:[\"EJOUR\"]},target:!1}},{source:\"C5\",target:\"number\",when:{source:{TY:[\"GRANT\"]},target:!1}},{source:\"C5\",target:\"dimensions\",when:{source:{TY:[\"MULTI\"]},target:!1}},{source:\"C5\",target:\"references\",when:{source:{TY:[\"PAT\"]},target:{type:[\"patent\"]}}},{source:[\"C5\",\"PY\"],target:\"issued\",when:{source:{TY:[\"EBOOK\"]},target:!1}},{source:\"C6\",target:\"status\",when:{source:{TY:[\"PAT\"]},target:{type:[\"patent\"]}}},{source:\"C6\",target:\"issue\",when:{source:{TY:[\"RPRT\"]},target:{type:[\"report\"]}}},{source:\"C6\",target:\"volume\",when:{source:{TY:[\"STAT\"]},target:!1}},{source:\"C7\",target:\"number\",when:{source:{TY:[\"ABST\",\"INPR\",\"JFULL\",\"JOUR\"]},target:{type:[\"article\",\"article-journal\",\"review\"]}}},{source:\"C7\",target:\"PMCID\",when:{source:{TY:[\"EBOOK\",\"ECHAP\"]},target:!1}},{source:[\"C7\",\"NV\"],target:\"number\",when:{source:{TY:[\"EJOUR\"]},target:!1}},{source:\"CN\",target:\"call-number\",when:{source:{TY:[\"ABST\",\"ADVS\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CTLG\",\"DATA\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"hearing\",\"interview\",\"legal_case\",\"legislation\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"report\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:\"CY\",target:\"publisher-place\",when:{source:{TY:[\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BLOG\",\"BOOK\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"HEAR\",\"ICOMM\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"THES\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article-magazine\",\"article-newspaper\",\"book\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"hearing\",\"interview\",\"legislation\",\"manuscript\",\"map\",\"musical_score\",\"pamphlet\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"report\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:\"CY\",target:\"event-place\",when:{source:{TY:[\"CONF\",\"CPAPER\"]},target:{type:[\"paper-conference\"]}}},{source:\"DA\",target:\"accessed\",when:{source:{TY:[\"AGGR\",\"DBASE\",\"EBOOK\",\"EJOUR\",\"MULTI\"]},target:!1}},{source:[\"DA\",\"C2\"],target:\"issued\",when:{source:{TY:[\"CONF\"]},target:{type:[\"paper-conference\"]}}},{source:[\"DA\",\"PY\",\"C2\"],target:\"issued\",when:{source:{TY:[\"PAT\"]},target:{type:[\"patent\"]}}},{source:[\"DA\",\"PY\"],target:\"issued\",when:{source:{TY:[\"ABST\",\"ADVS\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHART\",\"CPAPER\",\"CTLG\",\"DATA\",\"EDBOOK\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MUSIC\",\"PAMP\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"bill\",\"book\",\"broadcast\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"hearing\",\"interview\",\"legal_case\",\"legislation\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"report\",\"review\",\"review-book\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:[\"DA\",\"PY\",\"Y2\"],target:\"issued\",when:{source:{TY:[\"STAT\"]},target:!1}},{source:[\"DA\",\"Y2\"],target:\"accessed\",when:{source:{TY:[\"ECHAP\"]},target:!1}},{source:\"DB\",target:\"source\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"hearing\",\"interview\",\"legal_case\",\"legislation\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"report\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:\"DO\",target:\"DOI\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"hearing\",\"interview\",\"legal_case\",\"legislation\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"report\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:\"ET\",target:\"edition\",when:{source:{TY:[\"ADVS\",\"ANCIENT\",\"ART\",\"BLOG\",\"BOOK\",\"CHAP\",\"CLSWK\",\"CONF\",\"CTLG\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"GEN\",\"GOVDOC\",\"LEGAL\",\"MAP\",\"MGZN\",\"MPCT\",\"MUSIC\",\"NEWS\",\"PAMP\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"VIDEO\"]},target:{type:[\"article-magazine\",\"article-newspaper\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"graphic\",\"interview\",\"legislation\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"performance\",\"periodical\",\"post-weblog\",\"regulation\",\"report\",\"review-book\",\"song\",\"speech\",\"treaty\",\"webpage\"]}}},{source:\"ET\",target:\"version\",when:{source:{TY:[\"CHART\",\"COMP\",\"DATA\",\"EQUA\",\"FIGURE\"]},target:{type:[\"dataset\",\"figure\",\"software\"]}}},{source:\"ET\",target:\"available-date\",when:{source:{TY:[\"ABST\",\"INPR\",\"JFULL\",\"JOUR\"]},target:{type:[\"article\",\"article-journal\",\"review\"]}}},{source:\"ET\",target:\"medium\",when:{source:{TY:[\"MANSCPT\"]},target:{type:[\"manuscript\"]}}},{source:[\"ET\",\"PY\"],target:\"issued\",when:{source:{TY:[\"AGGR\",\"DBASE\"]},target:!1}},{source:\"ID\",target:\"id\"},{source:\"IS\",target:\"number-of-volumes\",when:{source:{TY:[\"CHAP\"]},target:{type:[\"chapter\"]}}},{source:\"IS\",target:\"issue\",when:{source:{TY:[\"ABST\",\"INPR\",\"JFULL\",\"JOUR\"]},target:{type:[\"article\",\"article-journal\",\"review\"]}}},{source:\"J2\",target:\"container-title-short\",when:{source:{TY:[\"ABST\",\"ANCIENT\",\"BOOK\",\"CHAP\",\"CTLG\",\"DATA\",\"DICT\",\"ENCYC\",\"GRANT\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MGZN\",\"PAMP\",\"PCOMM\",\"SER\",\"STAND\",\"STAT\",\"UNPB\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"book\",\"chapter\",\"dataset\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"legislation\",\"manuscript\",\"pamphlet\",\"periodical\",\"personal_communication\",\"post\",\"regulation\",\"review\",\"review-book\",\"standard\"]}}},{source:\"KW\",target:\"keyword\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"hearing\",\"interview\",\"legal_case\",\"legislation\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"report\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:\"LA\",target:\"language\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"hearing\",\"interview\",\"legal_case\",\"legislation\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"report\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:\"LB\",target:\"citation-label\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"bill\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"hearing\",\"interview\",\"legal_case\",\"legislation\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"report\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:\"M1\",target:\"number\",when:{source:{TY:[\"ADVS\",\"AGGR\",\"ANCIENT\",\"BILL\",\"CHART\",\"DICT\",\"EQUA\",\"FIGURE\",\"GEN\",\"HEAR\",\"SLIDE\",\"SOUND\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{type:[\"bill\",\"collection\",\"document\",\"entry-dictionary\",\"event\",\"figure\",\"hearing\",\"interview\",\"performance\",\"song\",\"speech\",\"thesis\",\"treaty\"]}}},{source:\"M1\",target:\"collection-number\",when:{source:{TY:[\"BOOK\",\"CLSWK\",\"CTLG\",\"EDBOOK\",\"PAMP\",\"SER\"]},target:{type:[\"book\",\"classic\",\"entry\",\"pamphlet\",\"periodical\",\"review-book\"]}}},{source:\"M1\",target:\"issue\",when:{source:{TY:[\"CONF\",\"EJOUR\",\"GOVDOC\",\"MGZN\"]},target:{type:[\"article-magazine\",\"paper-conference\"]}}},{source:\"M1\",target:\"chapter-number\",when:{source:{TY:[\"ECHAP\"]},target:!1}},{source:\"M1\",target:\"status\",when:{source:{TY:[\"GRANT\"]},target:!1}},{source:\"M1\",target:\"page-first\",when:{source:{TY:[\"LEGAL\",\"NEWS\",\"STAND\"]},target:{type:[\"article-newspaper\",\"legislation\",\"regulation\",\"standard\"]}}},{source:[\"M1\",\"NV\"],target:\"number\",when:{source:{TY:\"STAT\"},target:!1}},{source:[\"NV\",\"M1\"],target:\"number\",when:{source:{TY:[\"ICOMM\",\"MANSCPT\",\"PCOMM\"]},target:{type:[\"manuscript\",\"personal_communication\",\"post\"]}}},{source:[\"M1\",\"VL\"],target:\"accessed\",when:{source:{TY:[\"ELEC\"]},target:{type:[\"webpage\"]}}},{source:\"M2\",target:\"page-first\",when:{source:{TY:[\"ABST\",\"INPR\",\"JFULL\",\"JOUR\"]},target:{type:[\"article\",\"article-journal\",\"review\"]}}},{source:\"M2\",target:\"number-of-pages\",when:{source:{TY:[\"PAMP\"]},target:{type:[\"pamphlet\"]}}},{source:\"M3\",target:\"genre\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BOOK\",\"CHART\",\"CLSWK\",\"COMP\",\"CPAPER\",\"CTLG\",\"DBASE\",\"DICT\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"EQUA\",\"FIGURE\",\"GEN\",\"GRANT\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MULTI\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"THES\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"book\",\"classic\",\"collection\",\"document\",\"entry\",\"entry-dictionary\",\"event\",\"figure\",\"graphic\",\"interview\",\"legislation\",\"manuscript\",\"map\",\"pamphlet\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"regulation\",\"report\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\"]}}},{source:\"M3\",target:\"medium\",when:{source:{TY:[\"BLOG\",\"EBOOK\",\"ELEC\",\"MPCT\",\"MUSIC\"]},target:{type:[\"broadcast\",\"motion_picture\",\"musical_score\",\"post-weblog\",\"webpage\"]}}},{source:[\"N1\",\"RN\"],target:\"note\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PCOMM\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"hearing\",\"interview\",\"legal_case\",\"legislation\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:[\"N1\",\"RN\",\"RP\"],target:\"note\",when:{source:{TY:[\"PAT\",\"RPRT\"]},target:{type:[\"patent\",\"report\"]}}},{source:\"NV\",target:\"number-of-volumes\",when:{source:{TY:[\"ANCIENT\",\"BOOK\",\"CLSWK\",\"CONF\",\"DICT\",\"ECHAP\",\"EDBOOK\",\"ENCYC\",\"GEN\",\"HEAR\",\"MUSIC\",\"SER\"]},target:{type:[\"book\",\"classic\",\"collection\",\"document\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"hearing\",\"interview\",\"musical_score\",\"paper-conference\",\"performance\",\"periodical\",\"review-book\",\"treaty\"]}}},{source:\"NV\",target:\"number\",when:{source:{TY:[\"CTLG\",\"DATA\"]},target:{type:[\"dataset\",\"entry\"]}}},{source:\"NV\",target:\"version\",when:{source:{TY:[\"EBOOK\"]},target:!1}},{source:\"NV\",target:\"dimensions\",when:{source:{TY:[\"GRANT\"]},target:!1}},{source:\"NV\",target:\"collection-number\",when:{source:{TY:[\"RPRT\"]},target:{type:[\"report\"]}}},{source:\"OP\",target:\"original-title\",when:{source:{TY:[\"ABST\",\"AGGR\",\"ANCIENT\",\"BOOK\",\"CHAP\",\"CLSWK\",\"CTLG\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"ENCYC\",\"GEN\",\"INPR\",\"JFULL\",\"JOUR\",\"MGZN\",\"MUSIC\",\"PAMP\",\"SER\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"book\",\"chapter\",\"classic\",\"collection\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"interview\",\"musical_score\",\"pamphlet\",\"performance\",\"periodical\",\"review\",\"review-book\",\"treaty\"]}}},{source:\"OP\",target:\"references\",when:{source:{TY:[\"BILL\",\"CASE\",\"HEAR\",\"LEGAL\",\"STAT\",\"UNBILL\"]},target:{type:[\"bill\",\"hearing\",\"legal_case\",\"legislation\",\"regulation\"]}}},{source:\"PB\",target:\"publisher\",when:{source:{TY:[\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BLOG\",\"BOOK\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"LEGAL\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PCOMM\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"THES\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article-magazine\",\"article-newspaper\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"hearing\",\"interview\",\"legislation\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:\"PB\",target:\"authority\",when:{source:{TY:[\"CASE\"]},target:{type:[\"legal_case\"]}}},{source:\"PB\",target:\"archive\",when:{source:{TY:[\"MANSCPT\"]},target:{type:[\"manuscript\"]}}},{source:[\"PB\",\"A3\"],target:\"publisher\",when:{source:{TY:[\"RPRT\"]},target:{type:[\"report\"]}}},{source:[\"PB\",\"C5\"],target:\"publisher\",when:{source:{TY:[\"STAT\"]},target:!1}},{source:\"PY\",target:\"issued\",when:{source:{TY:[\"CHAP\",\"CLSWK\",\"COMP\",\"DICT\",\"ECHAP\",\"GOVDOC\",\"MULTI\",\"NEWS\"]},target:{type:[\"article-newspaper\",\"chapter\",\"classic\",\"entry-dictionary\",\"software\"]}}},{source:\"PY\",target:\"event-date\",when:{source:{TY:[\"CONF\"]},target:{type:[\"paper-conference\"]}}},{source:\"RI\",target:\"reviewed-title\",when:{source:{TY:[\"ABST\",\"ANCIENT\",\"CHAP\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EJOUR\",\"ENCYC\",\"GEN\",\"GRANT\",\"INPR\",\"JFULL\",\"JOUR\",\"MGZN\",\"NEWS\",\"SER\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"chapter\",\"collection\",\"document\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"interview\",\"performance\",\"periodical\",\"review\",\"treaty\"]}}},{source:\"RI\",target:\"locator\",when:{source:{TY:[\"STAT\"]},target:!1}},{source:\"SE\",target:\"section\",when:{source:{TY:[\"BILL\",\"GEN\",\"GOVDOC\",\"MUSIC\",\"NEWS\",\"STAT\",\"UNBILL\"]},target:{type:[\"article-newspaper\",\"bill\",\"collection\",\"document\",\"event\",\"interview\",\"musical_score\",\"performance\",\"treaty\"]}}},{source:\"SE\",target:\"number\",when:{source:{TY:[\"BLOG\"]},target:{type:[\"post-weblog\"]}}},{source:\"SE\",target:\"chapter-number\",when:{source:{TY:[\"CHAP\",\"SER\"]},target:{type:[\"chapter\",\"periodical\"]}}},{source:\"SE\",target:\"page\",when:{source:{TY:[\"BOOK\"]},target:{type:[\"book\",\"review-book\"]}}},{source:\"SE\",target:\"submitted\",when:{source:{TY:[\"CASE\"]},target:{type:[\"legal_case\"]}}},{source:\"SE\",target:\"number-of-pages\",when:{source:{TY:[\"CTLG\"]},target:{type:[\"entry\"]}}},{source:\"SE\",target:\"original-date\",when:{source:{TY:[\"DATA\"]},target:{type:[\"dataset\"]}}},{source:\"SE\",target:\"version\",when:{source:{TY:[\"DICT\"]},target:{type:[\"entry-dictionary\"]}}},{source:\"SE\",target:\"locator\",when:{source:{TY:[\"STAND\"]},target:{type:[\"standard\"]}}},{source:\"SE\",target:\"page-first\",when:{source:{TY:[\"MANSCPT\",\"MGZN\"]},target:{type:[\"article-magazine\",\"manuscript\"]}}},{source:[\"SE\",\"PY\"],target:\"issued\",when:{source:{TY:[\"EJOUR\"]},target:!1}},{source:[\"SE\",\"T2\"],target:\"locator\",when:{source:{TY:[\"LEGAL\"]},target:{type:[\"legislation\",\"regulation\"]}}},{source:\"SN\",target:[\"ISSN\",\"ISBN\"],when:{source:{TY:[\"AGGR\",\"CLSWK\",\"GEN\"]},target:{type:[\"classic\",\"collection\",\"document\",\"event\",\"interview\",\"performance\",\"treaty\"]}}},{source:\"SN\",target:\"ISBN\",when:{source:{TY:[\"ADVS\",\"ANCIENT\",\"BLOG\",\"BOOK\",\"CHAP\",\"COMP\",\"CONF\",\"CTLG\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"ELEC\",\"ENCYC\",\"HEAR\",\"MAP\",\"PAMP\",\"SER\",\"SLIDE\",\"SOUND\",\"VIDEO\"]},target:{type:[\"book\",\"chapter\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"hearing\",\"map\",\"pamphlet\",\"paper-conference\",\"periodical\",\"post-weblog\",\"review-book\",\"software\",\"song\",\"speech\",\"webpage\"]}}},{source:\"SN\",target:\"ISSN\",when:{source:{TY:[\"ABST\",\"DATA\",\"EJOUR\",\"INPR\",\"JFULL\",\"JOUR\",\"MGZN\",\"MUSIC\",\"NEWS\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"dataset\",\"musical_score\",\"review\"]}}},{source:\"SN\",target:\"number\",when:{source:{TY:[\"DBASE\",\"GOVDOC\"]},target:!1}},{source:[\"SN\",\"M1\"],target:\"number\",when:{source:{TY:[\"RPRT\"]},target:{type:[\"report\"]}}},{source:[\"SN\",\"SE\",\"M1\"],target:\"number\",when:{source:{TY:[\"PAT\"]},target:{type:[\"patent\"]}}},{source:[\"SN\",\"T3\"],target:\"number\",when:{source:{TY:[\"LEGAL\",\"STAND\"]},target:{type:[\"legislation\",\"regulation\",\"standard\"]}}},{source:\"SP\",target:\"page\",when:{source:{TY:[\"ABST\",\"AGGR\",\"ANCIENT\",\"BILL\",\"CHAP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DBASE\",\"DICT\",\"ECHAP\",\"EJOUR\",\"ENCYC\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MGZN\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"STAND\",\"STAT\",\"UNBILL\",\"UNPB\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"chapter\",\"collection\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"hearing\",\"interview\",\"legislation\",\"manuscript\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"regulation\",\"report\",\"review\",\"standard\",\"treaty\"]}}},{source:\"SP\",target:\"number-of-pages\",when:{source:{TY:[\"BOOK\",\"CLSWK\",\"EBOOK\",\"EDBOOK\",\"THES\"]},target:{type:[\"book\",\"classic\",\"review-book\",\"thesis\"]}}},{source:\"SP\",target:\"page-first\",when:{source:{TY:[\"CASE\"]},target:{type:[\"legal_case\"]}}},{source:\"SP\",target:\"dimensions\",when:{source:{TY:[\"MPCT\"]},target:{type:[\"broadcast\",\"motion_picture\"]}}},{source:\"ST\",target:\"title-short\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CLSWK\",\"COMP\",\"CONF\",\"CTLG\",\"DATA\",\"DICT\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"GEN\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"graphic\",\"hearing\",\"interview\",\"legal_case\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"report\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:\"SV\",target:\"collection-number\",when:{source:{TY:[\"CHAP\"]},target:{type:[\"chapter\"]}}},{source:\"T2\",target:\"collection-title\",when:{source:{TY:[\"AGGR\",\"BOOK\",\"CLSWK\",\"COMP\",\"CTLG\",\"DBASE\",\"ELEC\",\"MANSCPT\",\"MAP\",\"MPCT\",\"MULTI\",\"RPRT\",\"UNPB\"]},target:{type:[\"book\",\"broadcast\",\"classic\",\"entry\",\"manuscript\",\"map\",\"motion_picture\",\"report\",\"review-book\",\"software\",\"webpage\"]}}},{source:\"T2\",target:\"container-title\",when:{source:{TY:[\"ABST\",\"ANCIENT\",\"BILL\",\"BLOG\",\"CHAP\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ENCYC\",\"GEN\",\"INPR\",\"JFULL\",\"JOUR\",\"MGZN\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"SER\",\"STAT\",\"THES\",\"UNBILL\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"chapter\",\"collection\",\"document\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"interview\",\"musical_score\",\"pamphlet\",\"patent\",\"performance\",\"periodical\",\"post-weblog\",\"review\",\"thesis\",\"treaty\"]}}},{source:\"T2\",target:\"event\",when:{source:{TY:[\"CONF\",\"CPAPER\"]},target:{type:[\"paper-conference\"]}}},{source:\"T2\",target:\"committee\",when:{source:{TY:[\"HEAR\"]},target:{type:[\"hearing\"]}}},{source:\"T2\",target:\"section\",when:{source:{TY:[\"STAND\"]},target:{type:[\"standard\"]}}},{source:\"T3\",target:\"collection-title\",when:{source:{TY:[\"ADVS\",\"ANCIENT\",\"CHAP\",\"CONF\",\"DATA\",\"EBOOK\",\"ECHAP\",\"EJOUR\",\"GEN\",\"GOVDOC\",\"MUSIC\",\"SER\",\"SLIDE\",\"SOUND\",\"VIDEO\"]},target:{type:[\"chapter\",\"collection\",\"dataset\",\"document\",\"event\",\"interview\",\"musical_score\",\"paper-conference\",\"performance\",\"periodical\",\"song\",\"speech\",\"treaty\"]}}},{source:\"TI\",target:\"title\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"hearing\",\"interview\",\"legal_case\",\"legislation\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"report\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:\"TY\",target:\"type\"},{source:\"UR\",target:\"URL\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"interview\",\"legal_case\",\"legislation\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"post-weblog\",\"regulation\",\"report\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:[\"UR\",\"L4\"],target:\"URL\",when:{source:{TY:[\"HEAR\"]},target:{type:[\"hearing\"]}}},{source:\"VL\",target:\"volume\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"BILL\",\"BOOK\",\"CASE\",\"CHAP\",\"CLSWK\",\"CONF\",\"CPAPER\",\"CTLG\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ENCYC\",\"GEN\",\"GOVDOC\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MGZN\",\"MUSIC\",\"NEWS\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"UNBILL\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"book\",\"chapter\",\"classic\",\"collection\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"interview\",\"legal_case\",\"legislation\",\"manuscript\",\"musical_score\",\"paper-conference\",\"performance\",\"periodical\",\"regulation\",\"report\",\"review\",\"review-book\",\"song\",\"speech\",\"standard\",\"treaty\"]}}},{source:\"VL\",target:\"dimensions\",when:{source:{TY:[\"CHART\",\"EQUA\",\"FIGURE\"]},target:{type:[\"figure\"]}}},{source:\"VL\",target:\"edition\",when:{source:{TY:[\"COMP\"]},target:{type:[\"software\"]}}},{source:\"VL\",target:\"number\",when:{source:{TY:[\"PAMP\"]},target:{type:[\"pamphlet\"]}}},{source:\"VL\",target:\"version\",when:{source:{TY:[\"PAT\"]},target:{type:[\"patent\"]}}},{source:[\"VL\",\"Y2\"],target:\"accessed\",when:{source:{TY:[\"BLOG\"]},target:{type:[\"post-weblog\"]}}},{source:\"Y2\",target:\"accessed\",when:{source:{TY:[\"ABST\",\"ADVS\",\"ANCIENT\",\"ART\",\"BILL\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DICT\",\"EDBOOK\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\",\"bill\",\"book\",\"broadcast\",\"chapter\",\"classic\",\"collection\",\"dataset\",\"document\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"event\",\"figure\",\"graphic\",\"hearing\",\"interview\",\"legal_case\",\"legislation\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"patent\",\"performance\",\"periodical\",\"personal_communication\",\"post\",\"regulation\",\"report\",\"review\",\"review-book\",\"software\",\"song\",\"speech\",\"standard\",\"thesis\",\"treaty\"]}}},{source:\"C4\",target:\"author\",when:{source:{TY:[\"BOOK\",\"CHAP\",\"EBOOK\",\"ECHAP\",\"EJOUR\"]},target:{\"reviewed-author\":!0,type:[\"book\",\"chapter\",\"review-book\",\"review\"]}}},{source:\"AU\",target:\"reviewed-author\",when:{source:{C4:!0,TY:[\"BOOK\",\"CHAP\",\"EBOOK\",\"ECHAP\",\"EJOUR\"]},target:{type:[\"book\",\"chapter\",\"review-book\",\"review\"]}}},{source:\"TA\",target:\"author\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{\"original-author\":!0,translator:!0}}},{source:\"AU\",target:\"original-author\",when:{source:{TA:!0,TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{translator:!0}}},{source:\"TT\",target:\"title\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{\"original-author\":!0,translator:!0}}},{source:\"TI\",target:\"original-title\",when:{source:{TT:!0,TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"]},target:{translator:!0}}}];var zo=J(Wo());var rc=/^\\d{4}-\\d{3}[0-9Xx]$/,qo=/10(?:\\.[0-9]{4,})?\\/[^\\s]*[^\\s.,]/,We={ANY:{toTarget(...e){return e.find(Boolean)},toSource(e){return[e]}},PAGE:{keepAll:!0,toTarget(e,t){return[e,t].filter(Boolean).join(\"-\")},toSource(e){return e.replace(/[-–—]/g,\"-\")}},ISBN:{toTarget(e){return rc.test(e)?[e]:[void 0,e]},toSource(...e){return e.find(Boolean)}},DATE:{toTarget(e){return e&&(0,zo.parse)(e.split(\"/\").slice(0,3).filter(Boolean).join(\"/\"))},toSource(e){if(!e[\"date-parts\"]||!e[\"date-parts\"][0])return;let t=Array(4).fill(\"\");return e[\"date-parts\"][0].forEach((r,n)=>{t[n]=r}),e.season&&(t[3]=e.season),t.join(\"/\")}},YEAR:{toTarget(e){return isNaN(+e)?{raw:e}:{\"date-parts\":[[+e]]}},toSource(e){var t;return(t=e[\"date-parts\"])===null||t===void 0||(t=t[0])===null||t===void 0||(t=t[0])===null||t===void 0?void 0:t.toString()}},DATE_YEAR:{keepAll:!0,toTarget(...e){return We.DATE.toTarget(We.ANY.toTarget(...e))},toSource(e){return[We.DATE.toSource(e),We.YEAR.toSource(e)]}},NAME:{toTarget(e){return e&&[].concat(e).map(t=>{let r=t.split(/, ?/),[n,o,i]=r;switch(r.length){case 3:return{family:n,given:o,suffix:i};case 2:return{family:n,given:o};case 1:if(n.indexOf(\" \")===-1)return{family:n};default:return{literal:t}}})},toSource(e){return e.map(({family:t,given:r,suffix:n,literal:o})=>{let i=[t,r,n].filter(Boolean);return i.length?i.join(\", \"):o})}},KEYWORD:{toTarget(e){return e=[].concat(e),e.join(\",\")},toSource(e){return e.split(\",\")}},ID:{toSource(e){return e.toString().slice(0,20)}},TYPE:{toTarget(e){return Kr.RIS[e]},toSource(e){return Kr.CSL[e]}},DOI:{toTarget(e){let t=e.match(qo);return t?t[0]:void 0},toSource(e){let t=e.match(qo);return t?t[0]:void 0}}},G=We;var Zo=[{source:\"TY\",target:\"type\"},{source:\"ID\",target:\"id\"},{source:[\"T1\",\"TI\",\"CT\"],target:\"title\"},{source:\"BT\",target:\"title\",when:{source:{type:[\"BOOK\",\"UNPB\"],T1:!1,TI:!1,CT:!1},target:!1}},{source:\"T2\",target:\"container-title\",when:{target:{type:[\"bill\",\"book\",\"broadcast\",\"chapter\",\"dataset\",\"entry\",\"entry-dictionary\",\"entry-encyclopedia\",\"figure\",\"graphic\",\"interview\",\"legal_case\",\"legislation\",\"manuscript\",\"map\",\"motion_picture\",\"musical_score\",\"pamphlet\",\"paper-conference\",\"patent\",\"personal_communication\",\"post\",\"post-weblog\",\"report\",\"review\",\"review-book\",\"song\",\"speech\",\"thesis\",\"treaty\",\"webpage\"]}}},{source:\"BT\",target:\"container-title\",when:{source:{type:[\"ABST\",\"ADVS\",\"ART\",\"BILL\",\"CASE\",\"CHAP\",\"COMP\",\"CONF\",\"CTLG\",\"DATA\",\"ELEC\",\"GEN\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"MAP\",\"MGZN\",\"MPCT\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAT\",\"THES\",\"UNBILL\",\"VIDEO\"],T2:!1},target:!1}},{source:\"T3\",target:\"collection-title\"},{source:[\"A1\",\"AU\"],target:\"author\"},{source:[\"A2\",\"ED\"],target:\"editor\"},{source:\"A3\",target:\"collection-editor\"},{source:[\"Y1\",\"PY\"],target:\"issued\"},{source:\"Y2\",target:\"event-date\",convert:G.DATE,when:{source:{type:[\"CONF\",\"CPAPER\"]},target:{type:[\"paper-conference\"]}}},{source:\"Y2\",target:\"submitted\",convert:G.DATE,when:{source:{type:[\"PAT\"]},target:{type:\"patent\"}}},{source:[\"AB\",\"N1\"],target:\"note\"},{source:\"N2\",target:\"abstract\"},{source:\"KW\",target:\"keyword\"},{source:[\"JF\",\"JO\"],target:\"container-title\",convert:G.ANY,when:{target:{type:[\"article\",\"article-journal\",\"article-magazine\",\"article-newspaper\"]}}},{source:[\"JA\",\"J1\",\"J2\"],target:\"container-title-short\"},{source:\"VL\",target:\"volume\"},{source:[\"IS\",\"CP\"],target:\"issue\"},{source:\"SP\",target:\"page-first\"},{source:[\"SP\",\"EP\"],target:\"page\",convert:G.PAGE,when:{source:{SP:!0,EP:!0}}},{source:\"CY\",target:\"publisher-place\"},{source:\"PB\",target:\"publisher\"},{source:\"SN\",target:[\"ISSN\",\"ISBN\"]},{source:\"AV\",target:\"archive_location\"},{source:\"UR\",target:\"URL\"}];var Qo=[{source:[\"T1\",\"BT\"],target:\"title\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"],TI:!1},target:!1}},{source:\"A1\",target:\"author\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BLOG\",\"BOOK\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MULTI\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"THES\",\"UNPB\",\"VIDEO\"],AU:!1},target:!1}},{source:\"Y1\",target:\"issued\",when:{source:{TY:[\"CONF\"],C2:!1,DA:!1},target:!1}},{source:\"Y1\",target:\"issued\",when:{source:{TY:[\"PAT\"],C2:!1,DA:!1,PY:!1},target:!1}},{source:\"Y1\",target:\"issued\",when:{source:{TY:[\"EBOOK\"],C5:!1,PY:!1},target:!1}},{source:\"Y1\",target:\"issued\",when:{source:{TY:[\"ABST\",\"ADVS\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHART\",\"CPAPER\",\"CTLG\",\"DATA\",\"EDBOOK\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MUSIC\",\"PAMP\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"],DA:!1,PY:!1},target:!1}},{source:\"Y1\",target:\"issued\",when:{source:{TY:[\"STAT\"],DA:!1,PY:!1,Y2:!1},target:!1}},{source:\"Y1\",target:\"issued\",when:{source:{TY:[\"AGGR\",\"DBASE\"],ET:!1,PY:!1},target:!1}},{source:\"Y1\",target:\"issued\",when:{source:{TY:[\"CHAP\",\"CLSWK\",\"COMP\",\"DICT\",\"ECHAP\",\"GOVDOC\",\"MULTI\",\"NEWS\"],PY:!1},target:!1}},{source:\"Y1\",target:\"issued\",when:{source:{TY:[\"EJOUR\"],PY:!1,SE:!1},target:!1}},{source:[\"JO\",\"JF\",\"J1\"],target:\"container-title\",when:{source:{TY:[\"CONF\"],C3:!1},target:!1}},{source:[\"JO\",\"JF\",\"J1\"],target:\"container-title\",when:{source:{TY:[\"ABST\",\"ANCIENT\",\"BILL\",\"BLOG\",\"CHAP\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ENCYC\",\"GEN\",\"INPR\",\"JFULL\",\"JOUR\",\"MGZN\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"SER\",\"STAT\",\"THES\",\"UNBILL\"],T2:!1},target:!1}},{source:\"JA\",target:\"container-title-short\",when:{source:{TY:[\"ABST\",\"ANCIENT\",\"BOOK\",\"CHAP\",\"CTLG\",\"DATA\",\"DICT\",\"ENCYC\",\"GRANT\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MGZN\",\"PAMP\",\"PCOMM\",\"SER\",\"STAND\",\"STAT\",\"UNPB\"],J2:!1},target:!1}},{source:\"N2\",target:\"abstract\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"],AB:!1},target:!1}},{source:[\"SP\",\"EP\"],target:\"page\",when:{source:{TY:[\"BOOK\"],SE:!1},target:!1}},{source:[\"SP\",\"EP\"],target:\"page\",when:{source:{TY:[\"ABST\",\"AGGR\",\"ANCIENT\",\"BILL\",\"CHAP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DBASE\",\"DICT\",\"ECHAP\",\"EJOUR\",\"ENCYC\",\"GEN\",\"GOVDOC\",\"GRANT\",\"HEAR\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MGZN\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"STAND\",\"STAT\",\"UNBILL\",\"UNPB\"],EP:!0},target:!1}},{source:\"AV\",target:\"archive_location\",when:{target:!1}},{source:\"LK\",target:\"URL\",when:{source:{TY:[\"HEAR\"],L4:!1,UR:!1},target:!1}},{source:\"LK\",target:\"URL\",when:{source:{TY:[\"ABST\",\"ADVS\",\"AGGR\",\"ANCIENT\",\"ART\",\"BILL\",\"BLOG\",\"BOOK\",\"CASE\",\"CHAP\",\"CHART\",\"CLSWK\",\"COMP\",\"CONF\",\"CPAPER\",\"CTLG\",\"DATA\",\"DBASE\",\"DICT\",\"EBOOK\",\"ECHAP\",\"EDBOOK\",\"EJOUR\",\"ELEC\",\"ENCYC\",\"EQUA\",\"FIGURE\",\"GEN\",\"GOVDOC\",\"GRANT\",\"ICOMM\",\"INPR\",\"JFULL\",\"JOUR\",\"LEGAL\",\"MANSCPT\",\"MAP\",\"MGZN\",\"MPCT\",\"MULTI\",\"MUSIC\",\"NEWS\",\"PAMP\",\"PAT\",\"PCOMM\",\"RPRT\",\"SER\",\"SLIDE\",\"SOUND\",\"STAND\",\"STAT\",\"THES\",\"UNBILL\",\"UNPB\",\"VIDEO\"],UR:!1},target:!1}},{source:\"IS\",target:\"issue\",when:{source:{TY:\"MGZN\",M1:!1},target:!1}}];var Xo=St.concat(Qo);var Ne={new:St,old:Zo,mixed:Xo};var Jr={author:\"NAME\",chair:\"NAME\",\"collection-editor\":\"NAME\",compiler:\"NAME\",composer:\"NAME\",\"container-author\":\"NAME\",contributor:\"NAME\",curator:\"NAME\",director:\"NAME\",editor:\"NAME\",\"editorial-director\":\"NAME\",\"editor-translator\":\"NAME\",\"executive-producer\":\"NAME\",guest:\"NAME\",host:\"NAME\",illustrator:\"NAME\",interviewer:\"NAME\",narrator:\"NAME\",organizer:\"NAME\",\"original-author\":\"NAME\",performer:\"NAME\",producer:\"NAME\",recipient:\"NAME\",\"reviewed-author\":\"NAME\",\"script-writer\":\"NAME\",\"series-creator\":\"NAME\",translator:\"NAME\",accessed:\"DATE\",\"available-date\":\"DATE\",\"event-date\":\"DATE\",issued:\"DATE_YEAR\",\"original-date\":\"DATE\",submitted:\"DATE\",id:\"ID\",\"ISSN,ISBN\":\"ISBN\",keyword:\"KEYWORD\",page:\"PAGE\",type:\"TYPE\",DOI:\"DOI\"};function ei(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ti(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ei(Object(r),!0).forEach(function(n){ic(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ei(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ic(e,t,r){return(t=ac(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ac(e){var t=sc(e,\"string\");return typeof t==\"symbol\"?t:t+\"\"}function sc(e,t){if(typeof e!=\"object\"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||\"default\");if(typeof n!=\"object\")return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}var uc=/^[A-Z][A-Z0-9] {2}-( |$)/,cc=/ {2}-(?: |$)/,Vr=new Map;function Rt(e){if(!Vr.has(e)){for(let t of e){if(t.target===\"issued\"&&!Array.isArray(t.source)){t.convert=G.YEAR;continue}if(t.target in Jr&&(t.convert=G[Jr[t.target]]),!(t.convert&&t.convert.keepAll===!0)&&Array.isArray(t.source))if(t.convert){let{toSource:r,toTarget:n}=t.convert;t.convert={toTarget(...o){return n(G.ANY.toTarget(...o))},toSource(...o){return G.ANY.toSource(r(...o))}}}else t.convert=G.ANY}Vr.set(e,new B.Translator(e))}return Vr.get(e)}function lc(e){return e=e.toUpperCase(),e===\"JOURN\"?\"JOUR\":e}function ri(e){let t=[],r,n;for(let o of e.split(/\\r?\\n/)){if(o=o.trim(),!uc.test(o)){r&&n&&(r[n]+=\" \"+o);continue}let[i,s]=o.split(cc);if(s.trim()===\"\"){n=void 0;continue}switch(i){case\"ER\":r=void 0,n=void 0;break;case\"TY\":r={},t.push(r),s=lc(s);default:Array.isArray(r[i])?r[i].push(s):r[i]=r[i]?[r[i],s]:s,n=i}}return t}function ni(e){return Rt(Ne.old).convertToTarget(e)}function oi(e){return Rt(Ne.new).convertToTarget(e)}function ii(e){return Rt(Ne.mixed).convertToTarget(e)}function ai(e,{type:t,format:r=t||\"text\",spec:n=\"mixed\"}={}){if(!Ne[n])throw new TypeError(`Invalid RIS specification (\"${n}\")`);let o=Rt(Ne[n]).convertToSource,i=e.map(s=>o(s.type?s:ti(ti({},s),{},{type:\"document\"})));return r===\"object\"?i:i.map(s=>{let c=[];for(let E in s)E!==\"TY\"&&c.push(...[].concat(s[E]).map(y=>`${E}  - ${y.toString().replace(/(.{70})/g,`$1\n`)}`));return c.unshift(`TY  - ${s.TY}`),c.push(\"ER  - \"),c.join(`\n`)}).join(`\n`)}var si=[\"A1\",\"AV\",\"BT\",\"CP\",\"ED\",\"EP\",\"ID\",\"J1\",\"JA\",\"JF\",\"JO\",\"L2\",\"L3\",\"N2\",\"T1\",\"U1\",\"U2\",\"U3\",\"U4\",\"U5\",\"U6\",\"Y1\"],ui=[\"A4\",\"AD\",\"AN\",\"C1\",\"C2\",\"C3\",\"C4\",\"C5\",\"C6\",\"C7\",\"C8\",\"CA\",\"CN\",\"DA\",\"DB\",\"DO\",\"DP\",\"ET\",\"LA\",\"LB\",\"NV\",\"OP\",\"PY\",\"RI\",\"RN\",\"SE\",\"ST\",\"SV\",\"TA\",\"TT\"];j.add(\"@ris\",{input:{\"@ris/file\":{parse:ri,parseType:{dataType:\"String\",predicate:/^TY {2}- /m}},\"@ris/record\":{parse:ii,parseType:{dataType:\"SimpleObject\",propertyConstraint:{props:[\"TY\"]}}},\"@ris/new+record\":{parse:oi,parseType:{extends:\"@ris/record\",propertyConstraint:[{props:ui,match:\"some\"},{props:si,match:\"none\"}]}},\"@ris/old+record\":{parse:ni,parseType:{extends:\"@ris/record\",propertyConstraint:[{props:si,match:\"some\"},{props:ui,match:\"none\"}]}}},output:{ris:ai}});return Ti(pc);})();\n;window.Bibliotecas=window.Bibliotecas||{};window.Bibliotecas[\"@citation-js/core\"]=_bibliotecaMethods;})();\n",
  "vendor/@citation-js/core/LICENSE": "===== @citation-js/core =====\nThe MIT License (MIT)\n\nCopyright (c) 2015-2026 Lars Willighagen\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n===== @citation-js/name =====\nThe MIT License (MIT)\n\nPackage: @citation-js/name 0.4.2\nAuthor declared by package.json: Lars Willighagen\nLicense declared by package.json: MIT\nUpstream: https://github.com/citation-js/name\nThe npm package and upstream repository do not provide a separate copyright notice.\nThe following is the standard MIT permission text; no copyright year is inferred.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n===== sync-fetch-undici =====\nMIT License\n\nCopyright (c) 2019 Lars Willighagen\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n===== moo =====\nBSD 3-Clause License\n\nCopyright (c) 2017, Tim Radvan (tjvr)\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n\n===== @citation-js/plugin-bibtex =====\nThe MIT License (MIT)\n\nCopyright (c) 2015-2026 Lars Willighagen\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n===== @citation-js/date =====\nPackage: @citation-js/date 0.5.1\nLicense declared by package.json: MIT. Author: \"Lars Willighagen\"\nNo copyright year is inferred.\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n===== @citation-js/plugin-ris =====\nThe MIT License (MIT)\n\nCopyright (c) 2015-2026 Lars Willighagen\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n",
  "vendor/@citation-js/core/package.json": "{\n  \"name\": \"@citation-js/core\",\n  \"version\": \"0.9.0\",\n  \"description\": \"Convert different bibliographic metadata sources\",\n  \"keywords\": [\n    \"citation-js\",\n    \"citation\",\n    \"bibliography\"\n  ],\n  \"author\": \"Lars Willighagen <lars.willighagen@gmail.com>\",\n  \"license\": \"MIT\",\n  \"main\": \"lib/index.js\",\n  \"module\": \"lib-mjs/index.js\",\n  \"types\": \"index.d.ts\",\n  \"directories\": {\n    \"lib\": \"src\",\n    \"test\": \"__tests__\"\n  },\n  \"homepage\": \"https://citation.js.org/\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/citation-js/citation-js.git\",\n    \"directory\": \"packages/core\"\n  },\n  \"bugs\": {\n    \"url\": \"https://github.com/citation-js/citation-js/issues\"\n  },\n  \"engines\": {\n    \"node\": \">=22.12.0\"\n  },\n  \"files\": [\n    \"lib\",\n    \"lib-mjs\",\n    \"index.d.ts\"\n  ],\n  \"scripts\": {\n    \"test\": \"mocha -c -R dot -r @babel/register test/*.spec.js\",\n    \"test:live\": \"TEST_MOCK_HTTP=false npm test\",\n    \"coverage\": \"BABEL_ENV=coverage nyc npm test && nyc report --reporter=text-lcov > coverage.lcov\"\n  },\n  \"dependencies\": {\n    \"@citation-js/date\": \"^0.5.0\",\n    \"@citation-js/name\": \"^0.4.2\",\n    \"sync-fetch-undici\": \"^0.7.1\"\n  },\n  \"gitHead\": \"51a37ce28fd3508e5cc2957b7d17794cdbad8ed0\"\n}\n",
  "vendor/docx/erlen-bundle.js": "(function(){var _bibliotecaMethods=(()=>{var gr=Object.defineProperty;var Sa=Object.getOwnPropertyDescriptor;var Aa=Object.getOwnPropertyNames;var ka=Object.prototype.hasOwnProperty;var Ze=(e=>typeof require<\"u\"?require:typeof Proxy<\"u\"?new Proxy(e,{get:(r,t)=>(typeof require<\"u\"?require:r)[t]}):e)(function(e){if(typeof require<\"u\")return require.apply(this,arguments);throw Error('Dynamic require of \"'+e+'\" is not supported')});var Ra=(e,r)=>{for(var t in r)gr(e,t,{get:r[t],enumerable:!0})},Ia=(e,r,t,s)=>{if(r&&typeof r==\"object\"||typeof r==\"function\")for(let o of Aa(r))!ka.call(e,o)&&o!==t&&gr(e,o,{get:()=>r[o],enumerable:!(s=Sa(r,o))||s.enumerable});return e};var Ca=e=>Ia(gr({},\"__esModule\",{value:!0}),e);var Oh={};Ra(Oh,{Document:()=>ca,HeadingLevel:()=>Fi,Packer:()=>fn,Paragraph:()=>ze,Table:()=>Qi,TableCell:()=>Mt,TableRow:()=>cn,TextRun:()=>ir});var Na=Object.create,Xn=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,Pa=Object.getOwnPropertyNames,Da=Object.getPrototypeOf,Yn=Object.prototype.hasOwnProperty,Zn=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(s){throw t=[s],s}},ce=(e,r)=>()=>(r||(e((r={exports:{}}).exports,r),e=null),r.exports),La=(e,r,t,s)=>{if(r&&typeof r==\"object\"||typeof r==\"function\")for(var o=Pa(r),u=0,a=o.length,n;u<a;u++)n=o[u],!Yn.call(e,n)&&n!==t&&Xn(e,n,{get:(c=>r[c]).bind(null,n),enumerable:!(s=Oa(r,n))||s.enumerable});return e},zr=(e,r,t)=>(t=e!=null?Na(Da(e)):{},La(r||!e||!e.__esModule||!Yn.call(e,\"default\")?Xn(t,\"default\",{value:e,enumerable:!0}):t,e)),qt=(e=>typeof Ze<\"u\"?Ze:typeof Proxy<\"u\"?new Proxy(e,{get:(r,t)=>(typeof Ze<\"u\"?Ze:r)[t]}):e)(function(e){if(typeof Ze<\"u\")return Ze.apply(this,arguments);throw Error('Calling `require` for \"'+e+\"\\\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.\")});function Ft(e){\"@babel/helpers - typeof\";return Ft=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(r){return typeof r}:function(r){return r&&typeof Symbol==\"function\"&&r.constructor===Symbol&&r!==Symbol.prototype?\"symbol\":typeof r},Ft(e)}function Fa(e,r){if(Ft(e)!=\"object\"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var s=t.call(e,r||\"default\");if(Ft(s)!=\"object\")return s;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(r===\"string\"?String:Number)(e)}function Ba(e){var r=Fa(e,\"string\");return Ft(r)==\"symbol\"?r:r+\"\"}function ee(e,r,t){return(r=Ba(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Bt=class{constructor(e){ee(this,\"rootKey\",void 0),this.rootKey=e}get writtenAs(){}},Ma=Object.seal({}),ue=class extends Bt{constructor(e){super(e),ee(this,\"root\",void 0),this.root=new Array}prepForXml(e){var r;e.stack.push(this);let t=this.root.flatMap(s=>{if(s instanceof Bt){let o=s.writtenAs;return o?o.map(u=>u.prepForXml(e)):s.prepForXml(e)}return s}).filter(s=>s!==void 0);return e.stack.pop(),{[this.rootKey]:t.length?t.length===1&&(!((r=t[0])===null||r===void 0)&&r._attr)?t[0]:t:Ma}}addChildElement(e){return this.root.push(e),this}},Ve=class extends ue{constructor(e,r){super(e),ee(this,\"includeIfEmpty\",void 0),this.includeIfEmpty=r}prepForXml(e){let r=super.prepForXml(e);return this.includeIfEmpty||r&&(typeof r[this.rootKey]!=\"object\"||Object.keys(r[this.rootKey]).length)?r:void 0}};function wn(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);r&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,s)}return t}function he(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?wn(Object(t),!0).forEach(function(s){ee(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):wn(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}var we=class extends Bt{constructor(e){super(\"_attr\"),ee(this,\"root\",void 0),ee(this,\"xmlKeys\",void 0),this.root=e}prepForXml(e){let r={};return Object.entries(this.root).forEach(([t,s])=>{if(s!==void 0){let o=this.xmlKeys&&this.xmlKeys[t]||t;r[o]=s}}),{_attr:r}}},Jn=class extends Bt{constructor(e){super(\"_attr\"),ee(this,\"root\",void 0),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:r})=>r!==void 0).reduce((r,{key:t,value:s})=>he(he({},r),{},{[t]:s}),{})}}},Re=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{val:\"w:val\",color:\"w:color\",fill:\"w:fill\",space:\"w:space\",sz:\"w:sz\",type:\"w:type\",rsidR:\"w:rsidR\",rsidRPr:\"w:rsidRPr\",rsidSect:\"w:rsidSect\",w:\"w:w\",h:\"w:h\",top:\"w:top\",right:\"w:right\",bottom:\"w:bottom\",left:\"w:left\",header:\"w:header\",footer:\"w:footer\",gutter:\"w:gutter\",linePitch:\"w:linePitch\",pos:\"w:pos\"})}},$r=ce(((e,r)=>{var t=typeof Reflect==\"object\"?Reflect:null,s=t&&typeof t.apply==\"function\"?t.apply:function(N,B,_){return Function.prototype.apply.call(N,B,_)},o;t&&typeof t.ownKeys==\"function\"?o=t.ownKeys:Object.getOwnPropertySymbols?o=function(N){return Object.getOwnPropertyNames(N).concat(Object.getOwnPropertySymbols(N))}:o=function(N){return Object.getOwnPropertyNames(N)};function u(d){console&&console.warn&&console.warn(d)}var a=Number.isNaN||function(N){return N!==N};function n(){n.init.call(this)}r.exports=n,r.exports.once=P,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var c=10;function g(d){if(typeof d!=\"function\")throw new TypeError('The \"listener\" argument must be of type Function. Received type '+typeof d)}Object.defineProperty(n,\"defaultMaxListeners\",{enumerable:!0,get:function(){return c},set:function(d){if(typeof d!=\"number\"||d<0||a(d))throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received '+d+\".\");c=d}}),n.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=function(N){if(typeof N!=\"number\"||N<0||a(N))throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received '+N+\".\");return this._maxListeners=N,this};function E(d){return d._maxListeners===void 0?n.defaultMaxListeners:d._maxListeners}n.prototype.getMaxListeners=function(){return E(this)},n.prototype.emit=function(N){for(var B=[],_=1;_<arguments.length;_++)B.push(arguments[_]);var j=N===\"error\",J=this._events;if(J!==void 0)j=j&&J.error===void 0;else if(!j)return!1;if(j){var C;if(B.length>0&&(C=B[0]),C instanceof Error)throw C;var G=new Error(\"Unhandled error.\"+(C?\" (\"+C.message+\")\":\"\"));throw G.context=C,G}var A=J[N];if(A===void 0)return!1;if(typeof A==\"function\")s(A,this,B);else for(var z=A.length,Q=T(A,z),_=0;_<z;++_)s(Q[_],this,B);return!0};function p(d,N,B,_){var j,J,C;if(g(B),J=d._events,J===void 0?(J=d._events=Object.create(null),d._eventsCount=0):(J.newListener!==void 0&&(d.emit(\"newListener\",N,B.listener?B.listener:B),J=d._events),C=J[N]),C===void 0)C=J[N]=B,++d._eventsCount;else if(typeof C==\"function\"?C=J[N]=_?[B,C]:[C,B]:_?C.unshift(B):C.push(B),j=E(d),j>0&&C.length>j&&!C.warned){C.warned=!0;var G=new Error(\"Possible EventEmitter memory leak detected. \"+C.length+\" \"+String(N)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");G.name=\"MaxListenersExceededWarning\",G.emitter=d,G.type=N,G.count=C.length,u(G)}return d}n.prototype.addListener=function(N,B){return p(this,N,B,!1)},n.prototype.on=n.prototype.addListener,n.prototype.prependListener=function(N,B){return p(this,N,B,!0)};function x(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(d,N,B){var _={fired:!1,wrapFn:void 0,target:d,type:N,listener:B},j=x.bind(_);return j.listener=B,_.wrapFn=j,j}n.prototype.once=function(N,B){return g(B),this.on(N,m(this,N,B)),this},n.prototype.prependOnceListener=function(N,B){return g(B),this.prependListener(N,m(this,N,B)),this},n.prototype.removeListener=function(N,B){var _,j,J,C,G;if(g(B),j=this._events,j===void 0)return this;if(_=j[N],_===void 0)return this;if(_===B||_.listener===B)--this._eventsCount===0?this._events=Object.create(null):(delete j[N],j.removeListener&&this.emit(\"removeListener\",N,_.listener||B));else if(typeof _!=\"function\"){for(J=-1,C=_.length-1;C>=0;C--)if(_[C]===B||_[C].listener===B){G=_[C].listener,J=C;break}if(J<0)return this;J===0?_.shift():R(_,J),_.length===1&&(j[N]=_[0]),j.removeListener!==void 0&&this.emit(\"removeListener\",N,G||B)}return this},n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=function(N){var B,_=this._events,j;if(_===void 0)return this;if(_.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):_[N]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete _[N]),this;if(arguments.length===0){var J=Object.keys(_),C;for(j=0;j<J.length;++j)C=J[j],C!==\"removeListener\"&&this.removeAllListeners(C);return this.removeAllListeners(\"removeListener\"),this._events=Object.create(null),this._eventsCount=0,this}if(B=_[N],typeof B==\"function\")this.removeListener(N,B);else if(B!==void 0)for(j=B.length-1;j>=0;j--)this.removeListener(N,B[j]);return this};function w(d,N,B){var _=d._events;if(_===void 0)return[];var j=_[N];return j===void 0?[]:typeof j==\"function\"?B?[j.listener||j]:[j]:B?S(j):T(j,j.length)}n.prototype.listeners=function(N){return w(this,N,!0)},n.prototype.rawListeners=function(N){return w(this,N,!1)},n.listenerCount=function(d,N){return typeof d.listenerCount==\"function\"?d.listenerCount(N):b.call(d,N)},n.prototype.listenerCount=b;function b(d){var N=this._events;if(N!==void 0){var B=N[d];if(typeof B==\"function\")return 1;if(B!==void 0)return B.length}return 0}n.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]};function T(d,N){for(var B=new Array(N),_=0;_<N;++_)B[_]=d[_];return B}function R(d,N){for(;N+1<d.length;N++)d[N]=d[N+1];d.pop()}function S(d){for(var N=new Array(d.length),B=0;B<N.length;++B)N[B]=d[B].listener||d[B];return N}function P(d,N){return new Promise(function(B,_){function j(C){d.removeListener(N,J),_(C)}function J(){typeof d.removeListener==\"function\"&&d.removeListener(\"error\",j),B([].slice.call(arguments))}y(d,N,J,{once:!0}),N!==\"error\"&&O(d,j,{once:!0})})}function O(d,N,B){typeof d.on==\"function\"&&y(d,\"error\",N,B)}function y(d,N,B,_){if(typeof d.on==\"function\")_.once?d.once(N,B):d.on(N,B);else if(typeof d.addEventListener==\"function\")d.addEventListener(N,function j(J){_.once&&d.removeEventListener(N,j),B(J)});else throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type '+typeof d)}})),qe=ce(((e,r)=>{typeof Object.create==\"function\"?r.exports=function(s,o){o&&(s.super_=o,s.prototype=Object.create(o.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:r.exports=function(s,o){if(o){s.super_=o;var u=function(){};u.prototype=o.prototype,s.prototype=new u,s.prototype.constructor=s}}})),ke,yt=Zn((()=>{ke=globalThis||self}));function Ua(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}function Fr(){throw new Error(\"setTimeout has not been defined\")}function Br(){throw new Error(\"clearTimeout has not been defined\")}function Qn(e){if(Pe===setTimeout)return setTimeout(e,0);if((Pe===Fr||!Pe)&&setTimeout)return Pe=setTimeout,setTimeout(e,0);try{return Pe(e,0)}catch{try{return Pe.call(null,e,0)}catch{return Pe.call(this,e,0)}}}function Ha(e){if(De===clearTimeout)return clearTimeout(e);if((De===Br||!De)&&clearTimeout)return De=clearTimeout,clearTimeout(e);try{return De(e)}catch{try{return De.call(null,e)}catch{return De.call(this,e)}}}function Wa(){!rt||!Qe||(rt=!1,Qe.length?Fe=Qe.concat(Fe):Pt=-1,Fe.length&&ei())}function ei(){if(!rt){var e=Qn(Wa);rt=!0;for(var r=Fe.length;r;){for(Qe=Fe,Fe=[];++Pt<r;)Qe&&Qe[Pt].run();Pt=-1,r=Fe.length}Qe=null,rt=!1,Ha(e)}}function gn(e,r){this.fun=e,this.array=r}function We(){}var yr,_e,Pe,De,Fe,rt,Qe,Pt,yn,ge,Xe=Zn((()=>{yr={exports:{}},_e=yr.exports={},(function(){try{typeof setTimeout==\"function\"?Pe=setTimeout:Pe=Fr}catch{Pe=Fr}try{typeof clearTimeout==\"function\"?De=clearTimeout:De=Br}catch{De=Br}})(),Fe=[],rt=!1,Pt=-1,_e.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];Fe.push(new gn(e,r)),Fe.length===1&&!rt&&Qn(ei)},gn.prototype.run=function(){this.fun.apply(null,this.array)},_e.title=\"browser\",_e.browser=!0,_e.env={},_e.argv=[],_e.version=\"\",_e.versions={},_e.on=We,_e.addListener=We,_e.once=We,_e.off=We,_e.removeListener=We,_e.removeAllListeners=We,_e.emit=We,_e.prependListener=We,_e.prependOnceListener=We,_e.listeners=function(e){return[]},_e.binding=function(e){throw new Error(\"process.binding is not supported\")},_e.cwd=function(){return\"/\"},_e.chdir=function(e){throw new Error(\"process.chdir is not supported\")},_e.umask=function(){return 0},yn=yr.exports,ge=Ua(yn)})),ti=ce(((e,r)=>{r.exports=$r().EventEmitter})),ja=ce((e=>{e.byteLength=c,e.toByteArray=E,e.fromByteArray=m;for(var r=[],t=[],s=typeof Uint8Array<\"u\"?Uint8Array:Array,o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",u=0,a=o.length;u<a;++u)r[u]=o[u],t[o.charCodeAt(u)]=u;t[45]=62,t[95]=63;function n(w){var b=w.length;if(b%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var T=w.indexOf(\"=\");T===-1&&(T=b);var R=T===b?0:4-T%4;return[T,R]}function c(w){var b=n(w),T=b[0],R=b[1];return(T+R)*3/4-R}function g(w,b,T){return(b+T)*3/4-T}function E(w){for(var b,T=n(w),R=T[0],S=T[1],P=new s(g(w,R,S)),O=0,y=S>0?R-4:R,d=0;d<y;d+=4)b=t[w.charCodeAt(d)]<<18|t[w.charCodeAt(d+1)]<<12|t[w.charCodeAt(d+2)]<<6|t[w.charCodeAt(d+3)],P[O++]=b>>16&255,P[O++]=b>>8&255,P[O++]=b&255;return S===2&&(b=t[w.charCodeAt(d)]<<2|t[w.charCodeAt(d+1)]>>4,P[O++]=b&255),S===1&&(b=t[w.charCodeAt(d)]<<10|t[w.charCodeAt(d+1)]<<4|t[w.charCodeAt(d+2)]>>2,P[O++]=b>>8&255,P[O++]=b&255),P}function p(w){return r[w>>18&63]+r[w>>12&63]+r[w>>6&63]+r[w&63]}function x(w,b,T){for(var R,S=[],P=b;P<T;P+=3)R=(w[P]<<16&16711680)+(w[P+1]<<8&65280)+(w[P+2]&255),S.push(p(R));return S.join(\"\")}function m(w){for(var b,T=w.length,R=T%3,S=[],P=16383,O=0,y=T-R;O<y;O+=P)S.push(x(w,O,O+P>y?y:O+P));return R===1?(b=w[T-1],S.push(r[b>>2]+r[b<<4&63]+\"==\")):R===2&&(b=(w[T-2]<<8)+w[T-1],S.push(r[b>>10]+r[b>>4&63]+r[b<<2&63]+\"=\")),S.join(\"\")}})),Ga=ce((e=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */e.read=function(r,t,s,o,u){var a,n,c=u*8-o-1,g=(1<<c)-1,E=g>>1,p=-7,x=s?u-1:0,m=s?-1:1,w=r[t+x];for(x+=m,a=w&(1<<-p)-1,w>>=-p,p+=c;p>0;a=a*256+r[t+x],x+=m,p-=8);for(n=a&(1<<-p)-1,a>>=-p,p+=o;p>0;n=n*256+r[t+x],x+=m,p-=8);if(a===0)a=1-E;else{if(a===g)return n?NaN:(w?-1:1)*(1/0);n=n+Math.pow(2,o),a=a-E}return(w?-1:1)*n*Math.pow(2,a-o)},e.write=function(r,t,s,o,u,a){var n,c,g,E=a*8-u-1,p=(1<<E)-1,x=p>>1,m=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=o?0:a-1,b=o?1:-1,T=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,n=p):(n=Math.floor(Math.log(t)/Math.LN2),t*(g=Math.pow(2,-n))<1&&(n--,g*=2),n+x>=1?t+=m/g:t+=m*Math.pow(2,1-x),t*g>=2&&(n++,g/=2),n+x>=p?(c=0,n=p):n+x>=1?(c=(t*g-1)*Math.pow(2,u),n=n+x):(c=t*Math.pow(2,x-1)*Math.pow(2,u),n=0));u>=8;r[s+w]=c&255,w+=b,c/=256,u-=8);for(n=n<<u|c,E+=u;E>0;r[s+w]=n&255,w+=b,n/=256,E-=8);r[s+w-b]|=T*128}}));/*!\n* The buffer module from node.js, for the browser.\n*\n* @author   Feross Aboukhadijeh <https://feross.org>\n* @license  MIT\n*/var ur=ce((e=>{var r=ja(),t=Ga(),s=typeof Symbol==\"function\"&&typeof Symbol.for==\"function\"?Symbol.for(\"nodejs.util.inspect.custom\"):null;e.Buffer=n,e.SlowBuffer=S,e.INSPECT_MAX_BYTES=50;var o=2147483647;e.kMaxLength=o,n.TYPED_ARRAY_SUPPORT=u(),!n.TYPED_ARRAY_SUPPORT&&typeof console<\"u\"&&typeof console.error==\"function\"&&console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\");function u(){try{var I=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(I,i),I.foo()===42}catch{return!1}}Object.defineProperty(n.prototype,\"parent\",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,\"offset\",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.byteOffset}});function a(I){if(I>o)throw new RangeError('The value \"'+I+'\" is invalid for option \"size\"');var i=new Uint8Array(I);return Object.setPrototypeOf(i,n.prototype),i}function n(I,i,l){if(typeof I==\"number\"){if(typeof i==\"string\")throw new TypeError('The \"string\" argument must be of type string. Received type number');return p(I)}return c(I,i,l)}n.poolSize=8192;function c(I,i,l){if(typeof I==\"string\")return x(I,i);if(ArrayBuffer.isView(I))return w(I);if(I==null)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof I);if(F(I,ArrayBuffer)||I&&F(I.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\"u\"&&(F(I,SharedArrayBuffer)||I&&F(I.buffer,SharedArrayBuffer)))return b(I,i,l);if(typeof I==\"number\")throw new TypeError('The \"value\" argument must not be of type number. Received type number');var v=I.valueOf&&I.valueOf();if(v!=null&&v!==I)return n.from(v,i,l);var M=T(I);if(M)return M;if(typeof Symbol<\"u\"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]==\"function\")return n.from(I[Symbol.toPrimitive](\"string\"),i,l);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof I)}n.from=function(I,i,l){return c(I,i,l)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function g(I){if(typeof I!=\"number\")throw new TypeError('\"size\" argument must be of type number');if(I<0)throw new RangeError('The value \"'+I+'\" is invalid for option \"size\"')}function E(I,i,l){return g(I),I<=0?a(I):i!==void 0?typeof l==\"string\"?a(I).fill(i,l):a(I).fill(i):a(I)}n.alloc=function(I,i,l){return E(I,i,l)};function p(I){return g(I),a(I<0?0:R(I)|0)}n.allocUnsafe=function(I){return p(I)},n.allocUnsafeSlow=function(I){return p(I)};function x(I,i){if((typeof i!=\"string\"||i===\"\")&&(i=\"utf8\"),!n.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);var l=P(I,i)|0,v=a(l),M=v.write(I,i);return M!==l&&(v=v.slice(0,M)),v}function m(I){for(var i=I.length<0?0:R(I.length)|0,l=a(i),v=0;v<i;v+=1)l[v]=I[v]&255;return l}function w(I){if(F(I,Uint8Array)){var i=new Uint8Array(I);return b(i.buffer,i.byteOffset,i.byteLength)}return m(I)}function b(I,i,l){if(i<0||I.byteLength<i)throw new RangeError('\"offset\" is outside of buffer bounds');if(I.byteLength<i+(l||0))throw new RangeError('\"length\" is outside of buffer bounds');var v;return i===void 0&&l===void 0?v=new Uint8Array(I):l===void 0?v=new Uint8Array(I,i):v=new Uint8Array(I,i,l),Object.setPrototypeOf(v,n.prototype),v}function T(I){if(n.isBuffer(I)){var i=R(I.length)|0,l=a(i);return l.length===0||I.copy(l,0,0,i),l}if(I.length!==void 0)return typeof I.length!=\"number\"||h(I.length)?a(0):m(I);if(I.type===\"Buffer\"&&Array.isArray(I.data))return m(I.data)}function R(I){if(I>=o)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+o.toString(16)+\" bytes\");return I|0}function S(I){return+I!=I&&(I=0),n.alloc(+I)}n.isBuffer=function(i){return i!=null&&i._isBuffer===!0&&i!==n.prototype},n.compare=function(i,l){if(F(i,Uint8Array)&&(i=n.from(i,i.offset,i.byteLength)),F(l,Uint8Array)&&(l=n.from(l,l.offset,l.byteLength)),!n.isBuffer(i)||!n.isBuffer(l))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(i===l)return 0;for(var v=i.length,M=l.length,$=0,W=Math.min(v,M);$<W;++$)if(i[$]!==l[$]){v=i[$],M=l[$];break}return v<M?-1:M<v?1:0},n.isEncoding=function(i){switch(String(i).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},n.concat=function(i,l){if(!Array.isArray(i))throw new TypeError('\"list\" argument must be an Array of Buffers');if(i.length===0)return n.alloc(0);var v;if(l===void 0)for(l=0,v=0;v<i.length;++v)l+=i[v].length;var M=n.allocUnsafe(l),$=0;for(v=0;v<i.length;++v){var W=i[v];if(F(W,Uint8Array))$+W.length>M.length?n.from(W).copy(M,$):Uint8Array.prototype.set.call(M,W,$);else if(n.isBuffer(W))W.copy(M,$);else throw new TypeError('\"list\" argument must be an Array of Buffers');$+=W.length}return M};function P(I,i){if(n.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||F(I,ArrayBuffer))return I.byteLength;if(typeof I!=\"string\")throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);var l=I.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&l===0)return 0;for(var M=!1;;)switch(i){case\"ascii\":case\"latin1\":case\"binary\":return l;case\"utf8\":case\"utf-8\":return f(I).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return l*2;case\"hex\":return l>>>1;case\"base64\":return ne(I).length;default:if(M)return v?-1:f(I).length;i=(\"\"+i).toLowerCase(),M=!0}}n.byteLength=P;function O(I,i,l){var v=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((l===void 0||l>this.length)&&(l=this.length),l<=0)||(l>>>=0,i>>>=0,l<=i))return\"\";for(I||(I=\"utf8\");;)switch(I){case\"hex\":return Y(this,i,l);case\"utf8\":case\"utf-8\":return A(this,i,l);case\"ascii\":return q(this,i,l);case\"latin1\":case\"binary\":return se(this,i,l);case\"base64\":return G(this,i,l);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return te(this,i,l);default:if(v)throw new TypeError(\"Unknown encoding: \"+I);I=(I+\"\").toLowerCase(),v=!0}}n.prototype._isBuffer=!0;function y(I,i,l){var v=I[i];I[i]=I[l],I[l]=v}n.prototype.swap16=function(){var i=this.length;if(i%2!==0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var l=0;l<i;l+=2)y(this,l,l+1);return this},n.prototype.swap32=function(){var i=this.length;if(i%4!==0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var l=0;l<i;l+=4)y(this,l,l+3),y(this,l+1,l+2);return this},n.prototype.swap64=function(){var i=this.length;if(i%8!==0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var l=0;l<i;l+=8)y(this,l,l+7),y(this,l+1,l+6),y(this,l+2,l+5),y(this,l+3,l+4);return this},n.prototype.toString=function(){var i=this.length;return i===0?\"\":arguments.length===0?A(this,0,i):O.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(i){if(!n.isBuffer(i))throw new TypeError(\"Argument must be a Buffer\");return this===i?!0:n.compare(this,i)===0},n.prototype.inspect=function(){var i=\"\",l=e.INSPECT_MAX_BYTES;return i=this.toString(\"hex\",0,l).replace(/(.{2})/g,\"$1 \").trim(),this.length>l&&(i+=\" ... \"),\"<Buffer \"+i+\">\"},s&&(n.prototype[s]=n.prototype.inspect),n.prototype.compare=function(i,l,v,M,$){if(F(i,Uint8Array)&&(i=n.from(i,i.offset,i.byteLength)),!n.isBuffer(i))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(l===void 0&&(l=0),v===void 0&&(v=i?i.length:0),M===void 0&&(M=0),$===void 0&&($=this.length),l<0||v>i.length||M<0||$>this.length)throw new RangeError(\"out of range index\");if(M>=$&&l>=v)return 0;if(M>=$)return-1;if(l>=v)return 1;if(l>>>=0,v>>>=0,M>>>=0,$>>>=0,this===i)return 0;for(var W=$-M,ie=v-l,oe=Math.min(W,ie),ae=this.slice(M,$),de=i.slice(l,v),me=0;me<oe;++me)if(ae[me]!==de[me]){W=ae[me],ie=de[me];break}return W<ie?-1:ie<W?1:0};function d(I,i,l,v,M){if(I.length===0)return-1;if(typeof l==\"string\"?(v=l,l=0):l>2147483647?l=2147483647:l<-2147483648&&(l=-2147483648),l=+l,h(l)&&(l=M?0:I.length-1),l<0&&(l=I.length+l),l>=I.length){if(M)return-1;l=I.length-1}else if(l<0)if(M)l=0;else return-1;if(typeof i==\"string\"&&(i=n.from(i,v)),n.isBuffer(i))return i.length===0?-1:N(I,i,l,v,M);if(typeof i==\"number\")return i=i&255,typeof Uint8Array.prototype.indexOf==\"function\"?M?Uint8Array.prototype.indexOf.call(I,i,l):Uint8Array.prototype.lastIndexOf.call(I,i,l):N(I,[i],l,v,M);throw new TypeError(\"val must be string, number or Buffer\")}function N(I,i,l,v,M){var $=1,W=I.length,ie=i.length;if(v!==void 0&&(v=String(v).toLowerCase(),v===\"ucs2\"||v===\"ucs-2\"||v===\"utf16le\"||v===\"utf-16le\")){if(I.length<2||i.length<2)return-1;$=2,W/=2,ie/=2,l/=2}function oe(xe,$e){return $===1?xe[$e]:xe.readUInt16BE($e*$)}var ae;if(M){var de=-1;for(ae=l;ae<W;ae++)if(oe(I,ae)===oe(i,de===-1?0:ae-de)){if(de===-1&&(de=ae),ae-de+1===ie)return de*$}else de!==-1&&(ae-=ae-de),de=-1}else for(l+ie>W&&(l=W-ie),ae=l;ae>=0;ae--){for(var me=!0,ve=0;ve<ie;ve++)if(oe(I,ae+ve)!==oe(i,ve)){me=!1;break}if(me)return ae}return-1}n.prototype.includes=function(i,l,v){return this.indexOf(i,l,v)!==-1},n.prototype.indexOf=function(i,l,v){return d(this,i,l,v,!0)},n.prototype.lastIndexOf=function(i,l,v){return d(this,i,l,v,!1)};function B(I,i,l,v){l=Number(l)||0;var M=I.length-l;v?(v=Number(v),v>M&&(v=M)):v=M;var $=i.length;v>$/2&&(v=$/2);for(var W=0;W<v;++W){var ie=parseInt(i.substr(W*2,2),16);if(h(ie))return W;I[l+W]=ie}return W}function _(I,i,l,v){return L(f(i,I.length-l),I,l,v)}function j(I,i,l,v){return L(H(i),I,l,v)}function J(I,i,l,v){return L(ne(i),I,l,v)}function C(I,i,l,v){return L(U(i,I.length-l),I,l,v)}n.prototype.write=function(i,l,v,M){if(l===void 0)M=\"utf8\",v=this.length,l=0;else if(v===void 0&&typeof l==\"string\")M=l,v=this.length,l=0;else if(isFinite(l))l=l>>>0,isFinite(v)?(v=v>>>0,M===void 0&&(M=\"utf8\")):(M=v,v=void 0);else throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");var $=this.length-l;if((v===void 0||v>$)&&(v=$),i.length>0&&(v<0||l<0)||l>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");M||(M=\"utf8\");for(var W=!1;;)switch(M){case\"hex\":return B(this,i,l,v);case\"utf8\":case\"utf-8\":return _(this,i,l,v);case\"ascii\":case\"latin1\":case\"binary\":return j(this,i,l,v);case\"base64\":return J(this,i,l,v);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return C(this,i,l,v);default:if(W)throw new TypeError(\"Unknown encoding: \"+M);M=(\"\"+M).toLowerCase(),W=!0}},n.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};function G(I,i,l){return i===0&&l===I.length?r.fromByteArray(I):r.fromByteArray(I.slice(i,l))}function A(I,i,l){l=Math.min(I.length,l);for(var v=[],M=i;M<l;){var $=I[M],W=null,ie=$>239?4:$>223?3:$>191?2:1;if(M+ie<=l){var oe,ae,de,me;switch(ie){case 1:$<128&&(W=$);break;case 2:oe=I[M+1],(oe&192)===128&&(me=($&31)<<6|oe&63,me>127&&(W=me));break;case 3:oe=I[M+1],ae=I[M+2],(oe&192)===128&&(ae&192)===128&&(me=($&15)<<12|(oe&63)<<6|ae&63,me>2047&&(me<55296||me>57343)&&(W=me));break;case 4:oe=I[M+1],ae=I[M+2],de=I[M+3],(oe&192)===128&&(ae&192)===128&&(de&192)===128&&(me=($&15)<<18|(oe&63)<<12|(ae&63)<<6|de&63,me>65535&&me<1114112&&(W=me))}}W===null?(W=65533,ie=1):W>65535&&(W-=65536,v.push(W>>>10&1023|55296),W=56320|W&1023),v.push(W),M+=ie}return Q(v)}var z=4096;function Q(I){var i=I.length;if(i<=z)return String.fromCharCode.apply(String,I);for(var l=\"\",v=0;v<i;)l+=String.fromCharCode.apply(String,I.slice(v,v+=z));return l}function q(I,i,l){var v=\"\";l=Math.min(I.length,l);for(var M=i;M<l;++M)v+=String.fromCharCode(I[M]&127);return v}function se(I,i,l){var v=\"\";l=Math.min(I.length,l);for(var M=i;M<l;++M)v+=String.fromCharCode(I[M]);return v}function Y(I,i,l){var v=I.length;(!i||i<0)&&(i=0),(!l||l<0||l>v)&&(l=v);for(var M=\"\",$=i;$<l;++$)M+=K[I[$]];return M}function te(I,i,l){for(var v=I.slice(i,l),M=\"\",$=0;$<v.length-1;$+=2)M+=String.fromCharCode(v[$]+v[$+1]*256);return M}n.prototype.slice=function(i,l){var v=this.length;i=~~i,l=l===void 0?v:~~l,i<0?(i+=v,i<0&&(i=0)):i>v&&(i=v),l<0?(l+=v,l<0&&(l=0)):l>v&&(l=v),l<i&&(l=i);var M=this.subarray(i,l);return Object.setPrototypeOf(M,n.prototype),M};function V(I,i,l){if(I%1!==0||I<0)throw new RangeError(\"offset is not uint\");if(I+i>l)throw new RangeError(\"Trying to access beyond buffer length\")}n.prototype.readUintLE=n.prototype.readUIntLE=function(i,l,v){i=i>>>0,l=l>>>0,v||V(i,l,this.length);for(var M=this[i],$=1,W=0;++W<l&&($*=256);)M+=this[i+W]*$;return M},n.prototype.readUintBE=n.prototype.readUIntBE=function(i,l,v){i=i>>>0,l=l>>>0,v||V(i,l,this.length);for(var M=this[i+--l],$=1;l>0&&($*=256);)M+=this[i+--l]*$;return M},n.prototype.readUint8=n.prototype.readUInt8=function(i,l){return i=i>>>0,l||V(i,1,this.length),this[i]},n.prototype.readUint16LE=n.prototype.readUInt16LE=function(i,l){return i=i>>>0,l||V(i,2,this.length),this[i]|this[i+1]<<8},n.prototype.readUint16BE=n.prototype.readUInt16BE=function(i,l){return i=i>>>0,l||V(i,2,this.length),this[i]<<8|this[i+1]},n.prototype.readUint32LE=n.prototype.readUInt32LE=function(i,l){return i=i>>>0,l||V(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+this[i+3]*16777216},n.prototype.readUint32BE=n.prototype.readUInt32BE=function(i,l){return i=i>>>0,l||V(i,4,this.length),this[i]*16777216+(this[i+1]<<16|this[i+2]<<8|this[i+3])},n.prototype.readIntLE=function(i,l,v){i=i>>>0,l=l>>>0,v||V(i,l,this.length);for(var M=this[i],$=1,W=0;++W<l&&($*=256);)M+=this[i+W]*$;return $*=128,M>=$&&(M-=Math.pow(2,8*l)),M},n.prototype.readIntBE=function(i,l,v){i=i>>>0,l=l>>>0,v||V(i,l,this.length);for(var M=l,$=1,W=this[i+--M];M>0&&($*=256);)W+=this[i+--M]*$;return $*=128,W>=$&&(W-=Math.pow(2,8*l)),W},n.prototype.readInt8=function(i,l){return i=i>>>0,l||V(i,1,this.length),this[i]&128?(255-this[i]+1)*-1:this[i]},n.prototype.readInt16LE=function(i,l){i=i>>>0,l||V(i,2,this.length);var v=this[i]|this[i+1]<<8;return v&32768?v|4294901760:v},n.prototype.readInt16BE=function(i,l){i=i>>>0,l||V(i,2,this.length);var v=this[i+1]|this[i]<<8;return v&32768?v|4294901760:v},n.prototype.readInt32LE=function(i,l){return i=i>>>0,l||V(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},n.prototype.readInt32BE=function(i,l){return i=i>>>0,l||V(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},n.prototype.readFloatLE=function(i,l){return i=i>>>0,l||V(i,4,this.length),t.read(this,i,!0,23,4)},n.prototype.readFloatBE=function(i,l){return i=i>>>0,l||V(i,4,this.length),t.read(this,i,!1,23,4)},n.prototype.readDoubleLE=function(i,l){return i=i>>>0,l||V(i,8,this.length),t.read(this,i,!0,52,8)},n.prototype.readDoubleBE=function(i,l){return i=i>>>0,l||V(i,8,this.length),t.read(this,i,!1,52,8)};function D(I,i,l,v,M,$){if(!n.isBuffer(I))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(i>M||i<$)throw new RangeError('\"value\" argument is out of bounds');if(l+v>I.length)throw new RangeError(\"Index out of range\")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(i,l,v,M){if(i=+i,l=l>>>0,v=v>>>0,!M){var $=Math.pow(2,8*v)-1;D(this,i,l,v,$,0)}var W=1,ie=0;for(this[l]=i&255;++ie<v&&(W*=256);)this[l+ie]=i/W&255;return l+v},n.prototype.writeUintBE=n.prototype.writeUIntBE=function(i,l,v,M){if(i=+i,l=l>>>0,v=v>>>0,!M){var $=Math.pow(2,8*v)-1;D(this,i,l,v,$,0)}var W=v-1,ie=1;for(this[l+W]=i&255;--W>=0&&(ie*=256);)this[l+W]=i/ie&255;return l+v},n.prototype.writeUint8=n.prototype.writeUInt8=function(i,l,v){return i=+i,l=l>>>0,v||D(this,i,l,1,255,0),this[l]=i&255,l+1},n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(i,l,v){return i=+i,l=l>>>0,v||D(this,i,l,2,65535,0),this[l]=i&255,this[l+1]=i>>>8,l+2},n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(i,l,v){return i=+i,l=l>>>0,v||D(this,i,l,2,65535,0),this[l]=i>>>8,this[l+1]=i&255,l+2},n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(i,l,v){return i=+i,l=l>>>0,v||D(this,i,l,4,4294967295,0),this[l+3]=i>>>24,this[l+2]=i>>>16,this[l+1]=i>>>8,this[l]=i&255,l+4},n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(i,l,v){return i=+i,l=l>>>0,v||D(this,i,l,4,4294967295,0),this[l]=i>>>24,this[l+1]=i>>>16,this[l+2]=i>>>8,this[l+3]=i&255,l+4},n.prototype.writeIntLE=function(i,l,v,M){if(i=+i,l=l>>>0,!M){var $=Math.pow(2,8*v-1);D(this,i,l,v,$-1,-$)}var W=0,ie=1,oe=0;for(this[l]=i&255;++W<v&&(ie*=256);)i<0&&oe===0&&this[l+W-1]!==0&&(oe=1),this[l+W]=(i/ie>>0)-oe&255;return l+v},n.prototype.writeIntBE=function(i,l,v,M){if(i=+i,l=l>>>0,!M){var $=Math.pow(2,8*v-1);D(this,i,l,v,$-1,-$)}var W=v-1,ie=1,oe=0;for(this[l+W]=i&255;--W>=0&&(ie*=256);)i<0&&oe===0&&this[l+W+1]!==0&&(oe=1),this[l+W]=(i/ie>>0)-oe&255;return l+v},n.prototype.writeInt8=function(i,l,v){return i=+i,l=l>>>0,v||D(this,i,l,1,127,-128),i<0&&(i=255+i+1),this[l]=i&255,l+1},n.prototype.writeInt16LE=function(i,l,v){return i=+i,l=l>>>0,v||D(this,i,l,2,32767,-32768),this[l]=i&255,this[l+1]=i>>>8,l+2},n.prototype.writeInt16BE=function(i,l,v){return i=+i,l=l>>>0,v||D(this,i,l,2,32767,-32768),this[l]=i>>>8,this[l+1]=i&255,l+2},n.prototype.writeInt32LE=function(i,l,v){return i=+i,l=l>>>0,v||D(this,i,l,4,2147483647,-2147483648),this[l]=i&255,this[l+1]=i>>>8,this[l+2]=i>>>16,this[l+3]=i>>>24,l+4},n.prototype.writeInt32BE=function(i,l,v){return i=+i,l=l>>>0,v||D(this,i,l,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[l]=i>>>24,this[l+1]=i>>>16,this[l+2]=i>>>8,this[l+3]=i&255,l+4};function X(I,i,l,v,M,$){if(l+v>I.length)throw new RangeError(\"Index out of range\");if(l<0)throw new RangeError(\"Index out of range\")}function Z(I,i,l,v,M){return i=+i,l=l>>>0,M||X(I,i,l,4,34028234663852886e22,-34028234663852886e22),t.write(I,i,l,v,23,4),l+4}n.prototype.writeFloatLE=function(i,l,v){return Z(this,i,l,!0,v)},n.prototype.writeFloatBE=function(i,l,v){return Z(this,i,l,!1,v)};function re(I,i,l,v,M){return i=+i,l=l>>>0,M||X(I,i,l,8,17976931348623157e292,-17976931348623157e292),t.write(I,i,l,v,52,8),l+8}n.prototype.writeDoubleLE=function(i,l,v){return re(this,i,l,!0,v)},n.prototype.writeDoubleBE=function(i,l,v){return re(this,i,l,!1,v)},n.prototype.copy=function(i,l,v,M){if(!n.isBuffer(i))throw new TypeError(\"argument should be a Buffer\");if(v||(v=0),!M&&M!==0&&(M=this.length),l>=i.length&&(l=i.length),l||(l=0),M>0&&M<v&&(M=v),M===v||i.length===0||this.length===0)return 0;if(l<0)throw new RangeError(\"targetStart out of bounds\");if(v<0||v>=this.length)throw new RangeError(\"Index out of range\");if(M<0)throw new RangeError(\"sourceEnd out of bounds\");M>this.length&&(M=this.length),i.length-l<M-v&&(M=i.length-l+v);var $=M-v;return this===i&&typeof Uint8Array.prototype.copyWithin==\"function\"?this.copyWithin(l,v,M):Uint8Array.prototype.set.call(i,this.subarray(v,M),l),$},n.prototype.fill=function(i,l,v,M){if(typeof i==\"string\"){if(typeof l==\"string\"?(M=l,l=0,v=this.length):typeof v==\"string\"&&(M=v,v=this.length),M!==void 0&&typeof M!=\"string\")throw new TypeError(\"encoding must be a string\");if(typeof M==\"string\"&&!n.isEncoding(M))throw new TypeError(\"Unknown encoding: \"+M);if(i.length===1){var $=i.charCodeAt(0);(M===\"utf8\"&&$<128||M===\"latin1\")&&(i=$)}}else typeof i==\"number\"?i=i&255:typeof i==\"boolean\"&&(i=Number(i));if(l<0||this.length<l||this.length<v)throw new RangeError(\"Out of range index\");if(v<=l)return this;l=l>>>0,v=v===void 0?this.length:v>>>0,i||(i=0);var W;if(typeof i==\"number\")for(W=l;W<v;++W)this[W]=i;else{var ie=n.isBuffer(i)?i:n.from(i,M),oe=ie.length;if(oe===0)throw new TypeError('The value \"'+i+'\" is invalid for argument \"value\"');for(W=0;W<v-l;++W)this[W+l]=ie[W%oe]}return this};var pe=/[^+/0-9A-Za-z-_]/g;function k(I){if(I=I.split(\"=\")[0],I=I.trim().replace(pe,\"\"),I.length<2)return\"\";for(;I.length%4!==0;)I=I+\"=\";return I}function f(I,i){i=i||1/0;for(var l,v=I.length,M=null,$=[],W=0;W<v;++W){if(l=I.charCodeAt(W),l>55295&&l<57344){if(!M){if(l>56319){(i-=3)>-1&&$.push(239,191,189);continue}else if(W+1===v){(i-=3)>-1&&$.push(239,191,189);continue}M=l;continue}if(l<56320){(i-=3)>-1&&$.push(239,191,189),M=l;continue}l=(M-55296<<10|l-56320)+65536}else M&&(i-=3)>-1&&$.push(239,191,189);if(M=null,l<128){if((i-=1)<0)break;$.push(l)}else if(l<2048){if((i-=2)<0)break;$.push(l>>6|192,l&63|128)}else if(l<65536){if((i-=3)<0)break;$.push(l>>12|224,l>>6&63|128,l&63|128)}else if(l<1114112){if((i-=4)<0)break;$.push(l>>18|240,l>>12&63|128,l>>6&63|128,l&63|128)}else throw new Error(\"Invalid code point\")}return $}function H(I){for(var i=[],l=0;l<I.length;++l)i.push(I.charCodeAt(l)&255);return i}function U(I,i){for(var l,v,M,$=[],W=0;W<I.length&&!((i-=2)<0);++W)l=I.charCodeAt(W),v=l>>8,M=l%256,$.push(M),$.push(v);return $}function ne(I){return r.toByteArray(k(I))}function L(I,i,l,v){for(var M=0;M<v&&!(M+l>=i.length||M>=I.length);++M)i[M+l]=I[M];return M}function F(I,i){return I instanceof i||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===i.name}function h(I){return I!==I}var K=(function(){for(var I=\"0123456789abcdef\",i=new Array(256),l=0;l<16;++l)for(var v=l*16,M=0;M<16;++M)i[v+M]=I[l]+I[M];return i})()})),ri=ce(((e,r)=>{r.exports=function(){if(typeof Symbol!=\"function\"||typeof Object.getOwnPropertySymbols!=\"function\")return!1;if(typeof Symbol.iterator==\"symbol\")return!0;var s={},o=Symbol(\"test\"),u=Object(o);if(typeof o==\"string\"||Object.prototype.toString.call(o)!==\"[object Symbol]\"||Object.prototype.toString.call(u)!==\"[object Symbol]\")return!1;var a=42;s[o]=a;for(var n in s)return!1;if(typeof Object.keys==\"function\"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames==\"function\"&&Object.getOwnPropertyNames(s).length!==0)return!1;var c=Object.getOwnPropertySymbols(s);if(c.length!==1||c[0]!==o||!Object.prototype.propertyIsEnumerable.call(s,o))return!1;if(typeof Object.getOwnPropertyDescriptor==\"function\"){var g=Object.getOwnPropertyDescriptor(s,o);if(g.value!==a||g.enumerable!==!0)return!1}return!0}})),Kr=ce(((e,r)=>{var t=ri();r.exports=function(){return t()&&!!Symbol.toStringTag}})),ni=ce(((e,r)=>{r.exports=Object})),za=ce(((e,r)=>{r.exports=Error})),$a=ce(((e,r)=>{r.exports=EvalError})),Ka=ce(((e,r)=>{r.exports=RangeError})),Va=ce(((e,r)=>{r.exports=ReferenceError})),ii=ce(((e,r)=>{r.exports=SyntaxError})),cr=ce(((e,r)=>{r.exports=TypeError})),qa=ce(((e,r)=>{r.exports=URIError})),Xa=ce(((e,r)=>{r.exports=Math.abs})),Ya=ce(((e,r)=>{r.exports=Math.floor})),Za=ce(((e,r)=>{r.exports=Math.max})),Ja=ce(((e,r)=>{r.exports=Math.min})),Qa=ce(((e,r)=>{r.exports=Math.pow})),es=ce(((e,r)=>{r.exports=Math.round})),ts=ce(((e,r)=>{r.exports=Number.isNaN||function(s){return s!==s}})),rs=ce(((e,r)=>{var t=ts();r.exports=function(o){return t(o)||o===0?o:o<0?-1:1}})),ns=ce(((e,r)=>{r.exports=Object.getOwnPropertyDescriptor})),Ut=ce(((e,r)=>{var t=ns();if(t)try{t([],\"length\")}catch{t=null}r.exports=t})),hr=ce(((e,r)=>{var t=Object.defineProperty||!1;if(t)try{t({},\"a\",{value:1})}catch{t=!1}r.exports=t})),is=ce(((e,r)=>{var t=typeof Symbol<\"u\"&&Symbol,s=ri();r.exports=function(){return typeof t!=\"function\"||typeof Symbol!=\"function\"||typeof t(\"foo\")!=\"symbol\"||typeof Symbol(\"bar\")!=\"symbol\"?!1:s()}})),ai=ce(((e,r)=>{r.exports=typeof Reflect<\"u\"&&Reflect.getPrototypeOf||null})),si=ce(((e,r)=>{r.exports=ni().getPrototypeOf||null})),as=ce(((e,r)=>{var t=\"Function.prototype.bind called on incompatible \",s=Object.prototype.toString,o=Math.max,u=\"[object Function]\",a=function(E,p){for(var x=[],m=0;m<E.length;m+=1)x[m]=E[m];for(var w=0;w<p.length;w+=1)x[w+E.length]=p[w];return x},n=function(E,p){for(var x=[],m=p||0,w=0;m<E.length;m+=1,w+=1)x[w]=E[m];return x},c=function(g,E){for(var p=\"\",x=0;x<g.length;x+=1)p+=g[x],x+1<g.length&&(p+=E);return p};r.exports=function(E){var p=this;if(typeof p!=\"function\"||s.apply(p)!==u)throw new TypeError(t+p);for(var x=n(arguments,1),m,w=function(){if(this instanceof m){var P=p.apply(this,a(x,arguments));return Object(P)===P?P:this}return p.apply(E,a(x,arguments))},b=o(0,p.length-x.length),T=[],R=0;R<b;R++)T[R]=\"$\"+R;if(m=Function(\"binder\",\"return function (\"+c(T,\",\")+\"){ return binder.apply(this,arguments); }\")(w),p.prototype){var S=function(){};S.prototype=p.prototype,m.prototype=new S,S.prototype=null}return m}})),Ht=ce(((e,r)=>{var t=as();r.exports=Function.prototype.bind||t})),Vr=ce(((e,r)=>{r.exports=Function.prototype.call})),qr=ce(((e,r)=>{r.exports=Function.prototype.apply})),ss=ce(((e,r)=>{r.exports=typeof Reflect<\"u\"&&Reflect&&Reflect.apply})),oi=ce(((e,r)=>{var t=Ht(),s=qr(),o=Vr();r.exports=ss()||t.call(o,s)})),Xr=ce(((e,r)=>{var t=Ht(),s=cr(),o=Vr(),u=oi();r.exports=function(n){if(n.length<1||typeof n[0]!=\"function\")throw new s(\"a function is required\");return u(t,o,n)}})),os=ce(((e,r)=>{var t=Xr(),s=Ut(),o;try{o=[].__proto__===Array.prototype}catch(c){if(!c||typeof c!=\"object\"||!(\"code\"in c)||c.code!==\"ERR_PROTO_ACCESS\")throw c}var u=!!o&&s&&s(Object.prototype,\"__proto__\"),a=Object,n=a.getPrototypeOf;r.exports=u&&typeof u.get==\"function\"?t([u.get]):typeof n==\"function\"?function(g){return n(g==null?g:a(g))}:!1})),li=ce(((e,r)=>{var t=ai(),s=si(),o=os();r.exports=t?function(a){return t(a)}:s?function(a){if(!a||typeof a!=\"object\"&&typeof a!=\"function\")throw new TypeError(\"getProto: not an object\");return s(a)}:o?function(a){return o(a)}:null})),ls=ce(((e,r)=>{var t=Function.prototype.call,s=Object.prototype.hasOwnProperty;r.exports=Ht().call(t,s)})),ui=ce(((e,r)=>{var t,s=ni(),o=za(),u=$a(),a=Ka(),n=Va(),c=ii(),g=cr(),E=qa(),p=Xa(),x=Ya(),m=Za(),w=Ja(),b=Qa(),T=es(),R=rs(),S=Function,P=function(U){try{return S('\"use strict\"; return ('+U+\").constructor;\")()}catch{}},O=Ut(),y=hr(),d=function(){throw new g},N=O?(function(){try{return arguments.callee,d}catch{try{return O(arguments,\"callee\").get}catch{return d}}})():d,B=is()(),_=li(),j=si(),J=ai(),C=qr(),G=Vr(),A={},z=typeof Uint8Array>\"u\"||!_?t:_(Uint8Array),Q={__proto__:null,\"%AggregateError%\":typeof AggregateError>\"u\"?t:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":typeof ArrayBuffer>\"u\"?t:ArrayBuffer,\"%ArrayIteratorPrototype%\":B&&_?_([][Symbol.iterator]()):t,\"%AsyncFromSyncIteratorPrototype%\":t,\"%AsyncFunction%\":A,\"%AsyncGenerator%\":A,\"%AsyncGeneratorFunction%\":A,\"%AsyncIteratorPrototype%\":A,\"%Atomics%\":typeof Atomics>\"u\"?t:Atomics,\"%BigInt%\":typeof BigInt>\"u\"?t:BigInt,\"%BigInt64Array%\":typeof BigInt64Array>\"u\"?t:BigInt64Array,\"%BigUint64Array%\":typeof BigUint64Array>\"u\"?t:BigUint64Array,\"%Boolean%\":Boolean,\"%DataView%\":typeof DataView>\"u\"?t:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":o,\"%eval%\":eval,\"%EvalError%\":u,\"%Float16Array%\":typeof Float16Array>\"u\"?t:Float16Array,\"%Float32Array%\":typeof Float32Array>\"u\"?t:Float32Array,\"%Float64Array%\":typeof Float64Array>\"u\"?t:Float64Array,\"%FinalizationRegistry%\":typeof FinalizationRegistry>\"u\"?t:FinalizationRegistry,\"%Function%\":S,\"%GeneratorFunction%\":A,\"%Int8Array%\":typeof Int8Array>\"u\"?t:Int8Array,\"%Int16Array%\":typeof Int16Array>\"u\"?t:Int16Array,\"%Int32Array%\":typeof Int32Array>\"u\"?t:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":B&&_?_(_([][Symbol.iterator]())):t,\"%JSON%\":typeof JSON==\"object\"?JSON:t,\"%Map%\":typeof Map>\"u\"?t:Map,\"%MapIteratorPrototype%\":typeof Map>\"u\"||!B||!_?t:_(new Map()[Symbol.iterator]()),\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":s,\"%Object.getOwnPropertyDescriptor%\":O,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":typeof Promise>\"u\"?t:Promise,\"%Proxy%\":typeof Proxy>\"u\"?t:Proxy,\"%RangeError%\":a,\"%ReferenceError%\":n,\"%Reflect%\":typeof Reflect>\"u\"?t:Reflect,\"%RegExp%\":RegExp,\"%Set%\":typeof Set>\"u\"?t:Set,\"%SetIteratorPrototype%\":typeof Set>\"u\"||!B||!_?t:_(new Set()[Symbol.iterator]()),\"%SharedArrayBuffer%\":typeof SharedArrayBuffer>\"u\"?t:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":B&&_?_(\"\"[Symbol.iterator]()):t,\"%Symbol%\":B?Symbol:t,\"%SyntaxError%\":c,\"%ThrowTypeError%\":N,\"%TypedArray%\":z,\"%TypeError%\":g,\"%Uint8Array%\":typeof Uint8Array>\"u\"?t:Uint8Array,\"%Uint8ClampedArray%\":typeof Uint8ClampedArray>\"u\"?t:Uint8ClampedArray,\"%Uint16Array%\":typeof Uint16Array>\"u\"?t:Uint16Array,\"%Uint32Array%\":typeof Uint32Array>\"u\"?t:Uint32Array,\"%URIError%\":E,\"%WeakMap%\":typeof WeakMap>\"u\"?t:WeakMap,\"%WeakRef%\":typeof WeakRef>\"u\"?t:WeakRef,\"%WeakSet%\":typeof WeakSet>\"u\"?t:WeakSet,\"%Function.prototype.call%\":G,\"%Function.prototype.apply%\":C,\"%Object.defineProperty%\":y,\"%Object.getPrototypeOf%\":j,\"%Math.abs%\":p,\"%Math.floor%\":x,\"%Math.max%\":m,\"%Math.min%\":w,\"%Math.pow%\":b,\"%Math.round%\":T,\"%Math.sign%\":R,\"%Reflect.getPrototypeOf%\":J};if(_)try{null.error}catch(U){Q[\"%Error.prototype%\"]=_(_(U))}var q=function U(ne){var L;if(ne===\"%AsyncFunction%\")L=P(\"async function () {}\");else if(ne===\"%GeneratorFunction%\")L=P(\"function* () {}\");else if(ne===\"%AsyncGeneratorFunction%\")L=P(\"async function* () {}\");else if(ne===\"%AsyncGenerator%\"){var F=U(\"%AsyncGeneratorFunction%\");F&&(L=F.prototype)}else if(ne===\"%AsyncIteratorPrototype%\"){var h=U(\"%AsyncGenerator%\");h&&_&&(L=_(h.prototype))}return Q[ne]=L,L},se={__proto__:null,\"%ArrayBufferPrototype%\":[\"ArrayBuffer\",\"prototype\"],\"%ArrayPrototype%\":[\"Array\",\"prototype\"],\"%ArrayProto_entries%\":[\"Array\",\"prototype\",\"entries\"],\"%ArrayProto_forEach%\":[\"Array\",\"prototype\",\"forEach\"],\"%ArrayProto_keys%\":[\"Array\",\"prototype\",\"keys\"],\"%ArrayProto_values%\":[\"Array\",\"prototype\",\"values\"],\"%AsyncFunctionPrototype%\":[\"AsyncFunction\",\"prototype\"],\"%AsyncGenerator%\":[\"AsyncGeneratorFunction\",\"prototype\"],\"%AsyncGeneratorPrototype%\":[\"AsyncGeneratorFunction\",\"prototype\",\"prototype\"],\"%BooleanPrototype%\":[\"Boolean\",\"prototype\"],\"%DataViewPrototype%\":[\"DataView\",\"prototype\"],\"%DatePrototype%\":[\"Date\",\"prototype\"],\"%ErrorPrototype%\":[\"Error\",\"prototype\"],\"%EvalErrorPrototype%\":[\"EvalError\",\"prototype\"],\"%Float32ArrayPrototype%\":[\"Float32Array\",\"prototype\"],\"%Float64ArrayPrototype%\":[\"Float64Array\",\"prototype\"],\"%FunctionPrototype%\":[\"Function\",\"prototype\"],\"%Generator%\":[\"GeneratorFunction\",\"prototype\"],\"%GeneratorPrototype%\":[\"GeneratorFunction\",\"prototype\",\"prototype\"],\"%Int8ArrayPrototype%\":[\"Int8Array\",\"prototype\"],\"%Int16ArrayPrototype%\":[\"Int16Array\",\"prototype\"],\"%Int32ArrayPrototype%\":[\"Int32Array\",\"prototype\"],\"%JSONParse%\":[\"JSON\",\"parse\"],\"%JSONStringify%\":[\"JSON\",\"stringify\"],\"%MapPrototype%\":[\"Map\",\"prototype\"],\"%NumberPrototype%\":[\"Number\",\"prototype\"],\"%ObjectPrototype%\":[\"Object\",\"prototype\"],\"%ObjProto_toString%\":[\"Object\",\"prototype\",\"toString\"],\"%ObjProto_valueOf%\":[\"Object\",\"prototype\",\"valueOf\"],\"%PromisePrototype%\":[\"Promise\",\"prototype\"],\"%PromiseProto_then%\":[\"Promise\",\"prototype\",\"then\"],\"%Promise_all%\":[\"Promise\",\"all\"],\"%Promise_reject%\":[\"Promise\",\"reject\"],\"%Promise_resolve%\":[\"Promise\",\"resolve\"],\"%RangeErrorPrototype%\":[\"RangeError\",\"prototype\"],\"%ReferenceErrorPrototype%\":[\"ReferenceError\",\"prototype\"],\"%RegExpPrototype%\":[\"RegExp\",\"prototype\"],\"%SetPrototype%\":[\"Set\",\"prototype\"],\"%SharedArrayBufferPrototype%\":[\"SharedArrayBuffer\",\"prototype\"],\"%StringPrototype%\":[\"String\",\"prototype\"],\"%SymbolPrototype%\":[\"Symbol\",\"prototype\"],\"%SyntaxErrorPrototype%\":[\"SyntaxError\",\"prototype\"],\"%TypedArrayPrototype%\":[\"TypedArray\",\"prototype\"],\"%TypeErrorPrototype%\":[\"TypeError\",\"prototype\"],\"%Uint8ArrayPrototype%\":[\"Uint8Array\",\"prototype\"],\"%Uint8ClampedArrayPrototype%\":[\"Uint8ClampedArray\",\"prototype\"],\"%Uint16ArrayPrototype%\":[\"Uint16Array\",\"prototype\"],\"%Uint32ArrayPrototype%\":[\"Uint32Array\",\"prototype\"],\"%URIErrorPrototype%\":[\"URIError\",\"prototype\"],\"%WeakMapPrototype%\":[\"WeakMap\",\"prototype\"],\"%WeakSetPrototype%\":[\"WeakSet\",\"prototype\"]},Y=Ht(),te=ls(),V=Y.call(G,Array.prototype.concat),D=Y.call(C,Array.prototype.splice),X=Y.call(G,String.prototype.replace),Z=Y.call(G,String.prototype.slice),re=Y.call(G,RegExp.prototype.exec),pe=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g,k=/\\\\(\\\\)?/g,f=function(ne){var L=Z(ne,0,1),F=Z(ne,-1);if(L===\"%\"&&F!==\"%\")throw new c(\"invalid intrinsic syntax, expected closing `%`\");if(F===\"%\"&&L!==\"%\")throw new c(\"invalid intrinsic syntax, expected opening `%`\");var h=[];return X(ne,pe,function(K,I,i,l){h[h.length]=i?X(l,k,\"$1\"):I||K}),h},H=function(ne,L){var F=ne,h;if(te(se,F)&&(h=se[F],F=\"%\"+h[0]+\"%\"),te(Q,F)){var K=Q[F];if(K===A&&(K=q(F)),typeof K>\"u\"&&!L)throw new g(\"intrinsic \"+ne+\" exists, but is not available. Please file an issue!\");return{alias:h,name:F,value:K}}throw new c(\"intrinsic \"+ne+\" does not exist!\")};r.exports=function(ne,L){if(typeof ne!=\"string\"||ne.length===0)throw new g(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&typeof L!=\"boolean\")throw new g('\"allowMissing\" argument must be a boolean');if(re(/^%?[^%]*%?$/,ne)===null)throw new c(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var F=f(ne),h=F.length>0?F[0]:\"\",K=H(\"%\"+h+\"%\",L),I=K.name,i=K.value,l=!1,v=K.alias;v&&(h=v[0],D(F,V([0,1],v)));for(var M=1,$=!0;M<F.length;M+=1){var W=F[M],ie=Z(W,0,1),oe=Z(W,-1);if((ie==='\"'||ie===\"'\"||ie===\"`\"||oe==='\"'||oe===\"'\"||oe===\"`\")&&ie!==oe)throw new c(\"property names with quotes must have matching quotes\");if((W===\"constructor\"||!$)&&(l=!0),h+=\".\"+W,I=\"%\"+h+\"%\",te(Q,I))i=Q[I];else if(i!=null){if(!(W in i)){if(!L)throw new g(\"base intrinsic for \"+ne+\" exists, but the property is not available.\");return}if(O&&M+1>=F.length){var ae=O(i,W);$=!!ae,$&&\"get\"in ae&&!(\"originalValue\"in ae.get)?i=ae.get:i=i[W]}else $=te(i,W),i=i[W];$&&!l&&(Q[I]=i)}}return i}})),ci=ce(((e,r)=>{var t=ui(),s=Xr(),o=s([t(\"%String.prototype.indexOf%\")]);r.exports=function(a,n){var c=t(a,!!n);return typeof c==\"function\"&&o(a,\".prototype.\")>-1?s([c]):c}})),us=ce(((e,r)=>{var t=Kr()(),s=ci()(\"Object.prototype.toString\"),o=function(c){return t&&c&&typeof c==\"object\"&&Symbol.toStringTag in c?!1:s(c)===\"[object Arguments]\"},u=function(c){return o(c)?!0:c!==null&&typeof c==\"object\"&&\"length\"in c&&typeof c.length==\"number\"&&c.length>=0&&s(c)!==\"[object Array]\"&&\"callee\"in c&&s(c.callee)===\"[object Function]\"},a=(function(){return o(arguments)})();o.isLegacyArguments=u,r.exports=a?o:u})),cs=ce(((e,r)=>{var t=Object.prototype.toString,s=Function.prototype.toString,o=/^\\s*(?:function)?\\*/,u=Kr()(),a=Object.getPrototypeOf,n=function(){if(!u)return!1;try{return Function(\"return function*() {}\")()}catch{}},c;r.exports=function(E){if(typeof E!=\"function\")return!1;if(o.test(s.call(E)))return!0;if(!u)return t.call(E)===\"[object GeneratorFunction]\";if(!a)return!1;if(typeof c>\"u\"){var p=n();c=p?a(p):!1}return a(E)===c}})),hs=ce(((e,r)=>{var t=Function.prototype.toString,s=typeof Reflect==\"object\"&&Reflect!==null&&Reflect.apply,o,u;if(typeof s==\"function\"&&typeof Object.defineProperty==\"function\")try{o=Object.defineProperty({},\"length\",{get:function(){throw u}}),u={},s(function(){throw 42},null,o)}catch(O){O!==u&&(s=null)}else s=null;var a=/^\\s*class\\b/,n=function(y){try{var d=t.call(y);return a.test(d)}catch{return!1}},c=function(y){try{return n(y)?!1:(t.call(y),!0)}catch{return!1}},g=Object.prototype.toString,E=\"[object Object]\",p=\"[object Function]\",x=\"[object GeneratorFunction]\",m=\"[object HTMLAllCollection]\",w=\"[object HTML document.all class]\",b=\"[object HTMLCollection]\",T=typeof Symbol==\"function\"&&!!Symbol.toStringTag,R=!(0 in[,]),S=function(){return!1};if(typeof document==\"object\"){var P=document.all;g.call(P)===g.call(document.all)&&(S=function(y){if((R||!y)&&(typeof y>\"u\"||typeof y==\"object\"))try{var d=g.call(y);return(d===m||d===w||d===b||d===E)&&y(\"\")==null}catch{}return!1})}r.exports=s?function(y){if(S(y))return!0;if(!y||typeof y!=\"function\"&&typeof y!=\"object\")return!1;try{s(y,null,o)}catch(d){if(d!==u)return!1}return!n(y)&&c(y)}:function(y){if(S(y))return!0;if(!y||typeof y!=\"function\"&&typeof y!=\"object\")return!1;if(T)return c(y);if(n(y))return!1;var d=g.call(y);return d!==p&&d!==x&&!/^\\[object HTML/.test(d)?!1:c(y)}})),ds=ce(((e,r)=>{var t=hs(),s=Object.prototype.toString,o=Object.prototype.hasOwnProperty,u=function(E,p,x){for(var m=0,w=E.length;m<w;m++)o.call(E,m)&&(x==null?p(E[m],m,E):p.call(x,E[m],m,E))},a=function(E,p,x){for(var m=0,w=E.length;m<w;m++)x==null?p(E.charAt(m),m,E):p.call(x,E.charAt(m),m,E)},n=function(E,p,x){for(var m in E)o.call(E,m)&&(x==null?p(E[m],m,E):p.call(x,E[m],m,E))};function c(g){return s.call(g)===\"[object Array]\"}r.exports=function(E,p,x){if(!t(p))throw new TypeError(\"iterator must be a function\");var m;arguments.length>=3&&(m=x),c(E)?u(E,p,m):typeof E==\"string\"?a(E,p,m):n(E,p,m)}})),fs=ce(((e,r)=>{r.exports=[\"Float32Array\",\"Float64Array\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"BigInt64Array\",\"BigUint64Array\"]})),ps=ce(((e,r)=>{yt();var t=fs(),s=typeof globalThis>\"u\"?ke:globalThis;r.exports=function(){for(var u=[],a=0;a<t.length;a++)typeof s[t[a]]==\"function\"&&(u[u.length]=t[a]);return u}})),ms=ce(((e,r)=>{var t=hr(),s=ii(),o=cr(),u=Ut();r.exports=function(n,c,g){if(!n||typeof n!=\"object\"&&typeof n!=\"function\")throw new o(\"`obj` must be an object or a function`\");if(typeof c!=\"string\"&&typeof c!=\"symbol\")throw new o(\"`property` must be a string or a symbol`\");if(arguments.length>3&&typeof arguments[3]!=\"boolean\"&&arguments[3]!==null)throw new o(\"`nonEnumerable`, if provided, must be a boolean or null\");if(arguments.length>4&&typeof arguments[4]!=\"boolean\"&&arguments[4]!==null)throw new o(\"`nonWritable`, if provided, must be a boolean or null\");if(arguments.length>5&&typeof arguments[5]!=\"boolean\"&&arguments[5]!==null)throw new o(\"`nonConfigurable`, if provided, must be a boolean or null\");if(arguments.length>6&&typeof arguments[6]!=\"boolean\")throw new o(\"`loose`, if provided, must be a boolean\");var E=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,x=arguments.length>5?arguments[5]:null,m=arguments.length>6?arguments[6]:!1,w=!!u&&u(n,c);if(t)t(n,c,{configurable:x===null&&w?w.configurable:!x,enumerable:E===null&&w?w.enumerable:!E,value:g,writable:p===null&&w?w.writable:!p});else if(m||!E&&!p&&!x)n[c]=g;else throw new s(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\")}})),vs=ce(((e,r)=>{var t=hr(),s=function(){return!!t};s.hasArrayLengthDefineBug=function(){if(!t)return null;try{return t([],\"length\",{value:1}).length!==1}catch{return!0}},r.exports=s})),ws=ce(((e,r)=>{var t=ui(),s=ms(),o=vs()(),u=Ut(),a=cr(),n=t(\"%Math.floor%\");r.exports=function(g,E){if(typeof g!=\"function\")throw new a(\"`fn` is not a function\");if(typeof E!=\"number\"||E<0||E>4294967295||n(E)!==E)throw new a(\"`length` must be a positive 32-bit integer\");var p=arguments.length>2&&!!arguments[2],x=!0,m=!0;if(\"length\"in g&&u){var w=u(g,\"length\");w&&!w.configurable&&(x=!1),w&&!w.writable&&(m=!1)}return(x||m||!p)&&(o?s(g,\"length\",E,!0,!0):s(g,\"length\",E)),g}})),gs=ce(((e,r)=>{var t=Ht(),s=qr(),o=oi();r.exports=function(){return o(t,s,arguments)}})),ys=ce(((e,r)=>{var t=ws(),s=hr(),o=Xr(),u=gs();r.exports=function(n){var c=o(arguments),g=n.length-(arguments.length-1);return t(c,1+(g>0?g:0),!0)},s?s(r.exports,\"apply\",{value:u}):r.exports.apply=u})),hi=ce(((e,r)=>{yt();var t=ds(),s=ps(),o=ys(),u=ci(),a=Ut(),n=li(),c=u(\"Object.prototype.toString\"),g=Kr()(),E=typeof globalThis>\"u\"?ke:globalThis,p=s(),x=u(\"String.prototype.slice\"),m=u(\"Array.prototype.indexOf\",!0)||function(S,P){for(var O=0;O<S.length;O+=1)if(S[O]===P)return O;return-1},w={__proto__:null};g&&a&&n?t(p,function(R){var S=new E[R];if(Symbol.toStringTag in S&&n){var P=n(S),O=a(P,Symbol.toStringTag);!O&&P&&(O=a(n(P),Symbol.toStringTag)),w[\"$\"+R]=o(O.get)}}):t(p,function(R){var S=new E[R],P=S.slice||S.set;P&&(w[\"$\"+R]=o(P))});var b=function(S){var P=!1;return t(w,function(O,y){if(!P)try{\"$\"+O(S)===y&&(P=x(y,1))}catch{}}),P},T=function(S){var P=!1;return t(w,function(O,y){if(!P)try{O(S),P=x(y,1)}catch{}}),P};r.exports=function(S){if(!S||typeof S!=\"object\")return!1;if(!g){var P=x(c(S),8,-1);return m(p,P)>-1?P:P!==\"Object\"?!1:T(S)}return a?b(S):null}})),bs=ce(((e,r)=>{var t=hi();r.exports=function(o){return!!t(o)}})),_s=ce((e=>{var r=us(),t=cs(),s=hi(),o=bs();function u(v){return v.call.bind(v)}var a=typeof BigInt<\"u\",n=typeof Symbol<\"u\",c=u(Object.prototype.toString),g=u(Number.prototype.valueOf),E=u(String.prototype.valueOf),p=u(Boolean.prototype.valueOf);if(a)var x=u(BigInt.prototype.valueOf);if(n)var m=u(Symbol.prototype.valueOf);function w(v,M){if(typeof v!=\"object\")return!1;try{return M(v),!0}catch{return!1}}e.isArgumentsObject=r,e.isGeneratorFunction=t,e.isTypedArray=o;function b(v){return typeof Promise<\"u\"&&v instanceof Promise||v!==null&&typeof v==\"object\"&&typeof v.then==\"function\"&&typeof v.catch==\"function\"}e.isPromise=b;function T(v){return typeof ArrayBuffer<\"u\"&&ArrayBuffer.isView?ArrayBuffer.isView(v):o(v)||X(v)}e.isArrayBufferView=T;function R(v){return s(v)===\"Uint8Array\"}e.isUint8Array=R;function S(v){return s(v)===\"Uint8ClampedArray\"}e.isUint8ClampedArray=S;function P(v){return s(v)===\"Uint16Array\"}e.isUint16Array=P;function O(v){return s(v)===\"Uint32Array\"}e.isUint32Array=O;function y(v){return s(v)===\"Int8Array\"}e.isInt8Array=y;function d(v){return s(v)===\"Int16Array\"}e.isInt16Array=d;function N(v){return s(v)===\"Int32Array\"}e.isInt32Array=N;function B(v){return s(v)===\"Float32Array\"}e.isFloat32Array=B;function _(v){return s(v)===\"Float64Array\"}e.isFloat64Array=_;function j(v){return s(v)===\"BigInt64Array\"}e.isBigInt64Array=j;function J(v){return s(v)===\"BigUint64Array\"}e.isBigUint64Array=J;function C(v){return c(v)===\"[object Map]\"}C.working=typeof Map<\"u\"&&C(new Map);function G(v){return typeof Map>\"u\"?!1:C.working?C(v):v instanceof Map}e.isMap=G;function A(v){return c(v)===\"[object Set]\"}A.working=typeof Set<\"u\"&&A(new Set);function z(v){return typeof Set>\"u\"?!1:A.working?A(v):v instanceof Set}e.isSet=z;function Q(v){return c(v)===\"[object WeakMap]\"}Q.working=typeof WeakMap<\"u\"&&Q(new WeakMap);function q(v){return typeof WeakMap>\"u\"?!1:Q.working?Q(v):v instanceof WeakMap}e.isWeakMap=q;function se(v){return c(v)===\"[object WeakSet]\"}se.working=typeof WeakSet<\"u\"&&se(new WeakSet);function Y(v){return se(v)}e.isWeakSet=Y;function te(v){return c(v)===\"[object ArrayBuffer]\"}te.working=typeof ArrayBuffer<\"u\"&&te(new ArrayBuffer);function V(v){return typeof ArrayBuffer>\"u\"?!1:te.working?te(v):v instanceof ArrayBuffer}e.isArrayBuffer=V;function D(v){return c(v)===\"[object DataView]\"}D.working=typeof ArrayBuffer<\"u\"&&typeof DataView<\"u\"&&D(new DataView(new ArrayBuffer(1),0,1));function X(v){return typeof DataView>\"u\"?!1:D.working?D(v):v instanceof DataView}e.isDataView=X;var Z=typeof SharedArrayBuffer<\"u\"?SharedArrayBuffer:void 0;function re(v){return c(v)===\"[object SharedArrayBuffer]\"}function pe(v){return typeof Z>\"u\"?!1:(typeof re.working>\"u\"&&(re.working=re(new Z)),re.working?re(v):v instanceof Z)}e.isSharedArrayBuffer=pe;function k(v){return c(v)===\"[object AsyncFunction]\"}e.isAsyncFunction=k;function f(v){return c(v)===\"[object Map Iterator]\"}e.isMapIterator=f;function H(v){return c(v)===\"[object Set Iterator]\"}e.isSetIterator=H;function U(v){return c(v)===\"[object Generator]\"}e.isGeneratorObject=U;function ne(v){return c(v)===\"[object WebAssembly.Module]\"}e.isWebAssemblyCompiledModule=ne;function L(v){return w(v,g)}e.isNumberObject=L;function F(v){return w(v,E)}e.isStringObject=F;function h(v){return w(v,p)}e.isBooleanObject=h;function K(v){return a&&w(v,x)}e.isBigIntObject=K;function I(v){return n&&w(v,m)}e.isSymbolObject=I;function i(v){return L(v)||F(v)||h(v)||K(v)||I(v)}e.isBoxedPrimitive=i;function l(v){return typeof Uint8Array<\"u\"&&(V(v)||pe(v))}e.isAnyArrayBuffer=l,[\"isProxy\",\"isExternal\",\"isModuleNamespaceObject\"].forEach(function(v){Object.defineProperty(e,v,{enumerable:!1,value:function(){throw new Error(v+\" is not supported in userland\")}})})})),Es=ce(((e,r)=>{r.exports=function(s){return s&&typeof s==\"object\"&&typeof s.copy==\"function\"&&typeof s.fill==\"function\"&&typeof s.readUInt8==\"function\"}})),di=ce((e=>{Xe();var r=Object.getOwnPropertyDescriptors||function(X){for(var Z=Object.keys(X),re={},pe=0;pe<Z.length;pe++)re[Z[pe]]=Object.getOwnPropertyDescriptor(X,Z[pe]);return re},t=/%[sdj%]/g;e.format=function(D){if(!y(D)){for(var X=[],Z=0;Z<arguments.length;Z++)X.push(a(arguments[Z]));return X.join(\" \")}for(var Z=1,re=arguments,pe=re.length,k=String(D).replace(t,function(H){if(H===\"%%\")return\"%\";if(Z>=pe)return H;switch(H){case\"%s\":return String(re[Z++]);case\"%d\":return Number(re[Z++]);case\"%j\":try{return JSON.stringify(re[Z++])}catch{return\"[Circular]\"}default:return H}}),f=re[Z];Z<pe;f=re[++Z])S(f)||!_(f)?k+=\" \"+f:k+=\" \"+a(f);return k},e.deprecate=function(D,X){if(typeof ge<\"u\"&&ge.noDeprecation===!0)return D;if(typeof ge>\"u\")return function(){return e.deprecate(D,X).apply(this,arguments)};var Z=!1;function re(){if(!Z){if(ge.throwDeprecation)throw new Error(X);ge.traceDeprecation?console.trace(X):console.error(X),Z=!0}return D.apply(this,arguments)}return re};var s={},o=/^$/;if(ge.env.NODE_DEBUG){var u=ge.env.NODE_DEBUG;u=u.replace(/[|\\\\{}()[\\]^$+?.]/g,\"\\\\$&\").replace(/\\*/g,\".*\").replace(/,/g,\"$|^\").toUpperCase(),o=new RegExp(\"^\"+u+\"$\",\"i\")}e.debuglog=function(D){if(D=D.toUpperCase(),!s[D])if(o.test(D)){var X=ge.pid;s[D]=function(){var Z=e.format.apply(e,arguments);console.error(\"%s %d: %s\",D,X,Z)}}else s[D]=function(){};return s[D]};function a(D,X){var Z={seen:[],stylize:c};return arguments.length>=3&&(Z.depth=arguments[2]),arguments.length>=4&&(Z.colors=arguments[3]),R(X)?Z.showHidden=X:X&&e._extend(Z,X),N(Z.showHidden)&&(Z.showHidden=!1),N(Z.depth)&&(Z.depth=2),N(Z.colors)&&(Z.colors=!1),N(Z.customInspect)&&(Z.customInspect=!0),Z.colors&&(Z.stylize=n),E(Z,D,Z.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"};function n(D,X){var Z=a.styles[X];return Z?\"\\x1B[\"+a.colors[Z][0]+\"m\"+D+\"\\x1B[\"+a.colors[Z][1]+\"m\":D}function c(D,X){return D}function g(D){var X={};return D.forEach(function(Z,re){X[Z]=!0}),X}function E(D,X,Z){if(D.customInspect&&X&&C(X.inspect)&&X.inspect!==e.inspect&&!(X.constructor&&X.constructor.prototype===X)){var re=X.inspect(Z,D);return y(re)||(re=E(D,re,Z)),re}var pe=p(D,X);if(pe)return pe;var k=Object.keys(X),f=g(k);if(D.showHidden&&(k=Object.getOwnPropertyNames(X)),J(X)&&(k.indexOf(\"message\")>=0||k.indexOf(\"description\")>=0))return x(X);if(k.length===0){if(C(X)){var H=X.name?\": \"+X.name:\"\";return D.stylize(\"[Function\"+H+\"]\",\"special\")}if(B(X))return D.stylize(RegExp.prototype.toString.call(X),\"regexp\");if(j(X))return D.stylize(Date.prototype.toString.call(X),\"date\");if(J(X))return x(X)}var U=\"\",ne=!1,L=[\"{\",\"}\"];if(T(X)&&(ne=!0,L=[\"[\",\"]\"]),C(X)&&(U=\" [Function\"+(X.name?\": \"+X.name:\"\")+\"]\"),B(X)&&(U=\" \"+RegExp.prototype.toString.call(X)),j(X)&&(U=\" \"+Date.prototype.toUTCString.call(X)),J(X)&&(U=\" \"+x(X)),k.length===0&&(!ne||X.length==0))return L[0]+U+L[1];if(Z<0)return B(X)?D.stylize(RegExp.prototype.toString.call(X),\"regexp\"):D.stylize(\"[Object]\",\"special\");D.seen.push(X);var F;return ne?F=m(D,X,Z,f,k):F=k.map(function(h){return w(D,X,Z,f,h,ne)}),D.seen.pop(),b(F,U,L)}function p(D,X){if(N(X))return D.stylize(\"undefined\",\"undefined\");if(y(X)){var Z=\"'\"+JSON.stringify(X).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return D.stylize(Z,\"string\")}if(O(X))return D.stylize(\"\"+X,\"number\");if(R(X))return D.stylize(\"\"+X,\"boolean\");if(S(X))return D.stylize(\"null\",\"null\")}function x(D){return\"[\"+Error.prototype.toString.call(D)+\"]\"}function m(D,X,Z,re,pe){for(var k=[],f=0,H=X.length;f<H;++f)se(X,String(f))?k.push(w(D,X,Z,re,String(f),!0)):k.push(\"\");return pe.forEach(function(U){U.match(/^\\d+$/)||k.push(w(D,X,Z,re,U,!0))}),k}function w(D,X,Z,re,pe,k){var f,H,U=Object.getOwnPropertyDescriptor(X,pe)||{value:X[pe]};if(U.get?U.set?H=D.stylize(\"[Getter/Setter]\",\"special\"):H=D.stylize(\"[Getter]\",\"special\"):U.set&&(H=D.stylize(\"[Setter]\",\"special\")),se(re,pe)||(f=\"[\"+pe+\"]\"),H||(D.seen.indexOf(U.value)<0?(S(Z)?H=E(D,U.value,null):H=E(D,U.value,Z-1),H.indexOf(`\n`)>-1&&(k?H=H.split(`\n`).map(function(ne){return\"  \"+ne}).join(`\n`).slice(2):H=`\n`+H.split(`\n`).map(function(ne){return\"   \"+ne}).join(`\n`))):H=D.stylize(\"[Circular]\",\"special\")),N(f)){if(k&&pe.match(/^\\d+$/))return H;f=JSON.stringify(\"\"+pe),f.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(f=f.slice(1,-1),f=D.stylize(f,\"name\")):(f=f.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),f=D.stylize(f,\"string\"))}return f+\": \"+H}function b(D,X,Z){var re=0;return D.reduce(function(pe,k){return re++,k.indexOf(`\n`)>=0&&re++,pe+k.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1},0)>60?Z[0]+(X===\"\"?\"\":X+`\n `)+\" \"+D.join(`,\n  `)+\" \"+Z[1]:Z[0]+X+\" \"+D.join(\", \")+\" \"+Z[1]}e.types=_s();function T(D){return Array.isArray(D)}e.isArray=T;function R(D){return typeof D==\"boolean\"}e.isBoolean=R;function S(D){return D===null}e.isNull=S;function P(D){return D==null}e.isNullOrUndefined=P;function O(D){return typeof D==\"number\"}e.isNumber=O;function y(D){return typeof D==\"string\"}e.isString=y;function d(D){return typeof D==\"symbol\"}e.isSymbol=d;function N(D){return D===void 0}e.isUndefined=N;function B(D){return _(D)&&A(D)===\"[object RegExp]\"}e.isRegExp=B,e.types.isRegExp=B;function _(D){return typeof D==\"object\"&&D!==null}e.isObject=_;function j(D){return _(D)&&A(D)===\"[object Date]\"}e.isDate=j,e.types.isDate=j;function J(D){return _(D)&&(A(D)===\"[object Error]\"||D instanceof Error)}e.isError=J,e.types.isNativeError=J;function C(D){return typeof D==\"function\"}e.isFunction=C;function G(D){return D===null||typeof D==\"boolean\"||typeof D==\"number\"||typeof D==\"string\"||typeof D==\"symbol\"||typeof D>\"u\"}e.isPrimitive=G,e.isBuffer=Es();function A(D){return Object.prototype.toString.call(D)}function z(D){return D<10?\"0\"+D.toString(10):D.toString(10)}var Q=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];function q(){var D=new Date,X=[z(D.getHours()),z(D.getMinutes()),z(D.getSeconds())].join(\":\");return[D.getDate(),Q[D.getMonth()],X].join(\" \")}e.log=function(){console.log(\"%s - %s\",q(),e.format.apply(e,arguments))},e.inherits=qe(),e._extend=function(D,X){if(!X||!_(X))return D;for(var Z=Object.keys(X),re=Z.length;re--;)D[Z[re]]=X[Z[re]];return D};function se(D,X){return Object.prototype.hasOwnProperty.call(D,X)}var Y=typeof Symbol<\"u\"?Symbol(\"util.promisify.custom\"):void 0;e.promisify=function(X){if(typeof X!=\"function\")throw new TypeError('The \"original\" argument must be of type Function');if(Y&&X[Y]){var Z=X[Y];if(typeof Z!=\"function\")throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');return Object.defineProperty(Z,Y,{value:Z,enumerable:!1,writable:!1,configurable:!0}),Z}function Z(){for(var re,pe,k=new Promise(function(U,ne){re=U,pe=ne}),f=[],H=0;H<arguments.length;H++)f.push(arguments[H]);f.push(function(U,ne){U?pe(U):re(ne)});try{X.apply(this,f)}catch(U){pe(U)}return k}return Object.setPrototypeOf(Z,Object.getPrototypeOf(X)),Y&&Object.defineProperty(Z,Y,{value:Z,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Z,r(X))},e.promisify.custom=Y;function te(D,X){if(!D){var Z=new Error(\"Promise was rejected with a falsy value\");Z.reason=D,D=Z}return X(D)}function V(D){if(typeof D!=\"function\")throw new TypeError('The \"original\" argument must be of type Function');function X(){for(var Z=[],re=0;re<arguments.length;re++)Z.push(arguments[re]);var pe=Z.pop();if(typeof pe!=\"function\")throw new TypeError(\"The last argument must be of type Function\");var k=this,f=function(){return pe.apply(k,arguments)};D.apply(this,Z).then(function(H){ge.nextTick(f.bind(null,null,H))},function(H){ge.nextTick(te.bind(null,H,f))})}return Object.setPrototypeOf(X,Object.getPrototypeOf(D)),Object.defineProperties(X,r(D)),X}e.callbackify=V})),xs=ce(((e,r)=>{function t(w,b){var T=Object.keys(w);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(w);b&&(R=R.filter(function(S){return Object.getOwnPropertyDescriptor(w,S).enumerable})),T.push.apply(T,R)}return T}function s(w){for(var b=1;b<arguments.length;b++){var T=arguments[b]!=null?arguments[b]:{};b%2?t(Object(T),!0).forEach(function(R){o(w,R,T[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(T)):t(Object(T)).forEach(function(R){Object.defineProperty(w,R,Object.getOwnPropertyDescriptor(T,R))})}return w}function o(w,b,T){return b=c(b),b in w?Object.defineProperty(w,b,{value:T,enumerable:!0,configurable:!0,writable:!0}):w[b]=T,w}function u(w,b){if(!(w instanceof b))throw new TypeError(\"Cannot call a class as a function\")}function a(w,b){for(var T=0;T<b.length;T++){var R=b[T];R.enumerable=R.enumerable||!1,R.configurable=!0,\"value\"in R&&(R.writable=!0),Object.defineProperty(w,c(R.key),R)}}function n(w,b,T){return b&&a(w.prototype,b),T&&a(w,T),Object.defineProperty(w,\"prototype\",{writable:!1}),w}function c(w){var b=g(w,\"string\");return typeof b==\"symbol\"?b:String(b)}function g(w,b){if(typeof w!=\"object\"||w===null)return w;var T=w[Symbol.toPrimitive];if(T!==void 0){var R=T.call(w,b||\"default\");if(typeof R!=\"object\")return R;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(b===\"string\"?String:Number)(w)}var E=ur().Buffer,p=di().inspect,x=p&&p.custom||\"inspect\";function m(w,b,T){E.prototype.copy.call(w,b,T)}r.exports=(function(){function w(){u(this,w),this.head=null,this.tail=null,this.length=0}return n(w,[{key:\"push\",value:function(T){var R={data:T,next:null};this.length>0?this.tail.next=R:this.head=R,this.tail=R,++this.length}},{key:\"unshift\",value:function(T){var R={data:T,next:this.head};this.length===0&&(this.tail=R),this.head=R,++this.length}},{key:\"shift\",value:function(){if(this.length!==0){var T=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,T}}},{key:\"clear\",value:function(){this.head=this.tail=null,this.length=0}},{key:\"join\",value:function(T){if(this.length===0)return\"\";for(var R=this.head,S=\"\"+R.data;R=R.next;)S+=T+R.data;return S}},{key:\"concat\",value:function(T){if(this.length===0)return E.alloc(0);for(var R=E.allocUnsafe(T>>>0),S=this.head,P=0;S;)m(S.data,R,P),P+=S.data.length,S=S.next;return R}},{key:\"consume\",value:function(T,R){var S;return T<this.head.data.length?(S=this.head.data.slice(0,T),this.head.data=this.head.data.slice(T)):T===this.head.data.length?S=this.shift():S=R?this._getString(T):this._getBuffer(T),S}},{key:\"first\",value:function(){return this.head.data}},{key:\"_getString\",value:function(T){var R=this.head,S=1,P=R.data;for(T-=P.length;R=R.next;){var O=R.data,y=T>O.length?O.length:T;if(y===O.length?P+=O:P+=O.slice(0,T),T-=y,T===0){y===O.length?(++S,R.next?this.head=R.next:this.head=this.tail=null):(this.head=R,R.data=O.slice(y));break}++S}return this.length-=S,P}},{key:\"_getBuffer\",value:function(T){var R=E.allocUnsafe(T),S=this.head,P=1;for(S.data.copy(R),T-=S.data.length;S=S.next;){var O=S.data,y=T>O.length?O.length:T;if(O.copy(R,R.length-T,0,y),T-=y,T===0){y===O.length?(++P,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=O.slice(y));break}++P}return this.length-=P,R}},{key:x,value:function(T,R){return p(this,s(s({},R),{},{depth:0,customInspect:!1}))}}]),w})()})),fi=ce(((e,r)=>{Xe();function t(c,g){var E=this,p=this._readableState&&this._readableState.destroyed,x=this._writableState&&this._writableState.destroyed;return p||x?(g?g(c):c&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ge.nextTick(a,this,c)):ge.nextTick(a,this,c)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(m){!g&&m?E._writableState?E._writableState.errorEmitted?ge.nextTick(o,E):(E._writableState.errorEmitted=!0,ge.nextTick(s,E,m)):ge.nextTick(s,E,m):g?(ge.nextTick(o,E),g(m)):ge.nextTick(o,E)}),this)}function s(c,g){a(c,g),o(c)}function o(c){c._writableState&&!c._writableState.emitClose||c._readableState&&!c._readableState.emitClose||c.emit(\"close\")}function u(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(c,g){c.emit(\"error\",g)}function n(c,g){var E=c._readableState,p=c._writableState;E&&E.autoDestroy||p&&p.autoDestroy?c.destroy(g):c.emit(\"error\",g)}r.exports={destroy:t,undestroy:u,errorOrDestroy:n}})),bt=ce(((e,r)=>{function t(g,E){g.prototype=Object.create(E.prototype),g.prototype.constructor=g,g.__proto__=E}var s={};function o(g,E,p){p||(p=Error);function x(w,b,T){return typeof E==\"string\"?E:E(w,b,T)}var m=(function(w){t(b,w);function b(T,R,S){return w.call(this,x(T,R,S))||this}return b})(p);m.prototype.name=p.name,m.prototype.code=g,s[g]=m}function u(g,E){if(Array.isArray(g)){var p=g.length;return g=g.map(function(x){return String(x)}),p>2?\"one of \".concat(E,\" \").concat(g.slice(0,p-1).join(\", \"),\", or \")+g[p-1]:p===2?\"one of \".concat(E,\" \").concat(g[0],\" or \").concat(g[1]):\"of \".concat(E,\" \").concat(g[0])}else return\"of \".concat(E,\" \").concat(String(g))}function a(g,E,p){return g.substr(!p||p<0?0:+p,E.length)===E}function n(g,E,p){return(p===void 0||p>g.length)&&(p=g.length),g.substring(p-E.length,p)===E}function c(g,E,p){return typeof p!=\"number\"&&(p=0),p+E.length>g.length?!1:g.indexOf(E,p)!==-1}o(\"ERR_INVALID_OPT_VALUE\",function(g,E){return'The value \"'+E+'\" is invalid for option \"'+g+'\"'},TypeError),o(\"ERR_INVALID_ARG_TYPE\",function(g,E,p){var x;typeof E==\"string\"&&a(E,\"not \")?(x=\"must not be\",E=E.replace(/^not /,\"\")):x=\"must be\";var m;if(n(g,\" argument\"))m=\"The \".concat(g,\" \").concat(x,\" \").concat(u(E,\"type\"));else{var w=c(g,\".\")?\"property\":\"argument\";m='The \"'.concat(g,'\" ').concat(w,\" \").concat(x,\" \").concat(u(E,\"type\"))}return m+=\". Received type \".concat(typeof p),m},TypeError),o(\"ERR_STREAM_PUSH_AFTER_EOF\",\"stream.push() after EOF\"),o(\"ERR_METHOD_NOT_IMPLEMENTED\",function(g){return\"The \"+g+\" method is not implemented\"}),o(\"ERR_STREAM_PREMATURE_CLOSE\",\"Premature close\"),o(\"ERR_STREAM_DESTROYED\",function(g){return\"Cannot call \"+g+\" after a stream was destroyed\"}),o(\"ERR_MULTIPLE_CALLBACK\",\"Callback called multiple times\"),o(\"ERR_STREAM_CANNOT_PIPE\",\"Cannot pipe, not readable\"),o(\"ERR_STREAM_WRITE_AFTER_END\",\"write after end\"),o(\"ERR_STREAM_NULL_VALUES\",\"May not write null values to stream\",TypeError),o(\"ERR_UNKNOWN_ENCODING\",function(g){return\"Unknown encoding: \"+g},TypeError),o(\"ERR_STREAM_UNSHIFT_AFTER_END_EVENT\",\"stream.unshift() after end event\"),r.exports.codes=s})),pi=ce(((e,r)=>{var t=bt().codes.ERR_INVALID_OPT_VALUE;function s(u,a,n){return u.highWaterMark!=null?u.highWaterMark:a?u[n]:null}function o(u,a,n,c){var g=s(a,c,n);if(g!=null){if(!(isFinite(g)&&Math.floor(g)===g)||g<0)throw new t(c?n:\"highWaterMark\",g);return Math.floor(g)}return u.objectMode?16:16384}r.exports={getHighWaterMark:o}})),Ts=ce(((e,r)=>{yt(),r.exports=t;function t(o,u){if(s(\"noDeprecation\"))return o;var a=!1;function n(){if(!a){if(s(\"throwDeprecation\"))throw new Error(u);s(\"traceDeprecation\")?console.trace(u):console.warn(u),a=!0}return o.apply(this,arguments)}return n}function s(o){try{if(!ke.localStorage)return!1}catch{return!1}var u=ke.localStorage[o];return u==null?!1:String(u).toLowerCase()===\"true\"}})),mi=ce(((e,r)=>{yt(),Xe(),r.exports=_;function t(k){var f=this;this.next=null,this.entry=null,this.finish=function(){pe(f,k)}}var s;_.WritableState=N;var o={deprecate:Ts()},u=ti(),a=ur().Buffer,n=(typeof ke<\"u\"?ke:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){};function c(k){return a.from(k)}function g(k){return a.isBuffer(k)||k instanceof n}var E=fi(),p=pi().getHighWaterMark,x=bt().codes,m=x.ERR_INVALID_ARG_TYPE,w=x.ERR_METHOD_NOT_IMPLEMENTED,b=x.ERR_MULTIPLE_CALLBACK,T=x.ERR_STREAM_CANNOT_PIPE,R=x.ERR_STREAM_DESTROYED,S=x.ERR_STREAM_NULL_VALUES,P=x.ERR_STREAM_WRITE_AFTER_END,O=x.ERR_UNKNOWN_ENCODING,y=E.errorOrDestroy;qe()(_,u);function d(){}function N(k,f,H){s=s||mt(),k=k||{},typeof H!=\"boolean\"&&(H=f instanceof s),this.objectMode=!!k.objectMode,H&&(this.objectMode=this.objectMode||!!k.writableObjectMode),this.highWaterMark=p(this,k,\"writableHighWaterMark\",H),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var U=k.decodeStrings===!1;this.decodeStrings=!U,this.defaultEncoding=k.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ne){q(f,ne)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=k.emitClose!==!1,this.autoDestroy=!!k.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}N.prototype.getBuffer=function(){for(var f=this.bufferedRequest,H=[];f;)H.push(f),f=f.next;return H},(function(){try{Object.defineProperty(N.prototype,\"buffer\",{get:o.deprecate(function(){return this.getBuffer()},\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch{}})();var B;typeof Symbol==\"function\"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==\"function\"?(B=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(f){return B.call(this,f)?!0:this!==_?!1:f&&f._writableState instanceof N}})):B=function(f){return f instanceof this};function _(k){s=s||mt();var f=this instanceof s;if(!f&&!B.call(_,this))return new _(k);this._writableState=new N(k,this,f),this.writable=!0,k&&(typeof k.write==\"function\"&&(this._write=k.write),typeof k.writev==\"function\"&&(this._writev=k.writev),typeof k.destroy==\"function\"&&(this._destroy=k.destroy),typeof k.final==\"function\"&&(this._final=k.final)),u.call(this)}_.prototype.pipe=function(){y(this,new T)};function j(k,f){var H=new P;y(k,H),ge.nextTick(f,H)}function J(k,f,H,U){var ne;return H===null?ne=new S:typeof H!=\"string\"&&!f.objectMode&&(ne=new m(\"chunk\",[\"string\",\"Buffer\"],H)),ne?(y(k,ne),ge.nextTick(U,ne),!1):!0}_.prototype.write=function(k,f,H){var U=this._writableState,ne=!1,L=!U.objectMode&&g(k);return L&&!a.isBuffer(k)&&(k=c(k)),typeof f==\"function\"&&(H=f,f=null),L?f=\"buffer\":f||(f=U.defaultEncoding),typeof H!=\"function\"&&(H=d),U.ending?j(this,H):(L||J(this,U,k,H))&&(U.pendingcb++,ne=G(this,U,L,k,f,H)),ne},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var k=this._writableState;k.corked&&(k.corked--,!k.writing&&!k.corked&&!k.bufferProcessing&&k.bufferedRequest&&te(this,k))},_.prototype.setDefaultEncoding=function(f){if(typeof f==\"string\"&&(f=f.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((f+\"\").toLowerCase())>-1))throw new O(f);return this._writableState.defaultEncoding=f,this},Object.defineProperty(_.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function C(k,f,H){return!k.objectMode&&k.decodeStrings!==!1&&typeof f==\"string\"&&(f=a.from(f,H)),f}Object.defineProperty(_.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function G(k,f,H,U,ne,L){if(!H){var F=C(f,U,ne);U!==F&&(H=!0,ne=\"buffer\",U=F)}var h=f.objectMode?1:U.length;f.length+=h;var K=f.length<f.highWaterMark;if(K||(f.needDrain=!0),f.writing||f.corked){var I=f.lastBufferedRequest;f.lastBufferedRequest={chunk:U,encoding:ne,isBuf:H,callback:L,next:null},I?I.next=f.lastBufferedRequest:f.bufferedRequest=f.lastBufferedRequest,f.bufferedRequestCount+=1}else A(k,f,!1,h,U,ne,L);return K}function A(k,f,H,U,ne,L,F){f.writelen=U,f.writecb=F,f.writing=!0,f.sync=!0,f.destroyed?f.onwrite(new R(\"write\")):H?k._writev(ne,f.onwrite):k._write(ne,L,f.onwrite),f.sync=!1}function z(k,f,H,U,ne){--f.pendingcb,H?(ge.nextTick(ne,U),ge.nextTick(Z,k,f),k._writableState.errorEmitted=!0,y(k,U)):(ne(U),k._writableState.errorEmitted=!0,y(k,U),Z(k,f))}function Q(k){k.writing=!1,k.writecb=null,k.length-=k.writelen,k.writelen=0}function q(k,f){var H=k._writableState,U=H.sync,ne=H.writecb;if(typeof ne!=\"function\")throw new b;if(Q(H),f)z(k,H,U,f,ne);else{var L=V(H)||k.destroyed;!L&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&te(k,H),U?ge.nextTick(se,k,H,L,ne):se(k,H,L,ne)}}function se(k,f,H,U){H||Y(k,f),f.pendingcb--,U(),Z(k,f)}function Y(k,f){f.length===0&&f.needDrain&&(f.needDrain=!1,k.emit(\"drain\"))}function te(k,f){f.bufferProcessing=!0;var H=f.bufferedRequest;if(k._writev&&H&&H.next){var U=f.bufferedRequestCount,ne=new Array(U),L=f.corkedRequestsFree;L.entry=H;for(var F=0,h=!0;H;)ne[F]=H,H.isBuf||(h=!1),H=H.next,F+=1;ne.allBuffers=h,A(k,f,!0,f.length,ne,\"\",L.finish),f.pendingcb++,f.lastBufferedRequest=null,L.next?(f.corkedRequestsFree=L.next,L.next=null):f.corkedRequestsFree=new t(f),f.bufferedRequestCount=0}else{for(;H;){var K=H.chunk,I=H.encoding,i=H.callback;if(A(k,f,!1,f.objectMode?1:K.length,K,I,i),H=H.next,f.bufferedRequestCount--,f.writing)break}H===null&&(f.lastBufferedRequest=null)}f.bufferedRequest=H,f.bufferProcessing=!1}_.prototype._write=function(k,f,H){H(new w(\"_write()\"))},_.prototype._writev=null,_.prototype.end=function(k,f,H){var U=this._writableState;return typeof k==\"function\"?(H=k,k=null,f=null):typeof f==\"function\"&&(H=f,f=null),k!=null&&this.write(k,f),U.corked&&(U.corked=1,this.uncork()),U.ending||re(this,U,H),this},Object.defineProperty(_.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}});function V(k){return k.ending&&k.length===0&&k.bufferedRequest===null&&!k.finished&&!k.writing}function D(k,f){k._final(function(H){f.pendingcb--,H&&y(k,H),f.prefinished=!0,k.emit(\"prefinish\"),Z(k,f)})}function X(k,f){!f.prefinished&&!f.finalCalled&&(typeof k._final==\"function\"&&!f.destroyed?(f.pendingcb++,f.finalCalled=!0,ge.nextTick(D,k,f)):(f.prefinished=!0,k.emit(\"prefinish\")))}function Z(k,f){var H=V(f);if(H&&(X(k,f),f.pendingcb===0&&(f.finished=!0,k.emit(\"finish\"),f.autoDestroy))){var U=k._readableState;(!U||U.autoDestroy&&U.endEmitted)&&k.destroy()}return H}function re(k,f,H){f.ending=!0,Z(k,f),H&&(f.finished?ge.nextTick(H):k.once(\"finish\",H)),f.ended=!0,k.writable=!1}function pe(k,f,H){var U=k.entry;for(k.entry=null;U;){var ne=U.callback;f.pendingcb--,ne(H),U=U.next}f.corkedRequestsFree.next=k}Object.defineProperty(_.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(f){this._writableState&&(this._writableState.destroyed=f)}}),_.prototype.destroy=E.destroy,_.prototype._undestroy=E.undestroy,_.prototype._destroy=function(k,f){f(k)}})),mt=ce(((e,r)=>{Xe();var t=Object.keys||function(p){var x=[];for(var m in p)x.push(m);return x};r.exports=c;var s=vi(),o=mi();qe()(c,s);for(var u=t(o.prototype),a=0;a<u.length;a++){var n=u[a];c.prototype[n]||(c.prototype[n]=o.prototype[n])}function c(p){if(!(this instanceof c))return new c(p);s.call(this,p),o.call(this,p),this.allowHalfOpen=!0,p&&(p.readable===!1&&(this.readable=!1),p.writable===!1&&(this.writable=!1),p.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once(\"end\",g)))}Object.defineProperty(c.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}});function g(){this._writableState.ended||ge.nextTick(E,this)}function E(p){p.end()}Object.defineProperty(c.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(x){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=x,this._writableState.destroyed=x)}})})),Ss=ce(((e,r)=>{var t=ur(),s=t.Buffer;function o(a,n){for(var c in a)n[c]=a[c]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?r.exports=t:(o(t,e),e.Buffer=u);function u(a,n,c){return s(a,n,c)}o(s,u),u.from=function(a,n,c){if(typeof a==\"number\")throw new TypeError(\"Argument must not be a number\");return s(a,n,c)},u.alloc=function(a,n,c){if(typeof a!=\"number\")throw new TypeError(\"Argument must be a number\");var g=s(a);return n!==void 0?typeof c==\"string\"?g.fill(n,c):g.fill(n):g.fill(0),g},u.allocUnsafe=function(a){if(typeof a!=\"number\")throw new TypeError(\"Argument must be a number\");return s(a)},u.allocUnsafeSlow=function(a){if(typeof a!=\"number\")throw new TypeError(\"Argument must be a number\");return t.SlowBuffer(a)}})),Mr=ce((e=>{var r=Ss().Buffer,t=r.isEncoding||function(S){switch(S=\"\"+S,S&&S.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};function s(S){if(!S)return\"utf8\";for(var P;;)switch(S){case\"utf8\":case\"utf-8\":return\"utf8\";case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return\"utf16le\";case\"latin1\":case\"binary\":return\"latin1\";case\"base64\":case\"ascii\":case\"hex\":return S;default:if(P)return;S=(\"\"+S).toLowerCase(),P=!0}}function o(S){var P=s(S);if(typeof P!=\"string\"&&(r.isEncoding===t||!t(S)))throw new Error(\"Unknown encoding: \"+S);return P||S}e.StringDecoder=u;function u(S){this.encoding=o(S);var P;switch(this.encoding){case\"utf16le\":this.text=x,this.end=m,P=4;break;case\"utf8\":this.fillLast=g,P=4;break;case\"base64\":this.text=w,this.end=b,P=3;break;default:this.write=T,this.end=R;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(P)}u.prototype.write=function(S){if(S.length===0)return\"\";var P,O;if(this.lastNeed){if(P=this.fillLast(S),P===void 0)return\"\";O=this.lastNeed,this.lastNeed=0}else O=0;return O<S.length?P?P+this.text(S,O):this.text(S,O):P||\"\"},u.prototype.end=p,u.prototype.text=E,u.prototype.fillLast=function(S){if(this.lastNeed<=S.length)return S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,S.length),this.lastNeed-=S.length};function a(S){return S<=127?0:S>>5===6?2:S>>4===14?3:S>>3===30?4:S>>6===2?-1:-2}function n(S,P,O){var y=P.length-1;if(y<O)return 0;var d=a(P[y]);return d>=0?(d>0&&(S.lastNeed=d-1),d):--y<O||d===-2?0:(d=a(P[y]),d>=0?(d>0&&(S.lastNeed=d-2),d):--y<O||d===-2?0:(d=a(P[y]),d>=0?(d>0&&(d===2?d=0:S.lastNeed=d-3),d):0))}function c(S,P,O){if((P[0]&192)!==128)return S.lastNeed=0,\"\\uFFFD\";if(S.lastNeed>1&&P.length>1){if((P[1]&192)!==128)return S.lastNeed=1,\"\\uFFFD\";if(S.lastNeed>2&&P.length>2&&(P[2]&192)!==128)return S.lastNeed=2,\"\\uFFFD\"}}function g(S){var P=this.lastTotal-this.lastNeed,O=c(this,S,P);if(O!==void 0)return O;if(this.lastNeed<=S.length)return S.copy(this.lastChar,P,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,P,0,S.length),this.lastNeed-=S.length}function E(S,P){var O=n(this,S,P);if(!this.lastNeed)return S.toString(\"utf8\",P);this.lastTotal=O;var y=S.length-(O-this.lastNeed);return S.copy(this.lastChar,0,y),S.toString(\"utf8\",P,y)}function p(S){var P=S&&S.length?this.write(S):\"\";return this.lastNeed?P+\"\\uFFFD\":P}function x(S,P){if((S.length-P)%2===0){var O=S.toString(\"utf16le\",P);if(O){var y=O.charCodeAt(O.length-1);if(y>=55296&&y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=S[S.length-1],S.toString(\"utf16le\",P,S.length-1)}function m(S){var P=S&&S.length?this.write(S):\"\";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return P+this.lastChar.toString(\"utf16le\",0,O)}return P}function w(S,P){var O=(S.length-P)%3;return O===0?S.toString(\"base64\",P):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=S[S.length-1]:(this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1]),S.toString(\"base64\",P,S.length-O))}function b(S){var P=S&&S.length?this.write(S):\"\";return this.lastNeed?P+this.lastChar.toString(\"base64\",0,3-this.lastNeed):P}function T(S){return S.toString(this.encoding)}function R(S){return S&&S.length?this.write(S):\"\"}})),Yr=ce(((e,r)=>{var t=bt().codes.ERR_STREAM_PREMATURE_CLOSE;function s(n){var c=!1;return function(){if(!c){c=!0;for(var g=arguments.length,E=new Array(g),p=0;p<g;p++)E[p]=arguments[p];n.apply(this,E)}}}function o(){}function u(n){return n.setHeader&&typeof n.abort==\"function\"}function a(n,c,g){if(typeof c==\"function\")return a(n,null,c);c||(c={}),g=s(g||o);var E=c.readable||c.readable!==!1&&n.readable,p=c.writable||c.writable!==!1&&n.writable,x=function(){n.writable||w()},m=n._writableState&&n._writableState.finished,w=function(){p=!1,m=!0,E||g.call(n)},b=n._readableState&&n._readableState.endEmitted,T=function(){E=!1,b=!0,p||g.call(n)},R=function(y){g.call(n,y)},S=function(){var y;if(E&&!b)return(!n._readableState||!n._readableState.ended)&&(y=new t),g.call(n,y);if(p&&!m)return(!n._writableState||!n._writableState.ended)&&(y=new t),g.call(n,y)},P=function(){n.req.on(\"finish\",w)};return u(n)?(n.on(\"complete\",w),n.on(\"abort\",S),n.req?P():n.on(\"request\",P)):p&&!n._writableState&&(n.on(\"end\",x),n.on(\"close\",x)),n.on(\"end\",T),n.on(\"finish\",w),c.error!==!1&&n.on(\"error\",R),n.on(\"close\",S),function(){n.removeListener(\"complete\",w),n.removeListener(\"abort\",S),n.removeListener(\"request\",P),n.req&&n.req.removeListener(\"finish\",w),n.removeListener(\"end\",x),n.removeListener(\"close\",x),n.removeListener(\"finish\",w),n.removeListener(\"end\",T),n.removeListener(\"error\",R),n.removeListener(\"close\",S)}}r.exports=a})),As=ce(((e,r)=>{Xe();var t;function s(O,y,d){return y=o(y),y in O?Object.defineProperty(O,y,{value:d,enumerable:!0,configurable:!0,writable:!0}):O[y]=d,O}function o(O){var y=u(O,\"string\");return typeof y==\"symbol\"?y:String(y)}function u(O,y){if(typeof O!=\"object\"||O===null)return O;var d=O[Symbol.toPrimitive];if(d!==void 0){var N=d.call(O,y||\"default\");if(typeof N!=\"object\")return N;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(y===\"string\"?String:Number)(O)}var a=Yr(),n=Symbol(\"lastResolve\"),c=Symbol(\"lastReject\"),g=Symbol(\"error\"),E=Symbol(\"ended\"),p=Symbol(\"lastPromise\"),x=Symbol(\"handlePromise\"),m=Symbol(\"stream\");function w(O,y){return{value:O,done:y}}function b(O){var y=O[n];if(y!==null){var d=O[m].read();d!==null&&(O[p]=null,O[n]=null,O[c]=null,y(w(d,!1)))}}function T(O){ge.nextTick(b,O)}function R(O,y){return function(d,N){O.then(function(){if(y[E]){d(w(void 0,!0));return}y[x](d,N)},N)}}var S=Object.getPrototypeOf(function(){}),P=Object.setPrototypeOf((t={get stream(){return this[m]},next:function(){var y=this,d=this[g];if(d!==null)return Promise.reject(d);if(this[E])return Promise.resolve(w(void 0,!0));if(this[m].destroyed)return new Promise(function(j,J){ge.nextTick(function(){y[g]?J(y[g]):j(w(void 0,!0))})});var N=this[p],B;if(N)B=new Promise(R(N,this));else{var _=this[m].read();if(_!==null)return Promise.resolve(w(_,!1));B=new Promise(this[x])}return this[p]=B,B}},s(t,Symbol.asyncIterator,function(){return this}),s(t,\"return\",function(){var y=this;return new Promise(function(d,N){y[m].destroy(null,function(B){if(B){N(B);return}d(w(void 0,!0))})})}),t),S);r.exports=function(y){var d,N=Object.create(P,(d={},s(d,m,{value:y,writable:!0}),s(d,n,{value:null,writable:!0}),s(d,c,{value:null,writable:!0}),s(d,g,{value:null,writable:!0}),s(d,E,{value:y._readableState.endEmitted,writable:!0}),s(d,x,{value:function(_,j){var J=N[m].read();J?(N[p]=null,N[n]=null,N[c]=null,_(w(J,!1))):(N[n]=_,N[c]=j)},writable:!0}),d));return N[p]=null,a(y,function(B){if(B&&B.code!==\"ERR_STREAM_PREMATURE_CLOSE\"){var _=N[c];_!==null&&(N[p]=null,N[n]=null,N[c]=null,_(B)),N[g]=B;return}var j=N[n];j!==null&&(N[p]=null,N[n]=null,N[c]=null,j(w(void 0,!0))),N[E]=!0}),y.on(\"readable\",T.bind(null,N)),N}})),ks=ce(((e,r)=>{r.exports=function(){throw new Error(\"Readable.from is not available in the browser\")}})),vi=ce(((e,r)=>{yt(),Xe(),r.exports=j;var t;j.ReadableState=_,$r().EventEmitter;var s=function(F,h){return F.listeners(h).length},o=ti(),u=ur().Buffer,a=(typeof ke<\"u\"?ke:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){};function n(L){return u.from(L)}function c(L){return u.isBuffer(L)||L instanceof a}var g=di(),E;g&&g.debuglog?E=g.debuglog(\"stream\"):E=function(){};var p=xs(),x=fi(),m=pi().getHighWaterMark,w=bt().codes,b=w.ERR_INVALID_ARG_TYPE,T=w.ERR_STREAM_PUSH_AFTER_EOF,R=w.ERR_METHOD_NOT_IMPLEMENTED,S=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,P,O,y;qe()(j,o);var d=x.errorOrDestroy,N=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function B(L,F,h){if(typeof L.prependListener==\"function\")return L.prependListener(F,h);!L._events||!L._events[F]?L.on(F,h):Array.isArray(L._events[F])?L._events[F].unshift(h):L._events[F]=[h,L._events[F]]}function _(L,F,h){t=t||mt(),L=L||{},typeof h!=\"boolean\"&&(h=F instanceof t),this.objectMode=!!L.objectMode,h&&(this.objectMode=this.objectMode||!!L.readableObjectMode),this.highWaterMark=m(this,L,\"readableHighWaterMark\",h),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=L.emitClose!==!1,this.autoDestroy=!!L.autoDestroy,this.destroyed=!1,this.defaultEncoding=L.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,L.encoding&&(P||(P=Mr().StringDecoder),this.decoder=new P(L.encoding),this.encoding=L.encoding)}function j(L){if(t=t||mt(),!(this instanceof j))return new j(L);var F=this instanceof t;this._readableState=new _(L,this,F),this.readable=!0,L&&(typeof L.read==\"function\"&&(this._read=L.read),typeof L.destroy==\"function\"&&(this._destroy=L.destroy)),o.call(this)}Object.defineProperty(j.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(F){this._readableState&&(this._readableState.destroyed=F)}}),j.prototype.destroy=x.destroy,j.prototype._undestroy=x.undestroy,j.prototype._destroy=function(L,F){F(L)},j.prototype.push=function(L,F){var h=this._readableState,K;return h.objectMode?K=!0:typeof L==\"string\"&&(F=F||h.defaultEncoding,F!==h.encoding&&(L=u.from(L,F),F=\"\"),K=!0),J(this,L,F,!1,K)},j.prototype.unshift=function(L){return J(this,L,null,!0,!1)};function J(L,F,h,K,I){E(\"readableAddChunk\",F);var i=L._readableState;if(F===null)i.reading=!1,q(L,i);else{var l;if(I||(l=G(i,F)),l)d(L,l);else if(i.objectMode||F&&F.length>0)if(typeof F!=\"string\"&&!i.objectMode&&Object.getPrototypeOf(F)!==u.prototype&&(F=n(F)),K)i.endEmitted?d(L,new S):C(L,i,F,!0);else if(i.ended)d(L,new T);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!h?(F=i.decoder.write(F),i.objectMode||F.length!==0?C(L,i,F,!1):te(L,i)):C(L,i,F,!1)}else K||(i.reading=!1,te(L,i))}return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function C(L,F,h,K){F.flowing&&F.length===0&&!F.sync?(F.awaitDrain=0,L.emit(\"data\",h)):(F.length+=F.objectMode?1:h.length,K?F.buffer.unshift(h):F.buffer.push(h),F.needReadable&&se(L)),te(L,F)}function G(L,F){var h;return!c(F)&&typeof F!=\"string\"&&F!==void 0&&!L.objectMode&&(h=new b(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],F)),h}j.prototype.isPaused=function(){return this._readableState.flowing===!1},j.prototype.setEncoding=function(L){P||(P=Mr().StringDecoder);var F=new P(L);this._readableState.decoder=F,this._readableState.encoding=this._readableState.decoder.encoding;for(var h=this._readableState.buffer.head,K=\"\";h!==null;)K+=F.write(h.data),h=h.next;return this._readableState.buffer.clear(),K!==\"\"&&this._readableState.buffer.push(K),this._readableState.length=K.length,this};var A=1073741824;function z(L){return L>=A?L=A:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L}function Q(L,F){return L<=0||F.length===0&&F.ended?0:F.objectMode?1:L!==L?F.flowing&&F.length?F.buffer.head.data.length:F.length:(L>F.highWaterMark&&(F.highWaterMark=z(L)),L<=F.length?L:F.ended?F.length:(F.needReadable=!0,0))}j.prototype.read=function(L){E(\"read\",L),L=parseInt(L,10);var F=this._readableState,h=L;if(L!==0&&(F.emittedReadable=!1),L===0&&F.needReadable&&((F.highWaterMark!==0?F.length>=F.highWaterMark:F.length>0)||F.ended))return E(\"read: emitReadable\",F.length,F.ended),F.length===0&&F.ended?H(this):se(this),null;if(L=Q(L,F),L===0&&F.ended)return F.length===0&&H(this),null;var K=F.needReadable;E(\"need readable\",K),(F.length===0||F.length-L<F.highWaterMark)&&(K=!0,E(\"length less than watermark\",K)),F.ended||F.reading?(K=!1,E(\"reading or ended\",K)):K&&(E(\"do read\"),F.reading=!0,F.sync=!0,F.length===0&&(F.needReadable=!0),this._read(F.highWaterMark),F.sync=!1,F.reading||(L=Q(h,F)));var I;return L>0?I=f(L,F):I=null,I===null?(F.needReadable=F.length<=F.highWaterMark,L=0):(F.length-=L,F.awaitDrain=0),F.length===0&&(F.ended||(F.needReadable=!0),h!==L&&F.ended&&H(this)),I!==null&&this.emit(\"data\",I),I};function q(L,F){if(E(\"onEofChunk\"),!F.ended){if(F.decoder){var h=F.decoder.end();h&&h.length&&(F.buffer.push(h),F.length+=F.objectMode?1:h.length)}F.ended=!0,F.sync?se(L):(F.needReadable=!1,F.emittedReadable||(F.emittedReadable=!0,Y(L)))}}function se(L){var F=L._readableState;E(\"emitReadable\",F.needReadable,F.emittedReadable),F.needReadable=!1,F.emittedReadable||(E(\"emitReadable\",F.flowing),F.emittedReadable=!0,ge.nextTick(Y,L))}function Y(L){var F=L._readableState;E(\"emitReadable_\",F.destroyed,F.length,F.ended),!F.destroyed&&(F.length||F.ended)&&(L.emit(\"readable\"),F.emittedReadable=!1),F.needReadable=!F.flowing&&!F.ended&&F.length<=F.highWaterMark,k(L)}function te(L,F){F.readingMore||(F.readingMore=!0,ge.nextTick(V,L,F))}function V(L,F){for(;!F.reading&&!F.ended&&(F.length<F.highWaterMark||F.flowing&&F.length===0);){var h=F.length;if(E(\"maybeReadMore read 0\"),L.read(0),h===F.length)break}F.readingMore=!1}j.prototype._read=function(L){d(this,new R(\"_read()\"))},j.prototype.pipe=function(L,F){var h=this,K=this._readableState;switch(K.pipesCount){case 0:K.pipes=L;break;case 1:K.pipes=[K.pipes,L];break;default:K.pipes.push(L)}K.pipesCount+=1,E(\"pipe count=%d opts=%j\",K.pipesCount,F);var I=(!F||F.end!==!1)&&L!==ge.stdout&&L!==ge.stderr?l:de;K.endEmitted?ge.nextTick(I):h.once(\"end\",I),L.on(\"unpipe\",i);function i(me,ve){E(\"onunpipe\"),me===h&&ve&&ve.hasUnpiped===!1&&(ve.hasUnpiped=!0,$())}function l(){E(\"onend\"),L.end()}var v=D(h);L.on(\"drain\",v);var M=!1;function $(){E(\"cleanup\"),L.removeListener(\"close\",oe),L.removeListener(\"finish\",ae),L.removeListener(\"drain\",v),L.removeListener(\"error\",ie),L.removeListener(\"unpipe\",i),h.removeListener(\"end\",l),h.removeListener(\"end\",de),h.removeListener(\"data\",W),M=!0,K.awaitDrain&&(!L._writableState||L._writableState.needDrain)&&v()}h.on(\"data\",W);function W(me){E(\"ondata\");var ve=L.write(me);E(\"dest.write\",ve),ve===!1&&((K.pipesCount===1&&K.pipes===L||K.pipesCount>1&&ne(K.pipes,L)!==-1)&&!M&&(E(\"false write response, pause\",K.awaitDrain),K.awaitDrain++),h.pause())}function ie(me){E(\"onerror\",me),de(),L.removeListener(\"error\",ie),s(L,\"error\")===0&&d(L,me)}B(L,\"error\",ie);function oe(){L.removeListener(\"finish\",ae),de()}L.once(\"close\",oe);function ae(){E(\"onfinish\"),L.removeListener(\"close\",oe),de()}L.once(\"finish\",ae);function de(){E(\"unpipe\"),h.unpipe(L)}return L.emit(\"pipe\",h),K.flowing||(E(\"pipe resume\"),h.resume()),L};function D(L){return function(){var h=L._readableState;E(\"pipeOnDrain\",h.awaitDrain),h.awaitDrain&&h.awaitDrain--,h.awaitDrain===0&&s(L,\"data\")&&(h.flowing=!0,k(L))}}j.prototype.unpipe=function(L){var F=this._readableState,h={hasUnpiped:!1};if(F.pipesCount===0)return this;if(F.pipesCount===1)return L&&L!==F.pipes?this:(L||(L=F.pipes),F.pipes=null,F.pipesCount=0,F.flowing=!1,L&&L.emit(\"unpipe\",this,h),this);if(!L){var K=F.pipes,I=F.pipesCount;F.pipes=null,F.pipesCount=0,F.flowing=!1;for(var i=0;i<I;i++)K[i].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var l=ne(F.pipes,L);return l===-1?this:(F.pipes.splice(l,1),F.pipesCount-=1,F.pipesCount===1&&(F.pipes=F.pipes[0]),L.emit(\"unpipe\",this,h),this)},j.prototype.on=function(L,F){var h=o.prototype.on.call(this,L,F),K=this._readableState;return L===\"data\"?(K.readableListening=this.listenerCount(\"readable\")>0,K.flowing!==!1&&this.resume()):L===\"readable\"&&!K.endEmitted&&!K.readableListening&&(K.readableListening=K.needReadable=!0,K.flowing=!1,K.emittedReadable=!1,E(\"on readable\",K.length,K.reading),K.length?se(this):K.reading||ge.nextTick(Z,this)),h},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(L,F){var h=o.prototype.removeListener.call(this,L,F);return L===\"readable\"&&ge.nextTick(X,this),h},j.prototype.removeAllListeners=function(L){var F=o.prototype.removeAllListeners.apply(this,arguments);return(L===\"readable\"||L===void 0)&&ge.nextTick(X,this),F};function X(L){var F=L._readableState;F.readableListening=L.listenerCount(\"readable\")>0,F.resumeScheduled&&!F.paused?F.flowing=!0:L.listenerCount(\"data\")>0&&L.resume()}function Z(L){E(\"readable nexttick read 0\"),L.read(0)}j.prototype.resume=function(){var L=this._readableState;return L.flowing||(E(\"resume\"),L.flowing=!L.readableListening,re(this,L)),L.paused=!1,this};function re(L,F){F.resumeScheduled||(F.resumeScheduled=!0,ge.nextTick(pe,L,F))}function pe(L,F){E(\"resume\",F.reading),F.reading||L.read(0),F.resumeScheduled=!1,L.emit(\"resume\"),k(L),F.flowing&&!F.reading&&L.read(0)}j.prototype.pause=function(){return E(\"call pause flowing=%j\",this._readableState.flowing),this._readableState.flowing!==!1&&(E(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this._readableState.paused=!0,this};function k(L){var F=L._readableState;for(E(\"flow\",F.flowing);F.flowing&&L.read()!==null;);}j.prototype.wrap=function(L){var F=this,h=this._readableState,K=!1;L.on(\"end\",function(){if(E(\"wrapped end\"),h.decoder&&!h.ended){var l=h.decoder.end();l&&l.length&&F.push(l)}F.push(null)}),L.on(\"data\",function(l){E(\"wrapped data\"),h.decoder&&(l=h.decoder.write(l)),!(h.objectMode&&l==null)&&(!h.objectMode&&(!l||!l.length)||F.push(l)||(K=!0,L.pause()))});for(var I in L)this[I]===void 0&&typeof L[I]==\"function\"&&(this[I]=(function(v){return function(){return L[v].apply(L,arguments)}})(I));for(var i=0;i<N.length;i++)L.on(N[i],this.emit.bind(this,N[i]));return this._read=function(l){E(\"wrapped _read\",l),K&&(K=!1,L.resume())},this},typeof Symbol==\"function\"&&(j.prototype[Symbol.asyncIterator]=function(){return O===void 0&&(O=As()),O(this)}),Object.defineProperty(j.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(j.prototype,\"readableBuffer\",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(j.prototype,\"readableFlowing\",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(F){this._readableState&&(this._readableState.flowing=F)}}),j._fromList=f,Object.defineProperty(j.prototype,\"readableLength\",{enumerable:!1,get:function(){return this._readableState.length}});function f(L,F){if(F.length===0)return null;var h;return F.objectMode?h=F.buffer.shift():!L||L>=F.length?(F.decoder?h=F.buffer.join(\"\"):F.buffer.length===1?h=F.buffer.first():h=F.buffer.concat(F.length),F.buffer.clear()):h=F.buffer.consume(L,F.decoder),h}function H(L){var F=L._readableState;E(\"endReadable\",F.endEmitted),F.endEmitted||(F.ended=!0,ge.nextTick(U,F,L))}function U(L,F){if(E(\"endReadableNT\",L.endEmitted,L.length),!L.endEmitted&&L.length===0&&(L.endEmitted=!0,F.readable=!1,F.emit(\"end\"),L.autoDestroy)){var h=F._writableState;(!h||h.autoDestroy&&h.finished)&&F.destroy()}}typeof Symbol==\"function\"&&(j.from=function(L,F){return y===void 0&&(y=ks()),y(j,L,F)});function ne(L,F){for(var h=0,K=L.length;h<K;h++)if(L[h]===F)return h;return-1}})),wi=ce(((e,r)=>{r.exports=g;var t=bt().codes,s=t.ERR_METHOD_NOT_IMPLEMENTED,o=t.ERR_MULTIPLE_CALLBACK,u=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=t.ERR_TRANSFORM_WITH_LENGTH_0,n=mt();qe()(g,n);function c(x,m){var w=this._transformState;w.transforming=!1;var b=w.writecb;if(b===null)return this.emit(\"error\",new o);w.writechunk=null,w.writecb=null,m!=null&&this.push(m),b(x);var T=this._readableState;T.reading=!1,(T.needReadable||T.length<T.highWaterMark)&&this._read(T.highWaterMark)}function g(x){if(!(this instanceof g))return new g(x);n.call(this,x),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,x&&(typeof x.transform==\"function\"&&(this._transform=x.transform),typeof x.flush==\"function\"&&(this._flush=x.flush)),this.on(\"prefinish\",E)}function E(){var x=this;typeof this._flush==\"function\"&&!this._readableState.destroyed?this._flush(function(m,w){p(x,m,w)}):p(this,null,null)}g.prototype.push=function(x,m){return this._transformState.needTransform=!1,n.prototype.push.call(this,x,m)},g.prototype._transform=function(x,m,w){w(new s(\"_transform()\"))},g.prototype._write=function(x,m,w){var b=this._transformState;if(b.writecb=w,b.writechunk=x,b.writeencoding=m,!b.transforming){var T=this._readableState;(b.needTransform||T.needReadable||T.length<T.highWaterMark)&&this._read(T.highWaterMark)}},g.prototype._read=function(x){var m=this._transformState;m.writechunk!==null&&!m.transforming?(m.transforming=!0,this._transform(m.writechunk,m.writeencoding,m.afterTransform)):m.needTransform=!0},g.prototype._destroy=function(x,m){n.prototype._destroy.call(this,x,function(w){m(w)})};function p(x,m,w){if(m)return x.emit(\"error\",m);if(w!=null&&x.push(w),x._writableState.length)throw new a;if(x._transformState.transforming)throw new u;return x.push(null)}})),Rs=ce(((e,r)=>{r.exports=s;var t=wi();qe()(s,t);function s(o){if(!(this instanceof s))return new s(o);t.call(this,o)}s.prototype._transform=function(o,u,a){a(null,o)}})),Is=ce(((e,r)=>{var t;function s(w){var b=!1;return function(){b||(b=!0,w.apply(void 0,arguments))}}var o=bt().codes,u=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function n(w){if(w)throw w}function c(w){return w.setHeader&&typeof w.abort==\"function\"}function g(w,b,T,R){R=s(R);var S=!1;w.on(\"close\",function(){S=!0}),t===void 0&&(t=Yr()),t(w,{readable:b,writable:T},function(O){if(O)return R(O);S=!0,R()});var P=!1;return function(O){if(!S&&!P){if(P=!0,c(w))return w.abort();if(typeof w.destroy==\"function\")return w.destroy();R(O||new a(\"pipe\"))}}}function E(w){w()}function p(w,b){return w.pipe(b)}function x(w){return!w.length||typeof w[w.length-1]!=\"function\"?n:w.pop()}function m(){for(var w=arguments.length,b=new Array(w),T=0;T<w;T++)b[T]=arguments[T];var R=x(b);if(Array.isArray(b[0])&&(b=b[0]),b.length<2)throw new u(\"streams\");var S,P=b.map(function(O,y){var d=y<b.length-1;return g(O,d,y>0,function(N){S||(S=N),N&&P.forEach(E),!d&&(P.forEach(E),R(S))})});return b.reduce(p)}r.exports=m})),Zr=ce(((e,r)=>{r.exports=s;var t=$r().EventEmitter;qe()(s,t),s.Readable=vi(),s.Writable=mi(),s.Duplex=mt(),s.Transform=wi(),s.PassThrough=Rs(),s.finished=Yr(),s.pipeline=Is(),s.Stream=s;function s(){t.call(this)}s.prototype.pipe=function(o,u){var a=this;function n(w){o.writable&&o.write(w)===!1&&a.pause&&a.pause()}a.on(\"data\",n);function c(){a.readable&&a.resume&&a.resume()}o.on(\"drain\",c),!o._isStdio&&(!u||u.end!==!1)&&(a.on(\"end\",E),a.on(\"close\",p));var g=!1;function E(){g||(g=!0,o.end())}function p(){g||(g=!0,typeof o.destroy==\"function\"&&o.destroy())}function x(w){if(m(),t.listenerCount(this,\"error\")===0)throw w}a.on(\"error\",x),o.on(\"error\",x);function m(){a.removeListener(\"data\",n),o.removeListener(\"drain\",c),a.removeListener(\"end\",E),a.removeListener(\"close\",p),a.removeListener(\"error\",x),o.removeListener(\"error\",x),a.removeListener(\"end\",m),a.removeListener(\"close\",m),o.removeListener(\"close\",m)}return a.on(\"end\",m),a.on(\"close\",m),o.on(\"close\",m),o.emit(\"pipe\",a),o}})),Cs=ce((e=>{(function(r){r.parser=function(k,f){return new s(k,f)},r.SAXParser=s,r.SAXStream=E,r.createStream=g,r.MAX_BUFFER_LENGTH=65536;var t=[\"comment\",\"sgmlDecl\",\"textNode\",\"tagName\",\"doctype\",\"procInstName\",\"procInstBody\",\"entity\",\"attribName\",\"attribValue\",\"cdata\",\"script\"];r.EVENTS=[\"text\",\"processinginstruction\",\"sgmldeclaration\",\"doctype\",\"comment\",\"opentagstart\",\"attribute\",\"opentag\",\"closetag\",\"opencdata\",\"cdata\",\"closecdata\",\"error\",\"end\",\"ready\",\"script\",\"opennamespace\",\"closenamespace\"];function s(k,f){if(!(this instanceof s))return new s(k,f);var H=this;u(H),H.q=H.c=\"\",H.bufferCheckPosition=r.MAX_BUFFER_LENGTH,H.opt=f||{},H.opt.lowercase=H.opt.lowercase||H.opt.lowercasetags,H.looseCase=H.opt.lowercase?\"toLowerCase\":\"toUpperCase\",H.tags=[],H.closed=H.closedRoot=H.sawRoot=!1,H.tag=H.error=null,H.strict=!!k,H.noscript=!!(k||H.opt.noscript),H.state=_.BEGIN,H.strictEntities=H.opt.strictEntities,H.ENTITIES=H.strictEntities?Object.create(r.XML_ENTITIES):Object.create(r.ENTITIES),H.attribList=[],H.opt.xmlns&&(H.ns=Object.create(b)),H.trackPosition=H.opt.position!==!1,H.trackPosition&&(H.position=H.line=H.column=0),J(H,\"onready\")}Object.create||(Object.create=function(k){function f(){}return f.prototype=k,new f}),Object.keys||(Object.keys=function(k){var f=[];for(var H in k)k.hasOwnProperty(H)&&f.push(H);return f});function o(k){for(var f=Math.max(r.MAX_BUFFER_LENGTH,10),H=0,U=0,ne=t.length;U<ne;U++){var L=k[t[U]].length;if(L>f)switch(t[U]){case\"textNode\":G(k);break;case\"cdata\":C(k,\"oncdata\",k.cdata),k.cdata=\"\";break;case\"script\":C(k,\"onscript\",k.script),k.script=\"\";break;default:z(k,\"Max buffer length exceeded: \"+t[U])}H=Math.max(H,L)}k.bufferCheckPosition=r.MAX_BUFFER_LENGTH-H+k.position}function u(k){for(var f=0,H=t.length;f<H;f++)k[t[f]]=\"\"}function a(k){G(k),k.cdata!==\"\"&&(C(k,\"oncdata\",k.cdata),k.cdata=\"\"),k.script!==\"\"&&(C(k,\"onscript\",k.script),k.script=\"\")}s.prototype={end:function(){Q(this)},write:pe,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var n;try{n=Zr().Stream}catch{n=function(){}}var c=r.EVENTS.filter(function(k){return k!==\"error\"&&k!==\"end\"});function g(k,f){return new E(k,f)}function E(k,f){if(!(this instanceof E))return new E(k,f);n.apply(this),this._parser=new s(k,f),this.writable=!0,this.readable=!0;var H=this;this._parser.onend=function(){H.emit(\"end\")},this._parser.onerror=function(U){H.emit(\"error\",U),H._parser.error=null},this._decoder=null,c.forEach(function(U){Object.defineProperty(H,\"on\"+U,{get:function(){return H._parser[\"on\"+U]},set:function(ne){if(!ne)return H.removeAllListeners(U),H._parser[\"on\"+U]=ne,ne;H.on(U,ne)},enumerable:!0,configurable:!1})})}E.prototype=Object.create(n.prototype,{constructor:{value:E}}),E.prototype.write=function(k){if(typeof Buffer==\"function\"&&typeof Buffer.isBuffer==\"function\"&&Buffer.isBuffer(k)){if(!this._decoder){var f=Mr().StringDecoder;this._decoder=new f(\"utf8\")}k=this._decoder.write(k)}return this._parser.write(k.toString()),this.emit(\"data\",k),!0},E.prototype.end=function(k){return k&&k.length&&this.write(k),this._parser.end(),!0},E.prototype.on=function(k,f){var H=this;return!H._parser[\"on\"+k]&&c.indexOf(k)!==-1&&(H._parser[\"on\"+k]=function(){var U=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);U.splice(0,0,k),H.emit.apply(H,U)}),n.prototype.on.call(H,k,f)};var p=\"[CDATA[\",x=\"DOCTYPE\",m=\"http://www.w3.org/XML/1998/namespace\",w=\"http://www.w3.org/2000/xmlns/\",b={xml:m,xmlns:w},T=/[:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]/,R=/[:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u00B7\\u0300-\\u036F\\u203F-\\u2040.\\d-]/,S=/[#:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]/,P=/[#:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u00B7\\u0300-\\u036F\\u203F-\\u2040.\\d-]/;function O(k){return k===\" \"||k===`\n`||k===\"\\r\"||k===\"\t\"}function y(k){return k==='\"'||k===\"'\"}function d(k){return k===\">\"||O(k)}function N(k,f){return k.test(f)}function B(k,f){return!N(k,f)}var _=0;r.STATE={BEGIN:_++,BEGIN_WHITESPACE:_++,TEXT:_++,TEXT_ENTITY:_++,OPEN_WAKA:_++,SGML_DECL:_++,SGML_DECL_QUOTED:_++,DOCTYPE:_++,DOCTYPE_QUOTED:_++,DOCTYPE_DTD:_++,DOCTYPE_DTD_QUOTED:_++,COMMENT_STARTING:_++,COMMENT:_++,COMMENT_ENDING:_++,COMMENT_ENDED:_++,CDATA:_++,CDATA_ENDING:_++,CDATA_ENDING_2:_++,PROC_INST:_++,PROC_INST_BODY:_++,PROC_INST_ENDING:_++,OPEN_TAG:_++,OPEN_TAG_SLASH:_++,ATTRIB:_++,ATTRIB_NAME:_++,ATTRIB_NAME_SAW_WHITE:_++,ATTRIB_VALUE:_++,ATTRIB_VALUE_QUOTED:_++,ATTRIB_VALUE_CLOSED:_++,ATTRIB_VALUE_UNQUOTED:_++,ATTRIB_VALUE_ENTITY_Q:_++,ATTRIB_VALUE_ENTITY_U:_++,CLOSE_TAG:_++,CLOSE_TAG_SAW_WHITE:_++,SCRIPT:_++,SCRIPT_ENDING:_++},r.XML_ENTITIES={amp:\"&\",gt:\">\",lt:\"<\",quot:'\"',apos:\"'\"},r.ENTITIES={amp:\"&\",gt:\">\",lt:\"<\",quot:'\"',apos:\"'\",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(r.ENTITIES).forEach(function(k){var f=r.ENTITIES[k],H=typeof f==\"number\"?String.fromCharCode(f):f;r.ENTITIES[k]=H});for(var j in r.STATE)r.STATE[r.STATE[j]]=j;_=r.STATE;function J(k,f,H){k[f]&&k[f](H)}function C(k,f,H){k.textNode&&G(k),J(k,f,H)}function G(k){k.textNode=A(k.opt,k.textNode),k.textNode&&J(k,\"ontext\",k.textNode),k.textNode=\"\"}function A(k,f){return k.trim&&(f=f.trim()),k.normalize&&(f=f.replace(/\\s+/g,\" \")),f}function z(k,f){return G(k),k.trackPosition&&(f+=`\nLine: `+k.line+`\nColumn: `+k.column+`\nChar: `+k.c),f=new Error(f),k.error=f,J(k,\"onerror\",f),k}function Q(k){return k.sawRoot&&!k.closedRoot&&q(k,\"Unclosed root tag\"),k.state!==_.BEGIN&&k.state!==_.BEGIN_WHITESPACE&&k.state!==_.TEXT&&z(k,\"Unexpected end\"),G(k),k.c=\"\",k.closed=!0,J(k,\"onend\"),s.call(k,k.strict,k.opt),k}function q(k,f){if(typeof k!=\"object\"||!(k instanceof s))throw new Error(\"bad call to strictFail\");k.strict&&z(k,f)}function se(k){k.strict||(k.tagName=k.tagName[k.looseCase]());var f=k.tags[k.tags.length-1]||k,H=k.tag={name:k.tagName,attributes:{}};k.opt.xmlns&&(H.ns=f.ns),k.attribList.length=0,C(k,\"onopentagstart\",H)}function Y(k,f){var H=k.indexOf(\":\")<0?[\"\",k]:k.split(\":\"),U=H[0],ne=H[1];return f&&k===\"xmlns\"&&(U=\"xmlns\",ne=\"\"),{prefix:U,local:ne}}function te(k){if(k.strict||(k.attribName=k.attribName[k.looseCase]()),k.attribList.indexOf(k.attribName)!==-1||k.tag.attributes.hasOwnProperty(k.attribName)){k.attribName=k.attribValue=\"\";return}if(k.opt.xmlns){var f=Y(k.attribName,!0),H=f.prefix,U=f.local;if(H===\"xmlns\")if(U===\"xml\"&&k.attribValue!==m)q(k,\"xml: prefix must be bound to \"+m+`\nActual: `+k.attribValue);else if(U===\"xmlns\"&&k.attribValue!==w)q(k,\"xmlns: prefix must be bound to \"+w+`\nActual: `+k.attribValue);else{var ne=k.tag,L=k.tags[k.tags.length-1]||k;ne.ns===L.ns&&(ne.ns=Object.create(L.ns)),ne.ns[U]=k.attribValue}k.attribList.push([k.attribName,k.attribValue])}else k.tag.attributes[k.attribName]=k.attribValue,C(k,\"onattribute\",{name:k.attribName,value:k.attribValue});k.attribName=k.attribValue=\"\"}function V(k,f){if(k.opt.xmlns){var H=k.tag,U=Y(k.tagName);H.prefix=U.prefix,H.local=U.local,H.uri=H.ns[U.prefix]||\"\",H.prefix&&!H.uri&&(q(k,\"Unbound namespace prefix: \"+JSON.stringify(k.tagName)),H.uri=U.prefix);var ne=k.tags[k.tags.length-1]||k;H.ns&&ne.ns!==H.ns&&Object.keys(H.ns).forEach(function(W){C(k,\"onopennamespace\",{prefix:W,uri:H.ns[W]})});for(var L=0,F=k.attribList.length;L<F;L++){var h=k.attribList[L],K=h[0],I=h[1],i=Y(K,!0),l=i.prefix,v=i.local,M=l===\"\"?\"\":H.ns[l]||\"\",$={name:K,value:I,prefix:l,local:v,uri:M};l&&l!==\"xmlns\"&&!M&&(q(k,\"Unbound namespace prefix: \"+JSON.stringify(l)),$.uri=l),k.tag.attributes[K]=$,C(k,\"onattribute\",$)}k.attribList.length=0}k.tag.isSelfClosing=!!f,k.sawRoot=!0,k.tags.push(k.tag),C(k,\"onopentag\",k.tag),f||(!k.noscript&&k.tagName.toLowerCase()===\"script\"?k.state=_.SCRIPT:k.state=_.TEXT,k.tag=null,k.tagName=\"\"),k.attribName=k.attribValue=\"\",k.attribList.length=0}function D(k){if(!k.tagName){q(k,\"Weird empty close tag.\"),k.textNode+=\"</>\",k.state=_.TEXT;return}if(k.script){if(k.tagName!==\"script\"){k.script+=\"</\"+k.tagName+\">\",k.tagName=\"\",k.state=_.SCRIPT;return}C(k,\"onscript\",k.script),k.script=\"\"}var f=k.tags.length,H=k.tagName;k.strict||(H=H[k.looseCase]());for(var U=H;f--&&k.tags[f].name!==U;)q(k,\"Unexpected close tag\");if(f<0){q(k,\"Unmatched closing tag: \"+k.tagName),k.textNode+=\"</\"+k.tagName+\">\",k.state=_.TEXT;return}k.tagName=H;for(var ne=k.tags.length;ne-- >f;){var L=k.tag=k.tags.pop();k.tagName=k.tag.name,C(k,\"onclosetag\",k.tagName);var F={};for(var h in L.ns)F[h]=L.ns[h];var K=k.tags[k.tags.length-1]||k;k.opt.xmlns&&L.ns!==K.ns&&Object.keys(L.ns).forEach(function(I){var i=L.ns[I];C(k,\"onclosenamespace\",{prefix:I,uri:i})})}f===0&&(k.closedRoot=!0),k.tagName=k.attribValue=k.attribName=\"\",k.attribList.length=0,k.state=_.TEXT}function X(k){var f=k.entity,H=f.toLowerCase(),U,ne=\"\";return k.ENTITIES[f]?k.ENTITIES[f]:k.ENTITIES[H]?k.ENTITIES[H]:(f=H,f.charAt(0)===\"#\"&&(f.charAt(1)===\"x\"?(f=f.slice(2),U=parseInt(f,16),ne=U.toString(16)):(f=f.slice(1),U=parseInt(f,10),ne=U.toString(10))),f=f.replace(/^0+/,\"\"),isNaN(U)||ne.toLowerCase()!==f?(q(k,\"Invalid character entity\"),\"&\"+k.entity+\";\"):String.fromCodePoint(U))}function Z(k,f){f===\"<\"?(k.state=_.OPEN_WAKA,k.startTagPosition=k.position):O(f)||(q(k,\"Non-whitespace before first tag.\"),k.textNode=f,k.state=_.TEXT)}function re(k,f){var H=\"\";return f<k.length&&(H=k.charAt(f)),H}function pe(k){var f=this;if(this.error)throw this.error;if(f.closed)return z(f,\"Cannot write after close. Assign an onready handler.\");if(k===null)return Q(f);typeof k==\"object\"&&(k=k.toString());for(var H=0,U=\"\";U=re(k,H++),f.c=U,!!U;)switch(f.trackPosition&&(f.position++,U===`\n`?(f.line++,f.column=0):f.column++),f.state){case _.BEGIN:if(f.state=_.BEGIN_WHITESPACE,U===\"\\uFEFF\")continue;Z(f,U);continue;case _.BEGIN_WHITESPACE:Z(f,U);continue;case _.TEXT:if(f.sawRoot&&!f.closedRoot){for(var ne=H-1;U&&U!==\"<\"&&U!==\"&\";)U=re(k,H++),U&&f.trackPosition&&(f.position++,U===`\n`?(f.line++,f.column=0):f.column++);f.textNode+=k.substring(ne,H-1)}U===\"<\"&&!(f.sawRoot&&f.closedRoot&&!f.strict)?(f.state=_.OPEN_WAKA,f.startTagPosition=f.position):(!O(U)&&(!f.sawRoot||f.closedRoot)&&q(f,\"Text data outside of root node.\"),U===\"&\"?f.state=_.TEXT_ENTITY:f.textNode+=U);continue;case _.SCRIPT:U===\"<\"?f.state=_.SCRIPT_ENDING:f.script+=U;continue;case _.SCRIPT_ENDING:U===\"/\"?f.state=_.CLOSE_TAG:(f.script+=\"<\"+U,f.state=_.SCRIPT);continue;case _.OPEN_WAKA:if(U===\"!\")f.state=_.SGML_DECL,f.sgmlDecl=\"\";else if(!O(U))if(N(T,U))f.state=_.OPEN_TAG,f.tagName=U;else if(U===\"/\")f.state=_.CLOSE_TAG,f.tagName=\"\";else if(U===\"?\")f.state=_.PROC_INST,f.procInstName=f.procInstBody=\"\";else{if(q(f,\"Unencoded <\"),f.startTagPosition+1<f.position){var L=f.position-f.startTagPosition;U=new Array(L).join(\" \")+U}f.textNode+=\"<\"+U,f.state=_.TEXT}continue;case _.SGML_DECL:(f.sgmlDecl+U).toUpperCase()===p?(C(f,\"onopencdata\"),f.state=_.CDATA,f.sgmlDecl=\"\",f.cdata=\"\"):f.sgmlDecl+U===\"--\"?(f.state=_.COMMENT,f.comment=\"\",f.sgmlDecl=\"\"):(f.sgmlDecl+U).toUpperCase()===x?(f.state=_.DOCTYPE,(f.doctype||f.sawRoot)&&q(f,\"Inappropriately located doctype declaration\"),f.doctype=\"\",f.sgmlDecl=\"\"):U===\">\"?(C(f,\"onsgmldeclaration\",f.sgmlDecl),f.sgmlDecl=\"\",f.state=_.TEXT):(y(U)&&(f.state=_.SGML_DECL_QUOTED),f.sgmlDecl+=U);continue;case _.SGML_DECL_QUOTED:U===f.q&&(f.state=_.SGML_DECL,f.q=\"\"),f.sgmlDecl+=U;continue;case _.DOCTYPE:U===\">\"?(f.state=_.TEXT,C(f,\"ondoctype\",f.doctype),f.doctype=!0):(f.doctype+=U,U===\"[\"?f.state=_.DOCTYPE_DTD:y(U)&&(f.state=_.DOCTYPE_QUOTED,f.q=U));continue;case _.DOCTYPE_QUOTED:f.doctype+=U,U===f.q&&(f.q=\"\",f.state=_.DOCTYPE);continue;case _.DOCTYPE_DTD:f.doctype+=U,U===\"]\"?f.state=_.DOCTYPE:y(U)&&(f.state=_.DOCTYPE_DTD_QUOTED,f.q=U);continue;case _.DOCTYPE_DTD_QUOTED:f.doctype+=U,U===f.q&&(f.state=_.DOCTYPE_DTD,f.q=\"\");continue;case _.COMMENT:U===\"-\"?f.state=_.COMMENT_ENDING:f.comment+=U;continue;case _.COMMENT_ENDING:U===\"-\"?(f.state=_.COMMENT_ENDED,f.comment=A(f.opt,f.comment),f.comment&&C(f,\"oncomment\",f.comment),f.comment=\"\"):(f.comment+=\"-\"+U,f.state=_.COMMENT);continue;case _.COMMENT_ENDED:U!==\">\"?(q(f,\"Malformed comment\"),f.comment+=\"--\"+U,f.state=_.COMMENT):f.state=_.TEXT;continue;case _.CDATA:U===\"]\"?f.state=_.CDATA_ENDING:f.cdata+=U;continue;case _.CDATA_ENDING:U===\"]\"?f.state=_.CDATA_ENDING_2:(f.cdata+=\"]\"+U,f.state=_.CDATA);continue;case _.CDATA_ENDING_2:U===\">\"?(f.cdata&&C(f,\"oncdata\",f.cdata),C(f,\"onclosecdata\"),f.cdata=\"\",f.state=_.TEXT):U===\"]\"?f.cdata+=\"]\":(f.cdata+=\"]]\"+U,f.state=_.CDATA);continue;case _.PROC_INST:U===\"?\"?f.state=_.PROC_INST_ENDING:O(U)?f.state=_.PROC_INST_BODY:f.procInstName+=U;continue;case _.PROC_INST_BODY:if(!f.procInstBody&&O(U))continue;U===\"?\"?f.state=_.PROC_INST_ENDING:f.procInstBody+=U;continue;case _.PROC_INST_ENDING:U===\">\"?(C(f,\"onprocessinginstruction\",{name:f.procInstName,body:f.procInstBody}),f.procInstName=f.procInstBody=\"\",f.state=_.TEXT):(f.procInstBody+=\"?\"+U,f.state=_.PROC_INST_BODY);continue;case _.OPEN_TAG:N(R,U)?f.tagName+=U:(se(f),U===\">\"?V(f):U===\"/\"?f.state=_.OPEN_TAG_SLASH:(O(U)||q(f,\"Invalid character in tag name\"),f.state=_.ATTRIB));continue;case _.OPEN_TAG_SLASH:U===\">\"?(V(f,!0),D(f)):(q(f,\"Forward-slash in opening tag not followed by >\"),f.state=_.ATTRIB);continue;case _.ATTRIB:if(O(U))continue;U===\">\"?V(f):U===\"/\"?f.state=_.OPEN_TAG_SLASH:N(T,U)?(f.attribName=U,f.attribValue=\"\",f.state=_.ATTRIB_NAME):q(f,\"Invalid attribute name\");continue;case _.ATTRIB_NAME:U===\"=\"?f.state=_.ATTRIB_VALUE:U===\">\"?(q(f,\"Attribute without value\"),f.attribValue=f.attribName,te(f),V(f)):O(U)?f.state=_.ATTRIB_NAME_SAW_WHITE:N(R,U)?f.attribName+=U:q(f,\"Invalid attribute name\");continue;case _.ATTRIB_NAME_SAW_WHITE:if(U===\"=\")f.state=_.ATTRIB_VALUE;else{if(O(U))continue;q(f,\"Attribute without value\"),f.tag.attributes[f.attribName]=\"\",f.attribValue=\"\",C(f,\"onattribute\",{name:f.attribName,value:\"\"}),f.attribName=\"\",U===\">\"?V(f):N(T,U)?(f.attribName=U,f.state=_.ATTRIB_NAME):(q(f,\"Invalid attribute name\"),f.state=_.ATTRIB)}continue;case _.ATTRIB_VALUE:if(O(U))continue;y(U)?(f.q=U,f.state=_.ATTRIB_VALUE_QUOTED):(q(f,\"Unquoted attribute value\"),f.state=_.ATTRIB_VALUE_UNQUOTED,f.attribValue=U);continue;case _.ATTRIB_VALUE_QUOTED:if(U!==f.q){U===\"&\"?f.state=_.ATTRIB_VALUE_ENTITY_Q:f.attribValue+=U;continue}te(f),f.q=\"\",f.state=_.ATTRIB_VALUE_CLOSED;continue;case _.ATTRIB_VALUE_CLOSED:O(U)?f.state=_.ATTRIB:U===\">\"?V(f):U===\"/\"?f.state=_.OPEN_TAG_SLASH:N(T,U)?(q(f,\"No whitespace between attributes\"),f.attribName=U,f.attribValue=\"\",f.state=_.ATTRIB_NAME):q(f,\"Invalid attribute name\");continue;case _.ATTRIB_VALUE_UNQUOTED:if(!d(U)){U===\"&\"?f.state=_.ATTRIB_VALUE_ENTITY_U:f.attribValue+=U;continue}te(f),U===\">\"?V(f):f.state=_.ATTRIB;continue;case _.CLOSE_TAG:if(f.tagName)U===\">\"?D(f):N(R,U)?f.tagName+=U:f.script?(f.script+=\"</\"+f.tagName,f.tagName=\"\",f.state=_.SCRIPT):(O(U)||q(f,\"Invalid tagname in closing tag\"),f.state=_.CLOSE_TAG_SAW_WHITE);else{if(O(U))continue;B(T,U)?f.script?(f.script+=\"</\"+U,f.state=_.SCRIPT):q(f,\"Invalid tagname in closing tag.\"):f.tagName=U}continue;case _.CLOSE_TAG_SAW_WHITE:if(O(U))continue;U===\">\"?D(f):q(f,\"Invalid characters in closing tag\");continue;case _.TEXT_ENTITY:case _.ATTRIB_VALUE_ENTITY_Q:case _.ATTRIB_VALUE_ENTITY_U:var F,h;switch(f.state){case _.TEXT_ENTITY:F=_.TEXT,h=\"textNode\";break;case _.ATTRIB_VALUE_ENTITY_Q:F=_.ATTRIB_VALUE_QUOTED,h=\"attribValue\";break;case _.ATTRIB_VALUE_ENTITY_U:F=_.ATTRIB_VALUE_UNQUOTED,h=\"attribValue\"}U===\";\"?(f[h]+=X(f),f.entity=\"\",f.state=F):N(f.entity.length?P:S,U)?f.entity+=U:(q(f,\"Invalid character in entity name\"),f[h]+=\"&\"+f.entity+U,f.entity=\"\",f.state=F);continue;default:throw new Error(f,\"Unknown state: \"+f.state)}return f.position>=f.bufferCheckPosition&&o(f),f}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||(function(){var k=String.fromCharCode,f=Math.floor,H=function(){var U=16384,ne=[],L,F,h=-1,K=arguments.length;if(!K)return\"\";for(var I=\"\";++h<K;){var i=Number(arguments[h]);if(!isFinite(i)||i<0||i>1114111||f(i)!==i)throw RangeError(\"Invalid code point: \"+i);i<=65535?ne.push(i):(i-=65536,L=(i>>10)+55296,F=i%1024+56320,ne.push(L,F)),(h+1===K||ne.length>U)&&(I+=k.apply(null,ne),ne.length=0)}return I};Object.defineProperty?Object.defineProperty(String,\"fromCodePoint\",{value:H,configurable:!0,writable:!0}):String.fromCodePoint=H})()})(typeof e>\"u\"?e.sax={}:e)})),Jr=ce(((e,r)=>{r.exports={isArray:function(t){return Array.isArray?Array.isArray(t):Object.prototype.toString.call(t)===\"[object Array]\"}}})),Qr=ce(((e,r)=>{var t=Jr().isArray;r.exports={copyOptions:function(s){var o,u={};for(o in s)s.hasOwnProperty(o)&&(u[o]=s[o]);return u},ensureFlagExists:function(s,o){(!(s in o)||typeof o[s]!=\"boolean\")&&(o[s]=!1)},ensureSpacesExists:function(s){(!(\"spaces\"in s)||typeof s.spaces!=\"number\"&&typeof s.spaces!=\"string\")&&(s.spaces=0)},ensureAlwaysArrayExists:function(s){(!(\"alwaysArray\"in s)||typeof s.alwaysArray!=\"boolean\"&&!t(s.alwaysArray))&&(s.alwaysArray=!1)},ensureKeyExists:function(s,o){(!(s+\"Key\"in o)||typeof o[s+\"Key\"]!=\"string\")&&(o[s+\"Key\"]=o.compact?\"_\"+s:s)},checkFnExists:function(s,o){return s+\"Fn\"in o}}})),gi=ce(((e,r)=>{var t=Cs(),s={on:function(){},parse:function(){}},o=Qr(),u=Jr().isArray,a,n=!0,c;function g(y){return a=o.copyOptions(y),o.ensureFlagExists(\"ignoreDeclaration\",a),o.ensureFlagExists(\"ignoreInstruction\",a),o.ensureFlagExists(\"ignoreAttributes\",a),o.ensureFlagExists(\"ignoreText\",a),o.ensureFlagExists(\"ignoreComment\",a),o.ensureFlagExists(\"ignoreCdata\",a),o.ensureFlagExists(\"ignoreDoctype\",a),o.ensureFlagExists(\"compact\",a),o.ensureFlagExists(\"alwaysChildren\",a),o.ensureFlagExists(\"addParent\",a),o.ensureFlagExists(\"trim\",a),o.ensureFlagExists(\"nativeType\",a),o.ensureFlagExists(\"nativeTypeAttributes\",a),o.ensureFlagExists(\"sanitize\",a),o.ensureFlagExists(\"instructionHasAttributes\",a),o.ensureFlagExists(\"captureSpacesBetweenElements\",a),o.ensureAlwaysArrayExists(a),o.ensureKeyExists(\"declaration\",a),o.ensureKeyExists(\"instruction\",a),o.ensureKeyExists(\"attributes\",a),o.ensureKeyExists(\"text\",a),o.ensureKeyExists(\"comment\",a),o.ensureKeyExists(\"cdata\",a),o.ensureKeyExists(\"doctype\",a),o.ensureKeyExists(\"type\",a),o.ensureKeyExists(\"name\",a),o.ensureKeyExists(\"elements\",a),o.ensureKeyExists(\"parent\",a),o.checkFnExists(\"doctype\",a),o.checkFnExists(\"instruction\",a),o.checkFnExists(\"cdata\",a),o.checkFnExists(\"comment\",a),o.checkFnExists(\"text\",a),o.checkFnExists(\"instructionName\",a),o.checkFnExists(\"elementName\",a),o.checkFnExists(\"attributeName\",a),o.checkFnExists(\"attributeValue\",a),o.checkFnExists(\"attributes\",a),a}function E(y){var d=Number(y);if(!isNaN(d))return d;var N=y.toLowerCase();return N===\"true\"?!0:N===\"false\"?!1:y}function p(y,d){var N;if(a.compact){if(!c[a[y+\"Key\"]]&&(u(a.alwaysArray)?a.alwaysArray.indexOf(a[y+\"Key\"])!==-1:a.alwaysArray)&&(c[a[y+\"Key\"]]=[]),c[a[y+\"Key\"]]&&!u(c[a[y+\"Key\"]])&&(c[a[y+\"Key\"]]=[c[a[y+\"Key\"]]]),y+\"Fn\"in a&&typeof d==\"string\"&&(d=a[y+\"Fn\"](d,c)),y===\"instruction\"&&(\"instructionFn\"in a||\"instructionNameFn\"in a)){for(N in d)if(d.hasOwnProperty(N))if(\"instructionFn\"in a)d[N]=a.instructionFn(d[N],N,c);else{var B=d[N];delete d[N],d[a.instructionNameFn(N,B,c)]=B}}u(c[a[y+\"Key\"]])?c[a[y+\"Key\"]].push(d):c[a[y+\"Key\"]]=d}else{c[a.elementsKey]||(c[a.elementsKey]=[]);var _={};if(_[a.typeKey]=y,y===\"instruction\"){for(N in d)if(d.hasOwnProperty(N))break;_[a.nameKey]=\"instructionNameFn\"in a?a.instructionNameFn(N,d,c):N,a.instructionHasAttributes?(_[a.attributesKey]=d[N][a.attributesKey],\"instructionFn\"in a&&(_[a.attributesKey]=a.instructionFn(_[a.attributesKey],N,c))):(\"instructionFn\"in a&&(d[N]=a.instructionFn(d[N],N,c)),_[a.instructionKey]=d[N])}else y+\"Fn\"in a&&(d=a[y+\"Fn\"](d,c)),_[a[y+\"Key\"]]=d;a.addParent&&(_[a.parentKey]=c),c[a.elementsKey].push(_)}}function x(y){if(\"attributesFn\"in a&&y&&(y=a.attributesFn(y,c)),(a.trim||\"attributeValueFn\"in a||\"attributeNameFn\"in a||a.nativeTypeAttributes)&&y){var d;for(d in y)if(y.hasOwnProperty(d)&&(a.trim&&(y[d]=y[d].trim()),a.nativeTypeAttributes&&(y[d]=E(y[d])),\"attributeValueFn\"in a&&(y[d]=a.attributeValueFn(y[d],d,c)),\"attributeNameFn\"in a)){var N=y[d];delete y[d],y[a.attributeNameFn(d,y[d],c)]=N}}return y}function m(y){var d={};if(y.body&&(y.name.toLowerCase()===\"xml\"||a.instructionHasAttributes)){for(var N=/([\\w:-]+)\\s*=\\s*(?:\"([^\"]*)\"|'([^']*)'|(\\w+))\\s*/g,B;(B=N.exec(y.body))!==null;)d[B[1]]=B[2]||B[3]||B[4];d=x(d)}if(y.name.toLowerCase()===\"xml\"){if(a.ignoreDeclaration)return;c[a.declarationKey]={},Object.keys(d).length&&(c[a.declarationKey][a.attributesKey]=d),a.addParent&&(c[a.declarationKey][a.parentKey]=c)}else{if(a.ignoreInstruction)return;a.trim&&(y.body=y.body.trim());var _={};a.instructionHasAttributes&&Object.keys(d).length?(_[y.name]={},_[y.name][a.attributesKey]=d):_[y.name]=y.body,p(\"instruction\",_)}}function w(y,d){var N;if(typeof y==\"object\"&&(d=y.attributes,y=y.name),d=x(d),\"elementNameFn\"in a&&(y=a.elementNameFn(y,c)),a.compact){if(N={},!a.ignoreAttributes&&d&&Object.keys(d).length){N[a.attributesKey]={};var B;for(B in d)d.hasOwnProperty(B)&&(N[a.attributesKey][B]=d[B])}!(y in c)&&(u(a.alwaysArray)?a.alwaysArray.indexOf(y)!==-1:a.alwaysArray)&&(c[y]=[]),c[y]&&!u(c[y])&&(c[y]=[c[y]]),u(c[y])?c[y].push(N):c[y]=N}else c[a.elementsKey]||(c[a.elementsKey]=[]),N={},N[a.typeKey]=\"element\",N[a.nameKey]=y,!a.ignoreAttributes&&d&&Object.keys(d).length&&(N[a.attributesKey]=d),a.alwaysChildren&&(N[a.elementsKey]=[]),c[a.elementsKey].push(N);N[a.parentKey]=c,c=N}function b(y){a.ignoreText||!y.trim()&&!a.captureSpacesBetweenElements||(a.trim&&(y=y.trim()),a.nativeType&&(y=E(y)),a.sanitize&&(y=y.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\")),p(\"text\",y))}function T(y){a.ignoreComment||(a.trim&&(y=y.trim()),p(\"comment\",y))}function R(y){var d=c[a.parentKey];a.addParent||delete c[a.parentKey],c=d}function S(y){a.ignoreCdata||(a.trim&&(y=y.trim()),p(\"cdata\",y))}function P(y){a.ignoreDoctype||(y=y.replace(/^ /,\"\"),a.trim&&(y=y.trim()),p(\"doctype\",y))}function O(y){y.note=y}r.exports=function(y,d){var N=n?t.parser(!0,{}):N=new s.Parser(\"UTF-8\"),B={};if(c=B,a=g(d),n?(N.opt={strictEntities:!0},N.onopentag=w,N.ontext=b,N.oncomment=T,N.onclosetag=R,N.onerror=O,N.oncdata=S,N.ondoctype=P,N.onprocessinginstruction=m):(N.on(\"startElement\",w),N.on(\"text\",b),N.on(\"comment\",T),N.on(\"endElement\",R),N.on(\"error\",O)),n)N.write(y).close();else if(!N.parse(y))throw new Error(\"XML parsing error: \"+N.getError());if(B[a.elementsKey]){var _=B[a.elementsKey];delete B[a.elementsKey],B[a.elementsKey]=_,delete B.text}return B}})),Ns=ce(((e,r)=>{var t=Qr(),s=gi();function o(u){var a=t.copyOptions(u);return t.ensureSpacesExists(a),a}r.exports=function(u,a){var n=o(a),c=s(u,n),g,E=\"compact\"in n&&n.compact?\"_parent\":\"parent\";return\"addParent\"in n&&n.addParent?g=JSON.stringify(c,function(p,x){return p===E?\"_\":x},n.spaces):g=JSON.stringify(c,null,n.spaces),g.replace(/\\u2028/g,\"\\\\u2028\").replace(/\\u2029/g,\"\\\\u2029\")}})),yi=ce(((e,r)=>{var t=Qr(),s=Jr().isArray,o,u;function a(y){var d=t.copyOptions(y);return t.ensureFlagExists(\"ignoreDeclaration\",d),t.ensureFlagExists(\"ignoreInstruction\",d),t.ensureFlagExists(\"ignoreAttributes\",d),t.ensureFlagExists(\"ignoreText\",d),t.ensureFlagExists(\"ignoreComment\",d),t.ensureFlagExists(\"ignoreCdata\",d),t.ensureFlagExists(\"ignoreDoctype\",d),t.ensureFlagExists(\"compact\",d),t.ensureFlagExists(\"indentText\",d),t.ensureFlagExists(\"indentCdata\",d),t.ensureFlagExists(\"indentAttributes\",d),t.ensureFlagExists(\"indentInstruction\",d),t.ensureFlagExists(\"fullTagEmptyElement\",d),t.ensureFlagExists(\"noQuotesForNativeAttributes\",d),t.ensureSpacesExists(d),typeof d.spaces==\"number\"&&(d.spaces=Array(d.spaces+1).join(\" \")),t.ensureKeyExists(\"declaration\",d),t.ensureKeyExists(\"instruction\",d),t.ensureKeyExists(\"attributes\",d),t.ensureKeyExists(\"text\",d),t.ensureKeyExists(\"comment\",d),t.ensureKeyExists(\"cdata\",d),t.ensureKeyExists(\"doctype\",d),t.ensureKeyExists(\"type\",d),t.ensureKeyExists(\"name\",d),t.ensureKeyExists(\"elements\",d),t.checkFnExists(\"doctype\",d),t.checkFnExists(\"instruction\",d),t.checkFnExists(\"cdata\",d),t.checkFnExists(\"comment\",d),t.checkFnExists(\"text\",d),t.checkFnExists(\"instructionName\",d),t.checkFnExists(\"elementName\",d),t.checkFnExists(\"attributeName\",d),t.checkFnExists(\"attributeValue\",d),t.checkFnExists(\"attributes\",d),t.checkFnExists(\"fullTagEmptyElement\",d),d}function n(y,d,N){return(!N&&y.spaces?`\n`:\"\")+Array(d+1).join(y.spaces)}function c(y,d,N){if(d.ignoreAttributes)return\"\";\"attributesFn\"in d&&(y=d.attributesFn(y,u,o));var B,_,j,J,C=[];for(B in y)y.hasOwnProperty(B)&&y[B]!==null&&y[B]!==void 0&&(J=d.noQuotesForNativeAttributes&&typeof y[B]!=\"string\"?\"\":'\"',_=\"\"+y[B],_=_.replace(/\"/g,\"&quot;\"),j=\"attributeNameFn\"in d?d.attributeNameFn(B,_,u,o):B,C.push(d.spaces&&d.indentAttributes?n(d,N+1,!1):\" \"),C.push(j+\"=\"+J+(\"attributeValueFn\"in d?d.attributeValueFn(_,B,u,o):_)+J));return y&&Object.keys(y).length&&d.spaces&&d.indentAttributes&&C.push(n(d,N,!1)),C.join(\"\")}function g(y,d,N){return o=y,u=\"xml\",d.ignoreDeclaration?\"\":\"<?xml\"+c(y[d.attributesKey],d,N)+\"?>\"}function E(y,d,N){if(d.ignoreInstruction)return\"\";var B;for(B in y)if(y.hasOwnProperty(B))break;var _=\"instructionNameFn\"in d?d.instructionNameFn(B,y[B],u,o):B;if(typeof y[B]==\"object\")return o=y,u=_,\"<?\"+_+c(y[B][d.attributesKey],d,N)+\"?>\";var j=y[B]?y[B]:\"\";return\"instructionFn\"in d&&(j=d.instructionFn(j,B,u,o)),\"<?\"+_+(j?\" \"+j:\"\")+\"?>\"}function p(y,d){return d.ignoreComment?\"\":\"<!--\"+(\"commentFn\"in d?d.commentFn(y,u,o):y)+\"-->\"}function x(y,d){return d.ignoreCdata?\"\":\"<![CDATA[\"+(\"cdataFn\"in d?d.cdataFn(y,u,o):y.replace(\"]]>\",\"]]]]><![CDATA[>\"))+\"]]>\"}function m(y,d){return d.ignoreDoctype?\"\":\"<!DOCTYPE \"+(\"doctypeFn\"in d?d.doctypeFn(y,u,o):y)+\">\"}function w(y,d){return d.ignoreText?\"\":(y=\"\"+y,y=y.replace(/&amp;/g,\"&\"),y=y.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\"),\"textFn\"in d?d.textFn(y,u,o):y)}function b(y,d){var N;if(y.elements&&y.elements.length)for(N=0;N<y.elements.length;++N)switch(y.elements[N][d.typeKey]){case\"text\":if(d.indentText)return!0;break;case\"cdata\":if(d.indentCdata)return!0;break;case\"instruction\":if(d.indentInstruction)return!0;break;case\"doctype\":case\"comment\":case\"element\":return!0;default:return!0}return!1}function T(y,d,N){o=y,u=y.name;var B=[],_=\"elementNameFn\"in d?d.elementNameFn(y.name,y):y.name;B.push(\"<\"+_),y[d.attributesKey]&&B.push(c(y[d.attributesKey],d,N));var j=y[d.elementsKey]&&y[d.elementsKey].length||y[d.attributesKey]&&y[d.attributesKey][\"xml:space\"]===\"preserve\";return j||(\"fullTagEmptyElementFn\"in d?j=d.fullTagEmptyElementFn(y.name,y):j=d.fullTagEmptyElement),j?(B.push(\">\"),y[d.elementsKey]&&y[d.elementsKey].length&&(B.push(R(y[d.elementsKey],d,N+1)),o=y,u=y.name),B.push(d.spaces&&b(y,d)?`\n`+Array(N+1).join(d.spaces):\"\"),B.push(\"</\"+_+\">\")):B.push(\"/>\"),B.join(\"\")}function R(y,d,N,B){return y.reduce(function(_,j){var J=n(d,N,B&&!_);switch(j.type){case\"element\":return _+J+T(j,d,N);case\"comment\":return _+J+p(j[d.commentKey],d);case\"doctype\":return _+J+m(j[d.doctypeKey],d);case\"cdata\":return _+(d.indentCdata?J:\"\")+x(j[d.cdataKey],d);case\"text\":return _+(d.indentText?J:\"\")+w(j[d.textKey],d);case\"instruction\":var C={};return C[j[d.nameKey]]=j[d.attributesKey]?j:j[d.instructionKey],_+(d.indentInstruction?J:\"\")+E(C,d,N)}},\"\")}function S(y,d,N){var B;for(B in y)if(y.hasOwnProperty(B))switch(B){case d.parentKey:case d.attributesKey:break;case d.textKey:if(d.indentText||N)return!0;break;case d.cdataKey:if(d.indentCdata||N)return!0;break;case d.instructionKey:if(d.indentInstruction||N)return!0;break;case d.doctypeKey:case d.commentKey:return!0;default:return!0}return!1}function P(y,d,N,B,_){o=y,u=d;var j=\"elementNameFn\"in N?N.elementNameFn(d,y):d;if(typeof y>\"u\"||y===null||y===\"\")return\"fullTagEmptyElementFn\"in N&&N.fullTagEmptyElementFn(d,y)||N.fullTagEmptyElement?\"<\"+j+\"></\"+j+\">\":\"<\"+j+\"/>\";var J=[];if(d){if(J.push(\"<\"+j),typeof y!=\"object\")return J.push(\">\"+w(y,N)+\"</\"+j+\">\"),J.join(\"\");y[N.attributesKey]&&J.push(c(y[N.attributesKey],N,B));var C=S(y,N,!0)||y[N.attributesKey]&&y[N.attributesKey][\"xml:space\"]===\"preserve\";if(C||(\"fullTagEmptyElementFn\"in N?C=N.fullTagEmptyElementFn(d,y):C=N.fullTagEmptyElement),C)J.push(\">\");else return J.push(\"/>\"),J.join(\"\")}return J.push(O(y,N,B+1,!1)),o=y,u=d,d&&J.push((_?n(N,B,!1):\"\")+\"</\"+j+\">\"),J.join(\"\")}function O(y,d,N,B){var _,j,J,C=[];for(j in y)if(y.hasOwnProperty(j))for(J=s(y[j])?y[j]:[y[j]],_=0;_<J.length;++_){switch(j){case d.declarationKey:C.push(g(J[_],d,N));break;case d.instructionKey:C.push((d.indentInstruction?n(d,N,B):\"\")+E(J[_],d,N));break;case d.attributesKey:case d.parentKey:break;case d.textKey:C.push((d.indentText?n(d,N,B):\"\")+w(J[_],d));break;case d.cdataKey:C.push((d.indentCdata?n(d,N,B):\"\")+x(J[_],d));break;case d.doctypeKey:C.push(n(d,N,B)+m(J[_],d));break;case d.commentKey:C.push(n(d,N,B)+p(J[_],d));break;default:C.push(n(d,N,B)+P(J[_],j,d,N,S(J[_],d)))}B=B&&!C.length}return C.join(\"\")}r.exports=function(y,d){d=a(d);var N=[];return o=y,u=\"_root_\",d.compact?N.push(O(y,d,0,!0)):(y[d.declarationKey]&&N.push(g(y[d.declarationKey],d,0)),y[d.elementsKey]&&y[d.elementsKey].length&&N.push(R(y[d.elementsKey],d,0,!N.length))),N.join(\"\")}})),Os=ce(((e,r)=>{var t=yi();r.exports=function(s,o){s instanceof Buffer&&(s=s.toString());var u=null;if(typeof s==\"string\")try{u=JSON.parse(s)}catch{throw new Error(\"The JSON structure is invalid\")}else u=s;return t(u,o)}})),dr=ce(((e,r)=>{r.exports={xml2js:gi(),xml2json:Ns(),js2xml:yi(),json2xml:Os()}}))(),en=e=>{switch(e.type){case void 0:case\"element\":let r=new Ds(e.name,e.attributes),t=e.elements||[];for(let s of t){let o=en(s);o!==void 0&&r.push(o)}return r;case\"text\":return e.text;default:return}},Ps=class extends we{},Ds=class extends ue{static fromXmlString(e){return en((0,dr.xml2js)(e,{compact:!1}))}constructor(e,r){super(e),r&&this.root.push(new Ps(r))}push(e){this.root.push(e)}},Ls=class extends ue{constructor(e){super(\"\"),ee(this,\"_attr\",void 0),this._attr=e}prepForXml(e){return{_attr:this._attr}}},bi=class extends ue{constructor(e,r){super(e),r&&(this.root=r.root)}},Ae=e=>{if(isNaN(e))throw new Error(`Invalid value '${e}' specified. Must be an integer.`);return Math.floor(e)},fr=e=>{let r=Ae(e);if(r<0)throw new Error(`Invalid value '${e}' specified. Must be a positive integer.`);return r},_i=(e,r)=>{let t=r*2;if(e.length!==t||isNaN(+`0x${e}`))throw new Error(`Invalid hex value '${e}'. Expected ${t} digit hex value`);return e};var bn=e=>_i(e,1),tn=e=>{let r=e.slice(-2),t=e.substring(0,e.length-2);return`${Number(t)}${r}`},Fs={in:1440,cm:1440/2.54,mm:1440/25.4,pt:20,pc:240,pi:240},ht=e=>{if(typeof e==\"number\")return e;let r=e.slice(-2),t=Number(e.substring(0,e.length-2)),s=Fs[r];if(s===void 0||Number.isNaN(t))throw new Error(`Invalid universal measure '${e}'. Expected a number followed by mm, cm, in, pt, pc or pi.`);return t*s},Ei=e=>{let r=tn(e);if(parseFloat(r)<0)throw new Error(`Invalid value '${r}' specified. Expected a positive number.`);return r},xi=e=>e===\"auto\"?e:_i(e.charAt(0)===\"#\"?e.substring(1):e,3),Be=e=>typeof e==\"string\"?tn(e):Ae(e),Bs=e=>typeof e==\"string\"?Ei(e):fr(e);var Se=e=>typeof e==\"string\"?Ei(e):fr(e),Ms=e=>{let r=e.substring(0,e.length-1);return`${Number(r)}%`},Ti=e=>typeof e==\"number\"?Ae(e):e.slice(-1)===\"%\"?Ms(e):tn(e),Us=fr,Hs=fr,Ws=e=>e.toISOString(),le=class extends ue{constructor(e,r=!0){super(e),r!==!0&&this.root.push(new Re({val:r}))}},br=class extends ue{constructor(e,r){super(e),this.root.push(new Re({val:Bs(r)}))}},js=class extends ue{},Ke=class extends ue{constructor(e,r){super(e),this.root.push(new Re({val:r}))}},kt=(e,r)=>new fe({name:e,attributes:{value:{key:\"w:val\",value:r}}}),Dt=class extends ue{constructor(e,r){super(e),this.root.push(new Re({val:r}))}};var Je=class extends ue{constructor(e,r){super(e),this.root.push(r)}},fe=class extends ue{constructor({name:e,attributes:r,children:t}){super(e),r&&this.root.push(new Jn(r)),t&&this.root.push(...t)}},Ie={START:\"start\",CENTER:\"center\",END:\"end\",BOTH:\"both\",MEDIUM_KASHIDA:\"mediumKashida\",DISTRIBUTE:\"distribute\",NUM_TAB:\"numTab\",HIGH_KASHIDA:\"highKashida\",LOW_KASHIDA:\"lowKashida\",THAI_DISTRIBUTE:\"thaiDistribute\",LEFT:\"left\",RIGHT:\"right\",JUSTIFIED:\"both\"},Si=e=>new fe({name:\"w:jc\",attributes:{val:{key:\"w:val\",value:e}}}),rn={dark1:\"dk1\",light1:\"lt1\",dark2:\"dk2\",light2:\"lt2\",accent1:\"accent1\",accent2:\"accent2\",accent3:\"accent3\",accent4:\"accent4\",accent5:\"accent5\",accent6:\"accent6\",hyperlink:\"hlink\",followedHyperlink:\"folHlink\"},Ai={dark2:\"44546A\",light2:\"E7E6E6\",accent1:\"4472C4\",accent2:\"ED7D31\",accent3:\"A5A5A5\",accent4:\"FFC000\",accent5:\"5B9BD5\",accent6:\"70AD47\",hyperlink:\"0563C1\",followedHyperlink:\"954F72\"},ki={dark1:{value:\"windowText\",lastColor:\"000000\"},light1:{value:\"window\",lastColor:\"FFFFFF\"}},Ri=(e,r)=>{if(r===\"auto\")throw new Error(`Invalid theme color ${e} 'auto'. Expected 6 digit hex value`);return xi(r)},nn=(e={})=>Object.fromEntries(Object.keys(rn).map(r=>{let t=e[r],s=r===\"dark1\"||r===\"light1\"?ki[r].lastColor:Ai[r];return[r,t===void 0?s:Ri(r,t)]})),Gs=(e,r)=>new fe({name:\"a:srgbClr\",attributes:{value:{key:\"val\",value:Ri(e,r)}}}),zs=(e,r)=>{let t=r[e],s=e===\"dark1\"||e===\"light1\"?ki[e]:void 0;return new fe({name:`a:${rn[e]}`,children:[t===void 0&&s?new fe({name:\"a:sysClr\",attributes:{value:{key:\"val\",value:s.value},lastColor:{key:\"lastClr\",value:s.lastColor}}}):Gs(e,t??Ai[e])]})},$s=(e,r={})=>new fe({name:\"a:clrScheme\",attributes:{name:{key:\"name\",value:e}},children:Object.keys(rn).map(t=>zs(t,r))}),_n=new Set([\"dark1\",\"light1\",\"dark2\",\"light2\",\"accent1\",\"accent2\",\"accent3\",\"accent4\",\"accent5\",\"accent6\",\"hyperlink\",\"followedHyperlink\"]),Ks=new Map([[\"dk1\",\"dark1\"],[\"lt1\",\"light1\"],[\"dk2\",\"dark2\"],[\"lt2\",\"light2\"],[\"hlink\",\"hyperlink\"],[\"folHlink\",\"followedHyperlink\"],[\"text1\",\"dark1\"],[\"background1\",\"light1\"],[\"text2\",\"dark2\"],[\"background2\",\"light2\"]]),En=(e,r)=>{if(!(e>=0&&e<=100))throw new Error(`Invalid ${r} ${e}. Expected a number from 0 to 100`);return Math.round(255*(1-e/100))},Vs=({theme:e,lighter:r,darker:t})=>{if(!_n.has(e)){let u=Ks.get(e);throw new Error(`Invalid theme color \"${e}\". ${u?`Did you mean \"${u}\"?`:`Expected one of ${[..._n].join(\", \")}`}`)}if(r!==void 0&&t!==void 0)throw new Error(\"Invalid theme color. Expected lighter or darker, not both\");let s=r===void 0?void 0:En(r,\"lighter\"),o=t===void 0?void 0:En(t,\"darker\");return{tint:s===255?void 0:s,shade:o===255?void 0:o}},qs=e=>{let[r,t,s]=[0,2,4].map(c=>parseInt(e.slice(c,c+2),16)/255),o=Math.max(r,t,s),u=Math.min(r,t,s),a=(o+u)/2,n=o-u;return n===0?{hue:0,saturation:0,lightness:a}:{hue:(o===r?((t-s)/n+6)%6:o===t?(s-r)/n+2:(r-t)/n+4)*60,saturation:n/(1-Math.abs(2*a-1)),lightness:a}},Xs=({hue:e,saturation:r,lightness:t})=>{let s=(1-Math.abs(2*t-1))*r,o=s*(1-Math.abs(e/60%2-1)),[u,a,n]=e<60?[s,o,0]:e<120?[o,s,0]:e<180?[0,s,o]:e<240?[0,o,s]:e<300?[o,0,s]:[s,0,o],c=t-s/2;return[u,a,n].map(g=>Math.floor((g+c)*255+1e-9).toString(16).padStart(2,\"0\")).join(\"\").toUpperCase()},Ys=(e,{tint:r,shade:t})=>{if(r===void 0&&t===void 0)return e;let s=qs(e),o=r===void 0?s.lightness*t/255:s.lightness*r/255+(1-r/255);return Xs(he(he({},s),{},{lightness:o}))},xn=e=>e===void 0?void 0:e.toString(16).padStart(2,\"0\").toUpperCase(),Zs=e=>typeof e==\"string\"?{type:\"hex\",value:xi(e)}:{type:\"theme\",color:e,change:Vs(e)},Js=(e,r)=>e.type===\"hex\"?{color:e.value}:{color:Ys(r[e.color.theme],e.change),theme:e.color.theme,tint:xn(e.change.tint),shade:xn(e.change.shade)},Qs=nn(),an=class extends Bt{constructor(e){super(\"_attr\"),ee(this,\"attributes\",void 0),this.attributes=e.map(r=>\"keys\"in r?{keys:r.keys,color:r.color===void 0?void 0:Zs(r.color)}:r)}prepForXml(e){var r,t;let s=(r=(t=e.file)===null||t===void 0||(t=t.Theme)===null||t===void 0?void 0:t.Colors)!==null&&r!==void 0?r:Qs,o=this.attributes.flatMap(u=>{if(!(\"keys\"in u))return[[u.key,u.value]];if(u.color===void 0)return[];let{keys:a}=u,n=Js(u.color,s);return[[a.color,n.color],[a.theme,n.theme],[a.tint,n.tint],[a.shade,n.shade]]});return{_attr:Object.fromEntries(o.filter(([,u])=>u!==void 0))}}},eo=class extends ue{constructor(e,r){super(e),this.root.push(new an(r))}},sn=(e,r)=>new eo(e,r),Wt={color:\"w:color\",theme:\"w:themeColor\",tint:\"w:themeTint\",shade:\"w:themeShade\"},be=(e,{color:r,size:t,space:s,style:o})=>sn(e,[{key:\"w:val\",value:o},{keys:Wt,color:r},{key:\"w:sz\",value:t===void 0?void 0:Us(t)},{key:\"w:space\",value:s===void 0?void 0:Hs(s)}]),on={SINGLE:\"single\",DASH_DOT_STROKED:\"dashDotStroked\",DASHED:\"dashed\",DASH_SMALL_GAP:\"dashSmallGap\",DOT_DASH:\"dotDash\",DOT_DOT_DASH:\"dotDotDash\",DOTTED:\"dotted\",DOUBLE:\"double\",DOUBLE_WAVE:\"doubleWave\",INSET:\"inset\",NIL:\"nil\",NONE:\"none\",OUTSET:\"outset\",THICK:\"thick\",THICK_THIN_LARGE_GAP:\"thickThinLargeGap\",THICK_THIN_MEDIUM_GAP:\"thickThinMediumGap\",THICK_THIN_SMALL_GAP:\"thickThinSmallGap\",THIN_THICK_LARGE_GAP:\"thinThickLargeGap\",THIN_THICK_MEDIUM_GAP:\"thinThickMediumGap\",THIN_THICK_SMALL_GAP:\"thinThickSmallGap\",THIN_THICK_THIN_LARGE_GAP:\"thinThickThinLargeGap\",THIN_THICK_THIN_MEDIUM_GAP:\"thinThickThinMediumGap\",THIN_THICK_THIN_SMALL_GAP:\"thinThickThinSmallGap\",THREE_D_EMBOSS:\"threeDEmboss\",THREE_D_ENGRAVE:\"threeDEngrave\",TRIPLE:\"triple\",WAVE:\"wave\"},to=class extends Ve{constructor(e){super(\"w:pBdr\"),e.top&&this.root.push(be(\"w:top\",e.top)),e.left&&this.root.push(be(\"w:left\",e.left)),e.bottom&&this.root.push(be(\"w:bottom\",e.bottom)),e.right&&this.root.push(be(\"w:right\",e.right)),e.between&&this.root.push(be(\"w:between\",e.between))}},ro=class extends ue{constructor(){super(\"w:pBdr\");let e=be(\"w:bottom\",{color:\"auto\",space:1,style:on.SINGLE,size:6});this.root.push(e)}},no=({start:e,end:r,left:t,right:s,hanging:o,firstLine:u,firstLineChars:a})=>new fe({name:\"w:ind\",attributes:{start:{key:\"w:start\",value:e===void 0?void 0:Be(e)},end:{key:\"w:end\",value:r===void 0?void 0:Be(r)},left:{key:\"w:left\",value:t===void 0?void 0:Be(t)},right:{key:\"w:right\",value:s===void 0?void 0:Be(s)},hanging:{key:\"w:hanging\",value:o===void 0?void 0:Se(o)},firstLine:{key:\"w:firstLine\",value:u===void 0?void 0:Se(u)},firstLineChars:{key:\"w:firstLineChars\",value:a===void 0?void 0:Ae(a)}}}),io=()=>new fe({name:\"w:br\"}),ln={BEGIN:\"begin\",END:\"end\",SEPARATE:\"separate\"},un=(e,r)=>new fe({name:\"w:fldChar\",attributes:{type:{key:\"w:fldCharType\",value:e},dirty:{key:\"w:dirty\",value:r}}}),Xt=e=>un(ln.BEGIN,e),Yt=e=>un(ln.SEPARATE,e),Zt=e=>un(ln.END,e);var vt={DEFAULT:\"default\",PRESERVE:\"preserve\"},wt=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{space:\"xml:space\"})}},ao=class extends ue{constructor(){super(\"w:instrText\"),this.root.push(new wt({space:vt.PRESERVE})),this.root.push(\"PAGE\")}},so=class extends ue{constructor(){super(\"w:instrText\"),this.root.push(new wt({space:vt.PRESERVE})),this.root.push(\"NUMPAGES\")}},oo=class extends ue{constructor(){super(\"w:instrText\"),this.root.push(new wt({space:vt.PRESERVE})),this.root.push(\"SECTIONPAGES\")}},lo=class extends ue{constructor(){super(\"w:instrText\"),this.root.push(new wt({space:vt.PRESERVE})),this.root.push(\"SECTION\")}},pr=({fill:e,color:r,type:t})=>sn(\"w:shd\",[{keys:{color:\"w:fill\",theme:\"w:themeFill\",tint:\"w:themeFillTint\",shade:\"w:themeFillShade\"},color:e},{keys:Wt,color:r},{key:\"w:val\",value:t??uo.CLEAR}]),uo={CLEAR:\"clear\",DIAGONAL_CROSS:\"diagCross\",DIAGONAL_STRIPE:\"diagStripe\",HORIZONTAL_CROSS:\"horzCross\",HORIZONTAL_STRIPE:\"horzStripe\",NIL:\"nil\",PERCENT_5:\"pct5\",PERCENT_10:\"pct10\",PERCENT_12:\"pct12\",PERCENT_15:\"pct15\",PERCENT_20:\"pct20\",PERCENT_25:\"pct25\",PERCENT_30:\"pct30\",PERCENT_35:\"pct35\",PERCENT_37:\"pct37\",PERCENT_40:\"pct40\",PERCENT_45:\"pct45\",PERCENT_50:\"pct50\",PERCENT_55:\"pct55\",PERCENT_60:\"pct60\",PERCENT_62:\"pct62\",PERCENT_65:\"pct65\",PERCENT_70:\"pct70\",PERCENT_75:\"pct75\",PERCENT_80:\"pct80\",PERCENT_85:\"pct85\",PERCENT_87:\"pct87\",PERCENT_90:\"pct90\",PERCENT_95:\"pct95\",REVERSE_DIAGONAL_STRIPE:\"reverseDiagStripe\",SOLID:\"solid\",THIN_DIAGONAL_CROSS:\"thinDiagCross\",THIN_DIAGONAL_STRIPE:\"thinDiagStripe\",THIN_HORIZONTAL_CROSS:\"thinHorzCross\",THIN_REVERSE_DIAGONAL_STRIPE:\"thinReverseDiagStripe\",THIN_VERTICAL_STRIPE:\"thinVertStripe\",VERTICAL_STRIPE:\"vertStripe\"},Ce=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{id:\"w:id\",author:\"w:author\",date:\"w:date\"})}},co=class extends ue{constructor(e){super(\"w:del\"),this.root.push(new Ce({id:e.id,author:e.author,date:e.date}))}},ho=class extends ue{constructor(e){super(\"w:ins\"),this.root.push(new Ce({id:e.id,author:e.author,date:e.date}))}},fo={DOT:\"dot\"},po=(e=fo.DOT)=>new fe({name:\"w:em\",attributes:{val:{key:\"w:val\",value:e}}});var mo=class extends ue{constructor(e){super(\"w:spacing\"),this.root.push(new Re({val:Be(e)}))}},vo=class extends ue{constructor(e){super(\"w:color\"),this.root.push(new an([{keys:he(he({},Wt),{},{color:\"w:val\"}),color:e}]))}},wo=class extends ue{constructor(e){super(\"w:highlight\"),this.root.push(new Re({val:e}))}},go=e=>new fe({name:\"w:lang\",attributes:{value:{key:\"w:val\",value:e.value},eastAsia:{key:\"w:eastAsia\",value:e.eastAsia},bidirectional:{key:\"w:bidi\",value:e.bidirectional}}}),_r=(e,r)=>{if(typeof e==\"string\"){let s=e;return new fe({name:\"w:rFonts\",attributes:{ascii:{key:\"w:ascii\",value:s},cs:{key:\"w:cs\",value:s},eastAsia:{key:\"w:eastAsia\",value:s},hAnsi:{key:\"w:hAnsi\",value:s},hint:{key:\"w:hint\",value:r}}})}if(\"theme\"in e){let s=e.theme===\"headings\"?\"major\":\"minor\";return new fe({name:\"w:rFonts\",attributes:{ascii:{key:\"w:asciiTheme\",value:`${s}HAnsi`},eastAsia:{key:\"w:eastAsiaTheme\",value:`${s}EastAsia`},hAnsi:{key:\"w:hAnsiTheme\",value:`${s}HAnsi`},cs:{key:\"w:cstheme\",value:`${s}Bidi`}}})}let t=e;return new fe({name:\"w:rFonts\",attributes:{ascii:{key:\"w:ascii\",value:t.ascii},cs:{key:\"w:cs\",value:t.cs},eastAsia:{key:\"w:eastAsia\",value:t.eastAsia},hAnsi:{key:\"w:hAnsi\",value:t.hAnsi},hint:{key:\"w:hint\",value:t.hint}}})},Ii=e=>new fe({name:\"w:vertAlign\",attributes:{val:{key:\"w:val\",value:e}}}),yo=()=>Ii(\"superscript\"),bo=()=>Ii(\"subscript\"),Ci={SINGLE:\"single\",WORDS:\"words\",DOUBLE:\"double\",THICK:\"thick\",DOTTED:\"dotted\",DOTTEDHEAVY:\"dottedHeavy\",DASH:\"dash\",DASHEDHEAVY:\"dashedHeavy\",DASHLONG:\"dashLong\",DASHLONGHEAVY:\"dashLongHeavy\",DOTDASH:\"dotDash\",DASHDOTHEAVY:\"dashDotHeavy\",DOTDOTDASH:\"dotDotDash\",DASHDOTDOTHEAVY:\"dashDotDotHeavy\",WAVE:\"wave\",WAVYHEAVY:\"wavyHeavy\",WAVYDOUBLE:\"wavyDouble\",NONE:\"none\"},_o=(e=Ci.SINGLE,r)=>sn(\"w:u\",[{key:\"w:val\",value:e},{keys:Wt,color:r}]);var st=class extends Ve{constructor(e){if(super(\"w:rPr\"),!e)return;if(e.style&&this.push(new Ke(\"w:rStyle\",e.style)),e.font&&(typeof e.font==\"string\"?this.push(_r(e.font)):\"name\"in e.font?this.push(_r(e.font.name,e.font.hint)):this.push(_r(e.font))),e.bold!==void 0&&this.push(new le(\"w:b\",e.bold)),e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript){var r;this.push(new le(\"w:bCs\",(r=e.boldComplexScript)!==null&&r!==void 0?r:e.bold))}if(e.italics!==void 0&&this.push(new le(\"w:i\",e.italics)),e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript){var t;this.push(new le(\"w:iCs\",(t=e.italicsComplexScript)!==null&&t!==void 0?t:e.italics))}e.smallCaps!==void 0?this.push(new le(\"w:smallCaps\",e.smallCaps)):e.allCaps!==void 0&&this.push(new le(\"w:caps\",e.allCaps)),e.strike!==void 0&&this.push(new le(\"w:strike\",e.strike)),e.doubleStrike!==void 0&&this.push(new le(\"w:dstrike\",e.doubleStrike)),e.emboss!==void 0&&this.push(new le(\"w:emboss\",e.emboss)),e.imprint!==void 0&&this.push(new le(\"w:imprint\",e.imprint)),e.noProof!==void 0&&this.push(new le(\"w:noProof\",e.noProof)),e.snapToGrid!==void 0&&this.push(new le(\"w:snapToGrid\",e.snapToGrid)),e.vanish&&this.push(new le(\"w:vanish\",e.vanish)),e.color&&this.push(new vo(e.color)),e.characterSpacing&&this.push(new mo(e.characterSpacing)),e.scale!==void 0&&this.push(new Dt(\"w:w\",e.scale)),e.kern&&this.push(new br(\"w:kern\",e.kern)),e.position&&this.push(new Ke(\"w:position\",e.position)),e.size!==void 0&&this.push(new br(\"w:sz\",e.size));let s=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;s&&this.push(new br(\"w:szCs\",s)),e.highlight&&this.push(new wo(e.highlight)),e.underline&&this.push(_o(e.underline.type,e.underline.color)),e.effect&&this.push(new Ke(\"w:effect\",e.effect)),e.border&&this.push(be(\"w:bdr\",e.border)),e.shading&&this.push(pr(e.shading)),e.subScript&&this.push(bo()),e.superScript&&this.push(yo()),e.rightToLeft!==void 0&&this.push(new le(\"w:rtl\",e.rightToLeft)),e.emphasisMark&&this.push(po(e.emphasisMark.type)),e.language&&this.push(go(e.language)),e.specVanish&&this.push(new le(\"w:specVanish\",e.vanish)),e.math&&this.push(new le(\"w:oMath\",e.math)),e.revision&&this.push(new xo(e.revision))}push(e){this.root.push(e)}},Eo=class extends st{constructor(e){super(e),e?.insertion&&this.push(new ho(e.insertion)),e?.deletion&&this.push(new co(e.deletion))}},xo=class extends ue{constructor(e){super(\"w:rPrChange\"),this.root.push(new Ce({id:e.id,author:e.author,date:e.date})),this.addChildElement(new st(e))}},Ur=class extends ue{constructor(e){if(super(\"w:t\"),typeof e==\"string\")this.root.push(new wt({space:vt.PRESERVE})),this.root.push(e);else{var r;this.root.push(new wt({space:(r=e.space)!==null&&r!==void 0?r:vt.DEFAULT})),this.root.push(e.text)}}},Jt={CURRENT:\"CURRENT\",TOTAL_PAGES:\"TOTAL_PAGES\",TOTAL_PAGES_IN_SECTION:\"TOTAL_PAGES_IN_SECTION\",CURRENT_SECTION:\"SECTION\"},jt=class Hr extends ue{constructor(r){if(super(\"w:r\"),ee(this,\"properties\",void 0),ee(this,\"following\",[]),this.properties=new st(r),this.root.push(this.properties),r.break)for(let t=0;t<r.break;t++)this.root.push(io());if(r.children)for(let[t,s]of r.children.entries()){if(s instanceof Hr){let o=r.children.slice(t+1);this.following=[s,...o.length>0?[new Hr(he(he({},r),{},{break:void 0,children:o}))]:[]];break}if(typeof s==\"string\"){switch(s){case Jt.CURRENT:this.root.push(Xt()),this.root.push(new ao),this.root.push(Yt()),this.root.push(Zt());break;case Jt.TOTAL_PAGES:this.root.push(Xt()),this.root.push(new so),this.root.push(Yt()),this.root.push(Zt());break;case Jt.TOTAL_PAGES_IN_SECTION:this.root.push(Xt()),this.root.push(new oo),this.root.push(Yt()),this.root.push(Zt());break;case Jt.CURRENT_SECTION:this.root.push(Xt()),this.root.push(new lo),this.root.push(Yt()),this.root.push(Zt());break;default:this.root.push(new Ur(s))}continue}this.root.push(s)}else r.text!==void 0&&this.root.push(new Ur(r.text))}get writtenAs(){return this.following.length>0?[this,...this.following.flatMap(r=>{var t;return(t=r.writtenAs)!==null&&t!==void 0?t:r})]:void 0}},ir=class extends jt{constructor(e){super(typeof e==\"string\"?{text:e}:e)}};var Gt=ce(((e,r)=>{r.exports=t;function t(s,o){if(!s)throw new Error(o||\"Assertion failed\")}t.equal=function(o,u,a){if(o!=u)throw new Error(a||\"Assertion failed: \"+o+\" != \"+u)}})),Me=ce((e=>{var r=Gt();e.inherits=qe();function t(C,G){return(C.charCodeAt(G)&64512)!==55296||G<0||G+1>=C.length?!1:(C.charCodeAt(G+1)&64512)===56320}function s(C,G){if(Array.isArray(C))return C.slice();if(!C)return[];var A=[];if(typeof C==\"string\")if(G){if(G===\"hex\")for(C=C.replace(/[^a-z0-9]+/gi,\"\"),C.length%2!==0&&(C=\"0\"+C),Q=0;Q<C.length;Q+=2)A.push(parseInt(C[Q]+C[Q+1],16))}else for(var z=0,Q=0;Q<C.length;Q++){var q=C.charCodeAt(Q);q<128?A[z++]=q:q<2048?(A[z++]=q>>6|192,A[z++]=q&63|128):t(C,Q)?(q=65536+((q&1023)<<10)+(C.charCodeAt(++Q)&1023),A[z++]=q>>18|240,A[z++]=q>>12&63|128,A[z++]=q>>6&63|128,A[z++]=q&63|128):(A[z++]=q>>12|224,A[z++]=q>>6&63|128,A[z++]=q&63|128)}else for(Q=0;Q<C.length;Q++)A[Q]=C[Q]|0;return A}e.toArray=s;function o(C){for(var G=\"\",A=0;A<C.length;A++)G+=n(C[A].toString(16));return G}e.toHex=o;function u(C){return(C>>>24|C>>>8&65280|C<<8&16711680|(C&255)<<24)>>>0}e.htonl=u;function a(C,G){for(var A=\"\",z=0;z<C.length;z++){var Q=C[z];G===\"little\"&&(Q=u(Q)),A+=c(Q.toString(16))}return A}e.toHex32=a;function n(C){return C.length===1?\"0\"+C:C}e.zero2=n;function c(C){return C.length===7?\"0\"+C:C.length===6?\"00\"+C:C.length===5?\"000\"+C:C.length===4?\"0000\"+C:C.length===3?\"00000\"+C:C.length===2?\"000000\"+C:C.length===1?\"0000000\"+C:C}e.zero8=c;function g(C,G,A,z){var Q=A-G;r(Q%4===0);for(var q=new Array(Q/4),se=0,Y=G;se<q.length;se++,Y+=4){var te;z===\"big\"?te=C[Y]<<24|C[Y+1]<<16|C[Y+2]<<8|C[Y+3]:te=C[Y+3]<<24|C[Y+2]<<16|C[Y+1]<<8|C[Y],q[se]=te>>>0}return q}e.join32=g;function E(C,G){for(var A=new Array(C.length*4),z=0,Q=0;z<C.length;z++,Q+=4){var q=C[z];G===\"big\"?(A[Q]=q>>>24,A[Q+1]=q>>>16&255,A[Q+2]=q>>>8&255,A[Q+3]=q&255):(A[Q+3]=q>>>24,A[Q+2]=q>>>16&255,A[Q+1]=q>>>8&255,A[Q]=q&255)}return A}e.split32=E;function p(C,G){return C>>>G|C<<32-G}e.rotr32=p;function x(C,G){return C<<G|C>>>32-G}e.rotl32=x;function m(C,G){return C+G>>>0}e.sum32=m;function w(C,G,A){return C+G+A>>>0}e.sum32_3=w;function b(C,G,A,z){return C+G+A+z>>>0}e.sum32_4=b;function T(C,G,A,z,Q){return C+G+A+z+Q>>>0}e.sum32_5=T;function R(C,G,A,z){var Q=C[G],q=z+C[G+1]>>>0;C[G]=(q<z?1:0)+A+Q>>>0,C[G+1]=q}e.sum64=R;function S(C,G,A,z){return(G+z>>>0<G?1:0)+C+A>>>0}e.sum64_hi=S;function P(C,G,A,z){return G+z>>>0}e.sum64_lo=P;function O(C,G,A,z,Q,q,se,Y){var te=0,V=G;return V=V+z>>>0,te+=V<G?1:0,V=V+q>>>0,te+=V<q?1:0,V=V+Y>>>0,te+=V<Y?1:0,C+A+Q+se+te>>>0}e.sum64_4_hi=O;function y(C,G,A,z,Q,q,se,Y){return G+z+q+Y>>>0}e.sum64_4_lo=y;function d(C,G,A,z,Q,q,se,Y,te,V){var D=0,X=G;return X=X+z>>>0,D+=X<G?1:0,X=X+q>>>0,D+=X<q?1:0,X=X+Y>>>0,D+=X<Y?1:0,X=X+V>>>0,D+=X<V?1:0,C+A+Q+se+te+D>>>0}e.sum64_5_hi=d;function N(C,G,A,z,Q,q,se,Y,te,V){return G+z+q+Y+V>>>0}e.sum64_5_lo=N;function B(C,G,A){return(G<<32-A|C>>>A)>>>0}e.rotr64_hi=B;function _(C,G,A){return(C<<32-A|G>>>A)>>>0}e.rotr64_lo=_;function j(C,G,A){return C>>>A}e.shr64_hi=j;function J(C,G,A){return(C<<32-A|G>>>A)>>>0}e.shr64_lo=J})),zt=ce((e=>{var r=Me(),t=Gt();function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian=\"big\",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=s,s.prototype.update=function(u,a){if(u=r.toArray(u,a),this.pending?this.pending=this.pending.concat(u):this.pending=u,this.pendingTotal+=u.length,this.pending.length>=this._delta8){u=this.pending;var n=u.length%this._delta8;this.pending=u.slice(u.length-n,u.length),this.pending.length===0&&(this.pending=null),u=r.join32(u,0,u.length-n,this.endian);for(var c=0;c<u.length;c+=this._delta32)this._update(u,c,c+this._delta32)}return this},s.prototype.digest=function(u){return this.update(this._pad()),t(this.pending===null),this._digest(u)},s.prototype._pad=function(){var u=this.pendingTotal,a=this._delta8,n=a-(u+this.padLength)%a,c=new Array(n+this.padLength);c[0]=128;for(var g=1;g<n;g++)c[g]=0;if(u<<=3,this.endian===\"big\"){for(var E=8;E<this.padLength;E++)c[g++]=0;c[g++]=0,c[g++]=0,c[g++]=0,c[g++]=0,c[g++]=u>>>24&255,c[g++]=u>>>16&255,c[g++]=u>>>8&255,c[g++]=u&255}else for(c[g++]=u&255,c[g++]=u>>>8&255,c[g++]=u>>>16&255,c[g++]=u>>>24&255,c[g++]=0,c[g++]=0,c[g++]=0,c[g++]=0,E=8;E<this.padLength;E++)c[g++]=0;return c}})),Ni=ce((e=>{var r=Me().rotr32;function t(E,p,x,m){if(E===0)return s(p,x,m);if(E===1||E===3)return u(p,x,m);if(E===2)return o(p,x,m)}e.ft_1=t;function s(E,p,x){return E&p^~E&x}e.ch32=s;function o(E,p,x){return E&p^E&x^p&x}e.maj32=o;function u(E,p,x){return E^p^x}e.p32=u;function a(E){return r(E,2)^r(E,13)^r(E,22)}e.s0_256=a;function n(E){return r(E,6)^r(E,11)^r(E,25)}e.s1_256=n;function c(E){return r(E,7)^r(E,18)^E>>>3}e.g0_256=c;function g(E){return r(E,17)^r(E,19)^E>>>10}e.g1_256=g})),To=ce(((e,r)=>{var t=Me(),s=zt(),o=Ni(),u=t.rotl32,a=t.sum32,n=t.sum32_5,c=o.ft_1,g=s.BlockHash,E=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;g.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}t.inherits(p,g),r.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(m,w){for(var b=this.W,T=0;T<16;T++)b[T]=m[w+T];for(;T<b.length;T++)b[T]=u(b[T-3]^b[T-8]^b[T-14]^b[T-16],1);var R=this.h[0],S=this.h[1],P=this.h[2],O=this.h[3],y=this.h[4];for(T=0;T<b.length;T++){var d=~~(T/20),N=n(u(R,5),c(d,S,P,O),y,b[T],E[d]);y=O,O=P,P=u(S,30),S=R,R=N}this.h[0]=a(this.h[0],R),this.h[1]=a(this.h[1],S),this.h[2]=a(this.h[2],P),this.h[3]=a(this.h[3],O),this.h[4]=a(this.h[4],y)},p.prototype._digest=function(m){return m===\"hex\"?t.toHex32(this.h,\"big\"):t.split32(this.h,\"big\")}})),Oi=ce(((e,r)=>{var t=Me(),s=zt(),o=Ni(),u=Gt(),a=t.sum32,n=t.sum32_4,c=t.sum32_5,g=o.ch32,E=o.maj32,p=o.s0_256,x=o.s1_256,m=o.g0_256,w=o.g1_256,b=s.BlockHash,T=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function R(){if(!(this instanceof R))return new R;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=T,this.W=new Array(64)}t.inherits(R,b),r.exports=R,R.blockSize=512,R.outSize=256,R.hmacStrength=192,R.padLength=64,R.prototype._update=function(P,O){for(var y=this.W,d=0;d<16;d++)y[d]=P[O+d];for(;d<y.length;d++)y[d]=n(w(y[d-2]),y[d-7],m(y[d-15]),y[d-16]);var N=this.h[0],B=this.h[1],_=this.h[2],j=this.h[3],J=this.h[4],C=this.h[5],G=this.h[6],A=this.h[7];for(u(this.k.length===y.length),d=0;d<y.length;d++){var z=c(A,x(J),g(J,C,G),this.k[d],y[d]),Q=a(p(N),E(N,B,_));A=G,G=C,C=J,J=a(j,z),j=_,_=B,B=N,N=a(z,Q)}this.h[0]=a(this.h[0],N),this.h[1]=a(this.h[1],B),this.h[2]=a(this.h[2],_),this.h[3]=a(this.h[3],j),this.h[4]=a(this.h[4],J),this.h[5]=a(this.h[5],C),this.h[6]=a(this.h[6],G),this.h[7]=a(this.h[7],A)},R.prototype._digest=function(P){return P===\"hex\"?t.toHex32(this.h,\"big\"):t.split32(this.h,\"big\")}})),So=ce(((e,r)=>{var t=Me(),s=Oi();function o(){if(!(this instanceof o))return new o;s.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}t.inherits(o,s),r.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(a){return a===\"hex\"?t.toHex32(this.h.slice(0,7),\"big\"):t.split32(this.h.slice(0,7),\"big\")}})),Pi=ce(((e,r)=>{var t=Me(),s=zt(),o=Gt(),u=t.rotr64_hi,a=t.rotr64_lo,n=t.shr64_hi,c=t.shr64_lo,g=t.sum64,E=t.sum64_hi,p=t.sum64_lo,x=t.sum64_4_hi,m=t.sum64_4_lo,w=t.sum64_5_hi,b=t.sum64_5_lo,T=s.BlockHash,R=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function S(){if(!(this instanceof S))return new S;T.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=R,this.W=new Array(160)}t.inherits(S,T),r.exports=S,S.blockSize=1024,S.outSize=512,S.hmacStrength=192,S.padLength=128,S.prototype._prepareBlock=function(Q,q){for(var se=this.W,Y=0;Y<32;Y++)se[Y]=Q[q+Y];for(;Y<se.length;Y+=2){var te=G(se[Y-4],se[Y-3]),V=A(se[Y-4],se[Y-3]),D=se[Y-14],X=se[Y-13],Z=J(se[Y-30],se[Y-29]),re=C(se[Y-30],se[Y-29]),pe=se[Y-32],k=se[Y-31];se[Y]=x(te,V,D,X,Z,re,pe,k),se[Y+1]=m(te,V,D,X,Z,re,pe,k)}},S.prototype._update=function(Q,q){this._prepareBlock(Q,q);var se=this.W,Y=this.h[0],te=this.h[1],V=this.h[2],D=this.h[3],X=this.h[4],Z=this.h[5],re=this.h[6],pe=this.h[7],k=this.h[8],f=this.h[9],H=this.h[10],U=this.h[11],ne=this.h[12],L=this.h[13],F=this.h[14],h=this.h[15];o(this.k.length===se.length);for(var K=0;K<se.length;K+=2){var I=F,i=h,l=_(k,f),v=j(k,f),M=P(k,f,H,U,ne,L),$=O(k,f,H,U,ne,L),W=this.k[K],ie=this.k[K+1],oe=se[K],ae=se[K+1],de=w(I,i,l,v,M,$,W,ie,oe,ae),me=b(I,i,l,v,M,$,W,ie,oe,ae);I=N(Y,te),i=B(Y,te),l=y(Y,te,V,D,X,Z),v=d(Y,te,V,D,X,Z);var ve=E(I,i,l,v),xe=p(I,i,l,v);F=ne,h=L,ne=H,L=U,H=k,U=f,k=E(re,pe,de,me),f=p(pe,pe,de,me),re=X,pe=Z,X=V,Z=D,V=Y,D=te,Y=E(de,me,ve,xe),te=p(de,me,ve,xe)}g(this.h,0,Y,te),g(this.h,2,V,D),g(this.h,4,X,Z),g(this.h,6,re,pe),g(this.h,8,k,f),g(this.h,10,H,U),g(this.h,12,ne,L),g(this.h,14,F,h)},S.prototype._digest=function(Q){return Q===\"hex\"?t.toHex32(this.h,\"big\"):t.split32(this.h,\"big\")};function P(z,Q,q,se,Y){var te=z&q^~z&Y;return te<0&&(te+=4294967296),te}function O(z,Q,q,se,Y,te){var V=Q&se^~Q&te;return V<0&&(V+=4294967296),V}function y(z,Q,q,se,Y){var te=z&q^z&Y^q&Y;return te<0&&(te+=4294967296),te}function d(z,Q,q,se,Y,te){var V=Q&se^Q&te^se&te;return V<0&&(V+=4294967296),V}function N(z,Q){var q=u(z,Q,28),se=u(Q,z,2),Y=u(Q,z,7),te=q^se^Y;return te<0&&(te+=4294967296),te}function B(z,Q){var q=a(z,Q,28),se=a(Q,z,2),Y=a(Q,z,7),te=q^se^Y;return te<0&&(te+=4294967296),te}function _(z,Q){var q=u(z,Q,14),se=u(z,Q,18),Y=u(Q,z,9),te=q^se^Y;return te<0&&(te+=4294967296),te}function j(z,Q){var q=a(z,Q,14),se=a(z,Q,18),Y=a(Q,z,9),te=q^se^Y;return te<0&&(te+=4294967296),te}function J(z,Q){var q=u(z,Q,1),se=u(z,Q,8),Y=n(z,Q,7),te=q^se^Y;return te<0&&(te+=4294967296),te}function C(z,Q){var q=a(z,Q,1),se=a(z,Q,8),Y=c(z,Q,7),te=q^se^Y;return te<0&&(te+=4294967296),te}function G(z,Q){var q=u(z,Q,19),se=u(Q,z,29),Y=n(z,Q,6),te=q^se^Y;return te<0&&(te+=4294967296),te}function A(z,Q){var q=a(z,Q,19),se=a(Q,z,29),Y=c(z,Q,6),te=q^se^Y;return te<0&&(te+=4294967296),te}})),Ao=ce(((e,r)=>{var t=Me(),s=Pi();function o(){if(!(this instanceof o))return new o;s.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}t.inherits(o,s),r.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(a){return a===\"hex\"?t.toHex32(this.h.slice(0,12),\"big\"):t.split32(this.h.slice(0,12),\"big\")}})),ko=ce((e=>{e.sha1=To(),e.sha224=So(),e.sha256=Oi(),e.sha384=Ao(),e.sha512=Pi()})),Ro=ce((e=>{var r=Me(),t=zt(),s=r.rotl32,o=r.sum32,u=r.sum32_3,a=r.sum32_4,n=t.BlockHash;function c(){if(!(this instanceof c))return new c;n.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian=\"little\"}r.inherits(c,n),e.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(R,S){for(var P=this.h[0],O=this.h[1],y=this.h[2],d=this.h[3],N=this.h[4],B=P,_=O,j=y,J=d,C=N,G=0;G<80;G++){var A=o(s(a(P,g(G,O,y,d),R[x[G]+S],E(G)),w[G]),N);P=N,N=d,d=s(y,10),y=O,O=A,A=o(s(a(B,g(79-G,_,j,J),R[m[G]+S],p(G)),b[G]),C),B=C,C=J,J=s(j,10),j=_,_=A}A=u(this.h[1],y,J),this.h[1]=u(this.h[2],d,C),this.h[2]=u(this.h[3],N,B),this.h[3]=u(this.h[4],P,_),this.h[4]=u(this.h[0],O,j),this.h[0]=A},c.prototype._digest=function(R){return R===\"hex\"?r.toHex32(this.h,\"little\"):r.split32(this.h,\"little\")};function g(T,R,S,P){return T<=15?R^S^P:T<=31?R&S|~R&P:T<=47?(R|~S)^P:T<=63?R&P|S&~P:R^(S|~P)}function E(T){return T<=15?0:T<=31?1518500249:T<=47?1859775393:T<=63?2400959708:2840853838}function p(T){return T<=15?1352829926:T<=31?1548603684:T<=47?1836072691:T<=63?2053994217:0}var x=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],w=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]})),Io=ce(((e,r)=>{var t=Me(),s=Gt();function o(u,a,n){if(!(this instanceof o))return new o(u,a,n);this.Hash=u,this.blockSize=u.blockSize/8,this.outSize=u.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(a,n))}r.exports=o,o.prototype._init=function(a){a.length>this.blockSize&&(a=new this.Hash().update(a).digest()),s(a.length<=this.blockSize);for(var n=a.length;n<this.blockSize;n++)a.push(0);for(n=0;n<a.length;n++)a[n]^=54;for(this.inner=new this.Hash().update(a),n=0;n<a.length;n++)a[n]^=106;this.outer=new this.Hash().update(a)},o.prototype.update=function(a,n){return this.inner.update(a,n),this},o.prototype.digest=function(a){return this.outer.update(this.inner.digest()),this.outer.digest(a)}})),Dh=zr(ce((e=>{var r=e;r.utils=Me(),r.common=zt(),r.sha=ko(),r.ripemd=Ro(),r.hmac=Io(),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160}))(),1),Co=\"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict\",No=(e,r=21)=>(t=r)=>{let s=\"\",o=t|0;for(;o-- >0;)s+=e[Math.random()*e.length|0];return s},Oo=(e=21)=>{let r=\"\",t=e|0;for(;t-- >0;)r+=Co[Math.random()*64|0];return r};var Ne=e=>Math.floor(e*72*20),mr=(e=0)=>{let r=e;return()=>++r},Po=()=>mr(),Do=()=>mr(1),Lo=()=>mr(),Lh=Lo(),Fo=()=>mr(),Bo=Fo(),Di=()=>Oo().toLowerCase();var Rt=e=>No(\"1234567890abcdef\",e)(),Mo=()=>`${Rt(8)}-${Rt(4)}-${Rt(4)}-${Rt(4)}-${Rt(12)}`,et=e=>new Uint8Array(new TextEncoder().encode(e));var Li={EXTERNAL:\"External\"},Uo=(e,r,t,s)=>new fe({name:\"Relationship\",attributes:{id:{key:\"Id\",value:e},type:{key:\"Type\",value:r},target:{key:\"Target\",value:t},targetMode:{key:\"TargetMode\",value:s}}});var Ho=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{xmlns:\"xmlns\"})}},Ue=class extends ue{constructor(){super(\"Relationships\"),this.root.push(new Ho({xmlns:\"http://schemas.openxmlformats.org/package/2006/relationships\"}))}addRelationship(e,r,t,s){this.root.push(Uo(`rId${e}`,r,t,s))}get RelationshipCount(){return this.root.length-1}},Wo=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{id:\"w:id\",initials:\"w:initials\",author:\"w:author\",date:\"w:date\"})}};var jo=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{\"xmlns:cx\":\"xmlns:cx\",\"xmlns:cx1\":\"xmlns:cx1\",\"xmlns:cx2\":\"xmlns:cx2\",\"xmlns:cx3\":\"xmlns:cx3\",\"xmlns:cx4\":\"xmlns:cx4\",\"xmlns:cx5\":\"xmlns:cx5\",\"xmlns:cx6\":\"xmlns:cx6\",\"xmlns:cx7\":\"xmlns:cx7\",\"xmlns:cx8\":\"xmlns:cx8\",\"xmlns:mc\":\"xmlns:mc\",\"xmlns:aink\":\"xmlns:aink\",\"xmlns:am3d\":\"xmlns:am3d\",\"xmlns:o\":\"xmlns:o\",\"xmlns:r\":\"xmlns:r\",\"xmlns:m\":\"xmlns:m\",\"xmlns:v\":\"xmlns:v\",\"xmlns:wp14\":\"xmlns:wp14\",\"xmlns:wp\":\"xmlns:wp\",\"xmlns:w10\":\"xmlns:w10\",\"xmlns:w\":\"xmlns:w\",\"xmlns:w14\":\"xmlns:w14\",\"xmlns:w15\":\"xmlns:w15\",\"xmlns:w16cex\":\"xmlns:w16cex\",\"xmlns:w16cid\":\"xmlns:w16cid\",\"xmlns:w16\":\"xmlns:w16\",\"xmlns:w16sdtdh\":\"xmlns:w16sdtdh\",\"xmlns:w16se\":\"xmlns:w16se\",\"xmlns:wpg\":\"xmlns:wpg\",\"xmlns:wpi\":\"xmlns:wpi\",\"xmlns:wne\":\"xmlns:wne\",\"xmlns:wps\":\"xmlns:wps\",\"mc:Ignorable\":\"mc:Ignorable\"})}};var Tn=class extends ue{constructor({id:e,initials:r,author:t,date:s=new Date,children:o},u){super(\"w:comment\"),ee(this,\"paraId\",void 0),this.paraId=u,this.root.push(new Wo({id:e,initials:r,author:t,date:s.toISOString()}));for(let a of o)this.root.push(a)}prepForXml(e){let r=super.prepForXml(e);if(!r||!this.paraId)return r;let t=r[\"w:comment\"];if(!Array.isArray(t))return r;for(let s=t.length-1;s>=0;s--){let o=t[s];if(o&&typeof o==\"object\"&&\"w:p\"in o){let u=o[\"w:p\"];Array.isArray(u)&&u.unshift({_attr:{\"w14:paraId\":this.paraId,\"w14:textId\":this.paraId}});break}}return r}},Go=e=>(e+1).toString(16).toUpperCase().padStart(8,\"0\"),zo=class extends ue{constructor({children:e}){super(\"w:comments\"),ee(this,\"relationships\",void 0),ee(this,\"threadData\",void 0),ee(this,\"commentIdsData\",void 0),ee(this,\"isEmpty\",void 0),this.isEmpty=e.length===0,this.root.push(new jo({\"xmlns:cx\":\"http://schemas.microsoft.com/office/drawing/2014/chartex\",\"xmlns:cx1\":\"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex\",\"xmlns:cx2\":\"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex\",\"xmlns:cx3\":\"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex\",\"xmlns:cx4\":\"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex\",\"xmlns:cx5\":\"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex\",\"xmlns:cx6\":\"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex\",\"xmlns:cx7\":\"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex\",\"xmlns:cx8\":\"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex\",\"xmlns:mc\":\"http://schemas.openxmlformats.org/markup-compatibility/2006\",\"xmlns:aink\":\"http://schemas.microsoft.com/office/drawing/2016/ink\",\"xmlns:am3d\":\"http://schemas.microsoft.com/office/drawing/2017/model3d\",\"xmlns:o\":\"urn:schemas-microsoft-com:office:office\",\"xmlns:r\":\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\",\"xmlns:m\":\"http://schemas.openxmlformats.org/officeDocument/2006/math\",\"xmlns:v\":\"urn:schemas-microsoft-com:vml\",\"xmlns:wp14\":\"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing\",\"xmlns:wp\":\"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing\",\"xmlns:w10\":\"urn:schemas-microsoft-com:office:word\",\"xmlns:w\":\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\",\"xmlns:w14\":\"http://schemas.microsoft.com/office/word/2010/wordml\",\"xmlns:w15\":\"http://schemas.microsoft.com/office/word/2012/wordml\",\"xmlns:w16cex\":\"http://schemas.microsoft.com/office/word/2018/wordml/cex\",\"xmlns:w16cid\":\"http://schemas.microsoft.com/office/word/2016/wordml/cid\",\"xmlns:w16\":\"http://schemas.microsoft.com/office/word/2018/wordml\",\"xmlns:w16sdtdh\":\"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash\",\"xmlns:w16se\":\"http://schemas.microsoft.com/office/word/2015/wordml/symex\",\"xmlns:wpg\":\"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup\",\"xmlns:wpi\":\"http://schemas.microsoft.com/office/word/2010/wordprocessingInk\",\"xmlns:wne\":\"http://schemas.microsoft.com/office/word/2006/wordml\",\"xmlns:wps\":\"http://schemas.microsoft.com/office/word/2010/wordprocessingShape\",\"mc:Ignorable\":\"w14 w15 wp14\"}));let r=e.some(s=>s.parentId!==void 0),t=e.some(s=>s.durableId!==void 0);if(r||t){let s=new Map(e.map(o=>[o.id,Go(o.id)]));for(let o of e)this.root.push(new Tn(o,s.get(o.id)));r&&(this.threadData=e.map(o=>({paraId:s.get(o.id),parentParaId:o.parentId!==void 0?s.get(o.parentId):void 0,done:o.resolved}))),t&&(this.commentIdsData=e.map(o=>{var u;return{paraId:s.get(o.id),durableId:(u=o.durableId)!==null&&u!==void 0?u:s.get(o.id)}}))}else for(let s of e)this.root.push(new Tn(s));this.relationships=new Ue}get Relationships(){return this.relationships}get ThreadData(){return this.threadData}get CommentIdsData(){return this.commentIdsData}get IsEmpty(){return this.isEmpty}},$o=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{\"xmlns:wpc\":\"xmlns:wpc\",\"xmlns:mc\":\"xmlns:mc\",\"xmlns:w15\":\"xmlns:w15\",\"mc:Ignorable\":\"mc:Ignorable\"})}},Ko=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{paraId:\"w15:paraId\",paraIdParent:\"w15:paraIdParent\",done:\"w15:done\"})}},Vo=class extends ue{constructor(e){super(\"w15:commentEx\"),this.root.push(new Ko({paraId:e.paraId,paraIdParent:e.parentParaId,done:e.done!==void 0?e.done?\"1\":\"0\":void 0}))}},qo=class extends ue{constructor(e){super(\"w15:commentsEx\"),this.root.push(new $o({\"xmlns:wpc\":\"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas\",\"xmlns:mc\":\"http://schemas.openxmlformats.org/markup-compatibility/2006\",\"xmlns:w15\":\"http://schemas.microsoft.com/office/word/2012/wordml\",\"mc:Ignorable\":\"w15\"}));for(let r of e)this.root.push(new Vo(r))}},Xo=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{paraId:\"w16cid:paraId\",durableId:\"w16cid:durableId\"})}},Yo=class extends ue{constructor(e){super(\"w16cid:commentId\"),this.root.push(new Xo({paraId:e.paraId,durableId:e.durableId}))}},Zo=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{\"xmlns:w16cid\":\"xmlns:w16cid\",\"xmlns:mc\":\"xmlns:mc\",\"mc:Ignorable\":\"mc:Ignorable\"})}},Jo=class extends ue{constructor(e){super(\"w16cid:commentsIds\"),this.root.push(new Zo({\"xmlns:w16cid\":\"http://schemas.microsoft.com/office/word/2016/wordml/cid\",\"xmlns:mc\":\"http://schemas.openxmlformats.org/markup-compatibility/2006\",\"mc:Ignorable\":\"w16cid\"}));for(let r of e)this.root.push(new Yo(r))}};var Qo=class extends js{constructor(){super(\"w:endnoteRef\")}};var el=class extends ue{constructor(){super(\"w:pageBreakBefore\")}},gt={AT_LEAST:\"atLeast\",EXACTLY:\"exactly\",EXACT:\"exact\",AUTO:\"auto\"},tl=({after:e,before:r,line:t,lineRule:s,beforeAutoSpacing:o,afterAutoSpacing:u})=>new fe({name:\"w:spacing\",attributes:{after:{key:\"w:after\",value:e},before:{key:\"w:before\",value:r},line:{key:\"w:line\",value:t},lineRule:{key:\"w:lineRule\",value:s},beforeAutoSpacing:{key:\"w:beforeAutospacing\",value:o},afterAutoSpacing:{key:\"w:afterAutospacing\",value:u}}}),Fi={HEADING_1:\"Heading1\",HEADING_2:\"Heading2\",HEADING_3:\"Heading3\",HEADING_4:\"Heading4\",HEADING_5:\"Heading5\",HEADING_6:\"Heading6\",TITLE:\"Title\"},Ot=e=>new fe({name:\"w:pStyle\",attributes:{val:{key:\"w:val\",value:e}}}),Sn={LEFT:\"left\",RIGHT:\"right\",CENTER:\"center\",BAR:\"bar\",CLEAR:\"clear\",DECIMAL:\"decimal\",END:\"end\",NUM:\"num\",START:\"start\"};var rl=({type:e,position:r,leader:t})=>new fe({name:\"w:tab\",attributes:{val:{key:\"w:val\",value:e},pos:{key:\"w:pos\",value:Be(r)},leader:{key:\"w:leader\",value:t}}}),nl=e=>new fe({name:\"w:tabs\",children:e.map(r=>rl(r))}),Er=class extends ue{constructor(e,r){super(\"w:numPr\"),this.root.push(new il(r)),this.root.push(new al(e))}},il=class extends ue{constructor(e){if(super(\"w:ilvl\"),e>9)throw new Error(\"Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7\");this.root.push(new Re({val:e}))}},al=class extends ue{constructor(e){super(\"w:numId\"),this.root.push(new Re({val:typeof e==\"string\"?`{${e}}`:e}))}},Bi=class extends ue{constructor(...e){super(...e),ee(this,\"fileChild\",Symbol())}},sl=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{id:\"r:id\",history:\"w:history\",anchor:\"w:anchor\"})}};var Mi=class extends ue{constructor(e,r,t){super(\"w:hyperlink\"),ee(this,\"linkId\",void 0),this.linkId=r;let s=new sl({history:1,anchor:t||void 0,id:t?void 0:`rId${this.linkId}`});this.root.push(s),e.forEach(o=>{this.root.push(o)})}};var Ui=class extends ue{constructor(e){super(\"w:externalHyperlink\"),ee(this,\"options\",void 0),this.options=e}},ol=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{id:\"w:id\",name:\"w:name\"})}},ll=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{id:\"w:id\"})}},ul=class{constructor(e){ee(this,\"start\",void 0),ee(this,\"children\",void 0),ee(this,\"end\",void 0);let r=Bo();this.start=new cl(e.id,r),this.children=e.children,this.end=new hl(r)}},cl=class extends ue{constructor(e,r){super(\"w:bookmarkStart\");let t=new ol({name:e,id:r});this.root.push(t)}},hl=class extends ue{constructor(e){super(\"w:bookmarkEnd\");let r=new ll({id:e});this.root.push(r)}};var dl=e=>new fe({name:\"w:outlineLvl\",attributes:{val:{key:\"w:val\",value:e}}});var Qt=({id:e,fontKey:r,subsetted:t},s)=>new fe({name:s,attributes:he({id:{key:\"r:id\",value:e}},r?{fontKey:{key:\"w:fontKey\",value:`{${r.toUpperCase()}}`}}:{}),children:[...t?[new le(\"w:subsetted\",t)]:[]]}),fl=({name:e,altName:r,panose1:t,charset:s,family:o,notTrueType:u,pitch:a,sig:n,embedRegular:c,embedBold:g,embedItalic:E,embedBoldItalic:p})=>new fe({name:\"w:font\",attributes:{name:{key:\"w:name\",value:e}},children:[...r?[kt(\"w:altName\",r)]:[],...t?[kt(\"w:panose1\",t)]:[],...s?[kt(\"w:charset\",s)]:[],...o?[kt(\"w:family\",o)]:[],...u?[new le(\"w:notTrueType\",u)]:[],...a?[kt(\"w:pitch\",a)]:[],...n?[new fe({name:\"w:sig\",attributes:{usb0:{key:\"w:usb0\",value:n.usb0},usb1:{key:\"w:usb1\",value:n.usb1},usb2:{key:\"w:usb2\",value:n.usb2},usb3:{key:\"w:usb3\",value:n.usb3},csb0:{key:\"w:csb0\",value:n.csb0},csb1:{key:\"w:csb1\",value:n.csb1}}})]:[],...c?[Qt(c,\"w:embedRegular\")]:[],...g?[Qt(g,\"w:embedBold\")]:[],...E?[Qt(E,\"w:embedItalic\")]:[],...p?[Qt(p,\"w:embedBoldItalic\")]:[]]}),pl=({name:e,index:r,fontKey:t,characterSet:s})=>fl({name:e,sig:{usb0:\"E0002AFF\",usb1:\"C000247B\",usb2:\"00000009\",usb3:\"00000000\",csb0:\"000001FF\",csb1:\"00000000\"},charset:s,family:\"auto\",pitch:\"variable\",embedRegular:{fontKey:t,id:`rId${r}`}}),ml=e=>new fe({name:\"w:fonts\",attributes:{mc:{key:\"xmlns:mc\",value:\"http://schemas.openxmlformats.org/markup-compatibility/2006\"},r:{key:\"xmlns:r\",value:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\"},w:{key:\"xmlns:w\",value:\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\"},w14:{key:\"xmlns:w14\",value:\"http://schemas.microsoft.com/office/word/2010/wordml\"},w15:{key:\"xmlns:w15\",value:\"http://schemas.microsoft.com/office/word/2012/wordml\"},w16cex:{key:\"xmlns:w16cex\",value:\"http://schemas.microsoft.com/office/word/2018/wordml/cex\"},w16cid:{key:\"xmlns:w16cid\",value:\"http://schemas.microsoft.com/office/word/2016/wordml/cid\"},w16:{key:\"xmlns:w16\",value:\"http://schemas.microsoft.com/office/word/2018/wordml\"},w16sdtdh:{key:\"xmlns:w16sdtdh\",value:\"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash\"},w16se:{key:\"xmlns:w16se\",value:\"http://schemas.microsoft.com/office/word/2015/wordml/symex\"},Ignorable:{key:\"mc:Ignorable\",value:\"w14 w15 w16se w16cid w16 w16cex w16sdtdh\"}},children:e.map((r,t)=>pl({name:r.name,index:t+1,fontKey:r.fontKey,characterSet:r.characterSet}))}),Hi=class{constructor(e){ee(this,\"options\",void 0),ee(this,\"fontTable\",void 0),ee(this,\"relationships\",void 0),ee(this,\"fontOptionsWithKey\",[]),this.options=e,this.fontOptionsWithKey=e.map(r=>he(he({},r),{},{fontKey:Mo()})),this.fontTable=ml(this.fontOptionsWithKey),this.relationships=new Ue;for(let r=0;r<e.length;r++)this.relationships.addRelationship(r+1,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font\",`fonts/font${r+1}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}},vl=()=>new fe({name:\"w:wordWrap\",attributes:{val:{key:\"w:val\",value:0}}});var wl=e=>{var r,t;return new fe({name:\"w:framePr\",attributes:{anchorLock:{key:\"w:anchorLock\",value:e.anchorLock},dropCap:{key:\"w:dropCap\",value:e.dropCap},width:{key:\"w:w\",value:e.width},height:{key:\"w:h\",value:e.height},x:{key:\"w:x\",value:e.position?e.position.x:void 0},y:{key:\"w:y\",value:e.position?e.position.y:void 0},anchorHorizontal:{key:\"w:hAnchor\",value:e.anchor.horizontal},anchorVertical:{key:\"w:vAnchor\",value:e.anchor.vertical},spaceHorizontal:{key:\"w:hSpace\",value:(r=e.space)===null||r===void 0?void 0:r.horizontal},spaceVertical:{key:\"w:vSpace\",value:(t=e.space)===null||t===void 0?void 0:t.vertical},rule:{key:\"w:hRule\",value:e.rule},alignmentX:{key:\"w:xAlign\",value:e.alignment?e.alignment.x:void 0},alignmentY:{key:\"w:yAlign\",value:e.alignment?e.alignment.y:void 0},lines:{key:\"w:lines\",value:e.lines},wrap:{key:\"w:wrap\",value:e.wrap}}})},it=class extends Ve{constructor(e,{implicitListParagraphStyle:r=!0}={}){if(super(\"w:pPr\",e?.includeIfEmpty),ee(this,\"numberingReferences\",[]),!e)return this;if(e.heading&&this.push(Ot(e.heading)),r&&(e.bullet&&this.push(Ot(\"ListParagraph\")),e.numbering&&!e.numbering.custom&&!e.style&&!e.heading&&this.push(Ot(\"ListParagraph\"))),e.style&&this.push(Ot(e.style)),e.keepNext!==void 0&&this.push(new le(\"w:keepNext\",e.keepNext)),e.keepLines!==void 0&&this.push(new le(\"w:keepLines\",e.keepLines)),e.pageBreakBefore&&this.push(new el),e.frame&&this.push(wl(e.frame)),e.widowControl!==void 0&&this.push(new le(\"w:widowControl\",e.widowControl)),e.bullet&&this.push(new Er(1,e.bullet.level)),e.numbering){var t,s;this.numberingReferences.push({reference:e.numbering.reference,instance:(t=e.numbering.instance)!==null&&t!==void 0?t:0}),this.push(new Er(`${e.numbering.reference}-${(s=e.numbering.instance)!==null&&s!==void 0?s:0}`,e.numbering.level))}else e.numbering===!1&&this.push(new Er(0,0));e.border&&this.push(new to(e.border)),e.thematicBreak&&this.push(new ro),e.shading&&this.push(pr(e.shading)),e.wordWrap&&this.push(vl()),e.overflowPunctuation&&this.push(new le(\"w:overflowPunct\",e.overflowPunctuation));let o=[...e.rightTabStop!==void 0?[{type:Sn.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:Sn.LEFT,position:e.leftTabStop}]:[]];o.length>0&&this.push(nl(o)),e.bidirectional!==void 0&&this.push(new le(\"w:bidi\",e.bidirectional)),e.spacing&&this.push(tl(e.spacing)),e.indent&&this.push(no(e.indent)),e.contextualSpacing!==void 0&&this.push(new le(\"w:contextualSpacing\",e.contextualSpacing)),e.alignment&&this.push(Si(e.alignment)),e.outlineLevel!==void 0&&this.push(dl(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new le(\"w:suppressLineNumbers\",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new le(\"w:autoSpaceDN\",e.autoSpaceEastAsianText)),e.run&&this.push(new Eo(e.run)),e.revision&&this.push(new gl(e.revision))}push(e){this.root.push(e)}prepForXml(e){if(!(e.viewWrapper instanceof Hi))for(let r of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(r.reference,r.instance);return super.prepForXml(e)}},gl=class extends ue{constructor(e){super(\"w:pPrChange\"),this.root.push(new Ce({id:e.id,author:e.author,date:e.date})),this.root.push(new it(he(he({},e),{},{includeIfEmpty:!0})))}},ze=class extends Bi{constructor(e){if(super(\"w:p\"),ee(this,\"properties\",void 0),typeof e==\"string\")return this.properties=new it({}),this.root.push(this.properties),this.root.push(new ir(e)),this;if(this.properties=new it(e),this.root.push(this.properties),e.text&&this.root.push(new ir(e.text)),e.children)for(let r of e.children){if(r instanceof ul){this.root.push(r.start);for(let t of r.children)this.root.push(t);this.root.push(r.end);continue}this.root.push(r)}}prepForXml(e){for(let r of this.root)if(r instanceof Ui){let t=this.root.indexOf(r),s=new Mi(r.options.children,Di());e.viewWrapper.Relationships.addRelationship(s.linkId,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink\",r.options.link,Li.EXTERNAL),this.root[t]=s}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}};function yl(e,r){if(e==null)return{};var t={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(r.includes(s))continue;t[s]=e[s]}return t}function bl(e,r){if(e==null)return{};var t,s,o=yl(e,r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(s=0;s<u.length;s++)t=u[s],r.includes(t)||{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var _l={TOP:\"top\",CENTER:\"center\",BOTTOM:\"bottom\"},Fh=he(he({},_l),{},{BOTH:\"both\"});var Wi=e=>new fe({name:\"w:vAlign\",attributes:{verticalAlign:{key:\"w:val\",value:e}}}),El=({space:e,count:r,separate:t,equalWidth:s,children:o})=>new fe({name:\"w:cols\",attributes:{space:{key:\"w:space\",value:e===void 0?void 0:Se(e)},count:{key:\"w:num\",value:r===void 0?void 0:Ae(r)},separate:{key:\"w:sep\",value:t},equalWidth:{key:\"w:equalWidth\",value:s}},children:!s&&o?o:void 0});var xl=({type:e,linePitch:r,charSpace:t})=>new fe({name:\"w:docGrid\",attributes:{type:{key:\"w:type\",value:e},linePitch:{key:\"w:linePitch\",value:Ae(r)},charSpace:{key:\"w:charSpace\",value:t?Ae(t):void 0}}}),ft={DEFAULT:\"default\",FIRST:\"first\",EVEN:\"even\"},An={HEADER:\"w:headerReference\",FOOTER:\"w:footerReference\"},xr=(e,r)=>new fe({name:e,attributes:{type:{key:\"w:type\",value:r.type||ft.DEFAULT},id:{key:\"r:id\",value:`rId${r.id}`}}});var Tl=({countBy:e,start:r,restart:t,distance:s})=>new fe({name:\"w:lnNumType\",attributes:{countBy:{key:\"w:countBy\",value:e===void 0?void 0:Ae(e)},start:{key:\"w:start\",value:r===void 0?void 0:Ae(r)},restart:{key:\"w:restart\",value:t},distance:{key:\"w:distance\",value:s===void 0?void 0:Se(s)}}});var kn=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{display:\"w:display\",offsetFrom:\"w:offsetFrom\",zOrder:\"w:zOrder\"})}},Sl=class extends Ve{constructor(e){if(super(\"w:pgBorders\"),!e)return this;e.pageBorders?this.root.push(new kn({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new kn({})),e.pageBorderTop&&this.root.push(be(\"w:top\",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(be(\"w:left\",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(be(\"w:bottom\",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(be(\"w:right\",e.pageBorderRight))}},Al=(e,r,t,s,o,u,a)=>new fe({name:\"w:pgMar\",attributes:{top:{key:\"w:top\",value:Be(e)},right:{key:\"w:right\",value:Se(r)},bottom:{key:\"w:bottom\",value:Be(t)},left:{key:\"w:left\",value:Se(s)},header:{key:\"w:header\",value:Se(o)},footer:{key:\"w:footer\",value:Se(u)},gutter:{key:\"w:gutter\",value:Se(a)}}});var kl=({start:e,formatType:r,separator:t})=>new fe({name:\"w:pgNumType\",attributes:{start:{key:\"w:start\",value:e===void 0?void 0:Ae(e)},formatType:{key:\"w:fmt\",value:r},separator:{key:\"w:chapSep\",value:t}}}),ar={PORTRAIT:\"portrait\",LANDSCAPE:\"landscape\"},Rl=({width:e,height:r,orientation:t,code:s})=>{let o=Se(e),u=Se(r);return new fe({name:\"w:pgSz\",attributes:{width:{key:\"w:w\",value:t===ar.LANDSCAPE?u:o},height:{key:\"w:h\",value:t===ar.LANDSCAPE?o:u},orientation:{key:\"w:orient\",value:t},code:{key:\"w:code\",value:s}}})};var Il=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{val:\"w:val\"})}},Cl=class extends ue{constructor(e){super(\"w:textDirection\"),this.root.push(new Il({val:e}))}};var Nl=e=>new fe({name:\"w:type\",attributes:{val:{key:\"w:val\",value:e}}}),Le={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},er={WIDTH:11906,HEIGHT:16838,ORIENTATION:ar.PORTRAIT},Wr=class ji extends ue{constructor({page:{size:{width:r=er.WIDTH,height:t=er.HEIGHT,orientation:s=er.ORIENTATION,code:o}={},margin:{top:u=Le.TOP,right:a=Le.RIGHT,bottom:n=Le.BOTTOM,left:c=Le.LEFT,header:g=Le.HEADER,footer:E=Le.FOOTER,gutter:p=Le.GUTTER}={},pageNumbers:x={},borders:m,textDirection:w}={},grid:{linePitch:b=360,charSpace:T,type:R}={},headerWrapperGroup:S={},footerWrapperGroup:P={},lineNumbers:O,titlePage:y,verticalAlign:d,column:N,type:B,revision:_}={}){super(\"w:sectPr\"),ee(this,\"availableTextWidth\",void 0),this.availableTextWidth=ji.calculateAvailableTextWidth({pageWidth:s===ar.LANDSCAPE?t:r,left:c,right:a,gutter:p,column:N}),this.addHeaderFooterGroup(An.HEADER,S),this.addHeaderFooterGroup(An.FOOTER,P),B&&this.root.push(Nl(B)),this.root.push(Rl({width:r,height:t,orientation:s,code:o})),this.root.push(Al(u,a,n,c,g,E,p)),m&&this.root.push(new Sl(m)),O&&this.root.push(Tl(O)),this.root.push(kl(x)),N&&this.root.push(El(N)),d&&this.root.push(Wi(d)),y!==void 0&&this.root.push(new le(\"w:titlePg\",y)),w&&this.root.push(new Cl(w)),this.root.push(xl({linePitch:b,charSpace:T,type:R})),_&&this.root.push(new Ol(_))}get AvailableTextWidth(){return this.availableTextWidth}static calculateAvailableTextWidth({pageWidth:r,left:t,right:s,gutter:o,column:u}){var a,n;let c=ht(r)-ht(t)-ht(s)-ht(o),g=(a=u?.count)!==null&&a!==void 0?a:1;return g<=1?c:(c-ht((n=u?.space)!==null&&n!==void 0?n:720)*(g-1))/g}addHeaderFooterGroup(r,t){t.default&&this.root.push(xr(r,{type:ft.DEFAULT,id:t.default.View.ReferenceId})),t.first&&this.root.push(xr(r,{type:ft.FIRST,id:t.first.View.ReferenceId})),t.even&&this.root.push(xr(r,{type:ft.EVEN,id:t.even.View.ReferenceId}))}},Ol=class extends ue{constructor(e){super(\"w:sectPrChange\"),this.root.push(new Ce({id:e.id,author:e.author,date:e.date})),this.root.push(new Wr(e))}},Gi=class extends ue{constructor(){super(\"w:body\"),ee(this,\"sections\",[]),ee(this,\"sectionParagraphs\",new Map)}getSectionPropertiesFor(e){let r=e?this.root.indexOf(e)+1:0;for(let t=r;t<this.root.length;t++){let s=this.root[t];if(s instanceof Wr)return s;let o=this.sectionParagraphs.get(s);if(o)return o}return this.sections[this.sections.length-1]}addSection(e){let r=this.sections.pop(),t=this.createSectionParagraph(r);this.root.push(t),r&&this.sectionParagraphs.set(t,r),this.sections.push(new Wr(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){let r=new ze({}),t=new it({});return t.push(e),r.addChildElement(t),r}},tt={AUTO:\"auto\",DXA:\"dxa\",NIL:\"nil\",PERCENTAGE:\"pct\"},sr=(e,{type:r=tt.AUTO,size:t})=>{let s=t;return r===tt.PERCENTAGE&&typeof t==\"number\"&&(s=Math.round(t*50)),new fe({name:e,attributes:{type:{key:\"w:type\",value:r},size:{key:\"w:w\",value:Ti(s)}}})},Rn=er.WIDTH-Le.LEFT-Le.RIGHT-Le.GUTTER,zi=e=>e.options.columnSpan||1,$i=(e,r)=>{if(!e)return;let{type:t=tt.AUTO,size:s}=e;if(t!==tt.PERCENTAGE&&t!==tt.DXA)return;let o=typeof s==\"number\"?t===tt.PERCENTAGE?s/100*r:s:s.endsWith(\"%\")?Number(s.slice(0,-1))/100*r:ht(s);return o>0?o:void 0},Pl=(e,r)=>{var t;return(t=$i(e,r))!==null&&t!==void 0?t:r},Dl=e=>Math.max(0,...e.map(r=>r.cells.reduce((t,s)=>t+zi(s),0))),In=({rows:e,width:r,availableWidth:t})=>{let s=Dl(e);if(s===0)return[];let o=Pl(r,t),u=Array.from({length:s},()=>{}),a=[];for(let E of e){let p=0;for(let x of E.cells){let m=zi(x),w=$i(x.options.width,o);if(w!==void 0)if(m===1){var n,c;(c=u[n=p])!==null&&c!==void 0||(u[n]=w)}else a.push({start:p,span:m,width:w});p+=m}}for(let{start:E,span:p,width:x}of a){let m=Array.from({length:p},(T,R)=>E+R).filter(T=>T<s),w=m.filter(T=>u[T]===void 0),b=x-m.reduce((T,R)=>{var S;return T+((S=u[R])!==null&&S!==void 0?S:0)},0);if(w.length>0&&b>0)for(let T of w)u[T]=b/w.length}let g=u.flatMap((E,p)=>E===void 0?[p]:[]);if(g.length>0){let E=o-u.reduce((x,m)=>x+(m??0),0),p=E>0?E/g.length:o/s;for(let x of g)u[x]=p}return u.map(E=>Math.round(E))},Ll=e=>new fe({name:\"w:gridCol\",attributes:e!==void 0?{width:{key:\"w:w\",value:Se(e)}}:void 0}),tr=class extends ue{constructor(e,r){super(\"w:tblGrid\");for(let t of e)this.root.push(Ll(t));r&&this.root.push(new Bl(r))}},Fl=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{id:\"w:id\"})}},Bl=class extends ue{constructor(e){super(\"w:tblGridChange\"),this.root.push(new Fl({id:e.id})),this.root.push(new tr(e.columnWidths))}};var Ml=class extends ue{constructor(e){super(\"w:ins\"),this.root.push(new Ce({id:e.id,author:e.author,date:e.date}))}},Ul=class extends ue{constructor(e){super(\"w:del\"),this.root.push(new Ce({id:e.id,author:e.author,date:e.date}))}},Hl=class extends ue{constructor(e){super(\"w:cellIns\"),this.root.push(new Ce({id:e.id,author:e.author,date:e.date}))}},Wl=class extends ue{constructor(e){super(\"w:cellDel\"),this.root.push(new Ce({id:e.id,author:e.author,date:e.date}))}};var jl=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{id:\"w:id\",author:\"w:author\",date:\"w:date\",verticalMerge:\"w:vMerge\",verticalMergeOriginal:\"w:vMergeOrig\"})}},Gl=class extends ue{constructor(e){super(\"w:cellMerge\"),this.root.push(new jl(e))}},Ki=({marginUnitType:e=tt.DXA,top:r,left:t,bottom:s,right:o})=>[{name:\"w:top\",size:r},{name:\"w:left\",size:t},{name:\"w:bottom\",size:s},{name:\"w:right\",size:o}].filter(u=>u.size!==void 0).map(({name:u,size:a})=>sr(u,{type:e,size:a})),zl=e=>{let r=Ki(e);if(r.length!==0)return new fe({name:\"w:tblCellMar\",children:r})},$l=e=>{let r=Ki(e);if(r.length!==0)return new fe({name:\"w:tcMar\",children:r})},Kl=class extends Ve{constructor(e){super(\"w:tcBorders\"),e.top&&this.root.push(be(\"w:top\",e.top)),e.start&&this.root.push(be(\"w:start\",e.start)),e.left&&this.root.push(be(\"w:left\",e.left)),e.bottom&&this.root.push(be(\"w:bottom\",e.bottom)),e.end&&this.root.push(be(\"w:end\",e.end)),e.right&&this.root.push(be(\"w:right\",e.right))}},Vl=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{val:\"w:val\"})}},ql=class extends ue{constructor(e){super(\"w:gridSpan\"),this.root.push(new Vl({val:Ae(e)}))}},Vi={CONTINUE:\"continue\",RESTART:\"restart\"},Xl=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{val:\"w:val\"})}},Cn=class extends ue{constructor(e){super(\"w:vMerge\"),this.root.push(new Xl({val:e}))}};var Yl=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{val:\"w:val\"})}},Zl=class extends ue{constructor(e){super(\"w:textDirection\"),this.root.push(new Yl({val:e}))}},qi=class extends Ve{constructor(e){if(super(\"w:tcPr\",e.includeIfEmpty),e.width&&this.root.push(sr(\"w:tcW\",e.width)),e.columnSpan&&this.root.push(new ql(e.columnSpan)),e.verticalMerge?this.root.push(new Cn(e.verticalMerge)):e.rowSpan&&e.rowSpan>1&&this.root.push(new Cn(Vi.RESTART)),e.borders&&this.root.push(new Kl(e.borders)),e.shading&&this.root.push(pr(e.shading)),e.margins){let r=$l(e.margins);r&&this.root.push(r)}e.textDirection&&this.root.push(new Zl(e.textDirection)),e.verticalAlign&&this.root.push(Wi(e.verticalAlign)),e.insertion&&this.root.push(new Hl(e.insertion)),e.deletion&&this.root.push(new Wl(e.deletion)),e.cellMerge&&this.root.push(new Gl(e.cellMerge)),e.revision&&this.root.push(new Jl(e.revision))}},Jl=class extends ue{constructor(e){super(\"w:tcPrChange\"),this.root.push(new Ce({id:e.id,author:e.author,date:e.date})),this.root.push(new qi(he(he({},e),{},{includeIfEmpty:!0})))}},Mt=class extends ue{constructor(e){super(\"w:tc\"),ee(this,\"options\",void 0),this.options=e,this.root.push(new qi(e));for(let r of e.children)this.root.push(r)}prepForXml(e){return this.root[this.root.length-1]instanceof ze||this.root.push(new ze({})),super.prepForXml(e)}},jr=(e,r)=>r?new le(e):new Ke(e,\"off\"),ot={style:on.NONE,size:0,color:\"auto\"},lt={style:on.SINGLE,size:4,color:\"auto\"},Xi=class extends ue{constructor(e){var r,t,s,o,u,a;super(\"w:tblBorders\"),this.root.push(be(\"w:top\",(r=e.top)!==null&&r!==void 0?r:lt)),this.root.push(be(\"w:left\",(t=e.left)!==null&&t!==void 0?t:lt)),this.root.push(be(\"w:bottom\",(s=e.bottom)!==null&&s!==void 0?s:lt)),this.root.push(be(\"w:right\",(o=e.right)!==null&&o!==void 0?o:lt)),this.root.push(be(\"w:insideH\",(u=e.insideHorizontal)!==null&&u!==void 0?u:lt)),this.root.push(be(\"w:insideV\",(a=e.insideVertical)!==null&&a!==void 0?a:lt))}};ee(Xi,\"NONE\",{top:ot,bottom:ot,left:ot,right:ot,insideHorizontal:ot,insideVertical:ot});var Ql=({horizontalAnchor:e,verticalAnchor:r,absoluteHorizontalPosition:t,relativeHorizontalPosition:s,absoluteVerticalPosition:o,relativeVerticalPosition:u,bottomFromText:a,topFromText:n,leftFromText:c,rightFromText:g})=>new fe({name:\"w:tblpPr\",attributes:{leftFromText:{key:\"w:leftFromText\",value:c===void 0?void 0:Se(c)},rightFromText:{key:\"w:rightFromText\",value:g===void 0?void 0:Se(g)},topFromText:{key:\"w:topFromText\",value:n===void 0?void 0:Se(n)},bottomFromText:{key:\"w:bottomFromText\",value:a===void 0?void 0:Se(a)},absoluteHorizontalPosition:{key:\"w:tblpX\",value:t===void 0?void 0:Be(t)},absoluteVerticalPosition:{key:\"w:tblpY\",value:o===void 0?void 0:Be(o)},horizontalAnchor:{key:\"w:horzAnchor\",value:e},relativeHorizontalPosition:{key:\"w:tblpXSpec\",value:s},relativeVerticalPosition:{key:\"w:tblpYSpec\",value:u},verticalAnchor:{key:\"w:vertAnchor\",value:r}}});var eu=e=>new fe({name:\"w:tblLayout\",attributes:{type:{key:\"w:type\",value:e}}}),tu={DXA:\"dxa\",NIL:\"nil\"},Yi=({type:e=tu.DXA,value:r})=>new fe({name:\"w:tblCellSpacing\",attributes:{type:{key:\"w:type\",value:e},value:{key:\"w:w\",value:Ti(r)}}}),ru=({firstRow:e,lastRow:r,firstColumn:t,lastColumn:s,noHBand:o,noVBand:u})=>new fe({name:\"w:tblLook\",attributes:{firstRow:{key:\"w:firstRow\",value:e},lastRow:{key:\"w:lastRow\",value:r},firstColumn:{key:\"w:firstColumn\",value:t},lastColumn:{key:\"w:lastColumn\",value:s},noHBand:{key:\"w:noHBand\",value:o},noVBand:{key:\"w:noVBand\",value:u}}}),nu=e=>new fe({name:\"w:tblOverlap\",attributes:{val:{key:\"w:val\",value:e}}}),Zi=class extends Ve{constructor(e){var r;if(super(\"w:tblPr\",e.includeIfEmpty),e.style&&this.root.push(new Ke(\"w:tblStyle\",e.style)),e.float&&this.root.push(Ql(e.float)),!((r=e.float)===null||r===void 0)&&r.overlap&&this.root.push(nu(e.float.overlap)),e.visuallyRightToLeft!==void 0&&this.root.push(jr(\"w:bidiVisual\",e.visuallyRightToLeft)),e.width&&this.root.push(sr(\"w:tblW\",e.width)),e.alignment&&this.root.push(Si(e.alignment)),e.cellSpacing&&this.root.push(Yi(e.cellSpacing)),e.indent&&this.root.push(sr(\"w:tblInd\",e.indent)),e.borders&&this.root.push(new Xi(e.borders)),e.shading&&this.root.push(pr(e.shading)),e.layout&&this.root.push(eu(e.layout)),e.cellMargin){let t=zl(e.cellMargin);t&&this.root.push(t)}e.tableLook&&this.root.push(ru(e.tableLook)),e.revision&&this.root.push(new iu(e.revision))}},iu=class extends ue{constructor(e){super(\"w:tblPrChange\"),this.root.push(new Ce({id:e.id,author:e.author,date:e.date})),this.root.push(new Zi(he(he({},e),{},{includeIfEmpty:!0})))}};var au=(e,r)=>new fe({name:\"w:trHeight\",attributes:{value:{key:\"w:val\",value:Se(e)},rule:{key:\"w:hRule\",value:r}}}),Ji=class extends Ve{constructor(e){super(\"w:trPr\",e.includeIfEmpty),e.cantSplit!==void 0&&this.root.push(jr(\"w:cantSplit\",e.cantSplit)),e.tableHeader!==void 0&&this.root.push(jr(\"w:tblHeader\",e.tableHeader)),e.height&&this.root.push(au(e.height.value,e.height.rule)),e.cellSpacing&&this.root.push(Yi(e.cellSpacing)),e.insertion&&this.root.push(new Ml(e.insertion)),e.deletion&&this.root.push(new Ul(e.deletion)),e.revision&&this.root.push(new su(e.revision))}},su=class extends ue{constructor(e){super(\"w:trPrChange\"),this.root.push(new Ce({id:e.id,author:e.author,date:e.date})),this.root.push(new Ji(he(he({},e),{},{includeIfEmpty:!0})))}},cn=class extends ue{constructor(e){super(\"w:tr\"),ee(this,\"options\",void 0),this.options=e,this.root.push(new Ji(e));for(let r of e.children)this.root.push(r)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(e=>e instanceof Mt)}addCellToIndex(e,r){this.root.splice(r+1,0,e)}addCellToColumnIndex(e,r){let t=this.columnIndexToRootIndex(r,!0);this.addCellToIndex(e,t-1)}rootIndexToColumnIndex(e){if(e<1||e>=this.root.length)throw new Error(`cell 'rootIndex' should between 1 to ${this.root.length-1}`);let r=0;for(let t=1;t<e;t++){let s=this.root[t];r+=s.options.columnSpan||1}return r}columnIndexToRootIndex(e,r=!1){if(e<0)throw new Error(\"cell 'columnIndex' should not less than zero\");let t=0,s=1;for(;t<=e;){if(s>=this.root.length){if(r)return this.root.length;throw new Error(`cell 'columnIndex' should not great than ${t-1}`)}let o=this.root[s];s+=1,t+=o&&o.options.columnSpan||1}return s-1}},Qi=class ea extends Bi{constructor({rows:r,width:t,columnWidths:s,columnWidthsRevision:o,margins:u,indent:a,float:n,layout:c,style:g,borders:E,alignment:p,visuallyRightToLeft:x,tableLook:m,cellSpacing:w,revision:b}){super(\"w:tbl\"),ee(this,\"rows\",void 0),ee(this,\"width\",void 0),ee(this,\"columnWidths\",void 0),ee(this,\"columnWidthsRevision\",void 0),ee(this,\"resolvedColumnWidths\",void 0),this.rows=r,this.width=t??{size:100},this.columnWidths=s,this.columnWidthsRevision=o,r.forEach((T,R)=>{if(R===r.length-1)return;let S=0;T.cells.forEach(P=>{if(P.options.rowSpan&&P.options.rowSpan>1){let O=new Mt({rowSpan:P.options.rowSpan-1,columnSpan:P.options.columnSpan,borders:P.options.borders,children:[],verticalMerge:Vi.CONTINUE});r[R+1].addCellToColumnIndex(O,S)}S+=P.options.columnSpan||1})}),this.resolvedColumnWidths=s??In({rows:r,width:this.width,availableWidth:Rn}),this.root.push(new Zi({borders:E??{},width:this.width,indent:a,float:n,layout:c,style:g,alignment:p,cellMargin:u,visuallyRightToLeft:x,tableLook:m,cellSpacing:w,revision:b})),this.root.push(new tr(this.resolvedColumnWidths,o));for(let T of r)this.root.push(T)}get ColumnWidths(){return this.resolvedColumnWidths}getCellWidth(r,t){let{cells:s}=r,o=s.indexOf(t);if(o===-1)return;let u=s.slice(0,o).reduce((n,c)=>n+(c.options.columnSpan||1),0),a=this.resolvedColumnWidths.slice(u,u+(t.options.columnSpan||1));return a.length===0?void 0:a.reduce((n,c)=>n+c,0)}prepForXml(r){if(this.columnWidths===void 0){this.resolvedColumnWidths=In({rows:this.rows,width:this.width,availableWidth:this.resolveAvailableWidth(r)});let t=this.root.findIndex(s=>s instanceof tr);this.root[t]=new tr(this.resolvedColumnWidths,this.columnWidthsRevision)}return super.prepForXml(r)}resolveAvailableWidth(r){var t,s,o;let{stack:u}=r,a=u[u.length-1],n=u[u.length-2],c=u[u.length-3];if(a instanceof Mt&&n instanceof cn&&c instanceof ea){let x=c.getCellWidth(n,a);if(x!==void 0)return x}let g=u.findIndex(x=>x instanceof Gi),E=(t=r.file)===null||t===void 0||(t=t.Document)===null||t===void 0?void 0:t.View.Body,p=g>=0?u[g].getSectionPropertiesFor((s=u[g+1])!==null&&s!==void 0?s:this):E?.getSectionPropertiesFor();return(o=p?.AvailableTextWidth)!==null&&o!==void 0?o:Rn}},ou=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{xmlns:\"xmlns\",vt:\"xmlns:vt\"})}},lu=class extends ue{constructor(){super(\"Properties\"),this.root.push(new ou({xmlns:\"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties\",vt:\"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\"}))}},uu=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{xmlns:\"xmlns\"})}},je=(e,r)=>new fe({name:\"Default\",attributes:{contentType:{key:\"ContentType\",value:e},extension:{key:\"Extension\",value:r}}}),Te=(e,r)=>new fe({name:\"Override\",attributes:{contentType:{key:\"ContentType\",value:e},partName:{key:\"PartName\",value:r}}}),cu=class extends ue{constructor(){super(\"Types\"),this.root.push(new uu({xmlns:\"http://schemas.openxmlformats.org/package/2006/content-types\"})),this.root.push(je(\"image/png\",\"png\")),this.root.push(je(\"image/jpeg\",\"jpeg\")),this.root.push(je(\"image/jpeg\",\"jpg\")),this.root.push(je(\"image/bmp\",\"bmp\")),this.root.push(je(\"image/gif\",\"gif\")),this.root.push(je(\"image/svg+xml\",\"svg\")),this.root.push(je(\"application/vnd.openxmlformats-package.relationships+xml\",\"rels\")),this.root.push(je(\"application/xml\",\"xml\")),this.root.push(je(\"application/vnd.openxmlformats-officedocument.obfuscatedFont\",\"odttf\")),this.root.push(Te(\"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml\",\"/word/document.xml\")),this.root.push(Te(\"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml\",\"/word/styles.xml\")),this.root.push(Te(\"application/vnd.openxmlformats-package.core-properties+xml\",\"/docProps/core.xml\")),this.root.push(Te(\"application/vnd.openxmlformats-officedocument.custom-properties+xml\",\"/docProps/custom.xml\")),this.root.push(Te(\"application/vnd.openxmlformats-officedocument.extended-properties+xml\",\"/docProps/app.xml\")),this.root.push(Te(\"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml\",\"/word/numbering.xml\")),this.root.push(Te(\"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml\",\"/word/footnotes.xml\")),this.root.push(Te(\"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml\",\"/word/endnotes.xml\")),this.root.push(Te(\"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml\",\"/word/settings.xml\")),this.root.push(Te(\"application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml\",\"/word/fontTable.xml\")),this.root.push(Te(\"application/vnd.openxmlformats-officedocument.theme+xml\",\"/word/theme/theme1.xml\"))}addComments(){this.root.push(Te(\"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml\",\"/word/comments.xml\"))}addCommentsExtended(){this.root.push(Te(\"application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml\",\"/word/commentsExtended.xml\"))}addCommentsIds(){this.root.push(Te(\"application/vnd.openxmlformats-officedocument.wordprocessingml.commentsIds+xml\",\"/word/commentsIds.xml\"))}addFooter(e){this.root.push(Te(\"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml\",`/word/footer${e}.xml`))}addOverride(e,r){this.root.push(Te(e,r))}addHeader(e){this.root.push(Te(\"application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml\",`/word/header${e}.xml`))}},Gr={wpc:\"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas\",mc:\"http://schemas.openxmlformats.org/markup-compatibility/2006\",o:\"urn:schemas-microsoft-com:office:office\",r:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\",m:\"http://schemas.openxmlformats.org/officeDocument/2006/math\",v:\"urn:schemas-microsoft-com:vml\",wp14:\"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing\",wp:\"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing\",w10:\"urn:schemas-microsoft-com:office:word\",w:\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\",w14:\"http://schemas.microsoft.com/office/word/2010/wordml\",w15:\"http://schemas.microsoft.com/office/word/2012/wordml\",wpg:\"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup\",wpi:\"http://schemas.microsoft.com/office/word/2010/wordprocessingInk\",wne:\"http://schemas.microsoft.com/office/word/2006/wordml\",wps:\"http://schemas.microsoft.com/office/word/2010/wordprocessingShape\",cp:\"http://schemas.openxmlformats.org/package/2006/metadata/core-properties\",dc:\"http://purl.org/dc/elements/1.1/\",dcterms:\"http://purl.org/dc/terms/\",dcmitype:\"http://purl.org/dc/dcmitype/\",xsi:\"http://www.w3.org/2001/XMLSchema-instance\",cx:\"http://schemas.microsoft.com/office/drawing/2014/chartex\",cx1:\"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex\",cx2:\"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex\",cx3:\"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex\",cx4:\"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex\",cx5:\"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex\",cx6:\"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex\",cx7:\"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex\",cx8:\"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex\",aink:\"http://schemas.microsoft.com/office/drawing/2016/ink\",am3d:\"http://schemas.microsoft.com/office/drawing/2017/model3d\",w16cex:\"http://schemas.microsoft.com/office/word/2018/wordml/cex\",w16cid:\"http://schemas.microsoft.com/office/word/2016/wordml/cid\",w16:\"http://schemas.microsoft.com/office/word/2018/wordml\",w16sdtdh:\"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash\",w16se:\"http://schemas.microsoft.com/office/word/2015/wordml/symex\"},vr=class extends we{constructor(e,r){super(he({Ignorable:r},Object.fromEntries(e.map(t=>[t,Gr[t]])))),ee(this,\"xmlKeys\",he({Ignorable:\"mc:Ignorable\"},Object.fromEntries(Object.keys(Gr).map(t=>[t,`xmlns:${t}`]))))}},hu=class extends ue{constructor(e){super(\"cp:coreProperties\"),this.root.push(new vr([\"cp\",\"dc\",\"dcterms\",\"dcmitype\",\"xsi\"])),e.title&&this.root.push(new Je(\"dc:title\",e.title)),e.subject&&this.root.push(new Je(\"dc:subject\",e.subject)),e.creator&&this.root.push(new Je(\"dc:creator\",e.creator)),e.keywords&&this.root.push(new Je(\"cp:keywords\",e.keywords)),e.description&&this.root.push(new Je(\"dc:description\",e.description)),e.lastModifiedBy&&this.root.push(new Je(\"cp:lastModifiedBy\",e.lastModifiedBy)),e.revision&&this.root.push(new Je(\"cp:revision\",String(e.revision))),this.root.push(new Nn(\"dcterms:created\")),this.root.push(new Nn(\"dcterms:modified\"))}},du=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{type:\"xsi:type\"})}},Nn=class extends ue{constructor(e){super(e),this.root.push(new du({type:\"dcterms:W3CDTF\"})),this.root.push(Ws(new Date))}},fu=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{xmlns:\"xmlns\",vt:\"xmlns:vt\"})}},pu=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{formatId:\"fmtid\",pid:\"pid\",name:\"name\"})}},mu=class extends ue{constructor(e,r){super(\"property\"),this.root.push(new pu({formatId:\"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}\",pid:e.toString(),name:r.name})),this.root.push(new vu(r.value))}},vu=class extends ue{constructor(e){super(\"vt:lpwstr\"),this.root.push(e)}},wu=class extends ue{constructor(e){super(\"Properties\"),ee(this,\"nextId\",void 0),ee(this,\"properties\",[]),this.root.push(new fu({xmlns:\"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties\",vt:\"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\"})),this.nextId=2;for(let r of e)this.addCustomProperty(r)}prepForXml(e){return this.properties.forEach(r=>this.root.push(r)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new mu(this.nextId++,e))}};var gu=class extends ue{constructor({color:e,themeColor:r,themeShade:t,themeTint:s}){if(super(\"w:background\"),typeof e==\"object\"&&(r!==void 0||t!==void 0||s!==void 0))throw new Error(\"Invalid background. Expected a theme color in color, or themeColor, themeShade and themeTint, not both\");this.root.push(new an([{keys:Wt,color:e},{key:\"w:themeColor\",value:r},{key:\"w:themeShade\",value:t===void 0?void 0:bn(t)},{key:\"w:themeTint\",value:s===void 0?void 0:bn(s)}]))}},yu=class extends ue{constructor(e){super(\"w:document\"),ee(this,\"body\",void 0),this.root.push(new vr([\"wpc\",\"mc\",\"o\",\"r\",\"m\",\"v\",\"wp14\",\"wp\",\"w10\",\"w\",\"w14\",\"w15\",\"wpg\",\"wpi\",\"wne\",\"wps\",\"cx\",\"cx1\",\"cx2\",\"cx3\",\"cx4\",\"cx5\",\"cx6\",\"cx7\",\"cx8\",\"aink\",\"am3d\",\"w16cex\",\"w16cid\",\"w16\",\"w16sdtdh\",\"w16se\"],\"w14 w15 wp14\")),this.body=new Gi,e.background&&this.root.push(new gu(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}},bu=class{constructor(e){ee(this,\"document\",void 0),ee(this,\"relationships\",void 0),this.document=new yu(e),this.relationships=new Ue}get View(){return this.document}get Relationships(){return this.relationships}},_u=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{wpc:\"xmlns:wpc\",mc:\"xmlns:mc\",o:\"xmlns:o\",r:\"xmlns:r\",m:\"xmlns:m\",v:\"xmlns:v\",wp14:\"xmlns:wp14\",wp:\"xmlns:wp\",w10:\"xmlns:w10\",w:\"xmlns:w\",w14:\"xmlns:w14\",w15:\"xmlns:w15\",wpg:\"xmlns:wpg\",wpi:\"xmlns:wpi\",wne:\"xmlns:wne\",wps:\"xmlns:wps\",Ignorable:\"mc:Ignorable\"})}},Eu=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{type:\"w:type\",id:\"w:id\"})}},xu=class extends jt{constructor(){super({style:\"EndnoteReference\"}),this.root.push(new Qo)}},On={SEPARATOR:\"separator\",CONTINUATION_SEPARATOR:\"continuationSeparator\"},Tr=class extends ue{constructor(e){super(\"w:endnote\"),this.root.push(new Eu({type:e.type,id:e.id}));for(let r=0;r<e.children.length;r++){let t=e.children[r];r===0&&t.addRunToFront(new xu),this.root.push(t)}}},Tu=class extends ue{constructor(){super(\"w:continuationSeparator\")}},ta=class extends jt{constructor(){super({}),this.root.push(new Tu)}},Su=class extends ue{constructor(){super(\"w:separator\")}},ra=class extends jt{constructor(){super({}),this.root.push(new Su)}},Au=class extends ue{constructor(){super(\"w:endnotes\"),this.root.push(new _u({wpc:\"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas\",mc:\"http://schemas.openxmlformats.org/markup-compatibility/2006\",o:\"urn:schemas-microsoft-com:office:office\",r:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\",m:\"http://schemas.openxmlformats.org/officeDocument/2006/math\",v:\"urn:schemas-microsoft-com:vml\",wp14:\"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing\",wp:\"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing\",w10:\"urn:schemas-microsoft-com:office:word\",w:\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\",w14:\"http://schemas.microsoft.com/office/word/2010/wordml\",w15:\"http://schemas.microsoft.com/office/word/2012/wordml\",wpg:\"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup\",wpi:\"http://schemas.microsoft.com/office/word/2010/wordprocessingInk\",wne:\"http://schemas.microsoft.com/office/word/2006/wordml\",wps:\"http://schemas.microsoft.com/office/word/2010/wordprocessingShape\",Ignorable:\"w14 w15 wp14\"}));let e=new Tr({id:-1,type:On.SEPARATOR,children:[new ze({spacing:{after:0,line:240,lineRule:gt.AUTO},children:[new ra]})]});this.root.push(e);let r=new Tr({id:0,type:On.CONTINUATION_SEPARATOR,children:[new ze({spacing:{after:0,line:240,lineRule:gt.AUTO},children:[new ta]})]});this.root.push(r)}createEndnote(e,r){let t=new Tr({id:e,children:r});this.root.push(t)}},ku=class{constructor(){ee(this,\"endnotes\",void 0),ee(this,\"relationships\",void 0),this.endnotes=new Au,this.relationships=new Ue}get View(){return this.endnotes}get Relationships(){return this.relationships}},Ru=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{wpc:\"xmlns:wpc\",mc:\"xmlns:mc\",o:\"xmlns:o\",r:\"xmlns:r\",m:\"xmlns:m\",v:\"xmlns:v\",wp14:\"xmlns:wp14\",wp:\"xmlns:wp\",w10:\"xmlns:w10\",w:\"xmlns:w\",w14:\"xmlns:w14\",w15:\"xmlns:w15\",wpg:\"xmlns:wpg\",wpi:\"xmlns:wpi\",wne:\"xmlns:wne\",wps:\"xmlns:wps\",cp:\"xmlns:cp\",dc:\"xmlns:dc\",dcterms:\"xmlns:dcterms\",dcmitype:\"xmlns:dcmitype\",xsi:\"xmlns:xsi\",type:\"xsi:type\"})}},Iu=class extends bi{constructor(e,r){super(\"w:ftr\",r),ee(this,\"refId\",void 0),this.refId=e,r||this.root.push(new Ru({wpc:\"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas\",mc:\"http://schemas.openxmlformats.org/markup-compatibility/2006\",o:\"urn:schemas-microsoft-com:office:office\",r:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\",m:\"http://schemas.openxmlformats.org/officeDocument/2006/math\",v:\"urn:schemas-microsoft-com:vml\",wp14:\"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing\",wp:\"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing\",w10:\"urn:schemas-microsoft-com:office:word\",w:\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\",w14:\"http://schemas.microsoft.com/office/word/2010/wordml\",w15:\"http://schemas.microsoft.com/office/word/2012/wordml\",wpg:\"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup\",wpi:\"http://schemas.microsoft.com/office/word/2010/wordprocessingInk\",wne:\"http://schemas.microsoft.com/office/word/2006/wordml\",wps:\"http://schemas.microsoft.com/office/word/2010/wordprocessingShape\"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},Cu=class{constructor(e,r,t){ee(this,\"media\",void 0),ee(this,\"footer\",void 0),ee(this,\"relationships\",void 0),this.media=e,this.footer=new Iu(r,t),this.relationships=new Ue}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}},Nu=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{type:\"w:type\",id:\"w:id\"})}},Ou=class extends ue{constructor(){super(\"w:footnoteRef\")}},Pu=class extends jt{constructor(){super({style:\"FootnoteReference\"}),this.root.push(new Ou)}},Pn={SEPERATOR:\"separator\",CONTINUATION_SEPERATOR:\"continuationSeparator\"},Sr=class extends ue{constructor(e){super(\"w:footnote\"),this.root.push(new Nu({type:e.type,id:e.id}));for(let r=0;r<e.children.length;r++){let t=e.children[r];r===0&&t.addRunToFront(new Pu),this.root.push(t)}}},Du=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{wpc:\"xmlns:wpc\",mc:\"xmlns:mc\",o:\"xmlns:o\",r:\"xmlns:r\",m:\"xmlns:m\",v:\"xmlns:v\",wp14:\"xmlns:wp14\",wp:\"xmlns:wp\",w10:\"xmlns:w10\",w:\"xmlns:w\",w14:\"xmlns:w14\",w15:\"xmlns:w15\",wpg:\"xmlns:wpg\",wpi:\"xmlns:wpi\",wne:\"xmlns:wne\",wps:\"xmlns:wps\",Ignorable:\"mc:Ignorable\"})}},Lu=class extends ue{constructor(){super(\"w:footnotes\"),this.root.push(new Du({wpc:\"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas\",mc:\"http://schemas.openxmlformats.org/markup-compatibility/2006\",o:\"urn:schemas-microsoft-com:office:office\",r:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\",m:\"http://schemas.openxmlformats.org/officeDocument/2006/math\",v:\"urn:schemas-microsoft-com:vml\",wp14:\"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing\",wp:\"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing\",w10:\"urn:schemas-microsoft-com:office:word\",w:\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\",w14:\"http://schemas.microsoft.com/office/word/2010/wordml\",w15:\"http://schemas.microsoft.com/office/word/2012/wordml\",wpg:\"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup\",wpi:\"http://schemas.microsoft.com/office/word/2010/wordprocessingInk\",wne:\"http://schemas.microsoft.com/office/word/2006/wordml\",wps:\"http://schemas.microsoft.com/office/word/2010/wordprocessingShape\",Ignorable:\"w14 w15 wp14\"}));let e=new Sr({id:-1,type:Pn.SEPERATOR,children:[new ze({spacing:{after:0,line:240,lineRule:gt.AUTO},children:[new ra]})]});this.root.push(e);let r=new Sr({id:0,type:Pn.CONTINUATION_SEPERATOR,children:[new ze({spacing:{after:0,line:240,lineRule:gt.AUTO},children:[new ta]})]});this.root.push(r)}createFootNote(e,r){let t=new Sr({id:e,children:r});this.root.push(t)}},Fu=class{constructor(){ee(this,\"footnotess\",void 0),ee(this,\"relationships\",void 0),this.footnotess=new Lu,this.relationships=new Ue}get View(){return this.footnotess}get Relationships(){return this.relationships}},Bu=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{wpc:\"xmlns:wpc\",mc:\"xmlns:mc\",o:\"xmlns:o\",r:\"xmlns:r\",m:\"xmlns:m\",v:\"xmlns:v\",wp14:\"xmlns:wp14\",wp:\"xmlns:wp\",w10:\"xmlns:w10\",w:\"xmlns:w\",w14:\"xmlns:w14\",w15:\"xmlns:w15\",wpg:\"xmlns:wpg\",wpi:\"xmlns:wpi\",wne:\"xmlns:wne\",wps:\"xmlns:wps\",cp:\"xmlns:cp\",dc:\"xmlns:dc\",dcterms:\"xmlns:dcterms\",dcmitype:\"xmlns:dcmitype\",xsi:\"xmlns:xsi\",type:\"xsi:type\",cx:\"xmlns:cx\",cx1:\"xmlns:cx1\",cx2:\"xmlns:cx2\",cx3:\"xmlns:cx3\",cx4:\"xmlns:cx4\",cx5:\"xmlns:cx5\",cx6:\"xmlns:cx6\",cx7:\"xmlns:cx7\",cx8:\"xmlns:cx8\",w16cid:\"xmlns:w16cid\",w16se:\"xmlns:w16se\"})}},Mu=class extends bi{constructor(e,r){super(\"w:hdr\",r),ee(this,\"refId\",void 0),this.refId=e,r||this.root.push(new Bu({wpc:\"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas\",mc:\"http://schemas.openxmlformats.org/markup-compatibility/2006\",o:\"urn:schemas-microsoft-com:office:office\",r:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\",m:\"http://schemas.openxmlformats.org/officeDocument/2006/math\",v:\"urn:schemas-microsoft-com:vml\",wp14:\"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing\",wp:\"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing\",w10:\"urn:schemas-microsoft-com:office:word\",w:\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\",w14:\"http://schemas.microsoft.com/office/word/2010/wordml\",w15:\"http://schemas.microsoft.com/office/word/2012/wordml\",wpg:\"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup\",wpi:\"http://schemas.microsoft.com/office/word/2010/wordprocessingInk\",wne:\"http://schemas.microsoft.com/office/word/2006/wordml\",wps:\"http://schemas.microsoft.com/office/word/2010/wordprocessingShape\",cx:\"http://schemas.microsoft.com/office/drawing/2014/chartex\",cx1:\"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex\",cx2:\"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex\",cx3:\"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex\",cx4:\"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex\",cx5:\"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex\",cx6:\"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex\",cx7:\"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex\",cx8:\"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex\",w16cid:\"http://schemas.microsoft.com/office/word/2016/wordml/cid\",w16se:\"http://schemas.microsoft.com/office/word/2015/wordml/symex\"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},Uu=class{constructor(e,r,t){ee(this,\"media\",void 0),ee(this,\"header\",void 0),ee(this,\"relationships\",void 0),this.media=e,this.header=new Mu(r,t),this.relationships=new Ue}add(e){return this.header.add(e),this}addChildElement(e){this.header.addChildElement(e)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}},na=class{constructor(){ee(this,\"map\",void 0),this.map=new Map}addImage(e,r){this.map.set(e,r)}get Array(){return Array.from(this.map.values())}},Ge={DECIMAL:\"decimal\",UPPER_ROMAN:\"upperRoman\",LOWER_ROMAN:\"lowerRoman\",UPPER_LETTER:\"upperLetter\",LOWER_LETTER:\"lowerLetter\",ORDINAL:\"ordinal\",CARDINAL_TEXT:\"cardinalText\",ORDINAL_TEXT:\"ordinalText\",HEX:\"hex\",CHICAGO:\"chicago\",IDEOGRAPH__DIGITAL:\"ideographDigital\",JAPANESE_COUNTING:\"japaneseCounting\",AIUEO:\"aiueo\",IROHA:\"iroha\",DECIMAL_FULL_WIDTH:\"decimalFullWidth\",DECIMAL_HALF_WIDTH:\"decimalHalfWidth\",JAPANESE_LEGAL:\"japaneseLegal\",JAPANESE_DIGITAL_TEN_THOUSAND:\"japaneseDigitalTenThousand\",DECIMAL_ENCLOSED_CIRCLE:\"decimalEnclosedCircle\",DECIMAL_FULL_WIDTH2:\"decimalFullWidth2\",AIUEO_FULL_WIDTH:\"aiueoFullWidth\",IROHA_FULL_WIDTH:\"irohaFullWidth\",DECIMAL_ZERO:\"decimalZero\",BULLET:\"bullet\",GANADA:\"ganada\",CHOSUNG:\"chosung\",DECIMAL_ENCLOSED_FULLSTOP:\"decimalEnclosedFullstop\",DECIMAL_ENCLOSED_PARENTHESES:\"decimalEnclosedParen\",DECIMAL_ENCLOSED_CIRCLE_CHINESE:\"decimalEnclosedCircleChinese\",IDEOGRAPH_ENCLOSED_CIRCLE:\"ideographEnclosedCircle\",IDEOGRAPH_TRADITIONAL:\"ideographTraditional\",IDEOGRAPH_ZODIAC:\"ideographZodiac\",IDEOGRAPH_ZODIAC_TRADITIONAL:\"ideographZodiacTraditional\",TAIWANESE_COUNTING:\"taiwaneseCounting\",IDEOGRAPH_LEGAL_TRADITIONAL:\"ideographLegalTraditional\",TAIWANESE_COUNTING_THOUSAND:\"taiwaneseCountingThousand\",TAIWANESE_DIGITAL:\"taiwaneseDigital\",CHINESE_COUNTING:\"chineseCounting\",CHINESE_LEGAL_SIMPLIFIED:\"chineseLegalSimplified\",CHINESE_COUNTING_THOUSAND:\"chineseCountingThousand\",KOREAN_DIGITAL:\"koreanDigital\",KOREAN_COUNTING:\"koreanCounting\",KOREAN_LEGAL:\"koreanLegal\",KOREAN_DIGITAL2:\"koreanDigital2\",VIETNAMESE_COUNTING:\"vietnameseCounting\",RUSSIAN_LOWER:\"russianLower\",RUSSIAN_UPPER:\"russianUpper\",NONE:\"none\",NUMBER_IN_DASH:\"numberInDash\",HEBREW1:\"hebrew1\",HEBREW2:\"hebrew2\",ARABIC_ALPHA:\"arabicAlpha\",ARABIC_ABJAD:\"arabicAbjad\",HINDI_VOWELS:\"hindiVowels\",HINDI_CONSONANTS:\"hindiConsonants\",HINDI_NUMBERS:\"hindiNumbers\",HINDI_COUNTING:\"hindiCounting\",THAI_LETTERS:\"thaiLetters\",THAI_NUMBERS:\"thaiNumbers\",THAI_COUNTING:\"thaiCounting\",BAHT_TEXT:\"bahtText\",DOLLAR_TEXT:\"dollarText\",CUSTOM:\"custom\"},Hu=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{ilvl:\"w:ilvl\",tentative:\"w:tentative\"})}},Wu=class extends ue{constructor(e){super(\"w:numFmt\"),this.root.push(new Re({val:e}))}},ju=class extends ue{constructor(e){super(\"w:lvlText\"),this.root.push(new Re({val:e}))}},Gu=e=>{switch(e){case Ie.CENTER:return\"center\";case Ie.END:case Ie.RIGHT:return\"right\";default:return\"left\"}},zu=class extends ue{constructor(e){super(\"w:lvlJc\"),this.root.push(new Re({val:Gu(e)}))}};var $u=class extends ue{constructor(e){super(\"w:suff\"),this.root.push(new Re({val:e}))}},Ku=class extends ue{constructor(){super(\"w:isLgl\")}},Vu=class extends ue{constructor({level:e,format:r,text:t,alignment:s=Ie.START,start:o=1,style:u,suffix:a,isLegalNumberingStyle:n}){if(super(\"w:lvl\"),ee(this,\"paragraphProperties\",void 0),ee(this,\"runProperties\",void 0),this.root.push(new Dt(\"w:start\",Ae(o))),r&&this.root.push(new Wu(r)),u?.style&&this.root.push(Ot(u.style)),n&&this.root.push(new Ku),a&&this.root.push(new $u(a)),t&&this.root.push(new ju(t)),this.root.push(new zu(s)),this.paragraphProperties=new it(u&&u.paragraph,{implicitListParagraphStyle:!1}),this.runProperties=new st(u?.run&&he(he({},u.run),{},{highlight:void 0,math:void 0,revision:void 0})),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e>9)throw new Error(\"Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7\");this.root.push(new Hu({ilvl:Ae(e),tentative:1}))}},qu=class extends Vu{};var Xu=class extends ue{constructor(e){super(\"w:multiLevelType\"),this.root.push(new Re({val:e}))}},Yu=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{abstractNumId:\"w:abstractNumId\",restartNumberingAfterBreak:\"w15:restartNumberingAfterBreak\"})}},Dn=class extends ue{constructor(e,r){super(\"w:abstractNum\"),ee(this,\"id\",void 0),this.root.push(new Yu({abstractNumId:Ae(e),restartNumberingAfterBreak:0})),this.root.push(new Xu(\"hybridMultilevel\")),this.id=e;for(let t of r)this.root.push(new qu(t))}},Zu=class extends ue{constructor(e){super(\"w:abstractNumId\"),this.root.push(new Re({val:e}))}},Ju=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{numId:\"w:numId\"})}},Ln=class extends ue{constructor(e){if(super(\"w:num\"),ee(this,\"numId\",void 0),ee(this,\"reference\",void 0),ee(this,\"instance\",void 0),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new Ju({numId:Ae(e.numId)})),this.root.push(new Zu(Ae(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(let r of e.overrideLevels)this.root.push(new ec(r.num,r.start))}},Qu=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{ilvl:\"w:ilvl\"})}},ec=class extends ue{constructor(e,r){super(\"w:lvlOverride\"),this.root.push(new Qu({ilvl:e})),r!==void 0&&this.root.push(new rc(r))}},tc=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{val:\"w:val\"})}},rc=class extends ue{constructor(e){super(\"w:startOverride\"),this.root.push(new tc({val:e}))}},nc=class extends ue{constructor(e){super(\"w:numbering\"),ee(this,\"abstractNumberingMap\",new Map),ee(this,\"concreteNumberingMap\",new Map),ee(this,\"referenceConfigMap\",new Map),ee(this,\"abstractNumUniqueNumericId\",Po()),ee(this,\"concreteNumUniqueNumericId\",Do()),this.root.push(new vr([\"wpc\",\"mc\",\"o\",\"r\",\"m\",\"v\",\"wp14\",\"wp\",\"w10\",\"w\",\"w14\",\"w15\",\"wpg\",\"wpi\",\"wne\",\"wps\"],\"w14 w15 wp14\"));let r=new Dn(this.abstractNumUniqueNumericId(),[{level:0,format:Ge.BULLET,text:\"\\u25CF\",alignment:Ie.LEFT,style:{paragraph:{indent:{left:Ne(.5),hanging:Ne(.25)}}}},{level:1,format:Ge.BULLET,text:\"\\u25CB\",alignment:Ie.LEFT,style:{paragraph:{indent:{left:Ne(1),hanging:Ne(.25)}}}},{level:2,format:Ge.BULLET,text:\"\\u25A0\",alignment:Ie.LEFT,style:{paragraph:{indent:{left:2160,hanging:Ne(.25)}}}},{level:3,format:Ge.BULLET,text:\"\\u25CF\",alignment:Ie.LEFT,style:{paragraph:{indent:{left:2880,hanging:Ne(.25)}}}},{level:4,format:Ge.BULLET,text:\"\\u25CB\",alignment:Ie.LEFT,style:{paragraph:{indent:{left:3600,hanging:Ne(.25)}}}},{level:5,format:Ge.BULLET,text:\"\\u25A0\",alignment:Ie.LEFT,style:{paragraph:{indent:{left:4320,hanging:Ne(.25)}}}},{level:6,format:Ge.BULLET,text:\"\\u25CF\",alignment:Ie.LEFT,style:{paragraph:{indent:{left:5040,hanging:Ne(.25)}}}},{level:7,format:Ge.BULLET,text:\"\\u25CF\",alignment:Ie.LEFT,style:{paragraph:{indent:{left:5760,hanging:Ne(.25)}}}},{level:8,format:Ge.BULLET,text:\"\\u25CF\",alignment:Ie.LEFT,style:{paragraph:{indent:{left:6480,hanging:Ne(.25)}}}}]);this.concreteNumberingMap.set(\"default-bullet-numbering\",new Ln({numId:1,abstractNumId:r.id,reference:\"default-bullet-numbering\",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set(\"default-bullet-numbering\",r);for(let t of e.config)this.abstractNumberingMap.set(t.reference,new Dn(this.abstractNumUniqueNumericId(),t.levels)),this.referenceConfigMap.set(t.reference,t.levels)}prepForXml(e){for(let r of this.abstractNumberingMap.values())this.root.push(r);for(let r of this.concreteNumberingMap.values())this.root.push(r);return super.prepForXml(e)}createConcreteNumberingInstance(e,r){let t=this.abstractNumberingMap.get(e);if(!t)return;let s=`${e}-${r}`;if(this.concreteNumberingMap.has(s))return;let o=this.referenceConfigMap.get(e),u=o&&o[0].start,a={numId:this.concreteNumUniqueNumericId(),abstractNumId:t.id,reference:e,instance:r,overrideLevels:[typeof u==\"number\"&&Number.isInteger(u)?{num:0,start:u}:{num:0,start:1}]};this.concreteNumberingMap.set(s,new Ln(a))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}};var ia=class{constructor(e,r=new Set){ee(this,\"contentTypes\",void 0),ee(this,\"existingPaths\",void 0),ee(this,\"paths\",new Map),ee(this,\"folders\",new WeakMap),this.contentTypes=e,this.existingPaths=r}add(e){let r=this.paths.get(e);if(r!==void 0)return r;let{folder:t,name:s,extension:o,contentType:u}=e.options,a=new Set([...this.existingPaths,...this.paths.values()]),n=1;for(;a.has(`${t}/${s}${n}.${o}`);)n++;let c=`${t}/${s}${n}.${o}`;return this.paths.set(e,c),this.contentTypes.addOverride(u,`/word/${c}`),c}get Array(){return[...this.paths].map(([e,r])=>({part:e,path:r}))}createRelationships(e){let r=new Ue;return this.folders.set(r,e.slice(0,e.indexOf(\"/\"))),r}getTarget(e,r){let t=this.folders.get(e);return t===void 0?r:r.startsWith(`${t}/`)?r.slice(t.length+1):`../${r}`}},ic=e=>new fe({name:\"w:compatSetting\",attributes:{version:{key:\"w:val\",value:e},name:{key:\"w:name\",value:\"compatibilityMode\"},uri:{key:\"w:uri\",value:\"http://schemas.microsoft.com/office/word\"}}}),ac=class extends ue{constructor(e){super(\"w:compat\"),e.useSingleBorderforContiguousCells&&this.root.push(new le(\"w:useSingleBorderforContiguousCells\",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new le(\"w:wpJustification\",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new le(\"w:noTabHangInd\",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new le(\"w:noLeading\",e.noLeading)),e.spaceForUnderline&&this.root.push(new le(\"w:spaceForUL\",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new le(\"w:noColumnBalance\",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new le(\"w:balanceSingleByteDoubleByteWidth\",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new le(\"w:noExtraLineSpacing\",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new le(\"w:doNotLeaveBackslashAlone\",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new le(\"w:ulTrailSpace\",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new le(\"w:doNotExpandShiftReturn\",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new le(\"w:spacingInWholePoints\",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new le(\"w:lineWrapLikeWord6\",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new le(\"w:printBodyTextBeforeHeader\",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new le(\"w:printColBlack\",e.printColorsBlack)),e.spaceWidth&&this.root.push(new le(\"w:wpSpaceWidth\",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new le(\"w:showBreaksInFrames\",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new le(\"w:subFontBySize\",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new le(\"w:suppressBottomSpacing\",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new le(\"w:suppressTopSpacing\",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new le(\"w:suppressSpacingAtTopOfPage\",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new le(\"w:suppressTopSpacingWP\",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new le(\"w:suppressSpBfAfterPgBrk\",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new le(\"w:swapBordersFacingPages\",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new le(\"w:convMailMergeEsc\",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new le(\"w:truncateFontHeightsLikeWP6\",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new le(\"w:mwSmallCaps\",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new le(\"w:usePrinterMetrics\",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new le(\"w:doNotSuppressParagraphBorders\",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new le(\"w:wrapTrailSpaces\",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new le(\"w:footnoteLayoutLikeWW8\",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new le(\"w:shapeLayoutLikeWW8\",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new le(\"w:alignTablesRowByRow\",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new le(\"w:forgetLastTabAlignment\",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new le(\"w:adjustLineHeightInTable\",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new le(\"w:autoSpaceLikeWord95\",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new le(\"w:noSpaceRaiseLower\",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new le(\"w:doNotUseHTMLParagraphAutoSpacing\",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new le(\"w:layoutRawTableWidth\",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new le(\"w:layoutTableRowsApart\",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new le(\"w:useWord97LineBreakRules\",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new le(\"w:doNotBreakWrappedTables\",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new le(\"w:doNotSnapToGridInCell\",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new le(\"w:selectFldWithFirstOrLastChar\",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new le(\"w:applyBreakingRules\",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new le(\"w:doNotWrapTextWithPunct\",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new le(\"w:doNotUseEastAsianBreakRules\",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new le(\"w:useWord2002TableStyleRules\",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new le(\"w:growAutofit\",e.growAutofit)),e.useFELayout&&this.root.push(new le(\"w:useFELayout\",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new le(\"w:useNormalStyleForList\",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new le(\"w:doNotUseIndentAsNumberingTabStop\",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new le(\"w:useAltKinsokuLineBreakRules\",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new le(\"w:allowSpaceOfSameStyleInTable\",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new le(\"w:doNotSuppressIndentation\",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new le(\"w:doNotAutofitConstrainedTables\",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new le(\"w:autofitToFirstFixedWidthCell\",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new le(\"w:underlineTabInNumList\",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new le(\"w:displayHangulFixedWidth\",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new le(\"w:splitPgBreakAndParaMark\",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new le(\"w:doNotVertAlignCellWithSp\",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new le(\"w:doNotBreakConstrainedForcedTable\",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new le(\"w:doNotVertAlignInTxbx\",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new le(\"w:useAnsiKerningPairs\",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new le(\"w:cachedColBalance\",e.cachedColumnBalance)),e.version&&this.root.push(ic(e.version))}},sc=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{wpc:\"xmlns:wpc\",mc:\"xmlns:mc\",o:\"xmlns:o\",r:\"xmlns:r\",m:\"xmlns:m\",v:\"xmlns:v\",wp14:\"xmlns:wp14\",wp:\"xmlns:wp\",w10:\"xmlns:w10\",w:\"xmlns:w\",w14:\"xmlns:w14\",w15:\"xmlns:w15\",wpg:\"xmlns:wpg\",wpi:\"xmlns:wpi\",wne:\"xmlns:wne\",wps:\"xmlns:wps\",Ignorable:\"mc:Ignorable\"})}},oc=class extends ue{constructor(e){var r,t,s,o,u,a,n,c;super(\"w:settings\"),this.root.push(new sc({wpc:\"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas\",mc:\"http://schemas.openxmlformats.org/markup-compatibility/2006\",o:\"urn:schemas-microsoft-com:office:office\",r:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\",m:\"http://schemas.openxmlformats.org/officeDocument/2006/math\",v:\"urn:schemas-microsoft-com:vml\",wp14:\"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing\",wp:\"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing\",w10:\"urn:schemas-microsoft-com:office:word\",w:\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\",w14:\"http://schemas.microsoft.com/office/word/2010/wordml\",w15:\"http://schemas.microsoft.com/office/word/2012/wordml\",wpg:\"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup\",wpi:\"http://schemas.microsoft.com/office/word/2010/wordprocessingInk\",wne:\"http://schemas.microsoft.com/office/word/2006/wordml\",wps:\"http://schemas.microsoft.com/office/word/2010/wordprocessingShape\",Ignorable:\"w14 w15 wp14\"})),this.root.push(new le(\"w:displayBackgroundShape\",!0)),e.trackRevisions!==void 0&&this.root.push(new le(\"w:trackRevisions\",e.trackRevisions)),e.defaultTabStop!==void 0&&this.root.push(new Dt(\"w:defaultTabStop\",e.defaultTabStop)),((r=e.hyphenation)===null||r===void 0?void 0:r.autoHyphenation)!==void 0&&this.root.push(new le(\"w:autoHyphenation\",e.hyphenation.autoHyphenation)),((t=e.hyphenation)===null||t===void 0?void 0:t.consecutiveHyphenLimit)!==void 0&&this.root.push(new Dt(\"w:consecutiveHyphenLimit\",e.hyphenation.consecutiveHyphenLimit)),((s=e.hyphenation)===null||s===void 0?void 0:s.hyphenationZone)!==void 0&&this.root.push(new Dt(\"w:hyphenationZone\",e.hyphenation.hyphenationZone)),((o=e.hyphenation)===null||o===void 0?void 0:o.doNotHyphenateCaps)!==void 0&&this.root.push(new le(\"w:doNotHyphenateCaps\",e.hyphenation.doNotHyphenateCaps)),e.evenAndOddHeaders!==void 0&&this.root.push(new le(\"w:evenAndOddHeaders\",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new le(\"w:updateFields\",e.updateFields)),this.root.push(new ac(he(he({},(u=e.compatibility)!==null&&u!==void 0?u:{}),{},{version:(a=(n=(c=e.compatibility)===null||c===void 0?void 0:c.version)!==null&&n!==void 0?n:e.compatibilityModeVersion)!==null&&a!==void 0?a:15})))}},aa=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{val:\"w:val\"})}},lc=class extends ue{constructor(e){super(\"w:name\"),this.root.push(new aa({val:e}))}},uc=class extends ue{constructor(e){super(\"w:uiPriority\"),this.root.push(new aa({val:Ae(e)}))}},cc=class extends we{constructor(...e){super(...e),ee(this,\"xmlKeys\",{type:\"w:type\",styleId:\"w:styleId\",default:\"w:default\",customStyle:\"w:customStyle\"})}},sa=class extends ue{constructor(e,r){super(\"w:style\"),this.root.push(new cc(e)),r.name&&this.root.push(new lc(r.name)),r.basedOn&&this.root.push(new Ke(\"w:basedOn\",r.basedOn)),r.next&&this.root.push(new Ke(\"w:next\",r.next)),r.link&&this.root.push(new Ke(\"w:link\",r.link)),r.uiPriority!==void 0&&this.root.push(new uc(r.uiPriority)),r.semiHidden!==void 0&&this.root.push(new le(\"w:semiHidden\",r.semiHidden)),r.unhideWhenUsed!==void 0&&this.root.push(new le(\"w:unhideWhenUsed\",r.unhideWhenUsed)),r.quickFormat!==void 0&&this.root.push(new le(\"w:qFormat\",r.quickFormat))}},_t=class extends sa{constructor(e){super({type:\"paragraph\",styleId:e.id},e),ee(this,\"paragraphProperties\",void 0),ee(this,\"runProperties\",void 0),this.paragraphProperties=new it(e.paragraph,{implicitListParagraphStyle:!1}),this.runProperties=new st(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}},Et=class extends sa{constructor(e){super({type:\"character\",styleId:e.id},he({uiPriority:99,unhideWhenUsed:!0},e)),ee(this,\"runProperties\",void 0),this.runProperties=new st(e.run),this.root.push(this.runProperties)}},Ye=class extends _t{constructor(e){super(he({basedOn:\"Normal\",next:\"Normal\",quickFormat:!0},e))}},hc=class extends Ye{constructor(e){super(he({id:\"Title\",name:\"Title\"},e))}},dc=class extends Ye{constructor(e){super(he({id:\"Heading1\",name:\"Heading 1\"},e))}},fc=class extends Ye{constructor(e){super(he({id:\"Heading2\",name:\"Heading 2\"},e))}},pc=class extends Ye{constructor(e){super(he({id:\"Heading3\",name:\"Heading 3\"},e))}},mc=class extends Ye{constructor(e){super(he({id:\"Heading4\",name:\"Heading 4\"},e))}},vc=class extends Ye{constructor(e){super(he({id:\"Heading5\",name:\"Heading 5\"},e))}},wc=class extends Ye{constructor(e){super(he({id:\"Heading6\",name:\"Heading 6\"},e))}},gc=class extends Ye{constructor(e){super(he({id:\"Strong\",name:\"Strong\"},e))}},yc=class extends _t{constructor(e){super(he({id:\"ListParagraph\",name:\"List Paragraph\",basedOn:\"Normal\",quickFormat:!0},e))}},bc=class extends _t{constructor(e){super(he({id:\"FootnoteText\",name:\"footnote text\",link:\"FootnoteTextChar\",basedOn:\"Normal\",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:gt.AUTO}},run:{size:20}},e))}},_c=class extends Et{constructor(e){super(he({id:\"FootnoteReference\",name:\"footnote reference\",basedOn:\"DefaultParagraphFont\",semiHidden:!0,run:{superScript:!0}},e))}},Ec=class extends Et{constructor(e){super(he({id:\"FootnoteTextChar\",name:\"Footnote Text Char\",basedOn:\"DefaultParagraphFont\",link:\"FootnoteText\",semiHidden:!0,run:{size:20}},e))}},xc=class extends _t{constructor(e){super(he({id:\"EndnoteText\",name:\"endnote text\",link:\"EndnoteTextChar\",basedOn:\"Normal\",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:gt.AUTO}},run:{size:20}},e))}},Tc=class extends Et{constructor(e){super(he({id:\"EndnoteReference\",name:\"endnote reference\",basedOn:\"DefaultParagraphFont\",semiHidden:!0,run:{superScript:!0}},e))}},Sc=class extends Et{constructor(e){super(he({id:\"EndnoteTextChar\",name:\"Endnote Text Char\",basedOn:\"DefaultParagraphFont\",link:\"EndnoteText\",semiHidden:!0,run:{size:20}},e))}},Ac=class extends Et{constructor(e){super(he({id:\"Hyperlink\",name:\"Hyperlink\",basedOn:\"DefaultParagraphFont\",run:{color:\"0563C1\",underline:{type:Ci.SINGLE}}},e))}},It=e=>typeof e==\"object\"?Object.keys(e)[0]:void 0,hn=e=>{var r;return(r=[e[\"w:style\"]].flat().find(t=>t._attr))===null||r===void 0?void 0:r._attr},Fn=e=>{var r;return(r=hn(e))===null||r===void 0?void 0:r[\"w:styleId\"]},kc=e=>{var r;let t=hn(e);return((r=t?.[\"w:type\"])!==null&&r!==void 0?r:\"paragraph\")===\"paragraph\"&&t?.[\"w:default\"]!==void 0&&![\"0\",\"false\",\"off\"].includes(String(t[\"w:default\"]))},Rc=e=>({\"w:style\":[e[\"w:style\"]].flat().map(r=>r._attr?{_attr:he(he({},r._attr),{},{\"w:default\":\"1\"})}:r)}),Ar=class extends ue{constructor(e){if(super(\"w:styles\"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(let r of e.importedStyles)this.root.push(r);if(e.paragraphStyles)for(let r of e.paragraphStyles)this.root.push(new _t(r));if(e.characterStyles)for(let r of e.characterStyles)this.root.push(new Et(r))}prepForXml(e){let r=super.prepForXml(e),t=r[\"w:styles\"];if(!Array.isArray(t))return r;let s=n=>t.filter(c=>It(c)===n),o=t.map(n=>It(n)===\"w:style\"?Fn(n):void 0),u=t.filter((n,c)=>![\"_attr\",\"w:docDefaults\",\"w:latentStyles\"].includes(It(n))&&(o[c]===void 0||o.lastIndexOf(o[c])===c)),a=u.some(n=>It(n)===\"w:style\"&&kc(n))?u:u.map(n=>{var c,g;return It(n)===\"w:style\"&&Fn(n)===\"Normal\"&&((c=(g=hn(n))===null||g===void 0?void 0:g[\"w:type\"])!==null&&c!==void 0?c:\"paragraph\")===\"paragraph\"?Rc(n):n});return{\"w:styles\":[...s(\"_attr\"),...s(\"w:docDefaults\").slice(-1),...s(\"w:latentStyles\").slice(-1),...a]}}},Ic=class extends ue{constructor(e){super(\"w:pPrDefault\"),this.root.push(new it(e,{implicitListParagraphStyle:!1}))}},Cc=class extends ue{constructor(e){super(\"w:rPrDefault\"),this.root.push(new st(e))}},Nc=class extends ue{constructor(e){super(\"w:docDefaults\"),ee(this,\"runPropertiesDefaults\",void 0),ee(this,\"paragraphPropertiesDefaults\",void 0),this.runPropertiesDefaults=new Cc(e.run),this.paragraphPropertiesDefaults=new Ic(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}},Oc=class{newInstance(e){let r=(0,dr.xml2js)(e,{compact:!1}),t;for(let o of r.elements||[])o.name===\"w:styles\"&&(t=o);if(t===void 0)throw new Error(\"can not find styles element\");let s=t.elements||[];return{initialStyles:new Ls(t.attributes),importedStyles:s.map(o=>en(o))}}},oa=(e={})=>{var r;return{normal:new _t({id:\"Normal\",name:\"Normal\",quickFormat:!0}),document:new Nc((r=e.document)!==null&&r!==void 0?r:{}),title:new hc(he({run:{size:56}},e.title)),heading1:new dc(he({run:{color:\"2E74B5\",size:32}},e.heading1)),heading2:new fc(he({run:{color:\"2E74B5\",size:26}},e.heading2)),heading3:new pc(he({run:{color:\"1F4D78\",size:24}},e.heading3)),heading4:new mc(he({run:{color:\"2E74B5\",italics:!0}},e.heading4)),heading5:new vc(he({run:{color:\"2E74B5\"}},e.heading5)),heading6:new wc(he({run:{color:\"1F4D78\"}},e.heading6)),strong:new gc(he({run:{bold:!0}},e.strong)),listParagraph:new yc(e.listParagraph||{}),hyperlink:new Ac(e.hyperlink||{}),footnoteReference:new _c(e.footnoteReference||{}),footnoteText:new bc(e.footnoteText||{}),footnoteTextChar:new Ec(e.footnoteTextChar||{}),endnoteReference:new Tc(e.endnoteReference||{}),endnoteText:new xc(e.endnoteText||{}),endnoteTextChar:new Sc(e.endnoteTextChar||{})}},Bn=class{newInstance(e={}){return{initialStyles:new vr([\"mc\",\"r\",\"w\",\"w14\",\"w15\"],\"w14 w15\"),importedStyles:Object.values(oa(e))}}},la={headings:{latin:\"Calibri Light\",panose:\"020F0302020204030204\"},body:{latin:\"Calibri\",panose:\"020F0502020204030204\"}},Pc=[[\"Jpan\",\"\\u6E38\\u30B4\\u30B7\\u30C3\\u30AF Light\",\"\\u6E38\\u660E\\u671D\"],[\"Hang\",\"\\uB9D1\\uC740 \\uACE0\\uB515\"],[\"Hans\",\"\\u7B49\\u7EBF Light\",\"\\u7B49\\u7EBF\"],[\"Hant\",\"\\u65B0\\u7D30\\u660E\\u9AD4\"],[\"Arab\",\"Times New Roman\",\"Arial\"],[\"Hebr\",\"Times New Roman\",\"Arial\"],[\"Thai\",\"Angsana New\",\"Cordia New\"],[\"Ethi\",\"Nyala\"],[\"Beng\",\"Vrinda\"],[\"Gujr\",\"Shruti\"],[\"Khmr\",\"MoolBoran\",\"DaunPenh\"],[\"Knda\",\"Tunga\"],[\"Guru\",\"Raavi\"],[\"Cans\",\"Euphemia\"],[\"Cher\",\"Plantagenet Cherokee\"],[\"Yiii\",\"Microsoft Yi Baiti\"],[\"Tibt\",\"Microsoft Himalaya\"],[\"Thaa\",\"MV Boli\"],[\"Deva\",\"Mangal\"],[\"Telu\",\"Gautami\"],[\"Taml\",\"Latha\"],[\"Syrc\",\"Estrangelo Edessa\"],[\"Orya\",\"Kalinga\"],[\"Mlym\",\"Kartika\"],[\"Laoo\",\"DokChampa\"],[\"Sinh\",\"Iskoola Pota\"],[\"Mong\",\"Mongolian Baiti\"],[\"Viet\",\"Times New Roman\",\"Arial\"],[\"Uigh\",\"Microsoft Uighur\"],[\"Geor\",\"Sylfaen\"],[\"Armn\",\"Arial\"],[\"Bugi\",\"Leelawadee UI\"],[\"Bopo\",\"Microsoft JhengHei\"],[\"Java\",\"Javanese Text\"],[\"Lisu\",\"Segoe UI\"],[\"Mymr\",\"Myanmar Text\"],[\"Nkoo\",\"Ebrima\"],[\"Olck\",\"Nirmala UI\"],[\"Osma\",\"Ebrima\"],[\"Phag\",\"Phagspa\"],[\"Syrn\",\"Estrangelo Edessa\"],[\"Syrj\",\"Estrangelo Edessa\"],[\"Syre\",\"Estrangelo Edessa\"],[\"Sora\",\"Nirmala UI\"],[\"Tale\",\"Microsoft Tai Le\"],[\"Talu\",\"Microsoft New Tai Lue\"],[\"Tfng\",\"Ebrima\"]],kr=(e,r,t)=>new fe({name:e,attributes:{typeface:{key:\"typeface\",value:r},panose:{key:\"panose\",value:t}}}),Dc=(e,r)=>{let t=r[e],s=typeof t==\"string\"?t:t?.latin;return s??la[e].latin},Mn=(e,r)=>{let t=r[e],{eastAsia:s=\"\",complexScript:o=\"\"}=typeof t==\"object\"?t:{},u=Dc(e,r),a=la[e];return new fe({name:e===\"headings\"?\"a:majorFont\":\"a:minorFont\",children:[kr(\"a:latin\",u,u===a.latin?a.panose:void 0),kr(\"a:ea\",s),kr(\"a:cs\",o),...Pc.map(([n,c,g=c])=>new fe({name:\"a:font\",attributes:{script:{key:\"script\",value:n},typeface:{key:\"typeface\",value:e===\"headings\"?c:g}}}))]})},Lc=(e,r={})=>new fe({name:\"a:fontScheme\",attributes:{name:{key:\"name\",value:e}},children:[Mn(\"headings\",r),Mn(\"body\",r)]}),ua=(e=[])=>new fe({name:\"a:schemeClr\",attributes:{value:{key:\"val\",value:\"phClr\"}},children:e.map(([r,t])=>new fe({name:`a:${r}`,attributes:{value:{key:\"val\",value:t}}}))}),rr=e=>new fe({name:\"a:solidFill\",children:[ua(e)]}),Rr=e=>new fe({name:\"a:gradFill\",attributes:{rotateWithShape:{key:\"rotWithShape\",value:!0}},children:[new fe({name:\"a:gsLst\",children:e.map((r,t)=>new fe({name:\"a:gs\",attributes:{position:{key:\"pos\",value:t*5e4}},children:[ua(r)]}))}),new fe({name:\"a:lin\",attributes:{angle:{key:\"ang\",value:54e5},scaled:{key:\"scaled\",value:!1}}})]}),Ir=e=>new fe({name:\"a:ln\",attributes:{width:{key:\"w\",value:e},cap:{key:\"cap\",value:\"flat\"},compound:{key:\"cmpd\",value:\"sng\"},alignment:{key:\"algn\",value:\"ctr\"}},children:[rr(),new fe({name:\"a:prstDash\",attributes:{value:{key:\"val\",value:\"solid\"}}}),new fe({name:\"a:miter\",attributes:{limit:{key:\"lim\",value:8e5}}})]}),Cr=e=>new fe({name:\"a:effectStyle\",children:[new fe({name:\"a:effectLst\",children:e})]}),Fc=()=>new fe({name:\"a:outerShdw\",attributes:{blurRadius:{key:\"blurRad\",value:57150},distance:{key:\"dist\",value:19050},direction:{key:\"dir\",value:54e5},alignment:{key:\"algn\",value:\"ctr\"},rotateWithShape:{key:\"rotWithShape\",value:!1}},children:[new fe({name:\"a:srgbClr\",attributes:{value:{key:\"val\",value:\"000000\"}},children:[new fe({name:\"a:alpha\",attributes:{value:{key:\"val\",value:63e3}}})]})]}),Bc=()=>new fe({name:\"a:fmtScheme\",attributes:{name:{key:\"name\",value:\"Office\"}},children:[new fe({name:\"a:fillStyleLst\",children:[rr(),Rr([[[\"lumMod\",11e4],[\"satMod\",105e3],[\"tint\",67e3]],[[\"lumMod\",105e3],[\"satMod\",103e3],[\"tint\",73e3]],[[\"lumMod\",105e3],[\"satMod\",109e3],[\"tint\",81e3]]]),Rr([[[\"satMod\",103e3],[\"lumMod\",102e3],[\"tint\",94e3]],[[\"satMod\",11e4],[\"lumMod\",1e5],[\"shade\",1e5]],[[\"lumMod\",99e3],[\"satMod\",12e4],[\"shade\",78e3]]])]}),new fe({name:\"a:lnStyleLst\",children:[Ir(6350),Ir(12700),Ir(19050)]}),new fe({name:\"a:effectStyleLst\",children:[Cr([]),Cr([]),Cr([Fc()])]}),new fe({name:\"a:bgFillStyleLst\",children:[rr(),rr([[\"tint\",95e3],[\"satMod\",17e4]]),Rr([[[\"tint\",93e3],[\"satMod\",15e4],[\"shade\",98e3],[\"lumMod\",102e3]],[[\"tint\",98e3],[\"satMod\",13e4],[\"shade\",9e4],[\"lumMod\",103e3]],[[\"shade\",63e3],[\"satMod\",12e4]]])]})]}),Mc=class extends ue{constructor({name:e=\"Office Theme\",colors:r,fonts:t}={}){super(\"a:theme\"),ee(this,\"colors\",void 0),this.colors=nn(r),this.root.push(new Jn({namespace:{key:\"xmlns:a\",value:\"http://schemas.openxmlformats.org/drawingml/2006/main\"},name:{key:\"name\",value:e}})),this.root.push(new fe({name:\"a:themeElements\",children:[$s(r?e:\"Office\",r),Lc(t?e:\"Office\",t),Bc()]})),this.root.push(new fe({name:\"a:objectDefaults\"})),this.root.push(new fe({name:\"a:extraClrSchemeLst\"}))}get Colors(){return this.colors}},ca=class{constructor(e){var r,t,s,o,u,a,n,c,g,E,p,x;if(ee(this,\"currentRelationshipId\",1),ee(this,\"documentWrapper\",void 0),ee(this,\"headers\",[]),ee(this,\"footers\",[]),ee(this,\"coreProperties\",void 0),ee(this,\"numbering\",void 0),ee(this,\"media\",void 0),ee(this,\"fileRelationships\",void 0),ee(this,\"footnotesWrapper\",void 0),ee(this,\"endnotesWrapper\",void 0),ee(this,\"settings\",void 0),ee(this,\"contentTypes\",void 0),ee(this,\"customProperties\",void 0),ee(this,\"appProperties\",void 0),ee(this,\"styles\",void 0),ee(this,\"comments\",void 0),ee(this,\"commentsExtended\",void 0),ee(this,\"commentsIds\",void 0),ee(this,\"fontWrapper\",void 0),ee(this,\"theme\",void 0),ee(this,\"packageParts\",void 0),this.coreProperties=new hu(he(he({},e),{},{creator:(r=e.creator)!==null&&r!==void 0?r:\"Un-named\",revision:(t=e.revision)!==null&&t!==void 0?t:1,lastModifiedBy:(s=e.lastModifiedBy)!==null&&s!==void 0?s:\"Un-named\"})),this.numbering=new nc(e.numbering?e.numbering:{config:[]}),this.comments=new zo((o=e.comments)!==null&&o!==void 0?o:{children:[]}),this.comments.ThreadData&&(this.commentsExtended=new qo(this.comments.ThreadData)),this.comments.CommentIdsData&&(this.commentsIds=new Jo(this.comments.CommentIdsData)),this.fileRelationships=new Ue,this.customProperties=new wu((u=e.customProperties)!==null&&u!==void 0?u:[]),this.appProperties=new lu,this.footnotesWrapper=new Fu,this.endnotesWrapper=new ku,this.contentTypes=new cu,this.packageParts=new ia(this.contentTypes),this.documentWrapper=new bu({background:e.background}),this.settings=new oc({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:(a=e.features)===null||a===void 0?void 0:a.trackRevisions,updateFields:(n=e.features)===null||n===void 0?void 0:n.updateFields,defaultTabStop:e.defaultTabStop,hyphenation:{autoHyphenation:(c=e.hyphenation)===null||c===void 0?void 0:c.autoHyphenation,hyphenationZone:(g=e.hyphenation)===null||g===void 0?void 0:g.hyphenationZone,consecutiveHyphenLimit:(E=e.hyphenation)===null||E===void 0?void 0:E.consecutiveHyphenLimit,doNotHyphenateCaps:(p=e.hyphenation)===null||p===void 0?void 0:p.doNotHyphenateCaps}}),this.media=new na,e.externalStyles!==void 0){var m,w;let b=(m=(w=e.styles)===null||w===void 0?void 0:w.default)!==null&&m!==void 0?m:{},T=Object.entries(oa(b)),R=([P])=>b[P]!==void 0,S=new Oc().newInstance(e.externalStyles);this.styles=new Ar(he(he({},S),{},{importedStyles:[...T.filter(P=>!R(P)).map(([,P])=>P),...S.importedStyles,...T.filter(R).map(([,P])=>P)]}))}else if(e.styles){let b=new Bn().newInstance(e.styles.default);this.styles=new Ar(he(he({},b),e.styles))}else{let b=new Bn;this.styles=new Ar(b.newInstance())}this.addDefaultRelationships();for(let b of e.sections)this.addSection(b);if(e.footnotes)for(let b in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(b),e.footnotes[b].children);if(e.endnotes)for(let b in e.endnotes)this.endnotesWrapper.View.createEndnote(parseFloat(b),e.endnotes[b].children);this.fontWrapper=new Hi((x=e.fonts)!==null&&x!==void 0?x:[]),this.theme=new Mc(e.theme),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\",\"theme/theme1.xml\")}addSection({headers:e={},footers:r={},children:t,properties:s}){this.documentWrapper.View.Body.addSection(he(he({},s),{},{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:r.default?this.createFooter(r.default):void 0,first:r.first?this.createFooter(r.first):void 0,even:r.even?this.createFooter(r.even):void 0}}));for(let o of t)this.documentWrapper.View.add(o)}createHeader(e){let r=new Uu(this.media,this.currentRelationshipId++);for(let t of e.options.children)r.add(t);return this.addHeaderToDocument(r),r}createFooter(e){let r=new Cu(this.media,this.currentRelationshipId++);for(let t of e.options.children)r.add(t);return this.addFooterToDocument(r),r}addHeaderToDocument(e,r=ft.DEFAULT){this.headers.push({header:e,type:r}),this.documentWrapper.Relationships.addRelationship(e.View.ReferenceId,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header\",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,r=ft.DEFAULT){this.footers.push({footer:e,type:r}),this.documentWrapper.Relationships.addRelationship(e.View.ReferenceId,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer\",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.addRelationship(1,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\",\"word/document.xml\"),this.fileRelationships.addRelationship(2,\"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties\",\"docProps/core.xml\"),this.fileRelationships.addRelationship(3,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties\",\"docProps/app.xml\"),this.fileRelationships.addRelationship(4,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties\",\"docProps/custom.xml\"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles\",\"styles.xml\"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering\",\"numbering.xml\"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes\",\"footnotes.xml\"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes\",\"endnotes.xml\"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings\",\"settings.xml\"),this.comments.IsEmpty||(this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments\",\"comments.xml\"),this.contentTypes.addComments()),this.commentsExtended&&(this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,\"http://schemas.microsoft.com/office/2011/relationships/commentsExtended\",\"commentsExtended.xml\"),this.contentTypes.addCommentsExtended()),this.commentsIds&&(this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,\"http://schemas.microsoft.com/office/2016/09/relationships/commentsIds\",\"commentsIds.xml\"),this.contentTypes.addCommentsIds())}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(e=>e.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Endnotes(){return this.endnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get CommentsExtended(){return this.commentsExtended}get CommentsIds(){return this.commentsIds}get FontTable(){return this.fontWrapper}get Theme(){return this.theme}get PackageParts(){return this.packageParts}};var Uc=ce(((e,r)=>{yt(),Xe();/*!\n\nJSZip v3.10.2 - A JavaScript class for generating and reading zip files\n<http://stuartk.com/jszip>\n\n(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>\nDual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.\n\nJSZip uses the library pako released under the MIT license :\nhttps://github.com/nodeca/pako/blob/main/LICENSE\n*/(function(t){typeof e==\"object\"&&typeof r<\"u\"?r.exports=t():typeof define==\"function\"&&define.amd?define([],t):(typeof window<\"u\"?window:typeof ke<\"u\"?ke:typeof self<\"u\"?self:this).JSZip=t()})(function(){return(function t(s,o,u){function a(g,E){if(!o[g]){if(!s[g]){var p=typeof qt==\"function\"&&qt;if(!E&&p)return p(g,!0);if(n)return n(g,!0);var x=new Error(\"Cannot find module '\"+g+\"'\");throw x.code=\"MODULE_NOT_FOUND\",x}var m=o[g]={exports:{}};s[g][0].call(m.exports,function(w){var b=s[g][1][w];return a(b||w)},m,m.exports,t,s,o,u)}return o[g].exports}for(var n=typeof qt==\"function\"&&qt,c=0;c<u.length;c++)a(u[c]);return a})({1:[function(t,s,o){\"use strict\";var u=t(\"./utils\"),a=t(\"./support\"),n=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";o.encode=function(c){for(var g,E,p,x,m,w,b,T=[],R=0,S=c.length,P=S,O=u.getTypeOf(c)!==\"string\";R<c.length;)P=S-R,p=O?(g=c[R++],E=R<S?c[R++]:0,R<S?c[R++]:0):(g=c.charCodeAt(R++),E=R<S?c.charCodeAt(R++):0,R<S?c.charCodeAt(R++):0),x=g>>2,m=(3&g)<<4|E>>4,w=1<P?(15&E)<<2|p>>6:64,b=2<P?63&p:64,T.push(n.charAt(x)+n.charAt(m)+n.charAt(w)+n.charAt(b));return T.join(\"\")},o.decode=function(c){var g,E,p,x,m,w,b=0,T=0,R=\"data:\";if(c.substr(0,R.length)===R)throw new Error(\"Invalid base64 input, it looks like a data url.\");var S,P=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,\"\")).length/4;if(c.charAt(c.length-1)===n.charAt(64)&&P--,c.charAt(c.length-2)===n.charAt(64)&&P--,P%1!=0)throw new Error(\"Invalid base64 input, bad content length.\");for(S=a.uint8array?new Uint8Array(0|P):new Array(0|P);b<c.length;)g=n.indexOf(c.charAt(b++))<<2|(x=n.indexOf(c.charAt(b++)))>>4,E=(15&x)<<4|(m=n.indexOf(c.charAt(b++)))>>2,p=(3&m)<<6|(w=n.indexOf(c.charAt(b++))),S[T++]=g,m!==64&&(S[T++]=E),w!==64&&(S[T++]=p);return S}},{\"./support\":30,\"./utils\":32}],2:[function(t,s,o){\"use strict\";var u=t(\"./external\"),a=t(\"./stream/DataWorker\"),n=t(\"./stream/Crc32Probe\"),c=t(\"./stream/DataLengthProbe\");function g(E,p,x,m,w){this.compressedSize=E,this.uncompressedSize=p,this.crc32=x,this.compression=m,this.compressedContent=w}g.prototype={getContentWorker:function(){var E=new a(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c(\"data_length\")),p=this;return E.on(\"end\",function(){if(this.streamInfo.data_length!==p.uncompressedSize)throw new Error(\"Bug : uncompressed data size mismatch\")}),E},getCompressedWorker:function(){return new a(u.Promise.resolve(this.compressedContent)).withStreamInfo(\"compressedSize\",this.compressedSize).withStreamInfo(\"uncompressedSize\",this.uncompressedSize).withStreamInfo(\"crc32\",this.crc32).withStreamInfo(\"compression\",this.compression)}},g.createWorkerFrom=function(E,p,x){return E.pipe(new n).pipe(new c(\"uncompressedSize\")).pipe(p.compressWorker(x)).pipe(new c(\"compressedSize\")).withStreamInfo(\"compression\",p)},s.exports=g},{\"./external\":6,\"./stream/Crc32Probe\":25,\"./stream/DataLengthProbe\":26,\"./stream/DataWorker\":27}],3:[function(t,s,o){\"use strict\";var u=t(\"./stream/GenericWorker\");o.STORE={magic:\"\\0\\0\",compressWorker:function(){return new u(\"STORE compression\")},uncompressWorker:function(){return new u(\"STORE decompression\")}},o.DEFLATE=t(\"./flate\")},{\"./flate\":7,\"./stream/GenericWorker\":28}],4:[function(t,s,o){\"use strict\";var u=t(\"./utils\"),a=(function(){for(var n,c=[],g=0;g<256;g++){n=g;for(var E=0;E<8;E++)n=1&n?3988292384^n>>>1:n>>>1;c[g]=n}return c})();s.exports=function(n,c){return n!==void 0&&n.length?u.getTypeOf(n)!==\"string\"?(function(g,E,p,x){var m=a,w=x+p;g^=-1;for(var b=x;b<w;b++)g=g>>>8^m[255&(g^E[b])];return-1^g})(0|c,n,n.length,0):(function(g,E,p,x){var m=a,w=x+p;g^=-1;for(var b=x;b<w;b++)g=g>>>8^m[255&(g^E.charCodeAt(b))];return-1^g})(0|c,n,n.length,0):0}},{\"./utils\":32}],5:[function(t,s,o){\"use strict\";o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(t,s,o){\"use strict\";var u=null;u=typeof Promise<\"u\"?Promise:t(\"lie\"),s.exports={Promise:u}},{lie:37}],7:[function(t,s,o){\"use strict\";var u=typeof Uint8Array<\"u\"&&typeof Uint16Array<\"u\"&&typeof Uint32Array<\"u\",a=t(\"pako\"),n=t(\"./utils\"),c=t(\"./stream/GenericWorker\"),g=u?\"uint8array\":\"array\";function E(p,x){c.call(this,\"FlateWorker/\"+p),this._pako=null,this._pakoAction=p,this._pakoOptions=x,this.meta={}}o.magic=\"\\b\\0\",n.inherits(E,c),E.prototype.processChunk=function(p){this.meta=p.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(g,p.data),!1)},E.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},E.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},E.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var p=this;this._pako.onData=function(x){p.push({data:x,meta:p.meta})}},o.compressWorker=function(p){return new E(\"Deflate\",p)},o.uncompressWorker=function(){return new E(\"Inflate\",{})}},{\"./stream/GenericWorker\":28,\"./utils\":32,pako:38}],8:[function(t,s,o){\"use strict\";function u(m,w){var b,T=\"\";for(b=0;b<w;b++)T+=String.fromCharCode(255&m),m>>>=8;return T}function a(m,w,b,T,R,S){var P,O,y=m.file,d=m.compression,N=S!==g.utf8encode,B=n.transformTo(\"string\",S(y.name)),_=n.transformTo(\"string\",g.utf8encode(y.name)),j=y.comment,J=n.transformTo(\"string\",S(j)),C=n.transformTo(\"string\",g.utf8encode(j)),G=_.length!==y.name.length,A=C.length!==j.length,z=\"\",Q=\"\",q=\"\",se=y.dir,Y=y.date,te={crc32:0,compressedSize:0,uncompressedSize:0};w&&!b||(te.crc32=m.crc32,te.compressedSize=m.compressedSize,te.uncompressedSize=m.uncompressedSize);var V=0;w&&(V|=8),N||!G&&!A||(V|=2048);var D=0,X=0;se&&(D|=16),R===\"UNIX\"?(X=798,D|=(function(re,pe){var k=re;return re||(k=pe?16893:33204),(65535&k)<<16})(y.unixPermissions,se)):(X=20,D|=(function(re){return 63&(re||0)})(y.dosPermissions)),P=Y.getUTCHours(),P<<=6,P|=Y.getUTCMinutes(),P<<=5,P|=Y.getUTCSeconds()/2,O=Y.getUTCFullYear()-1980,O<<=4,O|=Y.getUTCMonth()+1,O<<=5,O|=Y.getUTCDate(),G&&(Q=u(1,1)+u(E(B),4)+_,z+=\"up\"+u(Q.length,2)+Q),A&&(q=u(1,1)+u(E(J),4)+C,z+=\"uc\"+u(q.length,2)+q);var Z=\"\";return Z+=`\n\\0`,Z+=u(V,2),Z+=d.magic,Z+=u(P,2),Z+=u(O,2),Z+=u(te.crc32,4),Z+=u(te.compressedSize,4),Z+=u(te.uncompressedSize,4),Z+=u(B.length,2),Z+=u(z.length,2),{fileRecord:p.LOCAL_FILE_HEADER+Z+B+z,dirRecord:p.CENTRAL_FILE_HEADER+u(X,2)+Z+u(J.length,2)+\"\\0\\0\\0\\0\"+u(D,4)+u(T,4)+B+z+J}}var n=t(\"../utils\"),c=t(\"../stream/GenericWorker\"),g=t(\"../utf8\"),E=t(\"../crc32\"),p=t(\"../signature\");function x(m,w,b,T){c.call(this,\"ZipFileWorker\"),this.bytesWritten=0,this.zipComment=w,this.zipPlatform=b,this.encodeFileName=T,this.streamFiles=m,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(x,c),x.prototype.push=function(m){var w=m.meta.percent||0,b=this.entriesCount,T=this._sources.length;this.accumulate?this.contentBuffer.push(m):(this.bytesWritten+=m.data.length,c.prototype.push.call(this,{data:m.data,meta:{currentFile:this.currentFile,percent:b?(w+100*(b-T-1))/b:100}}))},x.prototype.openedSource=function(m){this.currentSourceOffset=this.bytesWritten,this.currentFile=m.file.name;var w=this.streamFiles&&!m.file.dir;if(w){var b=a(m,w,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:b.fileRecord,meta:{percent:0}})}else this.accumulate=!0},x.prototype.closedSource=function(m){this.accumulate=!1;var w=this.streamFiles&&!m.file.dir,b=a(m,w,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(b.dirRecord),w)this.push({data:(function(T){return p.DATA_DESCRIPTOR+u(T.crc32,4)+u(T.compressedSize,4)+u(T.uncompressedSize,4)})(m),meta:{percent:100}});else for(this.push({data:b.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},x.prototype.flush=function(){for(var m=this.bytesWritten,w=0;w<this.dirRecords.length;w++)this.push({data:this.dirRecords[w],meta:{percent:100}});var b=this.bytesWritten-m,T=(function(R,S,P,O,y){var d=n.transformTo(\"string\",y(O));return p.CENTRAL_DIRECTORY_END+\"\\0\\0\\0\\0\"+u(R,2)+u(R,2)+u(S,4)+u(P,4)+u(d.length,2)+d})(this.dirRecords.length,b,m,this.zipComment,this.encodeFileName);this.push({data:T,meta:{percent:100}})},x.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},x.prototype.registerPrevious=function(m){this._sources.push(m);var w=this;return m.on(\"data\",function(b){w.processChunk(b)}),m.on(\"end\",function(){w.closedSource(w.previous.streamInfo),w._sources.length?w.prepareNextSource():w.end()}),m.on(\"error\",function(b){w.error(b)}),this},x.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},x.prototype.error=function(m){var w=this._sources;if(!c.prototype.error.call(this,m))return!1;for(var b=0;b<w.length;b++)try{w[b].error(m)}catch{}return!0},x.prototype.lock=function(){c.prototype.lock.call(this);for(var m=this._sources,w=0;w<m.length;w++)m[w].lock()},s.exports=x},{\"../crc32\":4,\"../signature\":23,\"../stream/GenericWorker\":28,\"../utf8\":31,\"../utils\":32}],9:[function(t,s,o){\"use strict\";var u=t(\"../compressions\"),a=t(\"./ZipFileWorker\");o.generateWorker=function(n,c,g){var E=new a(c.streamFiles,g,c.platform,c.encodeFileName),p=0;try{n.forEach(function(x,m){p++;var w=(function(S,P){var O=S||P,y=u[O];if(!y)throw new Error(O+\" is not a valid compression method !\");return y})(m.options.compression,c.compression),b=m.options.compressionOptions||c.compressionOptions||{},T=m.dir,R=m.date;m._compressWorker(w,b).withStreamInfo(\"file\",{name:x,dir:T,date:R,comment:m.comment||\"\",unixPermissions:m.unixPermissions,dosPermissions:m.dosPermissions}).pipe(E)}),E.entriesCount=p}catch(x){E.error(x)}return E}},{\"../compressions\":3,\"./ZipFileWorker\":8}],10:[function(t,s,o){\"use strict\";function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error(\"The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.\");this.files=Object.create(null),this.comment=null,this.root=\"\",this.clone=function(){var a=new u;for(var n in this)typeof this[n]!=\"function\"&&(a[n]=this[n]);return a}}(u.prototype=t(\"./object\")).loadAsync=t(\"./load\"),u.support=t(\"./support\"),u.defaults=t(\"./defaults\"),u.version=\"3.10.2\",u.loadAsync=function(a,n){return new u().loadAsync(a,n)},u.external=t(\"./external\"),s.exports=u},{\"./defaults\":5,\"./external\":6,\"./load\":11,\"./object\":15,\"./support\":30}],11:[function(t,s,o){\"use strict\";var u=t(\"./utils\"),a=t(\"./external\"),n=t(\"./utf8\"),c=t(\"./zipEntries\"),g=t(\"./stream/Crc32Probe\"),E=t(\"./nodejsUtils\");function p(x){return new a.Promise(function(m,w){var b=x.decompressed.getContentWorker().pipe(new g);b.on(\"error\",function(T){w(T)}).on(\"end\",function(){b.streamInfo.crc32!==x.decompressed.crc32?w(new Error(\"Corrupted zip : CRC32 mismatch\")):m()}).resume()})}s.exports=function(x,m){var w=this;return m=u.extend(m||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),E.isNode&&E.isStream(x)?a.Promise.reject(new Error(\"JSZip can't accept a stream when loading a zip file.\")):u.prepareContent(\"the loaded zip file\",x,!0,m.optimizedBinaryString,m.base64).then(function(b){var T=new c(m);return T.load(b),T}).then(function(b){var T=[a.Promise.resolve(b)],R=b.files;if(m.checkCRC32)for(var S=0;S<R.length;S++)T.push(p(R[S]));return a.Promise.all(T)}).then(function(b){for(var T=b.shift(),R=T.files,S=0;S<R.length;S++){var P=R[S],O=P.fileNameStr,y=u.resolve(P.fileNameStr);w.file(y,P.decompressed,{binary:!0,optimizedBinaryString:!0,date:P.date,dir:P.dir,comment:P.fileCommentStr.length?P.fileCommentStr:null,unixPermissions:P.unixPermissions,dosPermissions:P.dosPermissions,createFolders:m.createFolders}),P.dir||(w.file(y).unsafeOriginalName=O)}return T.zipComment.length&&(w.comment=T.zipComment),w})}},{\"./external\":6,\"./nodejsUtils\":14,\"./stream/Crc32Probe\":25,\"./utf8\":31,\"./utils\":32,\"./zipEntries\":33}],12:[function(t,s,o){\"use strict\";var u=t(\"../utils\"),a=t(\"../stream/GenericWorker\");function n(c,g){a.call(this,\"Nodejs stream input adapter for \"+c),this._upstreamEnded=!1,this._bindStream(g)}u.inherits(n,a),n.prototype._bindStream=function(c){var g=this;(this._stream=c).pause(),c.on(\"data\",function(E){g.push({data:E,meta:{percent:0}})}).on(\"error\",function(E){g.isPaused?this.generatedError=E:g.error(E)}).on(\"end\",function(){g.isPaused?g._upstreamEnded=!0:g.end()})},n.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},s.exports=n},{\"../stream/GenericWorker\":28,\"../utils\":32}],13:[function(t,s,o){\"use strict\";var u=t(\"readable-stream\").Readable;function a(n,c,g){u.call(this,c),this._helper=n;var E=this;n.on(\"data\",function(p,x){E.push(p)||E._helper.pause(),g&&g(x)}).on(\"error\",function(p){E.emit(\"error\",p)}).on(\"end\",function(){E.push(null)})}t(\"../utils\").inherits(a,u),a.prototype._read=function(){this._helper.resume()},s.exports=a},{\"../utils\":32,\"readable-stream\":16}],14:[function(t,s,o){\"use strict\";s.exports={isNode:typeof Buffer<\"u\",newBufferFrom:function(u,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,a);if(typeof u==\"number\")throw new Error('The \"data\" argument must not be a number');return new Buffer(u,a)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var a=new Buffer(u);return a.fill(0),a},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on==\"function\"&&typeof u.pause==\"function\"&&typeof u.resume==\"function\"}}},{}],15:[function(t,s,o){\"use strict\";function u(O,y,d){var N,B=n.getTypeOf(y),_=n.extend(d||{},E);_.date=_.date||new Date,_.compression!==null&&(_.compression=_.compression.toUpperCase()),typeof _.unixPermissions==\"string\"&&(_.unixPermissions=parseInt(_.unixPermissions,8)),_.unixPermissions&&16384&_.unixPermissions&&(_.dir=!0),_.dosPermissions&&16&_.dosPermissions&&(_.dir=!0),_.dir&&(O=R(O)),_.createFolders&&(N=T(O))&&S.call(this,N,!0);var j=B===\"string\"&&_.binary===!1&&_.base64===!1;d&&d.binary!==void 0||(_.binary=!j),(y instanceof p&&y.uncompressedSize===0||_.dir||!y||y.length===0)&&(_.base64=!1,_.binary=!0,y=\"\",_.compression=\"STORE\",B=\"string\");var J=null;J=y instanceof p||y instanceof c?y:w.isNode&&w.isStream(y)?new b(O,y):n.prepareContent(O,y,_.binary,_.optimizedBinaryString,_.base64);var C=new x(O,J,_);this.files[O]=C}var a=t(\"./utf8\"),n=t(\"./utils\"),c=t(\"./stream/GenericWorker\"),g=t(\"./stream/StreamHelper\"),E=t(\"./defaults\"),p=t(\"./compressedObject\"),x=t(\"./zipObject\"),m=t(\"./generate\"),w=t(\"./nodejsUtils\"),b=t(\"./nodejs/NodejsStreamInputAdapter\"),T=function(O){O.slice(-1)===\"/\"&&(O=O.substring(0,O.length-1));var y=O.lastIndexOf(\"/\");return 0<y?O.substring(0,y):\"\"},R=function(O){return O.slice(-1)!==\"/\"&&(O+=\"/\"),O},S=function(O,y){return y=y!==void 0?y:E.createFolders,O=R(O),this.files[O]||u.call(this,O,null,{dir:!0,createFolders:y}),this.files[O]};function P(O){return Object.prototype.toString.call(O)===\"[object RegExp]\"}s.exports={load:function(){throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\")},forEach:function(O){var y,d,N;for(y in this.files)N=this.files[y],(d=y.slice(this.root.length,y.length))&&y.slice(0,this.root.length)===this.root&&O(d,N)},filter:function(O){var y=[];return this.forEach(function(d,N){O(d,N)&&y.push(N)}),y},file:function(O,y,d){if(arguments.length!==1)return O=this.root+O,u.call(this,O,y,d),this;if(P(O)){var N=O;return this.filter(function(_,j){return!j.dir&&N.test(_)})}var B=this.files[this.root+O];return B&&!B.dir?B:null},folder:function(O){if(!O)return this;if(P(O))return this.filter(function(B,_){return _.dir&&O.test(B)});var y=this.root+O,d=S.call(this,y),N=this.clone();return N.root=d.name,N},remove:function(O){O=this.root+O;var y=this.files[O];if(y||(O.slice(-1)!==\"/\"&&(O+=\"/\"),y=this.files[O]),y&&!y.dir)delete this.files[O];else for(var d=this.filter(function(B,_){return _.name.slice(0,O.length)===O}),N=0;N<d.length;N++)delete this.files[d[N].name];return this},generate:function(){throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\")},generateInternalStream:function(O){var y,d={};try{if((d=n.extend(O||{},{streamFiles:!1,compression:\"STORE\",compressionOptions:null,type:\"\",platform:\"DOS\",comment:null,mimeType:\"application/zip\",encodeFileName:a.utf8encode})).type=d.type.toLowerCase(),d.compression=d.compression.toUpperCase(),d.type===\"binarystring\"&&(d.type=\"string\"),!d.type)throw new Error(\"No output type specified.\");n.checkSupport(d.type),d.platform!==\"darwin\"&&d.platform!==\"freebsd\"&&d.platform!==\"linux\"&&d.platform!==\"sunos\"||(d.platform=\"UNIX\"),d.platform===\"win32\"&&(d.platform=\"DOS\");var N=d.comment||this.comment||\"\";y=m.generateWorker(this,d,N)}catch(B){(y=new c(\"error\")).error(B)}return new g(y,d.type||\"string\",d.mimeType)},generateAsync:function(O,y){return this.generateInternalStream(O).accumulate(y)},generateNodeStream:function(O,y){return(O=O||{}).type||(O.type=\"nodebuffer\"),this.generateInternalStream(O).toNodejsStream(y)}}},{\"./compressedObject\":2,\"./defaults\":5,\"./generate\":9,\"./nodejs/NodejsStreamInputAdapter\":12,\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./stream/StreamHelper\":29,\"./utf8\":31,\"./utils\":32,\"./zipObject\":35}],16:[function(t,s,o){\"use strict\";s.exports=t(\"stream\")},{stream:void 0}],17:[function(t,s,o){\"use strict\";var u=t(\"./DataReader\");function a(n){u.call(this,n);for(var c=0;c<this.data.length;c++)n[c]=255&n[c]}t(\"../utils\").inherits(a,u),a.prototype.byteAt=function(n){return this.data[this.zero+n]},a.prototype.lastIndexOfSignature=function(n){for(var c=n.charCodeAt(0),g=n.charCodeAt(1),E=n.charCodeAt(2),p=n.charCodeAt(3),x=this.length-4;0<=x;--x)if(this.data[x]===c&&this.data[x+1]===g&&this.data[x+2]===E&&this.data[x+3]===p)return x-this.zero;return-1},a.prototype.readAndCheckSignature=function(n){var c=n.charCodeAt(0),g=n.charCodeAt(1),E=n.charCodeAt(2),p=n.charCodeAt(3),x=this.readData(4);return c===x[0]&&g===x[1]&&E===x[2]&&p===x[3]},a.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,c},s.exports=a},{\"../utils\":32,\"./DataReader\":18}],18:[function(t,s,o){\"use strict\";var u=t(\"../utils\");function a(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw new Error(\"End of data reached (data length = \"+this.length+\", asked index = \"+n+\"). Corrupted zip ?\")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var c,g=0;for(this.checkOffset(n),c=this.index+n-1;c>=this.index;c--)g=(g<<8)+this.byteAt(c);return this.index+=n,g},readString:function(n){return u.transformTo(\"string\",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},s.exports=a},{\"../utils\":32}],19:[function(t,s,o){\"use strict\";var u=t(\"./Uint8ArrayReader\");function a(n){u.call(this,n)}t(\"../utils\").inherits(a,u),a.prototype.readData=function(n){this.checkOffset(n);var c=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,c},s.exports=a},{\"../utils\":32,\"./Uint8ArrayReader\":21}],20:[function(t,s,o){\"use strict\";var u=t(\"./DataReader\");function a(n){u.call(this,n)}t(\"../utils\").inherits(a,u),a.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},a.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},a.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},a.prototype.readData=function(n){this.checkOffset(n);var c=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,c},s.exports=a},{\"../utils\":32,\"./DataReader\":18}],21:[function(t,s,o){\"use strict\";var u=t(\"./ArrayReader\");function a(n){u.call(this,n)}t(\"../utils\").inherits(a,u),a.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,c},s.exports=a},{\"../utils\":32,\"./ArrayReader\":17}],22:[function(t,s,o){\"use strict\";var u=t(\"../utils\"),a=t(\"../support\"),n=t(\"./ArrayReader\"),c=t(\"./StringReader\"),g=t(\"./NodeBufferReader\"),E=t(\"./Uint8ArrayReader\");s.exports=function(p){var x=u.getTypeOf(p);return u.checkSupport(x),x!==\"string\"||a.uint8array?x===\"nodebuffer\"?new g(p):a.uint8array?new E(u.transformTo(\"uint8array\",p)):new n(u.transformTo(\"array\",p)):new c(p)}},{\"../support\":30,\"../utils\":32,\"./ArrayReader\":17,\"./NodeBufferReader\":19,\"./StringReader\":20,\"./Uint8ArrayReader\":21}],23:[function(t,s,o){\"use strict\";o.LOCAL_FILE_HEADER=\"PK\u0003\u0004\",o.CENTRAL_FILE_HEADER=\"PK\u0001\u0002\",o.CENTRAL_DIRECTORY_END=\"PK\u0005\u0006\",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR=\"PK\u0006\\x07\",o.ZIP64_CENTRAL_DIRECTORY_END=\"PK\u0006\u0006\",o.DATA_DESCRIPTOR=\"PK\\x07\\b\"},{}],24:[function(t,s,o){\"use strict\";var u=t(\"./GenericWorker\"),a=t(\"../utils\");function n(c){u.call(this,\"ConvertWorker to \"+c),this.destType=c}a.inherits(n,u),n.prototype.processChunk=function(c){this.push({data:a.transformTo(this.destType,c.data),meta:c.meta})},s.exports=n},{\"../utils\":32,\"./GenericWorker\":28}],25:[function(t,s,o){\"use strict\";var u=t(\"./GenericWorker\"),a=t(\"../crc32\");function n(){u.call(this,\"Crc32Probe\"),this.withStreamInfo(\"crc32\",0)}t(\"../utils\").inherits(n,u),n.prototype.processChunk=function(c){this.streamInfo.crc32=a(c.data,this.streamInfo.crc32||0),this.push(c)},s.exports=n},{\"../crc32\":4,\"../utils\":32,\"./GenericWorker\":28}],26:[function(t,s,o){\"use strict\";var u=t(\"../utils\"),a=t(\"./GenericWorker\");function n(c){a.call(this,\"DataLengthProbe for \"+c),this.propName=c,this.withStreamInfo(c,0)}u.inherits(n,a),n.prototype.processChunk=function(c){if(c){var g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+c.data.length}a.prototype.processChunk.call(this,c)},s.exports=n},{\"../utils\":32,\"./GenericWorker\":28}],27:[function(t,s,o){\"use strict\";var u=t(\"../utils\"),a=t(\"./GenericWorker\");function n(c){a.call(this,\"DataWorker\");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=\"\",this._tickScheduled=!1,c.then(function(E){g.dataIsReady=!0,g.data=E,g.max=E&&E.length||0,g.type=u.getTypeOf(E),g.isPaused||g._tickAndRepeat()},function(E){g.error(E)})}u.inherits(n,a),n.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case\"string\":c=this.data.substring(this.index,g);break;case\"uint8array\":c=this.data.subarray(this.index,g);break;case\"array\":case\"nodebuffer\":c=this.data.slice(this.index,g)}return this.index=g,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},s.exports=n},{\"../utils\":32,\"./GenericWorker\":28}],28:[function(t,s,o){\"use strict\";function u(a){this.name=a||\"default\",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(a){this.emit(\"data\",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(\"end\"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit(\"error\",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit(\"error\",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,n){return this._listeners[a].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,n){if(this._listeners[a])for(var c=0;c<this._listeners[a].length;c++)this._listeners[a][c].call(this,n)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error(\"The stream '\"+this+\"' has already been used.\");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var n=this;return a.on(\"data\",function(c){n.processChunk(c)}),a.on(\"end\",function(){n.end()}),a.on(\"error\",function(c){n.error(c)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,n){return this.extraStreamInfo[a]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error(\"The stream '\"+this+\"' has already been used.\");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a=\"Worker \"+this.name;return this.previous?this.previous+\" -> \"+a:a}},s.exports=u},{}],29:[function(t,s,o){\"use strict\";var u=t(\"../utils\"),a=t(\"./ConvertWorker\"),n=t(\"./GenericWorker\"),c=t(\"../base64\"),g=t(\"../support\"),E=t(\"../external\"),p=null;if(g.nodestream)try{p=t(\"../nodejs/NodejsStreamOutputAdapter\")}catch{}function x(w,b){return new E.Promise(function(T,R){var S=[],P=w._internalType,O=w._outputType,y=w._mimeType;w.on(\"data\",function(d,N){S.push(d),b&&b(N)}).on(\"error\",function(d){S=[],R(d)}).on(\"end\",function(){try{T((function(d,N,B){switch(d){case\"blob\":return u.newBlob(u.transformTo(\"arraybuffer\",N),B);case\"base64\":return c.encode(N);default:return u.transformTo(d,N)}})(O,(function(d,N){var B,_=0,j=null,J=0;for(B=0;B<N.length;B++)J+=N[B].length;switch(d){case\"string\":return N.join(\"\");case\"array\":return Array.prototype.concat.apply([],N);case\"uint8array\":for(j=new Uint8Array(J),B=0;B<N.length;B++)j.set(N[B],_),_+=N[B].length;return j;case\"nodebuffer\":return Buffer.concat(N);default:throw new Error(\"concat : unsupported type '\"+d+\"'\")}})(P,S),y))}catch(d){R(d)}S=[]}).resume()})}function m(w,b,T){var R=b;switch(b){case\"blob\":case\"arraybuffer\":R=\"uint8array\";break;case\"base64\":R=\"string\"}try{this._internalType=R,this._outputType=b,this._mimeType=T,u.checkSupport(R),this._worker=w.pipe(new a(R)),w.lock()}catch(S){this._worker=new n(\"error\"),this._worker.error(S)}}m.prototype={accumulate:function(w){return x(this,w)},on:function(w,b){var T=this;return w===\"data\"?this._worker.on(w,function(R){b.call(T,R.data,R.meta)}):this._worker.on(w,function(){u.delay(b,arguments,T)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(w){if(u.checkSupport(\"nodestream\"),this._outputType!==\"nodebuffer\")throw new Error(this._outputType+\" is not supported by this method\");return new p(this,{objectMode:this._outputType!==\"nodebuffer\"},w)}},s.exports=m},{\"../base64\":1,\"../external\":6,\"../nodejs/NodejsStreamOutputAdapter\":13,\"../support\":30,\"../utils\":32,\"./ConvertWorker\":24,\"./GenericWorker\":28}],30:[function(t,s,o){\"use strict\";if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer<\"u\"&&typeof Uint8Array<\"u\",o.nodebuffer=typeof Buffer<\"u\",o.uint8array=typeof Uint8Array<\"u\",typeof ArrayBuffer>\"u\")o.blob=!1;else{var u=new ArrayBuffer(0);try{o.blob=new Blob([u],{type:\"application/zip\"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(u),o.blob=a.getBlob(\"application/zip\").size===0}catch{o.blob=!1}}}try{o.nodestream=!!t(\"readable-stream\").Readable}catch{o.nodestream=!1}},{\"readable-stream\":16}],31:[function(t,s,o){\"use strict\";for(var u=t(\"./utils\"),a=t(\"./support\"),n=t(\"./nodejsUtils\"),c=t(\"./stream/GenericWorker\"),g=new Array(256),E=0;E<256;E++)g[E]=252<=E?6:248<=E?5:240<=E?4:224<=E?3:192<=E?2:1;g[254]=g[254]=1;function p(){c.call(this,\"utf-8 decode\"),this.leftOver=null}function x(){c.call(this,\"utf-8 encode\")}o.utf8encode=function(m){return a.nodebuffer?n.newBufferFrom(m,\"utf-8\"):(function(w){var b,T,R,S,P,O=w.length,y=0;for(S=0;S<O;S++)(64512&(T=w.charCodeAt(S)))==55296&&S+1<O&&(64512&(R=w.charCodeAt(S+1)))==56320&&(T=65536+(T-55296<<10)+(R-56320),S++),y+=T<128?1:T<2048?2:T<65536?3:4;for(b=a.uint8array?new Uint8Array(y):new Array(y),S=P=0;P<y;S++)(64512&(T=w.charCodeAt(S)))==55296&&S+1<O&&(64512&(R=w.charCodeAt(S+1)))==56320&&(T=65536+(T-55296<<10)+(R-56320),S++),T<128?b[P++]=T:(T<2048?b[P++]=192|T>>>6:(T<65536?b[P++]=224|T>>>12:(b[P++]=240|T>>>18,b[P++]=128|T>>>12&63),b[P++]=128|T>>>6&63),b[P++]=128|63&T);return b})(m)},o.utf8decode=function(m){return a.nodebuffer?u.transformTo(\"nodebuffer\",m).toString(\"utf-8\"):(function(w){var b,T,R,S,P=w.length,O=new Array(2*P);for(b=T=0;b<P;)if((R=w[b++])<128)O[T++]=R;else if(4<(S=g[R]))O[T++]=65533,b+=S-1;else{for(R&=S===2?31:S===3?15:7;1<S&&b<P;)R=R<<6|63&w[b++],S--;1<S?O[T++]=65533:R<65536?O[T++]=R:(R-=65536,O[T++]=55296|R>>10&1023,O[T++]=56320|1023&R)}return O.length!==T&&(O.subarray?O=O.subarray(0,T):O.length=T),u.applyFromCharCode(O)})(m=u.transformTo(a.uint8array?\"uint8array\":\"array\",m))},u.inherits(p,c),p.prototype.processChunk=function(m){var w=u.transformTo(a.uint8array?\"uint8array\":\"array\",m.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var b=w;(w=new Uint8Array(b.length+this.leftOver.length)).set(this.leftOver,0),w.set(b,this.leftOver.length)}else w=this.leftOver.concat(w);this.leftOver=null}var T=(function(S,P){var O;for((P=P||S.length)>S.length&&(P=S.length),O=P-1;0<=O&&(192&S[O])==128;)O--;return O<0||O===0?P:O+g[S[O]]>P?O:P})(w),R=w;T!==w.length&&(a.uint8array?(R=w.subarray(0,T),this.leftOver=w.subarray(T,w.length)):(R=w.slice(0,T),this.leftOver=w.slice(T,w.length))),this.push({data:o.utf8decode(R),meta:m.meta})},p.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=p,u.inherits(x,c),x.prototype.processChunk=function(m){this.push({data:o.utf8encode(m.data),meta:m.meta})},o.Utf8EncodeWorker=x},{\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./support\":30,\"./utils\":32}],32:[function(t,s,o){\"use strict\";var u=t(\"./support\"),a=t(\"./base64\"),n=t(\"./nodejsUtils\"),c=t(\"./external\");function g(b){return b}function E(b,T){for(var R=0;R<b.length;++R)T[R]=255&b.charCodeAt(R);return T}t(\"setimmediate\"),o.newBlob=function(b,T){o.checkSupport(\"blob\");try{return new Blob([b],{type:T})}catch{try{var R=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return R.append(b),R.getBlob(T)}catch{throw new Error(\"Bug : can't construct the Blob.\")}}};var p={stringifyByChunk:function(b,T,R){var S=[],P=0,O=b.length;if(O<=R)return String.fromCharCode.apply(null,b);for(;P<O;)T===\"array\"||T===\"nodebuffer\"?S.push(String.fromCharCode.apply(null,b.slice(P,Math.min(P+R,O)))):S.push(String.fromCharCode.apply(null,b.subarray(P,Math.min(P+R,O)))),P+=R;return S.join(\"\")},stringifyByChar:function(b){for(var T=\"\",R=0;R<b.length;R++)T+=String.fromCharCode(b[R]);return T},applyCanBeUsed:{uint8array:(function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch{return!1}})()}};function x(b){var T=65536,R=o.getTypeOf(b),S=!0;if(R===\"uint8array\"?S=p.applyCanBeUsed.uint8array:R===\"nodebuffer\"&&(S=p.applyCanBeUsed.nodebuffer),S)for(;1<T;)try{return p.stringifyByChunk(b,R,T)}catch{T=Math.floor(T/2)}return p.stringifyByChar(b)}function m(b,T){for(var R=0;R<b.length;R++)T[R]=b[R];return T}o.applyFromCharCode=x;var w={};w.string={string:g,array:function(b){return E(b,new Array(b.length))},arraybuffer:function(b){return w.string.uint8array(b).buffer},uint8array:function(b){return E(b,new Uint8Array(b.length))},nodebuffer:function(b){return E(b,n.allocBuffer(b.length))}},w.array={string:x,array:g,arraybuffer:function(b){return new Uint8Array(b).buffer},uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return n.newBufferFrom(b)}},w.arraybuffer={string:function(b){return x(new Uint8Array(b))},array:function(b){return m(new Uint8Array(b),new Array(b.byteLength))},arraybuffer:g,uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return n.newBufferFrom(new Uint8Array(b))}},w.uint8array={string:x,array:function(b){return m(b,new Array(b.length))},arraybuffer:function(b){return b.buffer},uint8array:g,nodebuffer:function(b){return n.newBufferFrom(b)}},w.nodebuffer={string:x,array:function(b){return m(b,new Array(b.length))},arraybuffer:function(b){return w.nodebuffer.uint8array(b).buffer},uint8array:function(b){return m(b,new Uint8Array(b.length))},nodebuffer:g},o.transformTo=function(b,T){return T=T||\"\",b?(o.checkSupport(b),w[o.getTypeOf(T)][b](T)):T},o.resolve=function(b){for(var T=b.split(\"/\"),R=[],S=0;S<T.length;S++){var P=T[S];P===\".\"||P===\"\"&&S!==0&&S!==T.length-1||(P===\"..\"?R.pop():R.push(P))}return R.join(\"/\")},o.getTypeOf=function(b){if(typeof b==\"string\")return\"string\";var T=Object.prototype.toString.call(b);return T===\"[object Array]\"?\"array\":u.nodebuffer&&n.isBuffer(b)?\"nodebuffer\":u.uint8array&&T===\"[object Uint8Array]\"?\"uint8array\":u.arraybuffer&&T===\"[object ArrayBuffer]\"?\"arraybuffer\":void 0},o.checkSupport=function(b){if(!u[b.toLowerCase()])throw new Error(b+\" is not supported by this platform\")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(b){var T,R,S=\"\";for(R=0;R<(b||\"\").length;R++)S+=\"\\\\x\"+((T=b.charCodeAt(R))<16?\"0\":\"\")+T.toString(16).toUpperCase();return S},o.delay=function(b,T,R){setImmediate(function(){b.apply(R||null,T||[])})},o.inherits=function(b,T){function R(){}R.prototype=T.prototype,b.prototype=new R},o.extend=function(){var b,T,R={};for(b=0;b<arguments.length;b++)for(T in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],T)&&R[T]===void 0&&(R[T]=arguments[b][T]);return R},o.prepareContent=function(b,T,R,S,P){return c.Promise.resolve(T).then(function(O){return u.blob&&(O instanceof Blob||[\"[object File]\",\"[object Blob]\"].indexOf(Object.prototype.toString.call(O))!==-1)?Blob.prototype.arrayBuffer!==void 0?O.arrayBuffer():typeof FileReader<\"u\"?new c.Promise(function(y,d){var N=new FileReader;N.onload=function(B){y(B.target.result)},N.onerror=function(B){d(B.target.error)},N.readAsArrayBuffer(O)}):c.Promise.reject(new Error(b+\" is a Blob, but we have no way of reading it.\")):O}).then(function(O){var y=o.getTypeOf(O);return y?(y===\"arraybuffer\"?O=o.transformTo(\"uint8array\",O):y===\"string\"&&(P?O=a.decode(O):R&&S!==!0&&(O=(function(d){return E(d,u.uint8array?new Uint8Array(d.length):new Array(d.length))})(O))),O):c.Promise.reject(new Error(\"Can't read the data of '\"+b+\"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?\"))})}},{\"./base64\":1,\"./external\":6,\"./nodejsUtils\":14,\"./support\":30,setimmediate:54}],33:[function(t,s,o){\"use strict\";var u=t(\"./reader/readerFor\"),a=t(\"./utils\"),n=t(\"./signature\"),c=t(\"./zipEntry\"),g=t(\"./support\");function E(p){this.files=[],this.loadOptions=p}E.prototype={checkSignature:function(p){if(!this.reader.readAndCheckSignature(p)){this.reader.index-=4;var x=this.reader.readString(4);throw new Error(\"Corrupted zip or bug: unexpected signature (\"+a.pretty(x)+\", expected \"+a.pretty(p)+\")\")}},isSignature:function(p,x){var m=this.reader.index;this.reader.setIndex(p);var w=this.reader.readString(4)===x;return this.reader.setIndex(m),w},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var p=this.reader.readData(this.zipCommentLength),x=g.uint8array?\"uint8array\":\"array\",m=a.transformTo(x,p);this.zipComment=this.loadOptions.decodeFileName(m)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var p,x,m,w=this.zip64EndOfCentralSize-44;0<w;)p=this.reader.readInt(2),x=this.reader.readInt(4),m=this.reader.readData(x),this.zip64ExtensibleData[p]={id:p,length:x,value:m}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error(\"Multi-volumes zip are not supported\")},readLocalFiles:function(){for(var p=0,x;p<this.files.length;p++)x=this.files[p],this.reader.setIndex(x.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),x.readLocalPart(this.reader),x.handleUTF8(),x.processAttributes()},readCentralDir:function(){var p;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(p=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(p);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error(\"Corrupted zip or bug: expected \"+this.centralDirRecords+\" records in central dir, got \"+this.files.length)},readEndOfCentral:function(){var p=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(p<0)throw this.isSignature(0,n.LOCAL_FILE_HEADER)?new Error(\"Corrupted zip: can't find end of central directory\"):new Error(\"Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html\");this.reader.setIndex(p);var x=p;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(p=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error(\"Corrupted zip: can't find the ZIP64 end of central directory locator\");if(this.reader.setIndex(p),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error(\"Corrupted zip: can't find the ZIP64 end of central directory\");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var m=this.centralDirOffset+this.centralDirSize;this.zip64&&(m+=20,m+=12+this.zip64EndOfCentralSize);var w=x-m;if(0<w)this.isSignature(x,n.CENTRAL_FILE_HEADER)||(this.reader.zero=w);else if(w<0)throw new Error(\"Corrupted zip: missing \"+Math.abs(w)+\" bytes.\")},prepareReader:function(p){this.reader=u(p)},load:function(p){this.prepareReader(p),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},s.exports=E},{\"./reader/readerFor\":22,\"./signature\":23,\"./support\":30,\"./utils\":32,\"./zipEntry\":34}],34:[function(t,s,o){\"use strict\";var u=t(\"./reader/readerFor\"),a=t(\"./utils\"),n=t(\"./compressedObject\"),c=t(\"./crc32\"),g=t(\"./utf8\"),E=t(\"./compressions\"),p=t(\"./support\");function x(m,w){this.options=m,this.loadOptions=w}x.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(m){var w,b;if(m.skip(22),this.fileNameLength=m.readInt(2),b=m.readInt(2),this.fileName=m.readData(this.fileNameLength),m.skip(b),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error(\"Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)\");if((w=(function(T){for(var R in E)if(Object.prototype.hasOwnProperty.call(E,R)&&E[R].magic===T)return E[R];return null})(this.compressionMethod))===null)throw new Error(\"Corrupted zip : compression \"+a.pretty(this.compressionMethod)+\" unknown (inner file : \"+a.transformTo(\"string\",this.fileName)+\")\");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,w,m.readData(this.compressedSize))},readCentralPart:function(m){this.versionMadeBy=m.readInt(2),m.skip(2),this.bitFlag=m.readInt(2),this.compressionMethod=m.readString(2),this.date=m.readDate(),this.crc32=m.readInt(4),this.compressedSize=m.readInt(4),this.uncompressedSize=m.readInt(4);var w=m.readInt(2);if(this.extraFieldsLength=m.readInt(2),this.fileCommentLength=m.readInt(2),this.diskNumberStart=m.readInt(2),this.internalFileAttributes=m.readInt(2),this.externalFileAttributes=m.readInt(4),this.localHeaderOffset=m.readInt(4),this.isEncrypted())throw new Error(\"Encrypted zip are not supported\");m.skip(w),this.readExtraFields(m),this.parseZIP64ExtraField(m),this.fileComment=m.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var m=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),m==0&&(this.dosPermissions=63&this.externalFileAttributes),m==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!==\"/\"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var m=u(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=m.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=m.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=m.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=m.readInt(4))}},readExtraFields:function(m){var w,b,T,R=m.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});m.index+4<R;)w=m.readInt(2),b=m.readInt(2),T=m.readData(b),this.extraFields[w]={id:w,length:b,value:T};m.setIndex(R)},handleUTF8:function(){var m=p.uint8array?\"uint8array\":\"array\";if(this.useUTF8())this.fileNameStr=g.utf8decode(this.fileName),this.fileCommentStr=g.utf8decode(this.fileComment);else{var w=this.findExtraFieldUnicodePath();if(w!==null)this.fileNameStr=w;else{var b=a.transformTo(m,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(b)}var T=this.findExtraFieldUnicodeComment();if(T!==null)this.fileCommentStr=T;else{var R=a.transformTo(m,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(R)}}},findExtraFieldUnicodePath:function(){var m=this.extraFields[28789];if(m){var w=u(m.value);return w.readInt(1)!==1||c(this.fileName)!==w.readInt(4)?null:g.utf8decode(w.readData(m.length-5))}return null},findExtraFieldUnicodeComment:function(){var m=this.extraFields[25461];if(m){var w=u(m.value);return w.readInt(1)!==1||c(this.fileComment)!==w.readInt(4)?null:g.utf8decode(w.readData(m.length-5))}return null}},s.exports=x},{\"./compressedObject\":2,\"./compressions\":3,\"./crc32\":4,\"./reader/readerFor\":22,\"./support\":30,\"./utf8\":31,\"./utils\":32}],35:[function(t,s,o){\"use strict\";function u(w,b,T){this.name=w,this.dir=T.dir,this.date=T.date,this.comment=T.comment,this.unixPermissions=T.unixPermissions,this.dosPermissions=T.dosPermissions,this._data=b,this._dataBinary=T.binary,this.options={compression:T.compression,compressionOptions:T.compressionOptions}}var a=t(\"./stream/StreamHelper\"),n=t(\"./stream/DataWorker\"),c=t(\"./utf8\"),g=t(\"./compressedObject\"),E=t(\"./stream/GenericWorker\");u.prototype={internalStream:function(w){var b=null,T=\"string\";try{if(!w)throw new Error(\"No output type specified.\");var R=(T=w.toLowerCase())===\"string\"||T===\"text\";T!==\"binarystring\"&&T!==\"text\"||(T=\"string\"),b=this._decompressWorker();var S=!this._dataBinary;S&&!R&&(b=b.pipe(new c.Utf8EncodeWorker)),!S&&R&&(b=b.pipe(new c.Utf8DecodeWorker))}catch(P){(b=new E(\"error\")).error(P)}return new a(b,T,\"\")},async:function(w,b){return this.internalStream(w).accumulate(b)},nodeStream:function(w,b){return this.internalStream(w||\"nodebuffer\").toNodejsStream(b)},_compressWorker:function(w,b){if(this._data instanceof g&&this._data.compression.magic===w.magic)return this._data.getCompressedWorker();var T=this._decompressWorker();return this._dataBinary||(T=T.pipe(new c.Utf8EncodeWorker)),g.createWorkerFrom(T,w,b)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof E?this._data:new n(this._data)}};for(var p=[\"asText\",\"asBinary\",\"asNodeBuffer\",\"asUint8Array\",\"asArrayBuffer\"],x=function(){throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\")},m=0;m<p.length;m++)u.prototype[p[m]]=x;s.exports=u},{\"./compressedObject\":2,\"./stream/DataWorker\":27,\"./stream/GenericWorker\":28,\"./stream/StreamHelper\":29,\"./utf8\":31}],36:[function(t,s,o){(function(u){\"use strict\";var a,n,c=u.MutationObserver||u.WebKitMutationObserver;if(c){var g=0,E=new c(w),p=u.document.createTextNode(\"\");E.observe(p,{characterData:!0}),a=function(){p.data=g=++g%2}}else if(u.setImmediate||u.MessageChannel===void 0)a=\"document\"in u&&\"onreadystatechange\"in u.document.createElement(\"script\")?function(){var b=u.document.createElement(\"script\");b.onreadystatechange=function(){w(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},u.document.documentElement.appendChild(b)}:function(){setTimeout(w,0)};else{var x=new u.MessageChannel;x.port1.onmessage=w,a=function(){x.port2.postMessage(0)}}var m=[];function w(){var b,T;n=!0;for(var R=m.length;R;){for(T=m,m=[],b=-1;++b<R;)T[b]();R=m.length}n=!1}s.exports=function(b){m.push(b)!==1||n||a()}}).call(this,typeof ke<\"u\"?ke:typeof self<\"u\"?self:typeof window<\"u\"?window:{})},{}],37:[function(t,s,o){\"use strict\";var u=t(\"immediate\");function a(){}var n={},c=[\"REJECTED\"],g=[\"FULFILLED\"],E=[\"PENDING\"];function p(R){if(typeof R!=\"function\")throw new TypeError(\"resolver must be a function\");this.state=E,this.queue=[],this.outcome=void 0,R!==a&&b(this,R)}function x(R,S,P){this.promise=R,typeof S==\"function\"&&(this.onFulfilled=S,this.callFulfilled=this.otherCallFulfilled),typeof P==\"function\"&&(this.onRejected=P,this.callRejected=this.otherCallRejected)}function m(R,S,P){u(function(){var O;try{O=S(P)}catch(y){return n.reject(R,y)}O===R?n.reject(R,new TypeError(\"Cannot resolve promise with itself\")):n.resolve(R,O)})}function w(R){var S=R&&R.then;if(R&&(typeof R==\"object\"||typeof R==\"function\")&&typeof S==\"function\")return function(){S.apply(R,arguments)}}function b(R,S){var P=!1;function O(N){P||(P=!0,n.reject(R,N))}function y(N){P||(P=!0,n.resolve(R,N))}var d=T(function(){S(y,O)});d.status===\"error\"&&O(d.value)}function T(R,S){var P={};try{P.value=R(S),P.status=\"success\"}catch(O){P.status=\"error\",P.value=O}return P}(s.exports=p).prototype.finally=function(R){if(typeof R!=\"function\")return this;var S=this.constructor;return this.then(function(P){return S.resolve(R()).then(function(){return P})},function(P){return S.resolve(R()).then(function(){throw P})})},p.prototype.catch=function(R){return this.then(null,R)},p.prototype.then=function(R,S){if(typeof R!=\"function\"&&this.state===g||typeof S!=\"function\"&&this.state===c)return this;var P=new this.constructor(a);return this.state!==E?m(P,this.state===g?R:S,this.outcome):this.queue.push(new x(P,R,S)),P},x.prototype.callFulfilled=function(R){n.resolve(this.promise,R)},x.prototype.otherCallFulfilled=function(R){m(this.promise,this.onFulfilled,R)},x.prototype.callRejected=function(R){n.reject(this.promise,R)},x.prototype.otherCallRejected=function(R){m(this.promise,this.onRejected,R)},n.resolve=function(R,S){var P=T(w,S);if(P.status===\"error\")return n.reject(R,P.value);var O=P.value;if(O)b(R,O);else{R.state=g,R.outcome=S;for(var y=-1,d=R.queue.length;++y<d;)R.queue[y].callFulfilled(S)}return R},n.reject=function(R,S){R.state=c,R.outcome=S;for(var P=-1,O=R.queue.length;++P<O;)R.queue[P].callRejected(S);return R},p.resolve=function(R){return R instanceof this?R:n.resolve(new this(a),R)},p.reject=function(R){var S=new this(a);return n.reject(S,R)},p.all=function(R){var S=this;if(Object.prototype.toString.call(R)!==\"[object Array]\")return this.reject(new TypeError(\"must be an array\"));var P=R.length,O=!1;if(!P)return this.resolve([]);for(var y=new Array(P),d=0,N=-1,B=new this(a);++N<P;)_(R[N],N);return B;function _(j,J){S.resolve(j).then(function(C){y[J]=C,++d!==P||O||(O=!0,n.resolve(B,y))},function(C){O||(O=!0,n.reject(B,C))})}},p.race=function(R){var S=this;if(Object.prototype.toString.call(R)!==\"[object Array]\")return this.reject(new TypeError(\"must be an array\"));var P=R.length,O=!1;if(!P)return this.resolve([]);for(var y=-1,d=new this(a);++y<P;)N=R[y],S.resolve(N).then(function(B){O||(O=!0,n.resolve(d,B))},function(B){O||(O=!0,n.reject(d,B))});var N;return d}},{immediate:36}],38:[function(t,s,o){\"use strict\";var u={};(0,t(\"./lib/utils/common\").assign)(u,t(\"./lib/deflate\"),t(\"./lib/inflate\"),t(\"./lib/zlib/constants\")),s.exports=u},{\"./lib/deflate\":39,\"./lib/inflate\":40,\"./lib/utils/common\":41,\"./lib/zlib/constants\":44}],39:[function(t,s,o){\"use strict\";var u=t(\"./zlib/deflate\"),a=t(\"./utils/common\"),n=t(\"./utils/strings\"),c=t(\"./zlib/messages\"),g=t(\"./zlib/zstream\"),E=Object.prototype.toString,p=0,x=-1,m=0,w=8;function b(R){if(!(this instanceof b))return new b(R);this.options=a.assign({level:x,method:w,chunkSize:16384,windowBits:15,memLevel:8,strategy:m,to:\"\"},R||{});var S=this.options;S.raw&&0<S.windowBits?S.windowBits=-S.windowBits:S.gzip&&0<S.windowBits&&S.windowBits<16&&(S.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var P=u.deflateInit2(this.strm,S.level,S.method,S.windowBits,S.memLevel,S.strategy);if(P!==p)throw new Error(c[P]);if(S.header&&u.deflateSetHeader(this.strm,S.header),S.dictionary){var O=typeof S.dictionary==\"string\"?n.string2buf(S.dictionary):E.call(S.dictionary)===\"[object ArrayBuffer]\"?new Uint8Array(S.dictionary):S.dictionary;if((P=u.deflateSetDictionary(this.strm,O))!==p)throw new Error(c[P]);this._dict_set=!0}}function T(R,S){var P=new b(S);if(P.push(R,!0),P.err)throw P.msg||c[P.err];return P.result}b.prototype.push=function(R,S){var P,O,y=this.strm,d=this.options.chunkSize;if(this.ended)return!1;O=S===~~S?S:S===!0?4:0,typeof R==\"string\"?y.input=n.string2buf(R):E.call(R)===\"[object ArrayBuffer]\"?y.input=new Uint8Array(R):y.input=R,y.next_in=0,y.avail_in=y.input.length;do{if(y.avail_out===0&&(y.output=new a.Buf8(d),y.next_out=0,y.avail_out=d),(P=u.deflate(y,O))!==1&&P!==p)return this.onEnd(P),!(this.ended=!0);y.avail_out!==0&&(y.avail_in!==0||O!==4&&O!==2)||(this.options.to===\"string\"?this.onData(n.buf2binstring(a.shrinkBuf(y.output,y.next_out))):this.onData(a.shrinkBuf(y.output,y.next_out)))}while((0<y.avail_in||y.avail_out===0)&&P!==1);return O===4?(P=u.deflateEnd(this.strm),this.onEnd(P),this.ended=!0,P===p):O!==2||(this.onEnd(p),!(y.avail_out=0))},b.prototype.onData=function(R){this.chunks.push(R)},b.prototype.onEnd=function(R){R===p&&(this.options.to===\"string\"?this.result=this.chunks.join(\"\"):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=R,this.msg=this.strm.msg},o.Deflate=b,o.deflate=T,o.deflateRaw=function(R,S){return(S=S||{}).raw=!0,T(R,S)},o.gzip=function(R,S){return(S=S||{}).gzip=!0,T(R,S)}},{\"./utils/common\":41,\"./utils/strings\":42,\"./zlib/deflate\":46,\"./zlib/messages\":51,\"./zlib/zstream\":53}],40:[function(t,s,o){\"use strict\";var u=t(\"./zlib/inflate\"),a=t(\"./utils/common\"),n=t(\"./utils/strings\"),c=t(\"./zlib/constants\"),g=t(\"./zlib/messages\"),E=t(\"./zlib/zstream\"),p=t(\"./zlib/gzheader\"),x=Object.prototype.toString;function m(b){if(!(this instanceof m))return new m(b);this.options=a.assign({chunkSize:16384,windowBits:0,to:\"\"},b||{});var T=this.options;T.raw&&0<=T.windowBits&&T.windowBits<16&&(T.windowBits=-T.windowBits,T.windowBits===0&&(T.windowBits=-15)),!(0<=T.windowBits&&T.windowBits<16)||b&&b.windowBits||(T.windowBits+=32),15<T.windowBits&&T.windowBits<48&&(15&T.windowBits)==0&&(T.windowBits|=15),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new E,this.strm.avail_out=0;var R=u.inflateInit2(this.strm,T.windowBits);if(R!==c.Z_OK)throw new Error(g[R]);this.header=new p,u.inflateGetHeader(this.strm,this.header)}function w(b,T){var R=new m(T);if(R.push(b,!0),R.err)throw R.msg||g[R.err];return R.result}m.prototype.push=function(b,T){var R,S,P,O,y,d,N=this.strm,B=this.options.chunkSize,_=this.options.dictionary,j=!1;if(this.ended)return!1;S=T===~~T?T:T===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof b==\"string\"?N.input=n.binstring2buf(b):x.call(b)===\"[object ArrayBuffer]\"?N.input=new Uint8Array(b):N.input=b,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new a.Buf8(B),N.next_out=0,N.avail_out=B),(R=u.inflate(N,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&_&&(d=typeof _==\"string\"?n.string2buf(_):x.call(_)===\"[object ArrayBuffer]\"?new Uint8Array(_):_,R=u.inflateSetDictionary(this.strm,d)),R===c.Z_BUF_ERROR&&j===!0&&(R=c.Z_OK,j=!1),R!==c.Z_STREAM_END&&R!==c.Z_OK)return this.onEnd(R),!(this.ended=!0);N.next_out&&(N.avail_out!==0&&R!==c.Z_STREAM_END&&(N.avail_in!==0||S!==c.Z_FINISH&&S!==c.Z_SYNC_FLUSH)||(this.options.to===\"string\"?(P=n.utf8border(N.output,N.next_out),O=N.next_out-P,y=n.buf2string(N.output,P),N.next_out=O,N.avail_out=B-O,O&&a.arraySet(N.output,N.output,P,O,0),this.onData(y)):this.onData(a.shrinkBuf(N.output,N.next_out)))),N.avail_in===0&&N.avail_out===0&&(j=!0)}while((0<N.avail_in||N.avail_out===0)&&R!==c.Z_STREAM_END);return R===c.Z_STREAM_END&&(S=c.Z_FINISH),S===c.Z_FINISH?(R=u.inflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===c.Z_OK):S!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(N.avail_out=0))},m.prototype.onData=function(b){this.chunks.push(b)},m.prototype.onEnd=function(b){b===c.Z_OK&&(this.options.to===\"string\"?this.result=this.chunks.join(\"\"):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},o.Inflate=m,o.inflate=w,o.inflateRaw=function(b,T){return(T=T||{}).raw=!0,w(b,T)},o.ungzip=w},{\"./utils/common\":41,\"./utils/strings\":42,\"./zlib/constants\":44,\"./zlib/gzheader\":47,\"./zlib/inflate\":49,\"./zlib/messages\":51,\"./zlib/zstream\":53}],41:[function(t,s,o){\"use strict\";var u=typeof Uint8Array<\"u\"&&typeof Uint16Array<\"u\"&&typeof Int32Array<\"u\";o.assign=function(c){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var E=g.shift();if(E){if(typeof E!=\"object\")throw new TypeError(E+\"must be non-object\");for(var p in E)E.hasOwnProperty(p)&&(c[p]=E[p])}}return c},o.shrinkBuf=function(c,g){return c.length===g?c:c.subarray?c.subarray(0,g):(c.length=g,c)};var a={arraySet:function(c,g,E,p,x){if(g.subarray&&c.subarray)c.set(g.subarray(E,E+p),x);else for(var m=0;m<p;m++)c[x+m]=g[E+m]},flattenChunks:function(c){for(var g=p=0,E=c.length,p,x,m,w;g<E;g++)p+=c[g].length;for(w=new Uint8Array(p),g=x=0,E=c.length;g<E;g++)m=c[g],w.set(m,x),x+=m.length;return w}},n={arraySet:function(c,g,E,p,x){for(var m=0;m<p;m++)c[x+m]=g[E+m]},flattenChunks:function(c){return[].concat.apply([],c)}};o.setTyped=function(c){c?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,a)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,n))},o.setTyped(u)},{}],42:[function(t,s,o){\"use strict\";var u=t(\"./common\"),a=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var c=new u.Buf8(256),g=0;g<256;g++)c[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function E(p,x){if(x<65537&&(p.subarray&&n||!p.subarray&&a))return String.fromCharCode.apply(null,u.shrinkBuf(p,x));for(var m=\"\",w=0;w<x;w++)m+=String.fromCharCode(p[w]);return m}c[254]=c[254]=1,o.string2buf=function(p){var x,m,w,b,T,R=p.length,S=0;for(b=0;b<R;b++)(64512&(m=p.charCodeAt(b)))==55296&&b+1<R&&(64512&(w=p.charCodeAt(b+1)))==56320&&(m=65536+(m-55296<<10)+(w-56320),b++),S+=m<128?1:m<2048?2:m<65536?3:4;for(x=new u.Buf8(S),b=T=0;T<S;b++)(64512&(m=p.charCodeAt(b)))==55296&&b+1<R&&(64512&(w=p.charCodeAt(b+1)))==56320&&(m=65536+(m-55296<<10)+(w-56320),b++),m<128?x[T++]=m:(m<2048?x[T++]=192|m>>>6:(m<65536?x[T++]=224|m>>>12:(x[T++]=240|m>>>18,x[T++]=128|m>>>12&63),x[T++]=128|m>>>6&63),x[T++]=128|63&m);return x},o.buf2binstring=function(p){return E(p,p.length)},o.binstring2buf=function(p){for(var x=new u.Buf8(p.length),m=0,w=x.length;m<w;m++)x[m]=p.charCodeAt(m);return x},o.buf2string=function(p,x){var m,w,b,T,R=x||p.length,S=new Array(2*R);for(m=w=0;m<R;)if((b=p[m++])<128)S[w++]=b;else if(4<(T=c[b]))S[w++]=65533,m+=T-1;else{for(b&=T===2?31:T===3?15:7;1<T&&m<R;)b=b<<6|63&p[m++],T--;1<T?S[w++]=65533:b<65536?S[w++]=b:(b-=65536,S[w++]=55296|b>>10&1023,S[w++]=56320|1023&b)}return E(S,w)},o.utf8border=function(p,x){var m;for((x=x||p.length)>p.length&&(x=p.length),m=x-1;0<=m&&(192&p[m])==128;)m--;return m<0||m===0?x:m+c[p[m]]>x?m:x}},{\"./common\":41}],43:[function(t,s,o){\"use strict\";s.exports=function(u,a,n,c){for(var g=65535&u|0,E=u>>>16&65535|0,p=0;n!==0;){for(n-=p=2e3<n?2e3:n;E=E+(g=g+a[c++]|0)|0,--p;);g%=65521,E%=65521}return g|E<<16|0}},{}],44:[function(t,s,o){\"use strict\";s.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,s,o){\"use strict\";var u=(function(){for(var a,n=[],c=0;c<256;c++){a=c;for(var g=0;g<8;g++)a=1&a?3988292384^a>>>1:a>>>1;n[c]=a}return n})();s.exports=function(a,n,c,g){var E=u,p=g+c;a^=-1;for(var x=g;x<p;x++)a=a>>>8^E[255&(a^n[x])];return-1^a}},{}],46:[function(t,s,o){\"use strict\";var u,a=t(\"../utils/common\"),n=t(\"./trees\"),c=t(\"./adler32\"),g=t(\"./crc32\"),E=t(\"./messages\"),p=0,x=4,m=0,w=-2,b=-1,T=4,R=2,S=8,P=9,O=286,y=30,d=19,N=2*O+1,B=15,_=3,j=258,J=j+_+1,C=42,G=113,A=1,z=2,Q=3,q=4;function se(h,K){return h.msg=E[K],K}function Y(h){return(h<<1)-(4<h?9:0)}function te(h){for(var K=h.length;0<=--K;)h[K]=0}function V(h){var K=h.state,I=K.pending;I>h.avail_out&&(I=h.avail_out),I!==0&&(a.arraySet(h.output,K.pending_buf,K.pending_out,I,h.next_out),h.next_out+=I,K.pending_out+=I,h.total_out+=I,h.avail_out-=I,K.pending-=I,K.pending===0&&(K.pending_out=0))}function D(h,K){n._tr_flush_block(h,0<=h.block_start?h.block_start:-1,h.strstart-h.block_start,K),h.block_start=h.strstart,V(h.strm)}function X(h,K){h.pending_buf[h.pending++]=K}function Z(h,K){h.pending_buf[h.pending++]=K>>>8&255,h.pending_buf[h.pending++]=255&K}function re(h,K){var I,i,l=h.max_chain_length,v=h.strstart,M=h.prev_length,$=h.nice_match,W=h.strstart>h.w_size-J?h.strstart-(h.w_size-J):0,ie=h.window,oe=h.w_mask,ae=h.prev,de=h.strstart+j,me=ie[v+M-1],ve=ie[v+M];h.prev_length>=h.good_match&&(l>>=2),$>h.lookahead&&($=h.lookahead);do if(ie[(I=K)+M]===ve&&ie[I+M-1]===me&&ie[I]===ie[v]&&ie[++I]===ie[v+1]){v+=2,I++;do;while(ie[++v]===ie[++I]&&ie[++v]===ie[++I]&&ie[++v]===ie[++I]&&ie[++v]===ie[++I]&&ie[++v]===ie[++I]&&ie[++v]===ie[++I]&&ie[++v]===ie[++I]&&ie[++v]===ie[++I]&&v<de);if(i=j-(de-v),v=de-j,M<i){if(h.match_start=K,$<=(M=i))break;me=ie[v+M-1],ve=ie[v+M]}}while((K=ae[K&oe])>W&&--l!=0);return M<=h.lookahead?M:h.lookahead}function pe(h){var K,I,i,l,v,M,$,W,ie,oe,ae=h.w_size;do{if(l=h.window_size-h.lookahead-h.strstart,h.strstart>=ae+(ae-J)){for(a.arraySet(h.window,h.window,ae,ae,0),h.match_start-=ae,h.strstart-=ae,h.block_start-=ae,K=I=h.hash_size;i=h.head[--K],h.head[K]=ae<=i?i-ae:0,--I;);for(K=I=ae;i=h.prev[--K],h.prev[K]=ae<=i?i-ae:0,--I;);l+=ae}if(h.strm.avail_in===0)break;if(M=h.strm,$=h.window,W=h.strstart+h.lookahead,ie=l,oe=void 0,oe=M.avail_in,ie<oe&&(oe=ie),I=oe===0?0:(M.avail_in-=oe,a.arraySet($,M.input,M.next_in,oe,W),M.state.wrap===1?M.adler=c(M.adler,$,oe,W):M.state.wrap===2&&(M.adler=g(M.adler,$,oe,W)),M.next_in+=oe,M.total_in+=oe,oe),h.lookahead+=I,h.lookahead+h.insert>=_)for(v=h.strstart-h.insert,h.ins_h=h.window[v],h.ins_h=(h.ins_h<<h.hash_shift^h.window[v+1])&h.hash_mask;h.insert&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[v+_-1])&h.hash_mask,h.prev[v&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=v,v++,h.insert--,!(h.lookahead+h.insert<_)););}while(h.lookahead<J&&h.strm.avail_in!==0)}function k(h,K){for(var I,i;;){if(h.lookahead<J){if(pe(h),h.lookahead<J&&K===p)return A;if(h.lookahead===0)break}if(I=0,h.lookahead>=_&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+_-1])&h.hash_mask,I=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart),I!==0&&h.strstart-I<=h.w_size-J&&(h.match_length=re(h,I)),h.match_length>=_)if(i=n._tr_tally(h,h.strstart-h.match_start,h.match_length-_),h.lookahead-=h.match_length,h.match_length<=h.max_lazy_match&&h.lookahead>=_){for(h.match_length--;h.strstart++,h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+_-1])&h.hash_mask,I=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart,--h.match_length!=0;);h.strstart++}else h.strstart+=h.match_length,h.match_length=0,h.ins_h=h.window[h.strstart],h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+1])&h.hash_mask;else i=n._tr_tally(h,0,h.window[h.strstart]),h.lookahead--,h.strstart++;if(i&&(D(h,!1),h.strm.avail_out===0))return A}return h.insert=h.strstart<_-1?h.strstart:_-1,K===x?(D(h,!0),h.strm.avail_out===0?Q:q):h.last_lit&&(D(h,!1),h.strm.avail_out===0)?A:z}function f(h,K){for(var I,i,l;;){if(h.lookahead<J){if(pe(h),h.lookahead<J&&K===p)return A;if(h.lookahead===0)break}if(I=0,h.lookahead>=_&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+_-1])&h.hash_mask,I=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart),h.prev_length=h.match_length,h.prev_match=h.match_start,h.match_length=_-1,I!==0&&h.prev_length<h.max_lazy_match&&h.strstart-I<=h.w_size-J&&(h.match_length=re(h,I),h.match_length<=5&&(h.strategy===1||h.match_length===_&&4096<h.strstart-h.match_start)&&(h.match_length=_-1)),h.prev_length>=_&&h.match_length<=h.prev_length){for(l=h.strstart+h.lookahead-_,i=n._tr_tally(h,h.strstart-1-h.prev_match,h.prev_length-_),h.lookahead-=h.prev_length-1,h.prev_length-=2;++h.strstart<=l&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+_-1])&h.hash_mask,I=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart),--h.prev_length!=0;);if(h.match_available=0,h.match_length=_-1,h.strstart++,i&&(D(h,!1),h.strm.avail_out===0))return A}else if(h.match_available){if((i=n._tr_tally(h,0,h.window[h.strstart-1]))&&D(h,!1),h.strstart++,h.lookahead--,h.strm.avail_out===0)return A}else h.match_available=1,h.strstart++,h.lookahead--}return h.match_available&&(i=n._tr_tally(h,0,h.window[h.strstart-1]),h.match_available=0),h.insert=h.strstart<_-1?h.strstart:_-1,K===x?(D(h,!0),h.strm.avail_out===0?Q:q):h.last_lit&&(D(h,!1),h.strm.avail_out===0)?A:z}function H(h,K,I,i,l){this.good_length=h,this.max_lazy=K,this.nice_length=I,this.max_chain=i,this.func=l}function U(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=S,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*N),this.dyn_dtree=new a.Buf16(2*(2*y+1)),this.bl_tree=new a.Buf16(2*(2*d+1)),te(this.dyn_ltree),te(this.dyn_dtree),te(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(B+1),this.heap=new a.Buf16(2*O+1),te(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*O+1),te(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ne(h){var K;return h&&h.state?(h.total_in=h.total_out=0,h.data_type=R,(K=h.state).pending=0,K.pending_out=0,K.wrap<0&&(K.wrap=-K.wrap),K.status=K.wrap?C:G,h.adler=K.wrap===2?0:1,K.last_flush=p,n._tr_init(K),m):se(h,w)}function L(h){var K=ne(h);return K===m&&(function(I){I.window_size=2*I.w_size,te(I.head),I.max_lazy_match=u[I.level].max_lazy,I.good_match=u[I.level].good_length,I.nice_match=u[I.level].nice_length,I.max_chain_length=u[I.level].max_chain,I.strstart=0,I.block_start=0,I.lookahead=0,I.insert=0,I.match_length=I.prev_length=_-1,I.match_available=0,I.ins_h=0})(h.state),K}function F(h,K,I,i,l,v){if(!h)return w;var M=1;if(K===b&&(K=6),i<0?(M=0,i=-i):15<i&&(M=2,i-=16),l<1||P<l||I!==S||i<8||15<i||K<0||9<K||v<0||T<v)return se(h,w);i===8&&(i=9);var $=new U;return(h.state=$).strm=h,$.wrap=M,$.gzhead=null,$.w_bits=i,$.w_size=1<<$.w_bits,$.w_mask=$.w_size-1,$.hash_bits=l+7,$.hash_size=1<<$.hash_bits,$.hash_mask=$.hash_size-1,$.hash_shift=~~(($.hash_bits+_-1)/_),$.window=new a.Buf8(2*$.w_size),$.head=new a.Buf16($.hash_size),$.prev=new a.Buf16($.w_size),$.lit_bufsize=1<<l+6,$.pending_buf_size=4*$.lit_bufsize,$.pending_buf=new a.Buf8($.pending_buf_size),$.d_buf=1*$.lit_bufsize,$.l_buf=3*$.lit_bufsize,$.level=K,$.strategy=v,$.method=I,L(h)}u=[new H(0,0,0,0,function(h,K){var I=65535;for(I>h.pending_buf_size-5&&(I=h.pending_buf_size-5);;){if(h.lookahead<=1){if(pe(h),h.lookahead===0&&K===p)return A;if(h.lookahead===0)break}h.strstart+=h.lookahead,h.lookahead=0;var i=h.block_start+I;if((h.strstart===0||h.strstart>=i)&&(h.lookahead=h.strstart-i,h.strstart=i,D(h,!1),h.strm.avail_out===0)||h.strstart-h.block_start>=h.w_size-J&&(D(h,!1),h.strm.avail_out===0))return A}return h.insert=0,K===x?(D(h,!0),h.strm.avail_out===0?Q:q):(h.strstart>h.block_start&&(D(h,!1),h.strm.avail_out),A)}),new H(4,4,8,4,k),new H(4,5,16,8,k),new H(4,6,32,32,k),new H(4,4,16,16,f),new H(8,16,32,32,f),new H(8,16,128,128,f),new H(8,32,128,256,f),new H(32,128,258,1024,f),new H(32,258,258,4096,f)],o.deflateInit=function(h,K){return F(h,K,S,15,8,0)},o.deflateInit2=F,o.deflateReset=L,o.deflateResetKeep=ne,o.deflateSetHeader=function(h,K){return h&&h.state?h.state.wrap!==2?w:(h.state.gzhead=K,m):w},o.deflate=function(h,K){var I,i,l,v;if(!h||!h.state||5<K||K<0)return h?se(h,w):w;if(i=h.state,!h.output||!h.input&&h.avail_in!==0||i.status===666&&K!==x)return se(h,h.avail_out===0?-5:w);if(i.strm=h,I=i.last_flush,i.last_flush=K,i.status===C)if(i.wrap===2)h.adler=0,X(i,31),X(i,139),X(i,8),i.gzhead?(X(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),X(i,255&i.gzhead.time),X(i,i.gzhead.time>>8&255),X(i,i.gzhead.time>>16&255),X(i,i.gzhead.time>>24&255),X(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),X(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(X(i,255&i.gzhead.extra.length),X(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(h.adler=g(h.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(X(i,0),X(i,0),X(i,0),X(i,0),X(i,0),X(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),X(i,3),i.status=G);else{var M=S+(i.w_bits-8<<4)<<8;M|=(2<=i.strategy||i.level<2?0:i.level<6?1:i.level===6?2:3)<<6,i.strstart!==0&&(M|=32),M+=31-M%31,i.status=G,Z(i,M),i.strstart!==0&&(Z(i,h.adler>>>16),Z(i,65535&h.adler)),h.adler=1}if(i.status===69)if(i.gzhead.extra){for(l=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>l&&(h.adler=g(h.adler,i.pending_buf,i.pending-l,l)),V(h),l=i.pending,i.pending!==i.pending_buf_size));)X(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>l&&(h.adler=g(h.adler,i.pending_buf,i.pending-l,l)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(i.status===73)if(i.gzhead.name){l=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>l&&(h.adler=g(h.adler,i.pending_buf,i.pending-l,l)),V(h),l=i.pending,i.pending===i.pending_buf_size)){v=1;break}v=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,X(i,v)}while(v!==0);i.gzhead.hcrc&&i.pending>l&&(h.adler=g(h.adler,i.pending_buf,i.pending-l,l)),v===0&&(i.gzindex=0,i.status=91)}else i.status=91;if(i.status===91)if(i.gzhead.comment){l=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>l&&(h.adler=g(h.adler,i.pending_buf,i.pending-l,l)),V(h),l=i.pending,i.pending===i.pending_buf_size)){v=1;break}v=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,X(i,v)}while(v!==0);i.gzhead.hcrc&&i.pending>l&&(h.adler=g(h.adler,i.pending_buf,i.pending-l,l)),v===0&&(i.status=103)}else i.status=103;if(i.status===103&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&V(h),i.pending+2<=i.pending_buf_size&&(X(i,255&h.adler),X(i,h.adler>>8&255),h.adler=0,i.status=G)):i.status=G),i.pending!==0){if(V(h),h.avail_out===0)return i.last_flush=-1,m}else if(h.avail_in===0&&Y(K)<=Y(I)&&K!==x)return se(h,-5);if(i.status===666&&h.avail_in!==0)return se(h,-5);if(h.avail_in!==0||i.lookahead!==0||K!==p&&i.status!==666){var $=i.strategy===2?(function(W,ie){for(var oe;;){if(W.lookahead===0&&(pe(W),W.lookahead===0)){if(ie===p)return A;break}if(W.match_length=0,oe=n._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++,oe&&(D(W,!1),W.strm.avail_out===0))return A}return W.insert=0,ie===x?(D(W,!0),W.strm.avail_out===0?Q:q):W.last_lit&&(D(W,!1),W.strm.avail_out===0)?A:z})(i,K):i.strategy===3?(function(W,ie){for(var oe,ae,de,me,ve=W.window;;){if(W.lookahead<=j){if(pe(W),W.lookahead<=j&&ie===p)return A;if(W.lookahead===0)break}if(W.match_length=0,W.lookahead>=_&&0<W.strstart&&(ae=ve[de=W.strstart-1])===ve[++de]&&ae===ve[++de]&&ae===ve[++de]){me=W.strstart+j;do;while(ae===ve[++de]&&ae===ve[++de]&&ae===ve[++de]&&ae===ve[++de]&&ae===ve[++de]&&ae===ve[++de]&&ae===ve[++de]&&ae===ve[++de]&&de<me);W.match_length=j-(me-de),W.match_length>W.lookahead&&(W.match_length=W.lookahead)}if(W.match_length>=_?(oe=n._tr_tally(W,1,W.match_length-_),W.lookahead-=W.match_length,W.strstart+=W.match_length,W.match_length=0):(oe=n._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++),oe&&(D(W,!1),W.strm.avail_out===0))return A}return W.insert=0,ie===x?(D(W,!0),W.strm.avail_out===0?Q:q):W.last_lit&&(D(W,!1),W.strm.avail_out===0)?A:z})(i,K):u[i.level].func(i,K);if($!==Q&&$!==q||(i.status=666),$===A||$===Q)return h.avail_out===0&&(i.last_flush=-1),m;if($===z&&(K===1?n._tr_align(i):K!==5&&(n._tr_stored_block(i,0,0,!1),K===3&&(te(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),V(h),h.avail_out===0))return i.last_flush=-1,m}return K!==x?m:i.wrap<=0?1:(i.wrap===2?(X(i,255&h.adler),X(i,h.adler>>8&255),X(i,h.adler>>16&255),X(i,h.adler>>24&255),X(i,255&h.total_in),X(i,h.total_in>>8&255),X(i,h.total_in>>16&255),X(i,h.total_in>>24&255)):(Z(i,h.adler>>>16),Z(i,65535&h.adler)),V(h),0<i.wrap&&(i.wrap=-i.wrap),i.pending!==0?m:1)},o.deflateEnd=function(h){var K;return h&&h.state?(K=h.state.status)!==C&&K!==69&&K!==73&&K!==91&&K!==103&&K!==G&&K!==666?se(h,w):(h.state=null,K===G?se(h,-3):m):w},o.deflateSetDictionary=function(h,K){var I,i,l,v,M,$,W,ie,oe=K.length;if(!h||!h.state||(v=(I=h.state).wrap)===2||v===1&&I.status!==C||I.lookahead)return w;for(v===1&&(h.adler=c(h.adler,K,oe,0)),I.wrap=0,oe>=I.w_size&&(v===0&&(te(I.head),I.strstart=0,I.block_start=0,I.insert=0),ie=new a.Buf8(I.w_size),a.arraySet(ie,K,oe-I.w_size,I.w_size,0),K=ie,oe=I.w_size),M=h.avail_in,$=h.next_in,W=h.input,h.avail_in=oe,h.next_in=0,h.input=K,pe(I);I.lookahead>=_;){for(i=I.strstart,l=I.lookahead-(_-1);I.ins_h=(I.ins_h<<I.hash_shift^I.window[i+_-1])&I.hash_mask,I.prev[i&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=i,i++,--l;);I.strstart=i,I.lookahead=_-1,pe(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=_-1,I.match_available=0,h.next_in=$,h.input=W,h.avail_in=M,I.wrap=v,m},o.deflateInfo=\"pako deflate (from Nodeca project)\"},{\"../utils/common\":41,\"./adler32\":43,\"./crc32\":45,\"./messages\":51,\"./trees\":52}],47:[function(t,s,o){\"use strict\";s.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1}},{}],48:[function(t,s,o){\"use strict\";s.exports=function(u,a){var n=u.state,c=u.next_in,g,E,p,x,m,w,b,T,R,S,P,O,y,d,N,B,_,j,J,C,G,A=u.input,z;g=c+(u.avail_in-5),E=u.next_out,z=u.output,p=E-(a-u.avail_out),x=E+(u.avail_out-257),m=n.dmax,w=n.wsize,b=n.whave,T=n.wnext,R=n.window,S=n.hold,P=n.bits,O=n.lencode,y=n.distcode,d=(1<<n.lenbits)-1,N=(1<<n.distbits)-1;e:do{P<15&&(S+=A[c++]<<P,P+=8,S+=A[c++]<<P,P+=8),B=O[S&d];t:for(;;){if(S>>>=_=B>>>24,P-=_,(_=B>>>16&255)===0)z[E++]=65535&B;else{if(!(16&_)){if((64&_)==0){B=O[(65535&B)+(S&(1<<_)-1)];continue t}if(32&_){n.mode=12;break e}u.msg=\"invalid literal/length code\",n.mode=30;break e}j=65535&B,(_&=15)&&(P<_&&(S+=A[c++]<<P,P+=8),j+=S&(1<<_)-1,S>>>=_,P-=_),P<15&&(S+=A[c++]<<P,P+=8,S+=A[c++]<<P,P+=8),B=y[S&N];r:for(;;){if(S>>>=_=B>>>24,P-=_,!(16&(_=B>>>16&255))){if((64&_)==0){B=y[(65535&B)+(S&(1<<_)-1)];continue r}u.msg=\"invalid distance code\",n.mode=30;break e}if(J=65535&B,P<(_&=15)&&(S+=A[c++]<<P,(P+=8)<_&&(S+=A[c++]<<P,P+=8)),m<(J+=S&(1<<_)-1)){u.msg=\"invalid distance too far back\",n.mode=30;break e}if(S>>>=_,P-=_,(_=E-p)<J){if(b<(_=J-_)&&n.sane){u.msg=\"invalid distance too far back\",n.mode=30;break e}if(G=R,(C=0)===T){if(C+=w-_,_<j){for(j-=_;z[E++]=R[C++],--_;);C=E-J,G=z}}else if(T<_){if(C+=w+T-_,(_-=T)<j){for(j-=_;z[E++]=R[C++],--_;);if(C=0,T<j){for(j-=_=T;z[E++]=R[C++],--_;);C=E-J,G=z}}}else if(C+=T-_,_<j){for(j-=_;z[E++]=R[C++],--_;);C=E-J,G=z}for(;2<j;)z[E++]=G[C++],z[E++]=G[C++],z[E++]=G[C++],j-=3;j&&(z[E++]=G[C++],1<j&&(z[E++]=G[C++]))}else{for(C=E-J;z[E++]=z[C++],z[E++]=z[C++],z[E++]=z[C++],2<(j-=3););j&&(z[E++]=z[C++],1<j&&(z[E++]=z[C++]))}break}}break}}while(c<g&&E<x);c-=j=P>>3,S&=(1<<(P-=j<<3))-1,u.next_in=c,u.next_out=E,u.avail_in=c<g?g-c+5:5-(c-g),u.avail_out=E<x?x-E+257:257-(E-x),n.hold=S,n.bits=P}},{}],49:[function(t,s,o){\"use strict\";var u=t(\"../utils/common\"),a=t(\"./adler32\"),n=t(\"./crc32\"),c=t(\"./inffast\"),g=t(\"./inftrees\"),E=1,p=2,x=0,m=-2,w=1,b=852,T=592;function R(C){return(C>>>24&255)+(C>>>8&65280)+((65280&C)<<8)+((255&C)<<24)}function S(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function P(C){var G;return C&&C.state?(G=C.state,C.total_in=C.total_out=G.total=0,C.msg=\"\",G.wrap&&(C.adler=1&G.wrap),G.mode=w,G.last=0,G.havedict=0,G.dmax=32768,G.head=null,G.hold=0,G.bits=0,G.lencode=G.lendyn=new u.Buf32(b),G.distcode=G.distdyn=new u.Buf32(T),G.sane=1,G.back=-1,x):m}function O(C){var G;return C&&C.state?((G=C.state).wsize=0,G.whave=0,G.wnext=0,P(C)):m}function y(C,G){var A,z;return C&&C.state?(z=C.state,G<0?(A=0,G=-G):(A=1+(G>>4),G<48&&(G&=15)),G&&(G<8||15<G)?m:(z.window!==null&&z.wbits!==G&&(z.window=null),z.wrap=A,z.wbits=G,O(C))):m}function d(C,G){var A,z;return C?(z=new S,(C.state=z).window=null,(A=y(C,G))!==x&&(C.state=null),A):m}var N,B,_=!0;function j(C){if(_){var G;for(N=new u.Buf32(512),B=new u.Buf32(32),G=0;G<144;)C.lens[G++]=8;for(;G<256;)C.lens[G++]=9;for(;G<280;)C.lens[G++]=7;for(;G<288;)C.lens[G++]=8;for(g(E,C.lens,0,288,N,0,C.work,{bits:9}),G=0;G<32;)C.lens[G++]=5;g(p,C.lens,0,32,B,0,C.work,{bits:5}),_=!1}C.lencode=N,C.lenbits=9,C.distcode=B,C.distbits=5}function J(C,G,A,z){var Q,q=C.state;return q.window===null&&(q.wsize=1<<q.wbits,q.wnext=0,q.whave=0,q.window=new u.Buf8(q.wsize)),z>=q.wsize?(u.arraySet(q.window,G,A-q.wsize,q.wsize,0),q.wnext=0,q.whave=q.wsize):(z<(Q=q.wsize-q.wnext)&&(Q=z),u.arraySet(q.window,G,A-z,Q,q.wnext),(z-=Q)?(u.arraySet(q.window,G,A-z,z,0),q.wnext=z,q.whave=q.wsize):(q.wnext+=Q,q.wnext===q.wsize&&(q.wnext=0),q.whave<q.wsize&&(q.whave+=Q))),0}o.inflateReset=O,o.inflateReset2=y,o.inflateResetKeep=P,o.inflateInit=function(C){return d(C,15)},o.inflateInit2=d,o.inflate=function(C,G){var A,z,Q,q,se,Y,te,V,D,X,Z,re,pe,k,f,H,U,ne,L,F,h,K,I,i,l=0,v=new u.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!C||!C.state||!C.output||!C.input&&C.avail_in!==0)return m;(A=C.state).mode===12&&(A.mode=13),se=C.next_out,Q=C.output,te=C.avail_out,q=C.next_in,z=C.input,Y=C.avail_in,V=A.hold,D=A.bits,X=Y,Z=te,K=x;e:for(;;)switch(A.mode){case w:if(A.wrap===0){A.mode=13;break}for(;D<16;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}if(2&A.wrap&&V===35615){v[A.check=0]=255&V,v[1]=V>>>8&255,A.check=n(A.check,v,2,0),D=V=0,A.mode=2;break}if(A.flags=0,A.head&&(A.head.done=!1),!(1&A.wrap)||(((255&V)<<8)+(V>>8))%31){C.msg=\"incorrect header check\",A.mode=30;break}if((15&V)!=8){C.msg=\"unknown compression method\",A.mode=30;break}if(D-=4,h=8+(15&(V>>>=4)),A.wbits===0)A.wbits=h;else if(h>A.wbits){C.msg=\"invalid window size\",A.mode=30;break}A.dmax=1<<h,C.adler=A.check=1,A.mode=512&V?10:12,D=V=0;break;case 2:for(;D<16;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}if(A.flags=V,(255&A.flags)!=8){C.msg=\"unknown compression method\",A.mode=30;break}if(57344&A.flags){C.msg=\"unknown header flags set\",A.mode=30;break}A.head&&(A.head.text=V>>8&1),512&A.flags&&(v[0]=255&V,v[1]=V>>>8&255,A.check=n(A.check,v,2,0)),D=V=0,A.mode=3;case 3:for(;D<32;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}A.head&&(A.head.time=V),512&A.flags&&(v[0]=255&V,v[1]=V>>>8&255,v[2]=V>>>16&255,v[3]=V>>>24&255,A.check=n(A.check,v,4,0)),D=V=0,A.mode=4;case 4:for(;D<16;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}A.head&&(A.head.xflags=255&V,A.head.os=V>>8),512&A.flags&&(v[0]=255&V,v[1]=V>>>8&255,A.check=n(A.check,v,2,0)),D=V=0,A.mode=5;case 5:if(1024&A.flags){for(;D<16;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}A.length=V,A.head&&(A.head.extra_len=V),512&A.flags&&(v[0]=255&V,v[1]=V>>>8&255,A.check=n(A.check,v,2,0)),D=V=0}else A.head&&(A.head.extra=null);A.mode=6;case 6:if(1024&A.flags&&(Y<(re=A.length)&&(re=Y),re&&(A.head&&(h=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Array(A.head.extra_len)),u.arraySet(A.head.extra,z,q,re,h)),512&A.flags&&(A.check=n(A.check,z,re,q)),Y-=re,q+=re,A.length-=re),A.length))break e;A.length=0,A.mode=7;case 7:if(2048&A.flags){if(Y===0)break e;for(re=0;h=z[q+re++],A.head&&h&&A.length<65536&&(A.head.name+=String.fromCharCode(h)),h&&re<Y;);if(512&A.flags&&(A.check=n(A.check,z,re,q)),Y-=re,q+=re,h)break e}else A.head&&(A.head.name=null);A.length=0,A.mode=8;case 8:if(4096&A.flags){if(Y===0)break e;for(re=0;h=z[q+re++],A.head&&h&&A.length<65536&&(A.head.comment+=String.fromCharCode(h)),h&&re<Y;);if(512&A.flags&&(A.check=n(A.check,z,re,q)),Y-=re,q+=re,h)break e}else A.head&&(A.head.comment=null);A.mode=9;case 9:if(512&A.flags){for(;D<16;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}if(V!==(65535&A.check)){C.msg=\"header crc mismatch\",A.mode=30;break}D=V=0}A.head&&(A.head.hcrc=A.flags>>9&1,A.head.done=!0),C.adler=A.check=0,A.mode=12;break;case 10:for(;D<32;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}C.adler=A.check=R(V),D=V=0,A.mode=11;case 11:if(A.havedict===0)return C.next_out=se,C.avail_out=te,C.next_in=q,C.avail_in=Y,A.hold=V,A.bits=D,2;C.adler=A.check=1,A.mode=12;case 12:if(G===5||G===6)break e;case 13:if(A.last){V>>>=7&D,D-=7&D,A.mode=27;break}for(;D<3;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}switch(A.last=1&V,D-=1,3&(V>>>=1)){case 0:A.mode=14;break;case 1:if(j(A),A.mode=20,G!==6)break;V>>>=2,D-=2;break e;case 2:A.mode=17;break;case 3:C.msg=\"invalid block type\",A.mode=30}V>>>=2,D-=2;break;case 14:for(V>>>=7&D,D-=7&D;D<32;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}if((65535&V)!=(V>>>16^65535)){C.msg=\"invalid stored block lengths\",A.mode=30;break}if(A.length=65535&V,D=V=0,A.mode=15,G===6)break e;case 15:A.mode=16;case 16:if(re=A.length){if(Y<re&&(re=Y),te<re&&(re=te),re===0)break e;u.arraySet(Q,z,q,re,se),Y-=re,q+=re,te-=re,se+=re,A.length-=re;break}A.mode=12;break;case 17:for(;D<14;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}if(A.nlen=257+(31&V),V>>>=5,D-=5,A.ndist=1+(31&V),V>>>=5,D-=5,A.ncode=4+(15&V),V>>>=4,D-=4,286<A.nlen||30<A.ndist){C.msg=\"too many length or distance symbols\",A.mode=30;break}A.have=0,A.mode=18;case 18:for(;A.have<A.ncode;){for(;D<3;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}A.lens[M[A.have++]]=7&V,V>>>=3,D-=3}for(;A.have<19;)A.lens[M[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,I={bits:A.lenbits},K=g(0,A.lens,0,19,A.lencode,0,A.work,I),A.lenbits=I.bits,K){C.msg=\"invalid code lengths set\",A.mode=30;break}A.have=0,A.mode=19;case 19:for(;A.have<A.nlen+A.ndist;){for(;H=(l=A.lencode[V&(1<<A.lenbits)-1])>>>16&255,U=65535&l,!((f=l>>>24)<=D);){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}if(U<16)V>>>=f,D-=f,A.lens[A.have++]=U;else{if(U===16){for(i=f+2;D<i;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}if(V>>>=f,D-=f,A.have===0){C.msg=\"invalid bit length repeat\",A.mode=30;break}h=A.lens[A.have-1],re=3+(3&V),V>>>=2,D-=2}else if(U===17){for(i=f+3;D<i;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}D-=f,h=0,re=3+(7&(V>>>=f)),V>>>=3,D-=3}else{for(i=f+7;D<i;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}D-=f,h=0,re=11+(127&(V>>>=f)),V>>>=7,D-=7}if(A.have+re>A.nlen+A.ndist){C.msg=\"invalid bit length repeat\",A.mode=30;break}for(;re--;)A.lens[A.have++]=h}}if(A.mode===30)break;if(A.lens[256]===0){C.msg=\"invalid code -- missing end-of-block\",A.mode=30;break}if(A.lenbits=9,I={bits:A.lenbits},K=g(E,A.lens,0,A.nlen,A.lencode,0,A.work,I),A.lenbits=I.bits,K){C.msg=\"invalid literal/lengths set\",A.mode=30;break}if(A.distbits=6,A.distcode=A.distdyn,I={bits:A.distbits},K=g(p,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,I),A.distbits=I.bits,K){C.msg=\"invalid distances set\",A.mode=30;break}if(A.mode=20,G===6)break e;case 20:A.mode=21;case 21:if(6<=Y&&258<=te){C.next_out=se,C.avail_out=te,C.next_in=q,C.avail_in=Y,A.hold=V,A.bits=D,c(C,Z),se=C.next_out,Q=C.output,te=C.avail_out,q=C.next_in,z=C.input,Y=C.avail_in,V=A.hold,D=A.bits,A.mode===12&&(A.back=-1);break}for(A.back=0;H=(l=A.lencode[V&(1<<A.lenbits)-1])>>>16&255,U=65535&l,!((f=l>>>24)<=D);){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}if(H&&(240&H)==0){for(ne=f,L=H,F=U;H=(l=A.lencode[F+((V&(1<<ne+L)-1)>>ne)])>>>16&255,U=65535&l,!(ne+(f=l>>>24)<=D);){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}V>>>=ne,D-=ne,A.back+=ne}if(V>>>=f,D-=f,A.back+=f,A.length=U,H===0){A.mode=26;break}if(32&H){A.back=-1,A.mode=12;break}if(64&H){C.msg=\"invalid literal/length code\",A.mode=30;break}A.extra=15&H,A.mode=22;case 22:if(A.extra){for(i=A.extra;D<i;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}A.length+=V&(1<<A.extra)-1,V>>>=A.extra,D-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=23;case 23:for(;H=(l=A.distcode[V&(1<<A.distbits)-1])>>>16&255,U=65535&l,!((f=l>>>24)<=D);){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}if((240&H)==0){for(ne=f,L=H,F=U;H=(l=A.distcode[F+((V&(1<<ne+L)-1)>>ne)])>>>16&255,U=65535&l,!(ne+(f=l>>>24)<=D);){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}V>>>=ne,D-=ne,A.back+=ne}if(V>>>=f,D-=f,A.back+=f,64&H){C.msg=\"invalid distance code\",A.mode=30;break}A.offset=U,A.extra=15&H,A.mode=24;case 24:if(A.extra){for(i=A.extra;D<i;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}A.offset+=V&(1<<A.extra)-1,V>>>=A.extra,D-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){C.msg=\"invalid distance too far back\",A.mode=30;break}A.mode=25;case 25:if(te===0)break e;if(re=Z-te,A.offset>re){if((re=A.offset-re)>A.whave&&A.sane){C.msg=\"invalid distance too far back\",A.mode=30;break}pe=re>A.wnext?(re-=A.wnext,A.wsize-re):A.wnext-re,re>A.length&&(re=A.length),k=A.window}else k=Q,pe=se-A.offset,re=A.length;for(te<re&&(re=te),te-=re,A.length-=re;Q[se++]=k[pe++],--re;);A.length===0&&(A.mode=21);break;case 26:if(te===0)break e;Q[se++]=A.length,te--,A.mode=21;break;case 27:if(A.wrap){for(;D<32;){if(Y===0)break e;Y--,V|=z[q++]<<D,D+=8}if(Z-=te,C.total_out+=Z,A.total+=Z,Z&&(C.adler=A.check=A.flags?n(A.check,Q,Z,se-Z):a(A.check,Q,Z,se-Z)),Z=te,(A.flags?V:R(V))!==A.check){C.msg=\"incorrect data check\",A.mode=30;break}D=V=0}A.mode=28;case 28:if(A.wrap&&A.flags){for(;D<32;){if(Y===0)break e;Y--,V+=z[q++]<<D,D+=8}if(V!==(4294967295&A.total)){C.msg=\"incorrect length check\",A.mode=30;break}D=V=0}A.mode=29;case 29:K=1;break e;case 30:K=-3;break e;case 31:return-4;default:return m}return C.next_out=se,C.avail_out=te,C.next_in=q,C.avail_in=Y,A.hold=V,A.bits=D,(A.wsize||Z!==C.avail_out&&A.mode<30&&(A.mode<27||G!==4))&&J(C,C.output,C.next_out,Z-C.avail_out)?(A.mode=31,-4):(X-=C.avail_in,Z-=C.avail_out,C.total_in+=X,C.total_out+=Z,A.total+=Z,A.wrap&&Z&&(C.adler=A.check=A.flags?n(A.check,Q,Z,C.next_out-Z):a(A.check,Q,Z,C.next_out-Z)),C.data_type=A.bits+(A.last?64:0)+(A.mode===12?128:0)+(A.mode===20||A.mode===15?256:0),(X==0&&Z===0||G===4)&&K===x&&(K=-5),K)},o.inflateEnd=function(C){if(!C||!C.state)return m;var G=C.state;return G.window&&(G.window=null),C.state=null,x},o.inflateGetHeader=function(C,G){var A;return C&&C.state?(2&(A=C.state).wrap)==0?m:((A.head=G).done=!1,x):m},o.inflateSetDictionary=function(C,G){var A,z=G.length;return C&&C.state?(A=C.state).wrap!==0&&A.mode!==11?m:A.mode===11&&a(1,G,z,0)!==A.check?-3:J(C,G,z,z)?(A.mode=31,-4):(A.havedict=1,x):m},o.inflateInfo=\"pako inflate (from Nodeca project)\"},{\"../utils/common\":41,\"./adler32\":43,\"./crc32\":45,\"./inffast\":48,\"./inftrees\":50}],50:[function(t,s,o){\"use strict\";var u=t(\"../utils/common\"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],g=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];s.exports=function(E,p,x,m,w,b,T,R){var S,P,O,y,d,N,B,_,j,J=R.bits,C=0,G=0,A=0,z=0,Q=0,q=0,se=0,Y=0,te=0,V=0,D=null,X=0,Z=new u.Buf16(16),re=new u.Buf16(16),pe=null,k=0;for(C=0;C<=15;C++)Z[C]=0;for(G=0;G<m;G++)Z[p[x+G]]++;for(Q=J,z=15;1<=z&&Z[z]===0;z--);if(z<Q&&(Q=z),z===0)return w[b++]=20971520,w[b++]=20971520,R.bits=1,0;for(A=1;A<z&&Z[A]===0;A++);for(Q<A&&(Q=A),C=Y=1;C<=15;C++)if(Y<<=1,(Y-=Z[C])<0)return-1;if(0<Y&&(E===0||z!==1))return-1;for(re[1]=0,C=1;C<15;C++)re[C+1]=re[C]+Z[C];for(G=0;G<m;G++)p[x+G]!==0&&(T[re[p[x+G]]++]=G);if(N=E===0?(D=pe=T,19):E===1?(D=a,X-=257,pe=n,k-=257,256):(D=c,pe=g,-1),C=A,d=b,se=G=V=0,O=-1,y=(te=1<<(q=Q))-1,E===1&&852<te||E===2&&592<te)return 1;for(;;){for(B=C-se,j=T[G]<N?(_=0,T[G]):T[G]>N?(_=pe[k+T[G]],D[X+T[G]]):(_=96,0),S=1<<C-se,A=P=1<<q;w[d+(V>>se)+(P-=S)]=B<<24|_<<16|j|0,P!==0;);for(S=1<<C-1;V&S;)S>>=1;if(S!==0?(V&=S-1,V+=S):V=0,G++,--Z[C]==0){if(C===z)break;C=p[x+T[G]]}if(Q<C&&(V&y)!==O){for(se===0&&(se=Q),d+=A,Y=1<<(q=C-se);q+se<z&&!((Y-=Z[q+se])<=0);)q++,Y<<=1;if(te+=1<<q,E===1&&852<te||E===2&&592<te)return 1;w[O=V&y]=Q<<24|q<<16|d-b|0}}return V!==0&&(w[d+V]=C-se<<24|4194304),R.bits=Q,0}},{\"../utils/common\":41}],51:[function(t,s,o){\"use strict\";s.exports={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"}},{}],52:[function(t,s,o){\"use strict\";var u=t(\"../utils/common\"),a=0,n=1;function c(l){for(var v=l.length;0<=--v;)l[v]=0}var g=0,E=29,p=256,x=p+1+E,m=30,w=19,b=2*x+1,T=15,R=16,S=7,P=256,O=16,y=17,d=18,N=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],B=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],J=new Array(2*(x+2));c(J);var C=new Array(2*m);c(C);var G=new Array(512);c(G);var A=new Array(256);c(A);var z=new Array(E);c(z);var Q,q,se,Y=new Array(m);function te(l,v,M,$,W){this.static_tree=l,this.extra_bits=v,this.extra_base=M,this.elems=$,this.max_length=W,this.has_stree=l&&l.length}function V(l,v){this.dyn_tree=l,this.max_code=0,this.stat_desc=v}function D(l){return l<256?G[l]:G[256+(l>>>7)]}function X(l,v){l.pending_buf[l.pending++]=255&v,l.pending_buf[l.pending++]=v>>>8&255}function Z(l,v,M){l.bi_valid>R-M?(l.bi_buf|=v<<l.bi_valid&65535,X(l,l.bi_buf),l.bi_buf=v>>R-l.bi_valid,l.bi_valid+=M-R):(l.bi_buf|=v<<l.bi_valid&65535,l.bi_valid+=M)}function re(l,v,M){Z(l,M[2*v],M[2*v+1])}function pe(l,v){for(var M=0;M|=1&l,l>>>=1,M<<=1,0<--v;);return M>>>1}function k(l,v,M){var $,W,ie=new Array(T+1),oe=0;for($=1;$<=T;$++)ie[$]=oe=oe+M[$-1]<<1;for(W=0;W<=v;W++){var ae=l[2*W+1];ae!==0&&(l[2*W]=pe(ie[ae]++,ae))}}function f(l){for(var v=0;v<x;v++)l.dyn_ltree[2*v]=0;for(v=0;v<m;v++)l.dyn_dtree[2*v]=0;for(v=0;v<w;v++)l.bl_tree[2*v]=0;l.dyn_ltree[2*P]=1,l.opt_len=l.static_len=0,l.last_lit=l.matches=0}function H(l){8<l.bi_valid?X(l,l.bi_buf):0<l.bi_valid&&(l.pending_buf[l.pending++]=l.bi_buf),l.bi_buf=0,l.bi_valid=0}function U(l,v,M,$){var W=2*v,ie=2*M;return l[W]<l[ie]||l[W]===l[ie]&&$[v]<=$[M]}function ne(l,v,M){for(var $=l.heap[M],W=M<<1;W<=l.heap_len&&(W<l.heap_len&&U(v,l.heap[W+1],l.heap[W],l.depth)&&W++,!U(v,$,l.heap[W],l.depth));)l.heap[M]=l.heap[W],M=W,W<<=1;l.heap[M]=$}function L(l,v,M){var $,W,ie,oe,ae=0;if(l.last_lit!==0)for(;$=l.pending_buf[l.d_buf+2*ae]<<8|l.pending_buf[l.d_buf+2*ae+1],W=l.pending_buf[l.l_buf+ae],ae++,$===0?re(l,W,v):(re(l,(ie=A[W])+p+1,v),(oe=N[ie])!==0&&Z(l,W-=z[ie],oe),re(l,ie=D(--$),M),(oe=B[ie])!==0&&Z(l,$-=Y[ie],oe)),ae<l.last_lit;);re(l,P,v)}function F(l,v){var M,$,W,ie=v.dyn_tree,oe=v.stat_desc.static_tree,ae=v.stat_desc.has_stree,de=v.stat_desc.elems,me=-1;for(l.heap_len=0,l.heap_max=b,M=0;M<de;M++)ie[2*M]!==0?(l.heap[++l.heap_len]=me=M,l.depth[M]=0):ie[2*M+1]=0;for(;l.heap_len<2;)ie[2*(W=l.heap[++l.heap_len]=me<2?++me:0)]=1,l.depth[W]=0,l.opt_len--,ae&&(l.static_len-=oe[2*W+1]);for(v.max_code=me,M=l.heap_len>>1;1<=M;M--)ne(l,ie,M);for(W=de;M=l.heap[1],l.heap[1]=l.heap[l.heap_len--],ne(l,ie,1),$=l.heap[1],l.heap[--l.heap_max]=M,l.heap[--l.heap_max]=$,ie[2*W]=ie[2*M]+ie[2*$],l.depth[W]=(l.depth[M]>=l.depth[$]?l.depth[M]:l.depth[$])+1,ie[2*M+1]=ie[2*$+1]=W,l.heap[1]=W++,ne(l,ie,1),2<=l.heap_len;);l.heap[--l.heap_max]=l.heap[1],(function(ve,xe){var $e,Oe,St,Ee,Kt,wr,He=xe.dyn_tree,mn=xe.max_code,Ea=xe.stat_desc.static_tree,xa=xe.stat_desc.has_stree,Ta=xe.stat_desc.extra_bits,vn=xe.stat_desc.extra_base,At=xe.stat_desc.max_length,Vt=0;for(Ee=0;Ee<=T;Ee++)ve.bl_count[Ee]=0;for(He[2*ve.heap[ve.heap_max]+1]=0,$e=ve.heap_max+1;$e<b;$e++)At<(Ee=He[2*He[2*(Oe=ve.heap[$e])+1]+1]+1)&&(Ee=At,Vt++),He[2*Oe+1]=Ee,mn<Oe||(ve.bl_count[Ee]++,Kt=0,vn<=Oe&&(Kt=Ta[Oe-vn]),wr=He[2*Oe],ve.opt_len+=wr*(Ee+Kt),xa&&(ve.static_len+=wr*(Ea[2*Oe+1]+Kt)));if(Vt!==0){do{for(Ee=At-1;ve.bl_count[Ee]===0;)Ee--;ve.bl_count[Ee]--,ve.bl_count[Ee+1]+=2,ve.bl_count[At]--,Vt-=2}while(0<Vt);for(Ee=At;Ee!==0;Ee--)for(Oe=ve.bl_count[Ee];Oe!==0;)mn<(St=ve.heap[--$e])||(He[2*St+1]!==Ee&&(ve.opt_len+=(Ee-He[2*St+1])*He[2*St],He[2*St+1]=Ee),Oe--)}})(l,v),k(ie,me,l.bl_count)}function h(l,v,M){var $,W,ie=-1,oe=v[1],ae=0,de=7,me=4;for(oe===0&&(de=138,me=3),v[2*(M+1)+1]=65535,$=0;$<=M;$++)W=oe,oe=v[2*($+1)+1],++ae<de&&W===oe||(ae<me?l.bl_tree[2*W]+=ae:W!==0?(W!==ie&&l.bl_tree[2*W]++,l.bl_tree[2*O]++):ae<=10?l.bl_tree[2*y]++:l.bl_tree[2*d]++,ie=W,me=(ae=0)===oe?(de=138,3):W===oe?(de=6,3):(de=7,4))}function K(l,v,M){var $,W,ie=-1,oe=v[1],ae=0,de=7,me=4;for(oe===0&&(de=138,me=3),$=0;$<=M;$++)if(W=oe,oe=v[2*($+1)+1],!(++ae<de&&W===oe)){if(ae<me)for(;re(l,W,l.bl_tree),--ae!=0;);else W!==0?(W!==ie&&(re(l,W,l.bl_tree),ae--),re(l,O,l.bl_tree),Z(l,ae-3,2)):ae<=10?(re(l,y,l.bl_tree),Z(l,ae-3,3)):(re(l,d,l.bl_tree),Z(l,ae-11,7));ie=W,me=(ae=0)===oe?(de=138,3):W===oe?(de=6,3):(de=7,4)}}c(Y);var I=!1;function i(l,v,M,$){Z(l,(g<<1)+($?1:0),3),(function(W,ie,oe,ae){H(W),ae&&(X(W,oe),X(W,~oe)),u.arraySet(W.pending_buf,W.window,ie,oe,W.pending),W.pending+=oe})(l,v,M,!0)}o._tr_init=function(l){I||((function(){var v,M,$,W,ie,oe=new Array(T+1);for(W=$=0;W<E-1;W++)for(z[W]=$,v=0;v<1<<N[W];v++)A[$++]=W;for(A[$-1]=W,W=ie=0;W<16;W++)for(Y[W]=ie,v=0;v<1<<B[W];v++)G[ie++]=W;for(ie>>=7;W<m;W++)for(Y[W]=ie<<7,v=0;v<1<<B[W]-7;v++)G[256+ie++]=W;for(M=0;M<=T;M++)oe[M]=0;for(v=0;v<=143;)J[2*v+1]=8,v++,oe[8]++;for(;v<=255;)J[2*v+1]=9,v++,oe[9]++;for(;v<=279;)J[2*v+1]=7,v++,oe[7]++;for(;v<=287;)J[2*v+1]=8,v++,oe[8]++;for(k(J,x+1,oe),v=0;v<m;v++)C[2*v+1]=5,C[2*v]=pe(v,5);Q=new te(J,N,p+1,x,T),q=new te(C,B,0,m,T),se=new te(new Array(0),_,0,w,S)})(),I=!0),l.l_desc=new V(l.dyn_ltree,Q),l.d_desc=new V(l.dyn_dtree,q),l.bl_desc=new V(l.bl_tree,se),l.bi_buf=0,l.bi_valid=0,f(l)},o._tr_stored_block=i,o._tr_flush_block=function(l,v,M,$){var W,ie,oe=0;0<l.level?(l.strm.data_type===2&&(l.strm.data_type=(function(ae){var de,me=4093624447;for(de=0;de<=31;de++,me>>>=1)if(1&me&&ae.dyn_ltree[2*de]!==0)return a;if(ae.dyn_ltree[18]!==0||ae.dyn_ltree[20]!==0||ae.dyn_ltree[26]!==0)return n;for(de=32;de<p;de++)if(ae.dyn_ltree[2*de]!==0)return n;return a})(l)),F(l,l.l_desc),F(l,l.d_desc),oe=(function(ae){var de;for(h(ae,ae.dyn_ltree,ae.l_desc.max_code),h(ae,ae.dyn_dtree,ae.d_desc.max_code),F(ae,ae.bl_desc),de=w-1;3<=de&&ae.bl_tree[2*j[de]+1]===0;de--);return ae.opt_len+=3*(de+1)+5+5+4,de})(l),W=l.opt_len+3+7>>>3,(ie=l.static_len+3+7>>>3)<=W&&(W=ie)):W=ie=M+5,M+4<=W&&v!==-1?i(l,v,M,$):l.strategy===4||ie===W?(Z(l,2+($?1:0),3),L(l,J,C)):(Z(l,4+($?1:0),3),(function(ae,de,me,ve){var xe;for(Z(ae,de-257,5),Z(ae,me-1,5),Z(ae,ve-4,4),xe=0;xe<ve;xe++)Z(ae,ae.bl_tree[2*j[xe]+1],3);K(ae,ae.dyn_ltree,de-1),K(ae,ae.dyn_dtree,me-1)})(l,l.l_desc.max_code+1,l.d_desc.max_code+1,oe+1),L(l,l.dyn_ltree,l.dyn_dtree)),f(l),$&&H(l)},o._tr_tally=function(l,v,M){return l.pending_buf[l.d_buf+2*l.last_lit]=v>>>8&255,l.pending_buf[l.d_buf+2*l.last_lit+1]=255&v,l.pending_buf[l.l_buf+l.last_lit]=255&M,l.last_lit++,v===0?l.dyn_ltree[2*M]++:(l.matches++,v--,l.dyn_ltree[2*(A[M]+p+1)]++,l.dyn_dtree[2*D(v)]++),l.last_lit===l.lit_bufsize-1},o._tr_align=function(l){Z(l,2,3),re(l,P,J),(function(v){v.bi_valid===16?(X(v,v.bi_buf),v.bi_buf=0,v.bi_valid=0):8<=v.bi_valid&&(v.pending_buf[v.pending++]=255&v.bi_buf,v.bi_buf>>=8,v.bi_valid-=8)})(l)}},{\"../utils/common\":41}],53:[function(t,s,o){\"use strict\";s.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,s,o){(function(u){(function(a,n){\"use strict\";if(!a.setImmediate){var c,g,E,p,x=1,m={},w=!1,b=a.document,T=Object.getPrototypeOf&&Object.getPrototypeOf(a);T=T&&T.setTimeout?T:a,c={}.toString.call(a.process)===\"[object process]\"?function(O){ge.nextTick(function(){S(O)})}:(function(){if(a.postMessage&&!a.importScripts){var O=!0,y=a.onmessage;return a.onmessage=function(){O=!1},a.postMessage(\"\",\"*\"),a.onmessage=y,O}})()?(p=\"setImmediate$\"+Math.random()+\"$\",a.addEventListener?a.addEventListener(\"message\",P,!1):a.attachEvent(\"onmessage\",P),function(O){a.postMessage(p+O,\"*\")}):a.MessageChannel?((E=new MessageChannel).port1.onmessage=function(O){S(O.data)},function(O){E.port2.postMessage(O)}):b&&\"onreadystatechange\"in b.createElement(\"script\")?(g=b.documentElement,function(O){var y=b.createElement(\"script\");y.onreadystatechange=function(){S(O),y.onreadystatechange=null,g.removeChild(y),y=null},g.appendChild(y)}):function(O){setTimeout(S,0,O)},T.setImmediate=function(O){typeof O!=\"function\"&&(O=new Function(\"\"+O));for(var y=new Array(arguments.length-1),d=0;d<y.length;d++)y[d]=arguments[d+1];return m[x]={callback:O,args:y},c(x),x++},T.clearImmediate=R}function R(O){delete m[O]}function S(O){if(w)setTimeout(S,0,O);else{var y=m[O];if(y){w=!0;try{(function(d){var N=d.callback,B=d.args;switch(B.length){case 0:N();break;case 1:N(B[0]);break;case 2:N(B[0],B[1]);break;case 3:N(B[0],B[1],B[2]);break;default:N.apply(n,B)}})(y)}finally{R(O),w=!1}}}}function P(O){O.source===a&&typeof O.data==\"string\"&&O.data.indexOf(p)===0&&S(+O.data.slice(p.length))}})(typeof self>\"u\"?u===void 0?this:u:self)}).call(this,typeof ke<\"u\"?ke:typeof self<\"u\"?self:typeof window<\"u\"?window:{})},{}]},{},[10])(10)})})),Hc=ce(((e,r)=>{var t={\"&\":\"&amp;\",'\"':\"&quot;\",\"'\":\"&apos;\",\"<\":\"&lt;\",\">\":\"&gt;\"};function s(o){return o&&o.replace?o.replace(/([&\"<>'])/g,function(u,a){return t[a]}):o}r.exports=s})),Wc=ce(((e,r)=>{Xe();var t=Hc(),s=Zr().Stream,o=\"    \";function u(p,x){typeof x!=\"object\"&&(x={indent:x});var m=x.stream?new s:null,w=\"\",b=!1,T=x.indent?x.indent===!0?o:x.indent:\"\",R=!0;function S(N){R?ge.nextTick(N):N()}function P(N,B){if(B!==void 0&&(w+=B),N&&!b&&(m=m||new s,b=!0),N&&b){var _=w;S(function(){m.emit(\"data\",_)}),w=\"\"}}function O(N,B){g(P,c(N,T,T?1:0),B)}function y(){if(m){var N=w;S(function(){m.emit(\"data\",N),m.emit(\"end\"),m.readable=!1,m.emit(\"close\")})}}function d(N){var B={version:\"1.0\",encoding:N.encoding||\"UTF-8\"};N.standalone&&(B.standalone=N.standalone),O({\"?xml\":{_attr:B}}),w=w.replace(\"/>\",\"?>\")}return S(function(){R=!1}),x.declaration&&d(x.declaration),p&&p.forEach?p.forEach(function(N,B){var _;B+1===p.length&&(_=y),O(N,_)}):O(p,y),m?(m.readable=!0,m):w}function a(){var p={_elem:c(Array.prototype.slice.call(arguments))};return p.push=function(x){if(!this.append)throw new Error(\"not assigned to a parent!\");var m=this,w=this._elem.indent;g(this.append,c(x,w,this._elem.icount+(w?1:0)),function(){m.append(!0)})},p.close=function(x){x!==void 0&&this.push(x),this.end&&this.end()},p}function n(p,x){return new Array(x||0).join(p||\"\")}function c(p,x,m){m=m||0;var w=n(x,m),b,T=p,R=!1;if(typeof p==\"object\"&&(b=Object.keys(p)[0],T=p[b],T&&T._elem))return T._elem.name=b,T._elem.icount=m,T._elem.indent=x,T._elem.indents=w,T._elem.interrupt=T,T._elem;var S=[],P=[],O;function y(d){Object.keys(d).forEach(function(N){S.push(E(N,d[N]))})}switch(typeof T){case\"object\":if(T===null)break;T._attr&&y(T._attr),T._cdata&&P.push((\"<![CDATA[\"+T._cdata).replace(/\\]\\]>/g,\"]]]]><![CDATA[>\")+\"]]>\"),T.forEach&&(O=!1,P.push(\"\"),T.forEach(function(d){typeof d==\"object\"?Object.keys(d)[0]==\"_attr\"?y(d._attr):P.push(c(d,x,m+1)):(P.pop(),O=!0,P.push(t(d)))}),O||P.push(\"\"));break;default:P.push(t(T))}return{name:b,interrupt:R,attributes:S,content:P,icount:m,indents:w,indent:x}}function g(p,x,m){if(typeof x!=\"object\")return p(!1,x);var w=x.interrupt?1:x.content.length;function b(){for(;x.content.length;){var R=x.content.shift();if(R!==void 0){if(T(R))return;g(p,R)}}p(!1,(w>1?x.indents:\"\")+(x.name?\"</\"+x.name+\">\":\"\")+(x.indent&&!m?`\n`:\"\")),m&&m()}function T(R){return R.interrupt?(R.interrupt.append=p,R.interrupt.end=b,R.interrupt=!1,p(!0),!0):!1}if(p(!1,x.indents+(x.name?\"<\"+x.name:\"\")+(x.attributes.length?\" \"+x.attributes.join(\" \"):\"\")+(w?x.name?\">\":\"\":x.name?\"/>\":\"\")+(x.indent&&w>1?`\n`:\"\")),!w)return p(!1,x.indent?`\n`:\"\");T(x)||b()}function E(p,x){return p+'=\"'+t(x)+'\"'}r.exports=u,r.exports.element=r.exports.Element=a})),jc=Zr(),nt=zr(Uc(),1),ye=zr(Wc(),1),Ct=0,Nr=32,Gc=32,zc=(e,r)=>{let t=r.replace(/-/g,\"\");if(t.length!==Gc)throw new Error(`Error: Cannot extract GUID from font filename: ${r}`);let s=t.replace(/(..)/g,\"$1 \").trim().split(\" \").map(a=>parseInt(a,16));s.reverse();let o=e.slice(Ct,Nr).map((a,n)=>a^s[n%s.length]),u=new Uint8Array(Ct+o.length+Math.max(0,e.length-Nr));return u.set(e.slice(0,Ct)),u.set(o,Ct),u.set(e.slice(Nr),Ct+o.length),u},$t=class{format(e,r={stack:[]}){let t=e.prepForXml(r);if(t)return t;throw Error(\"XMLComponent did not format correctly\")}},ha=class{replace(e,r,t){let s=e;return r.forEach((o,u)=>{s=s.replace(new RegExp(`{${o.fileName}}`,\"g\"),(t+u).toString())}),s}getMediaData(e,r){return r.Array.filter(t=>e.search(`{${t.fileName}}`)>0)}},$c=class{replace(e,r){let t=e;for(let s of r)t=t.replace(new RegExp(`{${s.reference}-${s.instance}}`,\"g\"),s.numId.toString());return t}},Kc=new $t,Or=(e,r,t,s,o=!0)=>(0,ye.default)(Kc.format(r,{viewWrapper:{View:r,Relationships:s},file:e,stack:[]}),{indent:t,declaration:o?{standalone:\"yes\",encoding:\"UTF-8\"}:{encoding:\"UTF-8\"}}),Vc=(e,r,t,s)=>{let{content:o}=r.options;if(o instanceof Uint8Array)return[{data:o,path:`word/${t}`}];if(\"files\"in o){let g=new nt.default;for(let{path:E,content:p}of o.files)g.file(E,p instanceof Uint8Array?p:et(Or(e,p,s,new Ue)));return[{data:g.generateAsync({type:\"uint8array\",compression:\"DEFLATE\"}),path:`word/${t}`}]}let u=e.PackageParts.createRelationships(t),a=Or(e,o,s,u),n=t.slice(0,t.lastIndexOf(\"/\")),c=t.slice(t.lastIndexOf(\"/\")+1);return[{data:a,path:`word/${t}`},...u.RelationshipCount>0?[{data:Or(e,u,s,u,!1),path:`word/${n}/_rels/${c}.rels`}]:[]]},dn=(e,r,t=0)=>{let s=e.PackageParts.Array.slice(t);return s.length===0?[]:[...s.flatMap(({part:o,path:u})=>Vc(e,o,u,r)),...dn(e,r,t+s.length)]},qc=[\"PackageParts\"],Xc=class{constructor(){ee(this,\"formatter\",void 0),ee(this,\"imageReplacer\",void 0),ee(this,\"numberingReplacer\",void 0),this.formatter=new $t,this.imageReplacer=new ha,this.numberingReplacer=new $c}compile(e,r,t=[]){let s=new nt.default,o=this.xmlifyFile(e,r),{PackageParts:u}=o,a=bl(o,qc),n=new Map(Object.entries(a));for(let[,c]of n)if(Array.isArray(c))for(let g of c)s.file(g.path,et(g.data));else s.file(c.path,et(c.data));for(let{path:c,data:g}of u)s.file(c,typeof g==\"string\"?et(g):g);for(let c of t)s.file(c.path,et(c.data));for(let c of e.Media.Array)c.type!==\"svg\"?s.file(`word/media/${c.fileName}`,c.data):(s.file(`word/media/${c.fileName}`,c.data),s.file(`word/media/${c.fallback.fileName}`,c.fallback.data));for(let[c,{data:g,fontKey:E}]of e.FontTable.fontOptionsWithKey.entries())s.file(`word/fonts/font${c+1}.odttf`,zc(g,E));return s}xmlifyFile(e,r){let t=e.Document.Relationships.RelationshipCount+1,s=(0,ye.default)(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:\"yes\",encoding:\"UTF-8\"}}),o=e.Comments.Relationships.RelationshipCount+1,u=(0,ye.default)(this.formatter.format(e.Comments,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:r,declaration:{standalone:\"yes\",encoding:\"UTF-8\"}}),a=e.FootNotes.Relationships.RelationshipCount+1,n=(0,ye.default)(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{standalone:\"yes\",encoding:\"UTF-8\"}}),c=this.imageReplacer.getMediaData(s,e.Media),g=this.imageReplacer.getMediaData(u,e.Media),E=this.imageReplacer.getMediaData(n,e.Media);return he(he(he(he({Relationships:{data:(c.forEach((p,x)=>{e.Document.Relationships.addRelationship(t+x,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\",`media/${p.fileName}`)}),e.Document.Relationships.addRelationship(e.Document.Relationships.RelationshipCount+1,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable\",\"fontTable.xml\"),(0,ye.default)(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:\"UTF-8\"}})),path:\"word/_rels/document.xml.rels\"},Document:{data:(()=>{let p=this.imageReplacer.replace(s,c,t);return this.numberingReplacer.replace(p,e.Numbering.ConcreteNumbering)})(),path:\"word/document.xml\"},Styles:{data:(()=>{let p=(0,ye.default)(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:\"yes\",encoding:\"UTF-8\"}});return this.numberingReplacer.replace(p,e.Numbering.ConcreteNumbering)})(),path:\"word/styles.xml\"},Properties:{data:(0,ye.default)(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:\"yes\",encoding:\"UTF-8\"}}),path:\"docProps/core.xml\"},Numbering:{data:(0,ye.default)(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:\"yes\",encoding:\"UTF-8\"}}),path:\"word/numbering.xml\"},FileRelationships:{data:(0,ye.default)(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:\"UTF-8\"}}),path:\"_rels/.rels\"},HeaderRelationships:e.Headers.map((p,x)=>{let m=(0,ye.default)(this.formatter.format(p.View,{viewWrapper:p,file:e,stack:[]}),{indent:r,declaration:{encoding:\"UTF-8\"}});return this.imageReplacer.getMediaData(m,e.Media).forEach((w,b)=>{p.Relationships.addRelationship(b,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\",`media/${w.fileName}`)}),{data:(0,ye.default)(this.formatter.format(p.Relationships,{viewWrapper:p,file:e,stack:[]}),{indent:r,declaration:{encoding:\"UTF-8\"}}),path:`word/_rels/header${x+1}.xml.rels`}}),FooterRelationships:e.Footers.map((p,x)=>{let m=(0,ye.default)(this.formatter.format(p.View,{viewWrapper:p,file:e,stack:[]}),{indent:r,declaration:{encoding:\"UTF-8\"}});return this.imageReplacer.getMediaData(m,e.Media).forEach((w,b)=>{p.Relationships.addRelationship(b,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\",`media/${w.fileName}`)}),{data:(0,ye.default)(this.formatter.format(p.Relationships,{viewWrapper:p,file:e,stack:[]}),{indent:r,declaration:{encoding:\"UTF-8\"}}),path:`word/_rels/footer${x+1}.xml.rels`}}),Headers:e.Headers.map((p,x)=>{let m=(0,ye.default)(this.formatter.format(p.View,{viewWrapper:p,file:e,stack:[]}),{indent:r,declaration:{encoding:\"UTF-8\"}}),w=this.imageReplacer.getMediaData(m,e.Media),b=this.imageReplacer.replace(m,w,0);return{data:this.numberingReplacer.replace(b,e.Numbering.ConcreteNumbering),path:`word/header${x+1}.xml`}}),Footers:e.Footers.map((p,x)=>{let m=(0,ye.default)(this.formatter.format(p.View,{viewWrapper:p,file:e,stack:[]}),{indent:r,declaration:{encoding:\"UTF-8\"}}),w=this.imageReplacer.getMediaData(m,e.Media),b=this.imageReplacer.replace(m,w,0);return{data:this.numberingReplacer.replace(b,e.Numbering.ConcreteNumbering),path:`word/footer${x+1}.xml`}}),CustomProperties:{data:(0,ye.default)(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:\"yes\",encoding:\"UTF-8\"}}),path:\"docProps/custom.xml\"},AppProperties:{data:(0,ye.default)(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:\"yes\",encoding:\"UTF-8\"}}),path:\"docProps/app.xml\"},FootNotes:{data:(()=>{let p=this.imageReplacer.replace(n,E,a);return this.numberingReplacer.replace(p,e.Numbering.ConcreteNumbering)})(),path:\"word/footnotes.xml\"},FootNotesRelationships:{data:(E.forEach((p,x)=>{e.FootNotes.Relationships.addRelationship(a+x,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\",`media/${p.fileName}`)}),(0,ye.default)(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:\"UTF-8\"}})),path:\"word/_rels/footnotes.xml.rels\"},Endnotes:{data:(0,ye.default)(this.formatter.format(e.Endnotes.View,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:r,declaration:{encoding:\"UTF-8\"}}),path:\"word/endnotes.xml\"},EndnotesRelationships:{data:(0,ye.default)(this.formatter.format(e.Endnotes.Relationships,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:r,declaration:{encoding:\"UTF-8\"}}),path:\"word/_rels/endnotes.xml.rels\"},Settings:{data:(0,ye.default)(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:\"yes\",encoding:\"UTF-8\"}}),path:\"word/settings.xml\"}},e.Comments.IsEmpty?{}:{Comments:{data:(()=>{let p=this.imageReplacer.replace(u,g,o);return this.numberingReplacer.replace(p,e.Numbering.ConcreteNumbering)})(),path:\"word/comments.xml\"},CommentsRelationships:{data:(g.forEach((p,x)=>{e.Comments.Relationships.addRelationship(o+x,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\",`media/${p.fileName}`)}),(0,ye.default)(this.formatter.format(e.Comments.Relationships,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:r,declaration:{encoding:\"UTF-8\"}})),path:\"word/_rels/comments.xml.rels\"}}),e.CommentsExtended?{CommentsExtended:{data:(0,ye.default)(this.formatter.format(e.CommentsExtended,{viewWrapper:{View:e.CommentsExtended,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:r,declaration:{standalone:\"yes\",encoding:\"UTF-8\"}}),path:\"word/commentsExtended.xml\"}}:{}),e.CommentsIds?{CommentsIds:{data:(0,ye.default)(this.formatter.format(e.CommentsIds,{viewWrapper:{View:e.CommentsIds,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:r,declaration:{standalone:\"yes\",encoding:\"UTF-8\"}}),path:\"word/commentsIds.xml\"}}:{}),{},{FontTable:{data:(0,ye.default)(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:\"yes\",encoding:\"UTF-8\"}}),path:\"word/fontTable.xml\"},FontTableRelationships:{data:(0,ye.default)(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:\"UTF-8\"}}),path:\"word/_rels/fontTable.xml.rels\"},Theme:{data:(0,ye.default)(this.formatter.format(e.Theme,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:\"yes\",encoding:\"UTF-8\"}}),path:\"word/theme/theme1.xml\"},PackageParts:dn(e,r),ContentTypes:{data:(0,ye.default)(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:\"UTF-8\"}}),path:\"[Content_Types].xml\"}})}};function Un(e,r,t,s,o,u,a){try{var n=e[u](a),c=n.value}catch(g){t(g);return}n.done?r(c):Promise.resolve(c).then(s,o)}function xt(e){return function(){var r=this,t=arguments;return new Promise(function(s,o){var u=e.apply(r,t);function a(c){Un(u,s,o,a,n,\"next\",c)}function n(c){Un(u,s,o,a,n,\"throw\",c)}a(void 0)})}}var Yc={NONE:\"\",WITH_2_BLANKS:\"  \",WITH_4_BLANKS:\"    \",WITH_TAB:\"\t\"},Hn=e=>e===!0?Yc.WITH_2_BLANKS:e===!1?void 0:e,fn=class dt{static pack(r,t,s){var o=this;return xt(function*(u,a,n,c=[]){return o.compiler.compile(u,Hn(n),c).generateAsync({type:a,mimeType:\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",compression:\"DEFLATE\"})}).apply(this,arguments)}static toString(r,t,s=[]){return dt.pack(r,\"string\",t,s)}static toBuffer(r,t,s=[]){return dt.pack(r,\"nodebuffer\",t,s)}static toBase64String(r,t,s=[]){return dt.pack(r,\"base64\",t,s)}static toBlob(r,t,s=[]){return dt.pack(r,\"blob\",t,s)}static toArrayBuffer(r,t,s=[]){return dt.pack(r,\"arraybuffer\",t,s)}static toStream(r,t,s=[]){let o=new jc.Stream;return this.compiler.compile(r,Hn(t),s).generateAsync({type:\"nodebuffer\",mimeType:\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",compression:\"DEFLATE\"}).then(u=>{o.emit(\"data\",u),o.emit(\"end\")}),o}};ee(fn,\"compiler\",new Xc);var Zc=new $t,Tt=e=>(0,dr.xml2js)(e,{compact:!1,captureSpacesBetweenElements:!0}),da=e=>{var r;return(r=Tt((0,ye.default)(Zc.format(new Ur({text:e})))).elements[0].elements)!==null&&r!==void 0?r:[]},fa=e=>he(he({},e),{},{attributes:{\"xml:space\":\"preserve\"}}),at=(e,r)=>{var t,s;let o=(t=e.elements)===null||t===void 0?void 0:t.find(u=>u.name===r);return o===void 0?[]:((s=o.elements)!==null&&s!==void 0||(o.elements=[]),o.elements)},ut=(e,r,t)=>{let s=at(e,\"Types\");s.some(o=>{var u,a;return o.type===\"element\"&&o.name===\"Default\"&&(o==null||(u=o.attributes)===null||u===void 0?void 0:u.ContentType)===r&&(o==null||(a=o.attributes)===null||a===void 0?void 0:a.Extension)===t})||s.push({attributes:{ContentType:r,Extension:t},name:\"Default\",type:\"element\"})},Jc=(e,r,t)=>{let s=at(e,\"Types\");s.some(o=>{var u;return o.type===\"element\"&&o.name===\"Override\"&&((u=o.attributes)===null||u===void 0?void 0:u.PartName)===t})||s.push({attributes:{ContentType:r,PartName:t},name:\"Override\",type:\"element\"})},Qc=(e,r)=>{var t;let s=(t=e.elements)===null||t===void 0?void 0:t.find(o=>o.name===\"Types\");s?.elements!==void 0&&(s.elements=s.elements.filter(o=>{var u,a;return!(o.name===\"Override\"&&String((u=(a=o.attributes)===null||a===void 0?void 0:a.PartName)!==null&&u!==void 0?u:\"\").toLowerCase()===r.toLowerCase())}))},pt={DOCUMENT:\"file\",PARAGRAPH:\"paragraph\",DRAWING:\"drawing\"},eh=e=>{let r=parseInt(e.substring(3),10);return isNaN(r)?0:r},pa=e=>at(e,\"Relationships\").map(r=>{var t,s;return eh((t=(s=r.attributes)===null||s===void 0||(s=s.Id)===null||s===void 0?void 0:s.toString())!==null&&t!==void 0?t:\"\")}).reduce((r,t)=>Math.max(r,t),0)+1,Wn=(e,r,t,s,o)=>{let u=at(e,\"Relationships\");return u.push({attributes:{Id:`rId${r}`,Type:t,Target:s,TargetMode:o},name:\"Relationship\",type:\"element\"}),u},or=()=>({declaration:{attributes:{version:\"1.0\",encoding:\"UTF-8\",standalone:\"yes\"}},elements:[{type:\"element\",name:\"Relationships\",attributes:{xmlns:\"http://schemas.openxmlformats.org/package/2006/relationships\"},elements:[]}]});var th=new Map([[\"wp:inline\",\"wp:docPr\"],[\"wp:anchor\",\"wp:docPr\"],[\"wpg:graphicFrame\",\"wpg:cNvPr\"],[\"wpc:graphicFrame\",\"wpg:cNvPr\"]]),pn=e=>{var r;return((r=e.elements)!==null&&r!==void 0?r:[]).flatMap(t=>{var s;let o=t.name===void 0?void 0:th.get(t.name),u=o===void 0||(s=t.elements)===null||s===void 0?void 0:s.find(a=>a.name===o);return[...u?[{element:t,properties:u}]:[],...pn(t)]})},ma=e=>{var r,t;return[(r=e.attributes)===null||r===void 0?void 0:r.descr,(t=e.attributes)===null||t===void 0?void 0:t.title].flatMap(s=>s===void 0?[]:[String(s)])},Lt=e=>{let r=e.lastIndexOf(\"/\");return`${e.slice(0,r+1)}_rels/${e.slice(r+1)}.rels`},rh=e=>e.replace(/(^|\\/)_rels\\/([^/]*)\\.rels$/,\"$1$2\"),va=e=>e.slice(0,e.lastIndexOf(\"/\")+1),nh=(e,r)=>{let t=r.replace(/\\\\/g,\"/\");return(t.startsWith(\"/\")?t:`${va(e)}${t}`).split(\"/\").reduce((s,o)=>o===\"\"||o===\".\"?s:o===\"..\"?s.slice(0,-1):[...s,o],[]).join(\"/\")},ih=(e,r)=>{let t=va(e).split(\"/\").filter(Boolean),s=r.split(\"/\"),o=t.findIndex((a,n)=>n>=s.length-1||s[n]!==a),u=o===-1?t.length:o;return[...t.slice(u).map(()=>\"..\"),...s.slice(u)].join(\"/\")},jn=\"[Content_Types].xml\",ah=e=>{var r;if(!(!((r=e.elements)===null||r===void 0)&&r.some(s=>s.name===\"Relationships\"))){var t;e.elements=[...(t=e.elements)!==null&&t!==void 0?t:[],...or().elements]}return at(e,\"Relationships\")},sh=(e,r,t,s)=>{let o=new $t,u=p=>e.has(p)||r.has(p),a=p=>{if(u(p))return p;let x=(()=>{try{return decodeURI(p)}catch{return}})();if(x!==void 0&&u(x))return x;let m=p.toLowerCase();return[...e.keys(),...r.keys()].find(w=>w.toLowerCase()===m)},n=(p,x)=>{let m=e.get(Lt(p));return m===void 0?void 0:at(m,\"Relationships\").find(w=>{var b;return w.name===\"Relationship\"&&((b=w.attributes)===null||b===void 0?void 0:b.Id)===x})},c=(p,x)=>{var m,w;let b=(m=x.attributes)===null||m===void 0?void 0:m.Target;return((w=x.attributes)===null||w===void 0?void 0:w.TargetMode)===\"External\"||b===void 0?void 0:a(nh(p,String(b)))},g=p=>[...e].some(([x,m])=>x.endsWith(\".rels\")&&at(m,\"Relationships\").some(w=>c(rh(x),w)===p)),E=p=>{e.delete(p),r.delete(p),e.delete(Lt(p));let x=e.get(jn);x!==void 0&&Qc(x,`/${p}`)};return{getRelatedPart:(p,x)=>{let m=n(p.path,x),w=m===void 0?void 0:c(p.path,m);return w===void 0?void 0:{path:w,xml:e.get(w)}},replaceRelatedPart:(p,x,m)=>{let w=`word/${t.PackageParts.add(m)}`,{relationshipType:b}=m.options,T=ih(p.path,w),R=x===void 0?void 0:n(p.path,x);if(R===void 0){var S;let O=Lt(p.path),y=(S=e.get(O))!==null&&S!==void 0?S:or();e.set(O,y);let d=x??`rId${pa(y)}`;return ah(y).push({type:\"element\",name:\"Relationship\",attributes:{Id:d,Type:b,Target:T}}),d}let P=c(p.path,R);return R.attributes=he(he({},Object.fromEntries(Object.entries(R.attributes).filter(([O])=>O!==\"TargetMode\"))),{},{Type:b,Target:T}),P!==void 0&&P!==p.path&&P!==jn&&!P.endsWith(\".rels\")&&!g(P)&&E(P),String(R.attributes.Id)},format:p=>Tt((0,ye.default)(o.format(p,s))).elements[0]}},oh=({parts:e,binaryParts:r,file:t,patches:s,delimiters:o},u)=>{let a=s.map(([c,g])=>({placeholder:`${o.start}${c}${o.end}`,patch:g})),n=[...e].filter(([c])=>c.startsWith(\"word/\")&&!c.endsWith(\".rels\")).flatMap(([c,g])=>pn(g).flatMap(E=>{let p=ma(E.properties),x=a.filter(({placeholder:b})=>p.some(T=>T.includes(b)));if(x.length>1){var m,w;throw new Error(`The drawing \"${(m=(w=E.properties.attributes)===null||w===void 0?void 0:w.name)!==null&&m!==void 0?m:\"\"}\" in ${c} has the placeholders ${x.map(({placeholder:b})=>b).join(\" and \")} in its alt text. A drawing can only be patched once`)}return x.map(({placeholder:b,patch:T})=>({drawing:he(he({placeholder:b},E),{},{part:{path:c,xml:g}}),patch:T}))}));for(let{drawing:c,patch:g}of n)g.patch(c,sh(e,r,t,u(c.part.path)))},lh=class extends Error{constructor(e){super(`Token ${e} not found`),this.name=\"TokenNotFoundError\"}},uh=(e,r)=>{var t;for(let a=0;a<((t=e.elements)!==null&&t!==void 0?t:[]).length;a++){let n=e.elements[a];if(n.type===\"element\"&&n.name===\"w:r\"){var s;let c=((s=n.elements)!==null&&s!==void 0?s:[]).filter(g=>g.type===\"element\"&&g.name===\"w:t\");for(let g of c){var o,u;if(!((o=g.elements)===null||o===void 0)&&o[0]&&!((u=g.elements[0].text)===null||u===void 0)&&u.includes(r))return a}}}throw new lh(r)},ch=(e,r)=>{var t,s;let o=-1,u=(t=(s=e.elements)===null||s===void 0?void 0:s.map((a,n)=>{if(o!==-1)return a;if(a.type===\"element\"&&a.name===\"w:t\"){var c,g;let E=((c=(g=a.elements)===null||g===void 0||(g=g[0])===null||g===void 0?void 0:g.text)!==null&&c!==void 0?c:\"\").split(r),p=E.map(x=>he(he(he({},a),fa(a)),{},{elements:da(x)}));return E.length>1&&(o=n),p}else return a}).flat())!==null&&t!==void 0?t:[];return{left:he(he({},JSON.parse(JSON.stringify(e))),{},{elements:u.slice(0,o+1)}),right:he(he({},JSON.parse(JSON.stringify(e))),{},{elements:u.slice(o+1)})}},Nt={START:0,MIDDLE:1,END:2},hh=({paragraphElement:e,renderedParagraph:r,originalText:t,replacementText:s,fromIndex:o=0})=>{let u=r.text.indexOf(t,o),a=u+t.length-1,n=Nt.START;for(let c of r.runs)for(let{text:g,index:E,start:p,end:x}of c.parts)switch(n){case Nt.START:if(u>=p&&u<=x){let m=u-p,w=Math.min(a,x)-p;if(g.substring(m,w+1)===\"\")continue;let b=g.substring(0,m)+s+g.substring(w+1);Pr(e.elements[c.index].elements[E],b),n=Nt.MIDDLE;continue}break;case Nt.MIDDLE:if(a<=x){let m=g.substring(a-p+1);Pr(e.elements[c.index].elements[E],m);let w=e.elements[c.index].elements[E];e.elements[c.index].elements[E]=fa(w),n=Nt.END}else Pr(e.elements[c.index].elements[E],\"\")}return e},Pr=(e,r)=>(e.elements=da(r),e),wa=e=>{if(e.element.name!==\"w:p\")throw new Error(`Invalid node type: ${e.element.name}`);if(!e.element.elements)return{text:\"\",runs:[],index:-1,pathToParagraph:[]};let r=0,t=e.element.elements.map((s,o)=>({element:s,i:o})).filter(({element:s})=>s.name===\"w:r\").map(({element:s,i:o})=>{let u=dh(s,o,r);return r+=u.text.length,u}).filter(s=>!!s);return{text:t.reduce((s,o)=>s+o.text,\"\"),runs:t,index:e.index,pathToParagraph:ga(e)}},dh=(e,r,t)=>{if(!e.elements)return{text:\"\",parts:[],index:-1,start:t,end:t};let s=t,o=e.elements.map((u,a)=>{var n,c;if(u.name!==\"w:t\"||!u.elements||u.elements.length===0)return;let g=(n=(c=u.elements[0].text)===null||c===void 0?void 0:c.toString())!==null&&n!==void 0?n:\"\",E=s;return s+=g.length,{text:g,index:a,start:E,end:E+g.length-1}}).filter(u=>!!u).map(u=>u);return{text:o.reduce((u,a)=>u+a.text,\"\"),parts:o,index:r,start:t,end:o.length>0?o[o.length-1].end:t}},ga=e=>e.parent?[...ga(e.parent),e.index]:[e.index],Gn=e=>{var r,t;return(r=(t=e.element.elements)===null||t===void 0?void 0:t.map((s,o)=>({element:s,index:o,parent:e})))!==null&&r!==void 0?r:[]},ya=e=>{let r=[],t=[...Gn({element:e,index:0,parent:void 0})],s;for(;t.length>0;)s=t.shift(),s.element.name===\"w:p\"&&(r=[...r,wa(s)]),t.push(...Gn(s));return r},fh=(e,r)=>ya(e).filter(t=>t.text.includes(r)),ph=new $t,Dr=\"\\uFFFF\",mh=({json:e,patch:r,patchText:t,context:s,keepOriginalStyles:o=!0,recursive:u=!0})=>{let a=fh(e,t);if(a.length===0)return{element:e,didFindOccurrence:!1};let n=[...a].reverse(),c=r.type===pt.DOCUMENT?yh(n):n;for(let g of c)switch(r.type){case pt.DOCUMENT:{let E=bh(e,g.pathToParagraph),p=_h(g.pathToParagraph);E.elements.splice(p,1,...zn(r,s));break}case pt.PARAGRAPH:default:{let E=ba(e,g.pathToParagraph),p=g,x=0;do{let m=vh({paragraphElement:E,renderedParagraph:p,patchText:t,fromIndex:x,children:zn(r,s),keepOriginalStyles:o});p=wa({element:E,index:g.index,parent:void 0}),x=p.runs.filter(w=>w.index<m).reduce((w,b)=>w+b.text.length,0)}while(u&&p.text.includes(t,x));break}}return{element:e,didFindOccurrence:!0}},zn=(e,r)=>e.children.flatMap(t=>{var s;return(s=t.writtenAs)!==null&&s!==void 0?s:t}).map(t=>Tt((0,ye.default)(ph.format(t,r)))).map(t=>t.elements[0]),vh=({paragraphElement:e,renderedParagraph:r,patchText:t,fromIndex:s,children:o,keepOriginalStyles:u})=>{hh({paragraphElement:e,renderedParagraph:r,originalText:t,replacementText:Dr,fromIndex:s});let a=uh(e,Dr),n=e.elements[a],{left:c,right:g}=ch(n,Dr),E=n.elements.find(m=>m.type===\"element\"&&m.name===\"w:rPr\"),p=u&&E?o.map(m=>m.name===\"w:r\"?wh(m,E):m):o,x=E?he(he({},g),{},{elements:[E,...g.elements]}):g;return e.elements.splice(a,1,c,...p,x),a+1+p.length},wh=(e,r)=>{let t=ct(e).find(a=>a.type===\"element\"&&a.name===\"w:rPr\");if(!t)return he(he({},e),{},{elements:[r,...ct(e)]});let s=new Set(ct(t).map(a=>a.name)),o=[...ct(r).filter(a=>!s.has(a.name)),...ct(t)],u=he(he({},t),{},{elements:[...o].sort((a,n)=>$n(a)-$n(n))});return he(he({},e),{},{elements:ct(e).map(a=>a===t?u:a)})},Lr=[\"w:rStyle\",\"w:rFonts\",\"w:b\",\"w:bCs\",\"w:i\",\"w:iCs\",\"w:caps\",\"w:smallCaps\",\"w:strike\",\"w:dstrike\",\"w:outline\",\"w:shadow\",\"w:emboss\",\"w:imprint\",\"w:noProof\",\"w:snapToGrid\",\"w:vanish\",\"w:webHidden\",\"w:color\",\"w:spacing\",\"w:w\",\"w:kern\",\"w:position\",\"w:sz\",\"w:szCs\",\"w:highlight\",\"w:u\",\"w:effect\",\"w:bdr\",\"w:shd\",\"w:fitText\",\"w:vertAlign\",\"w:rtl\",\"w:cs\",\"w:em\",\"w:lang\",\"w:eastAsianLayout\",\"w:specVanish\",\"w:oMath\",\"w14:glow\",\"w14:shadow\",\"w14:reflection\",\"w14:textOutline\",\"w14:textFill\",\"w14:scene3d\",\"w14:props3d\",\"w14:ligatures\",\"w14:numForm\",\"w14:numSpacing\",\"w14:stylisticSets\",\"w14:cntxtAlts\"],$n=e=>{var r;if(e.name===\"w:rPrChange\")return Lr.length+1;let t=Lr.indexOf((r=e.name)!==null&&r!==void 0?r:\"\");return t===-1?Lr.length:t},ct=e=>{var r;return(r=e.elements)!==null&&r!==void 0?r:[]},gh=(e,r)=>e.length>r.length&&r.every((t,s)=>e[s]===t),yh=e=>e.filter(r=>!e.some(t=>gh(r.pathToParagraph,t.pathToParagraph))),ba=(e,r)=>{let t=e;for(let s=1;s<r.length;s++){let o=r[s];t=t.elements[o]}return t},bh=(e,r)=>ba(e,r.slice(0,r.length-1)),_h=e=>e[e.length-1],Eh=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\",xh=new Map([[\"dk1\",\"dark1\"],[\"lt1\",\"light1\"],[\"dk2\",\"dark2\"],[\"lt2\",\"light2\"],[\"accent1\",\"accent1\"],[\"accent2\",\"accent2\"],[\"accent3\",\"accent3\"],[\"accent4\",\"accent4\"],[\"accent5\",\"accent5\"],[\"accent6\",\"accent6\"],[\"hlink\",\"hyperlink\"],[\"folHlink\",\"followedHyperlink\"]]),lr=e=>{var r;return(r=e.name)===null||r===void 0?void 0:r.slice(e.name.indexOf(\":\")+1)},nr=(e,r)=>{var t;return e==null||(t=e.elements)===null||t===void 0?void 0:t.find(s=>lr(s)===r)},Th=e=>{var r;let t=(r=e.elements)===null||r===void 0?void 0:r.map(s=>{var o,u;return lr(s)===\"srgbClr\"?(o=s.attributes)===null||o===void 0?void 0:o.val:lr(s)===\"sysClr\"?(u=s.attributes)===null||u===void 0?void 0:u.lastClr:void 0}).find(s=>s!==void 0);return typeof t==\"string\"&&/^[0-9A-Fa-f]{6}$/.test(t)?t.toUpperCase():void 0},Sh=e=>e[0]===255&&e[1]===254||e[0]===254&&e[1]===255,Kn=(function(){var e=xt(function*(r,t){let s=r.file(t);if(s!==null)return Sh(yield s.async(\"uint8array\"))?void 0:Tt(yield s.async(\"text\"))});return function(t,s){return e.apply(this,arguments)}})(),Ah=(function(){var e=xt(function*(r){var t,s;let o=(t=nr(yield Kn(r,\"word/_rels/document.xml.rels\"),\"Relationships\"))===null||t===void 0||(t=t.elements)===null||t===void 0?void 0:t.find(a=>{var n;return((n=a.attributes)===null||n===void 0?void 0:n.Type)===Eh}),u=o==null||(s=o.attributes)===null||s===void 0?void 0:s.Target;return typeof u==\"string\"?Kn(r,u.startsWith(\"/\")?u.slice(1):`word/${u}`):void 0});return function(t){return e.apply(this,arguments)}})(),kh=(function(){var e=xt(function*(r){var t;let s=yield Ah(r);if(s===void 0)return;let o=nr(nr(nr(s,\"theme\"),\"themeElements\"),\"clrScheme\"),u=((t=o?.elements)!==null&&t!==void 0?t:[]).flatMap(a=>{var n;let c=xh.get((n=lr(a))!==null&&n!==void 0?n:\"\"),g=Th(a);return c&&g?[[c,g]]:[]});return nn(Object.fromEntries(u))});return function(t){return e.apply(this,arguments)}})(),Vn=new ha,Rh=new Uint8Array([255,254]),Ih=new Uint8Array([254,255]),qn=(e,r)=>{if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0},Bh=(function(){var e=xt(function*({outputType:r,data:t,patches:s,keepOriginalStyles:o,placeholderDelimiters:u={start:\"{{\",end:\"}}\"},recursive:a=!0}){let n=t instanceof nt.default?t:yield nt.default.loadAsync(t),c=new Map,g=yield kh(n),E=[],p={Media:new na,Theme:g&&{Colors:g},PackageParts:new ia({addOverride:(_,j)=>E.push({contentType:_,partName:j})},new Set(Object.keys(n.files).filter(_=>_.startsWith(\"word/\")).map(_=>_.slice(5))))},x=new Map,m=[],w=[],b=!1,T=new Map;if(!u?.start.trim()||!u?.end.trim())throw new Error(\"Both start and end delimiters must be non-empty strings.\");let{start:R,end:S}=u;for(let[_,j]of Object.entries(s))if(!(j?.type===pt.DRAWING?typeof j.patch==\"function\":Array.isArray(j?.children)))throw new Error(`Invalid patch \"${_}\". Expected { type: PatchType.PARAGRAPH or PatchType.DOCUMENT, children: [...] }, or a drawing patch such as ChartDataPatch from docx/charts`);for(let[_,j]of Object.entries(n.files)){let J=yield j.async(\"uint8array\"),C=J.slice(0,2);if(qn(C,Rh)||qn(C,Ih)){T.set(_,J);continue}if(!_.endsWith(\".xml\")&&!_.endsWith(\".rels\")){T.set(_,J);continue}let G=Tt(yield j.async(\"text\"));if(_===\"word/document.xml\"){var P;let A=(P=G.elements)===null||P===void 0?void 0:P.find(z=>z.name===\"w:document\");if(A&&A.attributes){for(let z of[\"mc\",\"wp\",\"r\",\"w15\",\"m\"])A.attributes[`xmlns:${z}`]=Gr[z];A.attributes[\"mc:Ignorable\"]=`${A.attributes[\"mc:Ignorable\"]||\"\"} w15`.trim()}}x.set(_,G)}let O=_=>({file:p,viewWrapper:{Relationships:{addRelationship:(j,J,C,G)=>{w.push({key:_,id:j,type:J,target:C,targetMode:G})}}},stack:[]});oh({parts:x,binaryParts:T,file:p,patches:Object.entries(s).flatMap(([_,j])=>j.type===pt.DRAWING?[[_,j]]:[]),delimiters:{start:R,end:S}},O);for(let[_,j]of[...x]){if(!_.startsWith(\"word/\")||_.endsWith(\".xml.rels\"))continue;let J=O(_);c.set(_,J);for(let[G,A]of Object.entries(s)){if(A.type===pt.DRAWING)continue;let z=`${R}${G}${S}`;mh({json:j,patch:he(he({},A),{},{children:A.children.map(Q=>{if(Q instanceof Ui){let q=new Mi(Q.options.children,Di());return w.push({key:_,id:q.linkId,type:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink\",target:Q.options.link,targetMode:Li.EXTERNAL}),q}else return Q})}),patchText:z,context:J,keepOriginalStyles:o,recursive:a})}let C=Vn.getMediaData(JSON.stringify(j),J.file.Media);C.length>0&&(b=!0,m.push({key:_,mediaDatas:C}))}for(let{key:_,mediaDatas:j}of m){var y;let J=Lt(_),C=(y=x.get(J))!==null&&y!==void 0?y:or();x.set(J,C);let G=pa(C),A=Vn.replace(JSON.stringify(x.get(_)),j,G);x.set(_,JSON.parse(A));for(let z=0;z<j.length;z++){let{fileName:Q}=j[z];Wn(C,G+z,\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\",`media/${Q}`)}}for(let{key:_,id:j,type:J,target:C,targetMode:G}of w){var d;let A=Lt(_),z=(d=x.get(A))!==null&&d!==void 0?d:or();x.set(A,z),Wn(z,j,J,C,G)}let N=dn(p,void 0);if(b||E.length>0){let _=x.get(\"[Content_Types].xml\");if(!_)throw new Error(\"Could not find content types file\");b&&(ut(_,\"image/png\",\"png\"),ut(_,\"image/jpeg\",\"jpeg\"),ut(_,\"image/jpeg\",\"jpg\"),ut(_,\"image/bmp\",\"bmp\"),ut(_,\"image/gif\",\"gif\"),ut(_,\"image/svg+xml\",\"svg\"));for(let{contentType:j,partName:J}of E)Jc(_,j,J)}let B=new nt.default;for(let[_,j]of x){let J=Ch(j);B.file(_,et(J))}for(let[_,j]of T)B.file(_,j);for(let{data:_,fileName:j}of p.Media.Array)B.file(`word/media/${j}`,_);for(let{path:_,data:j}of N)B.file(_,typeof j==\"string\"?et(j):j);return B.generateAsync({type:r,mimeType:\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",compression:\"DEFLATE\"})});return function(t){return e.apply(this,arguments)}})(),_a=e=>he(he({},e),e.elements===void 0?{}:{elements:e.elements.map(r=>r.type===\"text\"?he(he({},r),{},{text:String(r.text).replace(/&/g,\"&amp;\")}):_a(r))}),Ch=e=>(0,dr.js2xml)(_a(e),{attributeValueFn:r=>String(r).replace(/&(?!amp;|lt;|gt;|quot;|apos;)/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&apos;\")}),Mh=(function(){var e=xt(function*({data:r}){let t=r instanceof nt.default?r:yield nt.default.loadAsync(r),s=new Set;for(let[o,u]of Object.entries(t.files))if(!(!o.endsWith(\".xml\")&&!o.endsWith(\".rels\"))&&o.startsWith(\"word/\")&&!o.endsWith(\".xml.rels\")){let a=Tt(yield u.async(\"text\"));[...ya(a).map(n=>n.text),...pn(a).flatMap(({properties:n})=>ma(n))].forEach(n=>Nh(n).forEach(c=>s.add(c)))}return Array.from(s)});return function(t){return e.apply(this,arguments)}})(),Nh=e=>{var r;let t=new RegExp(\"(?<=\\\\{\\\\{).+?(?=\\\\}\\\\})\",\"gs\");return(r=e.match(t))!==null&&r!==void 0?r:[]};return Ca(Oh);})();\n;window.Bibliotecas=window.Bibliotecas||{};window.Bibliotecas[\"docx\"]=_bibliotecaMethods;})();\n",
  "vendor/docx/LICENSE": "===== docx =====\nThe MIT License (MIT)\n\nCopyright (c) 2016 Dolan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
  "vendor/docx/package.json": "{\n  \"name\": \"docx\",\n  \"version\": \"9.8.1\",\n  \"description\": \"Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.\",\n  \"type\": \"module\",\n  \"main\": \"dist/index.umd.cjs\",\n  \"module\": \"./dist/index.mjs\",\n  \"types\": \"./dist/index.d.ts\",\n  \"exports\": {\n    \".\": {\n      \"import\": {\n        \"types\": \"./dist/index.d.ts\",\n        \"default\": \"./dist/index.mjs\"\n      },\n      \"require\": {\n        \"types\": \"./dist/index.d.cts\",\n        \"default\": \"./dist/index.cjs\"\n      }\n    },\n    \"./shapes\": {\n      \"import\": {\n        \"types\": \"./dist/shapes.d.ts\",\n        \"default\": \"./dist/shapes.mjs\"\n      },\n      \"require\": {\n        \"types\": \"./dist/shapes.d.cts\",\n        \"default\": \"./dist/shapes.cjs\"\n      }\n    },\n    \"./watermarks\": {\n      \"import\": {\n        \"types\": \"./dist/watermarks.d.ts\",\n        \"default\": \"./dist/watermarks.mjs\"\n      },\n      \"require\": {\n        \"types\": \"./dist/watermarks.d.cts\",\n        \"default\": \"./dist/watermarks.cjs\"\n      }\n    },\n    \"./charts\": {\n      \"import\": {\n        \"types\": \"./dist/charts.d.ts\",\n        \"default\": \"./dist/charts.mjs\"\n      },\n      \"require\": {\n        \"types\": \"./dist/charts.d.cts\",\n        \"default\": \"./dist/charts.cjs\"\n      }\n    },\n    \"./math\": {\n      \"import\": {\n        \"types\": \"./dist/math.d.ts\",\n        \"default\": \"./dist/math.mjs\"\n      },\n      \"require\": {\n        \"types\": \"./dist/math.d.cts\",\n        \"default\": \"./dist/math.cjs\"\n      }\n    }\n  },\n  \"typesVersions\": {\n    \"*\": {\n      \"shapes\": [\n        \"./dist/shapes.d.ts\"\n      ],\n      \"watermarks\": [\n        \"./dist/watermarks.d.ts\"\n      ],\n      \"charts\": [\n        \"./dist/charts.d.ts\"\n      ],\n      \"math\": [\n        \"./dist/math.d.ts\"\n      ]\n    }\n  },\n  \"files\": [\n    \"dist\"\n  ],\n  \"scripts\": {\n    \"build\": \"tsc && vite build && vite build --config vite.entries.config.ts --mode shapes && vite build --config vite.entries.config.ts --mode watermarks && vite build --config vite.entries.config.ts --mode charts && vite build --config vite.entries.config.ts --mode math\",\n    \"test\": \"vitest --ui --coverage\",\n    \"test:ci\": \"vitest run --coverage\",\n    \"prepublishOnly\": \"npm run build --omit=dev\",\n    \"lint\": \"eslint --config eslint.config.ts\",\n    \"predemo\": \"npm run build\",\n    \"demo\": \"tsx ./demo/index.ts\",\n    \"typedoc\": \"typedoc src/index.ts src/shapes/index.ts src/watermarks/index.ts src/charts/index.ts src/math/index.ts --tsconfig tsconfig.typedoc.json\",\n    \"prettier\": \"prettier -l \\\"{src,scripts,demo,docs}/**/*.{ts,html,md}\\\"\",\n    \"prettier:fix\": \"npm run prettier -- --write\",\n    \"cspell\": \"cspell \\\"{src,demo,docs,scripts}/**/*.{ts,scss,html,md}\\\" && cspell \\\"./*.*\\\"\",\n    \"build.docs\": \"npm run build && mkdir -p docs/live-examples/lib && cp dist/*.iife.js dist/*.d.ts docs/live-examples/lib/\",\n    \"serve.docs\": \"cd docs && docsify serve\",\n    \"extract\": \"tsx scripts/extract-document.ts\",\n    \"check-api\": \"tsx scripts/check-api.ts\",\n    \"run-ts\": \"tsx\"\n  },\n  \"pre-commit\": [\n    \"prettier\",\n    \"lint\"\n  ],\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/dolanmiu/docx.git\"\n  },\n  \"keywords\": [\n    \"docx\",\n    \"office\",\n    \"word\",\n    \"generate\",\n    \"creator\",\n    \"create\",\n    \"document\",\n    \"doc\",\n    \"officegen\",\n    \"clippy\"\n  ],\n  \"dependencies\": {\n    \"@types/node\": \"^26.6.2\",\n    \"hash.js\": \"^1.1.7\",\n    \"jszip\": \"^3.10.1\",\n    \"nanoid\": \"^6.0.1\",\n    \"xml\": \"^1.0.1\",\n    \"xml-js\": \"^1.6.8\"\n  },\n  \"author\": \"Dolan Miu\",\n  \"license\": \"MIT\",\n  \"bugs\": {\n    \"url\": \"https://github.com/dolanmiu/docx/issues\"\n  },\n  \"homepage\": \"https://docx.js.org\",\n  \"devDependencies\": {\n    \"@eslint/js\": \"^10.0.1\",\n    \"@microsoft/api-extractor\": \"^7.58.7\",\n    \"@types/pngjs\": \"^6.0.5\",\n    \"@types/unzipper\": \"^0.10.4\",\n    \"@types/xml\": \"^1.0.8\",\n    \"@typescript-eslint/eslint-plugin\": \"^8.8.1\",\n    \"@typescript-eslint/parser\": \"^8.8.1\",\n    \"@vitest/coverage-v8\": \"^5.0.2\",\n    \"@vitest/ui\": \"^5.0.2\",\n    \"cspell\": \"^10.0.0\",\n    \"docsify-cli\": \"^5.0.0\",\n    \"eslint\": \"^10.11.0\",\n    \"eslint-import-resolver-typescript\": \"^4.3.2\",\n    \"eslint-plugin-functional\": \"^10.0.1\",\n    \"eslint-plugin-import-x\": \"^4.17.1\",\n    \"eslint-plugin-jsdoc\": \"^64.5.4\",\n    \"eslint-plugin-no-null\": \"^1.0.2\",\n    \"eslint-plugin-prefer-arrow\": \"^1.2.3\",\n    \"eslint-plugin-unicorn\": \"^76.0.0\",\n    \"execa\": \"^10.0.1\",\n    \"glob\": \"^13.0.3\",\n    \"globals\": \"^17.12.0\",\n    \"inquirer\": \"^14.0.0\",\n    \"jiti\": \"^2.3.3\",\n    \"jsdom\": \"^30.1.0\",\n    \"pixelmatch\": \"^7.2.0\",\n    \"pngjs\": \"^7.0.0\",\n    \"pre-commit\": \"^2.0.0\",\n    \"prettier\": \"^3.1.1\",\n    \"tsconfig-paths\": \"^4.0.0\",\n    \"tsx\": \"^4.7.0\",\n    \"typedoc\": \"^0.28.2\",\n    \"typescript\": \"5.9.3\",\n    \"typescript-eslint\": \"^8.10.0\",\n    \"unzipper\": \"^0.12.3\",\n    \"vite\": \"^8.0.0\",\n    \"vite-plugin-dts\": \"^5.0.1\",\n    \"vite-plugin-node-polyfills\": \"^0.28.0\",\n    \"vitest\": \"^5.0.2\"\n  },\n  \"engines\": {\n    \"node\": \">=10\"\n  }\n}\n",
  "vendor/katex/erlen-bundle.js": "(function(){var _bibliotecaMethods=(()=>{var _e=Object.defineProperty;var Fa=Object.getOwnPropertyDescriptor;var Ha=Object.getOwnPropertyNames;var La=Object.prototype.hasOwnProperty;var Ga=(r,e)=>{for(var t in e)_e(r,t,{get:e[t],enumerable:!0})},Pa=(r,e,t,a)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let n of Ha(e))!La.call(r,n)&&n!==t&&_e(r,n,{get:()=>e[n],enumerable:!(a=Fa(e,n))||a.enumerable});return r};var Ua=r=>Pa(_e({},\"__esModule\",{value:!0}),r);var $4={};Ga($4,{renderToString:()=>Ta});var z=class r extends Error{constructor(e,t){var a=\"KaTeX parse error: \"+e,n,s,u=t&&t.loc;if(u&&u.start<=u.end){var h=u.lexer.input;n=u.start,s=u.end,n===h.length?a+=\" at end of input: \":a+=\" at position \"+(n+1)+\": \";var c=h.slice(n,s).replace(/[^]/g,\"$&\\u0332\"),d;n>15?d=\"\\u2026\"+h.slice(n-15,n):d=h.slice(0,n);var p;s+15<h.length?p=h.slice(s,s+15)+\"\\u2026\":p=h.slice(s),a+=d+c+p}super(a),this.name=\"ParseError\",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,r.prototype),this.position=n,n!=null&&s!=null&&(this.length=s-n),this.rawMessage=e}},Va=/([A-Z])/g,ja=r=>r.replace(Va,\"-$1\").toLowerCase(),Xa={\"&\":\"&amp;\",\">\":\"&gt;\",\"<\":\"&lt;\",'\"':\"&quot;\",\"'\":\"&#x27;\"},Ya=/[&><\"']/g,s0=r=>String(r).replace(Ya,e=>Xa[e]),Ne=r=>r.type===\"ordgroup\"||r.type===\"color\"?r.body.length===1?Ne(r.body[0]):r:r.type===\"font\"?Ne(r.body):r,$a=new Set([\"mathord\",\"textord\",\"atom\"]),N0=r=>$a.has(Ne(r).type),Wa=r=>{var e=/^[\\x00-\\x20]*([^\\\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(r);return e?e[2]!==\":\"||!/^[a-zA-Z][a-zA-Z0-9+\\-.]*$/.test(e[1])?null:e[1].toLowerCase():\"_relative\"},tr={displayMode:{type:\"boolean\",description:\"Render math in display mode, which puts the math in display style (so \\\\int and \\\\sum are large, for example), and centers the math on the page on its own line.\",cli:\"-d, --display-mode\"},output:{type:{enum:[\"htmlAndMathml\",\"html\",\"mathml\"]},description:\"Determines the markup language of the output.\",cli:\"-F, --format <type>\"},leqno:{type:\"boolean\",description:\"Render display math in leqno style (left-justified tags).\"},fleqn:{type:\"boolean\",description:\"Render display math flush left.\"},throwOnError:{type:\"boolean\",default:!0,cli:\"-t, --no-throw-on-error\",cliDescription:\"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.\"},errorColor:{type:\"string\",default:\"#cc0000\",cli:\"-c, --error-color <color>\",cliDescription:\"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.\",cliProcessor:r=>\"#\"+r},macros:{type:\"object\",cli:\"-m, --macro <def>\",cliDescription:\"Define custom macro of the form '\\\\foo:expansion' (use multiple -m arguments for multiple macros).\",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:\"number\",description:\"Specifies a minimum thickness, in ems, for fraction lines, `\\\\sqrt` top lines, `{array}` vertical lines, `\\\\hline`, `\\\\hdashline`, `\\\\underline`, `\\\\overline`, and the borders of `\\\\fbox`, `\\\\boxed`, and `\\\\fcolorbox`.\",processor:r=>Math.max(0,r),cli:\"--min-rule-thickness <size>\",cliProcessor:parseFloat},colorIsTextColor:{type:\"boolean\",description:\"Makes \\\\color behave like LaTeX's 2-argument \\\\textcolor, instead of LaTeX's one-argument \\\\color mode change.\",cli:\"-b, --color-is-text-color\"},strict:{type:[{enum:[\"warn\",\"ignore\",\"error\"]},\"boolean\",\"function\"],description:\"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.\",cli:\"-S, --strict\",cliDefault:!1},trust:{type:[\"boolean\",\"function\"],description:\"Trust the input, enabling all HTML features such as \\\\url.\",cli:\"-T, --trust\"},maxSize:{type:\"number\",default:1/0,description:\"If non-zero, all user-specified sizes, e.g. in \\\\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large\",processor:r=>Math.max(0,r),cli:\"-s, --max-size <n>\",cliProcessor:parseInt},maxExpand:{type:\"number\",default:1e3,description:\"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.\",processor:r=>Math.max(0,r),cli:\"-e, --max-expand <n>\",cliProcessor:r=>r===\"Infinity\"?1/0:parseInt(r)},globalGroup:{type:\"boolean\",cli:!1}};function Za(r){if(typeof r!=\"string\")return r.enum[0];switch(r){case\"boolean\":return!1;case\"string\":return\"\";case\"number\":return 0;case\"object\":return{};default:throw new Error(\"Unexpected schema type; settings must declare an explicit default.\")}}function Ka(r){if(Object.prototype.hasOwnProperty.call(r,\"default\")&&r.default!==void 0)return r.default;var e=Array.isArray(r.type)?r.type[0]:r.type;return Za(e)}function Ja(r,e,t,a){var n=Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0,s=Object.prototype.hasOwnProperty.call(a,\"processor\")?a.processor:void 0;r[e]=n!==void 0?s?s(n):n:Ka(a)}var dt=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t of Object.keys(tr)){var a=tr[t];a&&Ja(this,t,e,a)}}reportNonstrict(e,t,a){var n=this.strict;if(typeof n==\"function\"&&(n=n(e,t,a)),!(!n||n===\"ignore\")){if(n===!0||n===\"error\")throw new z(\"LaTeX-incompatible input and strict mode is set to 'error': \"+(t+\" [\"+e+\"]\"),a);n===\"warn\"?typeof console<\"u\"&&console.warn(\"LaTeX-incompatible input and strict mode is set to 'warn': \"+(t+\" [\"+e+\"]\")):typeof console<\"u\"&&console.warn(\"LaTeX-incompatible input and strict mode is set to \"+(\"unrecognized '\"+n+\"': \"+t+\" [\"+e+\"]\"))}}useStrictBehavior(e,t,a){var n=this.strict;if(typeof n==\"function\")try{n=n(e,t,a)}catch{n=\"error\"}return!n||n===\"ignore\"?!1:n===!0||n===\"error\"?!0:n===\"warn\"?(typeof console<\"u\"&&console.warn(\"LaTeX-incompatible input and strict mode is set to 'warn': \"+(t+\" [\"+e+\"]\")),!1):(typeof console<\"u\"&&console.warn(\"LaTeX-incompatible input and strict mode is set to \"+(\"unrecognized '\"+n+\"': \"+t+\" [\"+e+\"]\")),!1)}isTrusted(e){if(\"url\"in e&&e.url&&!e.protocol){var t=Wa(e.url);if(t==null)return!1;e.protocol=t}var a=typeof this.trust==\"function\"?this.trust(e):this.trust;return!!a}},w0=class{constructor(e,t,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=a}sup(){return k0[Qa[this.id]]}sub(){return k0[_a[this.id]]}fracNum(){return k0[e1[this.id]]}fracDen(){return k0[t1[this.id]]}cramp(){return k0[r1[this.id]]}text(){return k0[a1[this.id]]}isTight(){return this.size>=2}},Nt=0,Ie=1,te=2,q0=3,me=4,p0=5,re=6,u0=7,k0=[new w0(Nt,0,!1),new w0(Ie,0,!0),new w0(te,1,!1),new w0(q0,1,!0),new w0(me,2,!1),new w0(p0,2,!0),new w0(re,3,!1),new w0(u0,3,!0)],Qa=[me,p0,me,p0,re,u0,re,u0],_a=[p0,p0,p0,p0,u0,u0,u0,u0],e1=[te,q0,me,p0,re,u0,re,u0],t1=[q0,q0,p0,p0,u0,u0,u0,u0],r1=[Ie,Ie,q0,q0,p0,p0,u0,u0],a1=[Nt,Ie,te,q0,te,q0,te,q0],I={DISPLAY:k0[Nt],TEXT:k0[te],SCRIPT:k0[me],SCRIPTSCRIPT:k0[re]},ft=[{name:\"latin\",blocks:[[256,591],[768,879]]},{name:\"cyrillic\",blocks:[[1024,1279]]},{name:\"armenian\",blocks:[[1328,1423]]},{name:\"brahmic\",blocks:[[2304,4255]]},{name:\"georgian\",blocks:[[4256,4351]]},{name:\"cjk\",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:\"hangul\",blocks:[[44032,55215]]}];function n1(r){for(var e=0;e<ft.length;e++)for(var t=ft[e],a=0;a<t.blocks.length;a++){var n=t.blocks[a];if(r>=n[0]&&r<=n[1])return t.name}return null}var Re=[];ft.forEach(r=>r.blocks.forEach(e=>Re.push(...e)));function Gr(r){for(var e=0;e<Re.length;e+=2)if(r>=Re[e]&&r<=Re[e+1])return!0;return!1}var a0=r=>r+\" \"+r,ee=80,i1=function(e,t){return\"M95,\"+(622+e+t)+`\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl`+e/2.075+\" -\"+e+`\nc5.3,-9.3,12,-14,20,-14\nH400000v`+(40+e)+`H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM`+(834+e)+\" \"+t+\"h400000v\"+(40+e)+\"h-400000z\"},s1=function(e,t){return\"M263,\"+(601+e+t)+`c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl`+e/2.084+\" -\"+e+`\nc4.7,-7.3,11,-11,19,-11\nH40000v`+(40+e)+`H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM`+(1001+e)+\" \"+t+\"h400000v\"+(40+e)+\"h-400000z\"},l1=function(e,t){return\"M983 \"+(10+e+t)+`\nl`+e/3.13+\" -\"+e+`\nc4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM`+(1001+e)+\" \"+t+\"h400000v\"+(40+e)+\"h-400000z\"},u1=function(e,t){return\"M424,\"+(2398+e+t)+`\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl`+e/4.223+\" -\"+e+`c4,-6.7,10,-10,18,-10 H400000\nv`+(40+e)+`H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M`+(1001+e)+\" \"+t+`\nh400000v`+(40+e)+\"h-400000z\"},o1=function(e,t){return\"M473,\"+(2713+e+t)+`\nc339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+\" -\"+e+`\nc3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM`+(1001+e)+\" \"+t+\"h400000v\"+(40+e)+\"H1017.7z\"},h1=function(e){var t=e/2;return\"M400000 \"+e+\" H0 L\"+t+\" 0 l65 45 L145 \"+(e-80)+\" H400000z\"},m1=function(e,t,a){var n=a-54-t-e;return\"M702 \"+(e+t)+\"H400000\"+(40+e)+`\nH742v`+n+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 `+t+\"H400000v\"+(40+e)+\"H742z\"},c1=function(e,t,a){t=1e3*t;var n=\"\";switch(e){case\"sqrtMain\":n=i1(t,ee);break;case\"sqrtSize1\":n=s1(t,ee);break;case\"sqrtSize2\":n=l1(t,ee);break;case\"sqrtSize3\":n=u1(t,ee);break;case\"sqrtSize4\":n=o1(t,ee);break;case\"sqrtTall\":n=m1(t,ee,a)}return n},d1=function(e,t){switch(e){case\"\\u239C\":return a0(\"M291 0 H417 V\"+t+\" H291z\");case\"\\u2223\":return a0(\"M145 0 H188 V\"+t+\" H145z\");case\"\\u2225\":return a0(\"M145 0 H188 V\"+t+\" H145z\")+a0(\"M367 0 H410 V\"+t+\" H367z\");case\"\\u239F\":return a0(\"M457 0 H583 V\"+t+\" H457z\");case\"\\u23A2\":return a0(\"M319 0 H403 V\"+t+\" H319z\");case\"\\u23A5\":return a0(\"M263 0 H347 V\"+t+\" H263z\");case\"\\u23AA\":return a0(\"M384 0 H504 V\"+t+\" H384z\");case\"\\u23D0\":return a0(\"M312 0 H355 V\"+t+\" H312z\");case\"\\u2016\":return a0(\"M257 0 H300 V\"+t+\" H257z\")+a0(\"M478 0 H521 V\"+t+\" H478z\");default:return\"\"}},rr={doubleleftarrow:`M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z`,leftgroupunder:`M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:a0(\"M40 281 V428 H0 V94 H40 V241 H400000 v40z\"),leftbracketunder:a0(\"M0 0 h120 V290 H399995 v120 H0z\"),leftbracketover:a0(\"M0 440 h120 V150 H399995 v-120 H0z\"),leftmapsto:a0(\"M40 281 V448H0V74H40V241H400000v40z\"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:a0(\"M0 50 h400000 v40H0z m0 194h40000v40H0z\"),midbrace:`M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:a0(\"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\"),rightbracketunder:a0(\"M399995 0 h-120 V290 H0 v120 H400000z\"),rightbracketover:a0(\"M399995 440 h-120 V150 H0 v-120 H399995z\"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},f1=function(e,t){switch(e){case\"lbrack\":return\"M403 1759 V84 H666 V0 H319 V1759 v\"+t+` v1759 v84 h347 v-84\nH403z M403 1759 V0 H319 V1759 v`+t+\" v1759 v84 h84z\";case\"rbrack\":return\"M347 1759 V0 H0 V84 H263 V1759 v\"+t+` v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v`+t+\" v1759 h84z\";case\"vert\":return\"M145 15 v585 v\"+t+` v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+\" v585 h43z\";case\"doublevert\":return\"M145 15 v585 v\"+t+` v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z\nM367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+\" v585 h43z\";case\"lfloor\":return\"M319 602 V0 H403 V602 v\"+t+` v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v`+t+\" v1715 H319z\";case\"rfloor\":return\"M319 602 V0 H403 V602 v\"+t+` v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v`+t+\" v1715 H319z\";case\"lceil\":return\"M403 1759 V84 H666 V0 H319 V1759 v\"+t+` v602 h84z\nM403 1759 V0 H319 V1759 v`+t+\" v602 h84z\";case\"rceil\":return\"M347 1759 V0 H0 V84 H263 V1759 v\"+t+` v602 h84z\nM347 1759 V0 h-84 V1759 v`+t+\" v602 h84z\";case\"lparen\":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case\"rparen\":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error(\"Unknown stretchy delimiter.\")}};function v1(r){return\"toText\"in r}var P0=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=\"\",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(v1(e))return e.toText();throw new Error(\"Expected MathDomNode with toText, got \"+e.constructor.name)}).join(\"\")}},vt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},p1={ex:!0,em:!0,mu:!0},Pr=function(e){return typeof e!=\"string\"&&(e=e.unit),e in vt||e in p1||e===\"ex\"},Q=function(e,t){var a;if(e.unit in vt)a=vt[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===\"mu\")a=t.fontMetrics().cssEmPerMu;else{var n;if(t.style.isTight()?n=t.havingStyle(t.style.text()):n=t,e.unit===\"ex\")a=n.fontMetrics().xHeight;else if(e.unit===\"em\")a=n.fontMetrics().quad;else throw new z(\"Invalid unit: '\"+e.unit+\"'\");n!==t&&(a*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*a,t.maxSize)},A=function(e){return+e.toFixed(4)+\"em\"},U0=function(e){return e.filter(t=>t).join(\" \")},Rt=function(e){var t=\"\";for(var a of Object.keys(e)){var n=e[a];n!==void 0&&(t+=ja(a)+\":\"+n+\";\")}return t},Ur=function(e,t,a){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},t){t.style.isTight()&&this.classes.push(\"mtight\");var n=t.getColor();n&&(this.style.color=n)}},Vr=function(e){var t=document.createElement(e);t.className=U0(this.classes),Object.assign(t.style,this.style);for(var a of Object.keys(this.attributes))t.setAttribute(a,this.attributes[a]);for(var n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t},g1=/[\\s\"'>/=\\x00-\\x1f]/,jr=function(e){var t=\"<\"+e;this.classes.length&&(t+=' class=\"'+s0(U0(this.classes))+'\"');var a=Rt(this.style);a&&(t+=' style=\"'+s0(a)+'\"');for(var n of Object.keys(this.attributes)){if(g1.test(n))throw new z(\"Invalid attribute name '\"+n+\"'\");t+=\" \"+n+'=\"'+s0(this.attributes[n])+'\"'}t+=\">\";for(var s=0;s<this.children.length;s++)t+=this.children[s].toMarkup();return t+=\"</\"+e+\">\",t},W0=class{constructor(e,t,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,Ur.call(this,e,a,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Vr.call(this,\"span\")}toMarkup(){return jr.call(this,\"span\")}},ce=class{constructor(e,t,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Ur.call(this,t,n),this.children=a||[],this.setAttribute(\"href\",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Vr.call(this,\"a\")}toMarkup(){return jr.call(this,\"a\")}},pt=class{constructor(e,t,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[\"mord\"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=a}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(\"img\");return e.src=this.src,e.alt=this.alt,e.className=\"mord\",Object.assign(e.style,this.style),e}toMarkup(){var e='<img src=\"'+s0(this.src)+'\"'+(' alt=\"'+s0(this.alt)+'\"'),t=Rt(this.style);return t&&(e+=' style=\"'+s0(t)+'\"'),e+=\"'/>\",e}},b1={\\u00EE:\"\\u0131\\u0302\",\\u00EF:\"\\u0131\\u0308\",\\u00ED:\"\\u0131\\u0301\",\\u00EC:\"\\u0131\\u0300\"},m0=class{constructor(e,t,a,n,s,u,h,c){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=a||0,this.italic=n||0,this.skew=s||0,this.width=u||0,this.classes=h||[],this.style=c||{},this.maxFontSize=0;var d=n1(this.text.charCodeAt(0));d&&this.classes.push(d+\"_fallback\"),/[îïíì]/.test(this.text)&&(this.text=b1[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(\"span\"),t.style.marginRight=A(this.italic)),this.classes.length>0&&(t=t||document.createElement(\"span\"),t.className=U0(this.classes)),Object.keys(this.style).length>0&&(t=t||document.createElement(\"span\"),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=\"<span\";this.classes.length&&(e=!0,t+=' class=\"',t+=s0(U0(this.classes)),t+='\"');var a=\"\";this.italic>0&&(a+=\"margin-right:\"+A(this.italic)+\";\"),a+=Rt(this.style),a&&(e=!0,t+=' style=\"'+s0(a)+'\"');var n=s0(this.text);return e?(t+=\">\",t+=n,t+=\"</span>\",t):n}},S0=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=\"http://www.w3.org/2000/svg\",t=document.createElementNS(e,\"svg\");for(var a of Object.keys(this.attributes))t.setAttribute(a,this.attributes[a]);for(var n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){var e='<svg xmlns=\"http://www.w3.org/2000/svg\"';for(var t of Object.keys(this.attributes))e+=\" \"+t+'=\"'+s0(this.attributes[t])+'\"';e+=\">\";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+=\"</svg>\",e}},E0=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=\"http://www.w3.org/2000/svg\",t=document.createElementNS(e,\"path\");return this.alternate?t.setAttribute(\"d\",this.alternate):t.setAttribute(\"d\",rr[this.pathName]),t}toMarkup(){return this.alternate?'<path d=\"'+s0(this.alternate)+'\"/>':'<path d=\"'+s0(rr[this.pathName])+'\"/>'}},Oe=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=\"http://www.w3.org/2000/svg\",t=document.createElementNS(e,\"line\");for(var a of Object.keys(this.attributes))t.setAttribute(a,this.attributes[a]);return t}toMarkup(){var e=\"<line\";for(var t of Object.keys(this.attributes))e+=\" \"+t+'=\"'+s0(this.attributes[t])+'\"';return e+=\"/>\",e}};function y1(r){if(r instanceof m0)return r;throw new Error(\"Expected symbolNode but got \"+String(r)+\".\")}function x1(r){if(r instanceof W0)return r;throw new Error(\"Expected span<HtmlDomNode> but got \"+String(r)+\".\")}var w1=r=>r instanceof W0||r instanceof ce||r instanceof P0,D0={\"AMS-Regular\":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},\"Caligraphic-Regular\":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},\"Fraktur-Regular\":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},\"Main-Bold\":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},\"Main-BoldItalic\":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},\"Main-Italic\":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},\"Main-Regular\":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},\"Math-BoldItalic\":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},\"Math-Italic\":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},\"SansSerif-Bold\":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},\"SansSerif-Italic\":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},\"SansSerif-Regular\":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},\"Script-Regular\":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},\"Size1-Regular\":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},\"Size2-Regular\":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},\"Size3-Regular\":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},\"Size4-Regular\":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},\"Typewriter-Regular\":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},et={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},ar={\\u00C5:\"A\",\\u00D0:\"D\",\\u00DE:\"o\",\\u00E5:\"a\",\\u00F0:\"d\",\\u00FE:\"o\",\\u0410:\"A\",\\u0411:\"B\",\\u0412:\"B\",\\u0413:\"F\",\\u0414:\"A\",\\u0415:\"E\",\\u0416:\"K\",\\u0417:\"3\",\\u0418:\"N\",\\u0419:\"N\",\\u041A:\"K\",\\u041B:\"N\",\\u041C:\"M\",\\u041D:\"H\",\\u041E:\"O\",\\u041F:\"N\",\\u0420:\"P\",\\u0421:\"C\",\\u0422:\"T\",\\u0423:\"y\",\\u0424:\"O\",\\u0425:\"X\",\\u0426:\"U\",\\u0427:\"h\",\\u0428:\"W\",\\u0429:\"W\",\\u042A:\"B\",\\u042B:\"X\",\\u042C:\"B\",\\u042D:\"3\",\\u042E:\"X\",\\u042F:\"R\",\\u0430:\"a\",\\u0431:\"b\",\\u0432:\"a\",\\u0433:\"r\",\\u0434:\"y\",\\u0435:\"e\",\\u0436:\"m\",\\u0437:\"e\",\\u0438:\"n\",\\u0439:\"n\",\\u043A:\"n\",\\u043B:\"n\",\\u043C:\"m\",\\u043D:\"n\",\\u043E:\"o\",\\u043F:\"n\",\\u0440:\"p\",\\u0441:\"c\",\\u0442:\"o\",\\u0443:\"y\",\\u0444:\"b\",\\u0445:\"x\",\\u0446:\"n\",\\u0447:\"n\",\\u0448:\"w\",\\u0449:\"w\",\\u044A:\"a\",\\u044B:\"m\",\\u044C:\"a\",\\u044D:\"e\",\\u044E:\"m\",\\u044F:\"r\"};function It(r,e,t){if(!D0[e])throw new Error(\"Font metrics not found for font: \"+e+\".\");var a=r.charCodeAt(0),n=D0[e][a];if(!n&&r[0]in ar&&(a=ar[r[0]].charCodeAt(0),n=D0[e][a]),!n&&t===\"text\"&&Gr(a)&&(n=D0[e][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var tt={};function k1(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!tt[e]){var t=tt[e]={cssEmPerMu:et.quad[e]/18};for(var a of Object.keys(et))t[a]=et[a][e]}return tt[e]}var $={math:{},text:{}};function i(r,e,t,a,n,s){$[r][n]={font:e,group:t,replace:a},s&&a&&($[r][a]=$[r][n])}var l=\"math\",w=\"text\",o=\"main\",f=\"ams\",W=\"accent-token\",D=\"bin\",o0=\"close\",ie=\"inner\",N=\"mathord\",t0=\"op-token\",f0=\"open\",ge=\"punct\",v=\"rel\",R0=\"spacing\",g=\"textord\";i(l,o,v,\"\\u2261\",\"\\\\equiv\",!0);i(l,o,v,\"\\u227A\",\"\\\\prec\",!0);i(l,o,v,\"\\u227B\",\"\\\\succ\",!0);i(l,o,v,\"\\u223C\",\"\\\\sim\",!0);i(l,o,v,\"\\u22A5\",\"\\\\perp\");i(l,o,v,\"\\u2AAF\",\"\\\\preceq\",!0);i(l,o,v,\"\\u2AB0\",\"\\\\succeq\",!0);i(l,o,v,\"\\u2243\",\"\\\\simeq\",!0);i(l,o,v,\"\\u2223\",\"\\\\mid\",!0);i(l,o,v,\"\\u226A\",\"\\\\ll\",!0);i(l,o,v,\"\\u226B\",\"\\\\gg\",!0);i(l,o,v,\"\\u224D\",\"\\\\asymp\",!0);i(l,o,v,\"\\u2225\",\"\\\\parallel\");i(l,o,v,\"\\u22C8\",\"\\\\bowtie\",!0);i(l,o,v,\"\\u2323\",\"\\\\smile\",!0);i(l,o,v,\"\\u2291\",\"\\\\sqsubseteq\",!0);i(l,o,v,\"\\u2292\",\"\\\\sqsupseteq\",!0);i(l,o,v,\"\\u2250\",\"\\\\doteq\",!0);i(l,o,v,\"\\u2322\",\"\\\\frown\",!0);i(l,o,v,\"\\u220B\",\"\\\\ni\",!0);i(l,o,v,\"\\u221D\",\"\\\\propto\",!0);i(l,o,v,\"\\u22A2\",\"\\\\vdash\",!0);i(l,o,v,\"\\u22A3\",\"\\\\dashv\",!0);i(l,o,v,\"\\u220B\",\"\\\\owns\");i(l,o,ge,\".\",\"\\\\ldotp\");i(l,o,ge,\"\\u22C5\",\"\\\\cdotp\");i(l,o,ge,\"\\u22C5\",\"\\xB7\");i(w,o,g,\"\\u22C5\",\"\\xB7\");i(l,o,g,\"#\",\"\\\\#\");i(w,o,g,\"#\",\"\\\\#\");i(l,o,g,\"&\",\"\\\\&\");i(w,o,g,\"&\",\"\\\\&\");i(l,o,g,\"\\u2135\",\"\\\\aleph\",!0);i(l,o,g,\"\\u2200\",\"\\\\forall\",!0);i(l,o,g,\"\\u210F\",\"\\\\hbar\",!0);i(l,o,g,\"\\u2203\",\"\\\\exists\",!0);i(l,o,g,\"\\u2207\",\"\\\\nabla\",!0);i(l,o,g,\"\\u266D\",\"\\\\flat\",!0);i(l,o,g,\"\\u2113\",\"\\\\ell\",!0);i(l,o,g,\"\\u266E\",\"\\\\natural\",!0);i(l,o,g,\"\\u2663\",\"\\\\clubsuit\",!0);i(l,o,g,\"\\u2118\",\"\\\\wp\",!0);i(l,o,g,\"\\u266F\",\"\\\\sharp\",!0);i(l,o,g,\"\\u2662\",\"\\\\diamondsuit\",!0);i(l,o,g,\"\\u211C\",\"\\\\Re\",!0);i(l,o,g,\"\\u2661\",\"\\\\heartsuit\",!0);i(l,o,g,\"\\u2111\",\"\\\\Im\",!0);i(l,o,g,\"\\u2660\",\"\\\\spadesuit\",!0);i(l,o,g,\"\\xA7\",\"\\\\S\",!0);i(w,o,g,\"\\xA7\",\"\\\\S\");i(l,o,g,\"\\xB6\",\"\\\\P\",!0);i(w,o,g,\"\\xB6\",\"\\\\P\");i(l,o,g,\"\\u2020\",\"\\\\dag\");i(w,o,g,\"\\u2020\",\"\\\\dag\");i(w,o,g,\"\\u2020\",\"\\\\textdagger\");i(l,o,g,\"\\u2021\",\"\\\\ddag\");i(w,o,g,\"\\u2021\",\"\\\\ddag\");i(w,o,g,\"\\u2021\",\"\\\\textdaggerdbl\");i(l,o,o0,\"\\u23B1\",\"\\\\rmoustache\",!0);i(l,o,f0,\"\\u23B0\",\"\\\\lmoustache\",!0);i(l,o,o0,\"\\u27EF\",\"\\\\rgroup\",!0);i(l,o,f0,\"\\u27EE\",\"\\\\lgroup\",!0);i(l,o,D,\"\\u2213\",\"\\\\mp\",!0);i(l,o,D,\"\\u2296\",\"\\\\ominus\",!0);i(l,o,D,\"\\u228E\",\"\\\\uplus\",!0);i(l,o,D,\"\\u2293\",\"\\\\sqcap\",!0);i(l,o,D,\"\\u2217\",\"\\\\ast\");i(l,o,D,\"\\u2294\",\"\\\\sqcup\",!0);i(l,o,D,\"\\u25EF\",\"\\\\bigcirc\",!0);i(l,o,D,\"\\u2219\",\"\\\\bullet\",!0);i(l,o,D,\"\\u2021\",\"\\\\ddagger\");i(l,o,D,\"\\u2240\",\"\\\\wr\",!0);i(l,o,D,\"\\u2A3F\",\"\\\\amalg\");i(l,o,D,\"&\",\"\\\\And\");i(l,o,v,\"\\u27F5\",\"\\\\longleftarrow\",!0);i(l,o,v,\"\\u21D0\",\"\\\\Leftarrow\",!0);i(l,o,v,\"\\u27F8\",\"\\\\Longleftarrow\",!0);i(l,o,v,\"\\u27F6\",\"\\\\longrightarrow\",!0);i(l,o,v,\"\\u21D2\",\"\\\\Rightarrow\",!0);i(l,o,v,\"\\u27F9\",\"\\\\Longrightarrow\",!0);i(l,o,v,\"\\u2194\",\"\\\\leftrightarrow\",!0);i(l,o,v,\"\\u27F7\",\"\\\\longleftrightarrow\",!0);i(l,o,v,\"\\u21D4\",\"\\\\Leftrightarrow\",!0);i(l,o,v,\"\\u27FA\",\"\\\\Longleftrightarrow\",!0);i(l,o,v,\"\\u21A6\",\"\\\\mapsto\",!0);i(l,o,v,\"\\u27FC\",\"\\\\longmapsto\",!0);i(l,o,v,\"\\u2197\",\"\\\\nearrow\",!0);i(l,o,v,\"\\u21A9\",\"\\\\hookleftarrow\",!0);i(l,o,v,\"\\u21AA\",\"\\\\hookrightarrow\",!0);i(l,o,v,\"\\u2198\",\"\\\\searrow\",!0);i(l,o,v,\"\\u21BC\",\"\\\\leftharpoonup\",!0);i(l,o,v,\"\\u21C0\",\"\\\\rightharpoonup\",!0);i(l,o,v,\"\\u2199\",\"\\\\swarrow\",!0);i(l,o,v,\"\\u21BD\",\"\\\\leftharpoondown\",!0);i(l,o,v,\"\\u21C1\",\"\\\\rightharpoondown\",!0);i(l,o,v,\"\\u2196\",\"\\\\nwarrow\",!0);i(l,o,v,\"\\u21CC\",\"\\\\rightleftharpoons\",!0);i(l,f,v,\"\\u226E\",\"\\\\nless\",!0);i(l,f,v,\"\\uE010\",\"\\\\@nleqslant\");i(l,f,v,\"\\uE011\",\"\\\\@nleqq\");i(l,f,v,\"\\u2A87\",\"\\\\lneq\",!0);i(l,f,v,\"\\u2268\",\"\\\\lneqq\",!0);i(l,f,v,\"\\uE00C\",\"\\\\@lvertneqq\");i(l,f,v,\"\\u22E6\",\"\\\\lnsim\",!0);i(l,f,v,\"\\u2A89\",\"\\\\lnapprox\",!0);i(l,f,v,\"\\u2280\",\"\\\\nprec\",!0);i(l,f,v,\"\\u22E0\",\"\\\\npreceq\",!0);i(l,f,v,\"\\u22E8\",\"\\\\precnsim\",!0);i(l,f,v,\"\\u2AB9\",\"\\\\precnapprox\",!0);i(l,f,v,\"\\u2241\",\"\\\\nsim\",!0);i(l,f,v,\"\\uE006\",\"\\\\@nshortmid\");i(l,f,v,\"\\u2224\",\"\\\\nmid\",!0);i(l,f,v,\"\\u22AC\",\"\\\\nvdash\",!0);i(l,f,v,\"\\u22AD\",\"\\\\nvDash\",!0);i(l,f,v,\"\\u22EA\",\"\\\\ntriangleleft\");i(l,f,v,\"\\u22EC\",\"\\\\ntrianglelefteq\",!0);i(l,f,v,\"\\u228A\",\"\\\\subsetneq\",!0);i(l,f,v,\"\\uE01A\",\"\\\\@varsubsetneq\");i(l,f,v,\"\\u2ACB\",\"\\\\subsetneqq\",!0);i(l,f,v,\"\\uE017\",\"\\\\@varsubsetneqq\");i(l,f,v,\"\\u226F\",\"\\\\ngtr\",!0);i(l,f,v,\"\\uE00F\",\"\\\\@ngeqslant\");i(l,f,v,\"\\uE00E\",\"\\\\@ngeqq\");i(l,f,v,\"\\u2A88\",\"\\\\gneq\",!0);i(l,f,v,\"\\u2269\",\"\\\\gneqq\",!0);i(l,f,v,\"\\uE00D\",\"\\\\@gvertneqq\");i(l,f,v,\"\\u22E7\",\"\\\\gnsim\",!0);i(l,f,v,\"\\u2A8A\",\"\\\\gnapprox\",!0);i(l,f,v,\"\\u2281\",\"\\\\nsucc\",!0);i(l,f,v,\"\\u22E1\",\"\\\\nsucceq\",!0);i(l,f,v,\"\\u22E9\",\"\\\\succnsim\",!0);i(l,f,v,\"\\u2ABA\",\"\\\\succnapprox\",!0);i(l,f,v,\"\\u2246\",\"\\\\ncong\",!0);i(l,f,v,\"\\uE007\",\"\\\\@nshortparallel\");i(l,f,v,\"\\u2226\",\"\\\\nparallel\",!0);i(l,f,v,\"\\u22AF\",\"\\\\nVDash\",!0);i(l,f,v,\"\\u22EB\",\"\\\\ntriangleright\");i(l,f,v,\"\\u22ED\",\"\\\\ntrianglerighteq\",!0);i(l,f,v,\"\\uE018\",\"\\\\@nsupseteqq\");i(l,f,v,\"\\u228B\",\"\\\\supsetneq\",!0);i(l,f,v,\"\\uE01B\",\"\\\\@varsupsetneq\");i(l,f,v,\"\\u2ACC\",\"\\\\supsetneqq\",!0);i(l,f,v,\"\\uE019\",\"\\\\@varsupsetneqq\");i(l,f,v,\"\\u22AE\",\"\\\\nVdash\",!0);i(l,f,v,\"\\u2AB5\",\"\\\\precneqq\",!0);i(l,f,v,\"\\u2AB6\",\"\\\\succneqq\",!0);i(l,f,v,\"\\uE016\",\"\\\\@nsubseteqq\");i(l,f,D,\"\\u22B4\",\"\\\\unlhd\");i(l,f,D,\"\\u22B5\",\"\\\\unrhd\");i(l,f,v,\"\\u219A\",\"\\\\nleftarrow\",!0);i(l,f,v,\"\\u219B\",\"\\\\nrightarrow\",!0);i(l,f,v,\"\\u21CD\",\"\\\\nLeftarrow\",!0);i(l,f,v,\"\\u21CF\",\"\\\\nRightarrow\",!0);i(l,f,v,\"\\u21AE\",\"\\\\nleftrightarrow\",!0);i(l,f,v,\"\\u21CE\",\"\\\\nLeftrightarrow\",!0);i(l,f,v,\"\\u25B3\",\"\\\\vartriangle\");i(l,f,g,\"\\u210F\",\"\\\\hslash\");i(l,f,g,\"\\u25BD\",\"\\\\triangledown\");i(l,f,g,\"\\u25CA\",\"\\\\lozenge\");i(l,f,g,\"\\u24C8\",\"\\\\circledS\");i(l,f,g,\"\\xAE\",\"\\\\circledR\");i(w,f,g,\"\\xAE\",\"\\\\circledR\");i(l,f,g,\"\\u2221\",\"\\\\measuredangle\",!0);i(l,f,g,\"\\u2204\",\"\\\\nexists\");i(l,f,g,\"\\u2127\",\"\\\\mho\");i(l,f,g,\"\\u2132\",\"\\\\Finv\",!0);i(l,f,g,\"\\u2141\",\"\\\\Game\",!0);i(l,f,g,\"\\u2035\",\"\\\\backprime\");i(l,f,g,\"\\u25B2\",\"\\\\blacktriangle\");i(l,f,g,\"\\u25BC\",\"\\\\blacktriangledown\");i(l,f,g,\"\\u25A0\",\"\\\\blacksquare\");i(l,f,g,\"\\u29EB\",\"\\\\blacklozenge\");i(l,f,g,\"\\u2605\",\"\\\\bigstar\");i(l,f,g,\"\\u2222\",\"\\\\sphericalangle\",!0);i(l,f,g,\"\\u2201\",\"\\\\complement\",!0);i(l,f,g,\"\\xF0\",\"\\\\eth\",!0);i(w,o,g,\"\\xF0\",\"\\xF0\");i(l,f,g,\"\\u2571\",\"\\\\diagup\");i(l,f,g,\"\\u2572\",\"\\\\diagdown\");i(l,f,g,\"\\u25A1\",\"\\\\square\");i(l,f,g,\"\\u25A1\",\"\\\\Box\");i(l,f,g,\"\\u25CA\",\"\\\\Diamond\");i(l,f,g,\"\\xA5\",\"\\\\yen\",!0);i(w,f,g,\"\\xA5\",\"\\\\yen\",!0);i(l,f,g,\"\\u2713\",\"\\\\checkmark\",!0);i(w,f,g,\"\\u2713\",\"\\\\checkmark\");i(l,f,g,\"\\u2136\",\"\\\\beth\",!0);i(l,f,g,\"\\u2138\",\"\\\\daleth\",!0);i(l,f,g,\"\\u2137\",\"\\\\gimel\",!0);i(l,f,g,\"\\u03DD\",\"\\\\digamma\",!0);i(l,f,g,\"\\u03F0\",\"\\\\varkappa\");i(l,f,f0,\"\\u250C\",\"\\\\@ulcorner\",!0);i(l,f,o0,\"\\u2510\",\"\\\\@urcorner\",!0);i(l,f,f0,\"\\u2514\",\"\\\\@llcorner\",!0);i(l,f,o0,\"\\u2518\",\"\\\\@lrcorner\",!0);i(l,f,v,\"\\u2266\",\"\\\\leqq\",!0);i(l,f,v,\"\\u2A7D\",\"\\\\leqslant\",!0);i(l,f,v,\"\\u2A95\",\"\\\\eqslantless\",!0);i(l,f,v,\"\\u2272\",\"\\\\lesssim\",!0);i(l,f,v,\"\\u2A85\",\"\\\\lessapprox\",!0);i(l,f,v,\"\\u224A\",\"\\\\approxeq\",!0);i(l,f,D,\"\\u22D6\",\"\\\\lessdot\");i(l,f,v,\"\\u22D8\",\"\\\\lll\",!0);i(l,f,v,\"\\u2276\",\"\\\\lessgtr\",!0);i(l,f,v,\"\\u22DA\",\"\\\\lesseqgtr\",!0);i(l,f,v,\"\\u2A8B\",\"\\\\lesseqqgtr\",!0);i(l,f,v,\"\\u2251\",\"\\\\doteqdot\");i(l,f,v,\"\\u2253\",\"\\\\risingdotseq\",!0);i(l,f,v,\"\\u2252\",\"\\\\fallingdotseq\",!0);i(l,f,v,\"\\u223D\",\"\\\\backsim\",!0);i(l,f,v,\"\\u22CD\",\"\\\\backsimeq\",!0);i(l,f,v,\"\\u2AC5\",\"\\\\subseteqq\",!0);i(l,f,v,\"\\u22D0\",\"\\\\Subset\",!0);i(l,f,v,\"\\u228F\",\"\\\\sqsubset\",!0);i(l,f,v,\"\\u227C\",\"\\\\preccurlyeq\",!0);i(l,f,v,\"\\u22DE\",\"\\\\curlyeqprec\",!0);i(l,f,v,\"\\u227E\",\"\\\\precsim\",!0);i(l,f,v,\"\\u2AB7\",\"\\\\precapprox\",!0);i(l,f,v,\"\\u22B2\",\"\\\\vartriangleleft\");i(l,f,v,\"\\u22B4\",\"\\\\trianglelefteq\");i(l,f,v,\"\\u22A8\",\"\\\\vDash\",!0);i(l,f,v,\"\\u22AA\",\"\\\\Vvdash\",!0);i(l,f,v,\"\\u2323\",\"\\\\smallsmile\");i(l,f,v,\"\\u2322\",\"\\\\smallfrown\");i(l,f,v,\"\\u224F\",\"\\\\bumpeq\",!0);i(l,f,v,\"\\u224E\",\"\\\\Bumpeq\",!0);i(l,f,v,\"\\u2267\",\"\\\\geqq\",!0);i(l,f,v,\"\\u2A7E\",\"\\\\geqslant\",!0);i(l,f,v,\"\\u2A96\",\"\\\\eqslantgtr\",!0);i(l,f,v,\"\\u2273\",\"\\\\gtrsim\",!0);i(l,f,v,\"\\u2A86\",\"\\\\gtrapprox\",!0);i(l,f,D,\"\\u22D7\",\"\\\\gtrdot\");i(l,f,v,\"\\u22D9\",\"\\\\ggg\",!0);i(l,f,v,\"\\u2277\",\"\\\\gtrless\",!0);i(l,f,v,\"\\u22DB\",\"\\\\gtreqless\",!0);i(l,f,v,\"\\u2A8C\",\"\\\\gtreqqless\",!0);i(l,f,v,\"\\u2256\",\"\\\\eqcirc\",!0);i(l,f,v,\"\\u2257\",\"\\\\circeq\",!0);i(l,f,v,\"\\u225C\",\"\\\\triangleq\",!0);i(l,f,v,\"\\u223C\",\"\\\\thicksim\");i(l,f,v,\"\\u2248\",\"\\\\thickapprox\");i(l,f,v,\"\\u2AC6\",\"\\\\supseteqq\",!0);i(l,f,v,\"\\u22D1\",\"\\\\Supset\",!0);i(l,f,v,\"\\u2290\",\"\\\\sqsupset\",!0);i(l,f,v,\"\\u227D\",\"\\\\succcurlyeq\",!0);i(l,f,v,\"\\u22DF\",\"\\\\curlyeqsucc\",!0);i(l,f,v,\"\\u227F\",\"\\\\succsim\",!0);i(l,f,v,\"\\u2AB8\",\"\\\\succapprox\",!0);i(l,f,v,\"\\u22B3\",\"\\\\vartriangleright\");i(l,f,v,\"\\u22B5\",\"\\\\trianglerighteq\");i(l,f,v,\"\\u22A9\",\"\\\\Vdash\",!0);i(l,f,v,\"\\u2223\",\"\\\\shortmid\");i(l,f,v,\"\\u2225\",\"\\\\shortparallel\");i(l,f,v,\"\\u226C\",\"\\\\between\",!0);i(l,f,v,\"\\u22D4\",\"\\\\pitchfork\",!0);i(l,f,v,\"\\u221D\",\"\\\\varpropto\");i(l,f,v,\"\\u25C0\",\"\\\\blacktriangleleft\");i(l,f,v,\"\\u2234\",\"\\\\therefore\",!0);i(l,f,v,\"\\u220D\",\"\\\\backepsilon\");i(l,f,v,\"\\u25B6\",\"\\\\blacktriangleright\");i(l,f,v,\"\\u2235\",\"\\\\because\",!0);i(l,f,v,\"\\u22D8\",\"\\\\llless\");i(l,f,v,\"\\u22D9\",\"\\\\gggtr\");i(l,f,D,\"\\u22B2\",\"\\\\lhd\");i(l,f,D,\"\\u22B3\",\"\\\\rhd\");i(l,f,v,\"\\u2242\",\"\\\\eqsim\",!0);i(l,o,v,\"\\u22C8\",\"\\\\Join\");i(l,f,v,\"\\u2251\",\"\\\\Doteq\",!0);i(l,f,D,\"\\u2214\",\"\\\\dotplus\",!0);i(l,f,D,\"\\u2216\",\"\\\\smallsetminus\");i(l,f,D,\"\\u22D2\",\"\\\\Cap\",!0);i(l,f,D,\"\\u22D3\",\"\\\\Cup\",!0);i(l,f,D,\"\\u2A5E\",\"\\\\doublebarwedge\",!0);i(l,f,D,\"\\u229F\",\"\\\\boxminus\",!0);i(l,f,D,\"\\u229E\",\"\\\\boxplus\",!0);i(l,f,D,\"\\u22C7\",\"\\\\divideontimes\",!0);i(l,f,D,\"\\u22C9\",\"\\\\ltimes\",!0);i(l,f,D,\"\\u22CA\",\"\\\\rtimes\",!0);i(l,f,D,\"\\u22CB\",\"\\\\leftthreetimes\",!0);i(l,f,D,\"\\u22CC\",\"\\\\rightthreetimes\",!0);i(l,f,D,\"\\u22CF\",\"\\\\curlywedge\",!0);i(l,f,D,\"\\u22CE\",\"\\\\curlyvee\",!0);i(l,f,D,\"\\u229D\",\"\\\\circleddash\",!0);i(l,f,D,\"\\u229B\",\"\\\\circledast\",!0);i(l,f,D,\"\\u22C5\",\"\\\\centerdot\");i(l,f,D,\"\\u22BA\",\"\\\\intercal\",!0);i(l,f,D,\"\\u22D2\",\"\\\\doublecap\");i(l,f,D,\"\\u22D3\",\"\\\\doublecup\");i(l,f,D,\"\\u22A0\",\"\\\\boxtimes\",!0);i(l,f,v,\"\\u21E2\",\"\\\\dashrightarrow\",!0);i(l,f,v,\"\\u21E0\",\"\\\\dashleftarrow\",!0);i(l,f,v,\"\\u21C7\",\"\\\\leftleftarrows\",!0);i(l,f,v,\"\\u21C6\",\"\\\\leftrightarrows\",!0);i(l,f,v,\"\\u21DA\",\"\\\\Lleftarrow\",!0);i(l,f,v,\"\\u219E\",\"\\\\twoheadleftarrow\",!0);i(l,f,v,\"\\u21A2\",\"\\\\leftarrowtail\",!0);i(l,f,v,\"\\u21AB\",\"\\\\looparrowleft\",!0);i(l,f,v,\"\\u21CB\",\"\\\\leftrightharpoons\",!0);i(l,f,v,\"\\u21B6\",\"\\\\curvearrowleft\",!0);i(l,f,v,\"\\u21BA\",\"\\\\circlearrowleft\",!0);i(l,f,v,\"\\u21B0\",\"\\\\Lsh\",!0);i(l,f,v,\"\\u21C8\",\"\\\\upuparrows\",!0);i(l,f,v,\"\\u21BF\",\"\\\\upharpoonleft\",!0);i(l,f,v,\"\\u21C3\",\"\\\\downharpoonleft\",!0);i(l,o,v,\"\\u22B6\",\"\\\\origof\",!0);i(l,o,v,\"\\u22B7\",\"\\\\imageof\",!0);i(l,f,v,\"\\u22B8\",\"\\\\multimap\",!0);i(l,f,v,\"\\u21AD\",\"\\\\leftrightsquigarrow\",!0);i(l,f,v,\"\\u21C9\",\"\\\\rightrightarrows\",!0);i(l,f,v,\"\\u21C4\",\"\\\\rightleftarrows\",!0);i(l,f,v,\"\\u21A0\",\"\\\\twoheadrightarrow\",!0);i(l,f,v,\"\\u21A3\",\"\\\\rightarrowtail\",!0);i(l,f,v,\"\\u21AC\",\"\\\\looparrowright\",!0);i(l,f,v,\"\\u21B7\",\"\\\\curvearrowright\",!0);i(l,f,v,\"\\u21BB\",\"\\\\circlearrowright\",!0);i(l,f,v,\"\\u21B1\",\"\\\\Rsh\",!0);i(l,f,v,\"\\u21CA\",\"\\\\downdownarrows\",!0);i(l,f,v,\"\\u21BE\",\"\\\\upharpoonright\",!0);i(l,f,v,\"\\u21C2\",\"\\\\downharpoonright\",!0);i(l,f,v,\"\\u21DD\",\"\\\\rightsquigarrow\",!0);i(l,f,v,\"\\u21DD\",\"\\\\leadsto\");i(l,f,v,\"\\u21DB\",\"\\\\Rrightarrow\",!0);i(l,f,v,\"\\u21BE\",\"\\\\restriction\");i(l,o,g,\"\\u2018\",\"`\");i(l,o,g,\"$\",\"\\\\$\");i(w,o,g,\"$\",\"\\\\$\");i(w,o,g,\"$\",\"\\\\textdollar\");i(l,o,g,\"%\",\"\\\\%\");i(w,o,g,\"%\",\"\\\\%\");i(l,o,g,\"_\",\"\\\\_\");i(w,o,g,\"_\",\"\\\\_\");i(w,o,g,\"_\",\"\\\\textunderscore\");i(l,o,g,\"\\u2220\",\"\\\\angle\",!0);i(l,o,g,\"\\u221E\",\"\\\\infty\",!0);i(l,o,g,\"\\u2032\",\"\\\\prime\");i(l,o,g,\"\\u25B3\",\"\\\\triangle\");i(l,o,g,\"\\u0393\",\"\\\\Gamma\",!0);i(l,o,g,\"\\u0394\",\"\\\\Delta\",!0);i(l,o,g,\"\\u0398\",\"\\\\Theta\",!0);i(l,o,g,\"\\u039B\",\"\\\\Lambda\",!0);i(l,o,g,\"\\u039E\",\"\\\\Xi\",!0);i(l,o,g,\"\\u03A0\",\"\\\\Pi\",!0);i(l,o,g,\"\\u03A3\",\"\\\\Sigma\",!0);i(l,o,g,\"\\u03A5\",\"\\\\Upsilon\",!0);i(l,o,g,\"\\u03A6\",\"\\\\Phi\",!0);i(l,o,g,\"\\u03A8\",\"\\\\Psi\",!0);i(l,o,g,\"\\u03A9\",\"\\\\Omega\",!0);i(l,o,g,\"A\",\"\\u0391\");i(l,o,g,\"B\",\"\\u0392\");i(l,o,g,\"E\",\"\\u0395\");i(l,o,g,\"Z\",\"\\u0396\");i(l,o,g,\"H\",\"\\u0397\");i(l,o,g,\"I\",\"\\u0399\");i(l,o,g,\"K\",\"\\u039A\");i(l,o,g,\"M\",\"\\u039C\");i(l,o,g,\"N\",\"\\u039D\");i(l,o,g,\"O\",\"\\u039F\");i(l,o,g,\"P\",\"\\u03A1\");i(l,o,g,\"T\",\"\\u03A4\");i(l,o,g,\"X\",\"\\u03A7\");i(l,o,g,\"\\xAC\",\"\\\\neg\",!0);i(l,o,g,\"\\xAC\",\"\\\\lnot\");i(l,o,g,\"\\u22A4\",\"\\\\top\");i(l,o,g,\"\\u22A5\",\"\\\\bot\");i(l,o,g,\"\\u2205\",\"\\\\emptyset\");i(l,f,g,\"\\u2205\",\"\\\\varnothing\");i(l,o,N,\"\\u03B1\",\"\\\\alpha\",!0);i(l,o,N,\"\\u03B2\",\"\\\\beta\",!0);i(l,o,N,\"\\u03B3\",\"\\\\gamma\",!0);i(l,o,N,\"\\u03B4\",\"\\\\delta\",!0);i(l,o,N,\"\\u03F5\",\"\\\\epsilon\",!0);i(l,o,N,\"\\u03B6\",\"\\\\zeta\",!0);i(l,o,N,\"\\u03B7\",\"\\\\eta\",!0);i(l,o,N,\"\\u03B8\",\"\\\\theta\",!0);i(l,o,N,\"\\u03B9\",\"\\\\iota\",!0);i(l,o,N,\"\\u03BA\",\"\\\\kappa\",!0);i(l,o,N,\"\\u03BB\",\"\\\\lambda\",!0);i(l,o,N,\"\\u03BC\",\"\\\\mu\",!0);i(l,o,N,\"\\u03BD\",\"\\\\nu\",!0);i(l,o,N,\"\\u03BE\",\"\\\\xi\",!0);i(l,o,N,\"\\u03BF\",\"\\\\omicron\",!0);i(l,o,N,\"\\u03C0\",\"\\\\pi\",!0);i(l,o,N,\"\\u03C1\",\"\\\\rho\",!0);i(l,o,N,\"\\u03C3\",\"\\\\sigma\",!0);i(l,o,N,\"\\u03C4\",\"\\\\tau\",!0);i(l,o,N,\"\\u03C5\",\"\\\\upsilon\",!0);i(l,o,N,\"\\u03D5\",\"\\\\phi\",!0);i(l,o,N,\"\\u03C7\",\"\\\\chi\",!0);i(l,o,N,\"\\u03C8\",\"\\\\psi\",!0);i(l,o,N,\"\\u03C9\",\"\\\\omega\",!0);i(l,o,N,\"\\u03B5\",\"\\\\varepsilon\",!0);i(l,o,N,\"\\u03D1\",\"\\\\vartheta\",!0);i(l,o,N,\"\\u03D6\",\"\\\\varpi\",!0);i(l,o,N,\"\\u03F1\",\"\\\\varrho\",!0);i(l,o,N,\"\\u03C2\",\"\\\\varsigma\",!0);i(l,o,N,\"\\u03C6\",\"\\\\varphi\",!0);i(l,o,D,\"\\u2217\",\"*\",!0);i(l,o,D,\"+\",\"+\");i(l,o,D,\"\\u2212\",\"-\",!0);i(l,o,D,\"\\u22C5\",\"\\\\cdot\",!0);i(l,o,D,\"\\u2218\",\"\\\\circ\",!0);i(l,o,D,\"\\xF7\",\"\\\\div\",!0);i(l,o,D,\"\\xB1\",\"\\\\pm\",!0);i(l,o,D,\"\\xD7\",\"\\\\times\",!0);i(l,o,D,\"\\u2229\",\"\\\\cap\",!0);i(l,o,D,\"\\u222A\",\"\\\\cup\",!0);i(l,o,D,\"\\u2216\",\"\\\\setminus\",!0);i(l,o,D,\"\\u2227\",\"\\\\land\");i(l,o,D,\"\\u2228\",\"\\\\lor\");i(l,o,D,\"\\u2227\",\"\\\\wedge\",!0);i(l,o,D,\"\\u2228\",\"\\\\vee\",!0);i(l,o,g,\"\\u221A\",\"\\\\surd\");i(l,o,f0,\"\\u27E8\",\"\\\\langle\",!0);i(l,o,f0,\"\\u2223\",\"\\\\lvert\");i(l,o,f0,\"\\u2225\",\"\\\\lVert\");i(l,o,o0,\"?\",\"?\");i(l,o,o0,\"!\",\"!\");i(l,o,o0,\"\\u27E9\",\"\\\\rangle\",!0);i(l,o,o0,\"\\u2223\",\"\\\\rvert\");i(l,o,o0,\"\\u2225\",\"\\\\rVert\");i(l,o,v,\"=\",\"=\");i(l,o,v,\":\",\":\");i(l,o,v,\"\\u2248\",\"\\\\approx\",!0);i(l,o,v,\"\\u2245\",\"\\\\cong\",!0);i(l,o,v,\"\\u2265\",\"\\\\ge\");i(l,o,v,\"\\u2265\",\"\\\\geq\",!0);i(l,o,v,\"\\u2190\",\"\\\\gets\");i(l,o,v,\">\",\"\\\\gt\",!0);i(l,o,v,\"\\u2208\",\"\\\\in\",!0);i(l,o,v,\"\\uE020\",\"\\\\@not\");i(l,o,v,\"\\u2282\",\"\\\\subset\",!0);i(l,o,v,\"\\u2283\",\"\\\\supset\",!0);i(l,o,v,\"\\u2286\",\"\\\\subseteq\",!0);i(l,o,v,\"\\u2287\",\"\\\\supseteq\",!0);i(l,f,v,\"\\u2288\",\"\\\\nsubseteq\",!0);i(l,f,v,\"\\u2289\",\"\\\\nsupseteq\",!0);i(l,o,v,\"\\u22A8\",\"\\\\models\");i(l,o,v,\"\\u2190\",\"\\\\leftarrow\",!0);i(l,o,v,\"\\u2264\",\"\\\\le\");i(l,o,v,\"\\u2264\",\"\\\\leq\",!0);i(l,o,v,\"<\",\"\\\\lt\",!0);i(l,o,v,\"\\u2192\",\"\\\\rightarrow\",!0);i(l,o,v,\"\\u2192\",\"\\\\to\");i(l,f,v,\"\\u2271\",\"\\\\ngeq\",!0);i(l,f,v,\"\\u2270\",\"\\\\nleq\",!0);i(l,o,R0,\"\\xA0\",\"\\\\ \");i(l,o,R0,\"\\xA0\",\"\\\\space\");i(l,o,R0,\"\\xA0\",\"\\\\nobreakspace\");i(w,o,R0,\"\\xA0\",\"\\\\ \");i(w,o,R0,\"\\xA0\",\" \");i(w,o,R0,\"\\xA0\",\"\\\\space\");i(w,o,R0,\"\\xA0\",\"\\\\nobreakspace\");i(l,o,R0,\"\",\"\\\\nobreak\");i(l,o,R0,\"\",\"\\\\allowbreak\");i(l,o,ge,\",\",\",\");i(l,o,ge,\";\",\";\");i(l,f,D,\"\\u22BC\",\"\\\\barwedge\",!0);i(l,f,D,\"\\u22BB\",\"\\\\veebar\",!0);i(l,o,D,\"\\u2299\",\"\\\\odot\",!0);i(l,o,D,\"\\u2295\",\"\\\\oplus\",!0);i(l,o,D,\"\\u2297\",\"\\\\otimes\",!0);i(l,o,g,\"\\u2202\",\"\\\\partial\",!0);i(l,o,D,\"\\u2298\",\"\\\\oslash\",!0);i(l,f,D,\"\\u229A\",\"\\\\circledcirc\",!0);i(l,f,D,\"\\u22A1\",\"\\\\boxdot\",!0);i(l,o,D,\"\\u25B3\",\"\\\\bigtriangleup\");i(l,o,D,\"\\u25BD\",\"\\\\bigtriangledown\");i(l,o,D,\"\\u2020\",\"\\\\dagger\");i(l,o,D,\"\\u22C4\",\"\\\\diamond\");i(l,o,D,\"\\u22C6\",\"\\\\star\");i(l,o,D,\"\\u25C3\",\"\\\\triangleleft\");i(l,o,D,\"\\u25B9\",\"\\\\triangleright\");i(l,o,f0,\"{\",\"\\\\{\");i(w,o,g,\"{\",\"\\\\{\");i(w,o,g,\"{\",\"\\\\textbraceleft\");i(l,o,o0,\"}\",\"\\\\}\");i(w,o,g,\"}\",\"\\\\}\");i(w,o,g,\"}\",\"\\\\textbraceright\");i(l,o,f0,\"{\",\"\\\\lbrace\");i(l,o,o0,\"}\",\"\\\\rbrace\");i(l,o,f0,\"[\",\"\\\\lbrack\",!0);i(w,o,g,\"[\",\"\\\\lbrack\",!0);i(l,o,o0,\"]\",\"\\\\rbrack\",!0);i(w,o,g,\"]\",\"\\\\rbrack\",!0);i(l,o,f0,\"(\",\"\\\\lparen\",!0);i(l,o,o0,\")\",\"\\\\rparen\",!0);i(w,o,g,\"<\",\"\\\\textless\",!0);i(w,o,g,\">\",\"\\\\textgreater\",!0);i(l,o,f0,\"\\u230A\",\"\\\\lfloor\",!0);i(l,o,o0,\"\\u230B\",\"\\\\rfloor\",!0);i(l,o,f0,\"\\u2308\",\"\\\\lceil\",!0);i(l,o,o0,\"\\u2309\",\"\\\\rceil\",!0);i(l,o,g,\"\\\\\",\"\\\\backslash\");i(l,o,g,\"\\u2223\",\"|\");i(l,o,g,\"\\u2223\",\"\\\\vert\");i(w,o,g,\"|\",\"\\\\textbar\",!0);i(l,o,g,\"\\u2225\",\"\\\\|\");i(l,o,g,\"\\u2225\",\"\\\\Vert\");i(w,o,g,\"\\u2225\",\"\\\\textbardbl\");i(w,o,g,\"~\",\"\\\\textasciitilde\");i(w,o,g,\"\\\\\",\"\\\\textbackslash\");i(w,o,g,\"^\",\"\\\\textasciicircum\");i(l,o,v,\"\\u2191\",\"\\\\uparrow\",!0);i(l,o,v,\"\\u21D1\",\"\\\\Uparrow\",!0);i(l,o,v,\"\\u2193\",\"\\\\downarrow\",!0);i(l,o,v,\"\\u21D3\",\"\\\\Downarrow\",!0);i(l,o,v,\"\\u2195\",\"\\\\updownarrow\",!0);i(l,o,v,\"\\u21D5\",\"\\\\Updownarrow\",!0);i(l,o,t0,\"\\u2210\",\"\\\\coprod\");i(l,o,t0,\"\\u22C1\",\"\\\\bigvee\");i(l,o,t0,\"\\u22C0\",\"\\\\bigwedge\");i(l,o,t0,\"\\u2A04\",\"\\\\biguplus\");i(l,o,t0,\"\\u22C2\",\"\\\\bigcap\");i(l,o,t0,\"\\u22C3\",\"\\\\bigcup\");i(l,o,t0,\"\\u222B\",\"\\\\int\");i(l,o,t0,\"\\u222B\",\"\\\\intop\");i(l,o,t0,\"\\u222C\",\"\\\\iint\");i(l,o,t0,\"\\u222D\",\"\\\\iiint\");i(l,o,t0,\"\\u220F\",\"\\\\prod\");i(l,o,t0,\"\\u2211\",\"\\\\sum\");i(l,o,t0,\"\\u2A02\",\"\\\\bigotimes\");i(l,o,t0,\"\\u2A01\",\"\\\\bigoplus\");i(l,o,t0,\"\\u2A00\",\"\\\\bigodot\");i(l,o,t0,\"\\u222E\",\"\\\\oint\");i(l,o,t0,\"\\u222F\",\"\\\\oiint\");i(l,o,t0,\"\\u2230\",\"\\\\oiiint\");i(l,o,t0,\"\\u2A06\",\"\\\\bigsqcup\");i(l,o,t0,\"\\u222B\",\"\\\\smallint\");i(w,o,ie,\"\\u2026\",\"\\\\textellipsis\");i(l,o,ie,\"\\u2026\",\"\\\\mathellipsis\");i(w,o,ie,\"\\u2026\",\"\\\\ldots\",!0);i(l,o,ie,\"\\u2026\",\"\\\\ldots\",!0);i(l,o,ie,\"\\u22EF\",\"\\\\@cdots\",!0);i(l,o,ie,\"\\u22F1\",\"\\\\ddots\",!0);i(l,o,g,\"\\u22EE\",\"\\\\varvdots\");i(w,o,g,\"\\u22EE\",\"\\\\varvdots\");i(l,o,W,\"\\u02CA\",\"\\\\acute\");i(l,o,W,\"\\u02CB\",\"\\\\grave\");i(l,o,W,\"\\xA8\",\"\\\\ddot\");i(l,o,W,\"~\",\"\\\\tilde\");i(l,o,W,\"\\u02C9\",\"\\\\bar\");i(l,o,W,\"\\u02D8\",\"\\\\breve\");i(l,o,W,\"\\u02C7\",\"\\\\check\");i(l,o,W,\"^\",\"\\\\hat\");i(l,o,W,\"\\u20D7\",\"\\\\vec\");i(l,o,W,\"\\u02D9\",\"\\\\dot\");i(l,o,W,\"\\u02DA\",\"\\\\mathring\");i(l,o,N,\"\\uE131\",\"\\\\@imath\");i(l,o,N,\"\\uE237\",\"\\\\@jmath\");i(l,o,g,\"\\u0131\",\"\\u0131\");i(l,o,g,\"\\u0237\",\"\\u0237\");i(w,o,g,\"\\u0131\",\"\\\\i\",!0);i(w,o,g,\"\\u0237\",\"\\\\j\",!0);i(w,o,g,\"\\xDF\",\"\\\\ss\",!0);i(w,o,g,\"\\xE6\",\"\\\\ae\",!0);i(w,o,g,\"\\u0153\",\"\\\\oe\",!0);i(w,o,g,\"\\xF8\",\"\\\\o\",!0);i(w,o,g,\"\\xC6\",\"\\\\AE\",!0);i(w,o,g,\"\\u0152\",\"\\\\OE\",!0);i(w,o,g,\"\\xD8\",\"\\\\O\",!0);i(w,o,W,\"\\u02CA\",\"\\\\'\");i(w,o,W,\"\\u02CB\",\"\\\\`\");i(w,o,W,\"\\u02C6\",\"\\\\^\");i(w,o,W,\"\\u02DC\",\"\\\\~\");i(w,o,W,\"\\u02C9\",\"\\\\=\");i(w,o,W,\"\\u02D8\",\"\\\\u\");i(w,o,W,\"\\u02D9\",\"\\\\.\");i(w,o,W,\"\\xB8\",\"\\\\c\");i(w,o,W,\"\\u02DA\",\"\\\\r\");i(w,o,W,\"\\u02C7\",\"\\\\v\");i(w,o,W,\"\\xA8\",'\\\\\"');i(w,o,W,\"\\u02DD\",\"\\\\H\");i(w,o,W,\"\\u25EF\",\"\\\\textcircled\");var Xr={\"--\":!0,\"---\":!0,\"``\":!0,\"''\":!0};i(w,o,g,\"\\u2013\",\"--\",!0);i(w,o,g,\"\\u2013\",\"\\\\textendash\");i(w,o,g,\"\\u2014\",\"---\",!0);i(w,o,g,\"\\u2014\",\"\\\\textemdash\");i(w,o,g,\"\\u2018\",\"`\",!0);i(w,o,g,\"\\u2018\",\"\\\\textquoteleft\");i(w,o,g,\"\\u2019\",\"'\",!0);i(w,o,g,\"\\u2019\",\"\\\\textquoteright\");i(w,o,g,\"\\u201C\",\"``\",!0);i(w,o,g,\"\\u201C\",\"\\\\textquotedblleft\");i(w,o,g,\"\\u201D\",\"''\",!0);i(w,o,g,\"\\u201D\",\"\\\\textquotedblright\");i(l,o,g,\"\\xB0\",\"\\\\degree\",!0);i(w,o,g,\"\\xB0\",\"\\\\degree\");i(w,o,g,\"\\xB0\",\"\\\\textdegree\",!0);i(l,o,g,\"\\xA3\",\"\\\\pounds\");i(l,o,g,\"\\xA3\",\"\\\\mathsterling\",!0);i(w,o,g,\"\\xA3\",\"\\\\pounds\");i(w,o,g,\"\\xA3\",\"\\\\textsterling\",!0);i(l,f,g,\"\\u2720\",\"\\\\maltese\");i(w,f,g,\"\\u2720\",\"\\\\maltese\");var nr='0123456789/@.\"';for(ze=0;ze<nr.length;ze++)rt=nr.charAt(ze),i(l,o,g,rt,rt);var rt,ze,ir='0123456789!@*()-=+\";:?/.,';for(Ae=0;Ae<ir.length;Ae++)at=ir.charAt(Ae),i(w,o,g,at,at);var at,Ae,Fe=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";for(Me=0;Me<Fe.length;Me++)le=Fe.charAt(Me),i(l,o,N,le,le),i(w,o,g,le,le);var le,Me;i(l,f,g,\"C\",\"\\u2102\");i(w,f,g,\"C\",\"\\u2102\");i(l,f,g,\"H\",\"\\u210D\");i(w,f,g,\"H\",\"\\u210D\");i(l,f,g,\"N\",\"\\u2115\");i(w,f,g,\"N\",\"\\u2115\");i(l,f,g,\"P\",\"\\u2119\");i(w,f,g,\"P\",\"\\u2119\");i(l,f,g,\"Q\",\"\\u211A\");i(w,f,g,\"Q\",\"\\u211A\");i(l,f,g,\"R\",\"\\u211D\");i(w,f,g,\"R\",\"\\u211D\");i(l,f,g,\"Z\",\"\\u2124\");i(w,f,g,\"Z\",\"\\u2124\");i(l,o,N,\"h\",\"\\u210E\");i(w,o,N,\"h\",\"\\u210E\");var R;for(i0=0;i0<Fe.length;i0++)K=Fe.charAt(i0),R=String.fromCharCode(55349,56320+i0),i(l,o,N,K,R),i(w,o,g,K,R),R=String.fromCharCode(55349,56372+i0),i(l,o,N,K,R),i(w,o,g,K,R),R=String.fromCharCode(55349,56424+i0),i(l,o,N,K,R),i(w,o,g,K,R),R=String.fromCharCode(55349,56580+i0),i(l,o,N,K,R),i(w,o,g,K,R),R=String.fromCharCode(55349,56684+i0),i(l,o,N,K,R),i(w,o,g,K,R),R=String.fromCharCode(55349,56736+i0),i(l,o,N,K,R),i(w,o,g,K,R),R=String.fromCharCode(55349,56788+i0),i(l,o,N,K,R),i(w,o,g,K,R),R=String.fromCharCode(55349,56840+i0),i(l,o,N,K,R),i(w,o,g,K,R),R=String.fromCharCode(55349,56944+i0),i(l,o,N,K,R),i(w,o,g,K,R),i0<26&&(R=String.fromCharCode(55349,56632+i0),i(l,o,N,K,R),i(w,o,g,K,R),R=String.fromCharCode(55349,56476+i0),i(l,o,N,K,R),i(w,o,g,K,R));var K,i0;R=\"\\u{1D55C}\";i(l,o,N,\"k\",R);i(w,o,g,\"k\",R);for(L0=0;L0<10;L0++)C0=L0.toString(),R=String.fromCharCode(55349,57294+L0),i(l,o,N,C0,R),i(w,o,g,C0,R),R=String.fromCharCode(55349,57314+L0),i(l,o,N,C0,R),i(w,o,g,C0,R),R=String.fromCharCode(55349,57324+L0),i(l,o,N,C0,R),i(w,o,g,C0,R),R=String.fromCharCode(55349,57334+L0),i(l,o,N,C0,R),i(w,o,g,C0,R);var C0,L0,gt=\"\\xD0\\xDE\\xFE\";for(Te=0;Te<gt.length;Te++)ue=gt.charAt(Te),i(l,o,N,ue,ue),i(w,o,g,ue,ue);var ue,Te,bt={mathClass:\"mathbf\",textClass:\"textbf\",font:\"Main-Bold\"},sr={mathClass:\"mathnormal\",textClass:\"textit\",font:\"Math-Italic\"},lr={mathClass:\"boldsymbol\",textClass:\"boldsymbol\",font:\"Main-BoldItalic\"},S1={mathClass:\"mathscr\",textClass:\"textscr\",font:\"Script-Regular\"},$0={mathClass:\"\",textClass:\"\",font:\"\"},ur={mathClass:\"mathfrak\",textClass:\"textfrak\",font:\"Fraktur-Regular\"},or={mathClass:\"mathbb\",textClass:\"textbb\",font:\"AMS-Regular\"},hr={mathClass:\"mathboldfrak\",textClass:\"textboldfrak\",font:\"Fraktur-Regular\"},yt={mathClass:\"mathsf\",textClass:\"textsf\",font:\"SansSerif-Regular\"},xt={mathClass:\"mathboldsf\",textClass:\"textboldsf\",font:\"SansSerif-Bold\"},mr={mathClass:\"mathitsf\",textClass:\"textitsf\",font:\"SansSerif-Italic\"},wt={mathClass:\"mathtt\",textClass:\"texttt\",font:\"Typewriter-Regular\"},cr=[bt,bt,sr,sr,lr,lr,S1,$0,$0,$0,ur,ur,or,or,hr,hr,yt,yt,xt,xt,mr,mr,$0,$0,wt,wt],z1=[bt,$0,yt,xt,wt],A1=r=>{var e=r.charCodeAt(0),t=r.charCodeAt(1),a=(e-55296)*1024+(t-56320)+65536;if(119808<=a&&a<120484){var n=Math.floor((a-119808)/26);return cr[n]}else if(120782<=a&&a<=120831){var s=Math.floor((a-120782)/10);return z1[s]}else{if(a===120485||a===120486)return cr[0];if(120486<a&&a<120782)return $0;throw new z(\"Unsupported character: \"+r)}},Ue=function(e,t,a){if($[a][e]){var n=$[a][e].replace;n&&(e=n)}return{value:e,metrics:It(e,t,a)}},l0=function(e,t,a,n,s){var u=Ue(e,t,a),h=u.metrics;e=u.value;var c;if(h){var d=h.italic;(a===\"text\"||n&&n.font===\"mathit\")&&(d=0),c=new m0(e,h.height,h.depth,d,h.skew,h.width,s)}else typeof console<\"u\"&&console.warn(\"No character metrics \"+(\"for '\"+e+\"' in style '\"+t+\"' and mode '\"+a+\"'\")),c=new m0(e,0,0,0,0,0,s);if(n){c.maxFontSize=n.sizeMultiplier,n.style.isTight()&&c.classes.push(\"mtight\");var p=n.getColor();p&&(c.style.color=p)}return c},Ot=function(e,t,a,n){return n===void 0&&(n=[]),a.font===\"boldsymbol\"&&Ue(e,\"Main-Bold\",t).metrics?l0(e,\"Main-Bold\",t,a,n.concat([\"mathbf\"])):e===\"\\\\\"||$[t][e].font===\"main\"?l0(e,\"Main-Regular\",t,a,n):l0(e,\"AMS-Regular\",t,a,n.concat([\"amsrm\"]))},M1=function(e,t,a){return a!==\"textord\"&&Ue(e,\"Math-BoldItalic\",t).metrics?{fontName:\"Math-BoldItalic\",fontClass:\"boldsymbol\"}:{fontName:\"Main-Bold\",fontClass:\"mathbf\"}},Ve=function(e,t){var a=e.type===\"mathord\"?\"mathord\":\"textord\",n=e.mode,s=e.text,u=[\"mord\"],h=t.font,c=t.fontFamily,d=t.fontWeight,p=t.fontShape,b=n===\"math\"||n===\"text\"&&!!h,y=b?h:c,x=\"\",M=\"\";if(s.charCodeAt(0)===55349){var T=A1(s);x=T.font,M=T[n+\"Class\"]}if(x)return l0(s,x,n,t,u.concat(M));if(y){var C,q;if(y===\"boldsymbol\"){var E=M1(s,n,a);C=E.fontName,q=[E.fontClass]}else b?(C=kt[h].fontName,q=[h]):(C=Ce(c,d,p),q=[c,d,p]);if(Ue(s,C,n).metrics)return l0(s,C,n,t,u.concat(q));if(Object.prototype.hasOwnProperty.call(Xr,s)&&C.slice(0,10)===\"Typewriter\"){for(var O=[],F=0;F<s.length;F++)O.push(l0(s[F],C,n,t,u.concat(q)));return I0(O)}}if(a===\"mathord\")return l0(s,\"Math-Italic\",n,t,u.concat([\"mathnormal\"]));if(a===\"textord\"){var G=$[n][s]&&$[n][s].font;if(G===\"ams\"){var L=Ce(\"amsrm\",d,p);return l0(s,L,n,t,u.concat(\"amsrm\",d,p))}else if(G===\"main\"||!G){var P=Ce(\"textrm\",d,p);return l0(s,P,n,t,u.concat(d,p))}else{var j=Ce(G,d,p);return l0(s,j,n,t,u.concat(j,d,p))}}else throw new Error(\"unexpected type: \"+a+\" in makeOrd\")},T1=(r,e)=>{if(U0(r.classes)!==U0(e.classes)||r.skew!==e.skew||r.maxFontSize!==e.maxFontSize||r.italic!==0&&r.hasClass(\"mathnormal\"))return!1;if(r.classes.length===1){var t=r.classes[0];if(t===\"mbin\"||t===\"mord\")return!1}for(var a of Object.keys(r.style))if(r.style[a]!==e.style[a])return!1;for(var n of Object.keys(e.style))if(r.style[n]!==e.style[n])return!1;return!0},Yr=r=>{for(var e=0;e<r.length-1;e++){var t=r[e],a=r[e+1];t instanceof m0&&a instanceof m0&&T1(t,a)&&(t.text+=a.text,t.height=Math.max(t.height,a.height),t.depth=Math.max(t.depth,a.depth),t.italic=a.italic,r.splice(e+1,1),e--)}return r},Ft=function(e){for(var t=0,a=0,n=0,s=0;s<e.children.length;s++){var u=e.children[s];u.height>t&&(t=u.height),u.depth>a&&(a=u.depth),u.maxFontSize>n&&(n=u.maxFontSize)}e.height=t,e.depth=a,e.maxFontSize=n},k=function(e,t,a,n){var s=new W0(e,t,a,n);return Ft(s),s},V0=(r,e,t,a)=>new W0(r,e,t,a),ae=function(e,t,a){var n=k([e],[],t);return n.height=Math.max(a||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=A(n.height),n.maxFontSize=1,n},C1=function(e,t,a,n){var s=new ce(e,t,a,n);return Ft(s),s},I0=function(e){var t=new P0(e);return Ft(t),t},ne=function(e,t){return e instanceof P0?k([],[e],t):e},B1=function(e){if(e.positionType===\"individualShift\"){for(var t=e.children,a=[t[0]],n=-t[0].shift-t[0].elem.depth,s=n,u=1;u<t.length;u++){var h=-t[u].shift-s-t[u].elem.depth,c=h-(t[u-1].elem.height+t[u-1].elem.depth);s=s+h,a.push({type:\"kern\",size:c}),a.push(t[u])}return{children:a,depth:n}}var d;if(e.positionType===\"top\"){for(var p=e.positionData,b=0;b<e.children.length;b++){var y=e.children[b];p-=y.type===\"kern\"?y.size:y.elem.height+y.elem.depth}d=p}else if(e.positionType===\"bottom\")d=-e.positionData;else{var x=e.children[0];if(x.type!==\"elem\")throw new Error('First child must have type \"elem\".');if(e.positionType===\"shift\")d=-x.elem.depth-e.positionData;else if(e.positionType===\"firstBaseline\")d=-x.elem.depth;else throw new Error(\"Invalid positionType \"+e.positionType+\".\")}return{children:e.children,depth:d}},V=function(e,t){for(var a=B1(e),n=a.children,s=a.depth,u=0,h=0;h<n.length;h++){var c=n[h];if(c.type===\"elem\"){var d=c.elem;u=Math.max(u,d.maxFontSize,d.height)}}u+=2;var p=k([\"pstrut\"],[]);p.style.height=A(u);for(var b=[],y=s,x=s,M=s,T=0;T<n.length;T++){var C=n[T];if(C.type===\"kern\")M+=C.size;else{var q=C.elem,E=C.wrapperClasses||[],O=C.wrapperStyle||{},F=k(E,[p,q],void 0,O);F.style.top=A(-u-M-q.depth),C.marginLeft&&(F.style.marginLeft=C.marginLeft),C.marginRight&&(F.style.marginRight=C.marginRight),b.push(F),M+=q.height+q.depth}y=Math.min(y,M),x=Math.max(x,M)}var G=k([\"vlist\"],b);G.style.height=A(x);var L;if(y<0){var P=k([],[]),j=k([\"vlist\"],[P]);j.style.height=A(-y);var Y=k([\"vlist-s\"],[new m0(\"\\u200B\")]);L=[k([\"vlist-r\"],[G,Y]),k([\"vlist-r\"],[j])]}else L=[k([\"vlist-r\"],[G])];var Z=k([\"vlist-t\"],L);return L.length===2&&Z.classes.push(\"vlist-t2\"),Z.height=x,Z.depth=-y,Z},$r=(r,e)=>{var t=k([\"mspace\"],[],e),a=Q(r,e);return t.style.marginRight=A(a),t},Ce=(r,e,t)=>{var a,n;switch(r){case\"amsrm\":a=\"AMS\";break;case\"textrm\":a=\"Main\";break;case\"textsf\":a=\"SansSerif\";break;case\"texttt\":a=\"Typewriter\";break;default:a=r}return e===\"textbf\"&&t===\"textit\"?n=\"BoldItalic\":e===\"textbf\"?n=\"Bold\":t===\"textit\"?n=\"Italic\":n=\"Regular\",a+\"-\"+n},kt={mathbf:{variant:\"bold\",fontName:\"Main-Bold\"},mathrm:{variant:\"normal\",fontName:\"Main-Regular\"},textit:{variant:\"italic\",fontName:\"Main-Italic\"},mathit:{variant:\"italic\",fontName:\"Main-Italic\"},mathnormal:{variant:\"italic\",fontName:\"Math-Italic\"},mathsfit:{variant:\"sans-serif-italic\",fontName:\"SansSerif-Italic\"},mathbb:{variant:\"double-struck\",fontName:\"AMS-Regular\"},mathcal:{variant:\"script\",fontName:\"Caligraphic-Regular\"},mathfrak:{variant:\"fraktur\",fontName:\"Fraktur-Regular\"},mathscr:{variant:\"script\",fontName:\"Script-Regular\"},mathsf:{variant:\"sans-serif\",fontName:\"SansSerif-Regular\"},mathtt:{variant:\"monospace\",fontName:\"Typewriter-Regular\"}},Wr={vec:[\"vec\",.471,.714],oiintSize1:[\"oiintSize1\",.957,.499],oiintSize2:[\"oiintSize2\",1.472,.659],oiiintSize1:[\"oiiintSize1\",1.304,.499],oiiintSize2:[\"oiiintSize2\",1.98,.659]},Zr=function(e,t){var a=Wr[e],n=a[0],s=a[1],u=a[2],h=new E0(n),c=new S0([h],{width:A(s),height:A(u),style:\"width:\"+A(s),viewBox:\"0 0 \"+1e3*s+\" \"+1e3*u,preserveAspectRatio:\"xMinYMin\"}),d=V0([\"katex-overlay\"],[c],t);return d.height=u,d.style.height=A(u),d.style.width=A(s),d},J={number:3,unit:\"mu\"},Y0={number:4,unit:\"mu\"},B0={number:5,unit:\"mu\"},D1={mord:{mop:J,mbin:Y0,mrel:B0,minner:J},mop:{mord:J,mop:J,mrel:B0,minner:J},mbin:{mord:Y0,mop:Y0,mopen:Y0,minner:Y0},mrel:{mord:B0,mop:B0,mopen:B0,minner:B0},mopen:{},mclose:{mop:J,mbin:Y0,mrel:B0,minner:J},mpunct:{mord:J,mop:J,mrel:B0,mopen:J,mclose:J,mpunct:J,minner:J},minner:{mord:J,mop:J,mbin:Y0,mrel:B0,mopen:J,mpunct:J,minner:J}},q1={mord:{mop:J},mop:{mord:J,mop:J},mbin:{},mrel:{},mopen:{},mclose:{mop:J},mpunct:{},minner:{mop:J}},Kr={},de={},fe={};function B(r){for(var e=r.type,t=r.names,a=r.htmlBuilder,n=r.mathmlBuilder,s=0;s<t.length;++s)Kr[t[s]]=r;e&&(a&&(de[e]=a),n&&(fe[e]=n))}function Z0(r){var e=r.type,t=r.htmlBuilder,a=r.mathmlBuilder;t&&(de[e]=t),a&&(fe[e]=a)}var ve=function(e){return e.type===\"ordgroup\"&&e.body.length===1?e.body[0]:e},e0=function(e){return e.type===\"ordgroup\"?e.body:[e]},E1=new Set([\"leftmost\",\"mbin\",\"mopen\",\"mrel\",\"mop\",\"mpunct\"]),N1=new Set([\"rightmost\",\"mrel\",\"mclose\",\"mpunct\"]),R1={display:I.DISPLAY,text:I.TEXT,script:I.SCRIPT,scriptscript:I.SCRIPTSCRIPT},I1={mord:\"mord\",mop:\"mop\",mbin:\"mbin\",mrel:\"mrel\",mopen:\"mopen\",mclose:\"mclose\",mpunct:\"mpunct\",minner:\"minner\"},n0=function(e,t,a,n){n===void 0&&(n=[null,null]);for(var s=[],u=0;u<e.length;u++){var h=U(e[u],t);if(h instanceof P0){var c=h.children;s.push(...c)}else s.push(h)}if(Yr(s),!a)return s;var d=t;if(e.length===1){var p=e[0];p.type===\"sizing\"?d=t.havingSize(p.size):p.type===\"styling\"&&(d=t.havingStyle(R1[p.style]))}var b=k([n[0]||\"leftmost\"],[],t),y=k([n[1]||\"rightmost\"],[],t),x=a===\"root\";return St(s,(M,T)=>{var C=T.classes[0],q=M.classes[0];C===\"mbin\"&&N1.has(q)?T.classes[0]=\"mord\":q===\"mbin\"&&E1.has(C)&&(M.classes[0]=\"mord\")},{node:b},y,x),St(s,(M,T)=>{var C,q,E=At(T),O=At(M),F=E&&O?M.hasClass(\"mtight\")?(C=q1[E])==null?void 0:C[O]:(q=D1[E])==null?void 0:q[O]:null;if(F)return $r(F,d)},{node:b},y,x),s},St=function(e,t,a,n,s){n&&e.push(n);for(var u=0;u<e.length;u++){var h=e[u],c=Jr(h);if(c){St(c.children,t,a,null,s);continue}var d=!h.hasClass(\"mspace\");if(d){var p=t(h,a.node);p&&(a.insertAfter?a.insertAfter(p):(e.unshift(p),u++))}d?a.node=h:s&&h.hasClass(\"katex-newline\")&&(a.node=k([\"leftmost\"])),a.insertAfter=(b=>y=>{e.splice(b+1,0,y),u++})(u)}n&&e.pop()},Jr=function(e){return e instanceof P0||e instanceof ce||e instanceof W0&&e.hasClass(\"enclosing\")?e:null},zt=function(e,t){var a=Jr(e);if(a){var n=a.children;if(n.length){if(t===\"right\")return zt(n[n.length-1],\"right\");if(t===\"left\")return zt(n[0],\"left\")}}return e},At=function(e,t){if(!e)return null;t&&(e=zt(e,t));var a=e.classes[0];return I1[a]||null},pe=function(e,t){var a=[\"nulldelimiter\"].concat(e.baseSizingClasses());return k(t.concat(a))},U=function(e,t,a){if(!e)return k();if(de[e.type]){var n=de[e.type](e,t);if(a&&t.size!==a.size){n=k(t.sizingClasses(a),[n],t);var s=t.sizeMultiplier/a.sizeMultiplier;n.height*=s,n.depth*=s}return n}else throw new z(\"Got group of unknown type: '\"+e.type+\"'\")};function Be(r,e){var t=k([\"katex-base\"],r,e),a=k([\"katex-strut\"]);return a.style.height=A(t.height+t.depth),t.depth&&(a.style.verticalAlign=A(-t.depth)),t.children.unshift(a),t}function dr(r,e){var t=null;r.length===1&&r[0].type===\"tag\"&&(t=r[0].tag,r=r[0].body);var a=n0(r,e,\"root\"),n;a.length===2&&a[1].hasClass(\"katex-tag\")&&(n=a.pop());for(var s=[],u=[],h=0;h<a.length;h++)if(u.push(a[h]),a[h].hasClass(\"mbin\")||a[h].hasClass(\"mrel\")||a[h].hasClass(\"allowbreak\")){for(var c=!1;h<a.length-1&&a[h+1].hasClass(\"mspace\")&&!a[h+1].hasClass(\"katex-newline\");)h++,u.push(a[h]),a[h].hasClass(\"nobreak\")&&(c=!0);c||(s.push(Be(u,e)),u=[])}else a[h].hasClass(\"katex-newline\")&&(u.pop(),u.length>0&&(s.push(Be(u,e)),u=[]),s.push(a[h]));u.length>0&&s.push(Be(u,e));var d;t?(d=Be(n0(t,e,!0),e),d.classes=[\"katex-tag\"],s.push(d)):n&&s.push(n);var p=k([\"katex-html\"],s);if(p.setAttribute(\"aria-hidden\",\"true\"),d){var b=d.children[0];b.style.height=A(p.height+p.depth),p.depth&&(b.style.verticalAlign=A(-p.depth))}return p}function Qr(r){return new P0(r)}var S=class{constructor(e,t,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=a||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(\"http://www.w3.org/1998/Math/MathML\",this.type);for(var t of Object.entries(this.attributes)){var a=t[0],n=t[1];e.setAttribute(a,n)}this.classes.length>0&&(e.className=U0(this.classes));for(var s=0;s<this.children.length;s++)if(this.children[s]instanceof _&&this.children[s+1]instanceof _){for(var u=this.children[s].toText()+this.children[++s].toText();this.children[s+1]instanceof _;)u+=this.children[++s].toText();e.appendChild(new _(u).toNode())}else e.appendChild(this.children[s].toNode());return e}toMarkup(){var e=\"<\"+this.type;for(var t of Object.entries(this.attributes)){var a=t[0],n=t[1];e+=\" \"+a+'=\"',e+=s0(n),e+='\"'}this.classes.length>0&&(e+=' class =\"'+s0(U0(this.classes))+'\"'),e+=\">\";for(var s=0;s<this.children.length;s++)e+=this.children[s].toMarkup();return e+=\"</\"+this.type+\">\",e}toText(){return this.children.map(e=>e.toText()).join(\"\")}},_=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return s0(this.toText())}toText(){return this.text}},He=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=\"\\u200A\":e>=.1666&&e<=.1667?this.character=\"\\u2009\":e>=.2222&&e<=.2223?this.character=\"\\u2005\":e>=.2777&&e<=.2778?this.character=\"\\u2005\\u200A\":e>=-.05556&&e<=-.05555?this.character=\"\\u200A\\u2063\":e>=-.1667&&e<=-.1666?this.character=\"\\u2009\\u2063\":e>=-.2223&&e<=-.2222?this.character=\"\\u205F\\u2063\":e>=-.2778&&e<=-.2777?this.character=\"\\u2005\\u2063\":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(\"http://www.w3.org/1998/Math/MathML\",\"mspace\");return e.setAttribute(\"width\",A(this.width)),e}toMarkup(){return this.character?\"<mtext>\"+this.character+\"</mtext>\":'<mspace width=\"'+A(this.width)+'\"/>'}toText(){return this.character?this.character:\" \"}},O1=new Set([\"\\\\imath\",\"\\\\jmath\"]),F1=new Set([\"mrow\",\"mtable\"]),g0=function(e,t,a){var n,s;return $[t][e]&&$[t][e].replace&&e.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(Xr,e)&&((a==null||(n=a.fontFamily)==null?void 0:n.slice(4,6))===\"tt\"||(a==null||(s=a.font)==null?void 0:s.slice(4,6))===\"tt\"))&&(e=$[t][e].replace),new _(e)},Ht=function(e){return e.length===1?e[0]:new S(\"mrow\",e)},H1={mathit:\"italic\",boldsymbol:r=>r.type===\"textord\"?\"bold\":\"bold-italic\",mathbf:\"bold\",mathbb:\"double-struck\",mathsfit:\"sans-serif-italic\",mathfrak:\"fraktur\",mathscr:\"script\",mathcal:\"script\",mathsf:\"sans-serif\",mathtt:\"monospace\"},Lt=(r,e)=>{if(r.mode===\"text\"){if(e.fontFamily===\"texttt\")return\"monospace\";if(e.fontFamily===\"textsf\")return e.fontShape===\"textit\"&&e.fontWeight===\"textbf\"?\"sans-serif-bold-italic\":e.fontShape===\"textit\"?\"sans-serif-italic\":e.fontWeight===\"textbf\"?\"bold-sans-serif\":\"sans-serif\";if(e.fontShape===\"textit\"&&e.fontWeight===\"textbf\")return\"bold-italic\";if(e.fontShape===\"textit\")return\"italic\";if(e.fontWeight===\"textbf\")return\"bold\"}var t=e.font;if(!t||t===\"mathnormal\")return null;var a=r.mode,n=H1[t];if(n)return typeof n==\"function\"?n(r):n;var s=r.text;if(O1.has(s))return null;if($[a][s]){var u=$[a][s].replace;u&&(s=u)}var h=kt[t].fontName;return It(s,h,a)?kt[t].variant:null};function nt(r){if(!r)return!1;if(r.type===\"mi\"&&r.children.length===1){var e=r.children[0];return e instanceof _&&e.text===\".\"}else if(r.type===\"mo\"&&r.children.length===1&&r.getAttribute(\"separator\")===\"true\"&&r.getAttribute(\"lspace\")===\"0em\"&&r.getAttribute(\"rspace\")===\"0em\"){var t=r.children[0];return t instanceof _&&t.text===\",\"}else return!1}var v0=function(e,t,a){if(e.length===1){var n=X(e[0],t);return a&&n instanceof S&&n.type===\"mo\"&&(n.setAttribute(\"lspace\",\"0em\"),n.setAttribute(\"rspace\",\"0em\")),[n]}for(var s=[],u,h=0;h<e.length;h++){var c=X(e[h],t);if(c instanceof S&&u instanceof S){if(c.type===\"mtext\"&&u.type===\"mtext\"&&c.getAttribute(\"mathvariant\")===u.getAttribute(\"mathvariant\")){u.children.push(...c.children);continue}else if(c.type===\"mn\"&&u.type===\"mn\"){u.children.push(...c.children);continue}else if(nt(c)&&u.type===\"mn\"){u.children.push(...c.children);continue}else if(c.type===\"mn\"&&nt(u))c.children=[...u.children,...c.children],s.pop();else if((c.type===\"msup\"||c.type===\"msub\")&&c.children.length>=1&&(u.type===\"mn\"||nt(u))){var d=c.children[0];d instanceof S&&d.type===\"mn\"&&(d.children=[...u.children,...d.children],s.pop())}else if(u.type===\"mi\"&&u.children.length===1){var p=u.children[0];if(p instanceof _&&p.text===\"\\u0338\"&&(c.type===\"mo\"||c.type===\"mi\"||c.type===\"mn\")){var b=c.children[0];b instanceof _&&b.text.length>0&&(b.text=b.text.slice(0,1)+\"\\u0338\"+b.text.slice(1),s.pop())}}}s.push(c),u=c}return s},j0=function(e,t,a){return Ht(v0(e,t,a))},X=function(e,t){if(!e)return new S(\"mrow\");if(fe[e.type])return fe[e.type](e,t);throw new z(\"Got group of unknown type: '\"+e.type+\"'\")};function fr(r,e,t,a,n){var s=v0(r,t),u;s.length===1&&s[0]instanceof S&&F1.has(s[0].type)?u=s[0]:u=new S(\"mrow\",s);var h=new S(\"annotation\",[new _(e)]);h.setAttribute(\"encoding\",\"application/x-tex\");var c=new S(\"semantics\",[u,h]),d=new S(\"math\",[c]);d.setAttribute(\"xmlns\",\"http://www.w3.org/1998/Math/MathML\"),a&&d.setAttribute(\"display\",\"block\");var p=n?\"katex\":\"katex-mathml\";return k([p],[d])}var L1=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],vr=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],pr=function(e,t){return t.size<2?e:L1[e-1][t.size-1]},Le=class r{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||r.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||\"\",this.fontFamily=e.fontFamily||\"\",this.fontWeight=e.fontWeight||\"\",this.fontShape=e.fontShape||\"\",this.sizeMultiplier=vr[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(t,e),new r(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:pr(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:vr[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=pr(r.BASESIZE,e);return this.size===t&&this.textSize===r.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:\"\"})}withTextFontWeight(e){return this.extend({fontWeight:e,font:\"\"})}withTextFontShape(e){return this.extend({fontShape:e,font:\"\"})}sizingClasses(e){return e.size!==this.size?[\"katex-sizing\",\"reset-size\"+e.size,\"size\"+this.size]:[]}baseSizingClasses(){return this.size!==r.BASESIZE?[\"katex-sizing\",\"reset-size\"+this.size,\"size\"+r.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=k1(this.size)),this._fontMetrics}getColor(){return this.phantom?\"transparent\":this.color}};Le.BASESIZE=6;var G1=function(e){return new Le({style:e.displayMode?I.DISPLAY:I.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},P1=function(e,t){if(t.displayMode){var a=[\"katex-display\"];t.leqno&&a.push(\"leqno\"),t.fleqn&&a.push(\"fleqn\"),e=k(a,[e])}return e},U1=function(e,t,a){var n=G1(a),s;if(a.output===\"mathml\")return fr(e,t,n,a.displayMode,!0);if(a.output===\"html\"){var u=dr(e,n);s=k([\"katex\"],[u])}else{var h=fr(e,t,n,a.displayMode,!1),c=dr(e,n);s=k([\"katex\"],[h,c])}return P1(s,a)};var V1={widehat:\"^\",widecheck:\"\\u02C7\",widetilde:\"~\",utilde:\"~\",overleftarrow:\"\\u2190\",underleftarrow:\"\\u2190\",xleftarrow:\"\\u2190\",overrightarrow:\"\\u2192\",underrightarrow:\"\\u2192\",xrightarrow:\"\\u2192\",underbrace:\"\\u23DF\",overbrace:\"\\u23DE\",underbracket:\"\\u23B5\",overbracket:\"\\u23B4\",overgroup:\"\\u23E0\",undergroup:\"\\u23E1\",overleftrightarrow:\"\\u2194\",underleftrightarrow:\"\\u2194\",xleftrightarrow:\"\\u2194\",Overrightarrow:\"\\u21D2\",xRightarrow:\"\\u21D2\",overleftharpoon:\"\\u21BC\",xleftharpoonup:\"\\u21BC\",overrightharpoon:\"\\u21C0\",xrightharpoonup:\"\\u21C0\",xLeftarrow:\"\\u21D0\",xLeftrightarrow:\"\\u21D4\",xhookleftarrow:\"\\u21A9\",xhookrightarrow:\"\\u21AA\",xmapsto:\"\\u21A6\",xrightharpoondown:\"\\u21C1\",xleftharpoondown:\"\\u21BD\",xrightleftharpoons:\"\\u21CC\",xleftrightharpoons:\"\\u21CB\",xtwoheadleftarrow:\"\\u219E\",xtwoheadrightarrow:\"\\u21A0\",xlongequal:\"=\",xtofrom:\"\\u21C4\",xrightleftarrows:\"\\u21C4\",xrightequilibrium:\"\\u21CC\",xleftequilibrium:\"\\u21CB\",\"\\\\cdrightarrow\":\"\\u2192\",\"\\\\cdleftarrow\":\"\\u2190\",\"\\\\cdlongequal\":\"=\"},je=function(e){var t=new S(\"mo\",[new _(V1[e.replace(/^\\\\/,\"\")])]);return t.setAttribute(\"stretchy\",\"true\"),t},j1={overrightarrow:[[\"rightarrow\"],.888,522,\"xMaxYMin\"],overleftarrow:[[\"leftarrow\"],.888,522,\"xMinYMin\"],underrightarrow:[[\"rightarrow\"],.888,522,\"xMaxYMin\"],underleftarrow:[[\"leftarrow\"],.888,522,\"xMinYMin\"],xrightarrow:[[\"rightarrow\"],1.469,522,\"xMaxYMin\"],\"\\\\cdrightarrow\":[[\"rightarrow\"],3,522,\"xMaxYMin\"],xleftarrow:[[\"leftarrow\"],1.469,522,\"xMinYMin\"],\"\\\\cdleftarrow\":[[\"leftarrow\"],3,522,\"xMinYMin\"],Overrightarrow:[[\"doublerightarrow\"],.888,560,\"xMaxYMin\"],xRightarrow:[[\"doublerightarrow\"],1.526,560,\"xMaxYMin\"],xLeftarrow:[[\"doubleleftarrow\"],1.526,560,\"xMinYMin\"],overleftharpoon:[[\"leftharpoon\"],.888,522,\"xMinYMin\"],xleftharpoonup:[[\"leftharpoon\"],.888,522,\"xMinYMin\"],xleftharpoondown:[[\"leftharpoondown\"],.888,522,\"xMinYMin\"],overrightharpoon:[[\"rightharpoon\"],.888,522,\"xMaxYMin\"],xrightharpoonup:[[\"rightharpoon\"],.888,522,\"xMaxYMin\"],xrightharpoondown:[[\"rightharpoondown\"],.888,522,\"xMaxYMin\"],xlongequal:[[\"longequal\"],.888,334,\"xMinYMin\"],\"\\\\cdlongequal\":[[\"longequal\"],3,334,\"xMinYMin\"],xtwoheadleftarrow:[[\"twoheadleftarrow\"],.888,334,\"xMinYMin\"],xtwoheadrightarrow:[[\"twoheadrightarrow\"],.888,334,\"xMaxYMin\"],overleftrightarrow:[[\"leftarrow\",\"rightarrow\"],.888,522],overbrace:[[\"leftbrace\",\"midbrace\",\"rightbrace\"],1.6,548],underbrace:[[\"leftbraceunder\",\"midbraceunder\",\"rightbraceunder\"],1.6,548],underleftrightarrow:[[\"leftarrow\",\"rightarrow\"],.888,522],xleftrightarrow:[[\"leftarrow\",\"rightarrow\"],1.75,522],xLeftrightarrow:[[\"doubleleftarrow\",\"doublerightarrow\"],1.75,560],xrightleftharpoons:[[\"leftharpoondownplus\",\"rightharpoonplus\"],1.75,716],xleftrightharpoons:[[\"leftharpoonplus\",\"rightharpoondownplus\"],1.75,716],xhookleftarrow:[[\"leftarrow\",\"righthook\"],1.08,522],xhookrightarrow:[[\"lefthook\",\"rightarrow\"],1.08,522],overlinesegment:[[\"leftlinesegment\",\"rightlinesegment\"],.888,522],underlinesegment:[[\"leftlinesegment\",\"rightlinesegment\"],.888,522],overbracket:[[\"leftbracketover\",\"rightbracketover\"],1.6,440],underbracket:[[\"leftbracketunder\",\"rightbracketunder\"],1.6,410],overgroup:[[\"leftgroup\",\"rightgroup\"],.888,342],undergroup:[[\"leftgroupunder\",\"rightgroupunder\"],.888,342],xmapsto:[[\"leftmapsto\",\"rightarrow\"],1.5,522],xtofrom:[[\"leftToFrom\",\"rightToFrom\"],1.75,528],xrightleftarrows:[[\"baraboveleftarrow\",\"rightarrowabovebar\"],1.75,901],xrightequilibrium:[[\"baraboveshortleftharpoon\",\"rightharpoonaboveshortbar\"],1.75,716],xleftequilibrium:[[\"shortbaraboveleftharpoon\",\"shortrightharpoonabovebar\"],1.75,716]},X1=new Set([\"widehat\",\"widecheck\",\"widetilde\",\"utilde\"]),Xe=function(e,t){function a(){var c=4e5,d=e.label.slice(1);if(X1.has(d)&&\"base\"in e){var p=e.base.type===\"ordgroup\"?e.base.body.length:1,b,y,x;if(p>5)d===\"widehat\"||d===\"widecheck\"?(b=420,c=2364,x=.42,y=d+\"4\"):(b=312,c=2340,x=.34,y=\"tilde4\");else{var M=[1,1,2,2,3,3][p];d===\"widehat\"||d===\"widecheck\"?(c=[0,1062,2364,2364,2364][M],b=[0,239,300,360,420][M],x=[0,.24,.3,.3,.36,.42][M],y=d+M):(c=[0,600,1033,2339,2340][M],b=[0,260,286,306,312][M],x=[0,.26,.286,.3,.306,.34][M],y=\"tilde\"+M)}var T=new E0(y),C=new S0([T],{width:\"100%\",height:A(x),viewBox:\"0 0 \"+c+\" \"+b,preserveAspectRatio:\"none\"});return{span:V0([],[C],t),minWidth:0,height:x}}else{var q=[],E=j1[d];if(!E)throw new Error('No SVG data for \"'+d+'\".');var O=E[0],F=E[1],G=E[2],L=G/1e3,P=O.length,j,Y;if(P===1){if(E.length!==4)throw new Error('Expected 4-tuple for single-path SVG data \"'+d+'\".');j=[\"hide-tail\"],Y=[E[3]]}else if(P===2)j=[\"halfarrow-left\",\"halfarrow-right\"],Y=[\"xMinYMin\",\"xMaxYMin\"];else if(P===3)j=[\"brace-left\",\"brace-center\",\"brace-right\"],Y=[\"xMinYMin\",\"xMidYMin\",\"xMaxYMin\"];else throw new Error(`Correct katexImagesData or update code here to support\n                    `+P+\" children.\");for(var Z=0;Z<P;Z++){var c0=new E0(O[Z]),r0=new S0([c0],{width:\"400em\",height:A(L),viewBox:\"0 0 \"+c+\" \"+G,preserveAspectRatio:Y[Z]+\" slice\"}),T0=V0([j[Z]],[r0],t);if(P===1)return{span:T0,minWidth:F,height:L};T0.style.height=A(L),q.push(T0)}return{span:k([\"katex-stretchy\"],q,t),minWidth:F,height:L}}}var n=a(),s=n.span,u=n.minWidth,h=n.height;return s.height=h,s.style.height=A(h),u>0&&(s.style.minWidth=A(u)),s},Y1=function(e,t,a,n,s){var u,h=e.height+e.depth+a+n;if(/fbox|color|angl/.test(t)){if(u=k([\"katex-stretchy\",t],[],s),t===\"fbox\"){var c=s.color&&s.getColor();c&&(u.style.borderColor=c)}}else{var d=[];/^[bx]cancel$/.test(t)&&d.push(new Oe({x1:\"0\",y1:\"0\",x2:\"100%\",y2:\"100%\",\"stroke-width\":\"0.046em\"})),/^x?cancel$/.test(t)&&d.push(new Oe({x1:\"0\",y1:\"100%\",x2:\"100%\",y2:\"0\",\"stroke-width\":\"0.046em\"}));var p=new S0(d,{width:\"100%\",height:A(h)});u=V0([],[p],s)}return u.height=h,u.style.height=A(h),u},$1=[\"bin\",\"close\",\"inner\",\"open\",\"punct\",\"rel\"],W1=[\"accent-token\",\"mathord\",\"op-token\",\"spacing\",\"textord\"],Z1=new Set($1),K1=new Set(W1);function J1(r){return Z1.has(r)}function H(r,e){if(!r||r.type!==e)throw new Error(\"Expected node of type \"+e+\", but got \"+(r?\"node of type \"+r.type:String(r)));return r}function Ye(r){var e=$e(r);if(!e)throw new Error(\"Expected node of symbol group type, but got \"+(r?\"node of type \"+r.type:String(r)));return e}function $e(r){return r.type===\"atom\"||K1.has(r.type)?r:null}function Gt(r,e,t){var a=\"\";for(var n of r.body)if(n.type===\"textord\")a+=n.text;else if(t&&n.type===\"spacing\"&&n.text===\" \")a+=\" \";else throw new z(e,r);return a}var _r=r=>{if(r instanceof m0)return r;if(w1(r)&&r.children.length===1)return _r(r.children[0])},ea=(r,e)=>{var t,a,n;r&&r.type===\"supsub\"?(a=H(r.base,\"accent\"),t=a.base,r.base=t,n=x1(U(r,e)),r.base=a):(a=H(r,\"accent\"),t=a.base);var s=U(t,e.havingCrampedStyle()),u=a.isShifty&&N0(t),h=0;if(u){var c,d;h=(c=(d=_r(s))==null?void 0:d.skew)!=null?c:0}var p=a.label===\"\\\\c\",b=p?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),y;if(a.isStretchy)y=Xe(a,e),y=V({positionType:\"firstBaseline\",children:[{type:\"elem\",elem:s},{type:\"elem\",elem:y,wrapperClasses:[\"svg-align\"],wrapperStyle:h>0?{width:\"calc(100% - \"+A(2*h)+\")\",marginLeft:A(2*h)}:void 0}]});else{var x,M;a.label===\"\\\\vec\"?(x=Zr(\"vec\",e),M=Wr.vec[1]):(x=Ve({type:\"textord\",mode:a.mode,text:a.label},e),x=y1(x),x.italic=0,M=x.width,p&&(b+=x.depth)),y=k([\"accent-body\"],[x]);var T=a.label===\"\\\\textcircled\";T&&(y.classes.push(\"accent-full\"),b=s.height);var C=h;T||(C-=M/2),y.style.left=A(C),a.label===\"\\\\textcircled\"&&(y.style.top=\".2em\"),y=V({positionType:\"firstBaseline\",children:[{type:\"elem\",elem:s},{type:\"kern\",size:-b},{type:\"elem\",elem:y}]})}var q=k([\"mord\",\"katex-accent\"],[y],e);return n?(n.children[0]=q,n.height=Math.max(q.height,n.height),n.classes[0]=\"mord\",n):q},Q1=(r,e)=>{var t=r.isStretchy?je(r.label):new S(\"mo\",[g0(r.label,r.mode)]),a=new S(\"mover\",[X(r.base,e),t]);return a.setAttribute(\"accent\",\"true\"),a},_1=new RegExp([\"\\\\acute\",\"\\\\grave\",\"\\\\ddot\",\"\\\\tilde\",\"\\\\bar\",\"\\\\breve\",\"\\\\check\",\"\\\\hat\",\"\\\\vec\",\"\\\\dot\",\"\\\\mathring\"].map(r=>\"\\\\\"+r).join(\"|\"));B({type:\"accent\",names:[\"\\\\acute\",\"\\\\grave\",\"\\\\ddot\",\"\\\\tilde\",\"\\\\bar\",\"\\\\breve\",\"\\\\check\",\"\\\\hat\",\"\\\\vec\",\"\\\\dot\",\"\\\\mathring\",\"\\\\widecheck\",\"\\\\widehat\",\"\\\\widetilde\",\"\\\\overrightarrow\",\"\\\\overleftarrow\",\"\\\\Overrightarrow\",\"\\\\overleftrightarrow\",\"\\\\overgroup\",\"\\\\overlinesegment\",\"\\\\overleftharpoon\",\"\\\\overrightharpoon\"],numArgs:1,handler:(r,e)=>{var t=ve(e[0]),a=!_1.test(r.funcName),n=!a||r.funcName===\"\\\\widehat\"||r.funcName===\"\\\\widetilde\"||r.funcName===\"\\\\widecheck\";return{type:\"accent\",mode:r.parser.mode,label:r.funcName,isStretchy:a,isShifty:n,base:t}},htmlBuilder:ea,mathmlBuilder:Q1});B({type:\"accent\",names:[\"\\\\'\",\"\\\\`\",\"\\\\^\",\"\\\\~\",\"\\\\=\",\"\\\\u\",\"\\\\.\",'\\\\\"',\"\\\\c\",\"\\\\r\",\"\\\\H\",\"\\\\v\",\"\\\\textcircled\"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[\"primitive\"],handler:(r,e)=>{var t=e[0],a=r.parser.mode;return a===\"math\"&&(r.parser.settings.reportNonstrict(\"mathVsTextAccents\",\"LaTeX's accent \"+r.funcName+\" works only in text mode\"),a=\"text\"),{type:\"accent\",mode:a,label:r.funcName,isStretchy:!1,isShifty:!0,base:t}}});B({type:\"accentUnder\",names:[\"\\\\underleftarrow\",\"\\\\underrightarrow\",\"\\\\underleftrightarrow\",\"\\\\undergroup\",\"\\\\underlinesegment\",\"\\\\utilde\"],numArgs:1,handler:(r,e)=>{var t=r.parser,a=r.funcName,n=e[0];return{type:\"accentUnder\",mode:t.mode,label:a,base:n}},htmlBuilder:(r,e)=>{var t=U(r.base,e),a=Xe(r,e),n=r.label===\"\\\\utilde\"?.12:0,s=V({positionType:\"top\",positionData:t.height,children:[{type:\"elem\",elem:a,wrapperClasses:[\"svg-align\"]},{type:\"kern\",size:n},{type:\"elem\",elem:t}]});return k([\"mord\",\"accentunder\"],[s],e)},mathmlBuilder:(r,e)=>{var t=je(r.label),a=new S(\"munder\",[X(r.base,e),t]);return a.setAttribute(\"accentunder\",\"true\"),a}});var De=r=>{var e=new S(\"mpadded\",r?[r]:[]);return e.setAttribute(\"width\",\"+0.6em\"),e.setAttribute(\"lspace\",\"0.3em\"),e};B({type:\"xArrow\",names:[\"\\\\xleftarrow\",\"\\\\xrightarrow\",\"\\\\xLeftarrow\",\"\\\\xRightarrow\",\"\\\\xleftrightarrow\",\"\\\\xLeftrightarrow\",\"\\\\xhookleftarrow\",\"\\\\xhookrightarrow\",\"\\\\xmapsto\",\"\\\\xrightharpoondown\",\"\\\\xrightharpoonup\",\"\\\\xleftharpoondown\",\"\\\\xleftharpoonup\",\"\\\\xrightleftharpoons\",\"\\\\xleftrightharpoons\",\"\\\\xlongequal\",\"\\\\xtwoheadrightarrow\",\"\\\\xtwoheadleftarrow\",\"\\\\xtofrom\",\"\\\\xrightleftarrows\",\"\\\\xrightequilibrium\",\"\\\\xleftequilibrium\",\"\\\\\\\\cdrightarrow\",\"\\\\\\\\cdleftarrow\",\"\\\\\\\\cdlongequal\"],numArgs:1,numOptionalArgs:1,handler(r,e,t){var a=r.parser,n=r.funcName;return{type:\"xArrow\",mode:a.mode,label:n,body:e[0],below:t[0]}},htmlBuilder(r,e){var t=e.style,a=e.havingStyle(t.sup()),n=ne(U(r.body,a,e),e),s=r.label.slice(0,2)===\"\\\\x\"?\"x\":\"cd\";n.classes.push(s+\"-arrow-pad\");var u;r.below&&(a=e.havingStyle(t.sub()),u=ne(U(r.below,a,e),e),u.classes.push(s+\"-arrow-pad\"));var h=Xe(r,e),c=-e.fontMetrics().axisHeight+.5*h.height,d=-e.fontMetrics().axisHeight-.5*h.height-.111;(n.depth>.25||r.label===\"\\\\xleftequilibrium\")&&(d-=n.depth);var p;if(u){var b=-e.fontMetrics().axisHeight+u.height+.5*h.height+.111;p=V({positionType:\"individualShift\",children:[{type:\"elem\",elem:n,shift:d},{type:\"elem\",elem:h,shift:c,wrapperClasses:[\"svg-align\"]},{type:\"elem\",elem:u,shift:b}]})}else p=V({positionType:\"individualShift\",children:[{type:\"elem\",elem:n,shift:d},{type:\"elem\",elem:h,shift:c,wrapperClasses:[\"svg-align\"]}]});return k([\"mrel\",\"x-arrow\"],[p],e)},mathmlBuilder(r,e){var t=je(r.label);t.setAttribute(\"minsize\",r.label.charAt(0)===\"x\"?\"1.75em\":\"3.0em\");var a;if(r.body){var n=De(X(r.body,e));if(r.below){var s=De(X(r.below,e));a=new S(\"munderover\",[t,s,n])}else a=new S(\"mover\",[t,n])}else if(r.below){var u=De(X(r.below,e));a=new S(\"munder\",[t,u])}else a=De(),a=new S(\"mover\",[t,a]);return a}});function e4(r,e){var t=n0(r.body,e,!0);return k([r.mclass],t,e)}function t4(r,e){var t,a=v0(r.body,e);return r.mclass===\"minner\"?t=new S(\"mpadded\",a):r.mclass===\"mord\"?r.isCharacterBox?(t=a[0],t.type=\"mi\"):t=new S(\"mi\",a):(r.isCharacterBox?(t=a[0],t.type=\"mo\"):t=new S(\"mo\",a),r.mclass===\"mbin\"?(t.attributes.lspace=\"0.22em\",t.attributes.rspace=\"0.22em\"):r.mclass===\"mpunct\"?(t.attributes.lspace=\"0em\",t.attributes.rspace=\"0.17em\"):(r.mclass===\"mopen\"||r.mclass===\"mclose\")&&(t.attributes.lspace=\"0em\",t.attributes.rspace=\"0em\")),t}B({type:\"mclass\",names:[\"\\\\mathord\",\"\\\\mathbin\",\"\\\\mathrel\",\"\\\\mathopen\",\"\\\\mathclose\",\"\\\\mathpunct\",\"\\\\mathinner\"],numArgs:1,primitive:!0,handler(r,e){var t=r.parser,a=r.funcName,n=e[0];return{type:\"mclass\",mode:t.mode,mclass:\"m\"+a.slice(5),body:e0(n),isCharacterBox:N0(n)}},htmlBuilder:e4,mathmlBuilder:t4});var We=r=>{var e=r.type===\"ordgroup\"&&r.body.length?r.body[0]:r;return e.type===\"atom\"&&(e.family===\"bin\"||e.family===\"rel\")?\"m\"+e.family:\"mord\"};B({type:\"mclass\",names:[\"\\\\@binrel\"],numArgs:2,handler(r,e){var t=r.parser;return{type:\"mclass\",mode:t.mode,mclass:We(e[0]),body:e0(e[1]),isCharacterBox:N0(e[1])}}});B({type:\"mclass\",names:[\"\\\\stackrel\",\"\\\\overset\",\"\\\\underset\"],numArgs:2,handler(r,e){var t=r.parser,a=r.funcName,n=e[1],s=e[0],u;a!==\"\\\\stackrel\"?u=We(n):u=\"mrel\";var h={type:\"op\",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!==\"\\\\stackrel\",body:e0(n)},c=a===\"\\\\underset\"?{type:\"supsub\",mode:s.mode,base:h,sub:s}:{type:\"supsub\",mode:s.mode,base:h,sup:s};return{type:\"mclass\",mode:t.mode,mclass:u,body:[c],isCharacterBox:N0(c)}}});B({type:\"pmb\",names:[\"\\\\pmb\"],numArgs:1,allowedInText:!0,handler(r,e){var t=r.parser;return{type:\"pmb\",mode:t.mode,mclass:We(e[0]),body:e0(e[0])}},htmlBuilder(r,e){var t=n0(r.body,e,!0),a=k([r.mclass],t,e);return a.style.textShadow=\"0.02em 0.01em 0.04px\",a},mathmlBuilder(r,e){var t=v0(r.body,e),a=new S(\"mstyle\",t);return a.setAttribute(\"style\",\"text-shadow: 0.02em 0.01em 0.04px\"),a}});var r4={\">\":\"\\\\\\\\cdrightarrow\",\"<\":\"\\\\\\\\cdleftarrow\",\"=\":\"\\\\\\\\cdlongequal\",A:\"\\\\uparrow\",V:\"\\\\downarrow\",\"|\":\"\\\\Vert\",\".\":\"no arrow\"},gr=()=>({type:\"styling\",body:[],mode:\"math\",style:\"display\",resetFont:!0}),br=r=>r.type===\"textord\"&&r.text===\"@\",a4=(r,e)=>(r.type===\"mathord\"||r.type===\"atom\")&&r.text===e;function n4(r,e,t){var a=r4[r];switch(a){case\"\\\\\\\\cdrightarrow\":case\"\\\\\\\\cdleftarrow\":return t.callFunction(a,[e[0]],[e[1]]);case\"\\\\uparrow\":case\"\\\\downarrow\":{var n=t.callFunction(\"\\\\\\\\cdleft\",[e[0]],[]),s={type:\"atom\",text:a,mode:\"math\",family:\"rel\"},u=t.callFunction(\"\\\\Big\",[s],[]),h=t.callFunction(\"\\\\\\\\cdright\",[e[1]],[]),c={type:\"ordgroup\",mode:\"math\",body:[n,u,h]};return t.callFunction(\"\\\\\\\\cdparent\",[c],[])}case\"\\\\\\\\cdlongequal\":return t.callFunction(\"\\\\\\\\cdlongequal\",[],[]);case\"\\\\Vert\":{var d={type:\"textord\",text:\"\\\\Vert\",mode:\"math\"};return t.callFunction(\"\\\\Big\",[d],[])}default:return{type:\"textord\",text:\" \",mode:\"math\"}}}function i4(r){var e=[];for(r.gullet.beginGroup(),r.gullet.macros.set(\"\\\\cr\",\"\\\\\\\\\\\\relax\"),r.gullet.beginGroup();;){e.push(r.parseExpression(!1,\"\\\\\\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();var t=r.fetch().text;if(t===\"&\"||t===\"\\\\\\\\\")r.consume();else if(t===\"\\\\end\"){e[e.length-1].length===0&&e.pop();break}else throw new z(\"Expected \\\\\\\\ or \\\\cr or \\\\end\",r.nextToken)}for(var a=[],n=[a],s=0;s<e.length;s++){for(var u=e[s],h=gr(),c=0;c<u.length;c++)if(!br(u[c]))h.body.push(u[c]);else{a.push(h),c+=1;var d=Ye(u[c]).text,p=new Array(2);if(p[0]={type:\"ordgroup\",mode:\"math\",body:[]},p[1]={type:\"ordgroup\",mode:\"math\",body:[]},!\"=|.\".includes(d))if(\"<>AV\".includes(d))for(var b=0;b<2;b++){for(var y=!0,x=c+1;x<u.length;x++){if(a4(u[x],d)){y=!1,c=x;break}if(br(u[x]))throw new z(\"Missing a \"+d+\" character to complete a CD arrow.\",u[x]);p[b].body.push(u[x])}if(y)throw new z(\"Missing a \"+d+\" character to complete a CD arrow.\",u[c])}else throw new z('Expected one of \"<>AV=|.\" after @',u[c]);var M=n4(d,p,r),T={type:\"styling\",body:[M],mode:\"math\",style:\"display\",resetFont:!0};a.push(T),h=gr()}s%2===0?a.push(h):a.shift(),a=[],n.push(a)}r.gullet.endGroup(),r.gullet.endGroup();var C=new Array(n[0].length).fill({type:\"align\",align:\"c\",pregap:.25,postgap:.25});return{type:\"array\",mode:\"math\",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:\"CD\",hLinesBeforeRow:new Array(n.length+1).fill([])}}B({type:\"cdlabel\",names:[\"\\\\\\\\cdleft\",\"\\\\\\\\cdright\"],numArgs:1,handler(r,e){var t=r.parser,a=r.funcName;return{type:\"cdlabel\",mode:t.mode,side:a.slice(4),label:e[0]}},htmlBuilder(r,e){var t=e.havingStyle(e.style.sup()),a=ne(U(r.label,t,e),e);return a.classes.push(\"cd-label-\"+r.side),a.style.bottom=A(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(r,e){var t=new S(\"mrow\",[X(r.label,e)]);return t=new S(\"mpadded\",[t]),t.setAttribute(\"width\",\"0\"),r.side===\"left\"&&t.setAttribute(\"lspace\",\"-1width\"),t.setAttribute(\"voffset\",\"0.7em\"),t=new S(\"mstyle\",[t]),t.setAttribute(\"displaystyle\",\"false\"),t.setAttribute(\"scriptlevel\",\"1\"),t}});B({type:\"cdlabelparent\",names:[\"\\\\\\\\cdparent\"],numArgs:1,handler(r,e){var t=r.parser;return{type:\"cdlabelparent\",mode:t.mode,fragment:e[0]}},htmlBuilder(r,e){var t=ne(U(r.fragment,e),e);return t.classes.push(\"cd-vert-arrow\"),t},mathmlBuilder(r,e){return new S(\"mrow\",[X(r.fragment,e)])}});B({type:\"textord\",names:[\"\\\\@char\"],numArgs:1,allowedInText:!0,handler(r,e){var t=r.parser,a=H(e[0],\"ordgroup\"),n=Gt(a,\"\\\\@char has non-numeric argument\"),s=parseInt(n),u;if(isNaN(s))throw new z(\"\\\\@char has non-numeric argument \"+n);if(s<0||s>1114111)throw new z(\"\\\\@char with invalid code point \"+n);return s<=65535?u=String.fromCharCode(s):(s-=65536,u=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:\"textord\",mode:t.mode,text:u}}});var s4=(r,e)=>{var t=n0(r.body,e.withColor(r.color),!1);return I0(t)},l4=(r,e)=>{var t=v0(r.body,e.withColor(r.color)),a=new S(\"mstyle\",t);return a.setAttribute(\"mathcolor\",r.color),a};B({type:\"color\",names:[\"\\\\textcolor\"],numArgs:2,allowedInText:!0,argTypes:[\"color\",\"original\"],handler(r,e){var t=r.parser,a=H(e[0],\"color-token\").color,n=e[1];return{type:\"color\",mode:t.mode,color:a,body:e0(n)}},htmlBuilder:s4,mathmlBuilder:l4});B({type:\"color\",names:[\"\\\\color\"],numArgs:1,allowedInText:!0,argTypes:[\"color\"],handler(r,e){var t=r.parser,a=r.breakOnTokenText,n=H(e[0],\"color-token\").color;t.gullet.macros.set(\"\\\\current@color\",n);var s=t.parseExpression(!0,a);return{type:\"color\",mode:t.mode,color:n,body:s}}});B({type:\"cr\",names:[\"\\\\\\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(r,e,t){var a=r.parser,n=a.gullet.future().text===\"[\"?a.parseSizeGroup(!0):null,s=!a.settings.displayMode||!a.settings.useStrictBehavior(\"newLineInDisplayMode\",\"In LaTeX, \\\\\\\\ or \\\\newline does nothing in display mode\");return{type:\"cr\",mode:a.mode,newLine:s,size:n&&H(n,\"size\").value}},htmlBuilder(r,e){var t=k([\"mspace\"],[],e);return r.newLine&&(t.classes.push(\"katex-newline\"),r.size&&(t.style.marginTop=A(Q(r.size,e)))),t},mathmlBuilder(r,e){var t=new S(\"mspace\");return r.newLine&&(t.setAttribute(\"linebreak\",\"newline\"),r.size&&t.setAttribute(\"height\",A(Q(r.size,e)))),t}});var Mt={\"\\\\global\":\"\\\\global\",\"\\\\long\":\"\\\\\\\\globallong\",\"\\\\\\\\globallong\":\"\\\\\\\\globallong\",\"\\\\def\":\"\\\\gdef\",\"\\\\gdef\":\"\\\\gdef\",\"\\\\edef\":\"\\\\xdef\",\"\\\\xdef\":\"\\\\xdef\",\"\\\\let\":\"\\\\\\\\globallet\",\"\\\\futurelet\":\"\\\\\\\\globalfuture\"},ta=r=>{var e=r.text;if(/^(?:[\\\\{}$&#^_]|EOF)$/.test(e))throw new z(\"Expected a control sequence\",r);return e},u4=r=>{var e=r.gullet.popToken();return e.text===\"=\"&&(e=r.gullet.popToken(),e.text===\" \"&&(e=r.gullet.popToken())),e},ra=(r,e,t,a)=>{var n=r.gullet.macros.get(t.text);n==null&&(t.noexpand=!0,n={tokens:[t],numArgs:0,unexpandable:!r.gullet.isExpandable(t.text)}),r.gullet.macros.set(e,n,a)};B({type:\"internal\",names:[\"\\\\global\",\"\\\\long\",\"\\\\\\\\globallong\"],numArgs:0,allowedInText:!0,handler(r){var e=r.parser,t=r.funcName;e.consumeSpaces();var a=e.fetch();if(Mt[a.text])return(t===\"\\\\global\"||t===\"\\\\\\\\globallong\")&&(a.text=Mt[a.text]),H(e.parseFunction(),\"internal\");throw new z(\"Invalid token after macro prefix\",a)}});B({type:\"internal\",names:[\"\\\\def\",\"\\\\gdef\",\"\\\\edef\",\"\\\\xdef\"],numArgs:0,allowedInText:!0,primitive:!0,handler(r){var e=r.parser,t=r.funcName,a=e.gullet.popToken(),n=a.text;if(/^(?:[\\\\{}$&#^_]|EOF)$/.test(n))throw new z(\"Expected a control sequence\",a);for(var s=0,u,h=[[]];e.gullet.future().text!==\"{\";)if(a=e.gullet.popToken(),a.text===\"#\"){if(e.gullet.future().text===\"{\"){u=e.gullet.future(),h[s].push(\"{\");break}if(a=e.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new z('Invalid argument number \"'+a.text+'\"');if(parseInt(a.text)!==s+1)throw new z('Argument number \"'+a.text+'\" out of order');s++,h.push([])}else{if(a.text===\"EOF\")throw new z(\"Expected a macro definition\");h[s].push(a.text)}var c=e.gullet.consumeArg(),d=c.tokens;return u&&d.unshift(u),(t===\"\\\\edef\"||t===\"\\\\xdef\")&&(d=e.gullet.expandTokens(d),d.reverse()),e.gullet.macros.set(n,{tokens:d,numArgs:s,delimiters:h},t===Mt[t]),{type:\"internal\",mode:e.mode}}});B({type:\"internal\",names:[\"\\\\let\",\"\\\\\\\\globallet\"],numArgs:0,allowedInText:!0,primitive:!0,handler(r){var e=r.parser,t=r.funcName,a=ta(e.gullet.popToken());e.gullet.consumeSpaces();var n=u4(e);return ra(e,a,n,t===\"\\\\\\\\globallet\"),{type:\"internal\",mode:e.mode}}});B({type:\"internal\",names:[\"\\\\futurelet\",\"\\\\\\\\globalfuture\"],numArgs:0,allowedInText:!0,primitive:!0,handler(r){var e=r.parser,t=r.funcName,a=ta(e.gullet.popToken()),n=e.gullet.popToken(),s=e.gullet.popToken();return ra(e,a,s,t===\"\\\\\\\\globalfuture\"),e.gullet.pushToken(s),e.gullet.pushToken(n),{type:\"internal\",mode:e.mode}}});var oe=function(e,t,a){var n=$.math[e]&&$.math[e].replace,s=It(n||e,t,a);if(!s)throw new Error(\"Unsupported symbol \"+e+\" and font size \"+t+\".\");return s},Pt=function(e,t,a,n){var s=a.havingBaseStyle(t),u=k(n.concat(s.sizingClasses(a)),[e],a),h=s.sizeMultiplier/a.sizeMultiplier;return u.height*=h,u.depth*=h,u.maxFontSize=s.sizeMultiplier,u},aa=function(e,t,a){var n=t.havingBaseStyle(a),s=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(\"delimcenter\"),e.style.top=A(s),e.height-=s,e.depth+=s},o4=function(e,t,a,n,s,u){var h=l0(e,\"Main-Regular\",s,n),c=Pt(h,t,n,u);return a&&aa(c,n,t),c},h4=function(e,t,a,n){return l0(e,\"Size\"+t+\"-Regular\",a,n)},na=function(e,t,a,n,s,u){var h=h4(e,t,s,n),c=Pt(k([\"delimsizing\",\"size\"+t],[h],n),I.TEXT,n,u);return a&&aa(c,n,I.TEXT),c},it=function(e,t,a){var n;t===\"Size1-Regular\"?n=\"delim-size1\":n=\"delim-size4\";var s=k([\"delimsizinginner\",n],[k([],[l0(e,t,a)])]);return{type:\"elem\",elem:s}},st=function(e,t,a){var n=D0[\"Size4-Regular\"][e.charCodeAt(0)]?D0[\"Size4-Regular\"][e.charCodeAt(0)][4]:D0[\"Size1-Regular\"][e.charCodeAt(0)][4],s=new E0(\"inner\",d1(e,Math.round(1e3*t))),u=new S0([s],{width:A(n),height:A(t),style:\"width:\"+A(n),viewBox:\"0 0 \"+1e3*n+\" \"+Math.round(1e3*t),preserveAspectRatio:\"xMinYMin\"}),h=V0([],[u],a);return h.height=t,h.style.height=A(t),h.style.width=A(n),{type:\"elem\",elem:h}},Tt=.008,qe={type:\"kern\",size:-1*Tt},m4=new Set([\"|\",\"\\\\lvert\",\"\\\\rvert\",\"\\\\vert\"]),c4=new Set([\"\\\\|\",\"\\\\lVert\",\"\\\\rVert\",\"\\\\Vert\"]),ia=function(e,t,a,n,s,u){var h,c,d,p,b=\"\",y=0;h=d=p=e,c=null;var x=\"Size1-Regular\";e===\"\\\\uparrow\"?d=p=\"\\u23D0\":e===\"\\\\Uparrow\"?d=p=\"\\u2016\":e===\"\\\\downarrow\"?h=d=\"\\u23D0\":e===\"\\\\Downarrow\"?h=d=\"\\u2016\":e===\"\\\\updownarrow\"?(h=\"\\\\uparrow\",d=\"\\u23D0\",p=\"\\\\downarrow\"):e===\"\\\\Updownarrow\"?(h=\"\\\\Uparrow\",d=\"\\u2016\",p=\"\\\\Downarrow\"):m4.has(e)?(d=\"\\u2223\",b=\"vert\",y=333):c4.has(e)?(d=\"\\u2225\",b=\"doublevert\",y=556):e===\"[\"||e===\"\\\\lbrack\"?(h=\"\\u23A1\",d=\"\\u23A2\",p=\"\\u23A3\",x=\"Size4-Regular\",b=\"lbrack\",y=667):e===\"]\"||e===\"\\\\rbrack\"?(h=\"\\u23A4\",d=\"\\u23A5\",p=\"\\u23A6\",x=\"Size4-Regular\",b=\"rbrack\",y=667):e===\"\\\\lfloor\"||e===\"\\u230A\"?(d=h=\"\\u23A2\",p=\"\\u23A3\",x=\"Size4-Regular\",b=\"lfloor\",y=667):e===\"\\\\lceil\"||e===\"\\u2308\"?(h=\"\\u23A1\",d=p=\"\\u23A2\",x=\"Size4-Regular\",b=\"lceil\",y=667):e===\"\\\\rfloor\"||e===\"\\u230B\"?(d=h=\"\\u23A5\",p=\"\\u23A6\",x=\"Size4-Regular\",b=\"rfloor\",y=667):e===\"\\\\rceil\"||e===\"\\u2309\"?(h=\"\\u23A4\",d=p=\"\\u23A5\",x=\"Size4-Regular\",b=\"rceil\",y=667):e===\"(\"||e===\"\\\\lparen\"?(h=\"\\u239B\",d=\"\\u239C\",p=\"\\u239D\",x=\"Size4-Regular\",b=\"lparen\",y=875):e===\")\"||e===\"\\\\rparen\"?(h=\"\\u239E\",d=\"\\u239F\",p=\"\\u23A0\",x=\"Size4-Regular\",b=\"rparen\",y=875):e===\"\\\\{\"||e===\"\\\\lbrace\"?(h=\"\\u23A7\",c=\"\\u23A8\",p=\"\\u23A9\",d=\"\\u23AA\",x=\"Size4-Regular\"):e===\"\\\\}\"||e===\"\\\\rbrace\"?(h=\"\\u23AB\",c=\"\\u23AC\",p=\"\\u23AD\",d=\"\\u23AA\",x=\"Size4-Regular\"):e===\"\\\\lgroup\"||e===\"\\u27EE\"?(h=\"\\u23A7\",p=\"\\u23A9\",d=\"\\u23AA\",x=\"Size4-Regular\"):e===\"\\\\rgroup\"||e===\"\\u27EF\"?(h=\"\\u23AB\",p=\"\\u23AD\",d=\"\\u23AA\",x=\"Size4-Regular\"):e===\"\\\\lmoustache\"||e===\"\\u23B0\"?(h=\"\\u23A7\",p=\"\\u23AD\",d=\"\\u23AA\",x=\"Size4-Regular\"):(e===\"\\\\rmoustache\"||e===\"\\u23B1\")&&(h=\"\\u23AB\",p=\"\\u23A9\",d=\"\\u23AA\",x=\"Size4-Regular\");var M=oe(h,x,s),T=M.height+M.depth,C=oe(d,x,s),q=C.height+C.depth,E=oe(p,x,s),O=E.height+E.depth,F=0,G=1;if(c!==null){var L=oe(c,x,s);F=L.height+L.depth,G=2}var P=T+O+F,j=Math.max(0,Math.ceil((t-P)/(G*q))),Y=P+j*G*q,Z=n.fontMetrics().axisHeight;a&&(Z*=n.sizeMultiplier);var c0=Y/2-Z,r0=[];if(b.length>0){var T0=Y-T-O,x0=Math.round(Y*1e3),b0=f1(b,Math.round(T0*1e3)),O0=new E0(b,b0),K0=A(y/1e3),J0=A(x0/1e3),Je=new S0([O0],{width:K0,height:J0,viewBox:\"0 0 \"+y+\" \"+x0}),F0=V0([],[Je],n);F0.height=x0/1e3,F0.style.width=K0,F0.style.height=J0,r0.push({type:\"elem\",elem:F0})}else{if(r0.push(it(p,x,s)),r0.push(qe),c===null){var H0=Y-T-O+2*Tt;r0.push(st(d,H0,n))}else{var se=(Y-T-O-F)/2+2*Tt;r0.push(st(d,se,n)),r0.push(qe),r0.push(it(c,x,s)),r0.push(qe),r0.push(st(d,se,n))}r0.push(qe),r0.push(it(h,x,s))}var y0=n.havingBaseStyle(I.TEXT),be=V({positionType:\"bottom\",positionData:c0,children:r0});return Pt(k([\"delimsizing\",\"mult\"],[be],y0),I.TEXT,n,u)},lt=80,ut=.08,ot=function(e,t,a,n,s){var u=c1(e,n,a),h=new E0(e,u),c=new S0([h],{width:\"400em\",height:A(t),viewBox:\"0 0 400000 \"+a,preserveAspectRatio:\"xMinYMin slice\"});return V0([\"hide-tail\"],[c],s)},d4=function(e,t){var a=t.havingBaseSizing(),n=ha(\"\\\\surd\",e*a.sizeMultiplier,oa,a),s=a.sizeMultiplier,u=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),h,c,d,p,b;return n.type===\"small\"?(p=1e3+1e3*u+lt,e<1?s=1:e<1.4&&(s=.7),c=(1+u+ut)/s,d=(1+u)/s,h=ot(\"sqrtMain\",c,p,u,t),h.style.minWidth=\"0.853em\",b=.833/s):n.type===\"large\"?(p=(1e3+lt)*he[n.size],d=(he[n.size]+u)/s,c=(he[n.size]+u+ut)/s,h=ot(\"sqrtSize\"+n.size,c,p,u,t),h.style.minWidth=\"1.02em\",b=1/s):(c=e+u+ut,d=e+u,p=Math.floor(1e3*e+u)+lt,h=ot(\"sqrtTall\",c,p,u,t),h.style.minWidth=\"0.742em\",b=1.056),h.height=d,h.style.height=A(c),{span:h,advanceWidth:b,ruleWidth:(t.fontMetrics().sqrtRuleThickness+u)*s}},sa=new Set([\"(\",\"\\\\lparen\",\")\",\"\\\\rparen\",\"[\",\"\\\\lbrack\",\"]\",\"\\\\rbrack\",\"\\\\{\",\"\\\\lbrace\",\"\\\\}\",\"\\\\rbrace\",\"\\\\lfloor\",\"\\\\rfloor\",\"\\u230A\",\"\\u230B\",\"\\\\lceil\",\"\\\\rceil\",\"\\u2308\",\"\\u2309\",\"\\\\surd\"]),f4=new Set([\"\\\\uparrow\",\"\\\\downarrow\",\"\\\\updownarrow\",\"\\\\Uparrow\",\"\\\\Downarrow\",\"\\\\Updownarrow\",\"|\",\"\\\\|\",\"\\\\vert\",\"\\\\Vert\",\"\\\\lvert\",\"\\\\rvert\",\"\\\\lVert\",\"\\\\rVert\",\"\\\\lgroup\",\"\\\\rgroup\",\"\\u27EE\",\"\\u27EF\",\"\\\\lmoustache\",\"\\\\rmoustache\",\"\\u23B0\",\"\\u23B1\"]),la=new Set([\"<\",\">\",\"\\\\langle\",\"\\\\rangle\",\"/\",\"\\\\backslash\",\"\\\\lt\",\"\\\\gt\"]),he=[0,1.2,1.8,2.4,3],ua=function(e,t,a,n,s){if(e===\"<\"||e===\"\\\\lt\"||e===\"\\u27E8\"?e=\"\\\\langle\":(e===\">\"||e===\"\\\\gt\"||e===\"\\u27E9\")&&(e=\"\\\\rangle\"),sa.has(e)||la.has(e))return na(e,t,!1,a,n,s);if(f4.has(e))return ia(e,he[t],!1,a,n,s);throw new z(\"Illegal delimiter: '\"+e+\"'\")},v4=[{type:\"small\",style:I.SCRIPTSCRIPT},{type:\"small\",style:I.SCRIPT},{type:\"small\",style:I.TEXT},{type:\"large\",size:1},{type:\"large\",size:2},{type:\"large\",size:3},{type:\"large\",size:4}],p4=[{type:\"small\",style:I.SCRIPTSCRIPT},{type:\"small\",style:I.SCRIPT},{type:\"small\",style:I.TEXT},{type:\"stack\"}],oa=[{type:\"small\",style:I.SCRIPTSCRIPT},{type:\"small\",style:I.SCRIPT},{type:\"small\",style:I.TEXT},{type:\"large\",size:1},{type:\"large\",size:2},{type:\"large\",size:3},{type:\"large\",size:4},{type:\"stack\"}],g4=function(e){if(e.type===\"small\")return\"Main-Regular\";if(e.type===\"large\")return\"Size\"+e.size+\"-Regular\";if(e.type===\"stack\")return\"Size4-Regular\";var t=e.type;throw new Error(\"Add support for delim type '\"+t+\"' here.\")},ha=function(e,t,a,n){for(var s=Math.min(2,3-n.style.size),u=s;u<a.length;u++){var h=a[u];if(h.type===\"stack\")break;var c=oe(e,g4(h),\"math\"),d=c.height+c.depth;if(h.type===\"small\"){var p=n.havingBaseStyle(h.style);d*=p.sizeMultiplier}if(d>t)return h}return a[a.length-1]},Ct=function(e,t,a,n,s,u){e===\"<\"||e===\"\\\\lt\"||e===\"\\u27E8\"?e=\"\\\\langle\":(e===\">\"||e===\"\\\\gt\"||e===\"\\u27E9\")&&(e=\"\\\\rangle\");var h;la.has(e)?h=v4:sa.has(e)?h=oa:h=p4;var c=ha(e,t,h,n);return c.type===\"small\"?o4(e,c.style,a,n,s,u):c.type===\"large\"?na(e,c.size,a,n,s,u):ia(e,t,a,n,s,u)},ht=function(e,t,a,n,s,u){var h=n.fontMetrics().axisHeight*n.sizeMultiplier,c=901,d=5/n.fontMetrics().ptPerEm,p=Math.max(t-h,a+h),b=Math.max(p/500*c,2*p-d);return Ct(e,b,!0,n,s,u)},yr={\"\\\\bigl\":{mclass:\"mopen\",size:1},\"\\\\Bigl\":{mclass:\"mopen\",size:2},\"\\\\biggl\":{mclass:\"mopen\",size:3},\"\\\\Biggl\":{mclass:\"mopen\",size:4},\"\\\\bigr\":{mclass:\"mclose\",size:1},\"\\\\Bigr\":{mclass:\"mclose\",size:2},\"\\\\biggr\":{mclass:\"mclose\",size:3},\"\\\\Biggr\":{mclass:\"mclose\",size:4},\"\\\\bigm\":{mclass:\"mrel\",size:1},\"\\\\Bigm\":{mclass:\"mrel\",size:2},\"\\\\biggm\":{mclass:\"mrel\",size:3},\"\\\\Biggm\":{mclass:\"mrel\",size:4},\"\\\\big\":{mclass:\"mord\",size:1},\"\\\\Big\":{mclass:\"mord\",size:2},\"\\\\bigg\":{mclass:\"mord\",size:3},\"\\\\Bigg\":{mclass:\"mord\",size:4}},b4=new Set([\"(\",\"\\\\lparen\",\")\",\"\\\\rparen\",\"[\",\"\\\\lbrack\",\"]\",\"\\\\rbrack\",\"\\\\{\",\"\\\\lbrace\",\"\\\\}\",\"\\\\rbrace\",\"\\\\lfloor\",\"\\\\rfloor\",\"\\u230A\",\"\\u230B\",\"\\\\lceil\",\"\\\\rceil\",\"\\u2308\",\"\\u2309\",\"<\",\">\",\"\\\\langle\",\"\\u27E8\",\"\\\\rangle\",\"\\u27E9\",\"\\\\lt\",\"\\\\gt\",\"\\\\lvert\",\"\\\\rvert\",\"\\\\lVert\",\"\\\\rVert\",\"\\\\lgroup\",\"\\\\rgroup\",\"\\u27EE\",\"\\u27EF\",\"\\\\lmoustache\",\"\\\\rmoustache\",\"\\u23B0\",\"\\u23B1\",\"/\",\"\\\\backslash\",\"|\",\"\\\\vert\",\"\\\\|\",\"\\\\Vert\",\"\\\\uparrow\",\"\\\\Uparrow\",\"\\\\downarrow\",\"\\\\Downarrow\",\"\\\\updownarrow\",\"\\\\Updownarrow\",\".\"]);function xr(r){return\"isMiddle\"in r}function Ze(r,e){var t=$e(r);if(t&&b4.has(t.text))return t;throw t?new z(\"Invalid delimiter '\"+t.text+\"' after '\"+e.funcName+\"'\",r):new z(\"Invalid delimiter type '\"+r.type+\"'\",r)}B({type:\"delimsizing\",names:[\"\\\\bigl\",\"\\\\Bigl\",\"\\\\biggl\",\"\\\\Biggl\",\"\\\\bigr\",\"\\\\Bigr\",\"\\\\biggr\",\"\\\\Biggr\",\"\\\\bigm\",\"\\\\Bigm\",\"\\\\biggm\",\"\\\\Biggm\",\"\\\\big\",\"\\\\Big\",\"\\\\bigg\",\"\\\\Bigg\"],numArgs:1,argTypes:[\"primitive\"],handler:(r,e)=>{var t=Ze(ve(e[0]),r);return{type:\"delimsizing\",mode:r.parser.mode,size:yr[r.funcName].size,mclass:yr[r.funcName].mclass,delim:t.text}},htmlBuilder:(r,e)=>r.delim===\".\"?k([r.mclass]):ua(r.delim,r.size,e,r.mode,[r.mclass]),mathmlBuilder:r=>{var e=[];r.delim!==\".\"&&e.push(g0(r.delim,r.mode));var t=new S(\"mo\",e);r.mclass===\"mopen\"||r.mclass===\"mclose\"?t.setAttribute(\"fence\",\"true\"):t.setAttribute(\"fence\",\"false\"),t.setAttribute(\"stretchy\",\"true\");var a=A(he[r.size]);return t.setAttribute(\"minsize\",a),t.setAttribute(\"maxsize\",a),t}});function wr(r){if(!r.body)throw new Error(\"Bug: The leftright ParseNode wasn't fully parsed.\")}B({type:\"leftright-right\",names:[\"\\\\right\"],numArgs:1,primitive:!0,handler:(r,e)=>{var t=r.parser.gullet.macros.get(\"\\\\current@color\");if(t&&typeof t!=\"string\")throw new z(\"\\\\current@color set to non-string in \\\\right\");return{type:\"leftright-right\",mode:r.parser.mode,delim:Ze(e[0],r).text,color:t}}});B({type:\"leftright\",names:[\"\\\\left\"],numArgs:1,primitive:!0,handler:(r,e)=>{var t=Ze(e[0],r),a=r.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect(\"\\\\right\",!1);var s=H(a.parseFunction(),\"leftright-right\");return{type:\"leftright\",mode:a.mode,body:n,left:t.text,right:s.delim,rightColor:s.color}},htmlBuilder:(r,e)=>{wr(r);for(var t=n0(r.body,e,!0,[\"mopen\",\"mclose\"]),a=0,n=0,s=!1,u=0;u<t.length;u++){var h=t[u];xr(h)?s=!0:(a=Math.max(t[u].height,a),n=Math.max(t[u].depth,n))}a*=e.sizeMultiplier,n*=e.sizeMultiplier;var c;if(r.left===\".\"?c=pe(e,[\"mopen\"]):c=ht(r.left,a,n,e,r.mode,[\"mopen\"]),t.unshift(c),s)for(var d=1;d<t.length;d++){var p=t[d];if(xr(p)){var b=p.isMiddle;t[d]=ht(b.delim,a,n,b.options,r.mode,[])}}var y;if(r.right===\".\")y=pe(e,[\"mclose\"]);else{var x=r.rightColor?e.withColor(r.rightColor):e;y=ht(r.right,a,n,x,r.mode,[\"mclose\"])}return t.push(y),k([\"minner\"],t,e)},mathmlBuilder:(r,e)=>{wr(r);var t=v0(r.body,e);if(r.left!==\".\"){var a=new S(\"mo\",[g0(r.left,r.mode)]);a.setAttribute(\"fence\",\"true\"),t.unshift(a)}if(r.right!==\".\"){var n=new S(\"mo\",[g0(r.right,r.mode)]);n.setAttribute(\"fence\",\"true\"),r.rightColor&&n.setAttribute(\"mathcolor\",r.rightColor),t.push(n)}return Ht(t)}});B({type:\"middle\",names:[\"\\\\middle\"],numArgs:1,primitive:!0,handler:(r,e)=>{var t=Ze(e[0],r);if(!r.parser.leftrightDepth)throw new z(\"\\\\middle without preceding \\\\left\",t);return{type:\"middle\",mode:r.parser.mode,delim:t.text}},htmlBuilder:(r,e)=>{var t;return r.delim===\".\"?t=pe(e,[]):(t=ua(r.delim,1,e,r.mode,[]),t.isMiddle={delim:r.delim,options:e}),t},mathmlBuilder:(r,e)=>{var t=r.delim===\"\\\\vert\"||r.delim===\"|\"?g0(\"|\",\"text\"):g0(r.delim,r.mode),a=new S(\"mo\",[t]);return a.setAttribute(\"fence\",\"true\"),a.setAttribute(\"lspace\",\"0.05em\"),a.setAttribute(\"rspace\",\"0.05em\"),a}});var y4=(r,e)=>{var t=ne(U(r.body,e),e),a=r.label.slice(1),n=e.sizeMultiplier,s,u,h=N0(r.body);if(a===\"sout\")s=k([\"katex-stretchy\",\"katex-sout\"]),s.height=e.fontMetrics().defaultRuleThickness/n,u=-.5*e.fontMetrics().xHeight;else if(a===\"phase\"){var c=Q({number:.6,unit:\"pt\"},e),d=Q({number:.35,unit:\"ex\"},e),p=e.havingBaseSizing();n=n/p.sizeMultiplier;var b=t.height+t.depth+c+d;t.style.paddingLeft=A(b/2+c);var y=Math.floor(1e3*b*n),x=h1(y),M=new S0([new E0(\"phase\",x)],{width:\"400em\",height:A(y/1e3),viewBox:\"0 0 400000 \"+y,preserveAspectRatio:\"xMinYMin slice\"});s=V0([\"hide-tail\"],[M],e),s.style.height=A(b),u=t.depth+c+d}else{/cancel/.test(a)?h||t.classes.push(\"cancel-pad\"):a===\"angl\"?t.classes.push(\"anglpad\"):t.classes.push(\"boxpad\");var T,C,q=0;/box/.test(a)?(q=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),T=e.fontMetrics().fboxsep+(a===\"colorbox\"?0:q),C=T):a===\"angl\"?(q=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),T=4*q,C=Math.max(0,.25-t.depth)):(T=h?.2:0,C=T),s=Y1(t,a,T,C,e),/fbox|boxed|fcolorbox/.test(a)?(s.style.borderStyle=\"solid\",s.style.borderWidth=A(q)):a===\"angl\"&&q!==.049&&(s.style.borderTopWidth=A(q),s.style.borderRightWidth=A(q)),u=t.depth+C,r.backgroundColor&&(s.style.backgroundColor=r.backgroundColor,r.borderColor&&(s.style.borderColor=r.borderColor))}var E;if(r.backgroundColor)E=V({positionType:\"individualShift\",children:[{type:\"elem\",elem:s,shift:u},{type:\"elem\",elem:t,shift:0}]});else{var O=/cancel|phase/.test(a)?[\"svg-align\"]:[];E=V({positionType:\"individualShift\",children:[{type:\"elem\",elem:t,shift:0},{type:\"elem\",elem:s,shift:u,wrapperClasses:O}]})}return/cancel/.test(a)&&(E.height=t.height,E.depth=t.depth),/cancel/.test(a)&&!h?k([\"mord\",\"cancel-lap\"],[E],e):k([\"mord\"],[E],e)},x4=(r,e)=>{var t,a=new S(r.label.includes(\"colorbox\")?\"mpadded\":\"menclose\",[X(r.body,e)]);switch(r.label){case\"\\\\cancel\":a.setAttribute(\"notation\",\"updiagonalstrike\");break;case\"\\\\bcancel\":a.setAttribute(\"notation\",\"downdiagonalstrike\");break;case\"\\\\phase\":a.setAttribute(\"notation\",\"phasorangle\");break;case\"\\\\sout\":a.setAttribute(\"notation\",\"horizontalstrike\");break;case\"\\\\fbox\":a.setAttribute(\"notation\",\"box\");break;case\"\\\\angl\":a.setAttribute(\"notation\",\"actuarial\");break;case\"\\\\fcolorbox\":case\"\\\\colorbox\":if(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,a.setAttribute(\"width\",\"+\"+2*t+\"pt\"),a.setAttribute(\"height\",\"+\"+2*t+\"pt\"),a.setAttribute(\"lspace\",t+\"pt\"),a.setAttribute(\"voffset\",t+\"pt\"),r.label===\"\\\\fcolorbox\"){var n=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);a.setAttribute(\"style\",\"border: \"+A(n)+\" solid \"+r.borderColor)}break;case\"\\\\xcancel\":a.setAttribute(\"notation\",\"updiagonalstrike downdiagonalstrike\");break}return r.backgroundColor&&a.setAttribute(\"mathbackground\",r.backgroundColor),a};B({type:\"enclose\",names:[\"\\\\colorbox\"],numArgs:2,allowedInText:!0,argTypes:[\"color\",\"hbox\"],handler(r,e,t){var a=r.parser,n=r.funcName,s=H(e[0],\"color-token\").color,u=e[1];return{type:\"enclose\",mode:a.mode,label:n,backgroundColor:s,body:u}},htmlBuilder:y4,mathmlBuilder:x4});B({type:\"enclose\",names:[\"\\\\fcolorbox\"],numArgs:3,allowedInText:!0,argTypes:[\"color\",\"color\",\"hbox\"],handler(r,e,t){var a=r.parser,n=r.funcName,s=H(e[0],\"color-token\").color,u=H(e[1],\"color-token\").color,h=e[2];return{type:\"enclose\",mode:a.mode,label:n,backgroundColor:u,borderColor:s,body:h}}});B({type:\"enclose\",names:[\"\\\\fbox\"],numArgs:1,argTypes:[\"hbox\"],allowedInText:!0,handler(r,e){var t=r.parser;return{type:\"enclose\",mode:t.mode,label:\"\\\\fbox\",body:e[0]}}});B({type:\"enclose\",names:[\"\\\\cancel\",\"\\\\bcancel\",\"\\\\xcancel\",\"\\\\phase\"],numArgs:1,handler(r,e){var t=r.parser,a=r.funcName,n=e[0];return{type:\"enclose\",mode:t.mode,label:a,body:n}}});B({type:\"enclose\",names:[\"\\\\sout\"],numArgs:1,allowedInText:!0,handler(r,e){var t=r.parser,a=r.funcName;t.mode===\"math\"&&t.settings.reportNonstrict(\"mathVsSout\",\"LaTeX's \\\\sout works only in text mode\");var n=e[0];return{type:\"enclose\",mode:t.mode,label:a,body:n}}});B({type:\"enclose\",names:[\"\\\\angl\"],numArgs:1,argTypes:[\"hbox\"],allowedInText:!1,handler(r,e){var t=r.parser;return{type:\"enclose\",mode:t.mode,label:\"\\\\angl\",body:e[0]}}});var ma={};function z0(r){for(var e=r.type,t=r.names,a=r.props,n=r.handler,s=r.htmlBuilder,u=r.mathmlBuilder,h={type:e,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},c=0;c<t.length;++c)ma[t[c]]=h;s&&(de[e]=s),u&&(fe[e]=u)}var ca={};function m(r,e){ca[r]=e}var h0=class r{constructor(e,t,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=a}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new r(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}},d0=class r{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new r(t,h0.range(this,e))}};function kr(r){var e=[];r.consumeSpaces();var t=r.fetch().text;for(t===\"\\\\relax\"&&(r.consume(),r.consumeSpaces(),t=r.fetch().text);t===\"\\\\hline\"||t===\"\\\\hdashline\";)r.consume(),e.push(t===\"\\\\hdashline\"),r.consumeSpaces(),t=r.fetch().text;return e}var Ke=r=>{var e=r.parser.settings;if(!e.displayMode)throw new z(\"{\"+r.envName+\"} can be used only in display mode.\")},w4=new Set([\"gather\",\"gather*\"]);function Ut(r){if(!r.includes(\"ed\"))return!r.includes(\"*\")}function X0(r,e,t){var a=e.hskipBeforeAndAfter,n=e.addJot,s=e.cols,u=e.arraystretch,h=e.colSeparationType,c=e.autoTag,d=e.singleRow,p=e.emptySingleRow,b=e.maxNumCols,y=e.leqno;if(r.gullet.beginGroup(),d||r.gullet.macros.set(\"\\\\cr\",\"\\\\\\\\\\\\relax\"),!u){var x=r.gullet.expandMacroAsText(\"\\\\arraystretch\");if(x==null)u=1;else if(u=parseFloat(x),!u||u<0)throw new z(\"Invalid \\\\arraystretch: \"+x)}r.gullet.beginGroup();var M=[],T=[M],C=[],q=[],E=c!=null?[]:void 0;function O(){c&&r.gullet.macros.set(\"\\\\@eqnsw\",\"1\",!0)}function F(){E&&(r.gullet.macros.get(\"\\\\df@tag\")?(E.push(r.subparse([new d0(\"\\\\df@tag\")])),r.gullet.macros.set(\"\\\\df@tag\",void 0,!0)):E.push(!!c&&r.gullet.macros.get(\"\\\\@eqnsw\")===\"1\"))}for(O(),q.push(kr(r));;){var G=r.parseExpression(!1,d?\"\\\\end\":\"\\\\\\\\\");r.gullet.endGroup(),r.gullet.beginGroup();var L={type:\"ordgroup\",mode:r.mode,body:G};t&&(L={type:\"styling\",mode:r.mode,style:t,resetFont:!0,body:[L]}),M.push(L);var P=r.fetch().text;if(P===\"&\"){if(b&&M.length===b){if(d||h)throw new z(\"Too many tab characters: &\",r.nextToken);r.settings.reportNonstrict(\"textEnv\",\"Too few columns specified in the {array} column argument.\")}r.consume()}else if(P===\"\\\\end\"){F(),M.length===1&&L.type===\"styling\"&&L.body.length===1&&L.body[0].type===\"ordgroup\"&&L.body[0].body.length===0&&(T.length>1||!p)&&!Array.isArray(E?.[E.length-1])&&!(c&&E?.[E.length-1]===!0)&&T.pop(),q.length<T.length+1&&q.push([]);break}else if(P===\"\\\\\\\\\"){r.consume();var j=void 0;r.gullet.future().text!==\" \"&&(j=r.parseSizeGroup(!0)),C.push(j?j.value:null),F(),q.push(kr(r)),M=[],T.push(M),O()}else throw new z(\"Expected & or \\\\\\\\ or \\\\cr or \\\\end\",r.nextToken)}return r.gullet.endGroup(),r.gullet.endGroup(),{type:\"array\",mode:r.mode,addJot:n,arraystretch:u,body:T,cols:s,rowGaps:C,hskipBeforeAndAfter:a,hLinesBeforeRow:q,colSeparationType:h,tags:E,leqno:y}}function Vt(r){return r.slice(0,1)===\"d\"?\"display\":\"text\"}var A0=function(e,t){var a,n,s=e.body.length,u=e.hLinesBeforeRow,h=0,c=new Array(s),d=[],p=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),b=1/t.fontMetrics().ptPerEm,y=5*b;if(e.colSeparationType&&e.colSeparationType===\"small\"){var x=t.havingStyle(I.SCRIPT).sizeMultiplier;y=.2778*(x/t.sizeMultiplier)}var M=e.colSeparationType===\"CD\"?Q({number:3,unit:\"ex\"},t):12*b,T=3*b,C=e.arraystretch*M,q=.7*C,E=.3*C,O=0;function F(ke){for(var Se=0;Se<ke.length;++Se)Se>0&&(O+=.25),d.push({pos:O,isDashed:ke[Se]})}for(F(u[0]),a=0;a<e.body.length;++a){var G=e.body[a],L=q,P=E;h<G.length&&(h=G.length);var j={cells:new Array(G.length),height:0,depth:0,pos:0};for(n=0;n<G.length;++n){var Y=U(G[n],t);P<Y.depth&&(P=Y.depth),L<Y.height&&(L=Y.height),j.cells[n]=Y}var Z=e.rowGaps[a],c0=0;Z&&(c0=Q(Z,t),c0>0&&(c0+=E,P<c0&&(P=c0),c0=0)),e.addJot&&a<e.body.length-1&&(P+=T),j.height=L,j.depth=P,O+=L,j.pos=O,O+=P+c0,c[a]=j,F(u[a+1])}var r0=O/2+t.fontMetrics().axisHeight,T0=e.cols||[],x0=[],b0,O0,K0=[];if(e.tags&&e.tags.some(ke=>ke))for(a=0;a<s;++a){var J0=c[a],Je=J0.pos-r0,F0=e.tags[a],H0=void 0;F0===!0?H0=k([\"eqn-num\"],[],t):F0===!1?H0=k([],[],t):H0=k([],n0(F0,t,!0),t),H0.depth=J0.depth,H0.height=J0.height,K0.push({type:\"elem\",elem:H0,shift:Je})}for(n=0,O0=0;n<h||O0<T0.length;++n,++O0){for(var se,y0=T0[O0],be=!0;((Yt=y0)==null?void 0:Yt.type)===\"separator\";){var Yt;if(be||(b0=k([\"arraycolsep\"],[]),b0.style.width=A(t.fontMetrics().doubleRuleSep),x0.push(b0)),y0.separator===\"|\"||y0.separator===\":\"){var Ba=y0.separator===\"|\"?\"solid\":\"dashed\",Q0=k([\"vertical-separator\"],[],t);Q0.style.height=A(O),Q0.style.borderRightWidth=A(p),Q0.style.borderRightStyle=Ba,Q0.style.margin=\"0 \"+A(-p/2);var $t=O-r0;$t&&(Q0.style.verticalAlign=A(-$t)),x0.push(Q0)}else throw new z(\"Invalid separator type: \"+y0.separator);O0++,y0=T0[O0],be=!1}if(!(n>=h)){var _0=void 0;if(n>0||e.hskipBeforeAndAfter){var Wt,Zt;_0=(Wt=(Zt=y0)==null?void 0:Zt.pregap)!=null?Wt:y,_0!==0&&(b0=k([\"arraycolsep\"],[]),b0.style.width=A(_0),x0.push(b0))}var Kt=[];for(a=0;a<s;++a){var ye=c[a],xe=ye.cells[n];if(xe){var Da=ye.pos-r0;xe.depth=ye.depth,xe.height=ye.height,Kt.push({type:\"elem\",elem:xe,shift:Da})}}var qa=V({positionType:\"individualShift\",children:Kt}),Ea=k([\"col-align-\"+(((se=y0)==null?void 0:se.align)||\"c\")],[qa]);if(x0.push(Ea),n<h-1||e.hskipBeforeAndAfter){var Jt,Qt;_0=(Jt=(Qt=y0)==null?void 0:Qt.postgap)!=null?Jt:y,_0!==0&&(b0=k([\"arraycolsep\"],[]),b0.style.width=A(_0),x0.push(b0))}}}var we=k([\"mtable\"],x0);if(d.length>0){for(var Na=ae(\"katex-hline\",t,p),Ra=ae(\"katex-hdashline\",t,p),Qe=[{type:\"elem\",elem:we,shift:0}];d.length>0;){var _t=d.pop(),er=_t.pos-r0;_t.isDashed?Qe.push({type:\"elem\",elem:Ra,shift:er}):Qe.push({type:\"elem\",elem:Na,shift:er})}we=V({positionType:\"individualShift\",children:Qe})}if(K0.length===0)return k([\"mord\"],[we],t);var Ia=V({positionType:\"individualShift\",children:K0}),Oa=k([\"katex-tag\"],[Ia],t);return I0([we,Oa])},k4={c:\"center \",l:\"left \",r:\"right \"},M0=function(e,t){for(var a=[],n=new S(\"mtd\",[],[\"mtr-glue\"]),s=new S(\"mtd\",[],[\"mml-eqn-num\"]),u=0;u<e.body.length;u++){for(var h=e.body[u],c=[],d=0;d<h.length;d++)c.push(new S(\"mtd\",[X(h[d],t)]));e.tags&&e.tags[u]&&(c.unshift(n),c.push(n),e.leqno?c.unshift(s):c.push(s)),a.push(new S(\"mtr\",c))}var p=new S(\"mtable\",a),b=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);p.setAttribute(\"rowspacing\",A(b));var y=\"\",x=\"\";if(e.cols&&e.cols.length>0){var M=e.cols,T=\"\",C=!1,q=0,E=M.length;M[0].type===\"separator\"&&(y+=\"top \",q=1),M[M.length-1].type===\"separator\"&&(y+=\"bottom \",E-=1);for(var O=q;O<E;O++){var F=M[O];F.type===\"align\"?(x+=k4[F.align],C&&(T+=\"none \"),C=!0):F.type===\"separator\"&&C&&(T+=F.separator===\"|\"?\"solid \":\"dashed \",C=!1)}p.setAttribute(\"columnalign\",x.trim()),/[sd]/.test(T)&&p.setAttribute(\"columnlines\",T.trim())}if(e.colSeparationType===\"align\"){for(var G=e.cols||[],L=\"\",P=1;P<G.length;P++)L+=P%2?\"0em \":\"1em \";p.setAttribute(\"columnspacing\",L.trim())}else e.colSeparationType===\"alignat\"||e.colSeparationType===\"gather\"?p.setAttribute(\"columnspacing\",\"0em\"):e.colSeparationType===\"small\"?p.setAttribute(\"columnspacing\",\"0.2778em\"):e.colSeparationType===\"CD\"?p.setAttribute(\"columnspacing\",\"0.5em\"):p.setAttribute(\"columnspacing\",\"1em\");var j=\"\",Y=e.hLinesBeforeRow;y+=Y[0].length>0?\"left \":\"\",y+=Y[Y.length-1].length>0?\"right \":\"\";for(var Z=1;Z<Y.length-1;Z++)j+=Y[Z].length===0?\"none \":Y[Z][0]?\"dashed \":\"solid \";return/[sd]/.test(j)&&p.setAttribute(\"rowlines\",j.trim()),y!==\"\"&&(p=new S(\"menclose\",[p]),p.setAttribute(\"notation\",y.trim())),e.arraystretch&&e.arraystretch<1&&(p=new S(\"mstyle\",[p]),p.setAttribute(\"scriptlevel\",\"1\")),p},da=function(e,t){e.envName.includes(\"ed\")||Ke(e);var a=[],n=e.envName===\"split\",s=X0(e.parser,{cols:a,addJot:!0,autoTag:n?void 0:Ut(e.envName),emptySingleRow:!0,colSeparationType:e.envName.includes(\"at\")?\"alignat\":\"align\",maxNumCols:n?2:void 0,leqno:e.parser.settings.leqno},\"display\"),u=0,h=0,c={type:\"ordgroup\",mode:e.mode,body:[]};if(t[0]&&t[0].type===\"ordgroup\"){var d=\"Number of columns should be a positive integer\",p=Gt(t[0],d);if(!/^[0-9]+$/.test(p)||Number(p)<1)throw new z(d,t[0]);u=Number(p),h=u*2}var b=!h;s.body.forEach(function(T){for(var C=1;C<T.length;C+=2){var q=H(T[C],\"styling\"),E=H(q.body[0],\"ordgroup\");E.body.unshift(c)}if(b)h<T.length&&(h=T.length);else{var O=T.length/2;if(u<O)throw new z(\"Too many math in a row: \"+(\"expected \"+u+\", but got \"+O),T[0])}});for(var y=0;y<h;++y){var x=\"r\",M=0;y%2===1?x=\"l\":y>0&&b&&(M=1),a[y]={type:\"align\",align:x,pregap:M,postgap:0}}return s.colSeparationType=b?\"align\":\"alignat\",s};z0({type:\"array\",names:[\"array\",\"darray\"],props:{numArgs:1},handler(r,e){var t=$e(e[0]),a=t?[e[0]]:H(e[0],\"ordgroup\").body,n=a.map(function(u){var h=Ye(u),c=h.text;if(\"lcr\".includes(c))return{type:\"align\",align:c};if(c===\"|\")return{type:\"separator\",separator:\"|\"};if(c===\":\")return{type:\"separator\",separator:\":\"};throw new z(\"Unknown column alignment: \"+c,u)}),s={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return X0(r.parser,s,Vt(r.envName))},htmlBuilder:A0,mathmlBuilder:M0});z0({type:\"array\",names:[\"matrix\",\"pmatrix\",\"bmatrix\",\"Bmatrix\",\"vmatrix\",\"Vmatrix\",\"matrix*\",\"pmatrix*\",\"bmatrix*\",\"Bmatrix*\",\"vmatrix*\",\"Vmatrix*\"],props:{numArgs:0},handler(r){var e={matrix:null,pmatrix:[\"(\",\")\"],bmatrix:[\"[\",\"]\"],Bmatrix:[\"\\\\{\",\"\\\\}\"],vmatrix:[\"|\",\"|\"],Vmatrix:[\"\\\\Vert\",\"\\\\Vert\"]}[r.envName.replace(\"*\",\"\")],t=\"c\",a={hskipBeforeAndAfter:!1,cols:[{type:\"align\",align:t}]};if(r.envName.charAt(r.envName.length-1)===\"*\"){var n=r.parser;if(n.consumeSpaces(),n.fetch().text===\"[\"){if(n.consume(),n.consumeSpaces(),t=n.fetch().text,!\"lcr\".includes(t))throw new z(\"Expected l or c or r\",n.nextToken);n.consume(),n.consumeSpaces(),n.expect(\"]\"),n.consume(),a.cols=[{type:\"align\",align:t}]}}var s=X0(r.parser,a,Vt(r.envName)),u=Math.max(0,...s.body.map(h=>h.length));return s.cols=new Array(u).fill({type:\"align\",align:t}),e?{type:\"leftright\",mode:r.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:A0,mathmlBuilder:M0});z0({type:\"array\",names:[\"smallmatrix\"],props:{numArgs:0},handler(r){var e={arraystretch:.5},t=X0(r.parser,e,\"script\");return t.colSeparationType=\"small\",t},htmlBuilder:A0,mathmlBuilder:M0});z0({type:\"array\",names:[\"subarray\"],props:{numArgs:1},handler(r,e){var t=$e(e[0]),a=t?[e[0]]:H(e[0],\"ordgroup\").body,n=a.map(function(h){var c=Ye(h),d=c.text;if(\"lc\".includes(d))return{type:\"align\",align:d};throw new z(\"Unknown column alignment: \"+d,h)});if(n.length>1)throw new z(\"{subarray} can contain only one column\");var s={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},u=X0(r.parser,s,\"script\");if(u.body.length>0&&u.body[0].length>1)throw new z(\"{subarray} can contain only one column\");return u},htmlBuilder:A0,mathmlBuilder:M0});z0({type:\"array\",names:[\"cases\",\"dcases\",\"rcases\",\"drcases\"],props:{numArgs:0},handler(r){var e={arraystretch:1.2,cols:[{type:\"align\",align:\"l\",pregap:0,postgap:1},{type:\"align\",align:\"l\",pregap:0,postgap:0}]},t=X0(r.parser,e,Vt(r.envName));return{type:\"leftright\",mode:r.mode,body:[t],left:r.envName.includes(\"r\")?\".\":\"\\\\{\",right:r.envName.includes(\"r\")?\"\\\\}\":\".\",rightColor:void 0}},htmlBuilder:A0,mathmlBuilder:M0});z0({type:\"array\",names:[\"align\",\"align*\",\"aligned\",\"split\"],props:{numArgs:0},handler:da,htmlBuilder:A0,mathmlBuilder:M0});z0({type:\"array\",names:[\"gathered\",\"gather\",\"gather*\"],props:{numArgs:0},handler(r){w4.has(r.envName)&&Ke(r);var e={cols:[{type:\"align\",align:\"c\"}],addJot:!0,colSeparationType:\"gather\",autoTag:Ut(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return X0(r.parser,e,\"display\")},htmlBuilder:A0,mathmlBuilder:M0});z0({type:\"array\",names:[\"alignat\",\"alignat*\",\"alignedat\"],props:{numArgs:1},handler:da,htmlBuilder:A0,mathmlBuilder:M0});z0({type:\"array\",names:[\"equation\",\"equation*\"],props:{numArgs:0},handler(r){Ke(r);var e={autoTag:Ut(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return X0(r.parser,e,\"display\")},htmlBuilder:A0,mathmlBuilder:M0});z0({type:\"array\",names:[\"CD\"],props:{numArgs:0},handler(r){return Ke(r),i4(r.parser)},htmlBuilder:A0,mathmlBuilder:M0});m(\"\\\\nonumber\",\"\\\\gdef\\\\@eqnsw{0}\");m(\"\\\\notag\",\"\\\\nonumber\");B({type:\"text\",names:[\"\\\\hline\",\"\\\\hdashline\"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(r,e){throw new z(r.funcName+\" valid only within array environment\")}});var Sr=ma;B({type:\"environment\",names:[\"\\\\begin\",\"\\\\end\"],numArgs:1,argTypes:[\"text\"],handler(r,e){var t=r.parser,a=r.funcName,n=e[0];if(n.type!==\"ordgroup\")throw new z(\"Invalid environment name\",n);var s=Gt(n,\"Environment name should contain only text characters and spaces\",!0);if(a===\"\\\\begin\"){if(!Object.prototype.hasOwnProperty.call(Sr,s))throw new z(\"No such environment: \"+s,n);var u=Sr[s],h=t.parseArguments(\"\\\\begin{\"+s+\"}\",u),c=h.args,d=h.optArgs,p={mode:t.mode,envName:s,parser:t},b=u.handler(p,c,d);t.expect(\"\\\\end\",!1);var y=t.nextToken,x=H(t.parseFunction(),\"environment\");if(x.name!==s)throw new z(\"Mismatch: \\\\begin{\"+s+\"} matched by \\\\end{\"+x.name+\"}\",y);return b}return{type:\"environment\",mode:t.mode,name:s,nameGroup:n}}});var S4=(r,e)=>{var t=r.font,a=e.withFont(t);return U(r.body,a)},z4=(r,e)=>{var t=r.font,a=e.withFont(t);return X(r.body,a)},zr={\"\\\\Bbb\":\"\\\\mathbb\",\"\\\\bold\":\"\\\\mathbf\",\"\\\\frak\":\"\\\\mathfrak\"};B({type:\"font\",names:[\"\\\\mathrm\",\"\\\\mathit\",\"\\\\mathbf\",\"\\\\mathnormal\",\"\\\\mathsfit\",\"\\\\mathbb\",\"\\\\mathcal\",\"\\\\mathfrak\",\"\\\\mathscr\",\"\\\\mathsf\",\"\\\\mathtt\",\"\\\\Bbb\",\"\\\\bold\",\"\\\\frak\"],numArgs:1,allowedInArgument:!0,handler:(r,e)=>{var t=r.parser,a=r.funcName,n=ve(e[0]),s=a in zr?zr[a]:a;return{type:\"font\",mode:t.mode,font:s.slice(1),body:n}},htmlBuilder:S4,mathmlBuilder:z4});B({type:\"mclass\",names:[\"\\\\boldsymbol\",\"\\\\bm\"],numArgs:1,handler:(r,e)=>{var t=r.parser,a=e[0];return{type:\"mclass\",mode:t.mode,mclass:We(a),body:[{type:\"font\",mode:t.mode,font:\"boldsymbol\",body:a}],isCharacterBox:N0(a)}}});B({type:\"font\",names:[\"\\\\rm\",\"\\\\sf\",\"\\\\tt\",\"\\\\bf\",\"\\\\it\",\"\\\\cal\"],numArgs:0,allowedInText:!0,handler:(r,e)=>{var t=r.parser,a=r.funcName,n=r.breakOnTokenText,s=t.mode,u=t.parseExpression(!0,n);return{type:\"font\",mode:s,font:\"math\"+a.slice(1),body:{type:\"ordgroup\",mode:t.mode,body:u}}}});var A4=(r,e)=>{var t=e.style,a=t.fracNum(),n=t.fracDen(),s;s=e.havingStyle(a);var u=U(r.numer,s,e);if(r.continued){var h=8.5/e.fontMetrics().ptPerEm,c=3.5/e.fontMetrics().ptPerEm;u.height=u.height<h?h:u.height,u.depth=u.depth<c?c:u.depth}s=e.havingStyle(n);var d=U(r.denom,s,e),p,b,y;r.hasBarLine?(r.barSize?(b=Q(r.barSize,e),p=ae(\"frac-line\",e,b)):p=ae(\"frac-line\",e),b=p.height,y=p.height):(p=null,b=0,y=e.fontMetrics().defaultRuleThickness);var x,M,T;t.size===I.DISPLAY.size?(x=e.fontMetrics().num1,b>0?M=3*y:M=7*y,T=e.fontMetrics().denom1):(b>0?(x=e.fontMetrics().num2,M=y):(x=e.fontMetrics().num3,M=3*y),T=e.fontMetrics().denom2);var C;if(p){var E=e.fontMetrics().axisHeight;x-u.depth-(E+.5*b)<M&&(x+=M-(x-u.depth-(E+.5*b))),E-.5*b-(d.height-T)<M&&(T+=M-(E-.5*b-(d.height-T)));var O=-(E-.5*b);C=V({positionType:\"individualShift\",children:[{type:\"elem\",elem:d,shift:T},{type:\"elem\",elem:p,shift:O},{type:\"elem\",elem:u,shift:-x}]})}else{var q=x-u.depth-(d.height-T);q<M&&(x+=.5*(M-q),T+=.5*(M-q)),C=V({positionType:\"individualShift\",children:[{type:\"elem\",elem:d,shift:T},{type:\"elem\",elem:u,shift:-x}]})}s=e.havingStyle(t),C.height*=s.sizeMultiplier/e.sizeMultiplier,C.depth*=s.sizeMultiplier/e.sizeMultiplier;var F;t.size===I.DISPLAY.size?F=e.fontMetrics().delim1:t.size===I.SCRIPTSCRIPT.size?F=e.havingStyle(I.SCRIPT).fontMetrics().delim2:F=e.fontMetrics().delim2;var G,L;return r.leftDelim==null?G=pe(e,[\"mopen\"]):G=Ct(r.leftDelim,F,!0,e.havingStyle(t),r.mode,[\"mopen\"]),r.continued?L=k([]):r.rightDelim==null?L=pe(e,[\"mclose\"]):L=Ct(r.rightDelim,F,!0,e.havingStyle(t),r.mode,[\"mclose\"]),k([\"mord\"].concat(s.sizingClasses(e)),[G,k([\"mfrac\"],[C]),L],e)},M4=(r,e)=>{var t=new S(\"mfrac\",[X(r.numer,e),X(r.denom,e)]);if(!r.hasBarLine)t.setAttribute(\"linethickness\",\"0px\");else if(r.barSize){var a=Q(r.barSize,e);t.setAttribute(\"linethickness\",A(a))}if(r.leftDelim!=null||r.rightDelim!=null){var n=[];if(r.leftDelim!=null){var s=new S(\"mo\",[new _(r.leftDelim.replace(\"\\\\\",\"\"))]);s.setAttribute(\"fence\",\"true\"),n.push(s)}if(n.push(t),r.rightDelim!=null){var u=new S(\"mo\",[new _(r.rightDelim.replace(\"\\\\\",\"\"))]);u.setAttribute(\"fence\",\"true\"),n.push(u)}return Ht(n)}return t},fa=(r,e)=>{if(!e)return r;var t={type:\"styling\",mode:r.mode,style:e,body:[r]};return t};B({type:\"genfrac\",names:[\"\\\\cfrac\",\"\\\\dfrac\",\"\\\\frac\",\"\\\\tfrac\",\"\\\\dbinom\",\"\\\\binom\",\"\\\\tbinom\",\"\\\\\\\\atopfrac\",\"\\\\\\\\bracefrac\",\"\\\\\\\\brackfrac\"],numArgs:2,allowedInArgument:!0,handler:(r,e)=>{var t=r.parser,a=r.funcName,n=e[0],s=e[1],u,h=null,c=null;switch(a){case\"\\\\cfrac\":case\"\\\\dfrac\":case\"\\\\frac\":case\"\\\\tfrac\":u=!0;break;case\"\\\\\\\\atopfrac\":u=!1;break;case\"\\\\dbinom\":case\"\\\\binom\":case\"\\\\tbinom\":u=!1,h=\"(\",c=\")\";break;case\"\\\\\\\\bracefrac\":u=!1,h=\"\\\\{\",c=\"\\\\}\";break;case\"\\\\\\\\brackfrac\":u=!1,h=\"[\",c=\"]\";break;default:throw new Error(\"Unrecognized genfrac command\")}var d=a===\"\\\\cfrac\",p=null;return d||a.startsWith(\"\\\\d\")?p=\"display\":a.startsWith(\"\\\\t\")&&(p=\"text\"),fa({type:\"genfrac\",mode:t.mode,numer:n,denom:s,continued:d,hasBarLine:u,leftDelim:h,rightDelim:c,barSize:null},p)},htmlBuilder:A4,mathmlBuilder:M4});B({type:\"infix\",names:[\"\\\\over\",\"\\\\choose\",\"\\\\atop\",\"\\\\brace\",\"\\\\brack\"],numArgs:0,infix:!0,handler(r){var e=r.parser,t=r.funcName,a=r.token,n;switch(t){case\"\\\\over\":n=\"\\\\frac\";break;case\"\\\\choose\":n=\"\\\\binom\";break;case\"\\\\atop\":n=\"\\\\\\\\atopfrac\";break;case\"\\\\brace\":n=\"\\\\\\\\bracefrac\";break;case\"\\\\brack\":n=\"\\\\\\\\brackfrac\";break;default:throw new Error(\"Unrecognized infix genfrac command\")}return{type:\"infix\",mode:e.mode,replaceWith:n,token:a}}});var Ar=[\"display\",\"text\",\"script\",\"scriptscript\"],Mr=function(e){var t=null;return e.length>0&&(t=e,t=t===\".\"?null:t),t};B({type:\"genfrac\",names:[\"\\\\genfrac\"],numArgs:6,allowedInArgument:!0,argTypes:[\"math\",\"math\",\"size\",\"text\",\"math\",\"math\"],handler(r,e){var t=r.parser,a=e[4],n=e[5],s=ve(e[0]),u=s.type===\"atom\"&&s.family===\"open\"?Mr(s.text):null,h=ve(e[1]),c=h.type===\"atom\"&&h.family===\"close\"?Mr(h.text):null,d=H(e[2],\"size\"),p,b=null;d.isBlank?p=!0:(b=d.value,p=b.number>0);var y=null,x=e[3];if(x.type===\"ordgroup\"){if(x.body.length>0){var M=H(x.body[0],\"textord\");y=Ar[Number(M.text)]}}else x=H(x,\"textord\"),y=Ar[Number(x.text)];return fa({type:\"genfrac\",mode:t.mode,numer:a,denom:n,continued:!1,hasBarLine:p,barSize:b,leftDelim:u,rightDelim:c},y)}});B({type:\"infix\",names:[\"\\\\above\"],numArgs:1,argTypes:[\"size\"],infix:!0,handler(r,e){var t=r.parser;r.funcName;var a=r.token;return{type:\"infix\",mode:t.mode,replaceWith:\"\\\\\\\\abovefrac\",size:H(e[0],\"size\").value,token:a}}});B({type:\"genfrac\",names:[\"\\\\\\\\abovefrac\"],numArgs:3,argTypes:[\"math\",\"size\",\"math\"],handler:(r,e)=>{var t=r.parser;r.funcName;var a=e[0],n=H(e[1],\"infix\").size;if(!n)throw new Error(\"\\\\\\\\abovefrac expected size, but got \"+String(n));var s=e[2],u=n.number>0;return{type:\"genfrac\",mode:t.mode,numer:a,denom:s,continued:!1,hasBarLine:u,barSize:n,leftDelim:null,rightDelim:null}}});var va=(r,e)=>{var t=e.style,a,n;r.type===\"supsub\"?(a=r.sup?U(r.sup,e.havingStyle(t.sup()),e):U(r.sub,e.havingStyle(t.sub()),e),n=H(r.base,\"horizBrace\")):n=H(r,\"horizBrace\");var s=U(n.base,e.havingBaseStyle(I.DISPLAY)),u=Xe(n,e),h;if(n.isOver?h=V({positionType:\"firstBaseline\",children:[{type:\"elem\",elem:s},{type:\"kern\",size:.1},{type:\"elem\",elem:u,wrapperClasses:[\"svg-align\"]}]}):h=V({positionType:\"bottom\",positionData:s.depth+.1+u.height,children:[{type:\"elem\",elem:u,wrapperClasses:[\"svg-align\"]},{type:\"kern\",size:.1},{type:\"elem\",elem:s}]}),a){var c=k([\"minner\",n.isOver?\"mover\":\"munder\"],[h],e);n.isOver?h=V({positionType:\"firstBaseline\",children:[{type:\"elem\",elem:c},{type:\"kern\",size:.2},{type:\"elem\",elem:a}]}):h=V({positionType:\"bottom\",positionData:c.depth+.2+a.height+a.depth,children:[{type:\"elem\",elem:a},{type:\"kern\",size:.2},{type:\"elem\",elem:c}]})}return k([\"minner\",n.isOver?\"mover\":\"munder\"],[h],e)},T4=(r,e)=>{var t=je(r.label);return new S(r.isOver?\"mover\":\"munder\",[X(r.base,e),t])};B({type:\"horizBrace\",names:[\"\\\\overbrace\",\"\\\\underbrace\",\"\\\\overbracket\",\"\\\\underbracket\"],numArgs:1,handler(r,e){var t=r.parser,a=r.funcName;return{type:\"horizBrace\",mode:t.mode,label:a,isOver:a.includes(\"\\\\over\"),base:e[0]}},htmlBuilder:va,mathmlBuilder:T4});B({type:\"href\",names:[\"\\\\href\"],numArgs:2,argTypes:[\"url\",\"original\"],allowedInText:!0,handler:(r,e)=>{var t=r.parser,a=e[1],n=H(e[0],\"url\").url;return t.settings.isTrusted({command:\"\\\\href\",url:n})?{type:\"href\",mode:t.mode,href:n,body:e0(a)}:t.formatUnsupportedCmd(\"\\\\href\")},htmlBuilder:(r,e)=>{var t=n0(r.body,e,!1);return C1(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=j0(r.body,e);return t instanceof S||(t=new S(\"mrow\",[t])),t.setAttribute(\"href\",r.href),t}});B({type:\"href\",names:[\"\\\\url\"],numArgs:1,argTypes:[\"url\"],allowedInText:!0,handler:(r,e)=>{var t=r.parser,a=H(e[0],\"url\").url;if(!t.settings.isTrusted({command:\"\\\\url\",url:a}))return t.formatUnsupportedCmd(\"\\\\url\");for(var n=[],s=0;s<a.length;s++){var u=a[s];u===\"~\"&&(u=\"\\\\textasciitilde\"),n.push({type:\"textord\",mode:\"text\",text:u})}var h={type:\"text\",mode:t.mode,font:\"\\\\texttt\",body:n};return{type:\"href\",mode:t.mode,href:a,body:e0(h)}}});B({type:\"hbox\",names:[\"\\\\hbox\"],numArgs:1,argTypes:[\"text\"],allowedInText:!0,primitive:!0,handler(r,e){var t=r.parser;return{type:\"hbox\",mode:t.mode,body:e0(e[0])}},htmlBuilder(r,e){var t=n0(r.body,e.withFont(\"\"),!1);return I0(t)},mathmlBuilder(r,e){return new S(\"mrow\",v0(r.body,e.withFont(\"\")))}});B({type:\"html\",names:[\"\\\\htmlClass\",\"\\\\htmlId\",\"\\\\htmlStyle\",\"\\\\htmlData\"],numArgs:2,argTypes:[\"raw\",\"original\"],allowedInText:!0,handler:(r,e)=>{var t=r.parser,a=r.funcName;r.token;var n=H(e[0],\"raw\").string,s=e[1];t.settings.strict&&t.settings.reportNonstrict(\"htmlExtension\",\"HTML extension is disabled on strict mode\");var u,h={};switch(a){case\"\\\\htmlClass\":h.class=n,u={command:\"\\\\htmlClass\",class:n};break;case\"\\\\htmlId\":h.id=n,u={command:\"\\\\htmlId\",id:n};break;case\"\\\\htmlStyle\":h.style=n,u={command:\"\\\\htmlStyle\",style:n};break;case\"\\\\htmlData\":{for(var c=\"{,}\",d=[],p=\"\",b=0;b<n.length;b++)n.startsWith(c,b)?(p+=\",\",b+=c.length-1):n[b]===\",\"?(d.push(p),p=\"\"):p+=n[b];d.push(p);for(var y=0;y<d.length;y++){var x=d[y],M=x.indexOf(\"=\");if(M<0)throw new z(\"\\\\htmlData key/value '\"+x+\"' missing equals sign\");var T=x.slice(0,M),C=x.slice(M+1);h[\"data-\"+T.trim()]=C}u={command:\"\\\\htmlData\",attributes:h};break}default:throw new Error(\"Unrecognized html command\")}return t.settings.isTrusted(u)?{type:\"html\",mode:t.mode,attributes:h,body:e0(s)}:t.formatUnsupportedCmd(a)},htmlBuilder:(r,e)=>{var t=n0(r.body,e,!1),a=[\"enclosing\"];r.attributes.class&&a.push(...r.attributes.class.trim().split(/\\s+/));var n=k(a,t,e);for(var s of Object.entries(r.attributes)){var u=s[0],h=s[1];u!==\"class\"&&n.setAttribute(u,h)}return n},mathmlBuilder:(r,e)=>j0(r.body,e)});B({type:\"htmlmathml\",names:[\"\\\\html@mathml\"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(r,e)=>{var t=r.parser;return{type:\"htmlmathml\",mode:t.mode,html:e0(e[0]),mathml:e0(e[1])}},htmlBuilder:(r,e)=>{var t=n0(r.html,e,!1);return I0(t)},mathmlBuilder:(r,e)=>j0(r.mathml,e)});var mt=function(e){if(/^[-+]? *(\\d+(\\.\\d*)?|\\.\\d+)$/.test(e))return{number:+e,unit:\"bp\"};var t=/([-+]?) *(\\d+(?:\\.\\d*)?|\\.\\d+) *([a-z]{2})/.exec(e);if(!t)throw new z(\"Invalid size: '\"+e+\"' in \\\\includegraphics\");var a={number:+(t[1]+t[2]),unit:t[3]};if(!Pr(a))throw new z(\"Invalid unit: '\"+a.unit+\"' in \\\\includegraphics.\");return a};B({type:\"includegraphics\",names:[\"\\\\includegraphics\"],numArgs:1,numOptionalArgs:1,argTypes:[\"raw\",\"url\"],allowedInText:!1,handler:(r,e,t)=>{var a=r.parser,n={number:0,unit:\"em\"},s={number:.9,unit:\"em\"},u={number:0,unit:\"em\"},h=\"\";if(t[0])for(var c=H(t[0],\"raw\").string,d=c.split(\",\"),p=0;p<d.length;p++){var b=d[p].split(\"=\");if(b.length===2){var y=b[1].trim();switch(b[0].trim()){case\"alt\":h=y;break;case\"width\":n=mt(y);break;case\"height\":s=mt(y);break;case\"totalheight\":u=mt(y);break;default:throw new z(\"Invalid key: '\"+b[0]+\"' in \\\\includegraphics.\")}}}var x=H(e[0],\"url\").url;return h===\"\"&&(h=x,h=h.replace(/^.*[\\\\/]/,\"\"),h=h.substring(0,h.lastIndexOf(\".\"))),a.settings.isTrusted({command:\"\\\\includegraphics\",url:x})?{type:\"includegraphics\",mode:a.mode,alt:h,width:n,height:s,totalheight:u,src:x}:a.formatUnsupportedCmd(\"\\\\includegraphics\")},htmlBuilder:(r,e)=>{var t=Q(r.height,e),a=0;r.totalheight.number>0&&(a=Q(r.totalheight,e)-t);var n=0;r.width.number>0&&(n=Q(r.width,e));var s={height:A(t+a)};n>0&&(s.width=A(n)),a>0&&(s.verticalAlign=A(-a));var u=new pt(r.src,r.alt,s);return u.height=t,u.depth=a,u},mathmlBuilder:(r,e)=>{var t=new S(\"mglyph\",[]);t.setAttribute(\"alt\",r.alt);var a=Q(r.height,e),n=0;if(r.totalheight.number>0&&(n=Q(r.totalheight,e)-a,t.setAttribute(\"valign\",A(-n))),t.setAttribute(\"height\",A(a+n)),r.width.number>0){var s=Q(r.width,e);t.setAttribute(\"width\",A(s))}return t.setAttribute(\"src\",r.src),t}});B({type:\"kern\",names:[\"\\\\kern\",\"\\\\mkern\",\"\\\\hskip\",\"\\\\mskip\"],numArgs:1,argTypes:[\"size\"],primitive:!0,allowedInText:!0,handler(r,e){var t=r.parser,a=r.funcName,n=H(e[0],\"size\");if(t.settings.strict){var s=a[1]===\"m\",u=n.value.unit===\"mu\";s?(u||t.settings.reportNonstrict(\"mathVsTextUnits\",\"LaTeX's \"+a+\" supports only mu units, \"+(\"not \"+n.value.unit+\" units\")),t.mode!==\"math\"&&t.settings.reportNonstrict(\"mathVsTextUnits\",\"LaTeX's \"+a+\" works only in math mode\")):u&&t.settings.reportNonstrict(\"mathVsTextUnits\",\"LaTeX's \"+a+\" doesn't support mu units\")}return{type:\"kern\",mode:t.mode,dimension:n.value}},htmlBuilder(r,e){return $r(r.dimension,e)},mathmlBuilder(r,e){var t=Q(r.dimension,e);return new He(t)}});B({type:\"lap\",names:[\"\\\\mathllap\",\"\\\\mathrlap\",\"\\\\mathclap\"],numArgs:1,allowedInText:!0,handler:(r,e)=>{var t=r.parser,a=r.funcName,n=e[0];return{type:\"lap\",mode:t.mode,alignment:a.slice(5),body:n}},htmlBuilder:(r,e)=>{var t;r.alignment===\"clap\"?(t=k([],[U(r.body,e)]),t=k([\"katex-inner\"],[t],e)):t=k([\"katex-inner\"],[U(r.body,e)]);var a=k([\"katex-fix\"],[]),n=k([r.alignment],[t,a],e),s=k([\"katex-strut\"]);return s.style.height=A(n.height+n.depth),n.depth&&(s.style.verticalAlign=A(-n.depth)),n.children.unshift(s),n=k([\"katex-thinbox\"],[n],e),k([\"mord\",\"katex-vbox\"],[n],e)},mathmlBuilder:(r,e)=>{var t=new S(\"mpadded\",[X(r.body,e)]);if(r.alignment!==\"rlap\"){var a=r.alignment===\"llap\"?\"-1\":\"-0.5\";t.setAttribute(\"lspace\",a+\"width\")}return t.setAttribute(\"width\",\"0px\"),t}});B({type:\"styling\",names:[\"\\\\(\",\"$\"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(r,e){var t=r.funcName,a=r.parser,n=a.mode;a.switchMode(\"math\");var s=t===\"\\\\(\"?\"\\\\)\":\"$\",u=a.parseExpression(!1,s);return a.expect(s),a.switchMode(n),{type:\"styling\",mode:a.mode,style:\"text\",resetFont:!0,body:u}}});B({type:\"text\",names:[\"\\\\)\",\"\\\\]\"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(r,e){throw new z(\"Mismatched \"+r.funcName)}});var Tr=(r,e)=>{switch(e.style.size){case I.DISPLAY.size:return r.display;case I.TEXT.size:return r.text;case I.SCRIPT.size:return r.script;case I.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};B({type:\"mathchoice\",names:[\"\\\\mathchoice\"],numArgs:4,primitive:!0,handler:(r,e)=>{var t=r.parser;return{type:\"mathchoice\",mode:t.mode,display:e0(e[0]),text:e0(e[1]),script:e0(e[2]),scriptscript:e0(e[3])}},htmlBuilder:(r,e)=>{var t=Tr(r,e),a=n0(t,e,!1);return I0(a)},mathmlBuilder:(r,e)=>{var t=Tr(r,e);return j0(t,e)}});var pa=(r,e,t,a,n,s,u)=>{r=k([],[r]);var h=t&&N0(t),c,d;if(e){var p=U(e,a.havingStyle(n.sup()),a);d={elem:p,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-p.depth)}}if(t){var b=U(t,a.havingStyle(n.sub()),a);c={elem:b,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-b.height)}}var y;if(d&&c){var x=a.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+r.depth+u;y=V({positionType:\"bottom\",positionData:x,children:[{type:\"kern\",size:a.fontMetrics().bigOpSpacing5},{type:\"elem\",elem:c.elem,marginLeft:A(-s)},{type:\"kern\",size:c.kern},{type:\"elem\",elem:r},{type:\"kern\",size:d.kern},{type:\"elem\",elem:d.elem,marginLeft:A(s)},{type:\"kern\",size:a.fontMetrics().bigOpSpacing5}]})}else if(c){var M=r.height-u;y=V({positionType:\"top\",positionData:M,children:[{type:\"kern\",size:a.fontMetrics().bigOpSpacing5},{type:\"elem\",elem:c.elem,marginLeft:A(-s)},{type:\"kern\",size:c.kern},{type:\"elem\",elem:r}]})}else if(d){var T=r.depth+u;y=V({positionType:\"bottom\",positionData:T,children:[{type:\"elem\",elem:r},{type:\"kern\",size:d.kern},{type:\"elem\",elem:d.elem,marginLeft:A(s)},{type:\"kern\",size:a.fontMetrics().bigOpSpacing5}]})}else return r;var C=[y];if(c&&s!==0&&!h){var q=k([\"mspace\"],[],a);q.style.marginRight=A(s),C.unshift(q)}return k([\"mop\",\"op-limits\"],C,a)},ga=new Set([\"\\\\smallint\"]),ba=(r,e)=>{var t,a,n=!1,s;r.type===\"supsub\"?(t=r.sup,a=r.sub,s=H(r.base,\"op\"),n=!0):s=H(r,\"op\");var u=e.style,h=!1;u.size===I.DISPLAY.size&&s.symbol&&!ga.has(s.name)&&(h=!0);var c,d;if(s.symbol){var p=h?\"Size2-Regular\":\"Size1-Regular\",b=\"\";if((s.name===\"\\\\oiint\"||s.name===\"\\\\oiiint\")&&(b=s.name.slice(1),s.name=b===\"oiint\"?\"\\\\iint\":\"\\\\iiint\"),c=l0(s.name,p,\"math\",e,[\"mop\",\"op-symbol\",h?\"large-op\":\"small-op\"]),d=c.italic,b.length>0){var y=Zr(b+\"Size\"+(h?\"2\":\"1\"),e);c=V({positionType:\"individualShift\",children:[{type:\"elem\",elem:c,shift:0},{type:\"elem\",elem:y,shift:h?.08:0}]}),s.name=\"\\\\\"+b,c.classes.unshift(\"mop\"),c.italic=d}}else if(s.body){var x=n0(s.body,e,!0);x.length===1&&x[0]instanceof m0?(c=x[0],c.classes[0]=\"mop\"):c=k([\"mop\"],x,e)}else{for(var M=[],T=1;T<s.name.length;T++)M.push(Ot(s.name[T],s.mode,e));c=k([\"mop\"],M,e)}var C=0,q=0;if((c instanceof m0||s.name===\"\\\\oiint\"||s.name===\"\\\\oiiint\")&&!s.suppressBaseShift){var E;C=(c.height-c.depth)/2-e.fontMetrics().axisHeight,q=(E=c.italic)!=null?E:0}return n?pa(c,t,a,e,u,q,C):(C&&(c.style.position=\"relative\",c.style.top=A(C)),c)},C4=(r,e)=>{var t;if(r.symbol)t=new S(\"mo\",[g0(r.name,r.mode)]),ga.has(r.name)&&t.setAttribute(\"largeop\",\"false\");else if(r.body)t=new S(\"mo\",v0(r.body,e));else{t=new S(\"mi\",[new _(r.name.slice(1))]);var a=new S(\"mo\",[g0(\"\\u2061\",\"text\")]);r.parentIsSupSub?t=new S(\"mrow\",[t,a]):t=Qr([t,a])}return t},B4={\"\\u220F\":\"\\\\prod\",\"\\u2210\":\"\\\\coprod\",\"\\u2211\":\"\\\\sum\",\"\\u22C0\":\"\\\\bigwedge\",\"\\u22C1\":\"\\\\bigvee\",\"\\u22C2\":\"\\\\bigcap\",\"\\u22C3\":\"\\\\bigcup\",\"\\u2A00\":\"\\\\bigodot\",\"\\u2A01\":\"\\\\bigoplus\",\"\\u2A02\":\"\\\\bigotimes\",\"\\u2A04\":\"\\\\biguplus\",\"\\u2A06\":\"\\\\bigsqcup\"};B({type:\"op\",names:[\"\\\\coprod\",\"\\\\bigvee\",\"\\\\bigwedge\",\"\\\\biguplus\",\"\\\\bigcap\",\"\\\\bigcup\",\"\\\\intop\",\"\\\\prod\",\"\\\\sum\",\"\\\\bigotimes\",\"\\\\bigoplus\",\"\\\\bigodot\",\"\\\\bigsqcup\",\"\\\\smallint\",\"\\u220F\",\"\\u2210\",\"\\u2211\",\"\\u22C0\",\"\\u22C1\",\"\\u22C2\",\"\\u22C3\",\"\\u2A00\",\"\\u2A01\",\"\\u2A02\",\"\\u2A04\",\"\\u2A06\"],numArgs:0,handler:(r,e)=>{var t=r.parser,a=r.funcName,n=a;return n.length===1&&(n=B4[n]),{type:\"op\",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:ba,mathmlBuilder:C4});B({type:\"op\",names:[\"\\\\mathop\"],numArgs:1,primitive:!0,handler:(r,e)=>{var t=r.parser,a=e[0];return{type:\"op\",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:e0(a)}}});var D4={\"\\u222B\":\"\\\\int\",\"\\u222C\":\"\\\\iint\",\"\\u222D\":\"\\\\iiint\",\"\\u222E\":\"\\\\oint\",\"\\u222F\":\"\\\\oiint\",\"\\u2230\":\"\\\\oiiint\"};B({type:\"op\",names:[\"\\\\arcsin\",\"\\\\arccos\",\"\\\\arctan\",\"\\\\arctg\",\"\\\\arcctg\",\"\\\\arg\",\"\\\\ch\",\"\\\\cos\",\"\\\\cosec\",\"\\\\cosh\",\"\\\\cot\",\"\\\\cotg\",\"\\\\coth\",\"\\\\csc\",\"\\\\ctg\",\"\\\\cth\",\"\\\\deg\",\"\\\\dim\",\"\\\\exp\",\"\\\\hom\",\"\\\\ker\",\"\\\\lg\",\"\\\\ln\",\"\\\\log\",\"\\\\sec\",\"\\\\sin\",\"\\\\sinh\",\"\\\\sh\",\"\\\\tan\",\"\\\\tanh\",\"\\\\tg\",\"\\\\th\"],numArgs:0,handler(r){var e=r.parser,t=r.funcName;return{type:\"op\",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}}});B({type:\"op\",names:[\"\\\\det\",\"\\\\gcd\",\"\\\\inf\",\"\\\\lim\",\"\\\\max\",\"\\\\min\",\"\\\\Pr\",\"\\\\sup\"],numArgs:0,handler(r){var e=r.parser,t=r.funcName;return{type:\"op\",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}}});B({type:\"op\",names:[\"\\\\int\",\"\\\\iint\",\"\\\\iiint\",\"\\\\oint\",\"\\\\oiint\",\"\\\\oiiint\",\"\\u222B\",\"\\u222C\",\"\\u222D\",\"\\u222E\",\"\\u222F\",\"\\u2230\"],numArgs:0,allowedInArgument:!0,handler(r){var e=r.parser,t=r.funcName,a=t;return a.length===1&&(a=D4[a]),{type:\"op\",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}}});var ya=(r,e)=>{var t,a,n=!1,s;r.type===\"supsub\"?(t=r.sup,a=r.sub,s=H(r.base,\"operatorname\"),n=!0):s=H(r,\"operatorname\");var u;if(s.body.length>0){for(var h=s.body.map(b=>{var y=\"text\"in b?b.text:void 0;return typeof y==\"string\"?{type:\"textord\",mode:b.mode,text:y}:b}),c=n0(h,e.withFont(\"mathrm\"),!0),d=0;d<c.length;d++){var p=c[d];p instanceof m0&&(p.text=p.text.replace(/\\u2212/,\"-\").replace(/\\u2217/,\"*\"))}u=k([\"mop\"],c,e)}else u=k([\"mop\"],[],e);return n?pa(u,t,a,e,e.style,0,0):u},q4=(r,e)=>{for(var t=v0(r.body,e.withFont(\"mathrm\")),a=!0,n=0;n<t.length;n++){var s=t[n];if(!(s instanceof He))if(s instanceof S)switch(s.type){case\"mi\":case\"mn\":case\"mspace\":case\"mtext\":break;case\"mo\":{var u=s.children[0];s.children.length===1&&u instanceof _?u.text=u.text.replace(/\\u2212/,\"-\").replace(/\\u2217/,\"*\"):a=!1;break}default:a=!1}else a=!1}if(a){var h=t.map(p=>p.toText()).join(\"\");t=[new _(h)]}var c=new S(\"mi\",t);c.setAttribute(\"mathvariant\",\"normal\");var d=new S(\"mo\",[g0(\"\\u2061\",\"text\")]);return r.parentIsSupSub?new S(\"mrow\",[c,d]):Qr([c,d])};B({type:\"operatorname\",names:[\"\\\\operatorname@\",\"\\\\operatornamewithlimits\"],numArgs:1,handler:(r,e)=>{var t=r.parser,a=r.funcName,n=e[0];return{type:\"operatorname\",mode:t.mode,body:e0(n),alwaysHandleSupSub:a===\"\\\\operatornamewithlimits\",limits:!1,parentIsSupSub:!1}},htmlBuilder:ya,mathmlBuilder:q4});m(\"\\\\operatorname\",\"\\\\@ifstar\\\\operatornamewithlimits\\\\operatorname@\");Z0({type:\"ordgroup\",htmlBuilder(r,e){return r.semisimple?I0(n0(r.body,e,!1)):k([\"mord\"],n0(r.body,e,!0),e)},mathmlBuilder(r,e){return j0(r.body,e,!0)}});B({type:\"overline\",names:[\"\\\\overline\"],numArgs:1,handler(r,e){var t=r.parser,a=e[0];return{type:\"overline\",mode:t.mode,body:a}},htmlBuilder(r,e){var t=U(r.body,e.havingCrampedStyle()),a=ae(\"overline-line\",e),n=e.fontMetrics().defaultRuleThickness,s=V({positionType:\"firstBaseline\",children:[{type:\"elem\",elem:t},{type:\"kern\",size:3*n},{type:\"elem\",elem:a},{type:\"kern\",size:n}]});return k([\"mord\",\"katex-overline\"],[s],e)},mathmlBuilder(r,e){var t=new S(\"mo\",[new _(\"\\u203E\")]);t.setAttribute(\"stretchy\",\"true\");var a=new S(\"mover\",[X(r.body,e),t]);return a.setAttribute(\"accent\",\"true\"),a}});B({type:\"phantom\",names:[\"\\\\phantom\"],numArgs:1,allowedInText:!0,handler:(r,e)=>{var t=r.parser,a=e[0];return{type:\"phantom\",mode:t.mode,body:e0(a)}},htmlBuilder:(r,e)=>{var t=n0(r.body,e.withPhantom(),!1);return I0(t)},mathmlBuilder:(r,e)=>{var t=v0(r.body,e);return new S(\"mphantom\",t)}});m(\"\\\\hphantom\",\"\\\\smash{\\\\phantom{#1}}\");B({type:\"vphantom\",names:[\"\\\\vphantom\"],numArgs:1,allowedInText:!0,handler:(r,e)=>{var t=r.parser,a=e[0];return{type:\"vphantom\",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=k([\"katex-inner\"],[U(r.body,e.withPhantom())]),a=k([\"katex-fix\"],[]);return k([\"mord\",\"rlap\"],[t,a],e)},mathmlBuilder:(r,e)=>{var t=v0(e0(r.body),e),a=new S(\"mphantom\",t),n=new S(\"mpadded\",[a]);return n.setAttribute(\"width\",\"0px\"),n}});B({type:\"raisebox\",names:[\"\\\\raisebox\"],numArgs:2,argTypes:[\"size\",\"hbox\"],allowedInText:!0,handler(r,e){var t=r.parser,a=H(e[0],\"size\").value,n=e[1];return{type:\"raisebox\",mode:t.mode,dy:a,body:n}},htmlBuilder(r,e){var t=U(r.body,e),a=Q(r.dy,e);return V({positionType:\"shift\",positionData:-a,children:[{type:\"elem\",elem:t}]})},mathmlBuilder(r,e){var t=new S(\"mpadded\",[X(r.body,e)]),a=r.dy.number+r.dy.unit;return t.setAttribute(\"voffset\",a),t}});var xa=(r,e)=>{var t=r.parser;return{type:\"reflectbox\",mode:t.mode,body:e[0]}};B({type:\"reflectbox\",names:[\"\\\\reflectbox\"],numArgs:1,argTypes:[\"hbox\"],allowedInText:!0,handler:xa,htmlBuilder(r,e){return k([\"mord\",\"reflectbox\"],[U(r.body,e)],e)},mathmlBuilder(r,e){return X(r.body,e)}});B({type:\"reflectbox\",names:[\"\\\\mathreflectbox\"],numArgs:1,argTypes:[\"math\"],handler:xa});B({type:\"internal\",names:[\"\\\\relax\"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(r){var e=r.parser;return{type:\"internal\",mode:e.mode}}});B({type:\"rule\",names:[\"\\\\rule\"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[\"size\",\"size\",\"size\"],handler(r,e,t){var a=r.parser,n=t[0],s=H(e[0],\"size\"),u=H(e[1],\"size\");return{type:\"rule\",mode:a.mode,shift:n&&H(n,\"size\").value,width:s.value,height:u.value}},htmlBuilder(r,e){var t=k([\"mord\",\"katex-rule\"],[],e),a=Q(r.width,e),n=Q(r.height,e),s=r.shift?Q(r.shift,e):0;return t.style.borderRightWidth=A(a),t.style.borderTopWidth=A(n),t.style.bottom=A(s),t.width=a,t.height=n+s,t.depth=-s,t.maxFontSize=n*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=Q(r.width,e),a=Q(r.height,e),n=r.shift?Q(r.shift,e):0,s=e.color&&e.getColor()||\"black\",u=new S(\"mspace\");u.setAttribute(\"mathbackground\",s),u.setAttribute(\"width\",A(t)),u.setAttribute(\"height\",A(a));var h=new S(\"mpadded\",[u]);return n>=0?h.setAttribute(\"height\",A(n)):(h.setAttribute(\"height\",A(n)),h.setAttribute(\"depth\",A(-n))),h.setAttribute(\"voffset\",A(n)),h}});function wa(r,e,t){for(var a=n0(r,e,!1),n=e.sizeMultiplier/t.sizeMultiplier,s=0;s<a.length;s++){var u=a[s].classes.indexOf(\"katex-sizing\");u<0?Array.prototype.push.apply(a[s].classes,e.sizingClasses(t)):a[s].classes[u+1]===\"reset-size\"+e.size&&(a[s].classes[u+1]=\"reset-size\"+t.size),a[s].height*=n,a[s].depth*=n}return I0(a)}var Cr=[\"\\\\tiny\",\"\\\\sixptsize\",\"\\\\scriptsize\",\"\\\\footnotesize\",\"\\\\small\",\"\\\\normalsize\",\"\\\\large\",\"\\\\Large\",\"\\\\LARGE\",\"\\\\huge\",\"\\\\Huge\"],E4=(r,e)=>{var t=e.havingSize(r.size);return wa(r.body,t,e)};B({type:\"sizing\",names:Cr,numArgs:0,allowedInText:!0,handler:(r,e)=>{var t=r.breakOnTokenText,a=r.funcName,n=r.parser,s=n.parseExpression(!1,t);return{type:\"sizing\",mode:n.mode,size:Cr.indexOf(a)+1,body:s}},htmlBuilder:E4,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),a=v0(r.body,t),n=new S(\"mstyle\",a);return n.setAttribute(\"mathsize\",A(t.sizeMultiplier)),n}});B({type:\"smash\",names:[\"\\\\smash\"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(r,e,t)=>{var a=r.parser,n=!1,s=!1,u=t[0]&&H(t[0],\"ordgroup\");if(u)for(var h,c=0;c<u.body.length;++c){var d=u.body[c];if(h=Ye(d).text,h===\"t\")n=!0;else if(h===\"b\")s=!0;else{n=!1,s=!1;break}}else n=!0,s=!0;var p=e[0];return{type:\"smash\",mode:a.mode,body:p,smashHeight:n,smashDepth:s}},htmlBuilder:(r,e)=>{var t=k([],[U(r.body,e)]);if(!r.smashHeight&&!r.smashDepth)return t;if(r.smashHeight&&(t.height=0),r.smashDepth&&(t.depth=0),r.smashHeight&&r.smashDepth)return k([\"mord\",\"katex-smash\"],[t],e);if(t.children)for(var a=0;a<t.children.length;a++)r.smashHeight&&(t.children[a].height=0),r.smashDepth&&(t.children[a].depth=0);var n=V({positionType:\"firstBaseline\",children:[{type:\"elem\",elem:t}]});return k([\"mord\"],[n],e)},mathmlBuilder:(r,e)=>{var t=new S(\"mpadded\",[X(r.body,e)]);return r.smashHeight&&t.setAttribute(\"height\",\"0px\"),r.smashDepth&&t.setAttribute(\"depth\",\"0px\"),t}});B({type:\"sqrt\",names:[\"\\\\sqrt\"],numArgs:1,numOptionalArgs:1,handler(r,e,t){var a=r.parser,n=t[0],s=e[0];return{type:\"sqrt\",mode:a.mode,body:s,index:n}},htmlBuilder(r,e){var t=U(r.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=ne(t,e);var a=e.fontMetrics(),n=a.defaultRuleThickness,s=n;e.style.id<I.TEXT.id&&(s=e.fontMetrics().xHeight);var u=n+s/4,h=t.height+t.depth+u+n,c=d4(h,e),d=c.span,p=c.ruleWidth,b=c.advanceWidth,y=d.height-p;y>t.height+t.depth+u&&(u=(u+y-t.height-t.depth)/2);var x=d.height-t.height-u-p;t.style.paddingLeft=A(b);var M=V({positionType:\"firstBaseline\",children:[{type:\"elem\",elem:t,wrapperClasses:[\"svg-align\"]},{type:\"kern\",size:-(t.height+x)},{type:\"elem\",elem:d},{type:\"kern\",size:p}]});if(r.index){var T=e.havingStyle(I.SCRIPTSCRIPT),C=U(r.index,T,e),q=.6*(M.height-M.depth),E=V({positionType:\"shift\",positionData:-q,children:[{type:\"elem\",elem:C}]}),O=k([\"katex-root\"],[E]);return k([\"mord\",\"sqrt\"],[O,M],e)}else return k([\"mord\",\"sqrt\"],[M],e)},mathmlBuilder(r,e){var t=r.body,a=r.index;return a?new S(\"mroot\",[X(t,e),X(a,e)]):new S(\"msqrt\",[X(t,e)])}});var Bt={display:I.DISPLAY,text:I.TEXT,script:I.SCRIPT,scriptscript:I.SCRIPTSCRIPT};function N4(r){return r in Bt}B({type:\"styling\",names:[\"\\\\displaystyle\",\"\\\\textstyle\",\"\\\\scriptstyle\",\"\\\\scriptscriptstyle\"],numArgs:0,allowedInText:!0,primitive:!0,handler(r,e){var t=r.breakOnTokenText,a=r.funcName,n=r.parser,s=n.parseExpression(!0,t),u=a.slice(1,a.length-5);if(!N4(u))throw new Error(\"Unknown style: \"+u);return{type:\"styling\",mode:n.mode,style:u,body:s}},htmlBuilder(r,e){var t=Bt[r.style],a=e.havingStyle(t);return r.resetFont&&(a=a.withFont(\"\")),wa(r.body,a,e)},mathmlBuilder(r,e){var t=Bt[r.style],a=e.havingStyle(t);r.resetFont&&(a=a.withFont(\"\"));var n=v0(r.body,a),s=new S(\"mstyle\",n),u={display:[\"0\",\"true\"],text:[\"0\",\"false\"],script:[\"1\",\"false\"],scriptscript:[\"2\",\"false\"]},h=u[r.style];return s.setAttribute(\"scriptlevel\",h[0]),s.setAttribute(\"displaystyle\",h[1]),s}});var R4=function(e,t){var a=e.base;if(a)if(a.type===\"op\"){var n=a.limits&&(t.style.size===I.DISPLAY.size||a.alwaysHandleSupSub);return n?ba:null}else if(a.type===\"operatorname\"){var s=a.alwaysHandleSupSub&&(t.style.size===I.DISPLAY.size||a.limits);return s?ya:null}else{if(a.type===\"accent\")return N0(a.base)?ea:null;if(a.type===\"horizBrace\"){var u=!e.sub;return u===a.isOver?va:null}else return null}else return null};Z0({type:\"supsub\",htmlBuilder(r,e){var t=R4(r,e);if(t)return t(r,e);var a=r.base,n=r.sup,s=r.sub,u=U(a,e),h,c,d=e.fontMetrics(),p=0,b=0,y=a&&N0(a);if(n){var x=e.havingStyle(e.style.sup());h=U(n,x,e),y||(p=u.height-x.fontMetrics().supDrop*x.sizeMultiplier/e.sizeMultiplier)}if(s){var M=e.havingStyle(e.style.sub());c=U(s,M,e),y||(b=u.depth+M.fontMetrics().subDrop*M.sizeMultiplier/e.sizeMultiplier)}var T;e.style===I.DISPLAY?T=d.sup1:e.style.cramped?T=d.sup3:T=d.sup2;var C=e.sizeMultiplier,q=A(.5/d.ptPerEm/C),E=null;if(c){var O=r.base&&r.base.type===\"op\"&&r.base.name&&(r.base.name===\"\\\\oiint\"||r.base.name===\"\\\\oiiint\");if(u instanceof m0||O){var F;E=A(-((F=u.italic)!=null?F:0))}}var G;if(h&&c){p=Math.max(p,T,h.depth+.25*d.xHeight),b=Math.max(b,d.sub2);var L=d.defaultRuleThickness,P=4*L;if(p-h.depth-(c.height-b)<P){b=P-(p-h.depth)+c.height;var j=.8*d.xHeight-(p-h.depth);j>0&&(p+=j,b-=j)}var Y=[{type:\"elem\",elem:c,shift:b,marginRight:q,marginLeft:E},{type:\"elem\",elem:h,shift:-p,marginRight:q}];G=V({positionType:\"individualShift\",children:Y})}else if(c){b=Math.max(b,d.sub1,c.height-.8*d.xHeight);var Z=[{type:\"elem\",elem:c,marginLeft:E,marginRight:q}];G=V({positionType:\"shift\",positionData:b,children:Z})}else if(h)p=Math.max(p,T,h.depth+.25*d.xHeight),G=V({positionType:\"shift\",positionData:-p,children:[{type:\"elem\",elem:h,marginRight:q}]});else throw new Error(\"supsub must have either sup or sub.\");var c0=At(u,\"right\")||\"mord\";return k([c0],[u,k([\"msupsub\"],[G])],e)},mathmlBuilder(r,e){var t=!1,a,n;r.base&&r.base.type===\"horizBrace\"&&(n=!!r.sup,n===r.base.isOver&&(t=!0,a=r.base.isOver)),r.base&&(r.base.type===\"op\"||r.base.type===\"operatorname\")&&(r.base.parentIsSupSub=!0);var s=[X(r.base,e)];r.sub&&s.push(X(r.sub,e)),r.sup&&s.push(X(r.sup,e));var u;if(t)u=a?\"mover\":\"munder\";else if(r.sub)if(r.sup){var d=r.base;d&&d.type===\"op\"&&d.limits&&e.style===I.DISPLAY||d&&d.type===\"operatorname\"&&d.alwaysHandleSupSub&&(e.style===I.DISPLAY||d.limits)?u=\"munderover\":u=\"msubsup\"}else{var c=r.base;c&&c.type===\"op\"&&c.limits&&(e.style===I.DISPLAY||c.alwaysHandleSupSub)||c&&c.type===\"operatorname\"&&c.alwaysHandleSupSub&&(c.limits||e.style===I.DISPLAY)?u=\"munder\":u=\"msub\"}else{var h=r.base;h&&h.type===\"op\"&&h.limits&&(e.style===I.DISPLAY||h.alwaysHandleSupSub)||h&&h.type===\"operatorname\"&&h.alwaysHandleSupSub&&(h.limits||e.style===I.DISPLAY)?u=\"mover\":u=\"msup\"}return new S(u,s)}});Z0({type:\"atom\",htmlBuilder(r,e){return Ot(r.text,r.mode,e,[\"m\"+r.family])},mathmlBuilder(r,e){var t=new S(\"mo\",[g0(r.text,r.mode)]);if(r.family===\"bin\"){var a=Lt(r,e);a===\"bold-italic\"&&t.setAttribute(\"mathvariant\",a)}else r.family===\"punct\"?t.setAttribute(\"separator\",\"true\"):(r.family===\"open\"||r.family===\"close\")&&t.setAttribute(\"stretchy\",\"false\");return t}});var ka={mi:\"italic\",mn:\"normal\",mtext:\"normal\"};Z0({type:\"mathord\",htmlBuilder(r,e){return Ve(r,e)},mathmlBuilder(r,e){var t=new S(\"mi\",[g0(r.text,r.mode,e)]),a=Lt(r,e)||\"italic\";return a!==ka[t.type]&&t.setAttribute(\"mathvariant\",a),t}});Z0({type:\"textord\",htmlBuilder(r,e){return Ve(r,e)},mathmlBuilder(r,e){var t=g0(r.text,r.mode,e),a=Lt(r,e)||\"normal\",n;return r.mode===\"text\"?n=new S(\"mtext\",[t]):/[0-9]/.test(r.text)?n=new S(\"mn\",[t]):r.text===\"\\\\prime\"?n=new S(\"mo\",[t]):n=new S(\"mi\",[t]),a!==ka[n.type]&&n.setAttribute(\"mathvariant\",a),n}});var Br=new Map([[\"\\\\nobreak\",\"nobreak\"],[\"\\\\allowbreak\",\"allowbreak\"]]),Dr=new Map([[\" \",{}],[\"\\\\ \",{}],[\"~\",{className:\"nobreak\"}],[\"\\\\space\",{}],[\"\\\\nobreakspace\",{className:\"nobreak\"}]]);Z0({type:\"spacing\",htmlBuilder(r,e){var t=Dr.get(r.text),a=Br.get(r.text);if(t){var n=t.className||\"\";if(r.mode===\"text\"){var s=Ve(r,e);return s.classes.push(n),s}else return k([\"mspace\",n],[Ot(r.text,r.mode,e)],e)}else{if(a)return k([\"mspace\",a],[],e);throw new z('Unknown type of space \"'+r.text+'\"')}},mathmlBuilder(r,e){var t;if(Dr.has(r.text))t=new S(\"mtext\",[new _(\"\\xA0\")]);else{if(Br.has(r.text))return new S(\"mspace\");throw new z('Unknown type of space \"'+r.text+'\"')}return t}});var qr=()=>{var r=new S(\"mtd\",[]);return r.setAttribute(\"width\",\"50%\"),r};Z0({type:\"tag\",mathmlBuilder(r,e){var t=new S(\"mtable\",[new S(\"mtr\",[qr(),new S(\"mtd\",[j0(r.body,e)]),qr(),new S(\"mtd\",[j0(r.tag,e)])])]);return t.setAttribute(\"width\",\"100%\"),t}});var Er={\"\\\\text\":void 0,\"\\\\textrm\":\"textrm\",\"\\\\textsf\":\"textsf\",\"\\\\texttt\":\"texttt\",\"\\\\textnormal\":\"textrm\"},Nr={\"\\\\textbf\":\"textbf\",\"\\\\textmd\":\"textmd\"},I4={\"\\\\textit\":\"textit\",\"\\\\textup\":\"textup\"},Rr=(r,e)=>{var t=r.font;if(t){if(Er[t])return e.withTextFontFamily(Er[t]);if(Nr[t])return e.withTextFontWeight(Nr[t]);if(t===\"\\\\emph\")return e.fontShape===\"textit\"?e.withTextFontShape(\"textup\"):e.withTextFontShape(\"textit\")}else return e;return e.withTextFontShape(I4[t])};B({type:\"text\",names:[\"\\\\text\",\"\\\\textrm\",\"\\\\textsf\",\"\\\\texttt\",\"\\\\textnormal\",\"\\\\textbf\",\"\\\\textmd\",\"\\\\textit\",\"\\\\textup\",\"\\\\emph\"],numArgs:1,argTypes:[\"text\"],allowedInArgument:!0,allowedInText:!0,handler(r,e){var t=r.parser,a=r.funcName,n=e[0];return{type:\"text\",mode:t.mode,body:e0(n),font:a}},htmlBuilder(r,e){var t=Rr(r,e),a=n0(r.body,t,!0);return k([\"mord\",\"text\"],a,t)},mathmlBuilder(r,e){var t=Rr(r,e);return j0(r.body,t)}});B({type:\"underline\",names:[\"\\\\underline\"],numArgs:1,allowedInText:!0,handler(r,e){var t=r.parser;return{type:\"underline\",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=U(r.body,e),a=ae(\"underline-line\",e),n=e.fontMetrics().defaultRuleThickness,s=V({positionType:\"top\",positionData:t.height,children:[{type:\"kern\",size:n},{type:\"elem\",elem:a},{type:\"kern\",size:3*n},{type:\"elem\",elem:t}]});return k([\"mord\",\"katex-underline\"],[s],e)},mathmlBuilder(r,e){var t=new S(\"mo\",[new _(\"\\u203E\")]);t.setAttribute(\"stretchy\",\"true\");var a=new S(\"munder\",[X(r.body,e),t]);return a.setAttribute(\"accentunder\",\"true\"),a}});B({type:\"vcenter\",names:[\"\\\\vcenter\"],numArgs:1,argTypes:[\"original\"],allowedInText:!1,handler(r,e){var t=r.parser;return{type:\"vcenter\",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=U(r.body,e),a=e.fontMetrics().axisHeight,n=.5*(t.height-a-(t.depth+a));return V({positionType:\"shift\",positionData:n,children:[{type:\"elem\",elem:t}]})},mathmlBuilder(r,e){var t=new S(\"mpadded\",[X(r.body,e)],[\"vcenter\"]);return new S(\"mrow\",[t])}});B({type:\"verb\",names:[\"\\\\verb\"],numArgs:0,allowedInText:!0,handler(r,e,t){throw new z(\"\\\\verb ended by end of line instead of matching delimiter\")},htmlBuilder(r,e){for(var t=Ir(r),a=[],n=e.havingStyle(e.style.text()),s=0;s<t.length;s++){var u=t[s];u===\"~\"&&(u=\"\\\\textasciitilde\"),a.push(l0(u,\"Typewriter-Regular\",r.mode,n,[\"mord\",\"texttt\"]))}return k([\"mord\",\"text\"].concat(n.sizingClasses(e)),Yr(a),n)},mathmlBuilder(r,e){var t=new _(Ir(r)),a=new S(\"mtext\",[t]);return a.setAttribute(\"mathvariant\",\"monospace\"),a}});var Ir=r=>r.body.replace(/ /g,r.star?\"\\u2423\":\"\\xA0\"),G0=Kr,Sa=`[ \\r\n\t]`,O4=\"\\\\\\\\[a-zA-Z@]+\",F4=\"\\\\\\\\[^\\uD800-\\uDFFF]\",H4=\"(\"+O4+\")\"+Sa+\"*\",L4=`\\\\\\\\(\n|[ \\r\t]+\n?)[ \\r\t]*`,Dt=\"[\\u0300-\\u036F]\",G4=new RegExp(Dt+\"+$\"),P4=\"(\"+Sa+\"+)|\"+(L4+\"|\")+\"([!-\\\\[\\\\]-\\u2027\\u202A-\\uD7FF\\uF900-\\uFFFF]\"+(Dt+\"*\")+\"|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]\"+(Dt+\"*\")+\"|\\\\\\\\verb\\\\*([^]).*?\\\\4|\\\\\\\\verb([^*a-zA-Z]).*?\\\\5\"+(\"|\"+H4)+(\"|\"+F4+\")\"),Ge=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(P4,\"g\"),this.catcodes={\"%\":14,\"~\":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new d0(\"EOF\",new h0(this,t,t));var a=this.tokenRegex.exec(e);if(a===null||a.index!==t)throw new z(\"Unexpected character: '\"+e[t]+\"'\",new d0(e[t],new h0(this,t,t+1)));var n=a[6]||a[3]||(a[2]?\"\\\\ \":\" \");if(this.catcodes[n]===14){var s=e.indexOf(`\n`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict(\"commentAtEnd\",\"% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)\")):this.tokenRegex.lastIndex=s+1,this.lex()}return new d0(n,new h0(this,t,this.tokenRegex.lastIndex))}},qt=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new z(\"Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug\");var e=this.undefStack.pop();for(var t of Object.keys(e))e[t]===void 0?delete this.current[t]:this.current[t]=e[t]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){return Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:Object.prototype.hasOwnProperty.call(this.builtins,e)?this.builtins[e]:void 0}set(e,t,a){if(a===void 0&&(a=!1),a){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var s=this.undefStack[this.undefStack.length-1];s&&!Object.prototype.hasOwnProperty.call(s,e)&&(s[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}t==null?delete this.current[e]:this.current[e]=t}},U4=ca;m(\"\\\\noexpand\",function(r){var e=r.popToken();return r.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});m(\"\\\\expandafter\",function(r){var e=r.popToken();return r.expandOnce(!0),{tokens:[e],numArgs:0}});m(\"\\\\@firstoftwo\",function(r){var e=r.consumeArgs(2);return{tokens:e[0],numArgs:0}});m(\"\\\\@secondoftwo\",function(r){var e=r.consumeArgs(2);return{tokens:e[1],numArgs:0}});m(\"\\\\@ifnextchar\",function(r){var e=r.consumeArgs(3);r.consumeSpaces();var t=r.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});m(\"\\\\@ifstar\",\"\\\\@ifnextchar *{\\\\@firstoftwo{#1}}\");m(\"\\\\TextOrMath\",function(r){var e=r.consumeArgs(2);return r.mode===\"text\"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var Or={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};m(\"\\\\char\",function(r){var e=r.popToken(),t,a=0;if(e.text===\"'\")t=8,e=r.popToken();else if(e.text==='\"')t=16,e=r.popToken();else if(e.text===\"`\")if(e=r.popToken(),e.text[0]===\"\\\\\")a=e.text.charCodeAt(1);else{if(e.text===\"EOF\")throw new z(\"\\\\char` missing argument\");a=e.text.charCodeAt(0)}else t=10;if(t){if(a=Or[e.text],a==null||a>=t)throw new z(\"Invalid base-\"+t+\" digit \"+e.text);for(var n;(n=Or[r.future().text])!=null&&n<t;)a*=t,a+=n,r.popToken()}return\"\\\\@char{\"+a+\"}\"});var jt=(r,e,t,a)=>{var n=r.consumeArg().tokens;if(n.length!==1)throw new z(\"\\\\newcommand's first argument must be a macro name\");var s=n[0].text,u=r.isDefined(s);if(u&&!e)throw new z(\"\\\\newcommand{\"+s+\"} attempting to redefine \"+(s+\"; use \\\\renewcommand\"));if(!u&&!t)throw new z(\"\\\\renewcommand{\"+s+\"} when command \"+s+\" does not yet exist; use \\\\newcommand\");var h=0;if(n=r.consumeArg().tokens,n.length===1&&n[0].text===\"[\"){for(var c=\"\",d=r.expandNextToken();d.text!==\"]\"&&d.text!==\"EOF\";)c+=d.text,d=r.expandNextToken();if(!c.match(/^\\s*[0-9]+\\s*$/))throw new z(\"Invalid number of arguments: \"+c);h=parseInt(c),n=r.consumeArg().tokens}return u&&a||r.macros.set(s,{tokens:n,numArgs:h}),\"\"};m(\"\\\\newcommand\",r=>jt(r,!1,!0,!1));m(\"\\\\renewcommand\",r=>jt(r,!0,!1,!1));m(\"\\\\providecommand\",r=>jt(r,!0,!0,!0));m(\"\\\\message\",r=>{var e=r.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join(\"\")),\"\"});m(\"\\\\errmessage\",r=>{var e=r.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join(\"\")),\"\"});m(\"\\\\show\",r=>{var e=r.popToken(),t=e.text;return console.log(e,r.macros.get(t),G0[t],$.math[t],$.text[t]),\"\"});m(\"\\\\bgroup\",\"{\");m(\"\\\\egroup\",\"}\");m(\"~\",\"\\\\nobreakspace\");m(\"\\\\lq\",\"`\");m(\"\\\\rq\",\"'\");m(\"\\\\aa\",\"\\\\r a\");m(\"\\\\AA\",\"\\\\r A\");m(\"\\\\textcopyright\",\"\\\\html@mathml{\\\\textcircled{c}}{\\\\char`\\xA9}\");m(\"\\\\copyright\",\"\\\\TextOrMath{\\\\textcopyright}{\\\\text{\\\\textcopyright}}\");m(\"\\\\textregistered\",\"\\\\html@mathml{\\\\textcircled{\\\\scriptsize R}}{\\\\char`\\xAE}\");m(\"\\u212C\",\"\\\\mathscr{B}\");m(\"\\u2130\",\"\\\\mathscr{E}\");m(\"\\u2131\",\"\\\\mathscr{F}\");m(\"\\u210B\",\"\\\\mathscr{H}\");m(\"\\u2110\",\"\\\\mathscr{I}\");m(\"\\u2112\",\"\\\\mathscr{L}\");m(\"\\u2133\",\"\\\\mathscr{M}\");m(\"\\u211B\",\"\\\\mathscr{R}\");m(\"\\u212D\",\"\\\\mathfrak{C}\");m(\"\\u210C\",\"\\\\mathfrak{H}\");m(\"\\u2128\",\"\\\\mathfrak{Z}\");m(\"\\\\Bbbk\",\"\\\\Bbb{k}\");m(\"\\\\llap\",\"\\\\mathllap{\\\\textrm{#1}}\");m(\"\\\\rlap\",\"\\\\mathrlap{\\\\textrm{#1}}\");m(\"\\\\clap\",\"\\\\mathclap{\\\\textrm{#1}}\");m(\"\\\\mathstrut\",\"\\\\vphantom{(}\");m(\"\\\\underbar\",\"\\\\underline{\\\\text{#1}}\");m(\"\\\\not\",'\\\\html@mathml{\\\\mathrel{\\\\mathrlap\\\\@not}\\\\nobreak}{\\\\char\"338}');m(\"\\\\neq\",\"\\\\html@mathml{\\\\mathrel{\\\\not=}}{\\\\mathrel{\\\\char`\\u2260}}\");m(\"\\\\ne\",\"\\\\neq\");m(\"\\u2260\",\"\\\\neq\");m(\"\\\\notin\",\"\\\\html@mathml{\\\\mathrel{{\\\\in}\\\\mathllap{/\\\\mskip1mu}}}{\\\\mathrel{\\\\char`\\u2209}}\");m(\"\\u2209\",\"\\\\notin\");m(\"\\u2258\",\"\\\\html@mathml{\\\\mathrel{=\\\\kern{-1em}\\\\raisebox{0.4em}{$\\\\scriptsize\\\\frown$}}}{\\\\mathrel{\\\\char`\\u2258}}\");m(\"\\u2259\",\"\\\\html@mathml{\\\\stackrel{\\\\tiny\\\\wedge}{=}}{\\\\mathrel{\\\\char`\\u2258}}\");m(\"\\u225A\",\"\\\\html@mathml{\\\\stackrel{\\\\tiny\\\\vee}{=}}{\\\\mathrel{\\\\char`\\u225A}}\");m(\"\\u225B\",\"\\\\html@mathml{\\\\stackrel{\\\\scriptsize\\\\star}{=}}{\\\\mathrel{\\\\char`\\u225B}}\");m(\"\\u225D\",\"\\\\html@mathml{\\\\stackrel{\\\\tiny\\\\mathrm{def}}{=}}{\\\\mathrel{\\\\char`\\u225D}}\");m(\"\\u225E\",\"\\\\html@mathml{\\\\stackrel{\\\\tiny\\\\mathrm{m}}{=}}{\\\\mathrel{\\\\char`\\u225E}}\");m(\"\\u225F\",\"\\\\html@mathml{\\\\stackrel{\\\\tiny?}{=}}{\\\\mathrel{\\\\char`\\u225F}}\");m(\"\\u27C2\",\"\\\\perp\");m(\"\\u203C\",\"\\\\mathclose{!\\\\mkern-0.8mu!}\");m(\"\\u220C\",\"\\\\notni\");m(\"\\u231C\",\"\\\\ulcorner\");m(\"\\u231D\",\"\\\\urcorner\");m(\"\\u231E\",\"\\\\llcorner\");m(\"\\u231F\",\"\\\\lrcorner\");m(\"\\xA9\",\"\\\\copyright\");m(\"\\xAE\",\"\\\\textregistered\");m(\"\\\\ulcorner\",'\\\\html@mathml{\\\\@ulcorner}{\\\\mathop{\\\\char\"231c}}');m(\"\\\\urcorner\",'\\\\html@mathml{\\\\@urcorner}{\\\\mathop{\\\\char\"231d}}');m(\"\\\\llcorner\",'\\\\html@mathml{\\\\@llcorner}{\\\\mathop{\\\\char\"231e}}');m(\"\\\\lrcorner\",'\\\\html@mathml{\\\\@lrcorner}{\\\\mathop{\\\\char\"231f}}');m(\"\\\\vdots\",\"{\\\\varvdots\\\\rule{0pt}{15pt}}\");m(\"\\u22EE\",\"\\\\vdots\");m(\"\\\\varGamma\",\"\\\\mathit{\\\\Gamma}\");m(\"\\\\varDelta\",\"\\\\mathit{\\\\Delta}\");m(\"\\\\varTheta\",\"\\\\mathit{\\\\Theta}\");m(\"\\\\varLambda\",\"\\\\mathit{\\\\Lambda}\");m(\"\\\\varXi\",\"\\\\mathit{\\\\Xi}\");m(\"\\\\varPi\",\"\\\\mathit{\\\\Pi}\");m(\"\\\\varSigma\",\"\\\\mathit{\\\\Sigma}\");m(\"\\\\varUpsilon\",\"\\\\mathit{\\\\Upsilon}\");m(\"\\\\varPhi\",\"\\\\mathit{\\\\Phi}\");m(\"\\\\varPsi\",\"\\\\mathit{\\\\Psi}\");m(\"\\\\varOmega\",\"\\\\mathit{\\\\Omega}\");m(\"\\\\substack\",\"\\\\begin{subarray}{c}#1\\\\end{subarray}\");m(\"\\\\colon\",\"\\\\nobreak\\\\mskip2mu\\\\mathpunct{}\\\\mathchoice{\\\\mkern-3mu}{\\\\mkern-3mu}{}{}{:}\\\\mskip6mu\\\\relax\");m(\"\\\\boxed\",\"\\\\fbox{$\\\\displaystyle{#1}$}\");m(\"\\\\iff\",\"\\\\DOTSB\\\\;\\\\Longleftrightarrow\\\\;\");m(\"\\\\implies\",\"\\\\DOTSB\\\\;\\\\Longrightarrow\\\\;\");m(\"\\\\impliedby\",\"\\\\DOTSB\\\\;\\\\Longleftarrow\\\\;\");m(\"\\\\dddot\",\"{\\\\overset{\\\\raisebox{-0.1ex}{\\\\normalsize ...}}{#1}}\");m(\"\\\\ddddot\",\"{\\\\overset{\\\\raisebox{-0.1ex}{\\\\normalsize ....}}{#1}}\");var Fr={\",\":\"\\\\dotsc\",\"\\\\not\":\"\\\\dotsb\",\"+\":\"\\\\dotsb\",\"=\":\"\\\\dotsb\",\"<\":\"\\\\dotsb\",\">\":\"\\\\dotsb\",\"-\":\"\\\\dotsb\",\"*\":\"\\\\dotsb\",\":\":\"\\\\dotsb\",\"\\\\DOTSB\":\"\\\\dotsb\",\"\\\\coprod\":\"\\\\dotsb\",\"\\\\bigvee\":\"\\\\dotsb\",\"\\\\bigwedge\":\"\\\\dotsb\",\"\\\\biguplus\":\"\\\\dotsb\",\"\\\\bigcap\":\"\\\\dotsb\",\"\\\\bigcup\":\"\\\\dotsb\",\"\\\\prod\":\"\\\\dotsb\",\"\\\\sum\":\"\\\\dotsb\",\"\\\\bigotimes\":\"\\\\dotsb\",\"\\\\bigoplus\":\"\\\\dotsb\",\"\\\\bigodot\":\"\\\\dotsb\",\"\\\\bigsqcup\":\"\\\\dotsb\",\"\\\\And\":\"\\\\dotsb\",\"\\\\longrightarrow\":\"\\\\dotsb\",\"\\\\Longrightarrow\":\"\\\\dotsb\",\"\\\\longleftarrow\":\"\\\\dotsb\",\"\\\\Longleftarrow\":\"\\\\dotsb\",\"\\\\longleftrightarrow\":\"\\\\dotsb\",\"\\\\Longleftrightarrow\":\"\\\\dotsb\",\"\\\\mapsto\":\"\\\\dotsb\",\"\\\\longmapsto\":\"\\\\dotsb\",\"\\\\hookrightarrow\":\"\\\\dotsb\",\"\\\\doteq\":\"\\\\dotsb\",\"\\\\mathbin\":\"\\\\dotsb\",\"\\\\mathrel\":\"\\\\dotsb\",\"\\\\relbar\":\"\\\\dotsb\",\"\\\\Relbar\":\"\\\\dotsb\",\"\\\\xrightarrow\":\"\\\\dotsb\",\"\\\\xleftarrow\":\"\\\\dotsb\",\"\\\\DOTSI\":\"\\\\dotsi\",\"\\\\int\":\"\\\\dotsi\",\"\\\\oint\":\"\\\\dotsi\",\"\\\\iint\":\"\\\\dotsi\",\"\\\\iiint\":\"\\\\dotsi\",\"\\\\iiiint\":\"\\\\dotsi\",\"\\\\idotsint\":\"\\\\dotsi\",\"\\\\DOTSX\":\"\\\\dotsx\"},V4=new Set([\"bin\",\"rel\"]);m(\"\\\\dots\",function(r){var e=\"\\\\dotso\",t=r.expandAfterFuture().text;return t in Fr?e=Fr[t]:(t.slice(0,4)===\"\\\\not\"||t in $.math&&V4.has($.math[t].group))&&(e=\"\\\\dotsb\"),e});var Xt={\")\":!0,\"]\":!0,\"\\\\rbrack\":!0,\"\\\\}\":!0,\"\\\\rbrace\":!0,\"\\\\rangle\":!0,\"\\\\rceil\":!0,\"\\\\rfloor\":!0,\"\\\\rgroup\":!0,\"\\\\rmoustache\":!0,\"\\\\right\":!0,\"\\\\bigr\":!0,\"\\\\biggr\":!0,\"\\\\Bigr\":!0,\"\\\\Biggr\":!0,$:!0,\";\":!0,\".\":!0,\",\":!0};m(\"\\\\dotso\",function(r){var e=r.future().text;return e in Xt?\"\\\\ldots\\\\,\":\"\\\\ldots\"});m(\"\\\\dotsc\",function(r){var e=r.future().text;return e in Xt&&e!==\",\"?\"\\\\ldots\\\\,\":\"\\\\ldots\"});m(\"\\\\cdots\",function(r){var e=r.future().text;return e in Xt?\"\\\\@cdots\\\\,\":\"\\\\@cdots\"});m(\"\\\\dotsb\",\"\\\\cdots\");m(\"\\\\dotsm\",\"\\\\cdots\");m(\"\\\\dotsi\",\"\\\\!\\\\cdots\");m(\"\\\\dotsx\",\"\\\\ldots\\\\,\");m(\"\\\\DOTSI\",\"\\\\relax\");m(\"\\\\DOTSB\",\"\\\\relax\");m(\"\\\\DOTSX\",\"\\\\relax\");m(\"\\\\tmspace\",\"\\\\TextOrMath{\\\\kern#1#3}{\\\\mskip#1#2}\\\\relax\");m(\"\\\\,\",\"\\\\tmspace+{3mu}{.1667em}\");m(\"\\\\thinspace\",\"\\\\,\");m(\"\\\\>\",\"\\\\mskip{4mu}\");m(\"\\\\:\",\"\\\\tmspace+{4mu}{.2222em}\");m(\"\\\\medspace\",\"\\\\:\");m(\"\\\\;\",\"\\\\tmspace+{5mu}{.2777em}\");m(\"\\\\thickspace\",\"\\\\;\");m(\"\\\\!\",\"\\\\tmspace-{3mu}{.1667em}\");m(\"\\\\negthinspace\",\"\\\\!\");m(\"\\\\negmedspace\",\"\\\\tmspace-{4mu}{.2222em}\");m(\"\\\\negthickspace\",\"\\\\tmspace-{5mu}{.277em}\");m(\"\\\\enspace\",\"\\\\kern.5em \");m(\"\\\\enskip\",\"\\\\hskip.5em\\\\relax\");m(\"\\\\quad\",\"\\\\hskip1em\\\\relax\");m(\"\\\\qquad\",\"\\\\hskip2em\\\\relax\");m(\"\\\\tag\",\"\\\\@ifstar\\\\tag@literal\\\\tag@paren\");m(\"\\\\tag@paren\",\"\\\\tag@literal{({#1})}\");m(\"\\\\tag@literal\",r=>{if(r.macros.get(\"\\\\df@tag\"))throw new z(\"Multiple \\\\tag\");return\"\\\\gdef\\\\df@tag{\\\\text{#1}}\"});m(\"\\\\bmod\",\"\\\\mathchoice{\\\\mskip1mu}{\\\\mskip1mu}{\\\\mskip5mu}{\\\\mskip5mu}\\\\mathbin{\\\\rm mod}\\\\mathchoice{\\\\mskip1mu}{\\\\mskip1mu}{\\\\mskip5mu}{\\\\mskip5mu}\");m(\"\\\\pod\",\"\\\\allowbreak\\\\mathchoice{\\\\mkern18mu}{\\\\mkern8mu}{\\\\mkern8mu}{\\\\mkern8mu}(#1)\");m(\"\\\\pmod\",\"\\\\pod{{\\\\rm mod}\\\\mkern6mu#1}\");m(\"\\\\mod\",\"\\\\allowbreak\\\\mathchoice{\\\\mkern18mu}{\\\\mkern12mu}{\\\\mkern12mu}{\\\\mkern12mu}{\\\\rm mod}\\\\,\\\\,#1\");m(\"\\\\newline\",\"\\\\\\\\\\\\relax\");m(\"\\\\TeX\",\"\\\\textrm{\\\\html@mathml{T\\\\kern-.1667em\\\\raisebox{-.5ex}{E}\\\\kern-.125emX}{TeX}}\");var za=A(D0[\"Main-Regular\"][84][1]-.7*D0[\"Main-Regular\"][65][1]);m(\"\\\\LaTeX\",\"\\\\textrm{\\\\html@mathml{\"+(\"L\\\\kern-.36em\\\\raisebox{\"+za+\"}{\\\\scriptstyle A}\")+\"\\\\kern-.15em\\\\TeX}{LaTeX}}\");m(\"\\\\KaTeX\",\"\\\\textrm{\\\\html@mathml{\"+(\"K\\\\kern-.17em\\\\raisebox{\"+za+\"}{\\\\scriptstyle A}\")+\"\\\\kern-.15em\\\\TeX}{KaTeX}}\");m(\"\\\\hspace\",\"\\\\@ifstar\\\\@hspacer\\\\@hspace\");m(\"\\\\@hspace\",\"\\\\hskip #1\\\\relax\");m(\"\\\\@hspacer\",\"\\\\rule{0pt}{0pt}\\\\hskip #1\\\\relax\");m(\"\\\\ordinarycolon\",\":\");m(\"\\\\vcentcolon\",\"\\\\mathrel{\\\\mathop\\\\ordinarycolon}\");m(\"\\\\dblcolon\",'\\\\html@mathml{\\\\mathrel{\\\\vcentcolon\\\\mathrel{\\\\mkern-.9mu}\\\\vcentcolon}}{\\\\mathop{\\\\char\"2237}}');m(\"\\\\coloneqq\",'\\\\html@mathml{\\\\mathrel{\\\\vcentcolon\\\\mathrel{\\\\mkern-1.2mu}=}}{\\\\mathop{\\\\char\"2254}}');m(\"\\\\Coloneqq\",'\\\\html@mathml{\\\\mathrel{\\\\dblcolon\\\\mathrel{\\\\mkern-1.2mu}=}}{\\\\mathop{\\\\char\"2237\\\\char\"3d}}');m(\"\\\\coloneq\",'\\\\html@mathml{\\\\mathrel{\\\\vcentcolon\\\\mathrel{\\\\mkern-1.2mu}\\\\mathrel{-}}}{\\\\mathop{\\\\char\"3a\\\\char\"2212}}');m(\"\\\\Coloneq\",'\\\\html@mathml{\\\\mathrel{\\\\dblcolon\\\\mathrel{\\\\mkern-1.2mu}\\\\mathrel{-}}}{\\\\mathop{\\\\char\"2237\\\\char\"2212}}');m(\"\\\\eqqcolon\",'\\\\html@mathml{\\\\mathrel{=\\\\mathrel{\\\\mkern-1.2mu}\\\\vcentcolon}}{\\\\mathop{\\\\char\"2255}}');m(\"\\\\Eqqcolon\",'\\\\html@mathml{\\\\mathrel{=\\\\mathrel{\\\\mkern-1.2mu}\\\\dblcolon}}{\\\\mathop{\\\\char\"3d\\\\char\"2237}}');m(\"\\\\eqcolon\",'\\\\html@mathml{\\\\mathrel{\\\\mathrel{-}\\\\mathrel{\\\\mkern-1.2mu}\\\\vcentcolon}}{\\\\mathop{\\\\char\"2239}}');m(\"\\\\Eqcolon\",'\\\\html@mathml{\\\\mathrel{\\\\mathrel{-}\\\\mathrel{\\\\mkern-1.2mu}\\\\dblcolon}}{\\\\mathop{\\\\char\"2212\\\\char\"2237}}');m(\"\\\\colonapprox\",'\\\\html@mathml{\\\\mathrel{\\\\vcentcolon\\\\mathrel{\\\\mkern-1.2mu}\\\\approx}}{\\\\mathop{\\\\char\"3a\\\\char\"2248}}');m(\"\\\\Colonapprox\",'\\\\html@mathml{\\\\mathrel{\\\\dblcolon\\\\mathrel{\\\\mkern-1.2mu}\\\\approx}}{\\\\mathop{\\\\char\"2237\\\\char\"2248}}');m(\"\\\\colonsim\",'\\\\html@mathml{\\\\mathrel{\\\\vcentcolon\\\\mathrel{\\\\mkern-1.2mu}\\\\sim}}{\\\\mathop{\\\\char\"3a\\\\char\"223c}}');m(\"\\\\Colonsim\",'\\\\html@mathml{\\\\mathrel{\\\\dblcolon\\\\mathrel{\\\\mkern-1.2mu}\\\\sim}}{\\\\mathop{\\\\char\"2237\\\\char\"223c}}');m(\"\\u2237\",\"\\\\dblcolon\");m(\"\\u2239\",\"\\\\eqcolon\");m(\"\\u2254\",\"\\\\coloneqq\");m(\"\\u2255\",\"\\\\eqqcolon\");m(\"\\u2A74\",\"\\\\Coloneqq\");m(\"\\\\ratio\",\"\\\\vcentcolon\");m(\"\\\\coloncolon\",\"\\\\dblcolon\");m(\"\\\\colonequals\",\"\\\\coloneqq\");m(\"\\\\coloncolonequals\",\"\\\\Coloneqq\");m(\"\\\\equalscolon\",\"\\\\eqqcolon\");m(\"\\\\equalscoloncolon\",\"\\\\Eqqcolon\");m(\"\\\\colonminus\",\"\\\\coloneq\");m(\"\\\\coloncolonminus\",\"\\\\Coloneq\");m(\"\\\\minuscolon\",\"\\\\eqcolon\");m(\"\\\\minuscoloncolon\",\"\\\\Eqcolon\");m(\"\\\\coloncolonapprox\",\"\\\\Colonapprox\");m(\"\\\\coloncolonsim\",\"\\\\Colonsim\");m(\"\\\\simcolon\",\"\\\\mathrel{\\\\sim\\\\mathrel{\\\\mkern-1.2mu}\\\\vcentcolon}\");m(\"\\\\simcoloncolon\",\"\\\\mathrel{\\\\sim\\\\mathrel{\\\\mkern-1.2mu}\\\\dblcolon}\");m(\"\\\\approxcolon\",\"\\\\mathrel{\\\\approx\\\\mathrel{\\\\mkern-1.2mu}\\\\vcentcolon}\");m(\"\\\\approxcoloncolon\",\"\\\\mathrel{\\\\approx\\\\mathrel{\\\\mkern-1.2mu}\\\\dblcolon}\");m(\"\\\\notni\",\"\\\\html@mathml{\\\\not\\\\ni}{\\\\mathrel{\\\\char`\\u220C}}\");m(\"\\\\limsup\",\"\\\\DOTSB\\\\operatorname*{lim\\\\,sup}\");m(\"\\\\liminf\",\"\\\\DOTSB\\\\operatorname*{lim\\\\,inf}\");m(\"\\\\injlim\",\"\\\\DOTSB\\\\operatorname*{inj\\\\,lim}\");m(\"\\\\projlim\",\"\\\\DOTSB\\\\operatorname*{proj\\\\,lim}\");m(\"\\\\varlimsup\",\"\\\\DOTSB\\\\operatorname*{\\\\overline{lim}}\");m(\"\\\\varliminf\",\"\\\\DOTSB\\\\operatorname*{\\\\underline{lim}}\");m(\"\\\\varinjlim\",\"\\\\DOTSB\\\\operatorname*{\\\\underrightarrow{lim}}\");m(\"\\\\varprojlim\",\"\\\\DOTSB\\\\operatorname*{\\\\underleftarrow{lim}}\");m(\"\\\\gvertneqq\",\"\\\\html@mathml{\\\\@gvertneqq}{\\u2269}\");m(\"\\\\lvertneqq\",\"\\\\html@mathml{\\\\@lvertneqq}{\\u2268}\");m(\"\\\\ngeqq\",\"\\\\html@mathml{\\\\@ngeqq}{\\u2271}\");m(\"\\\\ngeqslant\",\"\\\\html@mathml{\\\\@ngeqslant}{\\u2271}\");m(\"\\\\nleqq\",\"\\\\html@mathml{\\\\@nleqq}{\\u2270}\");m(\"\\\\nleqslant\",\"\\\\html@mathml{\\\\@nleqslant}{\\u2270}\");m(\"\\\\nshortmid\",\"\\\\html@mathml{\\\\@nshortmid}{\\u2224}\");m(\"\\\\nshortparallel\",\"\\\\html@mathml{\\\\@nshortparallel}{\\u2226}\");m(\"\\\\nsubseteqq\",\"\\\\html@mathml{\\\\@nsubseteqq}{\\u2288}\");m(\"\\\\nsupseteqq\",\"\\\\html@mathml{\\\\@nsupseteqq}{\\u2289}\");m(\"\\\\varsubsetneq\",\"\\\\html@mathml{\\\\@varsubsetneq}{\\u228A}\");m(\"\\\\varsubsetneqq\",\"\\\\html@mathml{\\\\@varsubsetneqq}{\\u2ACB}\");m(\"\\\\varsupsetneq\",\"\\\\html@mathml{\\\\@varsupsetneq}{\\u228B}\");m(\"\\\\varsupsetneqq\",\"\\\\html@mathml{\\\\@varsupsetneqq}{\\u2ACC}\");m(\"\\\\imath\",\"\\\\html@mathml{\\\\@imath}{\\u0131}\");m(\"\\\\jmath\",\"\\\\html@mathml{\\\\@jmath}{\\u0237}\");m(\"\\\\llbracket\",\"\\\\html@mathml{\\\\mathopen{[\\\\mkern-3.2mu[}}{\\\\mathopen{\\\\char`\\u27E6}}\");m(\"\\\\rrbracket\",\"\\\\html@mathml{\\\\mathclose{]\\\\mkern-3.2mu]}}{\\\\mathclose{\\\\char`\\u27E7}}\");m(\"\\u27E6\",\"\\\\llbracket\");m(\"\\u27E7\",\"\\\\rrbracket\");m(\"\\\\lBrace\",\"\\\\html@mathml{\\\\mathopen{\\\\{\\\\mkern-3.2mu[}}{\\\\mathopen{\\\\char`\\u2983}}\");m(\"\\\\rBrace\",\"\\\\html@mathml{\\\\mathclose{]\\\\mkern-3.2mu\\\\}}}{\\\\mathclose{\\\\char`\\u2984}}\");m(\"\\u21A4\",\"\\\\mapsfrom\");m(\"\\\\mapsfrom\",\"\\\\html@mathml{\\\\mathrel{\\\\mathreflectbox{\\\\mapsto}}}{\\\\mathrel{\\\\char`\\u21A4}}\");m(\"\\u2983\",\"\\\\lBrace\");m(\"\\u2984\",\"\\\\rBrace\");m(\"\\\\minuso\",\"\\\\mathbin{\\\\html@mathml{{\\\\mathrlap{\\\\mathchoice{\\\\kern{0.145em}}{\\\\kern{0.145em}}{\\\\kern{0.1015em}}{\\\\kern{0.0725em}}\\\\circ}{-}}}{\\\\char`\\u29B5}}\");m(\"\\u29B5\",\"\\\\minuso\");m(\"\\\\darr\",\"\\\\downarrow\");m(\"\\\\dArr\",\"\\\\Downarrow\");m(\"\\\\Darr\",\"\\\\Downarrow\");m(\"\\\\lang\",\"\\\\langle\");m(\"\\\\rang\",\"\\\\rangle\");m(\"\\\\uarr\",\"\\\\uparrow\");m(\"\\\\uArr\",\"\\\\Uparrow\");m(\"\\\\Uarr\",\"\\\\Uparrow\");m(\"\\\\N\",\"\\\\mathbb{N}\");m(\"\\\\R\",\"\\\\mathbb{R}\");m(\"\\\\Z\",\"\\\\mathbb{Z}\");m(\"\\\\alef\",\"\\\\aleph\");m(\"\\\\alefsym\",\"\\\\aleph\");m(\"\\\\Alpha\",\"\\\\mathrm{A}\");m(\"\\\\Beta\",\"\\\\mathrm{B}\");m(\"\\\\bull\",\"\\\\bullet\");m(\"\\\\Chi\",\"\\\\mathrm{X}\");m(\"\\\\clubs\",\"\\\\clubsuit\");m(\"\\\\cnums\",\"\\\\mathbb{C}\");m(\"\\\\Complex\",\"\\\\mathbb{C}\");m(\"\\\\Dagger\",\"\\\\ddagger\");m(\"\\\\diamonds\",\"\\\\diamondsuit\");m(\"\\\\empty\",\"\\\\emptyset\");m(\"\\\\Epsilon\",\"\\\\mathrm{E}\");m(\"\\\\Eta\",\"\\\\mathrm{H}\");m(\"\\\\exist\",\"\\\\exists\");m(\"\\\\harr\",\"\\\\leftrightarrow\");m(\"\\\\hArr\",\"\\\\Leftrightarrow\");m(\"\\\\Harr\",\"\\\\Leftrightarrow\");m(\"\\\\hearts\",\"\\\\heartsuit\");m(\"\\\\image\",\"\\\\Im\");m(\"\\\\infin\",\"\\\\infty\");m(\"\\\\Iota\",\"\\\\mathrm{I}\");m(\"\\\\isin\",\"\\\\in\");m(\"\\\\Kappa\",\"\\\\mathrm{K}\");m(\"\\\\larr\",\"\\\\leftarrow\");m(\"\\\\lArr\",\"\\\\Leftarrow\");m(\"\\\\Larr\",\"\\\\Leftarrow\");m(\"\\\\lrarr\",\"\\\\leftrightarrow\");m(\"\\\\lrArr\",\"\\\\Leftrightarrow\");m(\"\\\\Lrarr\",\"\\\\Leftrightarrow\");m(\"\\\\Mu\",\"\\\\mathrm{M}\");m(\"\\\\natnums\",\"\\\\mathbb{N}\");m(\"\\\\Nu\",\"\\\\mathrm{N}\");m(\"\\\\Omicron\",\"\\\\mathrm{O}\");m(\"\\\\plusmn\",\"\\\\pm\");m(\"\\\\rarr\",\"\\\\rightarrow\");m(\"\\\\rArr\",\"\\\\Rightarrow\");m(\"\\\\Rarr\",\"\\\\Rightarrow\");m(\"\\\\real\",\"\\\\Re\");m(\"\\\\reals\",\"\\\\mathbb{R}\");m(\"\\\\Reals\",\"\\\\mathbb{R}\");m(\"\\\\Rho\",\"\\\\mathrm{P}\");m(\"\\\\sdot\",\"\\\\cdot\");m(\"\\\\sect\",\"\\\\S\");m(\"\\\\spades\",\"\\\\spadesuit\");m(\"\\\\sub\",\"\\\\subset\");m(\"\\\\sube\",\"\\\\subseteq\");m(\"\\\\supe\",\"\\\\supseteq\");m(\"\\\\Tau\",\"\\\\mathrm{T}\");m(\"\\\\thetasym\",\"\\\\vartheta\");m(\"\\\\weierp\",\"\\\\wp\");m(\"\\\\Zeta\",\"\\\\mathrm{Z}\");m(\"\\\\argmin\",\"\\\\DOTSB\\\\operatorname*{arg\\\\,min}\");m(\"\\\\argmax\",\"\\\\DOTSB\\\\operatorname*{arg\\\\,max}\");m(\"\\\\plim\",\"\\\\DOTSB\\\\mathop{\\\\operatorname{plim}}\\\\limits\");m(\"\\\\bra\",\"\\\\mathinner{\\\\langle{#1}|}\");m(\"\\\\ket\",\"\\\\mathinner{|{#1}\\\\rangle}\");m(\"\\\\braket\",\"\\\\mathinner{\\\\langle{#1}\\\\rangle}\");m(\"\\\\Bra\",\"\\\\left\\\\langle#1\\\\right|\");m(\"\\\\Ket\",\"\\\\left|#1\\\\right\\\\rangle\");var Aa=r=>e=>{var t=e.consumeArg().tokens,a=e.consumeArg().tokens,n=e.consumeArg().tokens,s=e.consumeArg().tokens,u=e.macros.get(\"|\"),h=e.macros.get(\"\\\\|\");e.macros.beginGroup();var c=b=>y=>{r&&(y.macros.set(\"|\",u),n.length&&y.macros.set(\"\\\\|\",h));var x=b;if(!b&&n.length){var M=y.future();M.text===\"|\"&&(y.popToken(),x=!0)}return{tokens:x?n:a,numArgs:0}};e.macros.set(\"|\",c(!1)),n.length&&e.macros.set(\"\\\\|\",c(!0));var d=e.consumeArg().tokens,p=e.expandTokens([...s,...d,...t]);return e.macros.endGroup(),{tokens:p.reverse(),numArgs:0}};m(\"\\\\bra@ket\",Aa(!1));m(\"\\\\bra@set\",Aa(!0));m(\"\\\\Braket\",\"\\\\bra@ket{\\\\left\\\\langle}{\\\\,\\\\middle\\\\vert\\\\,}{\\\\,\\\\middle\\\\vert\\\\,}{\\\\right\\\\rangle}\");m(\"\\\\Set\",\"\\\\bra@set{\\\\left\\\\{\\\\:}{\\\\;\\\\middle\\\\vert\\\\;}{\\\\;\\\\middle\\\\Vert\\\\;}{\\\\:\\\\right\\\\}}\");m(\"\\\\set\",\"\\\\bra@set{\\\\{\\\\,}{\\\\mid}{}{\\\\,\\\\}}\");m(\"\\\\angln\",\"{\\\\angl n}\");m(\"\\\\blue\",\"\\\\textcolor{##6495ed}{#1}\");m(\"\\\\orange\",\"\\\\textcolor{##ffa500}{#1}\");m(\"\\\\pink\",\"\\\\textcolor{##ff00af}{#1}\");m(\"\\\\red\",\"\\\\textcolor{##df0030}{#1}\");m(\"\\\\green\",\"\\\\textcolor{##28ae7b}{#1}\");m(\"\\\\gray\",\"\\\\textcolor{gray}{#1}\");m(\"\\\\purple\",\"\\\\textcolor{##9d38bd}{#1}\");m(\"\\\\blueA\",\"\\\\textcolor{##ccfaff}{#1}\");m(\"\\\\blueB\",\"\\\\textcolor{##80f6ff}{#1}\");m(\"\\\\blueC\",\"\\\\textcolor{##63d9ea}{#1}\");m(\"\\\\blueD\",\"\\\\textcolor{##11accd}{#1}\");m(\"\\\\blueE\",\"\\\\textcolor{##0c7f99}{#1}\");m(\"\\\\tealA\",\"\\\\textcolor{##94fff5}{#1}\");m(\"\\\\tealB\",\"\\\\textcolor{##26edd5}{#1}\");m(\"\\\\tealC\",\"\\\\textcolor{##01d1c1}{#1}\");m(\"\\\\tealD\",\"\\\\textcolor{##01a995}{#1}\");m(\"\\\\tealE\",\"\\\\textcolor{##208170}{#1}\");m(\"\\\\greenA\",\"\\\\textcolor{##b6ffb0}{#1}\");m(\"\\\\greenB\",\"\\\\textcolor{##8af281}{#1}\");m(\"\\\\greenC\",\"\\\\textcolor{##74cf70}{#1}\");m(\"\\\\greenD\",\"\\\\textcolor{##1fab54}{#1}\");m(\"\\\\greenE\",\"\\\\textcolor{##0d923f}{#1}\");m(\"\\\\goldA\",\"\\\\textcolor{##ffd0a9}{#1}\");m(\"\\\\goldB\",\"\\\\textcolor{##ffbb71}{#1}\");m(\"\\\\goldC\",\"\\\\textcolor{##ff9c39}{#1}\");m(\"\\\\goldD\",\"\\\\textcolor{##e07d10}{#1}\");m(\"\\\\goldE\",\"\\\\textcolor{##a75a05}{#1}\");m(\"\\\\redA\",\"\\\\textcolor{##fca9a9}{#1}\");m(\"\\\\redB\",\"\\\\textcolor{##ff8482}{#1}\");m(\"\\\\redC\",\"\\\\textcolor{##f9685d}{#1}\");m(\"\\\\redD\",\"\\\\textcolor{##e84d39}{#1}\");m(\"\\\\redE\",\"\\\\textcolor{##bc2612}{#1}\");m(\"\\\\maroonA\",\"\\\\textcolor{##ffbde0}{#1}\");m(\"\\\\maroonB\",\"\\\\textcolor{##ff92c6}{#1}\");m(\"\\\\maroonC\",\"\\\\textcolor{##ed5fa6}{#1}\");m(\"\\\\maroonD\",\"\\\\textcolor{##ca337c}{#1}\");m(\"\\\\maroonE\",\"\\\\textcolor{##9e034e}{#1}\");m(\"\\\\purpleA\",\"\\\\textcolor{##ddd7ff}{#1}\");m(\"\\\\purpleB\",\"\\\\textcolor{##c6b9fc}{#1}\");m(\"\\\\purpleC\",\"\\\\textcolor{##aa87ff}{#1}\");m(\"\\\\purpleD\",\"\\\\textcolor{##7854ab}{#1}\");m(\"\\\\purpleE\",\"\\\\textcolor{##543b78}{#1}\");m(\"\\\\mintA\",\"\\\\textcolor{##f5f9e8}{#1}\");m(\"\\\\mintB\",\"\\\\textcolor{##edf2df}{#1}\");m(\"\\\\mintC\",\"\\\\textcolor{##e0e5cc}{#1}\");m(\"\\\\grayA\",\"\\\\textcolor{##f6f7f7}{#1}\");m(\"\\\\grayB\",\"\\\\textcolor{##f0f1f2}{#1}\");m(\"\\\\grayC\",\"\\\\textcolor{##e3e5e6}{#1}\");m(\"\\\\grayD\",\"\\\\textcolor{##d6d8da}{#1}\");m(\"\\\\grayE\",\"\\\\textcolor{##babec2}{#1}\");m(\"\\\\grayF\",\"\\\\textcolor{##888d93}{#1}\");m(\"\\\\grayG\",\"\\\\textcolor{##626569}{#1}\");m(\"\\\\grayH\",\"\\\\textcolor{##3b3e40}{#1}\");m(\"\\\\grayI\",\"\\\\textcolor{##21242c}{#1}\");m(\"\\\\kaBlue\",\"\\\\textcolor{##314453}{#1}\");m(\"\\\\kaGreen\",\"\\\\textcolor{##71B307}{#1}\");var Ma={\"^\":!0,_:!0,\"\\\\limits\":!0,\"\\\\nolimits\":!0},Et=class{constructor(e,t,a){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new qt(U4,t.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new Ge(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,a,n;if(e){if(this.consumeSpaces(),this.future().text!==\"[\")return null;t=this.popToken();var s=this.consumeArg([\"]\"]);n=s.tokens,a=s.end}else{var u=this.consumeArg();n=u.tokens,t=u.start,a=u.end}return this.pushToken(new d0(\"EOF\",a.loc)),this.pushTokens(n),new d0(\"\",h0.range(t,a))}consumeSpaces(){for(;;){var e=this.future();if(e.text===\" \")this.stack.pop();else break}}consumeArg(e){var t=[],a=e&&e.length>0;a||this.consumeSpaces();var n=this.future(),s,u=0,h=0;do{if(s=this.popToken(),t.push(s),s.text===\"{\")++u;else if(s.text===\"}\"){if(--u,u===-1)throw new z(\"Extra }\",s)}else if(s.text===\"EOF\")throw new z(\"Unexpected end of input in a macro argument, expected '\"+(e&&a?e[h]:\"}\")+\"'\",s);if(e&&a)if((u===0||u===1&&e[h]===\"{\")&&s.text===e[h]){if(++h,h===e.length){t.splice(-h,h);break}}else h=0}while(u!==0||a);return n.text===\"{\"&&t[t.length-1].text===\"}\"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:n,end:s}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new z(\"The length of delimiters doesn't match the number of args!\");for(var a=t[0],n=0;n<a.length;n++){var s=this.popToken();if(a[n]!==s.text)throw new z(\"Use of the macro doesn't match its definition\",s)}}for(var u=[],h=0;h<e;h++)u.push(this.consumeArg(t&&t[h+1]).tokens);return u}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new z(\"Too many expansions: infinite loop or need to increase maxExpand setting\")}expandOnce(e){var t=this.popToken(),a=t.text,n=t.noexpand?null:this._getExpansion(a);if(n==null||e&&n.unexpandable){if(e&&n==null&&a[0]===\"\\\\\"&&!this.isDefined(a))throw new z(\"Undefined control sequence: \"+a);return this.pushToken(t),!1}this.countExpansion(1);var s=n.tokens,u=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){s=s.slice();for(var h=s.length-1;h>=0;--h){var c=s[h];if(c.text===\"#\"){if(h===0)throw new z(\"Incomplete placeholder at end of macro body\",c);if(c=s[--h],c.text===\"#\")s.splice(h+1,1);else if(/^[1-9]$/.test(c.text))s.splice(h,2,...u[+c.text-1]);else throw new z(\"Not a valid argument number\",c)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=\"\\\\relax\"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new d0(e)]):void 0}expandTokens(e){var t=[],a=this.stack.length;for(this.pushTokens(e);this.stack.length>a;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(a=>a.text).join(\"\")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var a=this.lexer.catcodes[e];if(a!=null&&a!==13)return}var n=typeof t==\"function\"?t(this):t;if(typeof n==\"string\"){var s=0;if(n.includes(\"#\"))for(var u=n.replace(/##/g,\"\");u.includes(\"#\"+(s+1));)++s;for(var h=new Ge(n,this.settings),c=[],d=h.lex();d.text!==\"EOF\";)c.push(d),d=h.lex();c.reverse();var p={tokens:c,numArgs:s};return p}return n}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(G0,e)||Object.prototype.hasOwnProperty.call($.math,e)||Object.prototype.hasOwnProperty.call($.text,e)||Object.prototype.hasOwnProperty.call(Ma,e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t==\"string\"||typeof t==\"function\"||!t.unexpandable:Object.prototype.hasOwnProperty.call(G0,e)&&!G0[e].primitive}},Hr=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ee=Object.freeze({\"\\u208A\":\"+\",\"\\u208B\":\"-\",\"\\u208C\":\"=\",\"\\u208D\":\"(\",\"\\u208E\":\")\",\"\\u2080\":\"0\",\"\\u2081\":\"1\",\"\\u2082\":\"2\",\"\\u2083\":\"3\",\"\\u2084\":\"4\",\"\\u2085\":\"5\",\"\\u2086\":\"6\",\"\\u2087\":\"7\",\"\\u2088\":\"8\",\"\\u2089\":\"9\",\"\\u2090\":\"a\",\"\\u2091\":\"e\",\"\\u2095\":\"h\",\"\\u1D62\":\"i\",\"\\u2C7C\":\"j\",\"\\u2096\":\"k\",\"\\u2097\":\"l\",\"\\u2098\":\"m\",\"\\u2099\":\"n\",\"\\u2092\":\"o\",\"\\u209A\":\"p\",\"\\u1D63\":\"r\",\"\\u209B\":\"s\",\"\\u209C\":\"t\",\"\\u1D64\":\"u\",\"\\u1D65\":\"v\",\"\\u2093\":\"x\",\"\\u1D66\":\"\\u03B2\",\"\\u1D67\":\"\\u03B3\",\"\\u1D68\":\"\\u03C1\",\"\\u1D69\":\"\\u03D5\",\"\\u1D6A\":\"\\u03C7\",\"\\u207A\":\"+\",\"\\u207B\":\"-\",\"\\u207C\":\"=\",\"\\u207D\":\"(\",\"\\u207E\":\")\",\"\\u2070\":\"0\",\"\\xB9\":\"1\",\"\\xB2\":\"2\",\"\\xB3\":\"3\",\"\\u2074\":\"4\",\"\\u2075\":\"5\",\"\\u2076\":\"6\",\"\\u2077\":\"7\",\"\\u2078\":\"8\",\"\\u2079\":\"9\",\"\\u1D2C\":\"A\",\"\\u1D2E\":\"B\",\"\\u1D30\":\"D\",\"\\u1D31\":\"E\",\"\\u1D33\":\"G\",\"\\u1D34\":\"H\",\"\\u1D35\":\"I\",\"\\u1D36\":\"J\",\"\\u1D37\":\"K\",\"\\u1D38\":\"L\",\"\\u1D39\":\"M\",\"\\u1D3A\":\"N\",\"\\u1D3C\":\"O\",\"\\u1D3E\":\"P\",\"\\u1D3F\":\"R\",\"\\u1D40\":\"T\",\"\\u1D41\":\"U\",\"\\u2C7D\":\"V\",\"\\u1D42\":\"W\",\"\\u1D43\":\"a\",\"\\u1D47\":\"b\",\"\\u1D9C\":\"c\",\"\\u1D48\":\"d\",\"\\u1D49\":\"e\",\"\\u1DA0\":\"f\",\"\\u1D4D\":\"g\",\\u02B0:\"h\",\"\\u2071\":\"i\",\\u02B2:\"j\",\"\\u1D4F\":\"k\",\\u02E1:\"l\",\"\\u1D50\":\"m\",\\u207F:\"n\",\"\\u1D52\":\"o\",\"\\u1D56\":\"p\",\\u02B3:\"r\",\\u02E2:\"s\",\"\\u1D57\":\"t\",\"\\u1D58\":\"u\",\"\\u1D5B\":\"v\",\\u02B7:\"w\",\\u02E3:\"x\",\\u02B8:\"y\",\"\\u1DBB\":\"z\",\"\\u1D5D\":\"\\u03B2\",\"\\u1D5E\":\"\\u03B3\",\"\\u1D5F\":\"\\u03B4\",\"\\u1D60\":\"\\u03D5\",\"\\u1D61\":\"\\u03C7\",\"\\u1DBF\":\"\\u03B8\"}),ct={\"\\u0301\":{text:\"\\\\'\",math:\"\\\\acute\"},\"\\u0300\":{text:\"\\\\`\",math:\"\\\\grave\"},\"\\u0308\":{text:'\\\\\"',math:\"\\\\ddot\"},\"\\u0303\":{text:\"\\\\~\",math:\"\\\\tilde\"},\"\\u0304\":{text:\"\\\\=\",math:\"\\\\bar\"},\"\\u0306\":{text:\"\\\\u\",math:\"\\\\breve\"},\"\\u030C\":{text:\"\\\\v\",math:\"\\\\check\"},\"\\u0302\":{text:\"\\\\^\",math:\"\\\\hat\"},\"\\u0307\":{text:\"\\\\.\",math:\"\\\\dot\"},\"\\u030A\":{text:\"\\\\r\",math:\"\\\\mathring\"},\"\\u030B\":{text:\"\\\\H\"},\"\\u0327\":{text:\"\\\\c\"}},Lr={\\u00E1:\"a\\u0301\",\\u00E0:\"a\\u0300\",\\u00E4:\"a\\u0308\",\\u01DF:\"a\\u0308\\u0304\",\\u00E3:\"a\\u0303\",\\u0101:\"a\\u0304\",\\u0103:\"a\\u0306\",\\u1EAF:\"a\\u0306\\u0301\",\\u1EB1:\"a\\u0306\\u0300\",\\u1EB5:\"a\\u0306\\u0303\",\\u01CE:\"a\\u030C\",\\u00E2:\"a\\u0302\",\\u1EA5:\"a\\u0302\\u0301\",\\u1EA7:\"a\\u0302\\u0300\",\\u1EAB:\"a\\u0302\\u0303\",\\u0227:\"a\\u0307\",\\u01E1:\"a\\u0307\\u0304\",\\u00E5:\"a\\u030A\",\\u01FB:\"a\\u030A\\u0301\",\\u1E03:\"b\\u0307\",\\u0107:\"c\\u0301\",\\u1E09:\"c\\u0327\\u0301\",\\u010D:\"c\\u030C\",\\u0109:\"c\\u0302\",\\u010B:\"c\\u0307\",\\u00E7:\"c\\u0327\",\\u010F:\"d\\u030C\",\\u1E0B:\"d\\u0307\",\\u1E11:\"d\\u0327\",\\u00E9:\"e\\u0301\",\\u00E8:\"e\\u0300\",\\u00EB:\"e\\u0308\",\\u1EBD:\"e\\u0303\",\\u0113:\"e\\u0304\",\\u1E17:\"e\\u0304\\u0301\",\\u1E15:\"e\\u0304\\u0300\",\\u0115:\"e\\u0306\",\\u1E1D:\"e\\u0327\\u0306\",\\u011B:\"e\\u030C\",\\u00EA:\"e\\u0302\",\\u1EBF:\"e\\u0302\\u0301\",\\u1EC1:\"e\\u0302\\u0300\",\\u1EC5:\"e\\u0302\\u0303\",\\u0117:\"e\\u0307\",\\u0229:\"e\\u0327\",\\u1E1F:\"f\\u0307\",\\u01F5:\"g\\u0301\",\\u1E21:\"g\\u0304\",\\u011F:\"g\\u0306\",\\u01E7:\"g\\u030C\",\\u011D:\"g\\u0302\",\\u0121:\"g\\u0307\",\\u0123:\"g\\u0327\",\\u1E27:\"h\\u0308\",\\u021F:\"h\\u030C\",\\u0125:\"h\\u0302\",\\u1E23:\"h\\u0307\",\\u1E29:\"h\\u0327\",\\u00ED:\"i\\u0301\",\\u00EC:\"i\\u0300\",\\u00EF:\"i\\u0308\",\\u1E2F:\"i\\u0308\\u0301\",\\u0129:\"i\\u0303\",\\u012B:\"i\\u0304\",\\u012D:\"i\\u0306\",\\u01D0:\"i\\u030C\",\\u00EE:\"i\\u0302\",\\u01F0:\"j\\u030C\",\\u0135:\"j\\u0302\",\\u1E31:\"k\\u0301\",\\u01E9:\"k\\u030C\",\\u0137:\"k\\u0327\",\\u013A:\"l\\u0301\",\\u013E:\"l\\u030C\",\\u013C:\"l\\u0327\",\\u1E3F:\"m\\u0301\",\\u1E41:\"m\\u0307\",\\u0144:\"n\\u0301\",\\u01F9:\"n\\u0300\",\\u00F1:\"n\\u0303\",\\u0148:\"n\\u030C\",\\u1E45:\"n\\u0307\",\\u0146:\"n\\u0327\",\\u00F3:\"o\\u0301\",\\u00F2:\"o\\u0300\",\\u00F6:\"o\\u0308\",\\u022B:\"o\\u0308\\u0304\",\\u00F5:\"o\\u0303\",\\u1E4D:\"o\\u0303\\u0301\",\\u1E4F:\"o\\u0303\\u0308\",\\u022D:\"o\\u0303\\u0304\",\\u014D:\"o\\u0304\",\\u1E53:\"o\\u0304\\u0301\",\\u1E51:\"o\\u0304\\u0300\",\\u014F:\"o\\u0306\",\\u01D2:\"o\\u030C\",\\u00F4:\"o\\u0302\",\\u1ED1:\"o\\u0302\\u0301\",\\u1ED3:\"o\\u0302\\u0300\",\\u1ED7:\"o\\u0302\\u0303\",\\u022F:\"o\\u0307\",\\u0231:\"o\\u0307\\u0304\",\\u0151:\"o\\u030B\",\\u1E55:\"p\\u0301\",\\u1E57:\"p\\u0307\",\\u0155:\"r\\u0301\",\\u0159:\"r\\u030C\",\\u1E59:\"r\\u0307\",\\u0157:\"r\\u0327\",\\u015B:\"s\\u0301\",\\u1E65:\"s\\u0301\\u0307\",\\u0161:\"s\\u030C\",\\u1E67:\"s\\u030C\\u0307\",\\u015D:\"s\\u0302\",\\u1E61:\"s\\u0307\",\\u015F:\"s\\u0327\",\\u1E97:\"t\\u0308\",\\u0165:\"t\\u030C\",\\u1E6B:\"t\\u0307\",\\u0163:\"t\\u0327\",\\u00FA:\"u\\u0301\",\\u00F9:\"u\\u0300\",\\u00FC:\"u\\u0308\",\\u01D8:\"u\\u0308\\u0301\",\\u01DC:\"u\\u0308\\u0300\",\\u01D6:\"u\\u0308\\u0304\",\\u01DA:\"u\\u0308\\u030C\",\\u0169:\"u\\u0303\",\\u1E79:\"u\\u0303\\u0301\",\\u016B:\"u\\u0304\",\\u1E7B:\"u\\u0304\\u0308\",\\u016D:\"u\\u0306\",\\u01D4:\"u\\u030C\",\\u00FB:\"u\\u0302\",\\u016F:\"u\\u030A\",\\u0171:\"u\\u030B\",\\u1E7D:\"v\\u0303\",\\u1E83:\"w\\u0301\",\\u1E81:\"w\\u0300\",\\u1E85:\"w\\u0308\",\\u0175:\"w\\u0302\",\\u1E87:\"w\\u0307\",\\u1E98:\"w\\u030A\",\\u1E8D:\"x\\u0308\",\\u1E8B:\"x\\u0307\",\\u00FD:\"y\\u0301\",\\u1EF3:\"y\\u0300\",\\u00FF:\"y\\u0308\",\\u1EF9:\"y\\u0303\",\\u0233:\"y\\u0304\",\\u0177:\"y\\u0302\",\\u1E8F:\"y\\u0307\",\\u1E99:\"y\\u030A\",\\u017A:\"z\\u0301\",\\u017E:\"z\\u030C\",\\u1E91:\"z\\u0302\",\\u017C:\"z\\u0307\",\\u00C1:\"A\\u0301\",\\u00C0:\"A\\u0300\",\\u00C4:\"A\\u0308\",\\u01DE:\"A\\u0308\\u0304\",\\u00C3:\"A\\u0303\",\\u0100:\"A\\u0304\",\\u0102:\"A\\u0306\",\\u1EAE:\"A\\u0306\\u0301\",\\u1EB0:\"A\\u0306\\u0300\",\\u1EB4:\"A\\u0306\\u0303\",\\u01CD:\"A\\u030C\",\\u00C2:\"A\\u0302\",\\u1EA4:\"A\\u0302\\u0301\",\\u1EA6:\"A\\u0302\\u0300\",\\u1EAA:\"A\\u0302\\u0303\",\\u0226:\"A\\u0307\",\\u01E0:\"A\\u0307\\u0304\",\\u00C5:\"A\\u030A\",\\u01FA:\"A\\u030A\\u0301\",\\u1E02:\"B\\u0307\",\\u0106:\"C\\u0301\",\\u1E08:\"C\\u0327\\u0301\",\\u010C:\"C\\u030C\",\\u0108:\"C\\u0302\",\\u010A:\"C\\u0307\",\\u00C7:\"C\\u0327\",\\u010E:\"D\\u030C\",\\u1E0A:\"D\\u0307\",\\u1E10:\"D\\u0327\",\\u00C9:\"E\\u0301\",\\u00C8:\"E\\u0300\",\\u00CB:\"E\\u0308\",\\u1EBC:\"E\\u0303\",\\u0112:\"E\\u0304\",\\u1E16:\"E\\u0304\\u0301\",\\u1E14:\"E\\u0304\\u0300\",\\u0114:\"E\\u0306\",\\u1E1C:\"E\\u0327\\u0306\",\\u011A:\"E\\u030C\",\\u00CA:\"E\\u0302\",\\u1EBE:\"E\\u0302\\u0301\",\\u1EC0:\"E\\u0302\\u0300\",\\u1EC4:\"E\\u0302\\u0303\",\\u0116:\"E\\u0307\",\\u0228:\"E\\u0327\",\\u1E1E:\"F\\u0307\",\\u01F4:\"G\\u0301\",\\u1E20:\"G\\u0304\",\\u011E:\"G\\u0306\",\\u01E6:\"G\\u030C\",\\u011C:\"G\\u0302\",\\u0120:\"G\\u0307\",\\u0122:\"G\\u0327\",\\u1E26:\"H\\u0308\",\\u021E:\"H\\u030C\",\\u0124:\"H\\u0302\",\\u1E22:\"H\\u0307\",\\u1E28:\"H\\u0327\",\\u00CD:\"I\\u0301\",\\u00CC:\"I\\u0300\",\\u00CF:\"I\\u0308\",\\u1E2E:\"I\\u0308\\u0301\",\\u0128:\"I\\u0303\",\\u012A:\"I\\u0304\",\\u012C:\"I\\u0306\",\\u01CF:\"I\\u030C\",\\u00CE:\"I\\u0302\",\\u0130:\"I\\u0307\",\\u0134:\"J\\u0302\",\\u1E30:\"K\\u0301\",\\u01E8:\"K\\u030C\",\\u0136:\"K\\u0327\",\\u0139:\"L\\u0301\",\\u013D:\"L\\u030C\",\\u013B:\"L\\u0327\",\\u1E3E:\"M\\u0301\",\\u1E40:\"M\\u0307\",\\u0143:\"N\\u0301\",\\u01F8:\"N\\u0300\",\\u00D1:\"N\\u0303\",\\u0147:\"N\\u030C\",\\u1E44:\"N\\u0307\",\\u0145:\"N\\u0327\",\\u00D3:\"O\\u0301\",\\u00D2:\"O\\u0300\",\\u00D6:\"O\\u0308\",\\u022A:\"O\\u0308\\u0304\",\\u00D5:\"O\\u0303\",\\u1E4C:\"O\\u0303\\u0301\",\\u1E4E:\"O\\u0303\\u0308\",\\u022C:\"O\\u0303\\u0304\",\\u014C:\"O\\u0304\",\\u1E52:\"O\\u0304\\u0301\",\\u1E50:\"O\\u0304\\u0300\",\\u014E:\"O\\u0306\",\\u01D1:\"O\\u030C\",\\u00D4:\"O\\u0302\",\\u1ED0:\"O\\u0302\\u0301\",\\u1ED2:\"O\\u0302\\u0300\",\\u1ED6:\"O\\u0302\\u0303\",\\u022E:\"O\\u0307\",\\u0230:\"O\\u0307\\u0304\",\\u0150:\"O\\u030B\",\\u1E54:\"P\\u0301\",\\u1E56:\"P\\u0307\",\\u0154:\"R\\u0301\",\\u0158:\"R\\u030C\",\\u1E58:\"R\\u0307\",\\u0156:\"R\\u0327\",\\u015A:\"S\\u0301\",\\u1E64:\"S\\u0301\\u0307\",\\u0160:\"S\\u030C\",\\u1E66:\"S\\u030C\\u0307\",\\u015C:\"S\\u0302\",\\u1E60:\"S\\u0307\",\\u015E:\"S\\u0327\",\\u0164:\"T\\u030C\",\\u1E6A:\"T\\u0307\",\\u0162:\"T\\u0327\",\\u00DA:\"U\\u0301\",\\u00D9:\"U\\u0300\",\\u00DC:\"U\\u0308\",\\u01D7:\"U\\u0308\\u0301\",\\u01DB:\"U\\u0308\\u0300\",\\u01D5:\"U\\u0308\\u0304\",\\u01D9:\"U\\u0308\\u030C\",\\u0168:\"U\\u0303\",\\u1E78:\"U\\u0303\\u0301\",\\u016A:\"U\\u0304\",\\u1E7A:\"U\\u0304\\u0308\",\\u016C:\"U\\u0306\",\\u01D3:\"U\\u030C\",\\u00DB:\"U\\u0302\",\\u016E:\"U\\u030A\",\\u0170:\"U\\u030B\",\\u1E7C:\"V\\u0303\",\\u1E82:\"W\\u0301\",\\u1E80:\"W\\u0300\",\\u1E84:\"W\\u0308\",\\u0174:\"W\\u0302\",\\u1E86:\"W\\u0307\",\\u1E8C:\"X\\u0308\",\\u1E8A:\"X\\u0307\",\\u00DD:\"Y\\u0301\",\\u1EF2:\"Y\\u0300\",\\u0178:\"Y\\u0308\",\\u1EF8:\"Y\\u0303\",\\u0232:\"Y\\u0304\",\\u0176:\"Y\\u0302\",\\u1E8E:\"Y\\u0307\",\\u0179:\"Z\\u0301\",\\u017D:\"Z\\u030C\",\\u1E90:\"Z\\u0302\",\\u017B:\"Z\\u0307\",\\u03AC:\"\\u03B1\\u0301\",\\u1F70:\"\\u03B1\\u0300\",\\u1FB1:\"\\u03B1\\u0304\",\\u1FB0:\"\\u03B1\\u0306\",\\u03AD:\"\\u03B5\\u0301\",\\u1F72:\"\\u03B5\\u0300\",\\u03AE:\"\\u03B7\\u0301\",\\u1F74:\"\\u03B7\\u0300\",\\u03AF:\"\\u03B9\\u0301\",\\u1F76:\"\\u03B9\\u0300\",\\u03CA:\"\\u03B9\\u0308\",\\u0390:\"\\u03B9\\u0308\\u0301\",\\u1FD2:\"\\u03B9\\u0308\\u0300\",\\u1FD1:\"\\u03B9\\u0304\",\\u1FD0:\"\\u03B9\\u0306\",\\u03CC:\"\\u03BF\\u0301\",\\u1F78:\"\\u03BF\\u0300\",\\u03CD:\"\\u03C5\\u0301\",\\u1F7A:\"\\u03C5\\u0300\",\\u03CB:\"\\u03C5\\u0308\",\\u03B0:\"\\u03C5\\u0308\\u0301\",\\u1FE2:\"\\u03C5\\u0308\\u0300\",\\u1FE1:\"\\u03C5\\u0304\",\\u1FE0:\"\\u03C5\\u0306\",\\u03CE:\"\\u03C9\\u0301\",\\u1F7C:\"\\u03C9\\u0300\",\\u038E:\"\\u03A5\\u0301\",\\u1FEA:\"\\u03A5\\u0300\",\\u03AB:\"\\u03A5\\u0308\",\\u1FE9:\"\\u03A5\\u0304\",\\u1FE8:\"\\u03A5\\u0306\",\\u038F:\"\\u03A9\\u0301\",\\u1FFA:\"\\u03A9\\u0300\"},Pe=class r{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=\"math\",this.gullet=new Et(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new z(\"Expected '\"+e+\"', got '\"+this.fetch().text+\"'\",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(\"\\\\color\",\"\\\\textcolor\");try{var e=this.parseExpression(!1);return this.expect(\"EOF\"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new d0(\"}\")),this.gullet.pushTokens(e);var a=this.parseExpression(!1);return this.expect(\"}\"),this.nextToken=t,a}parseExpression(e,t){for(var a=[];;){this.mode===\"math\"&&this.consumeSpaces();var n=this.fetch();if(r.endOfExpression.has(n.text)||t&&n.text===t||e&&G0[n.text]&&G0[n.text].infix)break;var s=this.parseAtom(t);if(s){if(s.type===\"internal\")continue}else break;a.push(s)}return this.mode===\"text\"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(e){for(var t=-1,a,n=0;n<e.length;n++){var s=e[n];if(s.type===\"infix\"){if(t!==-1)throw new z(\"only one infix operator per group\",s.token);t=n,a=s.replaceWith}}if(t!==-1&&a){var u,h,c=e.slice(0,t),d=e.slice(t+1);c.length===1&&c[0].type===\"ordgroup\"?u=c[0]:u={type:\"ordgroup\",mode:this.mode,body:c},d.length===1&&d[0].type===\"ordgroup\"?h=d[0]:h={type:\"ordgroup\",mode:this.mode,body:d};var p;return a===\"\\\\\\\\abovefrac\"?p=this.callFunction(a,[u,e[t],h],[]):p=this.callFunction(a,[u,h],[]),[p]}else return e}handleSupSubscript(e){var t=this.fetch(),a=t.text;this.consume(),this.consumeSpaces();var n;do{var s;n=this.parseGroup(e)}while(((s=n)==null?void 0:s.type)===\"internal\");if(!n)throw new z(\"Expected group after '\"+a+\"'\",t);return n}formatUnsupportedCmd(e){for(var t=[],a=0;a<e.length;a++)t.push({type:\"textord\",mode:\"text\",text:e[a]});var n={type:\"text\",mode:this.mode,body:t},s={type:\"color\",mode:this.mode,color:this.settings.errorColor,body:[n]};return s}parseAtom(e){var t=this.parseGroup(\"atom\",e);if(t?.type===\"internal\"||this.mode===\"text\")return t;for(var a,n;;){this.consumeSpaces();var s=this.fetch();if(s.text===\"\\\\limits\"||s.text===\"\\\\nolimits\"){if(t&&t.type===\"op\")t.limits=s.text===\"\\\\limits\",t.alwaysHandleSupSub=!0;else if(t&&t.type===\"operatorname\")t.alwaysHandleSupSub&&(t.limits=s.text===\"\\\\limits\");else throw new z(\"Limit controls must follow a math operator\",s);this.consume()}else if(s.text===\"^\"){if(a)throw new z(\"Double superscript\",s);a=this.handleSupSubscript(\"superscript\")}else if(s.text===\"_\"){if(n)throw new z(\"Double subscript\",s);n=this.handleSupSubscript(\"subscript\")}else if(s.text===\"'\"){if(a)throw new z(\"Double superscript\",s);var u={type:\"textord\",mode:this.mode,text:\"\\\\prime\"},h=[u];for(this.consume();this.fetch().text===\"'\";)h.push(u),this.consume();this.fetch().text===\"^\"&&h.push(this.handleSupSubscript(\"superscript\")),a={type:\"ordgroup\",mode:this.mode,body:h}}else if(Ee[s.text]){var c=Hr.test(s.text),d=[];for(d.push(new d0(Ee[s.text])),this.consume();;){var p=this.fetch().text;if(!Ee[p]||Hr.test(p)!==c)break;d.unshift(new d0(Ee[p])),this.consume()}var b=this.subparse(d);c?n={type:\"ordgroup\",mode:\"math\",body:b}:a={type:\"ordgroup\",mode:\"math\",body:b}}else break}return a&&n?{type:\"supsub\",mode:this.mode,base:t,sup:a,sub:n}:a?{type:\"supsub\",mode:this.mode,base:t,sup:a}:n?{type:\"supsub\",mode:this.mode,base:t,sub:n}:t}parseFunction(e,t){var a=this.fetch(),n=a.text,s=G0[n];if(!s)return null;if(this.consume(),t&&t!==\"atom\"&&!s.allowedInArgument)throw new z(\"Got function '\"+n+\"' with no arguments\"+(t?\" as \"+t:\"\"),a);if(this.mode===\"text\"&&!s.allowedInText)throw new z(\"Can't use function '\"+n+\"' in text mode\",a);if(this.mode===\"math\"&&s.allowedInMath===!1)throw new z(\"Can't use function '\"+n+\"' in math mode\",a);var u=this.parseArguments(n,s),h=u.args,c=u.optArgs;return this.callFunction(n,h,c,a,e)}callFunction(e,t,a,n,s){var u={funcName:e,parser:this,token:n,breakOnTokenText:s},h=G0[e];if(h&&h.handler)return h.handler(u,t,a);throw new z(\"No function handler for \"+e)}parseArguments(e,t){var a,n=(a=t.numOptionalArgs)!=null?a:0,s=t.numArgs+n;if(s===0)return{args:[],optArgs:[]};for(var u=[],h=[],c=0;c<s;c++){var d,p=(d=t.argTypes)==null?void 0:d[c],b=c<n;(\"primitive\"in t&&t.primitive&&p==null||t.type===\"sqrt\"&&c===1&&h[0]==null)&&(p=\"primitive\");var y=this.parseGroupOfType(\"argument to '\"+e+\"'\",p,b);if(b)h.push(y);else if(y!=null)u.push(y);else throw new z(\"Null argument, please report this as a bug\")}return{args:u,optArgs:h}}parseGroupOfType(e,t,a){switch(t){case\"color\":return this.parseColorGroup(a);case\"size\":return this.parseSizeGroup(a);case\"url\":return this.parseUrlGroup(a);case\"math\":case\"text\":return this.parseArgumentGroup(a,t);case\"hbox\":{var n=this.parseArgumentGroup(a,\"text\");return n!=null?{type:\"styling\",mode:n.mode,body:[n],style:\"text\",resetFont:!0}:null}case\"raw\":{var s=this.parseStringGroup(a);return s!=null?{type:\"raw\",mode:\"text\",string:s.text}:null}case\"primitive\":{if(a)throw new z(\"A primitive argument cannot be optional\");var u=this.parseGroup(e);if(u==null)throw new z(\"Expected group as \"+e,this.fetch());return u}case\"original\":case void 0:return this.parseArgumentGroup(a);default:throw new z(\"Unknown group type as \"+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===\" \";)this.consume()}parseStringGroup(e){var t=this.gullet.scanArgument(e);if(t==null)return null;for(var a=\"\",n;(n=this.fetch()).text!==\"EOF\";)a+=n.text,this.consume();return this.consume(),t.text=a,t}parseRegexGroup(e,t){for(var a=this.fetch(),n=a,s=\"\",u;(u=this.fetch()).text!==\"EOF\"&&e.test(s+u.text);)n=u,s+=n.text,this.consume();if(s===\"\")throw new z(\"Invalid \"+t+\": '\"+a.text+\"'\",a);return a.range(n,s)}parseColorGroup(e){var t=this.parseStringGroup(e);if(t==null)return null;var a=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!a)throw new z(\"Invalid color: '\"+t.text+\"'\",t);var n=a[0];return/^[0-9a-f]{6}$/i.test(n)&&(n=\"#\"+n),{type:\"color-token\",mode:this.mode,color:n}}parseSizeGroup(e){var t,a=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!==\"{\"?t=this.parseRegexGroup(/^[-+]? *(?:$|\\d+|\\d+\\.\\d*|\\.\\d*) *[a-z]{0,2} *$/,\"size\"):t=this.parseStringGroup(e),!t)return null;!e&&t.text.length===0&&(t.text=\"0pt\",a=!0);var n=/([-+]?) *(\\d+(?:\\.\\d*)?|\\.\\d+) *([a-z]{2})/.exec(t.text);if(!n)throw new z(\"Invalid size: '\"+t.text+\"'\",t);var s={number:+(n[1]+n[2]),unit:n[3]};if(!Pr(s))throw new z(\"Invalid unit: '\"+s.unit+\"'\",t);return{type:\"size\",mode:this.mode,value:s,isBlank:a}}parseUrlGroup(e){this.gullet.lexer.setCatcode(\"%\",13),this.gullet.lexer.setCatcode(\"~\",12);var t=this.parseStringGroup(e);if(this.gullet.lexer.setCatcode(\"%\",14),this.gullet.lexer.setCatcode(\"~\",13),t==null)return null;var a=t.text.replace(/\\\\([#$%&~_^{}])/g,\"$1\");return{type:\"url\",mode:this.mode,url:a}}parseArgumentGroup(e,t){var a=this.gullet.scanArgument(e);if(a==null)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var s=this.parseExpression(!1,\"EOF\");this.expect(\"EOF\"),this.gullet.endGroup();var u={type:\"ordgroup\",mode:this.mode,loc:a.loc,body:s};return t&&this.switchMode(n),u}parseGroup(e,t){var a=this.fetch(),n=a.text,s;if(n===\"{\"||n===\"\\\\begingroup\"){this.consume();var u=n===\"{\"?\"}\":\"\\\\endgroup\";this.gullet.beginGroup();var h=this.parseExpression(!1,u),c=this.fetch();this.expect(u),this.gullet.endGroup(),s={type:\"ordgroup\",mode:this.mode,loc:h0.range(a,c),body:h,semisimple:n===\"\\\\begingroup\"||void 0}}else if(s=this.parseFunction(t,e)||this.parseSymbol(),s==null&&n[0]===\"\\\\\"&&!Object.prototype.hasOwnProperty.call(Ma,n)){if(this.settings.throwOnError)throw new z(\"Undefined control sequence: \"+n,a);s=this.formatUnsupportedCmd(n),this.consume()}return s}formLigatures(e){for(var t=e.length-1,a=0;a<t;++a){var n=e[a];if(n.type===\"textord\"){var s=n.text,u=e[a+1];if(!(!u||u.type!==\"textord\")){if(s===\"-\"&&u.text===\"-\"){var h=e[a+2];a+1<t&&h&&h.type===\"textord\"&&h.text===\"-\"?(e.splice(a,3,{type:\"textord\",mode:\"text\",loc:h0.range(n,h),text:\"---\"}),t-=2):(e.splice(a,2,{type:\"textord\",mode:\"text\",loc:h0.range(n,u),text:\"--\"}),t-=1)}(s===\"'\"||s===\"`\")&&u.text===s&&(e.splice(a,2,{type:\"textord\",mode:\"text\",loc:h0.range(n,u),text:s+s}),t-=1)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\\\verb[^a-zA-Z]/.test(t)){this.consume();var a=t.slice(5),n=a.charAt(0)===\"*\";if(n&&(a=a.slice(1)),a.length<2||a.charAt(0)!==a.slice(-1))throw new z(`\\\\verb assertion failed --\n                    please report what input caused this bug`);return a=a.slice(1,-1),{type:\"verb\",mode:\"text\",body:a,star:n}}Object.prototype.hasOwnProperty.call(Lr,t[0])&&!$[this.mode][t[0]]&&(this.settings.strict&&this.mode===\"math\"&&this.settings.reportNonstrict(\"unicodeTextInMathMode\",'Accented Unicode text character \"'+t[0]+'\" used in math mode',e),t=Lr[t[0]]+t.slice(1));var s=G4.exec(t);s&&(t=t.substring(0,s.index),t===\"i\"?t=\"\\u0131\":t===\"j\"&&(t=\"\\u0237\"));var u;if($[this.mode][t]){this.settings.strict&&this.mode===\"math\"&&gt.includes(t)&&this.settings.reportNonstrict(\"unicodeTextInMathMode\",'Latin-1/Unicode text character \"'+t[0]+'\" used in math mode',e);var h=$[this.mode][t].group,c=h0.range(e),d;J1(h)?d={type:\"atom\",mode:this.mode,family:h,loc:c,text:t}:d={type:h,mode:this.mode,loc:c,text:t},u=d}else if(t.charCodeAt(0)>=128)this.settings.strict&&(Gr(t.charCodeAt(0))?this.mode===\"math\"&&this.settings.reportNonstrict(\"unicodeTextInMathMode\",'Unicode text character \"'+t[0]+'\" used in math mode',e):this.settings.reportNonstrict(\"unknownSymbol\",'Unrecognized Unicode character \"'+t[0]+'\"'+(\" (\"+t.charCodeAt(0)+\")\"),e)),u={type:\"textord\",mode:\"text\",loc:h0.range(e),text:t};else return null;if(this.consume(),s)for(var p=0;p<s[0].length;p++){var b=s[0][p];if(!ct[b])throw new z(\"Unknown accent ' \"+b+\"'\",e);var y=ct[b][this.mode]||ct[b].text;if(!y)throw new z(\"Accent \"+b+\" unsupported in \"+this.mode+\" mode\",e);u={type:\"accent\",mode:this.mode,loc:h0.range(e),label:y,isStretchy:!1,isShifty:!0,base:u}}return u}};Pe.endOfExpression=new Set([\"}\",\"\\\\endgroup\",\"\\\\end\",\"\\\\right\",\"&\"]);var j4=function(e,t){if(!(typeof e==\"string\"||e instanceof String))throw new TypeError(\"KaTeX can only parse string typed expression\");var a=new Pe(e,t);delete a.gullet.macros.current[\"\\\\df@tag\"];var n=a.parse();if(delete a.gullet.macros.current[\"\\\\current@color\"],delete a.gullet.macros.current[\"\\\\color\"],a.gullet.macros.get(\"\\\\df@tag\")){if(!t.displayMode)throw new z(\"\\\\tag works only in display equations\");n=[{type:\"tag\",mode:\"text\",body:n,tag:a.subparse([new d0(\"\\\\df@tag\")])}]}return n},X4=function(e,t,a){t.textContent=\"\";var n=Ca(e,a).toNode();t.appendChild(n)};typeof document<\"u\"&&document.compatMode!==\"CSS1Compat\"&&(typeof console<\"u\"&&console.warn(\"Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.\"),X4=function(){throw new z(\"KaTeX doesn't work in quirks mode.\")});var Ta=function(e,t){var a=Ca(e,t).toMarkup();return a};var Y4=function(e,t,a){if(a.throwOnError||!(e instanceof z))throw e;var n=k([\"katex-error\"],[new m0(t)]);return n.setAttribute(\"title\",e.toString()),n.setAttribute(\"style\",\"color:\"+a.errorColor),n},Ca=function(e,t){var a=new dt(t);try{var n=j4(e,a);return U1(n,e,a)}catch(s){return Y4(s,e,a)}};return Ua($4);})();\n;window.Bibliotecas=window.Bibliotecas||{};window.Bibliotecas[\"katex\"]=_bibliotecaMethods;})();\n",
  "vendor/katex/LICENSE": "===== katex =====\nThe MIT License (MIT)\n\nCopyright (c) 2013-2020 Khan Academy and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
  "vendor/katex/package.json": "{\n  \"name\": \"katex\",\n  \"version\": \"0.18.9\",\n  \"description\": \"Fast math typesetting for the web.\",\n  \"main\": \"dist/katex.js\",\n  \"types\": \"types/katex.d.ts\",\n  \"exports\": {\n    \".\": {\n      \"require\": {\n        \"types\": \"./types/katex.d.ts\",\n        \"default\": \"./dist/katex.js\"\n      },\n      \"import\": {\n        \"types\": \"./types/katex.d.ts\",\n        \"default\": \"./dist/katex.mjs\"\n      }\n    },\n    \"./contrib/auto-render\": {\n      \"require\": {\n        \"types\": \"./types/contrib/auto-render.d.cts\",\n        \"default\": \"./dist/contrib/auto-render.js\"\n      },\n      \"import\": {\n        \"types\": \"./types/contrib/auto-render.d.mts\",\n        \"default\": \"./dist/contrib/auto-render.mjs\"\n      }\n    },\n    \"./contrib/mhchem\": {\n      \"require\": {\n        \"types\": \"./types/contrib/mhchem.d.cts\",\n        \"default\": \"./dist/contrib/mhchem.js\"\n      },\n      \"import\": {\n        \"types\": \"./types/contrib/mhchem.d.mts\",\n        \"default\": \"./dist/contrib/mhchem.mjs\"\n      }\n    },\n    \"./contrib/copy-tex\": {\n      \"require\": {\n        \"types\": \"./types/contrib/copy-tex.d.cts\",\n        \"default\": \"./dist/contrib/copy-tex.js\"\n      },\n      \"import\": {\n        \"types\": \"./types/contrib/copy-tex.d.mts\",\n        \"default\": \"./dist/contrib/copy-tex.mjs\"\n      }\n    },\n    \"./contrib/mathtex-script-type\": {\n      \"require\": {\n        \"types\": \"./types/contrib/mathtex-script-type.d.cts\",\n        \"default\": \"./dist/contrib/mathtex-script-type.js\"\n      },\n      \"import\": {\n        \"types\": \"./types/contrib/mathtex-script-type.d.mts\",\n        \"default\": \"./dist/contrib/mathtex-script-type.mjs\"\n      }\n    },\n    \"./contrib/render-a11y-string\": {\n      \"require\": {\n        \"types\": \"./types/contrib/render-a11y-string.d.cts\",\n        \"default\": \"./dist/contrib/render-a11y-string.js\"\n      },\n      \"import\": {\n        \"types\": \"./types/contrib/render-a11y-string.d.mts\",\n        \"default\": \"./dist/contrib/render-a11y-string.mjs\"\n      }\n    },\n    \"./*\": \"./*\"\n  },\n  \"homepage\": \"https://katex.org\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/KaTeX/KaTeX.git\"\n  },\n  \"funding\": [\n    \"https://opencollective.com/katex\",\n    \"https://github.com/sponsors/katex\"\n  ],\n  \"files\": [\n    \"katex.ts\",\n    \"cli.js\",\n    \"src/\",\n    \"contrib/\",\n    \"dist/\",\n    \"types/\"\n  ],\n  \"license\": \"MIT\",\n  \"packageManager\": \"pnpm@11.4.0\",\n  \"devDependencies\": {\n    \"@babel/core\": \"^7.29.0\",\n    \"@babel/plugin-proposal-class-properties\": \"^7.18.6\",\n    \"@babel/plugin-transform-react-jsx\": \"^7.28.6\",\n    \"@babel/plugin-transform-runtime\": \"^7.29.0\",\n    \"@babel/preset-env\": \"^7.29.0\",\n    \"@babel/preset-react\": \"^7.28.5\",\n    \"@babel/preset-typescript\": \"^7.28.5\",\n    \"@babel/register\": \"^7.28.6\",\n    \"@babel/runtime\": \"^7.28.6\",\n    \"@eslint/eslintrc\": \"^3.3.5\",\n    \"@eslint/js\": \"^10.0.1\",\n    \"@rollup/plugin-babel\": \"^5.3.1\",\n    \"@rollup/plugin-commonjs\": \"^28.0.9\",\n    \"@rollup/plugin-typescript\": \"^12.3.0\",\n    \"@semantic-release/changelog\": \"^6.0.1\",\n    \"@semantic-release/git\": \"^10.0.1\",\n    \"@stylistic/stylelint-plugin\": \"^5.1.0\",\n    \"@typescript-eslint/eslint-plugin\": \"^8.59.1\",\n    \"@typescript-eslint/parser\": \"^8.59.1\",\n    \"babel-jest\": \"^30.2.0\",\n    \"babel-loader\": \"^8.2.5\",\n    \"babel-plugin-istanbul\": \"^6.1.1\",\n    \"babel-plugin-preval\": \"^5.1.0\",\n    \"babel-plugin-version-inline\": \"^1.0.0\",\n    \"benchmark\": \"^2.1.4\",\n    \"browserslist\": \"^4.21.3\",\n    \"caniuse-lite\": \"^1.0.30001384\",\n    \"css-loader\": \"^6.7.1\",\n    \"cssnano\": \"^5.1.13\",\n    \"eslint\": \"^10.0.3\",\n    \"eslint-plugin-actions\": \"^2.0.0\",\n    \"eslint-plugin-react\": \"^7.37.5\",\n    \"fs-extra\": \"^10.1.0\",\n    \"globals\": \"^17.6.0\",\n    \"got\": \"^11.8.5\",\n    \"husky\": \"^9.1.7\",\n    \"istanbul-lib-coverage\": \"^3.2.0\",\n    \"istanbul-lib-report\": \"^3.0.0\",\n    \"istanbul-reports\": \"^3.1.5\",\n    \"jest\": \"^30.2.0\",\n    \"jest-diff\": \"^30.2.0\",\n    \"jest-environment-jsdom\": \"^30.2.0\",\n    \"jest-matcher-utils\": \"^30.2.0\",\n    \"jest-message-util\": \"^30.2.0\",\n    \"jest-serializer-html\": \"^7.1.0\",\n    \"js-yaml\": \"^4.1.0\",\n    \"json-stable-stringify\": \"^1.0.1\",\n    \"jspngopt\": \"^0.2.0\",\n    \"mini-css-extract-plugin\": \"^2.6.1\",\n    \"mkdirp\": \"^1.0.4\",\n    \"p-retry\": \"^4.6.2\",\n    \"pako\": \"^2.0.4\",\n    \"pixelmatch\": \"^7.2.0\",\n    \"pngjs\": \"^7.0.0\",\n    \"postcss\": \"^8.4.16\",\n    \"postcss-loader\": \"^7.0.1\",\n    \"postcss-preset-env\": \"^7.8.0\",\n    \"postcss-scss\": \"^4.0.9\",\n    \"rimraf\": \"^3.0.2\",\n    \"rollup\": \"^2.79.2\",\n    \"sass\": \"^1.94.2\",\n    \"sass-loader\": \"^16.0.6\",\n    \"selenium-webdriver\": \"^4.4.0\",\n    \"semantic-release\": \"^19.0.5\",\n    \"sri-toolbox\": \"^0.2.0\",\n    \"style-loader\": \"^3.3.1\",\n    \"stylelint\": \"^17.9.1\",\n    \"stylelint-config-standard\": \"^40.0.0\",\n    \"stylelint-scss\": \"^7.0.0\",\n    \"terser-webpack-plugin\": \"^5.3.6\",\n    \"tslib\": \"^2.8.1\",\n    \"typescript\": \"^5.9.3\",\n    \"webpack\": \"^5.74.0\",\n    \"webpack-bundle-analyzer\": \"^5.0.0\",\n    \"webpack-cli\": \"^5.0.0\",\n    \"webpack-dev-server\": \"^5.0.0\",\n    \"webpack-remove-empty-scripts\": \"^1.0.4\"\n  },\n  \"bin\": \"cli.js\",\n  \"scripts\": {\n    \"test\": \"pnpm test:lint && pnpm test:ts && pnpm test:jest\",\n    \"test:lint\": \"pnpm test:lint:js && pnpm test:lint:css\",\n    \"test:lint:js\": \"eslint .\",\n    \"test:lint:css\": \"stylelint src/styles/katex.scss static/main.css website/static/**/*.css\",\n    \"test:jest\": \"jest\",\n    \"test:jest:watch\": \"jest --watch\",\n    \"test:jest:update\": \"jest --updateSnapshot\",\n    \"test:jest:coverage\": \"jest --coverage\",\n    \"test:screenshots\": \"pnpm test:screenshots:update --verify\",\n    \"test:screenshots:update\": \"dockers/screenshotter/screenshotter.sh\",\n    \"test:perf\": \"NODE_ENV=test node -e \\\"require('@babel/register')({extensions:['.js','.ts']}); require('./test/perf-test.ts')\\\"\",\n    \"test:ts\": \"tsc --noEmit\",\n    \"test:build\": \"node test/verify-build.js\",\n    \"clean\": \"rm -rf dist/ node_modules/\",\n    \"clean-install\": \"pnpm clean && pnpm install\",\n    \"start\": \"webpack serve --config webpack.dev.js\",\n    \"analyze\": \"webpack --config webpack.analyze.js\",\n    \"build\": \"rimraf dist/ && mkdirp dist && cp README.md dist && rollup -c --failAfterWarnings && webpack && node update-sri.js package dist/README.md\",\n    \"build:fonts\": \"dockers/fonts/buildFonts.sh\",\n    \"build:metrics\": \"dockers/fonts/buildMetrics.sh\",\n    \"watch\": \"pnpm build --watch\",\n    \"postversion\": \"pnpm dist && node update-sri.js package README.md contrib/*/README.md docs/*.md website/pages/index.html\",\n    \"semantic-release\": \"semantic-release\",\n    \"dist\": \"pnpm build && pnpm dist:zip\",\n    \"dist:zip\": \"rimraf katex/ katex.tar.gz katex.zip && cp -R dist katex && tar czf katex.tar.gz katex && zip -rq katex.zip katex && rimraf katex/\",\n    \"prepare\": \"husky\"\n  },\n  \"dependencies\": {\n    \"commander\": \"^15.0.0\"\n  },\n  \"jest\": {\n    \"collectCoverageFrom\": [\n      \"src/**/*.{js,ts}\",\n      \"contrib/**/*.{js,ts}\",\n      \"!src/unicodeSymbols.{js,ts}\",\n      \"!contrib/mhchem/**\"\n    ],\n    \"setupFilesAfterEnv\": [\n      \"<rootDir>/test/setup.ts\"\n    ],\n    \"snapshotSerializers\": [\n      \"jest-serializer-html\"\n    ],\n    \"testMatch\": [\n      \"**/test/*-spec.ts\"\n    ],\n    \"testEnvironmentOptions\": {\n      \"url\": \"http://localhost/\"\n    },\n    \"transform\": {\n      \"^.+\\\\.(js|ts)$\": \"babel-jest\"\n    },\n    \"moduleNameMapper\": {\n      \"^katex$\": \"<rootDir>/katex.ts\"\n    }\n  }\n}\n",
  "vendor/echarts/erlen-bundle.js": "(function(){var _bibliotecaMethods=(()=>{var Lc=Object.defineProperty;var dC=Object.getOwnPropertyDescriptor;var mC=Object.getOwnPropertyNames;var gC=Object.prototype.hasOwnProperty;var Nm=(t,e)=>{for(var r in e)Lc(t,r,{get:e[r],enumerable:!0})},yC=(t,e,r,i)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let n of mC(e))!gC.call(t,n)&&n!==r&&Lc(t,n,{get:()=>e[n],enumerable:!(i=dC(e,n))||i.enumerable});return t};var _C=t=>yC(Lc({},\"__esModule\",{value:!0}),t);var IR={};Nm(IR,{init:()=>S1});/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */var Pc=function(t,e){return Pc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Pc(t,e)};function L(t,e){if(typeof e!=\"function\"&&e!==null)throw new TypeError(\"Class extends value \"+String(e)+\" is not a constructor or null\");Pc(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var xC=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),SC=(function(){function t(){this.browser=new xC,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<\"u\"}return t})(),ci=new SC;typeof wx==\"object\"&&typeof wx.getSystemInfoSync==\"function\"?(ci.wxa=!0,ci.touchEventsSupported=!0):typeof document>\"u\"&&typeof self<\"u\"?ci.worker=!0:!ci.hasGlobalWindow||\"Deno\"in window||typeof navigator<\"u\"&&typeof navigator.userAgent==\"string\"&&navigator.userAgent.indexOf(\"Node.js\")>-1?(ci.node=!0,ci.svgSupported=!0):TC(navigator.userAgent,ci);function TC(t,e){var r=e.browser,i=t.match(/Firefox\\/([\\d.]+)/),n=t.match(/MSIE\\s([\\d.]+)/)||t.match(/Trident\\/.+?rv:(([\\d.]+))/),a=t.match(/Edge?\\/([\\d.]+)/),o=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(\".\")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<\"u\",e.touchEventsSupported=\"ontouchstart\"in window&&!r.ie&&!r.edge,e.pointerEventsSupported=\"onpointerdown\"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<\"u\";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&\"transition\"in l||r.edge||\"WebKitCSSMatrix\"in window&&\"m11\"in new WebKitCSSMatrix||\"MozPerspective\"in l)&&!(\"OTransition\"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var me=ci;var ll=12,Nc=\"sans-serif\",xt=ll+\"px \"+Nc,bC=20,wC=100,CC=\"007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\\\\\WQb\\\\0FWLg\\\\bWb\\\\WQ\\\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\\\FFF5.5N\";function EC(t){var e={};if(typeof JSON>\"u\")return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-bC)/wC;e[i]=n}return e}var AC=EC(CC),nt={createCanvas:function(){return typeof document<\"u\"&&document.createElement(\"canvas\")},measureText:(function(){var t,e;return function(r,i){if(!t){var n=nt.createCanvas();t=n&&n.getContext(\"2d\")}if(t)return e!==i&&(e=t.font=i||xt),t.measureText(r);r=r||\"\",i=i||xt;var a=/((?:\\d+)?\\.?\\d*)px/.exec(i),o=a&&+a[1]||ll,s=0;if(i.indexOf(\"mono\")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=AC[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};var Bm=rr([\"Function\",\"RegExp\",\"Date\",\"Error\",\"CanvasGradient\",\"CanvasPattern\",\"Image\",\"Canvas\"],function(t,e){return t[\"[object \"+e+\"]\"]=!0,t},{}),zm=rr([\"Int8\",\"Uint8\",\"Uint8Clamped\",\"Int16\",\"Uint16\",\"Int32\",\"Uint32\",\"Float32\",\"Float64\"],function(t,e){return t[\"[object \"+e+\"Array]\"]=!0,t},{}),go=Object.prototype.toString,fl=Array.prototype,DC=fl.forEach,MC=fl.filter,Bc=fl.slice,OC=fl.map,Rm=function(){}.constructor,ul=Rm?Rm.prototype:null,zc=\"__proto__\",Rc=2311,IC=Math.pow(2,53)-1;function cl(){return Rc>=IC&&(Rc=0),Rc++}function pl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<\"u\"&&console.error.apply(console,t)}function Q(t){if(t==null||typeof t!=\"object\")return t;var e=t,r=go.call(t);if(r===\"[object Array]\"){if(!mo(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=Q(t[i])}}else if(zm[r]){if(!mo(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,n=t.length;i<n;i++)e[i]=t[i]}}}else if(!Bm[r]&&!mo(t)&&!kc(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==zc&&(e[o]=Q(t[o]))}return e}function pe(t,e,r){if(!H(e)||!H(t))return r?Q(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==zc){var n=t[i],a=e[i];H(a)&&H(n)&&!k(a)&&!k(n)&&!kc(a)&&!kc(n)&&!km(a)&&!km(n)&&!mo(a)&&!mo(n)?pe(n,a,r):(r||!(i in t))&&(t[i]=Q(e[i]))}return t}function P(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==zc&&(t[r]=e[r]);return t}function Um(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function te(t,e,r){for(var i=K(e),n=0,a=i.length;n<a;n++){var o=i[n];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var BR=nt.createCanvas;function se(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function Fm(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function ct(t,e,r){if(t=\"prototype\"in t?t.prototype:t,e=\"prototype\"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!==\"constructor\"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else te(t,e,r)}function He(t){return!t||typeof t==\"string\"?!1:typeof t.length==\"number\"}function b(t,e,r){if(t&&e)if(t.forEach&&t.forEach===DC)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function R(t,e,r){if(!t)return[];if(!e)return hl(t);if(t.map&&t.map===OC)return t.map(e,r);for(var i=[],n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}function rr(t,e,r,i){if(t&&e){for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}}function Pe(t,e,r){if(!t)return[];if(!e)return hl(t);if(t.filter&&t.filter===MC)return t.filter(e,r);for(var i=[],n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function Vm(t,e,r){if(t&&e){for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}}function K(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function LC(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(Bc.call(arguments)))}}var $=ul&&G(ul.bind)?ul.call.bind(ul.bind):LC;function Me(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Bc.call(arguments)))}}function k(t){return Array.isArray?Array.isArray(t):go.call(t)===\"[object Array]\"}function G(t){return typeof t==\"function\"}function B(t){return typeof t==\"string\"}function Uc(t){return go.call(t)===\"[object String]\"}function fe(t){return typeof t==\"number\"}function H(t){var e=typeof t;return e===\"function\"||!!t&&e===\"object\"}function km(t){return!!Bm[go.call(t)]}function Ne(t){return!!zm[go.call(t)]}function kc(t){return typeof t==\"object\"&&typeof t.nodeType==\"number\"&&typeof t.ownerDocument==\"object\"}function ta(t){return t.colorStops!=null}function pi(t){return t!==t}function ra(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function F(t,e){return t??e}function ir(t,e,r){return t??e??r}function hl(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Bc.apply(t,e)}function ia(t){if(typeof t==\"number\")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Re(t,e){if(!t)throw new Error(e)}function St(t){return t==null?null:typeof t.trim==\"function\"?t.trim():t.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\"\")}var Hm=\"__ec_primitive__\";function na(t){t[Hm]=!0}function mo(t){return t[Hm]}var PC=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return K(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})(),Gm=typeof Map==\"function\";function NC(){return Gm?new Map:new PC}var RC=(function(){function t(e){var r=k(e);this.data=NC();var i=this;e instanceof t?e.each(n):e&&b(e,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(i,n){e.call(r,i,n)})},t.prototype.keys=function(){var e=this.data.keys();return Gm?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function U(t){return new RC(t)}function Ym(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var n=t.length,i=0;i<e.length;i++)r[i+n]=e[i];return r}function hi(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&P(r,e),r}function Ue(t,e){return t.hasOwnProperty(e)}function Ce(){}var aa=180/Math.PI,zR=Number.EPSILON||Math.pow(2,-52);function vi(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Wm(t){return[t[0],t[1]]}function vl(t,e,r){return t[0]=e,t[1]=r,t}function Fc(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function Zm(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function kC(t){return Math.sqrt(BC(t))}function BC(t){return t[0]*t[0]+t[1]*t[1]}function dl(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Xm(t,e){var r=kC(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function ml(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var qm=ml;function zC(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Zi=zC;function et(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function Br(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function zr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var oa=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),UC=(function(){function t(e){this.handler=e,e.on(\"mousedown\",this._dragStart,this),e.on(\"mousemove\",this._drag,this),e.on(\"mouseup\",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new oa(r,e),\"dragstart\",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var i=e.offsetX,n=e.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,e),this.handler.dispatchToElement(new oa(r,e),\"drag\",e.event);var s=this.handler.findHover(i,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new oa(l,e),\"dragleave\",e.event),s&&s!==l&&this.handler.dispatchToElement(new oa(s,e),\"dragenter\",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new oa(r,e),\"dragend\",e.event),this._dropTarget&&this.handler.dispatchToElement(new oa(this._dropTarget,e),\"drop\",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),Km=UC;var FC=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r==\"function\"&&(n=i,i=r,r=null),!i||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(r){if(i[e]){for(var n=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==r&&n.push(i[e][a]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),tt=FC;var VC=Math.log(2);function Vc(t,e,r,i,n,a){var o=i+\"-\"+n,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/VC);return t[r][l]}for(var u=i|1<<r,f=r+1;i&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var v=1<<p;v&n||(c+=(h%2?-1:1)*t[r][p]*Vc(t,e-1,f,u,n|v,a),h++)}return a[o]=c,c}function Hc(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},n=Vc(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Vc(r,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var jm=\"___zrEVENTSAVED\";function Qm(t,e,r,i,n){if(e.getBoundingClientRect&&me.domSupported&&!Gc(e)){var a=e[jm]||(e[jm]={}),o=HC(e,a),s=GC(o,a,n);if(s)return s(t,r,i),!0}return!1}function HC(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=[\"left\",\"right\"],n=[\"top\",\"bottom\"],a=0;a<4;a++){var o=document.createElement(\"div\"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=[\"position: absolute\",\"visibility: hidden\",\"padding: 0\",\"margin: 0\",\"border-width: 0\",\"user-select: none\",\"width:0\",\"height:0\",i[l]+\":0\",n[u]+\":0\",i[1-l]+\":auto\",n[1-u]+\":auto\",\"\"].join(\"!important;\"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){b(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function GC(t,e,r){for(var i=r?\"invTrans\":\"trans\",n=e[i],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,p=f.left,h=f.top;o.push(p,h),l=l&&a&&p===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[i]=r?Hc(s,o):Hc(o,s))}function Gc(t){return t.nodeName.toUpperCase()===\"CANVAS\"}var YC=/([&<>\"'])/g,WC={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\"};function qi(t){return t==null?\"\":(t+\"\").replace(YC,function(e,r){return WC[r]})}var ZC=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Yc=[],XC=me.browser.firefox&&+me.browser.version.split(\".\")[0]<39;function gl(t,e,r,i){return r=r||{},i?$m(t,e,r):XC&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):$m(t,e,r),r}function $m(t,e,r){if(me.domSupported&&t.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(Gc(t)){var a=t.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Qm(Yc,t,i,n)){r.zrX=Yc[0],r.zrY=Yc[1];return}}r.zrX=r.zrY=0}function yl(t){return t||window.event}function Vt(t,e,r){if(e=yl(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf(\"touch\")>=0;if(n){var o=i!==\"touchend\"?e.targetTouches[0]:e.changedTouches[0];o&&gl(t,o,e,r)}else{gl(t,e,e,r);var a=qC(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&ZC.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function qC(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(r==null||i==null)return e;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function Jm(t,e,r,i){t.addEventListener(e,r,i)}function eg(t,e,r,i){t.removeEventListener(e,r,i)}var gr=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Wc(t){return t.which===2||t.which===3}var rg=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,i){return this._doTrack(e,r,i),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,i){var n=e.touches;if(n){for(var a={points:[],touches:[],target:r,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=gl(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Zc)if(Zc.hasOwnProperty(r)){var i=Zc[r](this._track,e);if(i)return i}},t})();function tg(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function KC(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Zc={pinch:function(t,e){var r=t.length;if(r){var i=(t[r-1]||{}).points,n=(t[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=tg(i)/tg(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=KC(i);return e.pinchX=o[0],e.pinchY=o[1],{type:\"pinch\",target:t[0].target,event:e}}}}};function pt(){return[1,0,0,1,0,0]}function Ur(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function _o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function di(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function xo(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function sa(t,e,r,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*f,t[1]=-n*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-i[0])+f*(u-i[1])+i[0],t[5]=c*(u-i[1])-f*(o-i[0])+i[1],t}function ig(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function yr(t,e){var r=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-o*n)*l,t[5]=(a*n-r*s)*l,t):null}var jC=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,i){e.x=r,e.y=i},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,n){e.x=r.x+i.x*n,e.y=r.y+i.y*n},t.lerp=function(e,r,i,n){var a=1-n;e.x=a*r.x+n*i.x,e.y=a*r.y+n*i.y},t})(),ge=jC;var Ji=Math.min,la=Math.max,Kc=Math.abs,ng=[\"x\",\"y\"],QC=[\"width\",\"height\"],Ki=new ge,ji=new ge,Qi=new ge,$i=new ge,Mt=Qc(),To=Mt.minTv,jc=Mt.maxTv,bo=[0,0],Fr=(function(){function t(e,r,i,n){Xc(this,e,r,i,n)}return t.set=function(e,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),e.x=r,e.y=i,e.width=n,e.height=a,e},t.prototype.union=function(e){var r=Ji(e.x,this.x),i=Ji(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=la(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=la(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return $C(pt(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){i&&ge.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=Xc(JC,e.x,e.y,e.width,e.height)),r instanceof t||(r=Xc(eE,r.x,r.y,r.width,r.height));var s=!!i;Mt.reset(n,s);var l=Mt.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=r.x+l,v=r.x+r.width-l,d=r.y+l,m=r.y+r.height-l;if(u>f||c>p||h>v||d>m)return!1;var g=!(f<h||v<u||p<d||m<c);return(s||a)&&(bo[0]=1/0,bo[1]=0,og(u,f,h,v,0,s,a,o),og(c,p,d,m,1,s,a,o),s&&ge.copy(i,g?Mt.useDir?Mt.dirMinTv:To:jc)),g},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){ag(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,i){if(!i){e!==r&&ag(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=r.x*n+o,e.y=r.y*a+s,e.width=r.width*n,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ki.x=Qi.x=r.x,Ki.y=$i.y=r.y,ji.x=$i.x=r.x+r.width,ji.y=Qi.y=r.y+r.height,Ki.transform(i),$i.transform(i),ji.transform(i),Qi.transform(i),e.x=Ji(Ki.x,ji.x,Qi.x,$i.x),e.y=Ji(Ki.y,ji.y,Qi.y,$i.y);var l=la(Ki.x,ji.x,Qi.x,$i.x),u=la(Ki.y,ji.y,Qi.y,$i.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,i){var n=i.width/r.width,a=i.height/r.height;return e=Ur(e||[]),xo(e,e,vl(qc,-r.x,-r.y)),ig(e,e,vl(qc,n,a)),xo(e,e,vl(qc,i.x,i.y)),e},t})(),QR=Fr.create,Xc=Fr.set,ag=Fr.copy,$C=Fr.calculateTransform,$R=Fr.applyTransform,JR=Fr.contain,JC=new Fr(0,0,0,0),eE=new Fr(0,0,0,0),qc=[];function og(t,e,r,i,n,a,o,s){var l=Kc(e-r),u=Kc(i-t),f=Ji(l,u),c=ng[n],p=ng[1-n],h=QC[n];e<r||i<t?l<u?(a&&(jc[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(jc[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=la(t,r),o[h]=Ji(e,i)-o[c]),a&&(f<bo[0]||Mt.useDir)&&(bo[0]=Ji(f,bo[0]),(l<u||!Mt.bidirectional)&&(To[c]=l,To[p]=0,Mt.useDir&&Mt.calcDirMTV()),(l>=u||!Mt.bidirectional)&&(To[c]=-u,To[p]=0,Mt.useDir&&Mt.calcDirMTV())))}function Qc(){var t=0,e=new ge,r=new ge,i={minTv:new ge,maxTv:new ge,useDir:!1,dirMinTv:new ge,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=la(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return Kc(a)<1e-10}return i}var ee=Fr;var lg=\"silent\";function tE(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:rE}}function rE(){gr(this.event)}var iE=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(tt),wo=(function(){function t(e,r){this.x=e,this.y=r}return t})(),nE=[\"click\",\"dblclick\",\"mousewheel\",\"mouseout\",\"mouseup\",\"mousedown\",\"mousemove\",\"contextmenu\"],$c=new ee(0,0,0,0),ug=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this)||this;return s._hovered=new wo(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new iE,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new Km(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(b(nE,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=fg(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new wo(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:\"default\"),s&&u!==s&&this.dispatchToElement(o,\"mouseout\",r),this.dispatchToElement(l,\"mousemove\",r),u&&u!==s&&this.dispatchToElement(l,\"mouseover\",r)},e.prototype.mouseout=function(r){var i=r.zrEventControl;i!==\"only_globalout\"&&this.dispatchToElement(this._hovered,\"mouseout\",r),i!==\"no_globalout\"&&this.trigger(\"globalout\",{type:\"globalout\",event:r})},e.prototype.resize=function(){this._hovered=new wo(0,0)},e.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},e.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o=\"on\"+i,s=tE(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]==\"function\"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new wo(r,i);if(sg(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ee(r-u,i-u,l,l),c=a.length-1;c>=0;c--){var p=a[c];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&($c.copy(p.getBoundingRect()),p.transform&&$c.applyTransform(p.transform),$c.intersect(f)&&s.push(p))}if(s.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<d;g+=v){var y=r+m*Math.cos(g),_=i+m*Math.sin(g);if(sg(s,o,y,_,n),o.target)return o}}return o},e.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new rg);var n=this._gestureMgr;i===\"start\"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i===\"end\"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new wo;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(tt);b([\"click\",\"mousedown\",\"mouseup\",\"mousewheel\",\"dblclick\",\"contextmenu\"],function(t){ug.prototype[t]=function(e){var r=e.zrX,i=e.zrY,n=fg(this,r,i),a,o;if((t!==\"mouseup\"||!n)&&(a=this.findHover(r,i),o=a.target),t===\"mousedown\")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t===\"mouseup\")this._upEl=o;else if(t===\"click\"){if(this._downEl!==this._upEl||!this._downPoint||qm(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function aE(t,e,r){if(t[t.rectHover?\"rectContain\":\"contain\"](e,r)){for(var i=t,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?lg:!0}return!1}function sg(t,e,r,i,n){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==n&&!o.ignore&&(s=aE(o,r,i))&&(!e.topTarget&&(e.topTarget=o),s!==lg)){e.target=o;break}}}function fg(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var cg=ug;var vg=32,Co=7;function oE(t){for(var e=0;t>=vg;)e|=t&1,t>>=1;return t+e}function pg(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){for(;n<r&&i(t[n],t[n-1])<0;)n++;sE(t,e,n)}else for(;n<r&&i(t[n],t[n-1])>=0;)n++;return n-e}function sE(t,e,r){for(r--;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}function hg(t,e,r,i,n){for(i===e&&i++;i<r;i++){for(var a=t[i],o=e,s=i,l;o<s;)l=o+s>>>1,n(a,t[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function Jc(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])>0){for(s=i-n;l<s&&a(t,e[r+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(t,e[r+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function ep(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])<0){for(s=n+1;l<s&&a(t,e[r+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(t,e[r+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function lE(t,e){var r=Co,i,n,a=0,o=[];i=[],n=[];function s(h,v){i[a]=h,n[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var v=i[h],d=n[h],m=i[h+1],g=n[h+1];n[h]=d+g,h===a-3&&(i[h+1]=i[h+2],n[h+1]=n[h+2]),a--;var y=ep(t[m],t,v,d,0,e);v+=y,d-=y,d!==0&&(g=Jc(t[v+d-1],t,m,g,g-1,e),g!==0&&(d<=g?c(v,d,m,g):p(v,d,m,g)))}function c(h,v,d,m){var g=0;for(g=0;g<v;g++)o[g]=t[h+g];var y=0,_=d,x=h;if(t[x++]=t[_++],--m===0){for(g=0;g<v;g++)t[x+g]=o[y+g];return}if(v===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y];return}for(var S=r,T,w,A;;){T=0,w=0,A=!1;do if(e(t[_],o[y])<0){if(t[x++]=t[_++],w++,T=0,--m===0){A=!0;break}}else if(t[x++]=o[y++],T++,w=0,--v===1){A=!0;break}while((T|w)<S);if(A)break;do{if(T=ep(t[_],o,y,v,0,e),T!==0){for(g=0;g<T;g++)t[x+g]=o[y+g];if(x+=T,y+=T,v-=T,v<=1){A=!0;break}}if(t[x++]=t[_++],--m===0){A=!0;break}if(w=Jc(o[y],t,_,m,0,e),w!==0){for(g=0;g<w;g++)t[x+g]=t[_+g];if(x+=w,_+=w,m-=w,m===0){A=!0;break}}if(t[x++]=o[y++],--v===1){A=!0;break}S--}while(T>=Co||w>=Co);if(A)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),v===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y]}else{if(v===0)throw new Error;for(g=0;g<v;g++)t[x+g]=o[y+g]}}function p(h,v,d,m){var g=0;for(g=0;g<m;g++)o[g]=t[d+g];var y=h+v-1,_=m-1,x=d+m-1,S=0,T=0;if(t[x--]=t[y--],--v===0){for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g];return}if(m===1){for(x-=v,y-=v,T=x+1,S=y+1,g=v-1;g>=0;g--)t[T+g]=t[S+g];t[x]=o[_];return}for(var w=r;;){var A=0,E=0,C=!1;do if(e(o[_],t[y])<0){if(t[x--]=t[y--],A++,E=0,--v===0){C=!0;break}}else if(t[x--]=o[_--],E++,A=0,--m===1){C=!0;break}while((A|E)<w);if(C)break;do{if(A=v-ep(o[_],t,h,v,v-1,e),A!==0){for(x-=A,y-=A,v-=A,T=x+1,S=y+1,g=A-1;g>=0;g--)t[T+g]=t[S+g];if(v===0){C=!0;break}}if(t[x--]=o[_--],--m===1){C=!0;break}if(E=m-Jc(t[y],o,0,m,m-1,e),E!==0){for(x-=E,_-=E,m-=E,T=x+1,S=_+1,g=0;g<E;g++)t[T+g]=o[S+g];if(m<=1){C=!0;break}}if(t[x--]=t[y--],--v===0){C=!0;break}w--}while(A>=Co||E>=Co);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),m===1){for(x-=v,y-=v,T=x+1,S=y+1,g=v-1;g>=0;g--)t[T+g]=t[S+g];t[x]=o[_]}else{if(m===0)throw new Error;for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function en(t,e,r,i){r||(r=0),i||(i=t.length);var n=i-r;if(!(n<2)){var a=0;if(n<vg){a=pg(t,r,i,e),hg(t,r,i,r+a,e);return}var o=lE(t,e),s=oE(n);do{if(a=pg(t,r,i,e),a<s){var l=n;l>s&&(l=s),hg(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var at=1,tn=2,mi=4;var dg=!1;function tp(){dg||(dg=!0,console.warn(\"z / z2 / zlevel of displayable is invalid, which may cause unexpected errors\"))}function mg(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var uE=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=mg}return t.prototype.traverse=function(e,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(r),i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,e);i.length=this._displayListLen,en(i,mg)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||n)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=at),this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var v=e;isNaN(v.z)&&(tp(),v.z=0),isNaN(v.z2)&&(tp(),v.z2=0),isNaN(v.zlevel)&&(tp(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,s,i);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,i);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,i=e.length;r<i;r++)this.delRoot(e[r]);return}var n=se(this._roots,e);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),gg=uE;var yg;yg=me.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var rp=yg;var _l={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},elasticOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-_l.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?_l.bounceIn(t*2)*.5:_l.bounceOut(t*2-1)*.5+.5}},xl=_l;var Sl=Math.pow,yi=Math.sqrt,bl=1e-8,xg=1e-4,_g=yi(3),Tl=1/3,_r=vi(),Ht=vi(),ua=vi();function gi(t){return t>-bl&&t<bl}function Sg(t){return t>bl||t<-bl}function Ee(t,e,r,i,n){var a=1-n;return a*a*(a*t+3*n*e)+n*n*(n*i+3*a*r)}function ip(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function rn(t,e,r,i,n,a){var o=i+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-n,f=s*s-3*o*l,c=s*l-9*o*u,p=l*l-3*s*u,h=0;if(gi(f)&&gi(c))if(gi(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var d=c*c-4*f*p;if(gi(d)){var m=c/f,v=-s/o+m,g=-m/2;v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g)}else if(d>0){var y=yi(d),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);_<0?_=-Sl(-_,Tl):_=Sl(_,Tl),x<0?x=-Sl(-x,Tl):x=Sl(x,Tl);var v=(-s-(_+x))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var S=(2*f*s-3*o*c)/(2*yi(f*f*f)),T=Math.acos(S)/3,w=yi(f),A=Math.cos(T),v=(-s-2*w*A)/(3*o),g=(-s+w*(A+_g*Math.sin(T)))/(3*o),E=(-s+w*(A-_g*Math.sin(T)))/(3*o);v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g),E>=0&&E<=1&&(a[h++]=E)}}return h}function wl(t,e,r,i,n){var a=6*r-12*e+6*t,o=9*e+3*i-3*t-9*r,s=3*e-3*t,l=0;if(gi(o)){if(Sg(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(gi(f))n[0]=-a/(2*o);else if(f>0){var c=yi(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function fa(t,e,r,i,n,a){var o=(e-t)*n+t,s=(r-e)*n+e,l=(i-r)*n+r,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=i}function Tg(t,e,r,i,n,a,o,s,l,u,f){var c,p=.005,h=1/0,v,d,m,g;_r[0]=l,_r[1]=u;for(var y=0;y<1;y+=.05)Ht[0]=Ee(t,r,n,o,y),Ht[1]=Ee(e,i,a,s,y),m=Zi(_r,Ht),m<h&&(c=y,h=m);h=1/0;for(var _=0;_<32&&!(p<xg);_++)v=c-p,d=c+p,Ht[0]=Ee(t,r,n,o,v),Ht[1]=Ee(e,i,a,s,v),m=Zi(Ht,_r),v>=0&&m<h?(c=v,h=m):(ua[0]=Ee(t,r,n,o,d),ua[1]=Ee(e,i,a,s,d),g=Zi(ua,_r),d<=1&&g<h?(c=d,h=g):p*=.5);return f&&(f[0]=Ee(t,r,n,o,c),f[1]=Ee(e,i,a,s,c)),yi(h)}function bg(t,e,r,i,n,a,o,s,l){for(var u=t,f=e,c=0,p=1/l,h=1;h<=l;h++){var v=h*p,d=Ee(t,r,n,o,v),m=Ee(e,i,a,s,v),g=d-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=d,f=m}return c}function qe(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function np(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function wg(t,e,r,i,n){var a=t-2*e+r,o=2*(e-t),s=t-i,l=0;if(gi(a)){if(Sg(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(gi(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=yi(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Cl(t,e,r){var i=t+r-2*e;return i===0?.5:(t-e)/i}function ca(t,e,r,i,n){var a=(e-t)*i+t,o=(r-e)*i+e,s=(o-a)*i+a;n[0]=t,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function Cg(t,e,r,i,n,a,o,s,l){var u,f=.005,c=1/0;_r[0]=o,_r[1]=s;for(var p=0;p<1;p+=.05){Ht[0]=qe(t,r,n,p),Ht[1]=qe(e,i,a,p);var h=Zi(_r,Ht);h<c&&(u=p,c=h)}c=1/0;for(var v=0;v<32&&!(f<xg);v++){var d=u-f,m=u+f;Ht[0]=qe(t,r,n,d),Ht[1]=qe(e,i,a,d);var h=Zi(Ht,_r);if(d>=0&&h<c)u=d,c=h;else{ua[0]=qe(t,r,n,m),ua[1]=qe(e,i,a,m);var g=Zi(ua,_r);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=qe(t,r,n,u),l[1]=qe(e,i,a,u)),yi(c)}function Eg(t,e,r,i,n,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=qe(t,r,n,p),v=qe(e,i,a,p),d=h-s,m=v-l;u+=Math.sqrt(d*d+m*m),s=h,l=v}return u}var fE=/cubic-bezier\\(([0-9,\\.e ]+)\\)/;function pa(t){var e=t&&fE.exec(t);if(e){var r=e[1].split(\",\"),i=+St(r[0]),n=+St(r[1]),a=+St(r[2]),o=+St(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:rn(0,i,a,1,l,s)&&Ee(0,n,o,1,s[0])}}}var cE=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Ce,this.ondestroy=e.ondestroy||Ce,this.onrestart=e.onrestart||Ce,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=G(e)?e:xl[e]||pa(e)},t})(),Ag=cE;var Dg=(function(){function t(e){this.value=e}return t})();var pE=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Dg(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,i=e.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var hE=(function(){function t(e){this._list=new pE,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Dg(r),s.key=e,i.insertEntry(s),n[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),xr=hE;var Mg={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function _i(t){return t=Math.round(t),t<0?0:t>255?255:t}function vE(t){return t=Math.round(t),t<0?0:t>360?360:t}function lp(t){return t<0?0:t>1?1:t}function op(t){var e=t;return e.length&&e.charAt(e.length-1)===\"%\"?_i(parseFloat(e)/100*255):_i(parseInt(e,10))}function nn(t){var e=t;return e.length&&e.charAt(e.length-1)===\"%\"?lp(parseFloat(e)/100):lp(parseFloat(e))}function sp(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function El(t,e,r){return t+(e-t)*r}function Gt(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function up(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Lg=new xr(20),Al=null;function ha(t,e){Al&&up(Al,e),Al=Lg.put(t,Al||e.slice())}function Ot(t,e){if(t){e=e||[];var r=Lg.get(t);if(r)return up(e,r);t=t+\"\";var i=t.replace(/ /g,\"\").toLowerCase();if(i in Mg)return up(e,Mg[i]),ha(t,e),e;var n=i.length;if(i.charAt(0)===\"#\"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){Gt(e,0,0,0,1);return}return Gt(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),ha(t,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){Gt(e,0,0,0,1);return}return Gt(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),ha(t,e),e}return}var o=i.indexOf(\"(\"),s=i.indexOf(\")\");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(\",\"),f=1;switch(l){case\"rgba\":if(u.length!==4)return u.length===3?Gt(e,+u[0],+u[1],+u[2],1):Gt(e,0,0,0,1);f=nn(u.pop());case\"rgb\":if(u.length>=3)return Gt(e,op(u[0]),op(u[1]),op(u[2]),u.length===3?f:nn(u[3])),ha(t,e),e;Gt(e,0,0,0,1);return;case\"hsla\":if(u.length!==4){Gt(e,0,0,0,1);return}return u[3]=nn(u[3]),fp(u,e),ha(t,e),e;case\"hsl\":if(u.length!==3){Gt(e,0,0,0,1);return}return fp(u,e),ha(t,e),e;default:return}}Gt(e,0,0,0,1)}}function fp(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=nn(t[1]),n=nn(t[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return e=e||[],Gt(e,_i(sp(o,a,r+1/3)*255),_i(sp(o,a,r)*255),_i(sp(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function dE(t){if(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,n=Math.min(e,r,i),a=Math.max(e,r,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,p=((a-i)/6+o/2)/o;e===a?l=p-c:r===a?l=1/3+f-p:i===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function Og(t,e){var r=Ot(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return Ao(r,r.length===4?\"rgba\":\"rgb\")}}function Pg(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=Ot(e[n]),s=Ot(e[a]),l=i-n,u=Ao([_i(El(o[0],s[0],l)),_i(El(o[1],s[1],l)),_i(El(o[2],s[2],l)),lp(El(o[3],s[3],l))],\"rgba\");return r?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}function Eo(t,e,r,i){var n=Ot(t);if(t)return n=dE(n),e!=null&&(n[0]=vE(G(e)?e(n[0]):e)),r!=null&&(n[1]=nn(G(r)?r(n[1]):r)),i!=null&&(n[2]=nn(G(i)?i(n[2]):i)),Ao(fp(n),\"rgba\")}function Ao(t,e){if(!(!t||!t.length)){var r=t[0]+\",\"+t[1]+\",\"+t[2];return(e===\"rgba\"||e===\"hsva\"||e===\"hsla\")&&(r+=\",\"+t[3]),e+\"(\"+r+\")\"}}function va(t,e){var r=Ot(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Ig=new xr(100);function Do(t){if(B(t)){var e=Ig.get(t);return e||(e=Og(t,-.1),Ig.put(t,e)),e}else if(ta(t)){var r=P({},t);return r.colorStops=R(t.colorStops,function(i){return{offset:i.offset,color:Og(i.color,-.1)}}),r}return t}var Ml=Math.round;function xi(t){var e;if(!t||t===\"transparent\")t=\"none\";else if(typeof t==\"string\"&&t.indexOf(\"rgba\")>-1){var r=Ot(t);r&&(t=\"rgb(\"+r[0]+\",\"+r[1]+\",\"+r[2]+\")\",e=r[3])}return{color:t,opacity:e??1}}var Ng=1e-4;function Sr(t){return t<Ng&&t>-Ng}function Dl(t){return Ml(t*1e3)/1e3}function Ol(t){return Ml(t*1e4)/1e4}function Rg(t){return\"matrix(\"+Dl(t[0])+\",\"+Dl(t[1])+\",\"+Dl(t[2])+\",\"+Dl(t[3])+\",\"+Ol(t[4])+\",\"+Ol(t[5])+\")\"}var kg={left:\"start\",right:\"end\",center:\"middle\",middle:\"middle\"};function Bg(t,e,r){return r===\"top\"?t+=e/2:r===\"bottom\"&&(t-=e/2),t}function zg(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function Ug(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(\",\")}function cp(t){return t&&!!t.image}function gE(t){return t&&!!t.svgElement}function Mo(t){return cp(t)||gE(t)}function Il(t){return t.type===\"linear\"}function Ll(t){return t.type===\"radial\"}function Pl(t){return t&&(t.type===\"linear\"||t.type===\"radial\")}function Oo(t){return\"url(#\"+t+\")\"}function Nl(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Rl(t){var e=t.x||0,r=t.y||0,i=(t.rotation||0)*aa,n=F(t.scaleX,1),a=F(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push(\"translate(\"+e+\"px,\"+r+\"px)\"),i&&l.push(\"rotate(\"+i+\")\"),(n!==1||a!==1)&&l.push(\"scale(\"+n+\",\"+a+\")\"),(o||s)&&l.push(\"skew(\"+Ml(o*aa)+\"deg, \"+Ml(s*aa)+\"deg)\"),l.join(\" \")}var Fg=(function(){return typeof Buffer<\"u\"&&typeof Buffer.from==\"function\"?function(t){return Buffer.from(t).toString(\"base64\")}:typeof btoa==\"function\"&&typeof unescape==\"function\"&&typeof encodeURIComponent==\"function\"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var hp=Array.prototype.slice;function Vr(t,e,r){return(e-t)*r+t}function pp(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=Vr(e[a],r[a],i);return t}function yE(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=Vr(e[o][s],r[o][s],i)}return t}function kl(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=e[a]+r[a]*i;return t}function Vg(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*i}return t}function _E(t,e){for(var r=t.length,i=e.length,n=r>i?e:t,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function xE(t,e,r){var i=t,n=e;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(r===1?n[l]:hp.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(r===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function Po(t){if(He(t)){var e=t.length;if(He(t[0])){for(var r=[],i=0;i<e;i++)r.push(hp.call(t[i]));return r}return hp.call(t)}return t}function Ul(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],\"rgba(\"+t.join(\",\")+\")\"}function SE(t){return He(t&&t[0])?2:1}var Bl=0,Fl=1,Yg=2,Lo=3,vp=4,dp=5,Hg=6;function Gg(t){return t===vp||t===dp}function zl(t){return t===Fl||t===Yg}var Io=[0,0,0,0],TE=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Hg,l=r;if(He(r)){var u=SE(r);s=u,(u===1&&!fe(r[0])||u===2&&!fe(r[0][0]))&&(o=!0)}else if(fe(r)&&!pi(r))s=Bl;else if(B(r))if(!isNaN(+r))s=Bl;else{var f=Ot(r);f&&(l=f,s=Lo)}else if(ta(r)){var c=P({},l);c.colorStops=R(r.colorStops,function(h){return{offset:h.offset,color:Ot(h.color)}}),Il(r)?s=vp:Ll(r)&&(s=dp),l=c}a===0?this.valType=s:(s!==this.valType||s===Hg)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};return i&&(p.easing=i,p.easingFunc=G(i)?i:xl[i]||pa(i)),n.push(p),p},t.prototype.prepare=function(e,r){var i=this.keyframes;this._needsSort&&i.sort(function(d,m){return d.time-m.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=zl(n),u=Gg(n),f=0;f<a;f++){var c=i[f],p=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?xE(p,h,n):u&&_E(p.colorStops,h.colorStops))}if(!s&&n!==dp&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var v=i[0].value,f=0;f<a;f++)n===Bl?i[f].additiveValue=i[f].value-v:n===Lo?i[f].additiveValue=kl([],i[f].value,v,-1):zl(n)&&(i[f].additiveValue=n===Fl?kl([],i[f].value,v,-1):Vg([],i[f].value,v,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?\"additiveValue\":\"value\",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Lo,f,c=this._lastFr,p=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var d=p(c+1,s-1);for(f=d;f>=0&&!(o[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=p(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=r;var m=v.percent-h.percent,g=m===0?1:p((r-h.percent)/m,1);v.easingFunc&&(g=v.easingFunc(g));var y=i?this._additiveValue:u?Io:e[l];if((zl(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:v.rawValue;else if(zl(a))a===Fl?pp(y,h[n],v[n],g):yE(y,h[n],v[n],g);else if(Gg(a)){var _=h[n],x=v[n],S=a===vp;e[l]={type:S?\"linear\":\"radial\",x:Vr(_.x,x.x,g),y:Vr(_.y,x.y,g),colorStops:R(_.colorStops,function(w,A){var E=x.colorStops[A];return{offset:Vr(w.offset,E.offset,g),color:Ul(pp([],w.color,E.color,g))}}),global:x.global},S?(e[l].x2=Vr(_.x2,x.x2,g),e[l].y2=Vr(_.y2,x.y2,g)):e[l].r=Vr(_.r,x.r,g)}else if(u)pp(y,h[n],v[n],g),i||(e[l]=Ul(y));else{var T=Vr(h[n],v[n],g);i?this._additiveValue=T:e[l]=T}i&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,n=this._additiveValue;r===Bl?e[i]=e[i]+n:r===Lo?(Ot(e[i],Io),kl(Io,Io,n,1),e[i]=Ul(Io)):r===Fl?kl(e[i],e[i],n,1):r===Yg&&Vg(e[i],e[i],n,1)},t})(),bE=(function(){function t(e,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&n){pl(\"Can' use additive animation on looped animation.\");return}this._additiveAnimators=n,this._allowDiscrete=i}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,i){return this.whenWithKeys(e,r,K(r),i)},t.prototype.whenWithKeys=function(e,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new TE(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];u=p&&p.value,f.valType===Lo&&u&&(u=Ul(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Po(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Po(r[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,i=0;i<r;i++)e[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)e[r[i]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new Ag({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var d=!1,m=0;m<v.length;m++)if(v[m]._clip){d=!0;break}d||(r._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(r._target,h);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return R(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<e.length;a++){var o=i[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,i){if(e){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[a]=Po(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||K(e);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),No=bE;function an(){return new Date().getTime()}var wE=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},e.prototype.update=function(r){for(var i=an()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger(\"frame\",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(rp(i),!r._paused&&r.update())}rp(i)},e.prototype.start=function(){this._running||(this._time=an(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=an(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=an()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,i){i=i||{},this.start();var n=new No(r,i.loop);return this.addAnimator(n),n},e})(tt),Wg=wE;var CE=300,mp=me.domSupported,gp=(function(){var t=[\"click\",\"dblclick\",\"mousewheel\",\"wheel\",\"mouseout\",\"mouseup\",\"mousedown\",\"mousemove\",\"contextmenu\"],e=[\"touchstart\",\"touchend\",\"touchmove\"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=R(t,function(n){var a=n.replace(\"mouse\",\"pointer\");return r.hasOwnProperty(a)?a:n});return{mouse:t,touch:e,pointer:i}})(),Zg={mouse:[\"mousemove\",\"mouseup\"],pointer:[\"pointermove\",\"pointerup\"]},Xg=!1;function xp(t){var e=t.pointerType;return e===\"pen\"||e===\"touch\"}function EE(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function yp(t){t&&(t.zrByTouch=!0)}function AE(t,e){return Vt(t.dom,new DE(t,e),!0)}function Kg(t,e){for(var r=e,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var DE=(function(){function t(e,r){this.stopPropagation=Ce,this.stopImmediatePropagation=Ce,this.preventDefault=Ce,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),nr={mousedown:function(t){t=Vt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger(\"mousedown\",t)},mousemove:function(t){t=Vt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger(\"mousemove\",t)},mouseup:function(t){t=Vt(this.dom,t),this.__togglePointerCapture(!1),this.trigger(\"mouseup\",t)},mouseout:function(t){t=Vt(this.dom,t);var e=t.toElement||t.relatedTarget;Kg(this,e)||(this.__pointerCapturing&&(t.zrEventControl=\"no_globalout\"),this.trigger(\"mouseout\",t))},wheel:function(t){Xg=!0,t=Vt(this.dom,t),this.trigger(\"mousewheel\",t)},mousewheel:function(t){Xg||(t=Vt(this.dom,t),this.trigger(\"mousewheel\",t))},touchstart:function(t){t=Vt(this.dom,t),yp(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,\"start\"),nr.mousemove.call(this,t),nr.mousedown.call(this,t)},touchmove:function(t){t=Vt(this.dom,t),yp(t),this.handler.processGesture(t,\"change\"),nr.mousemove.call(this,t)},touchend:function(t){t=Vt(this.dom,t),yp(t),this.handler.processGesture(t,\"end\"),nr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<CE&&nr.click.call(this,t)},pointerdown:function(t){nr.mousedown.call(this,t)},pointermove:function(t){xp(t)||nr.mousemove.call(this,t)},pointerup:function(t){nr.mouseup.call(this,t)},pointerout:function(t){xp(t)||nr.mouseout.call(this,t)}};b([\"click\",\"dblclick\",\"contextmenu\"],function(t){nr[t]=function(e){e=Vt(this.dom,e),this.trigger(t,e)}});var Sp={pointermove:function(t){xp(t)||Sp.mousemove.call(this,t)},pointerup:function(t){Sp.mouseup.call(this,t)},mousemove:function(t){this.trigger(\"mousemove\",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(\"mouseup\",t),e&&(t.zrEventControl=\"only_globalout\",this.trigger(\"mouseout\",t))}};function ME(t,e){var r=e.domHandlers;me.pointerEventsSupported?b(gp.pointer,function(i){Vl(e,i,function(n){r[i].call(t,n)})}):(me.touchEventsSupported&&b(gp.touch,function(i){Vl(e,i,function(n){r[i].call(t,n),EE(e)})}),b(gp.mouse,function(i){Vl(e,i,function(n){n=yl(n),e.touching||r[i].call(t,n)})}))}function OE(t,e){me.pointerEventsSupported?b(Zg.pointer,r):me.touchEventsSupported||b(Zg.mouse,r);function r(i){function n(a){a=yl(a),Kg(t,a.target)||(a=AE(t,a),e.domHandlers[i].call(t,a))}Vl(e,i,n,{capture:!0})}}function Vl(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,Jm(t.domTarget,e,r,i)}function _p(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&eg(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var qg=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),IE=(function(t){L(e,t);function e(r,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new qg(r,nr),mp&&(n._globalHandlerScope=new qg(document,Sp)),ME(n,n._localHandlerScope),n}return e.prototype.dispose=function(){_p(this._localHandlerScope),mp&&_p(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||\"default\")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,mp&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?OE(this,i):_p(i)}},e})(tt),jg=IE;var Qg=1;me.hasGlobalWindow&&(Qg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Tp=Qg,Ro=.4,ko=\"#333\",Bo=\"#ccc\",$g=\"#eee\";var Jg=Ur,ey=5e-5;function on(t){return t>ey||t<-ey}var sn=[],da=[],bp=pt(),wp=Math.abs,ty=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return LE(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return on(this.rotation)||on(this.x)||on(this.y)||on(this.scaleX-1)||on(this.scaleY-1)||on(this.skewX)||on(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){i&&(Jg(i),this.invTransform=null);return}i=i||pt(),r?this.getLocalTransform(i):Jg(i),e&&(r?di(i,e,i):_o(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||pt(),yr(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(sn);var i=sn[0]<0?-1:1,n=sn[1]<0?-1:1,a=((sn[0]-i)*r+i)/sn[0]||0,o=((sn[1]-n)*r+n)/sn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),a=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||pt(),di(da,e.invTransform,r),r=da);var i=this.originX,n=this.originY;(i||n)&&(bp[4]=i,bp[5]=n,di(da,r,bp),da[4]-=i,da[5]-=n,r=da),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var i=[e,r],n=this.invTransform;return n&&et(i,i,n),i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],n=this.transform;return n&&et(i,i,n),i},t.prototype.getLineScale=function(){var e=this.transform;return e&&wp(e[0]-1)>1e-10&&wp(e[3]-1)>1e-10?Math.sqrt(wp(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Si(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,n=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var v=i+s,d=n+l;r[4]=-v*a-p*d*o,r[5]=-d*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,u&&sa(r,r,u),r[4]+=i+f,r[5]+=n+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),LE=ty.getLocalTransform;var ma=[\"x\",\"y\",\"originX\",\"originY\",\"anchorX\",\"anchorY\",\"rotation\",\"scaleX\",\"scaleY\",\"skewX\",\"skewY\"];function Si(t,e){return Um(t,e,ma)}var ga=ty;function ar(t){Hl||(Hl=new xr(100)),t=t||xt;var e=Hl.get(t);return e||(e={font:t,strWidthCache:new xr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:nt.measureText(\"\\u56FD\",t).width,asciiCharWidth:nt.measureText(\"a\",t).width},Hl.put(t,e)),e}var Hl;function PE(t){if(!(Cp>=ry)){t=t||xt;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=nt.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;return n>16?Cp=ry:n>2&&Cp++,e}}var Cp=0,ry=5;function Ep(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=PE(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function or(t,e){var r=t.strWidthCache,i=r.get(e);return i==null&&(i=nt.measureText(e,t.font).width,r.put(e,i)),i}function iy(t,e,r,i){var n=or(ar(e),t),a=ln(e),o=Ti(0,n,r),s=Gr(0,a,i),l=new ee(o,s,n,a);return l}function Gl(t,e,r,i){var n=((t||\"\")+\"\").split(`\n`),a=n.length;if(a===1)return iy(n[0],e,r,i);for(var o=new ee(0,0,0,0),s=0;s<n.length;s++){var l=iy(n[s],e,r,i);s===0?o.copy(l):o.union(l)}return o}function Ti(t,e,r,i){return r===\"right\"?i?t+=e:t-=e:r===\"center\"&&(i?t+=e/2:t-=e/2),t}function Gr(t,e,r,i){return r===\"middle\"?i?t+=e/2:t-=e/2:r===\"bottom\"&&(i?t+=e:t-=e),t}function ln(t){return ar(t).stWideCharWidth}function Hr(t,e){return typeof t==\"string\"?t.lastIndexOf(\"%\")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Yl(t,e,r){var i=e.position||\"inside\",n=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f=\"left\",c=\"top\";if(i instanceof Array)l+=Hr(i[0],r.width),u+=Hr(i[1],r.height),f=null,c=null;else switch(i){case\"left\":l-=n,u+=s,f=\"right\",c=\"middle\";break;case\"right\":l+=n+o,u+=s,c=\"middle\";break;case\"top\":l+=o/2,u-=n,f=\"center\",c=\"bottom\";break;case\"bottom\":l+=o/2,u+=a+n,f=\"center\";break;case\"inside\":l+=o/2,u+=s,f=\"center\",c=\"middle\";break;case\"insideLeft\":l+=n,u+=s,c=\"middle\";break;case\"insideRight\":l+=o-n,u+=s,f=\"right\",c=\"middle\";break;case\"insideTop\":l+=o/2,u+=n,f=\"center\";break;case\"insideBottom\":l+=o/2,u+=a-n,f=\"center\",c=\"bottom\";break;case\"insideTopLeft\":l+=n,u+=n;break;case\"insideTopRight\":l+=o-n,u+=n,f=\"right\";break;case\"insideBottomLeft\":l+=n,u+=a-n,c=\"bottom\";break;case\"insideBottomRight\":l+=o-n,u+=a-n,f=\"right\",c=\"bottom\";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Ap=\"__zr_normal__\",Dp=ma.concat([\"ignore\"]),NE=rr(ma,function(t,e){return t[e]=!0,t},{ignore:!1}),ya={},RE=new ee(0,0,0,0),Wl=[],Zl=0,_a=1,Ip=(function(){function t(e){this.id=cl(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,i){switch(this.draggable){case\"horizontal\":r=0;break;case\"vertical\":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;a.copyTransform(r);var f=i.position!=null,c=i.autoOverflowArea,p=void 0;if((c||f)&&(p=RE,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),n||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(ya,i,p):Yl(ya,i,p),a.x=ya.x,a.y=ya.y,o=ya.align,s=ya.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,d=void 0;h===\"center\"?(v=p.width*.5,d=p.height*.5):(v=Hr(h[0],p.width),d=Hr(h[1],p.height)),u=!0,a.originX=-a.x+v+(n?0:p.x),a.originY=-a.y+d+(n?0:p.y)}}i.rotation!=null&&(a.rotation=i.rotation);var m=i.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new ee(0,0,0,0);a.getLocalTransform(Wl),yr(Wl,Wl),ee.copy(y,p),y.applyTransform(Wl)}else g.overflowRect=null;var _=i.inside==null?typeof i.position==\"string\"&&i.position.indexOf(\"inside\")>=0:i.inside,x=void 0,S=void 0,T=void 0;_&&this.canBeInsideText()?(x=i.insideFill,S=i.insideStroke,(x==null||x===\"auto\")&&(x=this.getInsideTextFill()),(S==null||S===\"auto\")&&(S=this.getInsideTextStroke(x),T=!0)):(x=i.outsideFill,S=i.outsideStroke,(x==null||x===\"auto\")&&(x=this.getOutsideFill()),(S==null||S===\"auto\")&&(S=this.getOutsideStroke(x),T=!0)),x=x||\"#000\",(x!==g.fill||S!==g.stroke||T!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=x,g.stroke=S,g.autoStroke=T,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=at,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return\"#fff\"},t.prototype.getInsideTextStroke=function(e){return\"#000\"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Bo:ko},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r==\"string\"&&Ot(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Ao(i,\"rgba\")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e===\"textConfig\"?this.setTextConfig(r):e===\"textContent\"?this.setTextContent(r):e===\"clipPath\"?this.setClipPath(r):e===\"extra\"?(this.extra=this.extra||{},P(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e==\"string\")this.attrKV(e,r);else if(H(e))for(var i=e,n=K(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Ap)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Dp)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var n=0;n<i.length;n++){var a=i[n];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Ap,!1,e)},t.prototype.useState=function(e,r,i,n){var a=e===Ap,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(se(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){pl(\"State \"+e+\" not exists.\");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=ay(this,f,u,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,sy(this,i,l),l);var p=this._textGuide;return f&&f.useState(e,r,i,!!c),p&&p.useState(e,r,i,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Zl,this.__dirty&=~at),u}}},t.prototype.useStates=function(e,r,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=n[o-1],p=this._textContent,h=ay(this,p,c,i);h&&!this.__inHover&&(this.__inHover=h);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(\",\"),v,this._normalState,!1,sy(this,r,d),d);var m=this._textGuide;p&&p.useStates(e,r,!!h),m&&m.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Zl,this.__dirty&=~at)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=se(this.currentStates,e);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},t.prototype.replaceState=function(e,r,i){var n=this.currentStates.slice(),a=se(n,e),o=se(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},i,n=0;n<e.length;n++){var a=e[n];P(r,a),a.textConfig&&(i=i||{},P(i,a.textConfig))}return i&&(r.textConfig=i),r},t.prototype._applyStateObj=function(e,r,i,n,a,o){if(this.__inHover!==_a){var s=!(r&&n);r&&r.textConfig?(this.textConfig=P({},n?this.textConfig:i.textConfig),P(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<Dp.length;f++){var c=Dp[f],p=a&&NE[c];r&&r[c]!=null?p?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||i)[v]:r||i)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new ga,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),P(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=at;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,i){var n=e?this[e]:this,a=new No(n,r,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=se(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,i){Mp(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){Mp(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,n){for(var a=Mp(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type=\"element\",e.name=\"\",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Zl,e.__dirty=at;var r={};function i(a,o,s){r[a+o+s]||(console.warn(\"DEPRECATED: '\"+a+\"' has been deprecated. use '\"+o+\"', '\"+s+\"' instead\"),r[a+o+s]=!0)}function n(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(n(\"position\",\"_legacyPos\",\"x\",\"y\"),n(\"scale\",\"_legacyScale\",\"scaleX\",\"scaleY\"),n(\"origin\",\"_legacyOrigin\",\"originX\",\"originY\"))})(),t})();ct(Ip,tt);ct(Ip,ga);function Mp(t,e,r,i,n){r=r||{};var a=[];ly(t,\"\",t,e,r,i,a,n);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,d){r.during(d)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Op(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function kE(t){return He(t[0])}function BE(t,e,r){if(He(e[r]))if(He(t[r])||(t[r]=[]),Ne(e[r])){var i=e[r].length;t[r].length!==i&&(t[r]=new e[r].constructor(i),Op(t[r],e[r],i))}else{var n=e[r],a=t[r],o=n.length;if(kE(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?Op(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else Op(a,n,o);a.length=n.length}else t[r]=e[r]}function zE(t,e){return t===e||He(t)&&He(e)&&UE(t,e)}function UE(t,e){var r=t.length;if(r!==e.length)return!1;for(var i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function ly(t,e,r,i,n,a,o,s){for(var l=K(i),u=n.duration,f=n.delay,c=n.additive,p=n.setToFinal,h=!H(a),v=t.animators,d=[],m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&r[g]!=null&&(h||a[g]))if(H(y)&&!He(y)&&!ta(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}ly(t,g,r[g],y,n,a&&a[g],o,s)}else d.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),d.push(g))}var _=d.length;if(!c&&_)for(var x=0;x<v.length;x++){var S=v[x];if(S.targetName===e){var T=S.stopTracks(d);if(T){var w=se(v,S);v.splice(w,1)}}}if(n.force||(d=Pe(d,function(D){return!zE(i[D],r[D])}),_=d.length),_>0||n.force&&!o.length){var A=void 0,E=void 0,C=void 0;if(s){E={},p&&(A={});for(var x=0;x<_;x++){var g=d[x];E[g]=r[g],p?A[g]=i[g]:r[g]=i[g]}}else if(p){C={};for(var x=0;x<_;x++){var g=d[x];C[g]=Po(r[g]),BE(r,i,g)}}var S=new No(r,!1,!1,c?Pe(v,function(O){return O.targetName===e}):null);S.targetName=e,n.scope&&(S.scope=n.scope),p&&A&&S.whenWithKeys(0,A,d),C&&S.whenWithKeys(0,C,d),S.whenWithKeys(u??500,s?E:i,d).delay(f||0),t.addAnimator(S,e),o.push(S)}}function ay(t,e,r,i){return!(r&&r.hoverLayer||i)||oy(t)||e&&oy(e)?Zl:_a}function oy(t){return t.type===\"text\"||t.type===\"tspan\"}function sy(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var Xl=Ip;var uy=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,i){var n=se(this._children,r);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,n=this._children,a=se(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},e.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var i=new ee(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(ee.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(Xl);uy.prototype.type=\"group\";var ye=uy;/*!\n* ZRender, a high performance 2d drawing library.\n*\n* Copyright (c) 2013, Baidu Inc.\n* All rights reserved.\n*\n* LICENSE\n* https://github.com/ecomfe/zrender/blob/master/LICENSE\n*/var ql={},fy={};function FE(t){delete fy[t]}function VE(t){if(!t)return!1;if(typeof t==\"string\")return va(t,1)<Ro;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,n=0;n<i;n++)r+=va(e[n].color,1);return r/=i,r<Ro}return!1}var HE=(function(){function t(e,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=e;var a=new gg,o=i.renderer||\"canvas\";ql[o]||(o=K(ql)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new ql[o](r,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!me.node&&!me.worker&&!l?new jg(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f===\"auto\"?me.touchEventsSupported:!!f,p=44,h;c&&(h=F(i.pointerSize,p)),this.handler=new cg(a,s,u,s.root,h),this.animation=new Wg({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=VE(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,i=an(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a}));var o=an();r?(this._stillFrameAccum=0,this.trigger(\"rendered\",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,i){return this._disposed||this.handler.on(e,r,i),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof ye&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,FE(this.id))},t})();function Pp(t,e){var r=new HE(cl(),t,e);return fy[r.id]=r,r}function cy(t,e){ql[t]=e}var Lp;function py(t){if(typeof Lp==\"function\")return Lp(t)}function hy(t){Lp=t}var vy=1e-4,dy=20;function YE(t){return t.replace(/^\\s+|\\s+$/g,\"\")}var Fe=Math.min,ce=Math.max,Ae=Math.abs,It=Math.round,lr=Math.floor,Tr=Math.ceil,un=Math.pow,xa=Math.log,Np=Math.LN10,WE=Math.PI,ZE=Math.random;function Oe(t,e,r,i){var n=e[0],a=e[1],o=r[0],s=r[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(t<=n)return o;if(t>=a)return s}else{if(t>=n)return o;if(t<=a)return s}else{if(t===n)return o;if(t===a)return s}return(t-n)/l*u+o}var Lt=XE;function XE(t,e,r){switch(t){case\"center\":case\"middle\":t=\"50%\";break;case\"left\":case\"top\":t=\"0%\";break;case\"right\":case\"bottom\":t=\"100%\";break}return Kl(t,e,r)}function Kl(t,e,r){return B(t)?qE(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function qE(t){return!!YE(t).match(/%$/)}function le(t,e,r){return isNaN(e)?r?\"\"+t:+t:(e=Fe(ce(0,e),dy),t=(+t).toFixed(e),r?t:+t)}function Yt(t){return t.sort(function(e,r){return e-r}),t}function sr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(It(t*e)/e===t)return r}return KE(t)}function KE(t){var e=t.toString().toLowerCase(),r=e.indexOf(\"e\"),i=r>0?+e.slice(r+1):0,n=r>0?r:e.length,a=e.indexOf(\".\"),o=a<0?0:n-1-a;return ce(0,o-i)}function jl(t,e,r){var i=Ae(t[1]-t[0]);if(!isFinite(i)||i===0)return NaN;var n=xa(2*Ae(r||1)*Ae(i))/Np,a=xa(Ae(e))/Np,o=ce(0,Tr(-n+a));return isFinite(o)||(o=NaN),o}function Yr(t,e){var r=ce(sr(t),sr(e)),i=t+e;return r>dy?i:le(i,r)}var Rp=un(2,53)-1;function kp(t){var e=WE*2;return(t%e+e)%e}function zo(t){return t>-vy&&t<vy}var jE=/^(?:(\\d{4})(?:[-\\/](\\d{1,2})(?:[-\\/](\\d{1,2})(?:[T ](\\d{1,2})(?::(\\d{1,2})(?::(\\d{1,2})(?:[.,](\\d+))?)?)?(Z|[\\+\\-]\\d\\d:?\\d\\d)?)?)?)?)?$/;function Wr(t){if(t instanceof Date)return t;if(B(t)){var e=jE.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!==\"Z\"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(It(t))}function Ql(t){return un(10,$l(t))}function $l(t){if(t===0)return 0;var e=lr(xa(t)/Np);return t/un(10,e)>=10&&e++,e}var Bp=2;function fn(t,e){var r=$l(t),i=un(10,r),n=t/i,a;return e===Bp?a=1:e?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,t=a*i,le(t,-r)}function Zr(t){var e=parseFloat(t);return e==t&&(e!==0||!B(t)||t.indexOf(\"x\")<=0)?e:NaN}function zp(t){return!isNaN(Zr(t))}function Uo(){return It(ZE()*9)}function my(t,e){return e===0?t:my(e,t%e)}function Up(t,e){return t==null?e:e==null?t:t*e/my(t,e)}function ht(t){return t!=null&&isFinite(t)}var QE=\"[ECharts] \",yy={},$E=typeof console<\"u\"&&console.warn&&console.log;function JE(t,e,r){if($E){if(r){if(yy[e])return;yy[e]=!0}console[t](QE+e)}}function Fp(t,e){JE(\"error\",t,e)}function ot(t){throw new Error(t)}function _y(t,e,r){return(e-t)*r+t}var xy=\"series\\0\",eA=\"\\0_ec_\\0\";function De(t){return t instanceof Array?t:t==null?[]:[t]}function Vp(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Hp=[\"fontStyle\",\"fontWeight\",\"fontSize\",\"fontFamily\",\"rich\",\"tag\",\"color\",\"textBorderColor\",\"textBorderWidth\",\"width\",\"height\",\"lineHeight\",\"align\",\"verticalAlign\",\"baseline\",\"shadowColor\",\"shadowBlur\",\"shadowOffsetX\",\"shadowOffsetY\",\"textShadowColor\",\"textShadowBlur\",\"textShadowOffsetX\",\"textShadowOffsetY\",\"backgroundColor\",\"borderColor\",\"borderWidth\",\"borderRadius\",\"padding\"];function Xr(t){return H(t)&&!k(t)&&!(t instanceof Date)?t.value:t}function Sy(t){return H(t)&&!(t instanceof Array)}function Ty(t,e,r){var i=r===\"normalMerge\",n=r===\"replaceMerge\",a=r===\"replaceAll\";t=t||[],e=(e||[]).slice();var o=U();b(e,function(l,u){if(!H(l)){e[u]=null;return}});var s=tA(t,o,r);return(i||n)&&rA(s,t,o,e),i&&iA(s,e),i||n?nA(s,e,n):a&&aA(s,e),oA(s),s}function tA(t,e,r){var i=[];if(r===\"replaceAll\")return i;for(var n=0;n<t.length;n++){var a=t[n];a&&a.id!=null&&e.set(a.id,n),i.push({existing:r===\"replaceMerge\"||Sa(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function rA(t,e,r,i){b(i,function(n,a){if(!(!n||n.id==null)){var o=Fo(n.id),s=r.get(o);if(s!=null){var l=t[s];Re(!l.newOption,'Duplicated option on id \"'+o+'\".'),l.newOption=n,l.existing=e[s],i[a]=null}}})}function iA(t,e){b(e,function(r,i){if(!(!r||r.name==null))for(var n=0;n<t.length;n++){var a=t[n].existing;if(!t[n].newOption&&a&&(a.id==null||r.id==null)&&!Sa(r)&&!Sa(a)&&by(\"name\",a,r)){t[n].newOption=r,e[i]=null;return}}})}function nA(t,e,r){b(e,function(i){if(i){for(var n,a=0;(n=t[a])&&(n.newOption||Sa(n.existing)||n.existing&&i.id!=null&&!by(\"id\",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):t.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function aA(t,e){b(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function oA(t){var e=U();b(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),b(t,function(r){var i=r.newOption;Re(!i||i.id==null||!e.get(i.id)||e.get(i.id)===r,\"id duplicates: \"+(i&&i.id)),i&&i.id!=null&&e.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),b(t,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(H(a)){if(o.name=a.name!=null?Fo(a.name):n?n.name:xy+i,n)o.id=Fo(n.id);else if(a.id!=null)o.id=Fo(a.id);else{var s=0;do o.id=\"\\0\"+o.name+\"\\0\"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function by(t,e,r){var i=Pt(e[t],null),n=Pt(r[t],null);return i!=null&&n!=null&&i===n}function Fo(t){return Pt(t,\"\")}function Pt(t,e){return t==null?e:B(t)?t:fe(t)||Uc(t)?t+\"\":e}function Jl(t){var e=t.name;return!!(e&&e.indexOf(xy))}function Sa(t){return t&&t.id!=null&&Fo(t.id).indexOf(eA)===0}function wy(t,e,r){b(t,function(i){var n=i.newOption;H(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=sA(e,n,i.existing,r))})}function sA(t,e,r,i){var n=e.type?e.type:r?r.subType:i.determineSubType(t,e);return n}function Wt(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return k(e.dataIndex)?R(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return k(e.name)?R(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function q(){var t=\"__ec_inner_\"+lA++;return function(e){return e[t]||(e[t]={})}}var lA=Uo();function eu(t,e,r){var i=Gp(e,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=r?r.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var c=Ta(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+\"Models\"]=c.models,s[f+\"Model\"]=c.models[0]}),s}function Gp(t,e){var r;if(B(t)){var i={};i[t+\"Index\"]=0,r=i}else r=t;var n=U(),a={},o=!1;return b(r,function(s,l){if(l===\"dataIndex\"||l===\"dataIndexInside\"){a[l]=s;return}var u=l.match(/^(\\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||\"\").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&se(e.includeMainTypes,f)<0)){o=o||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var ke={useDefault:!0,enableAll:!1,enableNone:!1},Cy={useDefault:!1,enableAll:!0,enableNone:!0};function Ta(t,e,r,i){i=i||ke;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(n===\"none\"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n===\"all\"&&(i.enableAll?n=a=o=null:n=-1),s.models=t.queryComponents({mainType:e,index:n,id:a,name:o}),s}function Ey(t,e,r){var i={};i[e+\"Id\"]=t[e+\"Id\"],i[e+\"Index\"]=t[e+\"Index\"],i[e+\"Name\"]=t[e+\"Name\"];var n={mainType:e,query:i};return r&&(n.subType=r),n}function Yp(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function Ay(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Wp(t,e,r,i,n){var a=e==null||e===\"auto\";if(i==null)return i;if(fe(i)){var o=_y(r||0,i,n);return le(o,a?Math.max(sr(r||0),sr(i)):e)}else{if(B(i))return n<1?r:i;for(var s=[],l=r,u=i,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var p=t.getDimensionInfo(c);if(p&&p.type===\"ordinal\")s[c]=(n<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,v=u[c],o=_y(h,v,n);s[c]=le(o,a?Math.max(sr(h),sr(v)):e)}}return s}}var Ck=(function(){function t(){}return t.prototype.reset=function(e,r,i,n){return this._list=e,this._step=n=n||1,this._idx=r,this._end=i??(n>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},t})();function rt(){return[1/0,-1/0]}function Vo(t,e){ur(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function Zp(t,e){ur(e)&&e<t[0]&&(t[0]=e)}function Xp(t,e){ur(e)&&e>t[1]&&(t[1]=e)}function Dy(t,e){qr(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function ur(t){return t!=null&&isFinite(t)}function qr(t,e){return ur(t)&&ur(e)&&t<=e}function My(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function ba(t){qr(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function tu(){var t=\"__ec_once_\"+uA++;return function(e,r){Ue(e,t)||(e[t]=1,r())}}var uA=Uo();function wa(t,e,r){var i=U(),n=0;b(t,function(a){var o=e(a),s=i.get(o)||0;r&&r(a,s),!s&&!r&&(t[n++]=a),i.set(o,s+1)}),r||(t.length=n)}function Oy(t){return t.value+\"\"}function Iy(t){return t+\"\"}function Ly(t,e){return F(e,!0)?t.seriesIndex+2:0}function Py(t,e,r){var i=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&i>=r.threshold,large:t.get(\"large\")&&i>=t.get(\"largeThreshold\"),modDataCount:t.get(\"progressiveChunkMode\")===\"mod\"?t.getData().count():null}}function ru(t){return{overallReset:t}}var fA=\".\",pn=\"___EC__COMPONENT__CONTAINER___\",Ny=\"___EC__EXTENDED_CLASS___\";function Tt(t){var e={main:\"\",sub:\"\"};if(t){var r=t.split(fA);e.main=r[0]||\"\",e.sub=r[1]||\"\"}return e}function cA(t){Re(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType \"'+t+'\" illegal')}function Ry(t){return!!(t&&t[Ny])}function Ca(t,e){t.$constructor=t,t.extend=function(r){var i=this,n;return pA(i)?n=(function(a){L(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},Fm(n,this)),P(n.prototype,r),n[Ny]=!0,n.extend=this.extend,n.superCall=vA,n.superApply=dA,n.superClass=i,n}}function pA(t){return G(t)&&/^class\\s/.test(Function.prototype.toString.call(t))}function iu(t,e){t.extend=e.extend}var hA=Math.round(Math.random()*10);function ky(t){var e=[\"__\\0is_clz\",hA++].join(\"_\");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function vA(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function dA(t,e,r){return this.superClass.prototype[e].apply(t,r)}function bi(t){var e={};t.registerClass=function(i){var n=i.type||i.prototype.type;if(n){cA(n),i.prototype.type=n;var a=Tt(n);if(!a.sub)e[a.main]=i;else if(a.sub!==pn){var o=r(a);o[a.sub]=i}}return i},t.getClass=function(i,n,a){var o=e[i];if(o&&o[pn]&&(o=n?o[n]:null),a&&!o)throw new Error(n?\"Component \"+i+\".\"+(n||\"\")+\" is used but not imported.\":i+\".type should be specified.\");return o},t.getClassesByMainType=function(i){var n=Tt(i),a=[],o=e[n.main];return o&&o[pn]?b(o,function(s,l){l!==pn&&a.push(s)}):a.push(o),a},t.hasClass=function(i){var n=Tt(i);return!!e[n.main]},t.getAllClassMainTypes=function(){var i=[];return b(e,function(n,a){i.push(a)}),i},t.hasSubTypes=function(i){var n=Tt(i),a=e[n.main];return a&&a[pn]};function r(i){var n=e[i.main];return(!n||!n[pn])&&(n=e[i.main]={},n[pn]=!0),n}}function br(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&se(n,l)>=0||a&&se(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var mA=[[\"fill\",\"color\"],[\"shadowBlur\"],[\"shadowOffsetX\"],[\"shadowOffsetY\"],[\"opacity\"],[\"shadowColor\"]],gA=br(mA),By=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return gA(this,e,r)},t})();var Kp=new xr(50);function Uy(t){if(typeof t==\"string\"){var e=Kp.get(t);return e&&e.image}else return t}function Ho(t,e,r,i,n){if(t)if(typeof t==\"string\"){if(e&&e.__zrImageSrc===t||!r)return e;var a=Kp.get(t),o={hostEl:r,cb:i,cbPayload:n};return a?(e=a.image,!Ea(e)&&a.pending.push(o)):(e=nt.loadImage(t,zy,zy),e.__zrImageSrc=t,Kp.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function zy(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Ea(t){return t&&t.width&&t.height}var jp=/\\{([a-zA-Z0-9_]+)\\|([^}]*)\\}/g;function _A(t,e,r,i,n,a){if(!r){t.text=\"\",t.isTruncated=!1;return}var o=(e+\"\").split(`\n`);a=Gy(r,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)Yy(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`\n`),t.isTruncated=s}function Gy(t,e,r,i){i=i||{};var n=P({},i);r=F(r,\"...\"),n.maxIterations=F(i.maxIterations,2);var a=n.minChar=F(i.minChar,0),o=n.fontMeasureInfo=ar(e),s=o.asciiCharWidth;n.placeholder=F(i.placeholder,\"\");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=or(o,r);return f>l&&(r=\"\",f=0),l=t-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=t,n}function Yy(t,e,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){t.textLine=\"\",t.isTruncated=!1;return}var o=or(a,e);if(o<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?xA(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=or(a,e)}e===\"\"&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function xA(t,e,r){for(var i=0,n=0,a=t.length;n<a&&i<e;n++)i+=Ep(r,t.charCodeAt(n));return n}function Wy(t,e,r,i){var n=Jp(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a===\"truncate\",c=ln(u),p=F(e.lineHeight,c),h=e.lineOverflow===\"truncate\",v=!1,d=e.width;d==null&&r!=null&&(d=r-s);var m=e.height;m==null&&i!=null&&(m=i-l);var g;d!=null&&(a===\"break\"||a===\"breakAll\")?g=n?Xy(n,e.font,d,a===\"breakAll\",0).lines:[]:g=n?n.split(`\n`):[];var y=g.length*p;if(m==null&&(m=y),y>m&&h){var _=Math.floor(m/p);v=v||g.length>_,g=g.slice(0,_),y=g.length*p}if(n&&f&&d!=null)for(var x=Gy(d,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},T=0;T<g.length;T++)Yy(S,g[T],x),g[T]=S.textLine,v=v||S.isTruncated;for(var w=m,A=0,E=ar(u),T=0;T<g.length;T++)A=Math.max(or(E,g[T]),A);d==null&&(d=A);var C=d;return w+=l,C+=s,{lines:g,height:m,outerWidth:C,outerHeight:w,lineHeight:p,calculatedLineHeight:c,contentWidth:A,contentHeight:y,width:d,isTruncated:v}}var SA=(function(){function t(){}return t})(),Fy=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),TA=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function Zy(t,e,r,i,n){var a=new TA,o=Jp(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&i!=null&&(c=i-u);for(var p=e.overflow,h=(p===\"break\"||p===\"breakAll\")&&f!=null?{width:f,accumWidth:0,breakAll:p===\"breakAll\"}:null,v=jp.lastIndex=0,d;(d=jp.exec(o))!=null;){var m=d.index;m>v&&Qp(a,o.substring(v,m),e,h),Qp(a,d[2],e,h,d[1]),v=jp.lastIndex}v<o.length&&Qp(a,o.substring(v,o.length),e,h);var g=[],y=0,_=0,x=p===\"truncate\",S=e.lineOverflow===\"truncate\",T={};function w(he,Je,it){he.width=Je,he.lineHeight=it,y+=it,_=Math.max(_,Je)}e:for(var A=0;A<a.lines.length;A++){for(var E=a.lines[A],C=0,D=0,O=0;O<E.tokens.length;O++){var M=E.tokens[O],I=M.styleName&&e.rich[M.styleName]||{},z=M.textPadding=I.padding,N=z?z[1]+z[3]:0,Y=M.font=I.font||e.font;M.contentHeight=ln(Y);var X=F(I.height,M.contentHeight);if(M.innerHeight=X,z&&(X+=z[0]+z[2]),M.height=X,M.lineHeight=ir(I.lineHeight,e.lineHeight,X),M.align=I&&I.align||n,M.verticalAlign=I&&I.verticalAlign||\"middle\",S&&c!=null&&y+M.lineHeight>c){var Z=a.lines.length;O>0?(E.tokens=E.tokens.slice(0,O),w(E,D,C),a.lines=a.lines.slice(0,A+1)):a.lines=a.lines.slice(0,A),a.isTruncated=a.isTruncated||a.lines.length<Z;break e}var ie=I.width,J=ie==null||ie===\"auto\";if(typeof ie==\"string\"&&ie.charAt(ie.length-1)===\"%\")M.percentWidth=ie,g.push(M),M.contentWidth=or(ar(Y),M.text);else{if(J){var ae=I.backgroundColor,j=ae&&ae.image;j&&(j=Uy(j),Ea(j)&&(M.width=Math.max(M.width,j.width*X/j.height)))}var W=x&&f!=null?f-D:null;W!=null&&W<M.width?!J||W<N?(M.text=\"\",M.width=M.contentWidth=0):(_A(T,M.text,W-N,Y,e.ellipsis,{minChar:e.truncateMinChar}),M.text=T.text,a.isTruncated=a.isTruncated||T.isTruncated,M.width=M.contentWidth=or(ar(Y),M.text)):M.contentWidth=or(ar(Y),M.text)}M.width+=N,D+=M.width,I&&(C=Math.max(C,M.lineHeight))}w(E,D,C)}a.outerWidth=a.width=F(f,_),a.outerHeight=a.height=F(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var A=0;A<g.length;A++){var M=g[A],ue=M.percentWidth;M.width=parseInt(ue,10)/100*a.width}return a}function Qp(t,e,r,i,n){var a=e===\"\",o=n&&r.rich[n]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(i){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!==\"auto\"){var v=Hr(o.width,i.width)+h;s.length>0&&v+i.accumWidth>i.width&&(f=e.split(`\n`),u=!0),i.accumWidth=v}else{var d=Xy(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+h,c=d.linesWidths,f=d.lines}}f||(f=e.split(`\n`));for(var m=ar(l),g=0;g<f.length;g++){var y=f[g],_=new SA;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width==\"number\"?_.width=o.width:_.width=c?c[g]:or(m,y),!g&&!u){var x=(s[s.length-1]||(s[0]=new Fy)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||a)&&x.push(_)}else s.push(new Fy([_]))}}function bA(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var wA=rr(\",&?/;] \".split(\"\"),function(t,e){return t[e]=!0,t},{});function CA(t){return bA(t)?!!wA[t]:!0}function Xy(t,e,r,i,n){for(var a=[],o=[],s=\"\",l=\"\",u=0,f=0,c=ar(e),p=0;p<t.length;p++){var h=t.charAt(p);if(h===`\n`){l&&(s+=l,f+=u),a.push(s),o.push(f),s=\"\",l=\"\",u=0,f=0;continue}var v=Ep(c,h.charCodeAt(0)),d=i?!1:!CA(h);if(a.length?f+v>r:n+f+v>r){f?(s||l)&&(d?(s||(s=l,l=\"\",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s=\"\",f=u):(l&&(s+=l,l=\"\",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l=\"\",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function $p(t,e,r,i,n,a){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;ee.set(Vy,Ti(r,o,n),Gr(i,s,a),o,s),ee.intersect(e,Vy,null,Hy);var l=Hy.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Ti(l.x,l.width,n,!0),t.baseY=Gr(l.y,l.height,a,!0)}}var Vy=new ee(0,0,0,0),Hy={outIntersectRect:{},clamp:!0};function Jp(t){return t!=null?t+=\"\":t=\"\"}function qy(t){var e=Jp(t.text),r=t.font,i=or(ar(r),e),n=ln(r);return nu(t,i,n,null)}function nu(t,e,r,i){var n=new ee(Ti(t.x||0,e,t.textAlign),Gr(t.y||0,r,t.textBaseline),e,r),a=i??(eh(t)?t.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function eh(t){var e=t.stroke;return e!=null&&e!==\"none\"&&t.lineWidth>0}var ih=\"__zr_style_\"+Math.round(Math.random()*10),wr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:\"#000\",opacity:1,blend:\"source-over\"},hn={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};wr[ih]=!0;var Ky=[\"z\",\"z2\",\"invisible\"],EA=[\"invisible\"],AA=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var i=K(r),n=0;n<i.length;n++){var a=i[n];a===\"style\"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&DA(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,i){return this.rectContain(r,i)},e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ee(0,0,0,0)),i?ee.applyTransform(r,n,i):r.copy(n),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ee(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate(\"style\",r)},e.prototype.updateDuringAnimation=function(r){r===\"style\"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,i){r!==\"style\"?t.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(r,i){return typeof r==\"string\"?this.style[r]=i:P(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=tn,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&tn)},e.prototype.styleUpdated=function(){this.__dirty&=~tn},e.prototype.createStyle=function(r){return hi(wr,r)},e.prototype.useStyle=function(r){r[ih]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[ih]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,Ky)},e.prototype._applyStateObj=function(r,i,n,a,o,s){t.prototype._applyStateObj.call(this,r,i,n,a,o,s);var l=!(i&&a),u=this.__inHover===_a,f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):l&&(f=n.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=K(c),h=0;h<p.length;h++){var v=p[h];v in f&&(f[v]=f[v],this.style[v]=c[v])}for(var d=K(f),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var m=this.__inHover?EA:Ky,h=0;h<m.length;h++){var v=m[h];i&&i[v]!=null?this[v]=i[v]:l&&n[v]!=null&&(this[v]=n[v])}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(r,i){return P(r,i),r},e.prototype.getAnimationStyleProps=function(){return hn},e.initDefaultProps=(function(){var r=e.prototype;r.type=\"displayable\",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor=\"pointer\",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=at|tn})(),e})(Xl),th=new ee(0,0,0,0),rh=new ee(0,0,0,0);function DA(t,e,r){return th.copy(t.getBoundingRect()),t.transform&&th.applyTransform(t.transform),rh.width=e,rh.height=r,!th.intersect(rh)}var Cr=AA;var Zt=Math.min,Xt=Math.max,nh=Math.sin,ah=Math.cos,vn=Math.PI*2,au=vi(),ou=vi(),su=vi();function oh(t,e,r,i,n,a){n[0]=Zt(t,r),n[1]=Zt(e,i),a[0]=Xt(t,r),a[1]=Xt(e,i)}var jy=[],Qy=[];function $y(t,e,r,i,n,a,o,s,l,u){var f=wl,c=Ee,p=f(t,r,n,o,jy);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var v=c(t,r,n,o,jy[h]);l[0]=Zt(v,l[0]),u[0]=Xt(v,u[0])}p=f(e,i,a,s,Qy);for(var h=0;h<p;h++){var d=c(e,i,a,s,Qy[h]);l[1]=Zt(d,l[1]),u[1]=Xt(d,u[1])}l[0]=Zt(t,l[0]),u[0]=Xt(t,u[0]),l[0]=Zt(o,l[0]),u[0]=Xt(o,u[0]),l[1]=Zt(e,l[1]),u[1]=Xt(e,u[1]),l[1]=Zt(s,l[1]),u[1]=Xt(s,u[1])}function Jy(t,e,r,i,n,a,o,s){var l=Cl,u=qe,f=Xt(Zt(l(t,r,n),1),0),c=Xt(Zt(l(e,i,a),1),0),p=u(t,r,n,f),h=u(e,i,a,c);o[0]=Zt(t,n,p),o[1]=Zt(e,a,h),s[0]=Xt(t,n,p),s[1]=Xt(e,a,h)}function e_(t,e,r,i,n,a,o,s,l){var u=Br,f=zr,c=Math.abs(n-a);if(c%vn<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-i,l[0]=t+r,l[1]=e+i;return}if(au[0]=ah(n)*r+t,au[1]=nh(n)*i+e,ou[0]=ah(a)*r+t,ou[1]=nh(a)*i+e,u(s,au,ou),f(l,au,ou),n=n%vn,n<0&&(n=n+vn),a=a%vn,a<0&&(a=a+vn),n>a&&!o?a+=vn:n<a&&o&&(n+=vn),o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)h>n&&(su[0]=ah(h)*r+t,su[1]=nh(h)*i+e,u(s,su,s),f(l,su,l))}var xe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},dn=[],mn=[],Er=[],wi=[],Ar=[],Dr=[],sh=Math.min,lh=Math.max,gn=Math.cos,yn=Math.sin,Kr=Math.abs,ch=Math.PI,Ci=ch*2,uh=typeof Float32Array<\"u\",Go=[];function fh(t){var e=Math.round(t/ch*1e8)/1e8;return e%2*ch}function MA(t,e){var r=fh(t[0]);r<0&&(r+=Ci);var i=r-t[0],n=t[1];n+=i,!e&&n-r>=Ci?n=r+Ci:e&&r-n>=Ci?n=r-Ci:!e&&r>n?n=r+(Ci-fh(r-n)):e&&r<n&&(n=r-(Ci-fh(n-r))),t[0]=r,t[1]=n}var OA=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,i){i=i||0,i>0&&(this._ux=Kr(i/Tp/e)||0,this._uy=Kr(i/Tp/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(xe.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var i=Kr(e-this._xi),n=Kr(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(xe.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){return this._drawPendingPt(),this.addData(xe.C,e,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,i,n,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,i,n){return this._drawPendingPt(),this.addData(xe.Q,e,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,r,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(e,r,i,n,a,o){this._drawPendingPt(),Go[0]=n,Go[1]=a,MA(Go,o),n=Go[0],a=Go[1];var s=a-n;return this.addData(xe.A,e,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,i,n,a,o),this._xi=gn(a)*i+e,this._yi=yn(a)*i+r,this},t.prototype.arcTo=function(e,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,i,n,a),this},t.prototype.rect=function(e,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,n),this.addData(xe.R,e,r,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(xe.Z);var e=this._ctx,r=this._x0,i=this._y0;return e&&e.closePath(),this._xi=r,this._yi=i,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&uh&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=e[i];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,i=0,n=this._len,a=0;a<r;a++)i+=e[a].len();var o=this.data;if(uh&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},t.prototype.addData=function(e,r,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,uh&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Er[0]=Er[1]=Ar[0]=Ar[1]=Number.MAX_VALUE,wi[0]=wi[1]=Dr[0]=Dr[1]=-Number.MAX_VALUE;var e=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],i=e[o+1],n=r,a=i),s){case xe.M:r=n=e[o++],i=a=e[o++],Ar[0]=n,Ar[1]=a,Dr[0]=n,Dr[1]=a;break;case xe.L:oh(r,i,e[o],e[o+1],Ar,Dr),r=e[o++],i=e[o++];break;case xe.C:$y(r,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Ar,Dr),r=e[o++],i=e[o++];break;case xe.Q:Jy(r,i,e[o++],e[o++],e[o],e[o+1],Ar,Dr),r=e[o++],i=e[o++];break;case xe.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],v=e[o++]+h;o+=1;var d=!e[o++];l&&(n=gn(h)*c+u,a=yn(h)*p+f),e_(u,f,c,p,h,v,d,Ar,Dr),r=gn(v)*c+u,i=yn(v)*p+f;break;case xe.R:n=r=e[o++],a=i=e[o++];var m=e[o++],g=e[o++];oh(n,a,n+m,a+g,Ar,Dr);break;case xe.Z:r=n,i=a;break}Br(Er,Er,Ar),zr(wi,wi,Dr)}return o===0&&(Er[0]=Er[1]=wi[0]=wi[1]=0),new ee(Er[0],Er[1],wi[0]-Er[0],wi[1]-Er[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<r;){var h=e[p++],v=p===1;v&&(a=e[p],o=e[p+1],s=a,l=o);var d=-1;switch(h){case xe.M:a=s=e[p++],o=l=e[p++];break;case xe.L:{var m=e[p++],g=e[p++],y=m-a,_=g-o;(Kr(y)>i||Kr(_)>n||p===r-1)&&(d=Math.sqrt(y*y+_*_),a=m,o=g);break}case xe.C:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++],T=e[p++],w=e[p++];d=bg(a,o,x,S,m,g,T,w,10),a=T,o=w;break}case xe.Q:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++];d=Eg(a,o,x,S,m,g,10),a=m,o=g;break}case xe.A:var A=e[p++],E=e[p++],C=e[p++],D=e[p++],O=e[p++],M=e[p++],I=M+O;p+=1,v&&(s=gn(O)*C+A,l=yn(O)*D+E),d=lh(C,D)*sh(Ci,Math.abs(M)),a=gn(I)*C+A,o=yn(I)*D+E;break;case xe.R:{s=a=e[p++],l=o=e[p++];var z=e[p++],N=e[p++];d=z*2+N*2;break}case xe.Z:{var y=s-a,_=l-o;d=Math.sqrt(y*y+_*_),a=s,o=l;break}}d>=0&&(u[c++]=d,f+=d)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,c,p,h=r<1,v,d,m=0,g=0,y,_=0,x,S;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=r*d,!y)))e:for(var T=0;T<o;){var w=i[T++],A=T===1;switch(A&&(u=i[T],f=i[T+1],s=u,l=f),w!==xe.L&&_>0&&(e.lineTo(x,S),_=0),w){case xe.M:s=u=i[T++],l=f=i[T++],e.moveTo(u,f);break;case xe.L:{c=i[T++],p=i[T++];var E=Kr(c-u),C=Kr(p-f);if(E>n||C>a){if(h){var D=v[g++];if(m+D>y){var O=(y-m)/D;e.lineTo(u*(1-O)+c*O,f*(1-O)+p*O);break e}m+=D}e.lineTo(c,p),u=c,f=p,_=0}else{var M=E*E+C*C;M>_&&(x=c,S=p,_=M)}break}case xe.C:{var I=i[T++],z=i[T++],N=i[T++],Y=i[T++],X=i[T++],Z=i[T++];if(h){var D=v[g++];if(m+D>y){var O=(y-m)/D;fa(u,I,N,X,O,dn),fa(f,z,Y,Z,O,mn),e.bezierCurveTo(dn[1],mn[1],dn[2],mn[2],dn[3],mn[3]);break e}m+=D}e.bezierCurveTo(I,z,N,Y,X,Z),u=X,f=Z;break}case xe.Q:{var I=i[T++],z=i[T++],N=i[T++],Y=i[T++];if(h){var D=v[g++];if(m+D>y){var O=(y-m)/D;ca(u,I,N,O,dn),ca(f,z,Y,O,mn),e.quadraticCurveTo(dn[1],mn[1],dn[2],mn[2]);break e}m+=D}e.quadraticCurveTo(I,z,N,Y),u=N,f=Y;break}case xe.A:var ie=i[T++],J=i[T++],ae=i[T++],j=i[T++],W=i[T++],ue=i[T++],he=i[T++],Je=!i[T++],it=ae>j?ae:j,_e=Kr(ae-j)>.001,Le=W+ue,oe=!1;if(h){var D=v[g++];m+D>y&&(Le=W+ue*(y-m)/D,oe=!0),m+=D}if(_e&&e.ellipse?e.ellipse(ie,J,ae,j,he,W,Le,Je):e.arc(ie,J,it,W,Le,Je),oe)break e;A&&(s=gn(W)*ae+ie,l=yn(W)*j+J),u=gn(Le)*ae+ie,f=yn(Le)*j+J;break;case xe.R:s=u=i[T],l=f=i[T+1],c=i[T++],p=i[T++];var ve=i[T++],tr=i[T++];if(h){var D=v[g++];if(m+D>y){var Xe=y-m;e.moveTo(c,p),e.lineTo(c+sh(Xe,ve),p),Xe-=ve,Xe>0&&e.lineTo(c+ve,p+sh(Xe,tr)),Xe-=tr,Xe>0&&e.lineTo(c+lh(ve-Xe,0),p+tr),Xe-=ve,Xe>0&&e.lineTo(c,p+lh(tr-Xe,0));break e}m+=D}e.rect(c,p,ve,tr);break;case xe.Z:if(h){var D=v[g++];if(m+D>y){var O=(y-m)/D;e.lineTo(u*(1-O)+s*O,f*(1-O)+l*O);break e}m+=D}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=xe,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})(),vt=OA;function _n(t,e,r,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-i)/(t-r),u=(t*i-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function t_(t,e,r,i,n,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>a+c&&f>s+c||f<e-c&&f<i-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>n+c&&u>o+c||u<t-c&&u<r-c&&u<n-c&&u<o-c)return!1;var p=Tg(t,e,r,i,n,a,o,s,u,f,null);return p<=c/2}function r_(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>t+u&&s>r+u&&s>n+u||s<t-u&&s<r-u&&s<n-u)return!1;var f=Cg(t,e,r,i,n,a,s,l,null);return f<=u/2}var i_=Math.PI*2;function Yo(t){return t%=i_,t<0&&(t+=i_),t}var Wo=Math.PI*2;function n_(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(i-n)%Wo<1e-4)return!0;if(a){var c=i;i=Yo(n),n=Yo(c)}else i=Yo(i),n=Yo(n);i>n&&(n+=Wo);var p=Math.atan2(l,s);return p<0&&(p+=Wo),p>=i&&p<=n||p+Wo>=i&&p+Wo<=n}function jr(t,e,r,i,n,a){if(a>e&&a>i||a<e&&a<i||i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(r-t)+t;return l===n?1/0:l>n?s:0}var Ei=vt.CMD,xn=Math.PI*2,RA=1e-4;function kA(t,e){return Math.abs(t-e)<RA}var dt=[-1,-1,-1],qt=[-1,-1];function BA(){var t=qt[0];qt[0]=qt[1],qt[1]=t}function zA(t,e,r,i,n,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var f=rn(e,i,a,s,u,dt);if(f===0)return 0;for(var c=0,p=-1,h=void 0,v=void 0,d=0;d<f;d++){var m=dt[d],g=m===0||m===1?.5:1,y=Ee(t,r,n,o,m);y<l||(p<0&&(p=wl(e,i,a,s,qt),qt[1]<qt[0]&&p>1&&BA(),h=Ee(e,i,a,s,qt[0]),p>1&&(v=Ee(e,i,a,s,qt[1]))),p===2?m<qt[0]?c+=h<e?g:-g:m<qt[1]?c+=v<h?g:-g:c+=s<v?g:-g:m<qt[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function UA(t,e,r,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=wg(e,i,a,s,dt);if(l===0)return 0;var u=Cl(e,i,a);if(u>=0&&u<=1){for(var f=0,c=qe(e,i,a,u),p=0;p<l;p++){var h=dt[p]===0||dt[p]===1?.5:1,v=qe(t,r,n,dt[p]);v<o||(dt[p]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=dt[0]===0||dt[0]===1?.5:1,v=qe(t,r,n,dt[0]);return v<o?0:a<e?h:-h}}function FA(t,e,r,i,n,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);dt[0]=-l,dt[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=xn-1e-4){i=0,n=xn;var f=a?1:-1;return o>=dt[0]+t&&o<=dt[1]+t?f:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=xn,n+=xn);for(var p=0,h=0;h<2;h++){var v=dt[h];if(v+t>o){var d=Math.atan2(s,v),f=a?1:-1;d<0&&(d=xn+d),(d>=i&&d<=n||d+xn>=i&&d+xn<=n)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),p+=f)}}return p}function a_(t,e,r,i,n){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,p,h,v=0;v<o;){var d=a[v++],m=v===1;switch(d===Ei.M&&v>1&&(r||(s+=jr(l,u,f,c,i,n))),m&&(l=a[v],u=a[v+1],f=l,c=u),d){case Ei.M:f=a[v++],c=a[v++],l=f,u=c;break;case Ei.L:if(r){if(_n(l,u,a[v],a[v+1],e,i,n))return!0}else s+=jr(l,u,a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Ei.C:if(r){if(t_(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=zA(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Ei.Q:if(r){if(r_(l,u,a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=UA(l,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Ei.A:var g=a[v++],y=a[v++],_=a[v++],x=a[v++],S=a[v++],T=a[v++];v+=1;var w=!!(1-a[v++]);p=Math.cos(S)*_+g,h=Math.sin(S)*x+y,m?(f=p,c=h):s+=jr(l,u,p,h,i,n);var A=(i-g)*x/_+g;if(r){if(n_(g,y,x,S,S+T,w,e,A,n))return!0}else s+=FA(g,y,x,S,S+T,w,A,n);l=Math.cos(S+T)*_+g,u=Math.sin(S+T)*x+y;break;case Ei.R:f=l=a[v++],c=u=a[v++];var E=a[v++],C=a[v++];if(p=f+E,h=c+C,r){if(_n(f,c,p,c,e,i,n)||_n(p,c,p,h,e,i,n)||_n(p,h,f,h,e,i,n)||_n(f,h,f,c,e,i,n))return!0}else s+=jr(p,c,p,h,i,n),s+=jr(f,h,f,c,i,n);break;case Ei.Z:if(r){if(_n(l,u,f,c,e,i,n))return!0}else s+=jr(l,u,f,c,i,n);l=f,u=c;break}}return!r&&!kA(u,c)&&(s+=jr(l,u,f,c,i,n)||0),s!==0}function o_(t,e,r){return a_(t,0,!1,e,r)}function s_(t,e,r,i){return a_(t,e,!0,r,i)}var Aa=te({fill:\"#000\",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:\"butt\",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},wr),HA={style:te({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},hn.style)},ph=ma.concat([\"invisible\",\"culling\",\"z\",\"z2\",\"zlevel\",\"parent\"]),GA=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){r.buildPath(l,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<ph.length;++s)n[ph[s]]=this[ph[s]];n.__dirty|=at}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=K(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o===\"style\"?this.style?P(this.style,s):this.useStyle(s):o===\"shape\"?P(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!==\"none\"){if(B(r)){var i=va(r,0);return i>.5?ko:i>.2?$g:Bo}else if(r)return Bo}return ko},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(B(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=va(r,0)<Ro;if(a===o)return i}},e.prototype.buildPath=function(r,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~mi},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new vt(!1)},e.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i===\"none\"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!==\"none\"},e.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&mi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),s_(s,l/u,r,i)))return!0}if(this.hasFill())return o_(s,r,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=mi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate(\"shape\",r)},e.prototype.updateDuringAnimation=function(r){r===\"style\"?this.dirtyStyle():r===\"shape\"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,i){r===\"shape\"?this.setShape(i):t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r==\"string\"?n[r]=i:P(n,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&mi)},e.prototype.createStyle=function(r){return hi(Aa,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=P({},this.shape))},e.prototype._applyStateObj=function(r,i,n,a,o,s){if(t.prototype._applyStateObj.call(this,r,i,n,a,o,s),this.__inHover!==_a){var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=P({},n.shape),P(u,i.shape)):(u=P({},a?this.shape:n.shape),P(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=P({},this.shape);for(var f={},c=K(u),p=0;p<c.length;p++){var h=c[p];typeof u[h]==\"object\"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return HA},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=(function(a){L(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Q(r.style)},o.prototype.getDefaultShape=function(){return Q(r.shape)},o})(e);for(var n in r)typeof r[n]==\"function\"&&(i.prototype[n]=r[n]);return i},e.initDefaultProps=(function(){var r=e.prototype;r.type=\"path\",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=at|tn|mi})(),e})(Cr),ne=GA;var YA=te({strokeFirst:!0,font:xt,x:0,y:0,textAlign:\"left\",textBaseline:\"top\",miterLimit:2},Aa),l_=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return eh(this.style)},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!==\"none\"},e.prototype.createStyle=function(r){return hi(YA,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=qy(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(Cr);l_.prototype.type=\"tspan\";var Sn=l_;var WA=te({x:0,y:0},wr),ZA={style:te({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},hn.style)};function XA(t){return!!(t&&typeof t!=\"string\"&&t.width&&t.height)}var u_=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return hi(WA,r)},e.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=XA(i.image)?i.image:this.__image;if(!a)return 0;var o=r===\"width\"?\"height\":\"width\",s=i[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize(\"width\")},e.prototype.getHeight=function(){return this._getSize(\"height\")},e.prototype.getAnimationStyleProps=function(){return ZA},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ee(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Cr);u_.prototype.type=\"image\";var st=u_;function f_(t,e){var r=e.x,i=e.y,n=e.width,a=e.height,o=e.r,s,l,u,f;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o==\"number\"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>n&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,i),t.lineTo(r+n-l,i),l!==0&&t.arc(r+n-l,i+l,l,-Math.PI/2,0),t.lineTo(r+n,i+a-u),u!==0&&t.arc(r+n-u,i+a-u,u,0,Math.PI/2),t.lineTo(r+f,i+a),f!==0&&t.arc(r+f,i+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,i+s),s!==0&&t.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Da=Math.round;function lu(t,e,r){if(e){var i=e.x1,n=e.x2,a=e.y1,o=e.y2;t.x1=i,t.x2=n,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Da(i*2)===Da(n*2)&&(t.x1=t.x2=Ai(i,s,!0)),Da(a*2)===Da(o*2)&&(t.y1=t.y2=Ai(a,s,!0))),t}}function uu(t,e,r){if(e){var i=e.x,n=e.y,a=e.width,o=e.height;t.x=i,t.y=n,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Ai(i,s,!0),t.y=Ai(n,s,!0),t.width=Math.max(Ai(i+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Ai(n+o,s,!1)-t.y,o===0?0:1)),t}}function Ai(t,e,r){if(!e)return t;var i=Da(t*2);return(i+Da(e))%2===0?i/2:(i+(r?1:-1))/2}var jA=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var QA={},c_=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new jA},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=uu(QA,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?f_(r,i):r.rect(n,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(ne);c_.prototype.type=\"rect\";var Te=c_;var p_={fill:\"#000\"},h_=2,Mr={},$A={style:te({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},hn.style)},S_=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i.type=\"text\",i._children=[],i._defaultStyle=p_,i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,tD(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ee(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||p_},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return P(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,i){for(var n=K(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},P(r[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return $A},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||xt,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||\"left\",u=r.verticalAlign||a.verticalAlign||\"top\";$p(Mr,a.overflowRect,o,s,l,u),o=Mr.baseX,s=Mr.baseY;var f=x_(r),c=Wy(f,r,Mr.outerWidth,Mr.outerHeight),p=hh(r),h=!!r.backgroundColor,v=c.outerHeight,d=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=Gr(s,c.contentHeight,u);if(p||n){var x=Ti(o,d,l),S=Gr(s,v,u);p&&this._renderBackground(r,r,x,S,d,v)}_+=g/2,n&&(y=__(o,l,n),u===\"top\"?_+=n[0]:u===\"bottom\"&&(_-=n[2]));for(var T=0,w=!1,A=!1,E=y_(\"fill\"in r?r.fill:(A=!0,a.fill)),C=g_(\"stroke\"in r?r.stroke:!h&&(!a.autoStroke||A)?(T=h_,w=!0,a.stroke):null),D=r.textShadowBlur>0,O=0;O<m.length;O++){var M=this._getOrCreateChild(Sn),I=M.createStyle();M.useStyle(I),I.text=m[O],I.x=y,I.y=_,l&&(I.textAlign=l),I.textBaseline=\"middle\",I.opacity=r.opacity,I.strokeFirst=!0,D&&(I.shadowBlur=r.textShadowBlur||0,I.shadowColor=r.textShadowColor||\"transparent\",I.shadowOffsetX=r.textShadowOffsetX||0,I.shadowOffsetY=r.textShadowOffsetY||0),I.stroke=C,I.fill=E,C&&(I.lineWidth=r.lineWidth||T,I.lineDash=r.lineDash,I.lineDashOffset=r.lineDashOffset||0),I.font=i,d_(I,r),_+=g,M.setBoundingRect(nu(I,c.contentWidth,c.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;$p(Mr,i.overflowRect,o,s,n,a),o=Mr.baseX,s=Mr.baseY;var l=x_(r),u=Zy(l,r,Mr.outerWidth,Mr.outerHeight,n),f=u.width,c=u.outerWidth,p=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var v=Ti(o,c,n),d=Gr(s,p,a),m=v,g=d;h&&(m+=h[3],g+=h[0]);var y=m+f;hh(r)&&this._renderBackground(r,r,v,d,c,p);for(var _=!!r.backgroundColor,x=0;x<u.lines.length;x++){for(var S=u.lines[x],T=S.tokens,w=T.length,A=S.lineHeight,E=S.width,C=0,D=m,O=y,M=w-1,I=void 0;C<w&&(I=T[C],!I.align||I.align===\"left\");)this._placeToken(I,r,A,g,D,\"left\",_),E-=I.width,D+=I.width,C++;for(;M>=0&&(I=T[M],I.align===\"right\");)this._placeToken(I,r,A,g,O,\"right\",_),E-=I.width,O-=I.width,M--;for(D+=(f-(D-m)-(y-O)-E)/2;C<=M;)I=T[C],this._placeToken(I,r,A,g,D+I.width/2,\"center\",_),D+=I.width,C++;g+=A}},e.prototype._placeToken=function(r,i,n,a,o,s,l){var u=i.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+n/2;f===\"top\"?c=a+r.height/2:f===\"bottom\"&&(c=a+n-r.height/2);var p=!r.isLineHolder&&hh(u);p&&this._renderBackground(u,i,s===\"right\"?o-r.width:s===\"center\"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=__(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var d=this._getOrCreateChild(Sn),m=d.createStyle();d.useStyle(m);var g=this._defaultStyle,y=!1,_=0,x=!1,S=y_(\"fill\"in u?u.fill:\"fill\"in i?i.fill:(y=!0,g.fill)),T=g_(\"stroke\"in u?u.stroke:\"stroke\"in i?i.stroke:!h&&!l&&(!g.autoStroke||y)?(_=h_,x=!0,g.stroke):null),w=u.textShadowBlur>0||i.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,w&&(m.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,m.shadowColor=u.textShadowColor||i.textShadowColor||\"transparent\",m.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline=\"middle\",m.font=r.font||xt,m.opacity=ir(u.opacity,i.opacity,1),d_(m,u),T&&(m.lineWidth=ir(u.lineWidth,i.lineWidth,_),m.lineDash=F(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=T),S&&(m.fill=S),d.setBoundingRect(nu(m,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,i,n,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,p=l&&!c,h=r.borderRadius,v=this,d,m;if(p||r.lineHeight||u&&f){d=this._getOrCreateChild(Te),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=h,d.dirtyShape()}if(p){var y=d.style;y.fill=l||null,y.fillOpacity=F(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(st),m.onload=function(){v.dirtyStyle()};var _=m.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=d.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=F(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(d||m).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||\"transparent\",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=ir(r.opacity,i.opacity,1)},e.makeFont=function(r){var i=\"\";return dh(r)&&(i=[r.fontStyle,r.fontWeight,vh(r.fontSize),r.fontFamily||\"sans-serif\"].join(\" \")),i&&St(i)||r.textFont||r.font},e})(Cr),JA={left:!0,right:1,center:1},eD={top:1,bottom:1,middle:1},v_=[\"fontStyle\",\"fontWeight\",\"fontSize\",\"fontFamily\"];function vh(t){return typeof t==\"string\"&&(t.indexOf(\"px\")!==-1||t.indexOf(\"rem\")!==-1||t.indexOf(\"em\")!==-1)?t:isNaN(+t)?ll+\"px\":t+\"px\"}function d_(t,e){for(var r=0;r<v_.length;r++){var i=v_[r],n=e[i];n!=null&&(t[i]=n)}}function dh(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function tD(t){return m_(t),b(t.rich,m_),t}function m_(t){if(t){t.font=S_.makeFont(t);var e=t.align;e===\"middle\"&&(e=\"center\"),t.align=e==null||JA[e]?e:\"left\";var r=t.verticalAlign;r===\"center\"&&(r=\"middle\"),t.verticalAlign=r==null||eD[r]?r:\"top\";var i=t.padding;i&&(t.padding=ia(t.padding))}}function g_(t,e){return t==null||e<=0||t===\"transparent\"||t===\"none\"?null:t.image||t.colorStops?\"#000\":t}function y_(t){return t==null||t===\"none\"?null:t.image||t.colorStops?\"#000\":t}function __(t,e,r){return e===\"right\"?t-r[1]:e===\"center\"?t+r[3]/2-r[1]/2:t+r[3]}function x_(t){var e=t.text;return e!=null&&(e+=\"\"),e}function hh(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var je=S_;var be=q(),T_=function(t,e,r,i){if(i){var n=be(i);n.dataIndex=r,n.dataType=e,n.seriesIndex=t,n.ssrType=\"chart\",i.type===\"group\"&&i.traverse(function(a){var o=be(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType=\"chart\"})}};var Tn=\"undefined\",fu=\"series\",cu=U([\"tooltip\",\"label\",\"itemName\",\"itemId\",\"itemGroupId\",\"itemChildGroupId\",\"seriesName\"]),Ke=\"original\",Ge=\"arrayRows\",mt=\"objectRows\",Nt=\"keyedColumns\",Rt=\"typedArray\",mh=\"unknown\",kt=\"column\",Or=\"row\";var rD=[\"getDom\",\"getZr\",\"getWidth\",\"getHeight\",\"getDevicePixelRatio\",\"dispatchAction\",\"isSSR\",\"isDisposed\",\"on\",\"off\",\"getDataURL\",\"getConnectedDataURL\",\"getOption\",\"getId\",\"updateLabelLayout\"],iD=(function(){function t(e){b(rD,function(r){this[r]=$(e[r],e)},this)}return t})();function b_(t,e){return e.mainType===fu?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var pu=iD;var w_=1,C_={},O_=q(),_h=q(),xh=0,Zo=1,Xo=2,Kt=[\"emphasis\",\"blur\",\"select\"],Sh=[\"normal\",\"emphasis\",\"blur\",\"select\"],nD=10,aD=9,Di=\"highlight\",qo=\"downplay\",Ko=\"select\",vu=\"unselect\",jo=\"toggleSelect\",du=\"selectchanged\";function Ma(t){return t!=null&&t!==\"none\"}function mu(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function I_(t){mu(t,\"emphasis\",Xo)}function L_(t){t.hoverState===Xo&&mu(t,\"normal\",xh)}function Th(t){mu(t,\"blur\",Zo)}function P_(t){t.hoverState===Zo&&mu(t,\"normal\",xh)}function oD(t){t.selected=!0}function sD(t){t.selected=!1}function E_(t,e,r){e(t,r)}function Qr(t,e,r){E_(t,e,r),t.isGroup&&t.traverse(function(i){E_(i,e,r)})}function bh(t,e){switch(e){case\"emphasis\":t.hoverState=Xo;break;case\"normal\":t.hoverState=xh;break;case\"blur\":t.hoverState=Zo;break;case\"select\":t.selected=!0}}function lD(t,e,r,i){for(var n=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName===\"style\"&&u.saveTo(a,e)}return a}function uD(t,e,r,i){var n=r&&se(r,\"select\")>=0,a=!1;if(t instanceof ne){var o=O_(t),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Ma(s)||Ma(l)){i=i||{};var u=i.style||{};u.fill===\"inherit\"?(a=!0,i=P({},i),u=P({},u),u.fill=s):!Ma(u.fill)&&Ma(s)?(a=!0,i=P({},i),u=P({},u),u.fill=Do(s)):!Ma(u.stroke)&&Ma(l)&&(a||(i=P({},i),u=P({},u)),u.stroke=Do(l)),i.style=u}}if(i&&i.z2==null){a||(i=P({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(f??nD)}return i}function fD(t,e,r){if(r&&r.z2==null){r=P({},r);var i=t.z2SelectLift;r.z2=t.z2+(i??aD)}return r}function cD(t,e,r){var i=se(t.currentStates,e)>=0,n=t.style.opacity,a=i?null:lD(t,[\"opacity\"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=P({},r),o=P({opacity:i?n:a.opacity*.1},o),r.style=o),r}function gh(t,e){var r=this.states[t];if(this.style){if(t===\"emphasis\")return uD(this,t,e,r);if(t===\"blur\")return cD(this,t,r);if(t===\"select\")return fD(this,t,r)}return r}function pD(t){t.stateProxy=gh;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=gh),r&&(r.stateProxy=gh)}function A_(t,e){!R_(t,e)&&!t.__highByOuter&&Qr(t,I_)}function D_(t,e){!R_(t,e)&&!t.__highByOuter&&Qr(t,L_)}function bn(t,e){t.__highByOuter|=1<<(e||0),Qr(t,I_)}function wn(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Qr(t,L_)}function N_(t){Qr(t,Th)}function wh(t){Qr(t,P_)}function Ch(t){Qr(t,oD)}function Eh(t){Qr(t,sD)}function R_(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Ah(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(n,a){var o=_h(a),s=b_(t,a),l=n===\"series\";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){P_(u)}),l&&r.push(a)),o.isBlured=!1}),b(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,e)})}function yh(t,e,r,i){var n=i.getModel();r=r||\"coordinateSystem\";function a(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&wh(p)}}if(t!=null&&!(!e||e===\"none\")){var o=n.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(r===\"series\"&&!f||r===\"coordinateSystem\"&&!p||e===\"series\"&&f)){var h=i.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&f&&e===\"self\"||Th(m)}),He(e))a(u.getData(),e);else if(H(e))for(var v=K(e),d=0;d<v.length;d++)a(u.getData(v[d]),e[v[d]]);l.push(u),_h(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!==\"series\"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function hu(t,e,r){if(!(t==null||e==null)){var i=r.getModel().getComponent(t,e);if(i){_h(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){Th(a)})}}}function k_(t,e,r){var i=t.seriesIndex,n=t.getData(e.dataType);if(n){var a=Wt(n,e);a=(k(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=be(o);yh(i,u.focus,u.blurScope,r)}else{var f=t.get([\"emphasis\",\"focus\"]),c=t.get([\"emphasis\",\"blurScope\"]);f!=null&&yh(i,f,c,r)}}}function gu(t,e,r,i){var n={focusSelf:!1,dispatchers:null};if(t==null||t===\"series\"||e==null||r==null)return n;var a=i.getModel().getComponent(t,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(be(s[u]).focus===\"self\"){l=!0;break}return{focusSelf:l,dispatchers:s}}function B_(t,e,r){var i=be(t),n=gu(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&hu(i.componentMainType,i.componentIndex,r),b(a,function(s){return A_(s,e)})):(yh(i.seriesIndex,i.focus,i.blurScope,r),i.focus===\"self\"&&hu(i.componentMainType,i.componentIndex,r),A_(t,e))}function z_(t,e,r){Ah(r);var i=be(t),n=gu(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?b(n,function(a){return D_(a,e)}):D_(t,e)}function U_(t,e,r){if(yu(e)){var i=e.dataType,n=t.getData(i),a=Wt(n,e);k(a)||(a=[a]),t[e.type===jo?\"toggleSelect\":e.type===Ko?\"select\":\"unselect\"](a,i)}}function Dh(t){var e=t.getAllData();b(e,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){t.isSelected(o,n)?Ch(a):Eh(a)})})}function F_(t){var e=[];return t.eachSeries(function(r){var i=r.getAllData();b(i,function(n){var a=n.data,o=n.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function Mh(t,e,r){V_(t,!0),Qr(t,pD),vD(t,e,r)}function hD(t){V_(t,!1)}function Qo(t,e,r,i){i?hD(t):Mh(t,e,r)}function vD(t,e,r){var i=be(t);e!=null?(i.focus=e,i.blurScope=r):i.focus&&(i.focus=null)}var M_=[\"emphasis\",\"blur\",\"select\"],dD={itemStyle:\"getItemStyle\",lineStyle:\"getLineStyle\",areaStyle:\"getAreaStyle\"};function Oh(t,e,r,i){r=r||\"itemStyle\";for(var n=0;n<M_.length;n++){var a=M_[n],o=e.getModel([a,r]),s=t.ensureState(a);s.style=i?i(o):o[dD[r]]()}}function V_(t,e){var r=e===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function $o(t){return!!(t&&t.__highDownDispatcher)}function H_(t){var e=C_[t];return e==null&&w_<=32&&(e=C_[t]=w_++),e}function yu(t){var e=t.type;return e===Ko||e===vu||e===jo}function Ih(t){var e=t.type;return e===Di||e===qo}function G_(t){var e=O_(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var ut={};Nm(ut,{Arc:()=>os,BezierCurve:()=>Uh,BoundingRect:()=>ee,Circle:()=>es,CompoundPath:()=>bu,Ellipse:()=>Rh,Group:()=>ye,HOVER_LAYER_FOR_INCREMENTAL:()=>ls,HOVER_LAYER_FROM_THRESHOLD:()=>Zh,HOVER_LAYER_NO:()=>Wh,Image:()=>st,IncrementalDisplayable:()=>m0,Line:()=>cr,LinearGradient:()=>Cu,OrientedBoundingRect:()=>Mu,Path:()=>ne,Point:()=>ge,Polygon:()=>ns,Polyline:()=>as,RadialGradient:()=>v0,Rect:()=>Te,Ring:()=>Bh,Sector:()=>is,Text:()=>je,WH:()=>Mn,XY:()=>Jr,applyTransform:()=>In,calcZ2Range:()=>nM,clipPointsByRect:()=>eM,clipRectByRect:()=>tM,createIcon:()=>Qh,decomposeTransform:()=>oM,ensureCopyRect:()=>Na,ensureCopyTransform:()=>Nu,expandOrShrinkRect:()=>Pa,extendPath:()=>qD,extendShape:()=>ZD,getCurrentCanvasPainter:()=>sM,getShapeClass:()=>KD,getTransform:()=>qh,groupTransition:()=>jh,initProps:()=>$r,isBoundingRectAxisAligned:()=>Pu,isElementRemoved:()=>Dn,lineLineIntersect:()=>w0,linePolygonIntersect:()=>rM,makeImage:()=>Xh,makePath:()=>Iu,mergePath:()=>jD,payloadDisableAnimation:()=>aM,registerShape:()=>pr,removeElement:()=>La,removeElementWithFadeOut:()=>y0,resizePath:()=>b0,retrieveZInfo:()=>Mi,setTooltipConfig:()=>Lu,subPixelOptimize:()=>$D,subPixelOptimizeLine:()=>On,subPixelOptimizeRect:()=>QD,transformDirection:()=>Kh,traverseElements:()=>us,traverseUpdateZ:()=>$h,updateProps:()=>jt});var Oa=vt.CMD,mD=[[],[],[]],Y_=Math.sqrt,gD=Math.atan2;function Lh(t,e){if(e){var r=t.data,i=t.len(),n,a,o,s,l,u,f=Oa.M,c=Oa.C,p=Oa.L,h=Oa.R,v=Oa.A,d=Oa.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case f:a=1;break;case p:a=1;break;case c:a=3;break;case d:a=2;break;case v:var m=e[4],g=e[5],y=Y_(e[0]*e[0]+e[1]*e[1]),_=Y_(e[2]*e[2]+e[3]*e[3]),x=gD(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=m,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],et(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],et(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=mD[l];S[0]=r[o++],S[1]=r[o++],et(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var Ph=Math.sqrt,_u=Math.sin,xu=Math.cos,Jo=Math.PI;function W_(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Nh(t,e){return(t[0]*e[0]+t[1]*e[1])/(W_(t)*W_(e))}function Z_(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Nh(t,e))}function X_(t,e,r,i,n,a,o,s,l,u,f){var c=l*(Jo/180),p=xu(c)*(t-r)/2+_u(c)*(e-i)/2,h=-1*_u(c)*(t-r)/2+xu(c)*(e-i)/2,v=p*p/(o*o)+h*h/(s*s);v>1&&(o*=Ph(v),s*=Ph(v));var d=(n===a?-1:1)*Ph((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=d*o*h/s,g=d*-s*p/o,y=(t+r)/2+xu(c)*m-_u(c)*g,_=(e+i)/2+_u(c)*m+xu(c)*g,x=Z_([1,0],[(p-m)/o,(h-g)/s]),S=[(p-m)/o,(h-g)/s],T=[(-1*p-m)/o,(-1*h-g)/s],w=Z_(S,T);if(Nh(S,T)<=-1&&(w=Jo),Nh(S,T)>=1&&(w=0),w<0){var A=Math.round(w/Jo*1e6)/1e6;w=Jo*2+A%2*Jo}f.addData(u,y,_,o,s,x,w,c,a)}var yD=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,_D=/-?([0-9]*\\.)?[0-9]+([eE]-?[0-9]+)?/g;function xD(t){var e=new vt;if(!t)return e;var r=0,i=0,n=r,a=i,o,s=vt.CMD,l=t.match(yD);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),p=void 0,h=f.match(_D)||[],v=h.length,d=0;d<v;d++)h[d]=parseFloat(h[d]);for(var m=0;m<v;){var g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,T=void 0,w=void 0,A=r,E=i,C=void 0,D=void 0;switch(c){case\"l\":r+=h[m++],i+=h[m++],p=s.L,e.addData(p,r,i);break;case\"L\":r=h[m++],i=h[m++],p=s.L,e.addData(p,r,i);break;case\"m\":r+=h[m++],i+=h[m++],p=s.M,e.addData(p,r,i),n=r,a=i,c=\"l\";break;case\"M\":r=h[m++],i=h[m++],p=s.M,e.addData(p,r,i),n=r,a=i,c=\"L\";break;case\"h\":r+=h[m++],p=s.L,e.addData(p,r,i);break;case\"H\":r=h[m++],p=s.L,e.addData(p,r,i);break;case\"v\":i+=h[m++],p=s.L,e.addData(p,r,i);break;case\"V\":i=h[m++],p=s.L,e.addData(p,r,i);break;case\"C\":p=s.C,e.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],i=h[m-1];break;case\"c\":p=s.C,e.addData(p,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i),r+=h[m-2],i+=h[m-1];break;case\"S\":g=r,y=i,C=e.len(),D=e.data,o===s.C&&(g+=r-D[C-4],y+=i-D[C-3]),p=s.C,A=h[m++],E=h[m++],r=h[m++],i=h[m++],e.addData(p,g,y,A,E,r,i);break;case\"s\":g=r,y=i,C=e.len(),D=e.data,o===s.C&&(g+=r-D[C-4],y+=i-D[C-3]),p=s.C,A=r+h[m++],E=i+h[m++],r+=h[m++],i+=h[m++],e.addData(p,g,y,A,E,r,i);break;case\"Q\":A=h[m++],E=h[m++],r=h[m++],i=h[m++],p=s.Q,e.addData(p,A,E,r,i);break;case\"q\":A=h[m++]+r,E=h[m++]+i,r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,A,E,r,i);break;case\"T\":g=r,y=i,C=e.len(),D=e.data,o===s.Q&&(g+=r-D[C-4],y+=i-D[C-3]),r=h[m++],i=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case\"t\":g=r,y=i,C=e.len(),D=e.data,o===s.Q&&(g+=r-D[C-4],y+=i-D[C-3]),r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case\"A\":_=h[m++],x=h[m++],S=h[m++],T=h[m++],w=h[m++],A=r,E=i,r=h[m++],i=h[m++],p=s.A,X_(A,E,r,i,T,w,_,x,S,p,e);break;case\"a\":_=h[m++],x=h[m++],S=h[m++],T=h[m++],w=h[m++],A=r,E=i,r+=h[m++],i+=h[m++],p=s.A,X_(A,E,r,i,T,w,_,x,S,p,e);break}}(c===\"z\"||c===\"Z\")&&(p=s.Z,e.addData(p),r=n,i=a),o=p}return e.toStatic(),e}var q_=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(ne);function K_(t){return t.setData!=null}function j_(t,e){var r=xD(t),i=P({},e);return i.buildPath=function(n){var a=K_(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){Lh(r,n),this.dirtyShape()},i}function Q_(t,e){return new q_(j_(t,e))}function $_(t,e){var r=j_(t,e),i=(function(n){L(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(q_);return i}function J_(t,e){for(var r=[],i=t.length,n=0;n<i;n++){var a=t[n];r.push(a.getUpdatedPathProxy(!0))}var o=new ne(e);return o.createPathProxy(),o.buildPath=function(s){if(K_(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var TD=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var e0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new TD},e.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(ne);e0.prototype.type=\"circle\";var es=e0;var bD=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var t0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new bD},e.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(ne);t0.prototype.type=\"ellipse\";var Rh=t0;var i0=Math.PI,kh=i0*2,Cn=Math.sin,Ia=Math.cos,wD=Math.acos,lt=Math.atan2,r0=Math.abs,rs=Math.sqrt,ts=Math.max,Ir=Math.min,fr=1e-4;function CD(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=c*l-f*u;if(!(p*p<fr))return p=(f*(e-a)-c*(t-n))/p,[t+p*l,e+p*u]}function Su(t,e,r,i,n,a,o){var s=t-r,l=e-i,u=(o?a:-a)/rs(s*s+l*l),f=u*l,c=-u*s,p=t+f,h=e+c,v=r+f,d=i+c,m=(p+v)/2,g=(h+d)/2,y=v-p,_=d-h,x=y*y+_*_,S=n-a,T=p*d-v*h,w=(_<0?-1:1)*rs(ts(0,S*S*x-T*T)),A=(T*_-y*w)/x,E=(-T*y-_*w)/x,C=(T*_+y*w)/x,D=(-T*y+_*w)/x,O=A-m,M=E-g,I=C-m,z=D-g;return O*O+M*M>I*I+z*z&&(A=C,E=D),{cx:A,cy:E,x0:-f,y0:-c,x1:A*(n/S-1),y1:E*(n/S-1)}}function ED(t){var e;if(k(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function n0(t,e){var r,i=ts(e.r,0),n=ts(e.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=r0(u-l),v=h>kh&&h%kh;if(v>fr&&(h=v),!(i>fr))t.moveTo(f,c);else if(h>kh-fr)t.moveTo(f+i*Ia(l),c+i*Cn(l)),t.arc(f,c,i,l,u,!p),n>fr&&(t.moveTo(f+n*Ia(u),c+n*Cn(u)),t.arc(f,c,n,u,l,p));else{var d=void 0,m=void 0,g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,T=void 0,w=void 0,A=void 0,E=void 0,C=void 0,D=void 0,O=void 0,M=void 0,I=void 0,z=i*Ia(l),N=i*Cn(l),Y=n*Ia(u),X=n*Cn(u),Z=h>fr;if(Z){var ie=e.cornerRadius;ie&&(r=ED(ie),d=r[0],m=r[1],g=r[2],y=r[3]);var J=r0(i-n)/2;if(_=Ir(J,g),x=Ir(J,y),S=Ir(J,d),T=Ir(J,m),E=w=ts(_,x),C=A=ts(S,T),(w>fr||A>fr)&&(D=i*Ia(u),O=i*Cn(u),M=n*Ia(l),I=n*Cn(l),h<i0)){var ae=CD(z,N,M,I,D,O,Y,X);if(ae){var j=z-ae[0],W=N-ae[1],ue=D-ae[0],he=O-ae[1],Je=1/Cn(wD((j*ue+W*he)/(rs(j*j+W*W)*rs(ue*ue+he*he)))/2),it=rs(ae[0]*ae[0]+ae[1]*ae[1]);E=Ir(w,(i-it)/(Je+1)),C=Ir(A,(n-it)/(Je-1))}}}if(!Z)t.moveTo(f+z,c+N);else if(E>fr){var _e=Ir(g,E),Le=Ir(y,E),oe=Su(M,I,z,N,i,_e,p),ve=Su(D,O,Y,X,i,Le,p);t.moveTo(f+oe.cx+oe.x0,c+oe.cy+oe.y0),E<w&&_e===Le?t.arc(f+oe.cx,c+oe.cy,E,lt(oe.y0,oe.x0),lt(ve.y0,ve.x0),!p):(_e>0&&t.arc(f+oe.cx,c+oe.cy,_e,lt(oe.y0,oe.x0),lt(oe.y1,oe.x1),!p),t.arc(f,c,i,lt(oe.cy+oe.y1,oe.cx+oe.x1),lt(ve.cy+ve.y1,ve.cx+ve.x1),!p),Le>0&&t.arc(f+ve.cx,c+ve.cy,Le,lt(ve.y1,ve.x1),lt(ve.y0,ve.x0),!p))}else t.moveTo(f+z,c+N),t.arc(f,c,i,l,u,!p);if(!(n>fr)||!Z)t.lineTo(f+Y,c+X);else if(C>fr){var _e=Ir(d,C),Le=Ir(m,C),oe=Su(Y,X,D,O,n,-Le,p),ve=Su(z,N,M,I,n,-_e,p);t.lineTo(f+oe.cx+oe.x0,c+oe.cy+oe.y0),C<A&&_e===Le?t.arc(f+oe.cx,c+oe.cy,C,lt(oe.y0,oe.x0),lt(ve.y0,ve.x0),!p):(Le>0&&t.arc(f+oe.cx,c+oe.cy,Le,lt(oe.y0,oe.x0),lt(oe.y1,oe.x1),!p),t.arc(f,c,n,lt(oe.cy+oe.y1,oe.cx+oe.x1),lt(ve.cy+ve.y1,ve.cx+ve.x1),p),_e>0&&t.arc(f+ve.cx,c+ve.cy,_e,lt(ve.y1,ve.x1),lt(ve.y0,ve.x0),!p))}else t.lineTo(f+Y,c+X),t.arc(f,c,n,u,l,p)}t.closePath()}}}var DD=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})();var a0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new DD},e.prototype.buildPath=function(r,i){n0(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(ne);a0.prototype.type=\"sector\";var is=a0;var MD=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var o0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new MD},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},e})(ne);o0.prototype.type=\"ring\";var Bh=o0;function zh(t,e,r,i){var n=[],a=[],o=[],s=[],l,u,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++)Br(f,f,t[p]),zr(c,c,t[p]);Br(f,f,i[0]),zr(c,c,i[1])}for(var p=0,h=t.length;p<h;p++){var v=t[p];if(r)l=t[p?p-1:h-1],u=t[(p+1)%h];else if(p===0||p===h-1){n.push(Wm(t[p]));continue}else l=t[p-1],u=t[p+1];Zm(a,u,l),dl(a,a,e);var d=ml(v,l),m=ml(v,u),g=d+m;g!==0&&(d/=g,m/=g),dl(o,a,-d),dl(s,a,m);var y=Fc([],v,o),_=Fc([],v,s);i&&(zr(y,y,f),Br(y,y,c),zr(_,_,f),Br(_,_,c)),n.push(y),n.push(_)}return r&&n.push(n.shift()),n}function Tu(t,e,r){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var a=zh(n,i,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)t.lineTo(n[s][0],n[s][1])}r&&t.closePath()}}var OD=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var l0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new OD},e.prototype.buildPath=function(r,i){Tu(r,i,!0)},e})(ne);l0.prototype.type=\"polygon\";var ns=l0;var ID=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var u0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:\"#000\",fill:null}},e.prototype.getDefaultShape=function(){return new ID},e.prototype.buildPath=function(r,i){Tu(r,i,!1)},e})(ne);u0.prototype.type=\"polyline\";var as=u0;var LD={},PD=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var f0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:\"#000\",fill:null}},e.prototype.getDefaultShape=function(){return new PD},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=lu(LD,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(r.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},e})(ne);f0.prototype.type=\"line\";var cr=f0;var bt=[],ND=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function c0(t,e,r){var i=t.cpx2,n=t.cpy2;return i!=null||n!=null?[(r?ip:Ee)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?ip:Ee)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?np:qe)(t.x1,t.cpx1,t.x2,e),(r?np:qe)(t.y1,t.cpy1,t.y2,e)]}var p0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:\"#000\",fill:null}},e.prototype.getDefaultShape=function(){return new ND},e.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(r.moveTo(n,a),f==null||c==null?(p<1&&(ca(n,l,o,p,bt),l=bt[1],o=bt[2],ca(a,u,s,p,bt),u=bt[1],s=bt[2]),r.quadraticCurveTo(l,u,o,s)):(p<1&&(fa(n,l,f,o,p,bt),l=bt[1],f=bt[2],o=bt[3],fa(a,u,c,s,p,bt),u=bt[1],c=bt[2],s=bt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return c0(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=c0(this.shape,r,!0);return Xm(i,i)},e})(ne);p0.prototype.type=\"bezier-curve\";var Uh=p0;var RD=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})();var h0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:\"#000\",fill:null}},e.prototype.getDefaultShape=function(){return new RD},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+n,c*o+a),r.arc(n,a,o,s,l,!u)},e})(ne);h0.prototype.type=\"arc\";var os=h0;var kD=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=\"compound\",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ne.prototype.getBoundingRect.call(this)},e})(ne),bu=kD;var BD=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),wu=BD;var zD=(function(t){L(e,t);function e(r,i,n,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type=\"linear\",l.global=s||!1,l}return e})(wu),Cu=zD;var UD=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type=\"radial\",s.global=o||!1,s}return e})(wu),v0=UD;var Fh=Math.min,FD=Math.max,Eu=Math.abs,En=[0,0],An=[0,0],Qe=Qc(),Au=Qe.minTv,Du=Qe.maxTv,VD=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ge;for(var i=0;i<2;i++)this._axes[i]=new ge;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,n=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),r)for(var u=0;u<4;u++)i[u].transform(r);ge.sub(n[0],i[1],i[0]),ge.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},t.prototype.intersect=function(e,r,i){var n=!0,a=!r;return r&&ge.set(r,0,0),Qe.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(n=!1,a)||!a&&!Qe.negativeSize&&ge.copy(r,n?Qe.useDir?Qe.dirMinTv:Au:Du),n},t.prototype._intersectCheckOneSide=function(e,r,i,n){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,En),e._getProjMinMaxOnAxis(o,r._corners,An),Qe.negativeSize||En[1]<An[0]||En[0]>An[1]){if(a=!1,Qe.negativeSize||i)return a;var l=Eu(An[0]-En[1]),u=Eu(En[0]-An[1]);Fh(l,u)>Du.len()&&(l<u?ge.scale(Du,s,-l*n):ge.scale(Du,s,u*n))}else if(!i){var l=Eu(An[0]-En[1]),u=Eu(En[0]-An[1]);(Qe.useDir||Fh(l,u)<Au.len())&&((l<u||!Qe.bidirectional)&&(ge.scale(Au,s,l*n),Qe.useDir&&Qe.calcDirMTV()),(l>=u||!Qe.bidirectional)&&(ge.scale(Au,s,-u*n),Qe.useDir&&Qe.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,i){for(var n=this._axes[e],a=this._origin,o=r[0].dot(n)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(n)+a[e];s=Fh(f,s),l=FD(f,l)}i[0]=s+Qe.touchThreshold,i[1]=l-Qe.touchThreshold,Qe.negativeSize=i[1]<i[0]},t})(),Mu=VD;var d0=1;var HD=[],GD=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=d0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ee(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(HD)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},e})(Cr),m0=GD;var YD=q();function WD(t,e,r,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t===\"update\";if(s){var u=void 0,f=void 0,c=void 0;i?(u=F(i.duration,200),f=F(i.easing,\"cubicOut\"),c=0):(u=e.getShallow(l?\"animationDurationUpdate\":\"animationDuration\"),f=e.getShallow(l?\"animationEasingUpdate\":\"animationEasing\"),c=e.getShallow(l?\"animationDelayUpdate\":\"animationDelay\")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),G(c)&&(c=c(r,n)),G(u)&&(u=u(r));var p={duration:u||0,delay:c,easing:f};return p}else return null}function Vh(t,e,r,i,n,a,o){var s=!1,l;G(n)?(o=a,a=n,n=null):H(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=t===\"leave\";u||e.stopAnimation(\"leave\");var f=WD(t,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,v={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function jt(t,e,r,i,n,a){Vh(\"update\",t,e,r,i,n,a)}function $r(t,e,r,i,n,a){Vh(\"enter\",t,e,r,i,n,a)}function Dn(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope===\"leave\")return!0}return!1}function La(t,e,r,i,n,a){Dn(t)||Vh(\"leave\",t,e,r,i,n,a)}function g0(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),La(t,{style:{opacity:0}},e,r,i)}function y0(t,e,r){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(n){n.isGroup||g0(n,e,r,i)}):g0(t,e,r,i)}function _0(t){YD(t).oldStyle=t.style}var Gh={},Jr=[\"x\",\"y\"],Mn=[\"width\",\"height\"],Wh=0,Zh=1,ls=2;function ZD(t){return ne.extend(t)}var XD=$_;function qD(t,e){return XD(t,e)}function pr(t,e){Gh[t]=e}function KD(t){if(Gh.hasOwnProperty(t))return Gh[t]}function Iu(t,e,r,i){var n=Q_(t,e);return r&&(i===\"center\"&&(r=T0(r,n.getBoundingRect())),b0(n,r)),n}function Xh(t,e,r){var i=new st({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(r===\"center\"){var a={width:n.width,height:n.height};i.setStyle(T0(e,a))}}});return i}function T0(t,e){var r=e.width/e.height,i=t.height*r,n;i<=t.width?n=t.height:(i=t.width,n=i/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var jD=J_;function b0(t,e){if(t.applyTransform){var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}}function On(t,e){return lu(t,t,{lineWidth:e}),t}function QD(t,e){return uu(t,t,e),t}var $D=Ai;function qh(t,e){for(var r=Ur([]);t&&t!==e;)di(r,t.getLocalTransform(),r),t=t.parent;return r}function In(t,e,r){return e&&!He(e)&&(e=ga.getLocalTransform(e)),r&&(e=yr([],e)),et([],t,e)}function Kh(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:Ae(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Ae(2*e[4]/e[2]),a=[t===\"left\"?-i:t===\"right\"?i:0,t===\"top\"?-n:t===\"bottom\"?n:0];return a=In(a,e,r),Ae(a[0])>Ae(a[1])?a[0]>0?\"right\":\"left\":a[1]>0?\"bottom\":\"top\"}function x0(t){return!t.isGroup}function JD(t){return t.shape!=null}function jh(t,e,r){if(!t||!e)return;function i(o){var s={};return o.traverse(function(l){x0(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return JD(o)&&(s.shape=Q(o.shape)),s}var a=i(t);e.traverse(function(o){if(x0(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),jt(o,l,r,be(o).dataIndex)}}})}function eM(t,e){return R(t,function(r){var i=r[0];i=ce(i,e.x),i=Fe(i,e.x+e.width);var n=r[1];return n=ce(n,e.y),n=Fe(n,e.y+e.height),[i,n]})}function tM(t,e){var r=ce(t.x,e.x),i=Fe(t.x+t.width,e.x+e.width),n=ce(t.y,e.y),a=Fe(t.y+t.height,e.y+e.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function Qh(t,e,r){var i=P({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf(\"image://\")===0?(n.image=t.slice(8),te(n,r),new st(i)):Iu(t.replace(\"path://\",\"\"),i,r,\"center\")}function rM(t,e,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(w0(t,e,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function w0(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=Hh(f,c,l,u);if(iM(p))return!1;var h=t-n,v=e-a,d=Hh(h,v,l,u)/p;if(d<0||d>1)return!1;var m=Hh(h,v,f,c)/p;return!(m<0||m>1)}function Hh(t,e,r,i){return t*i-r*e}function iM(t){return t<=1e-6&&t>=-1e-6}function Pa(t,e,r,i,n){return e==null||(fe(e)?we[0]=we[1]=we[2]=we[3]=e:(we[0]=e[0],we[1]=e[1],we[2]=e[2],we[3]=e[3]),i&&(we[0]=ce(0,we[0]),we[1]=ce(0,we[1]),we[2]=ce(0,we[2]),we[3]=ce(0,we[3])),r&&(we[0]=-we[0],we[1]=-we[1],we[2]=-we[2],we[3]=-we[3]),S0(t,we,\"x\",\"width\",3,1,n&&n[0]||0),S0(t,we,\"y\",\"height\",0,2,n&&n[1]||0)),t}var we=[0,0,0,0];function S0(t,e,r,i,n,a,o){var s=e[a]+e[n],l=t[i];t[i]+=s,o=ce(0,Fe(o,l)),t[i]<o?(t[i]=o,t[r]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:Ae(s)>1e-8?(l-o)*e[n]/s:0):t[r]-=e[n]}function Lu(t){var e=t.itemTooltipOption,r=t.componentModel,i=t.itemName,n=B(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:[\"name\"]};s[a+\"Index\"]=o;var l=t.formatterParamsExtra;l&&b(K(l),function(f){Ue(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=be(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:te({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Yh(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function us(t,e){if(t)if(k(t))for(var r=0;r<t.length;r++)Yh(t[r],e);else Yh(t,e)}function Pu(t){return!t||Ae(t[1])<Ou&&Ae(t[2])<Ou||Ae(t[0])<Ou&&Ae(t[3])<Ou}var Ou=1e-5;function Na(t,e){return t?ee.copy(t,e):e.clone()}function Nu(t,e){return e?_o(t||pt(),e):void 0}function Mi(t){return{z:t.get(\"z\")||0,zlevel:t.get(\"zlevel\")||0}}function nM(t){var e=-1/0,r=1/0;Yh(t,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function $h(t,e,r){C0(t,e,r,-1/0)}function C0(t,e,r,i){if(t.ignoreModelZ)return i;var n=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=ce(C0(s[l],e,r,i),i);else t.z=e,t.zlevel=r,i=ce(t.z2||0,i);if(n&&(n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function aM(t){return t.animation={duration:0},t}function oM(t,e){return e?_o(ss.transform,e):Ur(ss.transform),ss.decomposeTransform(),Si(t,ss),t}var ss=new ga;ss.transform=pt();function sM(t){var e=t.getZr().painter;return e.getType()===\"canvas\"?e:null}pr(\"circle\",es);pr(\"ellipse\",Rh);pr(\"sector\",is);pr(\"ring\",Bh);pr(\"polygon\",ns);pr(\"polyline\",as);pr(\"rect\",Te);pr(\"line\",cr);pr(\"bezierCurve\",Uh);pr(\"arc\",os);var Ru={};function lM(t,e){for(var r=0;r<Kt.length;r++){var i=Kt[r],n=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=n}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function E0(t,e,r){var i=t.labelFetcher,n=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(n,\"normal\",null,a,o&&o.get(\"formatter\"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=G(t.defaultText)?t.defaultText(n,t,r):t.defaultText);for(var l={normal:s},u=0;u<Kt.length;u++){var f=Kt[u],c=e[f];l[f]=F(i?i.getFormattedLabel(n,f,null,a,c&&c.get(\"formatter\")):null,s)}return l}function ku(t,e,r,i){r=r||Ru;for(var n=t instanceof je,a=!1,o=0;o<Sh.length;o++){var s=e[Sh[o]];if(s&&s.getShallow(\"show\")){a=!0;break}}var l=n?t:t.getTextContent();if(a){n||(l||(l=new je,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=E0(r,e),f=e.normal,c=!!f.getShallow(\"show\"),p=ei(f,i&&i.normal,r,!1,!n);p.text=u.normal,n||t.setTextConfig(A0(f,r,!1));for(var o=0;o<Kt.length;o++){var h=Kt[o],s=e[h];if(s){var v=l.ensureState(h),d=!!F(s.getShallow(\"show\"),c);if(d!==c&&(v.ignore=!d),v.style=ei(s,i&&i[h],r,!0,!n),v.style.text=u[h],!n){var m=t.ensureState(h);m.textConfig=A0(s,r,!0)}}}l.silent=!!f.getShallow(\"silent\"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),r.enableTextSetter&&(Jh(l).setLabelText=function(g){var y=E0(r,e,g);lM(l,y)})}else l&&(l.ignore=!0);t.dirty()}function Ra(t,e){e=e||\"label\";for(var r={normal:t.getModel(e)},i=0;i<Kt.length;i++){var n=Kt[i];r[n]=t.getModel([n,e])}return r}function ei(t,e,r,i,n){var a={};return uM(a,t,r,i,n),e&&P(a,e),a}function A0(t,e,r){e=e||{};var i={},n,a=t.getShallow(\"rotate\"),o=F(t.getShallow(\"distance\"),r?null:5),s=t.getShallow(\"offset\");return n=t.getShallow(\"position\")||(r?null:\"inside\"),n===\"outside\"&&(n=e.defaultOutsidePosition||\"top\"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=t.get(\"color\")===\"inherit\"?e.inheritColor||null:\"auto\",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function uM(t,e,r,i,n){r=r||Ru;var a=e.ecModel,o=a&&a.option.textStyle,s=fM(e),l;if(s){l={};var u=\"richInheritPlainLabel\",f=F(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel([\"rich\",c]);I0(l[c]={},p,o,e,f,r,i,n,!1,!0)}}l&&(t.rich=l);var h=e.get(\"overflow\");h&&(t.overflow=h);var v=e.get(\"lineOverflow\");v&&(t.lineOverflow=v);var d=t,m=e.get(\"minMargin\");if(m!=null)m=fe(m)?m/2:0,d.margin=[m,m,m,m],d.__marginType=Ln.minMargin;else{var g=e.get(\"textMargin\");g!=null&&(d.margin=ia(g),d.__marginType=Ln.textMargin)}I0(t,e,o,null,null,r,i,n,!0,!1)}function fM(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Ru).rich;if(r){e=e||{};for(var i=K(r),n=0;n<i.length;n++){var a=i[n];e[a]=1}}t=t.parentModel}return e}var D0=[\"fontStyle\",\"fontWeight\",\"fontSize\",\"fontFamily\",\"textShadowColor\",\"textShadowBlur\",\"textShadowOffsetX\",\"textShadowOffsetY\"],M0=[\"align\",\"lineHeight\",\"width\",\"height\",\"tag\",\"verticalAlign\",\"ellipsis\"],O0=[\"padding\",\"borderWidth\",\"borderRadius\",\"borderDashOffset\",\"backgroundColor\",\"borderColor\",\"shadowColor\",\"shadowBlur\",\"shadowOffsetX\",\"shadowOffsetY\"];function I0(t,e,r,i,n,a,o,s,l,u){r=!o&&r||Ru;var f=a&&a.inheritColor,c=e.getShallow(\"color\"),p=e.getShallow(\"textBorderColor\"),h=F(e.getShallow(\"opacity\"),r.opacity);(c===\"inherit\"||c===\"auto\")&&(f?c=f:c=null),(p===\"inherit\"||p===\"auto\")&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var v=F(e.getShallow(\"textBorderWidth\"),r.textBorderWidth);v!=null&&(t.lineWidth=v);var d=F(e.getShallow(\"textBorderType\"),r.textBorderType);d!=null&&(t.lineDash=d);var m=F(e.getShallow(\"textBorderDashOffset\"),r.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<D0.length;g++){var y=D0[g],_=n!==!1&&i?ir(e.getShallow(y),i.getShallow(y),r[y]):F(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var g=0;g<M0.length;g++){var y=M0[g],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var x=e.getShallow(\"baseline\");x!=null&&(t.verticalAlign=x)}if(!l||!a.disableBox){for(var g=0;g<O0.length;g++){var y=O0[g],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow(\"borderType\");S!=null&&(t.borderDash=S),(t.backgroundColor===\"auto\"||t.backgroundColor===\"inherit\")&&f&&(t.backgroundColor=f),(t.borderColor===\"auto\"||t.borderColor===\"inherit\")&&f&&(t.borderColor=f)}}function L0(t,e){var r=e&&e.getModel(\"textStyle\");return St([t.fontStyle||r&&r.getShallow(\"fontStyle\")||\"\",t.fontWeight||r&&r.getShallow(\"fontWeight\")||\"\",(t.fontSize||r&&r.getShallow(\"fontSize\")||12)+\"px\",t.fontFamily||r&&r.getShallow(\"fontFamily\")||\"sans-serif\"].join(\" \"))}var Jh=q();var Ln={minMargin:1,textMargin:2};var cM=[\"textStyle\",\"color\"],ev=[\"fontStyle\",\"fontWeight\",\"fontSize\",\"fontFamily\",\"padding\",\"lineHeight\",\"rich\",\"width\",\"height\",\"overflow\"],tv=new je,pM=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow(\"color\")||(!e&&r?r.get(cM):null)},t.prototype.getFont=function(){return L0({fontStyle:this.getShallow(\"fontStyle\"),fontWeight:this.getShallow(\"fontWeight\"),fontSize:this.getShallow(\"fontSize\"),fontFamily:this.getShallow(\"fontFamily\")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow(\"verticalAlign\")||this.getShallow(\"baseline\")},i=0;i<ev.length;i++)r[ev[i]]=this.getShallow(ev[i]);return tv.useStyle(r),tv.update(),tv.getBoundingRect()},t})(),P0=pM;var rv=[[\"lineWidth\",\"width\"],[\"stroke\",\"color\"],[\"opacity\"],[\"shadowBlur\"],[\"shadowOffsetX\"],[\"shadowOffsetY\"],[\"shadowColor\"],[\"lineDash\",\"type\"],[\"lineDashOffset\",\"dashOffset\"],[\"lineCap\",\"cap\"],[\"lineJoin\",\"join\"],[\"miterLimit\"]],hM=br(rv),N0=(function(){function t(){}return t.prototype.getLineStyle=function(e){return hM(this,e)},t})();var iv=[[\"fill\",\"color\"],[\"stroke\",\"borderColor\"],[\"lineWidth\",\"borderWidth\"],[\"opacity\"],[\"shadowBlur\"],[\"shadowOffsetX\"],[\"shadowOffsetY\"],[\"shadowColor\"],[\"lineDash\",\"borderType\"],[\"lineDashOffset\",\"borderDashOffset\"],[\"lineCap\",\"borderCap\"],[\"lineJoin\",\"borderJoin\"],[\"miterLimit\",\"borderMiterLimit\"]],vM=br(iv),R0=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return vM(this,e,r)},t})();var Pn=(function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){pe(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var i=this.option,n=i==null?i:i[e];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(e))}return n},t.prototype.getModel=function(e,r){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Q(this.option))},t.prototype.parsePath=function(e){return typeof e==\"string\"?e.split(\".\"):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!me.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var i=this.option;if(!e)return i;for(var n=0;n<e.length&&!(e[n]&&(i=i&&typeof i==\"object\"?i[e[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(e),r.parentModel)),i},t})();Ca(Pn);ky(Pn);ct(Pn,N0);ct(Pn,R0);ct(Pn,By);ct(Pn,P0);var Ye=Pn;var dM=Math.round(Math.random()*10);function Oi(t){return[t||\"\",dM++].join(\"_\")}function k0(t){var e={};t.registerSubTypeDefaulter=function(r,i){var n=Tt(r);e[n.main]=i},t.determineSubType=function(r,i){var n=i.type;if(!n){var a=Tt(r).main;t.hasSubTypes(r)&&e[a]&&(n=e[a](i))}return n}}function B0(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,p={};for(b(a,function(y){p[y]=!0});c.length;){var h=c.pop(),v=f[h],d=!!p[h];d&&(s.call(l,h,v.originalDeps.slice()),delete p[h]),b(v.successor,d?g:m)}b(p,function(){var y=\"\";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){p[y]=!0,m(y)}};function r(a){var o={},s=[];return b(a,function(l){var u=i(o,l),f=u.originalDeps=e(l),c=n(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),b(c,function(p){se(u.predecessor,p)<0&&u.predecessor.push(p);var h=i(o,p);se(h.successor,p)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return b(a,function(l){se(o,l)>=0&&s.push(l)}),s}}function Bu(t,e){return pe(pe({},t,!0),e,!0)}var z0={time:{month:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthAbbr:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayOfWeek:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayOfWeekAbbr:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"]},legend:{selector:{all:\"All\",inverse:\"Inv\"}},toolbox:{brush:{title:{rect:\"Box Select\",polygon:\"Lasso Select\",lineX:\"Horizontally Select\",lineY:\"Vertically Select\",keep:\"Keep Selections\",clear:\"Clear Selections\"}},dataView:{title:\"Data View\",lang:[\"Data View\",\"Close\",\"Refresh\"]},dataZoom:{title:{zoom:\"Zoom\",back:\"Zoom Reset\"}},magicType:{title:{line:\"Switch to Line Chart\",bar:\"Switch to Bar Chart\",stack:\"Stack\",tiled:\"Tile\"}},restore:{title:\"Restore\"},saveAsImage:{title:\"Save as Image\",lang:[\"Right Click to Save Image\"]}},series:{typeNames:{pie:\"Pie chart\",bar:\"Bar chart\",line:\"Line chart\",scatter:\"Scatter plot\",effectScatter:\"Ripple scatter plot\",radar:\"Radar chart\",tree:\"Tree\",treemap:\"Treemap\",boxplot:\"Boxplot\",candlestick:\"Candlestick\",k:\"K line chart\",heatmap:\"Heat map\",map:\"Map\",parallel:\"Parallel coordinate map\",lines:\"Line graph\",graph:\"Relationship graph\",sankey:\"Sankey diagram\",funnel:\"Funnel chart\",gauge:\"Gauge\",pictorialBar:\"Pictorial bar\",themeRiver:\"Theme River Map\",sunburst:\"Sunburst\",custom:\"Custom chart\",chart:\"Chart\"}},aria:{general:{withTitle:'This is a chart about \"{title}\"',withoutTitle:\"This is a chart\"},series:{single:{prefix:\"\",withName:\" with type {seriesType} named {seriesName}.\",withoutName:\" with type {seriesType}.\"},multiple:{prefix:\". It consists of {seriesCount} series count.\",withName:\" The {seriesId} series is a {seriesType} representing {seriesName}.\",withoutName:\" The {seriesId} series is a {seriesType}.\",separator:{middle:\"\",end:\"\"}}},data:{allData:\"The data is as follows: \",partialData:\"The first {displayCnt} items are: \",withName:\"the data for {name} is {value}\",withoutName:\"{value}\",separator:{middle:\", \",end:\". \"}}}};var U0={time:{month:[\"\\u4E00\\u6708\",\"\\u4E8C\\u6708\",\"\\u4E09\\u6708\",\"\\u56DB\\u6708\",\"\\u4E94\\u6708\",\"\\u516D\\u6708\",\"\\u4E03\\u6708\",\"\\u516B\\u6708\",\"\\u4E5D\\u6708\",\"\\u5341\\u6708\",\"\\u5341\\u4E00\\u6708\",\"\\u5341\\u4E8C\\u6708\"],monthAbbr:[\"1\\u6708\",\"2\\u6708\",\"3\\u6708\",\"4\\u6708\",\"5\\u6708\",\"6\\u6708\",\"7\\u6708\",\"8\\u6708\",\"9\\u6708\",\"10\\u6708\",\"11\\u6708\",\"12\\u6708\"],dayOfWeek:[\"\\u661F\\u671F\\u65E5\",\"\\u661F\\u671F\\u4E00\",\"\\u661F\\u671F\\u4E8C\",\"\\u661F\\u671F\\u4E09\",\"\\u661F\\u671F\\u56DB\",\"\\u661F\\u671F\\u4E94\",\"\\u661F\\u671F\\u516D\"],dayOfWeekAbbr:[\"\\u65E5\",\"\\u4E00\",\"\\u4E8C\",\"\\u4E09\",\"\\u56DB\",\"\\u4E94\",\"\\u516D\"]},legend:{selector:{all:\"\\u5168\\u9009\",inverse:\"\\u53CD\\u9009\"}},toolbox:{brush:{title:{rect:\"\\u77E9\\u5F62\\u9009\\u62E9\",polygon:\"\\u5708\\u9009\",lineX:\"\\u6A2A\\u5411\\u9009\\u62E9\",lineY:\"\\u7EB5\\u5411\\u9009\\u62E9\",keep:\"\\u4FDD\\u6301\\u9009\\u62E9\",clear:\"\\u6E05\\u9664\\u9009\\u62E9\"}},dataView:{title:\"\\u6570\\u636E\\u89C6\\u56FE\",lang:[\"\\u6570\\u636E\\u89C6\\u56FE\",\"\\u5173\\u95ED\",\"\\u5237\\u65B0\"]},dataZoom:{title:{zoom:\"\\u533A\\u57DF\\u7F29\\u653E\",back:\"\\u533A\\u57DF\\u7F29\\u653E\\u8FD8\\u539F\"}},magicType:{title:{line:\"\\u5207\\u6362\\u4E3A\\u6298\\u7EBF\\u56FE\",bar:\"\\u5207\\u6362\\u4E3A\\u67F1\\u72B6\\u56FE\",stack:\"\\u5207\\u6362\\u4E3A\\u5806\\u53E0\",tiled:\"\\u5207\\u6362\\u4E3A\\u5E73\\u94FA\"}},restore:{title:\"\\u8FD8\\u539F\"},saveAsImage:{title:\"\\u4FDD\\u5B58\\u4E3A\\u56FE\\u7247\",lang:[\"\\u53F3\\u952E\\u53E6\\u5B58\\u4E3A\\u56FE\\u7247\"]}},series:{typeNames:{pie:\"\\u997C\\u56FE\",bar:\"\\u67F1\\u72B6\\u56FE\",line:\"\\u6298\\u7EBF\\u56FE\",scatter:\"\\u6563\\u70B9\\u56FE\",effectScatter:\"\\u6D9F\\u6F2A\\u6563\\u70B9\\u56FE\",radar:\"\\u96F7\\u8FBE\\u56FE\",tree:\"\\u6811\\u56FE\",treemap:\"\\u77E9\\u5F62\\u6811\\u56FE\",boxplot:\"\\u7BB1\\u578B\\u56FE\",candlestick:\"K\\u7EBF\\u56FE\",k:\"K\\u7EBF\\u56FE\",heatmap:\"\\u70ED\\u529B\\u56FE\",map:\"\\u5730\\u56FE\",parallel:\"\\u5E73\\u884C\\u5750\\u6807\\u56FE\",lines:\"\\u7EBF\\u56FE\",graph:\"\\u5173\\u7CFB\\u56FE\",sankey:\"\\u6851\\u57FA\\u56FE\",funnel:\"\\u6F0F\\u6597\\u56FE\",gauge:\"\\u4EEA\\u8868\\u76D8\\u56FE\",pictorialBar:\"\\u8C61\\u5F62\\u67F1\\u56FE\",themeRiver:\"\\u4E3B\\u9898\\u6CB3\\u6D41\\u56FE\",sunburst:\"\\u65ED\\u65E5\\u56FE\",custom:\"\\u81EA\\u5B9A\\u4E49\\u56FE\\u8868\",chart:\"\\u56FE\\u8868\"}},aria:{general:{withTitle:\"\\u8FD9\\u662F\\u4E00\\u4E2A\\u5173\\u4E8E\\u201C{title}\\u201D\\u7684\\u56FE\\u8868\\u3002\",withoutTitle:\"\\u8FD9\\u662F\\u4E00\\u4E2A\\u56FE\\u8868\\uFF0C\"},series:{single:{prefix:\"\",withName:\"\\u56FE\\u8868\\u7C7B\\u578B\\u662F{seriesType}\\uFF0C\\u8868\\u793A{seriesName}\\u3002\",withoutName:\"\\u56FE\\u8868\\u7C7B\\u578B\\u662F{seriesType}\\u3002\"},multiple:{prefix:\"\\u5B83\\u7531{seriesCount}\\u4E2A\\u56FE\\u8868\\u7CFB\\u5217\\u7EC4\\u6210\\u3002\",withName:\"\\u7B2C{seriesId}\\u4E2A\\u7CFB\\u5217\\u662F\\u4E00\\u4E2A\\u8868\\u793A{seriesName}\\u7684{seriesType}\\uFF0C\",withoutName:\"\\u7B2C{seriesId}\\u4E2A\\u7CFB\\u5217\\u662F\\u4E00\\u4E2A{seriesType}\\uFF0C\",separator:{middle:\"\\uFF1B\",end:\"\\u3002\"}}},data:{allData:\"\\u5176\\u6570\\u636E\\u662F\\u2014\\u2014\",partialData:\"\\u5176\\u4E2D\\uFF0C\\u524D{displayCnt}\\u9879\\u662F\\u2014\\u2014\",withName:\"{name}\\u7684\\u6570\\u636E\\u662F{value}\",withoutName:\"{value}\",separator:{middle:\"\\uFF0C\",end:\"\"}}}};var Uu=\"ZH\",av=\"EN\",ka=av,zu={},ov={},Fu=me.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ka).toUpperCase();return t.indexOf(Uu)>-1?Uu:ka})():ka;function F0(t,e){t=t.toUpperCase(),ov[t]=new Ye(e),zu[t]=e}function V0(t){if(B(t)){var e=zu[t.toUpperCase()]||{};return t===Uu||t===av?Q(e):pe(Q(e),Q(zu[ka]),!1)}else return pe(Q(t),Q(zu[ka]),!1)}function H0(t){return ov[t]}function G0(){return ov[ka]}F0(av,z0);F0(Uu,U0);var mM=null;function Ie(){return mM}function Vu(t,e){var r=Ie(),i=e.breakOption,n=e.breakParsed;return!n&&r&&(n=r.parseAxisBreakOption(i,t)),n}function Nn(t){var e=t.brk;return e?e.breaks:[]}function Rn(t){var e=t.brk;return e?e.hasBreaks():!1}var Yu=1e3,Wu=Yu*60,Ba=Wu*60,Bt=Ba*24,sv=Bt*365,gM={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Gu={year:\"{yyyy}\",month:\"{MMM}\",day:\"{d}\",hour:\"{HH}:{mm}\",minute:\"{HH}:{mm}\",second:\"{HH}:{mm}:{ss}\",millisecond:\"{HH}:{mm}:{ss} {SSS}\"},yM=\"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}\",Hu=\"{yyyy}-{MM}-{dd}\",lv={year:\"{yyyy}\",month:\"{yyyy}-{MM}\",day:Hu,hour:Hu+\" \"+Gu.hour,minute:Hu+\" \"+Gu.minute,second:Hu+\" \"+Gu.second,millisecond:yM},wt=[\"year\",\"month\",\"day\",\"hour\",\"minute\",\"second\",\"millisecond\"],Y0=[\"year\",\"half-year\",\"quarter\",\"month\",\"week\",\"half-week\",\"day\",\"half-day\",\"quarter-day\",\"hour\",\"minute\",\"second\",\"millisecond\"];function W0(t){return!B(t)&&!G(t)?_M(t):t}function _M(t){t=t||{};var e={},r=!0;return b(wt,function(i){r&&(r=t[i]==null)}),b(wt,function(i,n){var a=t[i];e[i]={};for(var o=null,s=n;s>=0;s--){var l=wt[s],u=H(a)&&!k(a)?a[l]:a,f=void 0;k(u)?(f=u.slice(),o=f[0]||\"\"):B(u)?(o=u,f=[o]):(o==null?o=Gu[i]:gM[l].test(o)||(o=e[l][l][0]+\" \"+o),f=[o],r&&(f[1]=\"{primary|\"+o+\"}\")),e[i][l]=f}}),e}function Ii(t,e){return t+=\"\",\"0000\".substr(0,e-t.length)+t}function za(t){switch(t){case\"half-year\":case\"quarter\":return\"month\";case\"week\":case\"half-week\":return\"day\";case\"half-day\":case\"quarter-day\":return\"hour\";default:return t}}function Z0(t){return t===za(t)}function X0(t){switch(t){case\"year\":case\"month\":return\"day\";case\"millisecond\":return\"millisecond\";default:return\"second\"}}function uv(t,e,r,i){var n=Wr(t),a=n[fv(r)](),o=n[Xu(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[qu(r)](),u=n[\"get\"+(r?\"UTC\":\"\")+\"Day\"](),f=n[Ku(r)](),c=(f-1)%12+1,p=n[ju(r)](),h=n[Qu(r)](),v=n[$u(r)](),d=f>=12?\"pm\":\"am\",m=d.toUpperCase(),g=i instanceof Ye?i:H0(i||Fu)||G0(),y=g.getModel(\"time\"),_=y.get(\"month\"),x=y.get(\"monthAbbr\"),S=y.get(\"dayOfWeek\"),T=y.get(\"dayOfWeekAbbr\");return(e||\"\").replace(/{a}/g,d+\"\").replace(/{A}/g,m+\"\").replace(/{yyyy}/g,a+\"\").replace(/{yy}/g,Ii(a%100+\"\",2)).replace(/{Q}/g,s+\"\").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Ii(o,2)).replace(/{M}/g,o+\"\").replace(/{dd}/g,Ii(l,2)).replace(/{d}/g,l+\"\").replace(/{eeee}/g,S[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+\"\").replace(/{HH}/g,Ii(f,2)).replace(/{H}/g,f+\"\").replace(/{hh}/g,Ii(c+\"\",2)).replace(/{h}/g,c+\"\").replace(/{mm}/g,Ii(p,2)).replace(/{m}/g,p+\"\").replace(/{ss}/g,Ii(h,2)).replace(/{s}/g,h+\"\").replace(/{SSS}/g,Ii(v,3)).replace(/{S}/g,v+\"\")}function q0(t,e,r,i,n){var a=null;if(B(r))a=r;else if(G(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Ie();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||\"\"}else{var f=kn(t.value,n);a=r[f][f][0]}}return uv(new Date(t.value),a,n,i)}function kn(t,e){var r=Wr(t),i=r[Xu(e)]()+1,n=r[qu(e)](),a=r[Ku(e)](),o=r[ju(e)](),s=r[Qu(e)](),l=r[$u(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&n===1,v=h&&i===1;return v?\"year\":h?\"month\":p?\"day\":c?\"hour\":f?\"minute\":u?\"second\":\"millisecond\"}function Zu(t,e,r){switch(e){case\"year\":t[cv(r)](0);case\"month\":t[pv(r)](1);case\"day\":t[hv(r)](0);case\"hour\":t[vv(r)](0);case\"minute\":t[dv(r)](0);case\"second\":t[mv(r)](0)}return t}function fv(t){return t?\"getUTCFullYear\":\"getFullYear\"}function Xu(t){return t?\"getUTCMonth\":\"getMonth\"}function qu(t){return t?\"getUTCDate\":\"getDate\"}function Ku(t){return t?\"getUTCHours\":\"getHours\"}function ju(t){return t?\"getUTCMinutes\":\"getMinutes\"}function Qu(t){return t?\"getUTCSeconds\":\"getSeconds\"}function $u(t){return t?\"getUTCMilliseconds\":\"getMilliseconds\"}function K0(t){return t?\"setUTCFullYear\":\"setFullYear\"}function cv(t){return t?\"setUTCMonth\":\"setMonth\"}function pv(t){return t?\"setUTCDate\":\"setDate\"}function hv(t){return t?\"setUTCHours\":\"setHours\"}function vv(t){return t?\"setUTCMinutes\":\"setMinutes\"}function dv(t){return t?\"setUTCSeconds\":\"setSeconds\"}function mv(t){return t?\"setUTCMilliseconds\":\"setMilliseconds\"}function Q0(t){if(!zp(t))return B(t)?t:\"-\";var e=(t+\"\").split(\".\");return e[0].replace(/(\\d{1,3})(?=(?:\\d{3})+(?!\\d))/g,\"$1,\")+(e.length>1?\".\"+e[1]:\"\")}var Ju=ia;var j0=[\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\"],gv=function(t,e){return\"{\"+t+(e??\"\")+\"}\"};function $0(t,e,r){k(e)||(e=[e]);var i=e.length;if(!i)return\"\";for(var n=e[0].$vars||[],a=0;a<n.length;a++){var o=j0[a];t=t.replace(gv(o),gv(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];t=t.replace(gv(j0[l],s),r?qi(u):u)}return t}function J0(t,e){var r=B(t)?{color:t,extraCssText:e}:t||{},i=r.color,n=r.type;e=r.extraCssText;var a=r.renderMode||\"html\";if(!i)return\"\";if(a===\"html\")return n===\"subItem\"?'<span style=\"display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+qi(i)+\";\"+(e||\"\")+'\"></span>':'<span style=\"display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+qi(i)+\";\"+(e||\"\")+'\"></span>';var o=r.markerId||\"markerX\";return{renderMode:a,content:\"{\"+o+\"|}  \",style:n===\"subItem\"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function fs(t,e){return e=e||\"transparent\",B(t)?t:H(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var ef={},yv={},xM=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(ef,!0),this._normalMasterList=i(yv,!1);function i(n,a){var o=[];return b(n,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){b(this._normalMasterList,function(i){i.update&&i.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e===\"matrix\"||e===\"calendar\"){ef[e]=r;return}yv[e]=r},t.get=function(e){return yv[e]||ef[e]},t})();function SM(t){return!!ef[t]}var TM=1,tx=2;var bM=U();function rf(t){var e=t.getShallow(\"coord\",!0),r=TM;if(e==null){var i=bM.get(t.type);i&&i.getCoord2&&(r=tx,e=i.getCoord2(t))}return{coord:e,from:r}}var Ua=0,tf=1,wM=2;function CM(t,e){var r=t.getShallow(\"coordinateSystem\"),i=t.getShallow(\"coordinateSystemUsage\",!0),n=i!=null,a=Ua;if(r){var o=t.mainType===\"series\";i==null&&(i=o?\"data\":\"box\"),i===\"data\"?(a=tf,o||(a=Ua)):i===\"box\"&&(a=wM,!o&&!SM(r)&&(a=Ua))}return{coordSysType:r,kind:a}}function rx(t){var e=t.targetModel,r=t.coordSysType,i=t.coordSysProvider,n=t.isDefaultDataCoordSys,a=t.allowNotFound,o=CM(e,!0),s=o.kind,l=o.coordSysType;if(n&&s!==tf&&(s=tf,l=r),s===Ua||l!==r)return Ua;var u=i(r,e);return u?(s===tf?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):Ua}var cs=xM;var of=b,EM=[\"left\",\"right\",\"top\",\"bottom\",\"width\",\"height\"],nf=[[\"width\",\"left\",\"right\"],[\"height\",\"top\",\"bottom\"]];function ix(t,e,r,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),h,v;if(t===\"horizontal\"){var d=f.width+(p?-p.x+f.x:0);h=a+d,h>i||l.newline?(a=0,h=d,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);v=o+m,v>n||l.newline?(a+=s+r,o=0,v=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t===\"horizontal\"?a=h+r:o=v+r)})}var yF=Me(ix,\"vertical\"),_F=Me(ix,\"horizontal\");function nx(t,e){return{left:t.getShallow(\"left\",e),top:t.getShallow(\"top\",e),right:t.getShallow(\"right\",e),bottom:t.getShallow(\"bottom\",e),width:t.getShallow(\"width\",e),height:t.getShallow(\"height\",e)}}function ps(t,e,r){r=Ju(r||0);var i=e.width,n=e.height,a=Lt(t.left,i),o=Lt(t.top,n),s=Lt(t.right,i),l=Lt(t.bottom,n),u=Lt(t.width,i),f=Lt(t.height,n),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=i-s-p-a),isNaN(f)&&(f=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=i-s-u-p),isNaN(o)&&(o=n-l-f-c),t.left||t.right){case\"center\":a=i/2-u/2-r[3];break;case\"right\":a=i-u-p;break}switch(t.top||t.bottom){case\"middle\":case\"center\":o=n/2-f/2-r[0];break;case\"bottom\":o=n-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=i-p-a-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var v=new ee((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return v.margin=r,v}var af={rect:1,point:2};function sf(t,e,r){var i,n,a,o=t.boxCoordinateSystem,s;if(o){var l=rf(t),u=l.coord,f=l.from;if(o.dataToLayout){a=af.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=af.point,s=f,n=o.dataToPoint(u))}return a==null&&(a=af.rect),a===af.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function Li(t){var e=t.layoutMode||t.constructor.layoutMode;return H(e)?e:e?{type:e}:null}function hr(t,e,r){var i=r&&r.ignoreSize;!k(i)&&(i=[i,i]);var n=o(nf[0],0),a=o(nf[1],1);l(nf[0],t,n),l(nf[1],t,a);function o(u,f){var c={},p=0,h={},v=0,d=2;if(of(u,function(y){h[y]=t[y]}),of(u,function(y){Ue(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&v++}),i[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(v===d||!p)return h;if(p>=d)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!Ue(c,g)&&Ue(t,g)){c[g]=t[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!==\"auto\"}function l(u,f,c){of(u,function(p){f[p]=c[p]})}}function Lr(t){return AM({},t)}function AM(t,e){return e&&t&&of(EM,function(r){Ue(e,r)&&(t[r]=e[r])}),t}var DM=q(),Fa=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,r,i,n)||this;return a.uid=Oi(\"ec_cpt_model\"),a}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=Li(this),a=n?Lr(r):{},o=i.getTheme();pe(r,o.get(this.mainType)),pe(r,this.getDefaultOption()),n&&hr(r,a,n)},e.prototype.mergeOption=function(r,i){pe(this.option,r,!0);var n=Li(this);n&&hr(this.option,r,n)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!Ry(r))return r.defaultOption;var i=DM(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=pe(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(r,i){var n=r+\"Index\",a=r+\"Id\";return Ta(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return nx(this,!1)},e.prototype.getZLevelKey=function(){return\"\"},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type=\"component\",r.id=\"\",r.name=\"\",r.mainType=\"\",r.subType=\"\",r.componentIndex=0})(),e})(Ye);iu(Fa,Ye);bi(Fa);k0(Fa);B0(Fa,MM);function MM(t){var e=[];return b(Fa.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=R(e,function(r){return Tt(r).main}),t!==\"dataset\"&&se(e,\"dataset\")<=0&&e.unshift(\"dataset\"),e}var Se=Fa;var Bn={color:{},darkColor:{},size:{}},Be=Bn.color={theme:[\"#5070dd\",\"#b6d634\",\"#505372\",\"#ff994d\",\"#0ca8df\",\"#ffd10a\",\"#fb628b\",\"#785db0\",\"#3fbe95\"],neutral00:\"#fff\",neutral05:\"#f4f7fd\",neutral10:\"#e8ebf0\",neutral15:\"#dbdee4\",neutral20:\"#cfd2d7\",neutral25:\"#c3c5cb\",neutral30:\"#b7b9be\",neutral35:\"#aaacb2\",neutral40:\"#9ea0a5\",neutral45:\"#929399\",neutral50:\"#86878c\",neutral55:\"#797b7f\",neutral60:\"#6d6e73\",neutral65:\"#616266\",neutral70:\"#54555a\",neutral75:\"#48494d\",neutral80:\"#3c3c41\",neutral85:\"#303034\",neutral90:\"#232328\",neutral95:\"#17171b\",neutral99:\"#000\",accent05:\"#eff1f9\",accent10:\"#e0e4f2\",accent15:\"#d0d6ec\",accent20:\"#c0c9e6\",accent25:\"#b1bbdf\",accent30:\"#a1aed9\",accent35:\"#91a0d3\",accent40:\"#8292cc\",accent45:\"#7285c6\",accent50:\"#6578ba\",accent55:\"#5c6da9\",accent60:\"#536298\",accent65:\"#4a5787\",accent70:\"#404c76\",accent75:\"#374165\",accent80:\"#2e3654\",accent85:\"#252b43\",accent90:\"#1b2032\",accent95:\"#121521\",transparent:\"rgba(0,0,0,0)\",highlight:\"rgba(255,231,130,0.8)\"};P(Be,{primary:Be.neutral80,secondary:Be.neutral70,tertiary:Be.neutral60,quaternary:Be.neutral50,disabled:Be.neutral20,border:Be.neutral30,borderTint:Be.neutral20,borderShade:Be.neutral40,background:Be.neutral05,backgroundTint:\"rgba(234,237,245,0.5)\",backgroundTransparent:\"rgba(255,255,255,0)\",backgroundShade:Be.neutral10,shadow:\"rgba(0,0,0,0.2)\",shadowTint:\"rgba(129,130,136,0.2)\",axisLine:Be.neutral70,axisLineTint:Be.neutral40,axisTick:Be.neutral70,axisTickMinor:Be.neutral60,axisLabel:Be.neutral70,axisSplitLine:Be.neutral15,axisMinorSplitLine:Be.neutral05});for(Pi in Be)Be.hasOwnProperty(Pi)&&(_v=Be[Pi],Pi===\"theme\"?Bn.darkColor.theme=Be.theme.slice():Pi===\"highlight\"?Bn.darkColor.highlight=\"rgba(255,231,130,0.4)\":Pi.indexOf(\"accent\")===0?Bn.darkColor[Pi]=Eo(_v,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):Bn.darkColor[Pi]=Eo(_v,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var _v,Pi;Bn.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var re=Bn;var ox=\"\";typeof navigator<\"u\"&&(ox=navigator.platform||\"\");var Va=\"rgba(0, 0, 0, 0.2)\",sx=re.color.theme[0],OM=Eo(sx,null,null,.9),lf={darkMode:\"auto\",colorBy:\"series\",color:re.color.theme,gradientColor:[OM,sx],aria:{decal:{decals:[{color:Va,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Va,symbol:\"circle\",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Va,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Va,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Va,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Va,symbol:\"triangle\",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ox.match(/^Win/)?\"Microsoft YaHei\":\"sans-serif\",fontSize:12,fontStyle:\"normal\",fontWeight:\"normal\"},blendMode:null,stateAnimation:{duration:300,easing:\"cubicOut\"},animation:\"auto\",animationDuration:1e3,animationDurationUpdate:500,animationEasing:\"cubicInOut\",animationEasingUpdate:\"cubicInOut\",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var gt={Must:1,Might:2,Not:3},lx=q();function ux(t){lx(t).datasetMap=U()}function fx(t,e,r){var i={},n=xv(e);if(!n||!t)return i;var a=[],o=[],s=e.ecModel,l=lx(s).datasetMap,u=n.uid+\"_\"+r.seriesLayoutBy,f,c;t=t.slice(),b(t,function(d,m){var g=H(d)?d:t[m]={name:d};g.type===\"ordinal\"&&f==null&&(f=m,c=v(g)),i[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});b(t,function(d,m){var g=d.name,y=v(d);if(f==null){var _=p.valueWayDim;h(i[g],_,y),h(o,_,y),p.valueWayDim+=y}else if(f===m)h(i[g],0,y),h(a,0,y);else{var _=p.categoryWayDim;h(i[g],_,y),h(o,_,y),p.categoryWayDim+=y}});function h(d,m,g){for(var y=0;y<g;y++)d.push(m+y)}function v(d){var m=d.dimsDef;return m?m.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function xv(t){var e=t.get(\"data\",!0);if(!e)return Ta(t.ecModel,\"dataset\",{index:t.get(\"datasetIndex\",!0),id:t.get(\"datasetId\",!0)},ke).models[0]}function cx(t){return!t.get(\"transform\",!0)&&!t.get(\"fromTransformResult\",!0)?[]:Ta(t.ecModel,\"dataset\",{index:t.get(\"fromDatasetIndex\",!0),id:t.get(\"fromDatasetId\",!0)},ke).models}function uf(t,e){return IM(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function IM(t,e,r,i,n,a){var o,s=5;if(Ne(t))return gt.Not;var l,u;if(i){var f=i[a];H(f)?(l=f.name,u=f.type):B(f)&&(l=f)}if(u!=null)return u===\"ordinal\"?gt.Must:gt.Not;if(e===Ge){var c=t;if(r===Or){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=x(p[n+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[n+h];if(v&&(o=x(v[a]))!=null)return o}}else if(e===mt){var d=t;if(!l)return gt.Not;for(var h=0;h<d.length&&h<s;h++){var m=d[h];if(m&&(o=x(m[l]))!=null)return o}}else if(e===Nt){var g=t;if(!l)return gt.Not;var p=g[l];if(!p||Ne(p))return gt.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===Ke)for(var y=t,h=0;h<y.length&&h<s;h++){var m=y[h],_=Xr(m);if(!k(_))return gt.Not;if((o=x(_[a]))!=null)return o}function x(S){var T=B(S);if(S!=null&&isFinite(Number(S))&&S!==\"\")return T?gt.Might:gt.Not;if(T&&S!==\"-\")return gt.Must}return gt.Not}var LM=U();function px(t,e,r){var i=LM.get(e);if(!i)return r;var n=i(t);if(!n)return r;if(0)for(var a;a<n.length;a++);return r.concat(n)}var hx=q(),zF=q(),hs=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var n=De(this.get(\"color\",!0)),a=this.get(\"colorLayer\",!0);return NM(this,hx,n,a,e,r,i)},t.prototype.clearColorPalette=function(){RM(this,hx)},t})();function PM(t,e){for(var r=t.length,i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function NM(t,e,r,i,n,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?r:PM(i,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function RM(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var ff,vs,vx,dx=\"\\0_ec_inner\",kM=1;var _x=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new Ye(a),this._locale=new Ye(o),this._optionManager=s},e.prototype.setOption=function(r,i,n){var a=yx(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,i){return this._resetOption(r,yx(i))},e.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r===\"recreate\"){var o=a.mountOption(r===\"recreate\");!this.option||r===\"recreate\"?vx(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r===\"timeline\"||r===\"media\")&&this.restoreData(),!r||r===\"recreate\"||r===\"timeline\"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r===\"recreate\"||r===\"media\"){var l=a.getMediaOption(this);l.length&&b(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=U(),u=i&&i.replaceMergeMainTypeMap;ux(this),b(r,function(c,p){c!=null&&(Se.hasClass(p)?p&&(s.push(p),l.set(p,!0)):n[p]=n[p]==null?Q(c):pe(n[p],c,!0))}),u&&u.each(function(c,p){Se.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),Se.topologicalTravel(s,Se.getAllClassMainTypes(),f,this);function f(c){var p=px(this,c,De(r[c])),h=a.get(c),v=h?u&&u.get(c)?\"replaceMerge\":\"normalMerge\":\"replaceAll\",d=Ty(h,p,v);wy(d,c,Se),n[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_,x;b(d,function(S,T){var w=S.existing,A=S.newOption;if(!A)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=c===\"series\",C=Se.getClass(c,S.keyInfo.subType,!E);if(!C){if(0)var D,O;return}if(c===\"tooltip\"){if(_)return;_=!0}if(w&&w.constructor===C)w.name=S.keyInfo.name,w.mergeOption(A,this),w.optionUpdated(A,!1);else{var M=P({componentIndex:T},S.keyInfo);w=new C(A,this,this,M),P(w,M),S.brandNew&&(w.__requireNewView=!0),w.init(A,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),g.push(w),y++):(m.push(void 0),g.push(void 0))},this),n[c]=m,a.set(c,g),o.set(c,y),c===\"series\"&&ff(this)}this._seriesIndices||ff(this)},e.prototype.getOption=function(){var r=Q(this.option);return b(r,function(i,n){if(Se.hasClass(n)){for(var a=De(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Sa(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[dx],r},e.prototype.setTheme=function(r){this._theme=new Ye(r),this._resetOption(\"recreate\",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],b(De(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=mx(\"id\",a,s):o!=null?l=mx(\"name\",o,s):l=Pe(s,function(u){return!!u}),gx(l,r)},e.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):Pe(this._componentsMap.get(n),function(u){return!!u});return l(gx(o,r));function s(u){var f=n+\"Index\",c=n+\"Id\",p=n+\"Name\";return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:n,index:u[f],id:u[c],name:u[p]}:null}function l(u){return r.filter?Pe(u,r.filter):u}},e.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(G(r)){var o=i,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,p,v,v.componentIndex)}})}else for(var l=B(r)?a.get(r):H(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var i=Pt(r,null);return Pe(this._componentsMap.get(\"series\"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get(\"series\")[r]},e.prototype.getSeriesByType=function(r){return Pe(this._componentsMap.get(\"series\"),function(i){return!!i&&i.subType===r})},e.prototype.getSeries=function(){return Pe(this._componentsMap.get(\"series\"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get(\"series\")},e.prototype.eachSeries=function(r,i){vs(this),b(this._seriesIndices,function(n){var a=this._componentsMap.get(\"series\")[n];r.call(i,a,n)},this)},e.prototype.eachRawSeries=function(r,i){b(this._componentsMap.get(\"series\"),function(n){n&&r.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(r,i,n){vs(this),b(this._seriesIndices,function(a){var o=this._componentsMap.get(\"series\")[a];o.subType===r&&i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,i,n){return b(this.getSeriesByType(r),i,n)},e.prototype.isSeriesFiltered=function(r){return vs(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){vs(this);var n=[];b(this._seriesIndices,function(a){var o=this._componentsMap.get(\"series\")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=U(n)},e.prototype.restoreData=function(r){ff(this);var i=this._componentsMap,n=[];i.each(function(a,o){Se.hasClass(o)&&n.push(o)}),Se.topologicalTravel(n,Se.getAllClassMainTypes(),function(a){b(i.get(a),function(o){o&&(a!==\"series\"||!BM(o,r))&&o.restoreData()})})},e.internalField=(function(){ff=function(r){var i=r._seriesIndices=[];b(r._componentsMap.get(\"series\"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=U(i)},vs=function(r){},vx=function(r,i){r.option={},r.option[dx]=kM,r._componentsMap=U({series:[]}),r._componentsCount=U();var n=i.aria;H(n)&&n.enabled==null&&(n.enabled=!0),zM(i,r._theme.option),pe(i,lf,!1),r._mergeOption(i,null)}})(),e})(Ye);function BM(t,e){if(e){var r=e.seriesIndex,i=e.seriesId,n=e.seriesName;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||n!=null&&t.name!==n}}function zM(t,e){var r=t.color&&!t.colorLayer;b(e,function(i,n){n===\"colorLayer\"&&r||n===\"color\"&&t.color||Se.hasClass(n)||(typeof i==\"object\"?t[n]=t[n]?pe(t[n],i,!1):Q(i):t[n]==null&&(t[n]=i))})}function mx(t,e,r){if(k(e)){var i=U();return b(e,function(a){if(a!=null){var o=Pt(a,null);o!=null&&i.set(a,!0)}}),Pe(r,function(a){return a&&i.get(a[t])})}else{var n=Pt(e,null);return Pe(r,function(a){return a&&n!=null&&a[t]===n})}}function gx(t,e){return e.hasOwnProperty(\"subType\")?Pe(t,function(r){return r&&r.subType===e.subType}):t}function yx(t){var e=U();return t&&b(De(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}ct(_x,hs);var cf=_x;var UM=/^(min|max)?(.+)$/,FM=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){e&&(b(De(e.series),function(o){o&&o.data&&Ne(o.data)&&na(o.data)}),b(De(e.dataset),function(o){o&&o.source&&Ne(o.source)&&na(o.source)})),e=Q(e);var n=this._optionBackup,a=VM(e,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Q(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var n=e.getComponent(\"timeline\");n&&(r=Q(i[n.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)HM(n[l].query,r,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!YM(o,this._currentMediaIndices)&&(s=R(o,function(f){return Q(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},t})();function VM(t,e,r){var i=[],n,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&k(u)&&b(u,function(h){h&&h.option&&(h.query?i.push(h):n||(n=h))}),p(a),b(l,function(h){return p(h)}),b(i,function(h){return p(h.option)});function p(h){b(e,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function HM(t,e,r){var i={width:e,height:r,aspectratio:e/r},n=!0;return b(t,function(a,o){var s=o.match(UM);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();GM(i[u],a,l)||(n=!1)}}),n}function GM(t,e,r){return r===\"min\"?t>=e:r===\"max\"?t<=e:t===e}function YM(t,e){return t.join(\",\")===e.join(\",\")}var xx=FM;var vr=b,ms=H,Sx=[\"areaStyle\",\"lineStyle\",\"nodeStyle\",\"linkStyle\",\"chordStyle\",\"label\",\"labelLine\"];function Sv(t){var e=t&&t.itemStyle;if(e)for(var r=0,i=Sx.length;r<i;r++){var n=Sx[r],a=e.normal,o=e.emphasis;a&&a[n]&&(t[n]=t[n]||{},t[n].normal?pe(t[n].normal,a[n]):t[n].normal=a[n],a[n]=null),o&&o[n]&&(t[n]=t[n]||{},t[n].emphasis?pe(t[n].emphasis,o[n]):t[n].emphasis=o[n],o[n]=null)}}function ft(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,n=t[e].emphasis;i&&(r?(t[e].normal=t[e].emphasis=null,te(t[e],i)):t[e]=i),n&&(t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus&&(t.emphasis.focus=n.focus),n.blurScope&&(t.emphasis.blurScope=n.blurScope))}}function ds(t){ft(t,\"itemStyle\"),ft(t,\"lineStyle\"),ft(t,\"areaStyle\"),ft(t,\"label\"),ft(t,\"labelLine\"),ft(t,\"upperLabel\"),ft(t,\"edgeLabel\")}function Ve(t,e){var r=ms(t)&&t[e],i=ms(r)&&r.textStyle;if(i)for(var n=0,a=Hp.length;n<a;n++){var o=Hp[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function Qt(t){t&&(ds(t),Ve(t,\"label\"),t.emphasis&&Ve(t.emphasis,\"label\"))}function WM(t){if(ms(t)){Sv(t),ds(t),Ve(t,\"label\"),Ve(t,\"upperLabel\"),Ve(t,\"edgeLabel\"),t.emphasis&&(Ve(t.emphasis,\"label\"),Ve(t.emphasis,\"upperLabel\"),Ve(t.emphasis,\"edgeLabel\"));var e=t.markPoint;e&&(Sv(e),Qt(e));var r=t.markLine;r&&(Sv(r),Qt(r));var i=t.markArea;i&&Qt(i);var n=t.data;if(t.type===\"graph\"){n=n||t.nodes;var a=t.links||t.edges;if(a&&!Ne(a))for(var o=0;o<a.length;o++)Qt(a[o]);b(t.categories,function(u){ds(u)})}if(n&&!Ne(n))for(var o=0;o<n.length;o++)Qt(n[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Qt(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)k(l[o])?(Qt(l[o][0]),Qt(l[o][1])):Qt(l[o]);t.type===\"gauge\"?(Ve(t,\"axisLabel\"),Ve(t,\"title\"),Ve(t,\"detail\")):t.type===\"treemap\"?(ft(t.breadcrumb,\"itemStyle\"),b(t.levels,function(u){ds(u)})):t.type===\"tree\"&&ds(t.leaves)}}function ti(t){return k(t)?t:t?[t]:[]}function Tx(t){return(k(t)?t[0]:t)||{}}function Tv(t,e){vr(ti(t.series),function(i){ms(i)&&WM(i)});var r=[\"xAxis\",\"yAxis\",\"radiusAxis\",\"angleAxis\",\"singleAxis\",\"parallelAxis\",\"radar\"];e&&r.push(\"valueAxis\",\"categoryAxis\",\"logAxis\",\"timeAxis\"),vr(r,function(i){vr(ti(t[i]),function(n){n&&(Ve(n,\"axisLabel\"),Ve(n.axisPointer,\"label\"))})}),vr(ti(t.parallel),function(i){var n=i&&i.parallelAxisDefault;Ve(n,\"axisLabel\"),Ve(n&&n.axisPointer,\"label\")}),vr(ti(t.calendar),function(i){ft(i,\"itemStyle\"),Ve(i,\"dayLabel\"),Ve(i,\"monthLabel\"),Ve(i,\"yearLabel\")}),vr(ti(t.radar),function(i){Ve(i,\"name\"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),vr(ti(t.geo),function(i){ms(i)&&(Qt(i),vr(ti(i.regions),function(n){Qt(n)}))}),vr(ti(t.timeline),function(i){Qt(i),ft(i,\"label\"),ft(i,\"itemStyle\"),ft(i,\"controlStyle\",!0);var n=i.data;k(n)&&b(n,function(a){H(a)&&(ft(a,\"label\"),ft(a,\"itemStyle\"))})}),vr(ti(t.toolbox),function(i){ft(i,\"iconStyle\"),vr(i.feature,function(n){ft(n,\"iconStyle\")})}),Ve(Tx(t.axisPointer),\"label\"),Ve(Tx(t.tooltip).axisPointer,\"label\")}function ZM(t,e){for(var r=e.split(\",\"),i=t,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function XM(t,e,r,i){for(var n=e.split(\",\"),a=t,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];(i||a[n[s]]==null)&&(a[n[s]]=r)}function bx(t){t&&b(qM,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var qM=[[\"x\",\"left\"],[\"y\",\"top\"],[\"x2\",\"right\"],[\"y2\",\"bottom\"]],KM=[\"grid\",\"geo\",\"parallel\",\"legend\",\"toolbox\",\"title\",\"visualMap\",\"dataZoom\",\"timeline\"],bv=[[\"borderRadius\",\"barBorderRadius\"],[\"borderColor\",\"barBorderColor\"],[\"borderWidth\",\"barBorderWidth\"]];function gs(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<bv.length;r++){var i=bv[r][1],n=bv[r][0];e[i]!=null&&(e[n]=e[i])}}function Cx(t){t&&t.alignTo===\"edge\"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function Ex(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function jM(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus=\"adjacency\"))}function Ax(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&Ax(t[r].children,e)}function pf(t,e){Tv(t,e),t.series=De(t.series),b(t.series,function(r){if(H(r)){var i=r.type;if(i===\"line\")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i===\"pie\"||i===\"gauge\"){r.clockWise!=null&&(r.clockwise=r.clockWise),Cx(r.label);var n=r.data;if(n&&!Ne(n))for(var a=0;a<n.length;a++)Cx(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i===\"gauge\"){var o=ZM(r,\"pointer.color\");o!=null&&XM(r,\"itemStyle.color\",o)}else if(i===\"bar\"){gs(r),gs(r.backgroundStyle),gs(r.emphasis);var n=r.data;if(n&&!Ne(n))for(var a=0;a<n.length;a++)typeof n[a]==\"object\"&&(gs(n[a]),gs(n[a]&&n[a].emphasis))}else if(i===\"sunburst\"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),Ex(r),Ax(r.data,Ex)}else i===\"graph\"||i===\"sankey\"?jM(r):i===\"map\"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&te(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),bx(r)}}),t.dataRange&&(t.visualMap=t.dataRange),b(KM,function(r){var i=t[r];i&&(k(i)||(i=[i]),b(i,function(n){bx(n)}))})}var Dx=ru(QM);function QM(t){var e=U();t.eachSeries(function(r){var i=r.get(\"stack\");if(i){var n=e.get(i)||e.set(i,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo(\"stackResultDimension\"),stackedOverDimension:a.getCalculationInfo(\"stackedOverDimension\"),stackedDimension:a.getCalculationInfo(\"stackedDimension\"),stackedByDimension:a.getCalculationInfo(\"stackedByDimension\"),isStackedByIndex:a.getCalculationInfo(\"isStackedByIndex\"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get(\"stackOrder\")||\"seriesAsc\";n===\"seriesDesc\"&&r.reverse(),b(r,function(a,o){a.data.setCalculationInfo(\"stackedOnSeries\",o>0?r[o-1].seriesModel:null)}),$M(r)}})}function $M(t){b(t,function(e,r){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get(\"stackStrategy\")||\"samesign\";o.modify(a,function(u,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return n;var h,v;s?v=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var d=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(l===\"all\"||l===\"positive\"&&y>0||l===\"negative\"&&y<0||l===\"samesign\"&&p>=0&&y>0||l===\"samesign\"&&p<=0&&y<0){p=Yr(p,y),d=y;break}}}return i[0]=p,i[1]=d,i})})}var hf=(function(){function t(e){this.data=e.data||(e.sourceFormat===Nt?{}:[]),this.sourceFormat=e.sourceFormat||mh,this.seriesLayoutBy=e.seriesLayoutBy||kt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&uf(this,i)===gt.Must&&(n.type=\"ordinal\")}}return t})();function Ha(t){return t instanceof hf}function ys(t,e,r){r=r||wv(t);var i=e.seriesLayoutBy,n=JM(t,r,i,e.sourceHeader,e.dimensions),a=new hf({data:t,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:Q(e)});return a}function Ga(t){return new hf({data:t,sourceFormat:Ne(t)?Rt:Ke})}function Ix(t){return new hf({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Q(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function wv(t){var e=mh;if(Ne(t))e=Rt;else if(k(t)){t.length===0&&(e=Ge);for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n!=null){if(k(n)||Ne(n)){e=Ge;break}else if(H(n)){e=mt;break}}}}else if(H(t)){for(var a in t)if(Ue(t,a)&&He(t[a])){e=Nt;break}}return e}function JM(t,e,r,i,n){var a,o;if(!t)return{dimensionsDefine:Mx(n),startIndex:o,dimensionsDetectedCount:a};if(e===Ge){var s=t;i===\"auto\"||i==null?Ox(function(u){u!=null&&u!==\"-\"&&(B(u)?o==null&&(o=1):o=0)},r,s,10):o=fe(i)?i:i?1:0,!n&&o===1&&(n=[],Ox(function(u,f){n[f]=u!=null?u+\"\":\"\"},r,s,1/0)),a=n?n.length:r===Or?s.length:s[0]?s[0].length:null}else if(e===mt)n||(n=eO(t));else if(e===Nt)n||(n=[],b(t,function(u,f){n.push(f)}));else if(e===Ke){var l=Xr(t[0]);a=k(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Mx(n),dimensionsDetectedCount:a}}function eO(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return K(r)}function Mx(t){if(t){var e=U();return R(t,function(r,i){r=H(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+=\"\",n.displayName==null&&(n.displayName=n.name);var a=e.get(n.name);return a?n.name+=\"-\"+a.count++:e.set(n.name,{count:1}),n})}}function Ox(t,e,r,i){if(e===Or)for(var n=0;n<r.length&&n<i;n++)t(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)t(a[n],n)}function vf(t){var e=t.sourceFormat;return e===mt||e===Nt}var zn,Un,Fn,Vn,Lx,Px,mf=(function(){function t(e,r){var i=Ha(e)?e:Ga(e);this._source=i;var n=this._data=i.data,a=i.sourceFormat,o=i.seriesLayoutBy;if(a===Rt&&(this._offset=0,this._dimSize=r,this._data=n),0)var s;Px(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;Px=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,h=Lx[Mv(u,f)];if(P(o,h),u===Rt)o.getItem=r,o.count=n,o.fillStorage=i;else{var v=Ev(u,f);o.getItem=$(v,null,s,c,p);var d=Av(u,f);o.count=$(d,null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},i=function(o,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=u[p],v=h[0]==null?1/0:h[0],d=h[1]==null?-1/0:h[1],m=s-o,g=l[p],y=0;y<m;y++){var _=f[y*c+p];g[o+y]=_,_<v&&(v=_),_>d&&(d=_)}h[0]=v,h[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};Lx=(e={},e[Ge+\"_\"+kt]={pure:!0,appendData:a},e[Ge+\"_\"+Or]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: \"row\".')}},e[mt]={pure:!0,appendData:a},e[Nt]={pure:!0,appendData:function(o){var s=this._data;b(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Ke]={appendData:a},e[Rt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})();var df=function(t){k(t)||Fp(\"series.data or dataset.source must be an array.\")},TV=(zn={},zn[Ge+\"_\"+kt]=df,zn[Ge+\"_\"+Or]=df,zn[mt]=df,zn[Nt]=function(t,e){for(var r=0;r<e.length;r++){var i=e[r].name;i==null&&Fp(\"dimension name must not be null/undefined.\")}},zn[Ke]=df,zn),Nx=function(t,e,r,i){return t[i]},tO=(Un={},Un[Ge+\"_\"+kt]=function(t,e,r,i){return t[i+e]},Un[Ge+\"_\"+Or]=function(t,e,r,i,n){i+=e;for(var a=n||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},Un[mt]=Nx,Un[Nt]=function(t,e,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[i]:null}return a},Un[Ke]=Nx,Un);function Ev(t,e){var r=tO[Mv(t,e)];return r}var Rx=function(t,e,r){return t.length},rO=(Fn={},Fn[Ge+\"_\"+kt]=function(t,e,r){return Math.max(0,t.length-e)},Fn[Ge+\"_\"+Or]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},Fn[mt]=Rx,Fn[Nt]=function(t,e,r){var i=r[0].name,n=i!=null?t[i]:null;return n?n.length:0},Fn[Ke]=Rx,Fn);function Av(t,e){var r=rO[Mv(t,e)];return r}var Cv=function(t,e,r){return t[e]},iO=(Vn={},Vn[Ge]=Cv,Vn[mt]=function(t,e,r){return t[r]},Vn[Nt]=Cv,Vn[Ke]=function(t,e,r){var i=Xr(t);return i instanceof Array?i[e]:i},Vn[Rt]=Cv,Vn);function Dv(t){var e=iO[t];return e}function Mv(t,e){return t===Ge?t+\"_\"+e:t}function ri(t,e,r){if(t){var i=t.getRawDataItem(e);if(i!=null){var n=t.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=n.getDimensionProperty(o);return Dv(a)(i,o,s)}else{var l=i;return a===Ke&&(l=Xr(i)),l}}}}var nO=/\\{@(.+?)\\}/g,kx=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var i=this.getData(r),n=this.getRawValue(e,r),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,\"style\"),u=l&&l[i.getItemVisual(e,\"drawType\")||\"fill\"],f=l&&l.stroke,c=this.mainType,p=c===\"series\",h=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:n,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:[\"seriesName\",\"name\",\"value\"]}},t.prototype.getFormattedLabel=function(e,r,i,n,a,o){r=r||\"normal\";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),n!=null&&k(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(e);a=u.get(r===\"normal\"?[\"label\",\"formatter\"]:[r,\"label\",\"formatter\"])}if(G(a))return l.status=r,l.dimensionIndex=n,a(l);if(B(a)){var f=$0(a,l);return f.replace(nO,function(c,p){var h=p.length,v=p;v.charAt(0)===\"[\"&&v.charAt(h-1)===\"]\"&&(v=+v.slice(1,h-1));var d=ri(s,e,v);if(o&&k(o.interpolatedValue)){var m=s.getDimensionIndex(v);m>=0&&(d=o.interpolatedValue[m])}return d!=null?d+\"\":\"\"})}},t.prototype.getRawValue=function(e,r){return ri(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){},t})();function Ni(t){return new aO(t)}var aO=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,i=e&&e.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a=\"reset\");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a===\"reset\")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||h<v)){var d=this._progress;if(k(d))for(var m=0;m<d.length;m++)this._doProgress(d[m],h,v,l,u);else this._doProgress(d,h,v,l,u)}this._dueIndex=v;var g=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,i,n,a){Bx.reset(r,i,n,a),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:Bx.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),k(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})();var Bx=(function(){var t,e,r,i,n,a={reset:function(l,u,f,c){e=l,t=u,r=f,i=c,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%n*r+Math.ceil(e/n),u=e>=t?null:l<i?l:e;return e++,u}})();function Ya(t,e){var r=e&&e.type;return r===\"ordinal\"?t:(r===\"time\"&&!fe(t)&&t!=null&&t!==\"-\"&&(t=+Wr(t)),t==null||t===\"\"?NaN:Number(t))}var PV=U({number:function(t){return parseFloat(t)},time:function(t){return+Wr(t)},trim:function(t){return B(t)?St(t):t}});var oO={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},NV=(function(){function t(e,r){if(!fe(r)){var i=\"\";ot(i)}this._opFn=oO[e],this._rvalFloat=Zr(r)}return t.prototype.evaluate=function(e){return fe(e)?this._opFn(e,this._rvalFloat):this._opFn(Zr(e),this._rvalFloat)},t})(),RV=(function(){function t(e,r){var i=e===\"desc\";this._resultLT=i?1:-1,r==null&&(r=i?\"min\":\"max\"),this._incomparable=r===\"min\"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var i=fe(e)?e:Zr(e),n=fe(r)?r:Zr(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=B(e),l=B(r);s&&(i=l?e:0),l&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t})();var kV=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=Zr(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;i!==this._rvalTypeof&&(i===\"number\"||this._rvalTypeof===\"number\")&&(r=Zr(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function zx(t){var e=\"\",r=-1/0,i=-1/0,n=1/0,a=1/0;return t&&(t.g!=null&&(e+=\"G\"+t.g,r=t.g),t.ge!=null&&(e+=\"GE\"+t.ge,i=t.ge),t.l!=null&&(e+=\"L\"+t.l,n=t.l),t.le!=null&&(e+=\"LE\"+t.le,a=t.le)),{key:e,g:r,ge:i,l:n,le:a}}function Ux(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var sO=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error(\"not supported\")},t.prototype.getRawDataItem=function(e){throw new Error(\"not supported\")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Ya(e,r)},t})();function lO(t,e){var r=new sO,i=t.data,n=r.sourceFormat=t.sourceFormat,a=t.startIndex,o=\"\";t.seriesLayoutBy!==kt&&ot(o);var s=[],l={},u=t.dimensionsDefine;if(u)b(u,function(d,m){var g=d.name,y={index:m,name:g,displayName:d.displayName};if(s.push(y),g!=null){var _=\"\";Ue(l,g)&&ot(_),l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=Ev(n,kt);e.__isBuiltIn&&(r.getRawDataItem=function(d){return c(i,a,s,d)},r.getRawData=$(uO,null,t)),r.cloneRawData=$(fO,null,t);var p=Av(n,kt);r.count=$(p,null,i,a,s);var h=Dv(n);r.retrieveValue=function(d,m){var g=c(i,a,s,d);return v(g,m)};var v=r.retrieveValueFromItem=function(d,m){if(d!=null){var g=s[m];if(g)return h(d,m,g.name)}};return r.getDimensionInfo=$(cO,null,s,l),r.cloneAllDimensionInfo=$(pO,null,s),r}function uO(t){var e=t.sourceFormat;if(!Ov(e)){var r=\"\";ot(r)}return t.data}function fO(t){var e=t.sourceFormat,r=t.data;if(!Ov(e)){var i=\"\";ot(i)}if(e===Ge){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(e===mt){for(var n=[],a=0,o=r.length;a<o;a++)n.push(P({},r[a]));return n}}function cO(t,e,r){if(r!=null){if(fe(r)||!isNaN(r)&&!Ue(e,r))return t[r];if(Ue(e,r))return e[r]}}function pO(t){return Q(t)}var Fx=U();function Vx(t){t=Q(t);var e=t.type,r=\"\";e||ot(r);var i=e.split(\":\");i.length!==2&&ot(r);var n=!1;i[0]===\"echarts\"&&(e=i[1],n=!0),t.__isBuiltIn=n,Fx.set(e,t)}function Hx(t,e,r){var i=De(t),n=i.length,a=\"\";n||ot(a);for(var o=0,s=n;o<s;o++){var l=i[o];e=hO(l,e,r,n===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function hO(t,e,r,i){var n=\"\";e.length||ot(n),H(t)||ot(n);var a=t.type,o=Fx.get(a);o||ot(n);var s=R(e,function(f){return lO(f,o)}),l=De(o.transform({upstream:s[0],upstreamList:s,config:Q(t.config)}));if(0&&t.print)var u;return R(l,function(f,c){var p=\"\";H(f)||ot(p),f.data||ot(p);var h=wv(f.data);Ov(h)||ot(p);var v,d=e[0];if(d&&c===0&&!f.dimensions){var m=d.startIndex;m&&(f.data=d.data.slice(0,m).concat(f.data)),v={seriesLayoutBy:kt,sourceHeader:m,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:kt,sourceHeader:0,dimensions:f.dimensions};return ys(f.data,v,null)})}function Ov(t){return t===Ge||t===mt}var vO=typeof Uint32Array===Tn?Array:Uint32Array,dO=typeof Uint16Array===Tn?Array:Uint16Array,Lv=typeof Int32Array===Tn?Array:Int32Array,Gx=typeof Float64Array===Tn?Array:Float64Array,Wx={float:Gx,int:Lv,ordinal:Array,number:Array,time:Gx},Iv;function Wa(t){return t>65535?vO:dO}function mO(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Yx(t,e,r,i,n){var a=Wx[r||\"float\"];if(n){var o=t[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(i)}var gO=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}return t.prototype.initData=function(e,r,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=Iv[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=vf(n);this._dimensions=R(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(e,a),this._chunks[a]=new Wx[r||\"float\"](this._rawCount),this._rawExtent[a]=rt(),a},t.prototype.collectOrdinalMeta=function(e,r){var i=this._chunks[e],n=this._dimensions[e],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[e]=rt());for(var l=a[e],u=o;u<s;u++){var f=i[u]=r.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type=\"ordinal\"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],i=r.ordinalMeta;return i},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,i=this.count();r.appendData(e);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(e,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=n[u];Yx(i,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var h=p-s,v=0;v<a;v++){var f=n[v],d=Iv.arrayRows.call(this,e[h]||c,f.property,h,v);i[v][p]=d;var m=o[v];d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=R(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=rt()),Yx(a,f,c.type,r,i)}if(n.fillStorage)n.fillStorage(e,r,a,l);else for(var p=[],h=e;h<r;h++){p=n.getItem(h,p);for(var v=0;v<s;v++){var d=a[v],m=this._dimValueGetter(p,u[v],h,v);d[h]=m;var g=l[v];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var i=[],n=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=e;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],r));return i},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[e];return i?i[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(n){isNaN(n)||r.push(n)}),Yt(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,i=r[e];if(i!=null&&i<this._count&&i===e)return e;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(r[o]<e)n=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=r[a]}else e=new i(r.buffer,0,n)}else{var i=Wa(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Wa(i._rawCount),o=new a(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks,p=0;p<n;p++){var h=void 0,v=i.getRawIndex(p);if(l===0)h=r(p);else if(l===1){var d=c[f][v];h=r(d,p)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][v];s[m]=p,h=r.apply(null,s)}h&&(o[u++]=v)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(e){var r=this.clone(),i=r._count;if(!i)return this;var n=K(e),a=n.length;if(!a)return this;var o=r.count(),s=Wa(r._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],p=e[f][1],h=r._chunks,v=!1;if(!r._indices){var d=0;if(a===1){for(var m=h[n[0]],g=0;g<i;g++){var y=m[g];(y>=c&&y<=p||isNaN(y))&&(l[u++]=d),d++}v=!0}else if(a===2){for(var m=h[n[0]],_=h[n[1]],x=e[n[1]][0],S=e[n[1]][1],g=0;g<i;g++){var y=m[g],T=_[g];(y>=c&&y<=p||isNaN(y))&&(T>=x&&T<=S||isNaN(T))&&(l[u++]=d),d++}v=!0}}if(!v)if(a===1)for(var g=0;g<o;g++){var w=r.getRawIndex(g),y=h[n[0]][w];(y>=c&&y<=p||isNaN(y))&&(l[u++]=w)}else for(var g=0;g<o;g++){for(var A=!0,w=r.getRawIndex(g),E=0;E<a;E++){var C=n[E],y=h[C][w];(y<e[C][0]||y>e[C][1])&&(A=!1)}A&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var i=this.clone(e);return this._updateDims(i,e,r),i},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,i){for(var n=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=rt();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)l[h]=n[r[h]][p];l[o]=c;var v=i&&i.apply(null,l);if(v!=null){typeof v!=\"object\"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var d=r[f],m=v[f],g=u[d],y=n[d];y&&(y[p]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var i=this.clone([e],!0),n=i._chunks,a=n[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,p,h=new(Wa(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var d=Math.min(v+l,o-1),m=Math.min(v+l*2,o),g=(m+d)/2,y=0,_=d;_<m;_++){var x=this.getRawIndex(_),S=a[x];isNaN(S)||(y+=S)}y/=m-d;var T=v,w=Math.min(v+l,o),A=v-1,E=a[u];f=-1,p=T;for(var C=-1,D=0,_=T;_<w;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){D++,C<0&&(C=x);continue}c=Math.abs((A-g)*(S-E)-(A-_)*(y-E)),c>f&&(f=c,p=x)}D>0&&D<w-T&&(h[s++]=Math.min(C,p),p=Math.max(C,p)),h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},t.prototype.minmaxDownSample=function(e,r){for(var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/r),o=n[e],s=this.count(),l=new(Wa(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,v=o[this.getRawIndex(h)],d=a;f+a>s&&(d=s-f);for(var m=0;m<d;m++){var g=this.getRawIndex(f+m),y=o[g];y<p&&(p=y,c=f+m),y>v&&(v=y,h=f+m)}var _=this.getRawIndex(c),x=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,n){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=rt(),p=new(Wa(this._rawCount))(Math.ceil(f/l)),h=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var d=0;d<l;d++){var m=this.getRawIndex(v+d);s[d]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(v+n(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var i=e.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:r(a);break;case 1:r(n[e[0]][s],a);break;case 2:r(n[e[0]][s],n[e[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var i=this._chunks[e],n=rt();if(!i)return n;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=zx(r),f=u.key,c=l[f];if(c)return c.slice();for(var p=n[0],h=n[1],v=0;v<a;v++){var d=this.getRawIndex(v),m=i[d];(!r||Ux(u,m))&&(m<p&&(p=m),m>h&&(h=m))}return l[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},t.prototype.clone=function(e,r){var i=new t,n=this._chunks,a=e&&rr(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?mO(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Q(this._extent),e._rawExtent=Q(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var i=this._indices.length;r=new e(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,i,n,a){return Ya(r[a],this._dimensions[a])}Iv={arrayRows:e,objectRows:function(r,i,n,a){return Ya(r[i],this._dimensions[a])},keyedColumns:e,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return Ya(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}})(),t})(),_s=gO;var Xx=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+\"_\"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(gf(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get(\"data\",!0),l=Ne(s)?Rt:Ke,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=F(c.seriesLayoutBy,p.seriesLayoutBy)||null,v=F(c.sourceHeader,p.sourceHeader),d=F(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||d;n=m?[ys(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(r);n=y.sourceList,a=y.upstreamSignList}else{var _=g.get(\"source\",!0);n=[ys(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,i=r.get(\"transform\",!0),n=r.get(\"fromTransformResult\",!0);if(n!=null){var a=\"\";e.length!==1&&Zx(a)}var o,s=[],l=[];return b(e,function(u){u.prepareSource();var f=u.getSource(n||0),c=\"\";n!=null&&!f&&Zx(c),s.push(f),l.push(u._getVersionSign())}),i?o=Hx(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[Ix(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var i=e[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];gf(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,i):(s=new _s,s.initData(new mf(r,e.length),e)),o[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(gf(e)){var r=xv(e);return r?[r.getSourceManager()]:[]}else return R(cx(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,n;if(gf(e))r=e.get(\"seriesLayoutBy\",!0),i=e.get(\"sourceHeader\",!0),n=e.get(\"dimensions\",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get(\"seriesLayoutBy\",!0),i=a.get(\"sourceHeader\",!0),n=a.get(\"dimensions\",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},t})();function gf(t){return t.mainType===\"series\"}function Zx(t){throw new Error(t)}function yf(t,e){return e.type=t,e}function qx(t,e){var r=t.getData().getItemVisual(e,\"style\"),i=r[t.visualDrawType];return fs(i)}var m5=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Uo()}return t.prototype._generateStyleName=function(){return\"__EC_aUTo_\"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,i){var n=i===\"richText\"?this._generateStyleName():null,a=J0({color:r,type:e,renderMode:i,markerId:n});return B(a)?a:(this.richTextStyles[n]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var i={};k(r)?b(r,function(a){return P(i,a)}):P(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,\"{\"+n+\"|\"+e+\"}\"},t})();function Kx(t){var e=t.series,r=t.dataIndex,i=t.multipleSeries,n=e.getData(),a=n.mapDimensionsAll(\"defaultedTooltip\"),o=a.length,s=e.getRawValue(r),l=k(s),u=qx(e,r),f,c,p,h;if(o>1||l&&!o){var v=yO(s,e,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,p=v.blocks,h=v.inlineValues[0]}else if(o){var d=n.getDimensionInfo(a[0]);h=f=ri(n,r,a[0]),c=d.type}else h=f=l?s[0]:s;var m=Jl(e),g=m&&e.name||\"\",y=n.getName(r),_=i?g:y;return yf(\"section\",{header:g,noHeader:i||!m,sortParam:h,blocks:[yf(\"nameValue\",{markerType:\"item\",markerColor:u,name:_,noName:!St(_),value:f,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(p||[])})}function yO(t,e,r,i,n){var a=e.getData(),o=rr(t,function(c,p,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?b(i,function(c){f(ri(a,r,c),c)}):b(t,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?u.push(yf(\"nameValue\",{markerType:\"subItem\",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ri=q();function _f(t,e){return t.getName(e)||t.getId(e)}var _O=\"__universalTransitionEnabled\",xf=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=Ni({count:SO,reset:TO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=Ri(this).sourceManager=new Xx(this);a.prepareSource();var o=this.getInitialData(r,n);Qx(o,this),this.dataTask.context.data=o,Ri(this).dataBeforeProcessed=o,jx(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=Li(this),a=n?Lr(r):{},o=this.subType;Se.hasClass(o)&&(o+=\"Series\"),pe(r,i.getTheme().get(this.subType)),pe(r,this.getDefaultOption()),Vp(r,\"label\",[\"show\"]),this.fillDataTextStyle(r.data),n&&hr(r,a,n)},e.prototype.mergeOption=function(r,i){r=pe(this.option,r,!0),this.fillDataTextStyle(r.data);var n=Li(this);n&&hr(this.option,r,n);var a=Ri(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);Qx(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ri(this).dataBeforeProcessed=o,jx(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Ne(r))for(var i=[\"show\"],n=0;n<r.length;n++)r[n]&&r[n].label&&Vp(r[n],\"label\",i)},e.prototype.getInitialData=function(r,i){},e.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},e.prototype.getData=function(r){var i=Pv(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return Ri(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var i=Pv(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}Ri(this).data=r},e.prototype.getEncode=function(){var r=this.get(\"encode\",!0);if(r)return U(r)},e.prototype.getSourceManager=function(){return Ri(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Ri(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get(\"colorBy\");return r||\"series\"},e.prototype.isColorBySeries=function(){return this.getColorBy()===\"series\"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(n);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,v=o.getDimensionIndex(i),d=o.getStore(),m=0,g=d.count();m<g;m++){var y=d.get(v,m),_=l.dataToCoord(y),x=u-_,S=Math.abs(x);S<=a&&((S<c||S===c&&x>=0&&p<0)&&(c=S,p=x,h=0),x===p&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(r,i,n){return Kx({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(me.node&&!(r&&r.ssr))return!1;var i=this.getShallow(\"animation\");return i&&this.getData().count()>this.getShallow(\"animationThreshold\")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=hs.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get(\"progressive\")},e.prototype.getProgressiveThreshold=function(){return this.get(\"progressiveThreshold\")},e.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},e.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a===\"series\"||n===\"all\"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=_f(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===\"all\")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=K(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n===\"all\"||n[_f(a,r)])&&!a.getItemModel(r).get([\"select\",\"disabled\"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[_O])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s===\"series\")o.selectedMap=\"all\";else if(s===\"multiple\"){H(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=i[f],p=_f(r,c);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s===\"single\"||s===!0){var h=i[l-1],p=_f(r,h);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},e.registerClass=function(r){return Se.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type=\"series.__base__\",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol=\"circle\",r.visualStyleAccessPath=\"itemStyle\",r.visualDrawType=\"fill\"})(),e})(Se);ct(xf,kx);ct(xf,hs);iu(xf,Se);function jx(t){var e=t.name;Jl(t)||(t.name=xO(t)||e)}function xO(t){var e=t.getRawData(),r=e.mapDimensionsAll(\"seriesName\"),i=[];return b(r,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(\" \")}function SO(t){return t.model.getRawData().count()}function TO(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),bO}function bO(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Qx(t,e){b(Ym(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Me(wO,e))})}function wO(t,e){var r=Pv(t);return r&&r.setOutputEnd((e||this).count()),e}function Pv(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(t.uid))}return i}}var Pr=xf;var Nv=(function(){function t(){this.group=new ye,this.uid=Oi(\"viewComponent\")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){},t.prototype.updateLayout=function(e,r,i,n){},t.prototype.updateVisual=function(e,r,i,n){},t.prototype.toggleBlurSeries=function(e,r,i){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();Ca(Nv);bi(Nv);var zt=Nv;function xs(){var t=q();return function(e){var r=t(e),i=e.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&\"reset\"}}var eS=q(),CO=xs(),Rv=(function(){function t(){this.group=new ye,this.uid=Oi(\"viewChart\"),this.renderTask=Ni({plan:EO,reset:AO}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.highlight=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&Jx(a,n,\"emphasis\")},t.prototype.downplay=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&Jx(a,n,\"normal\")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.updateVisual=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.eachRendered=function(e){us(this.group,e)},t.markUpdateMethod=function(e,r){eS(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type=\"chart\"})(),t})();function $x(t,e,r){t&&$o(t)&&(e===\"emphasis\"?bn:wn)(t,r)}function Jx(t,e,r){var i=Wt(t,e),n=e&&e.highlightKey!=null?H_(e.highlightKey):null;i!=null?b(De(i),function(a){$x(t.getItemGraphicEl(a),r,n)}):t.eachItemGraphicEl(function(a){$x(a,r,n)})}Ca(Rv,[\"dispose\"]);bi(Rv);function EO(t){return CO(t.model)}function AO(t){var e=t.model,r=t.ecModel,i=t.api,n=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=n&&eS(n).updateMethod,l=a?\"incrementalPrepareRender\":s&&o[s]?s:\"render\";return l!==\"render\"&&o[l](e,r,i,n),DO[l]}var DO={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Ut=Rv;var Sf=\"\\0__throttleOriginMethod\",tS=\"\\0__throttleRate\",rS=\"\\0__throttleType\";function kv(t,e,r){var i,n=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var p=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),l=this,u=h;var d=f||e,m=f||r;f=null,s=i-(m?n:a)-d,clearTimeout(o),m?o=setTimeout(c,d):s>=0?c():o=setTimeout(c,-s),n=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function Za(t,e,r,i){var n=t[e];if(n){var a=n[Sf]||n,o=n[rS],s=n[tS];if(s!==r||o!==i){if(r==null||!i)return t[e]=a;n=t[e]=kv(a,r,i===\"debounce\"),n[Sf]=a,n[rS]=i,n[tS]=r}return n}}function Tf(t,e){var r=t[e];r&&r[Sf]&&(r.clear&&r.clear(),t[e]=r[Sf])}var iS=q(),nS={itemStyle:br(iv,!0),lineStyle:br(rv,!0)},MO={lineStyle:\"stroke\",itemStyle:\"fill\"};function aS(t,e){var r=t.visualStyleMapper||nS[e];return r||(console.warn(\"Unknown style type '\"+e+\"'.\"),nS.itemStyle)}function oS(t,e){var r=t.visualDrawType||MO[e];return r||(console.warn(\"Unknown style type '\"+e+\"'.\"),\"fill\")}var sS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||\"itemStyle\",n=t.getModel(i),a=aS(t,i),o=a(n),s=n.getShallow(\"decal\");s&&(r.setVisual(\"decal\",s),s.dirty=!0);var l=oS(t,i),u=o[l],f=G(u)?u:null,c=o.fill===\"auto\"||o.stroke===\"auto\";if(!o[l]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=p,r.setVisual(\"colorFromPalette\",!0)),o.fill=o.fill===\"auto\"||G(o.fill)?p:o.fill,o.stroke=o.stroke===\"auto\"||G(o.stroke)?p:o.stroke}if(r.setVisual(\"style\",o),r.setVisual(\"drawType\",l),!e.isSeriesFiltered(t)&&f)return r.setVisual(\"colorFromPalette\",!1),{dataEach:function(h,v){var d=t.getDataParams(v),m=P({},o);m[l]=f(d),h.setItemVisual(v,\"style\",m)}}}},Ss=new Ye,lS={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),i=t.visualStyleAccessPath||\"itemStyle\",n=aS(t,i),a=r.getVisual(\"drawType\");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Ss.option=l[i];var u=n(Ss),f=o.ensureUniqueItemVisual(s,\"style\");P(f,u),Ss.option.decal&&(o.setItemVisual(s,\"decal\",Ss.option.decal),Ss.option.decal.dirty=!0),a in u&&o.setItemVisual(s,\"colorFromPalette\",!1)}}:null}}}},uS={performRawSeries:!0,overallReset:function(t){var e=U();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+\"-\"+r.getColorBy();iS(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),n={},a=r.getData(),o=iS(r).scope,s=r.visualStyleAccessPath||\"itemStyle\",l=oS(r,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],c=a.getItemVisual(f,\"colorFromPalette\");if(c){var p=a.ensureUniqueItemVisual(f,\"style\"),h=i.getName(u)||u+\"\",v=i.count();p[l]=r.getColorFromPalette(h,o,v)}})}})}};var bf=Math.PI;function zv(t,e){e=e||{},te(e,{text:\"loading\",textColor:re.color.primary,fontSize:12,fontWeight:\"normal\",fontStyle:\"normal\",fontFamily:\"sans-serif\",maskColor:\"rgba(255,255,255,0.8)\",showSpinner:!0,color:re.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ye,i=new Te({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var n=new je({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Te({style:{fill:\"none\"},textContent:n,textConfig:{position:\"right\",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new os({shape:{startAngle:-bf/2,endAngle:-bf/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:\"round\",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:bf*3/2}).start(\"circularInOut\"),o.animateShape(!0).when(1e3,{startAngle:bf*3/2}).delay(300).start(\"circularInOut\"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var OO=(function(){function t(e,r,i,n){this._stageTaskMap=U(),this.ecInstance=e,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var i=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(r,i):Py(e,r,i);e.pipelineContext=i.context=n},t.prototype.restorePipelines=function(e,r){var i=this,n=i._pipelineMap=U();r.eachSeries(function(a){var o=e.painter.type===\"canvas\"&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),i=this.api;b(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{}),o=\"\";Re(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},t.prototype.prepareView=function(e,r,i,n){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,i){this._performStageTasks(this._visualHandlers,e,r,i)},t.prototype._performStageTasks=function(e,r,i,n){n=n||{};var a=!1,o=this;b(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,v=p.agentStubMap;v.each(function(m){s(n,m)&&(m.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,i);var d=o.getPerformArgs(p,n.block);v.each(function(m){m.perform(d)}),p.perform(d)&&(a=!0)}else c&&c.each(function(m,g){s(n,m)&&m.dirty();var y=o.getPerformArgs(m,n.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!==\"remain\"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=U(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||Ni({plan:RO,reset:kO,count:zO}));h.context={model:c,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,i,n){var a=this,o=r.overallTask=r.overallTask||Ni({reset:IO});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=U(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h=\"\";Re(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,v):f?f(i,n).each(v):b(i.getSeries(),v);function v(d){var m=d.uid,g=l.set(m,s&&s.get(m)||(p=!0,Ni({reset:LO,onDirty:NO})));g.context={model:d,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(d,g)}p&&o.dirty()},t.prototype._pipe=function(e,r){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},t.wrapStageHandler=function(e,r){return G(e)&&(e={overallReset:e,seriesType:UO(e)}),e.uid=Oi(\"stageHandler\"),r&&(e.visualType=r),e},t})();function IO(t){t.overallReset(t.ecModel,t.api,t.payload)}function LO(t){return t.dirtyOnOverallProgress&&PO}function PO(){this.agent.dirty(),this.getDownstream().dirty()}function NO(){this.agent&&this.agent.dirty()}function RO(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function kO(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=De(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?R(e,function(r,i){return fS(i)}):BO}var BO=fS(0);function fS(t){return function(e,r){var i=r.data,n=r.resetDefines[t];if(n&&n.dataEach)for(var a=e.start;a<e.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(e,i)}}function zO(t){return t.data.count()}function UO(t){wf=null;try{t(Ts,cS)}catch{}return wf}var Ts={},cS={},wf;pS(Ts,cf);pS(cS,pu);Ts.eachSeriesByType=Ts.eachRawSeriesByType=function(t){wf=t};Ts.eachComponent=function(t){t.mainType===\"series\"&&t.subType&&(wf=t.subType)};function pS(t,e){for(var r in e.prototype)t[r]=Ce}var Uv=OO;var V=re.darkColor,hS=V.background,bs=function(){return{axisLine:{lineStyle:{color:V.axisLine}},splitLine:{lineStyle:{color:V.axisSplitLine}},splitArea:{areaStyle:{color:[V.backgroundTint,V.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:V.axisMinorSplitLine}},axisLabel:{color:V.axisLabel},axisName:{}}},vS={label:{color:V.secondary},itemStyle:{borderColor:V.borderTint},dividerLineStyle:{color:V.border}},dS={darkMode:!0,color:V.theme,backgroundColor:hS,axisPointer:{lineStyle:{color:V.border},crossStyle:{color:V.borderShade},label:{color:V.tertiary}},legend:{textStyle:{color:V.secondary},pageTextStyle:{color:V.tertiary}},textStyle:{color:V.secondary},title:{textStyle:{color:V.primary},subtextStyle:{color:V.quaternary}},toolbox:{iconStyle:{borderColor:V.accent50},feature:{dataView:{backgroundColor:hS,textColor:V.primary,textareaColor:V.background,textareaBorderColor:V.border,buttonColor:V.accent50,buttonTextColor:V.neutral00}}},tooltip:{backgroundColor:V.neutral20,defaultBorderColor:V.border,textStyle:{color:V.tertiary}},dataZoom:{borderColor:V.accent10,textStyle:{color:V.tertiary},brushStyle:{color:V.backgroundTint},handleStyle:{color:V.neutral00,borderColor:V.accent20},moveHandleStyle:{color:V.accent40},emphasis:{handleStyle:{borderColor:V.accent50}},dataBackground:{lineStyle:{color:V.accent30},areaStyle:{color:V.accent20}},selectedDataBackground:{lineStyle:{color:V.accent50},areaStyle:{color:V.accent30}}},visualMap:{textStyle:{color:V.secondary},handleStyle:{borderColor:V.neutral30}},timeline:{lineStyle:{color:V.accent10},label:{color:V.tertiary},controlStyle:{color:V.accent30,borderColor:V.accent30}},calendar:{itemStyle:{color:V.neutral00,borderColor:V.neutral20},dayLabel:{color:V.tertiary},monthLabel:{color:V.secondary},yearLabel:{color:V.secondary}},matrix:{x:vS,y:vS,backgroundColor:{borderColor:V.axisLine},body:{itemStyle:{borderColor:V.borderTint}}},timeAxis:bs(),logAxis:bs(),valueAxis:bs(),categoryAxis:bs(),line:{symbol:\"circle\"},graph:{color:V.theme},gauge:{title:{color:V.secondary},axisLine:{lineStyle:{color:[[1,V.neutral05]]}},axisLabel:{color:V.axisLabel},detail:{color:V.primary}},candlestick:{itemStyle:{color:\"#f64e56\",color0:\"#54ea92\",borderColor:\"#f64e56\",borderColor0:\"#54ea92\"}},funnel:{itemStyle:{borderColor:V.background}},radar:(function(){var t=bs();return t.axisName={color:V.axisLabel},t.axisLine.lineStyle.color=V.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:V.neutral20,textStyle:{color:V.secondary}},emphasis:{itemStyle:{color:V.neutral30}}}},sunburst:{itemStyle:{borderColor:V.background}},map:{itemStyle:{borderColor:V.border,areaColor:V.neutral10},label:{color:V.tertiary},emphasis:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}},select:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}}},geo:{itemStyle:{borderColor:V.border,areaColor:V.neutral10},emphasis:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}},select:{label:{color:V.primary},itemStyle:{color:V.highlight}}}};dS.categoryAxis.splitLine.show=!1;var mS=dS;var gS=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},n={};if(B(e)){var a=Tt(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=[\"Index\",\"Name\",\"Id\"],s={name:1,dataIndex:1,dataType:1};b(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var v=u.slice(0,h);v!==\"data\"&&(r.mainType=v,r[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},t.prototype.filter=function(e,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,\"mainType\")&&f(l,o,\"subType\")&&f(l,o,\"index\",\"componentIndex\")&&f(l,o,\"name\")&&f(l,o,\"id\")&&f(u,a,\"name\")&&f(u,a,\"dataIndex\")&&f(u,a,\"dataType\")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,n,a));function f(c,p,h,v){return c[h]==null||p[v||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var Fv=[\"symbol\",\"symbolSize\",\"symbolRotate\",\"symbolOffset\"],yS=Fv.concat([\"symbolKeepAspect\"]),_S={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual(\"legendIcon\",t.legendIcon),!t.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Fv.length;o++){var s=Fv[o],l=t.get(s);G(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,r.setVisual(P({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get(\"symbolKeepAspect\")},i)),e.isSeriesFiltered(t))return;var u=K(n);function f(c,p){for(var h=t.getRawValue(p),v=t.getDataParams(p),d=0;d<u.length;d++){var m=u[d];c.setItemVisual(p,m,n[m](h,v))}}return{dataEach:a?f:null}}},xS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<yS.length;s++){var l=yS[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?i:null}}};function SS(t,e,r){switch(r){case\"color\":var i=t.getItemVisual(e,\"style\");return i[t.getVisual(\"drawType\")];case\"opacity\":return t.getItemVisual(e,\"style\").opacity;case\"symbol\":case\"symbolSize\":case\"liftZ\":return t.getItemVisual(e,r);default:}}function TS(t,e){switch(e){case\"color\":var r=t.getVisual(\"style\");return r[t.getVisual(\"drawType\")];case\"opacity\":return t.getVisual(\"style\").opacity;case\"symbol\":case\"symbolSize\":case\"liftZ\":return t.getVisual(e);default:}}function Xa(t,e,r,i,n){var a=t+e;r.isSilent(a)||i.eachComponent({mainType:\"series\",subType:\"pie\"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=Wt(c,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:k(p)?c.getName(p[0]):c.getName(p),selected:B(l)?l:P({},l)})}})}function bS(t,e,r){t.on(\"selectchanged\",function(i){var n=r.getModel();i.isFromClick?(Xa(\"map\",\"selectchanged\",e,n,i),Xa(\"pie\",\"selectchanged\",e,n,i)):i.fromAction===\"select\"?(Xa(\"map\",\"selected\",e,n,i),Xa(\"pie\",\"selected\",e,n,i)):i.fromAction===\"unselect\"&&(Xa(\"map\",\"unselected\",e,n,i),Xa(\"pie\",\"unselected\",e,n,i))})}function ws(t,e,r){for(var i;t&&!(e(t)&&(i=t,r));)t=t.__hostTarget||t.parent;return i}var FO=new tt,Ft=FO;var wS={};function CS(t,e){wS[t]=e}function ES(t){return wS[t]}var VO={};function AS(t,e){VO[t]=e}var Cf=q();function DS(t){Cf(t).prepare={}}function MS(t){Cf(t).fullUpdate={}}function Vv(t){return Cf(t).prepare}function qa(t){return Cf(t).fullUpdate}var HO=Math.round(Math.random()*9),GO=typeof Object.defineProperty==\"function\",YO=(function(){function t(){this._id=\"__ec_inner_\"+HO++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);return GO?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError(\"Value of WeakMap is not a non-null object.\");return e},t})(),OS=YO;var WO=ne.extend({type:\"triangle\",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i+a),t.lineTo(r-n,i+a),t.closePath()}}),ZO=ne.extend({type:\"diamond\",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i),t.lineTo(r,i+a),t.lineTo(r-n,i),t.closePath()}}),XO=ne.extend({type:\"pin\",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),p=Math.cos(u),h=o*.6,v=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+p*h,r,i-v,r,i),t.bezierCurveTo(r,i-v,r-f+c*h,l+s+p*h,r-f,l+s),t.closePath()}}),qO=ne.extend({type:\"arrow\",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;t.moveTo(n,a),t.lineTo(n+o,a+r),t.lineTo(n,a+r/4*3),t.lineTo(n-o,a+r),t.lineTo(n,a),t.closePath()}}),KO={line:cr,rect:Te,roundRect:Te,square:Te,circle:es,diamond:ZO,pin:XO,arrow:qO,triangle:WO},jO={line:function(t,e,r,i,n){n.x1=t,n.y1=e+i/2,n.x2=t+r,n.y2=e+i/2},rect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i},roundRect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(t,e,r,i,n){var a=Math.min(r,i);n.x=t,n.y=e,n.width=a,n.height=a},circle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.r=Math.min(r,i)/2},diamond:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i},pin:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},arrow:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},triangle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i}},Cs={};b(KO,function(t,e){Cs[e]=new t});var QO=ne.extend({type:\"symbol\",shape:{symbolType:\"\",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=Yl(t,e,r),n=this.shape;return n&&n.symbolType===\"pin\"&&e.position===\"inside\"&&(i.y=r.y+r.height*.4),i},buildPath:function(t,e,r){var i=e.symbolType;if(i!==\"none\"){var n=Cs[i];n||(i=\"rect\",n=Cs[i]),jO[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function $O(t,e){if(this.type!==\"image\"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||re.color.neutral00,r.lineWidth=2):this.shape.symbolType===\"line\"?r.stroke=t:r.fill=t,this.markRedraw()}}function Ct(t,e,r,i,n,a,o){var s=t.indexOf(\"empty\")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf(\"image://\")===0?l=Xh(t.slice(8),new ee(e,r,i,n),o?\"center\":\"cover\"):t.indexOf(\"path://\")===0?l=Iu(t.slice(7),{},new ee(e,r,i,n),o?\"center\":\"cover\"):l=new QO({shape:{symbolType:t,x:e,y:r,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=$O,a&&l.setColor(a),l}function IS(t){return k(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Ef(t,e){if(t!=null)return k(t)||(t=[t,t]),[Lt(t[0],e[0])||0,Lt(F(t[1],t[0]),e[1])||0]}function Hn(t){return isFinite(t)}function JO(t,e,r){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=Hn(i)?i:0,n=Hn(n)?n:1,a=Hn(a)?a:0,o=Hn(o)?o:0;var s=t.createLinearGradient(i,a,n,o);return s}function eI(t,e,r){var i=r.width,n=r.height,a=Math.min(i,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+r.x,s=s*n+r.y,l=l*a),o=Hn(o)?o:.5,s=Hn(s)?s:.5,l=l>=0&&Hn(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Hv(t,e,r){for(var i=e.type===\"radial\"?eI(t,e,r):JO(t,e,r),n=e.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function LS(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function Af(t){return parseInt(t,10)}function Gv(t,e,r){var i=[\"width\",\"height\"][e],n=[\"clientWidth\",\"clientHeight\"][e],a=[\"paddingLeft\",\"paddingTop\"][e],o=[\"paddingRight\",\"paddingBottom\"][e];if(r[i]!=null&&r[i]!==\"auto\")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(t);return(t[n]||Af(s[i])||Af(t.style[i]))-(Af(s[a])||0)-(Af(s[o])||0)||0}function tI(t,e){return!t||t===\"solid\"||!(e>0)?null:t===\"dashed\"?[4*e,2*e]:t===\"dotted\"?[e]:fe(t)?[t]:k(t)?t:null}function Es(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&tI(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;n&&n!==1&&(r=R(r,function(a){return a/n}),i/=n)}return[r,i]}var rI=new vt(!0);function Df(t){var e=t.stroke;return!(e==null||e===\"none\"||!(t.lineWidth>0))}function PS(t){return typeof t==\"string\"&&t!==\"none\"}function Mf(t){var e=t.fill;return e!=null&&e!==\"none\"}function NS(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function RS(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function kS(t,e,r){var i=Ho(e.image,e.__image,r);if(Ea(i)){var n=t.createPattern(i,e.repeat||\"repeat\");if(typeof DOMMatrix==\"function\"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*aa),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function iI(t,e,r,i,n){var a,o=Df(r),s=Mf(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||rI,p=e.__dirty;if(!i){var h=r.fill,v=r.stroke,d=s&&!!h.colorStops,m=o&&!!v.colorStops,g=s&&!!h.image,y=o&&!!v.image,_=void 0,x=void 0,S=void 0,T=void 0,w=void 0;(d||m)&&(w=e.getBoundingRect()),d&&(_=p?Hv(t,h,w):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(x=p?Hv(t,v,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(S=p||!e.__canvasFillPattern?kS(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(T=p||!e.__canvasStrokePattern?kS(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=T),d?t.fillStyle=_:g&&(S?t.fillStyle=S:s=!1),m?t.strokeStyle=x:y&&(T?t.strokeStyle=T:o=!1)}var A=e.getGlobalScale();c.setScale(A[0],A[1],e.segmentIgnoreThreshold);var E,C;t.setLineDash&&r.lineDash&&(a=Es(e),E=a[0],C=a[1]);var D=!0;(f||p&mi)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),D=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(t,u?l:1),E&&(t.setLineDash(E),t.lineDashOffset=C),i?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&RS(t,r),s&&NS(t,r)):(s&&NS(t,r),o&&RS(t,r)),E&&t.setLineDash([])}function nI(t,e,r){var i=e.__image=Ho(r.image,e.__image,e,e.onload);if(!(!i||!Ea(i))){var n=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(i,u,f,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,p=s-f;t.drawImage(i,u,f,c,p,n,a,o,s)}else t.drawImage(i,n,a,o,s)}}function aI(t,e,r){var i,n=r.text;if(n!=null&&(n+=\"\"),n){t.font=r.font||xt,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=Es(e),a=i[0],o=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Df(r)&&t.strokeText(n,r.x,r.y),Mf(r)&&t.fillText(n,r.x,r.y)):(Mf(r)&&t.fillText(n,r.x,r.y),Df(r)&&t.strokeText(n,r.x,r.y)),a&&t.setLineDash([])}}var BS=[\"shadowBlur\",\"shadowOffsetX\",\"shadowOffsetY\"],zS=[[\"lineCap\",\"butt\"],[\"lineJoin\",\"miter\"],[\"miterLimit\",10]];function YS(t,e,r,i,n){var a=!1;if(!i&&(r=r||{},e===r))return!1;if(i||e.opacity!==r.opacity){yt(t,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?wr.opacity:o}(i||e.blend!==r.blend)&&(a||(yt(t,n),a=!0),t.globalCompositeOperation=e.blend||wr.blend);for(var s=0;s<BS.length;s++){var l=BS[s];(i||e[l]!==r[l])&&(a||(yt(t,n),a=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==r.shadowColor)&&(a||(yt(t,n),a=!0),t.shadowColor=e.shadowColor||wr.shadowColor),a}function US(t,e,r,i,n){var a=e.style,o=i?null:r&&r.style||{};if(a===o)return!1;var s=YS(t,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(yt(t,n),s=!0),PS(a.fill)&&(t.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(yt(t,n),s=!0),PS(a.stroke)&&(t.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(yt(t,n),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(yt(t,n),s=!0),t.lineWidth=u)}for(var f=0;f<zS.length;f++){var c=zS[f],p=c[0];(i||a[p]!==o[p])&&(s||(yt(t,n),s=!0),t[p]=a[p]||c[1])}return s}function oI(t,e,r,i,n){return YS(t,e.style,r&&r.style,i,n)}function WS(t,e){var r=e.transform,i=t.dpr||1;r?t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):t.setTransform(i,0,0,i,0,0)}function sI(t,e,r){for(var i=!1,n=0;n<t.length;n++){var a=t[n];i=i||a.isZeroArea(),WS(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=i}function lI(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var FS=1,VS=2,HS=3,GS=4;function uI(t){var e=Mf(t),r=Df(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!=\"string\"||r&&typeof t.stroke!=\"string\"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function yt(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function ZS(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Yv(t,e,r),Wv(t,r)}function Yv(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~at,e.__isRendered=!1;return}var n=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||LS(n,a))&&(a&&(yt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(yt(t,r),t.save(),sI(n,t,r),s=!0,r.prevElClipPaths=n)),r.allClipped){e.__dirty&=~at,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof ne&&e.autoBatch&&uI(o);s||lI(i,u.transform)?(yt(t,r),WS(t,e)):f||yt(t,r),e instanceof ne?(r.lastDrawType!==FS&&(l=!0,r.lastDrawType=FS),US(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),iI(t,e,o,f,r)):e instanceof Sn?(r.lastDrawType!==HS&&(l=!0,r.lastDrawType=HS),US(t,e,u,l,r),aI(t,e,o)):e instanceof st?(r.lastDrawType!==VS&&(l=!0,r.lastDrawType=VS),oI(t,e,u,l,r),nI(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==GS&&(l=!0,r.lastDrawType=GS),fI(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&yt(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Wv(t,e){yt(t,e),e.prevElClipPaths&&t.restore()}function fI(t,e,r){var i=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Yv(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Wv(t,a);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Yv(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Wv(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Zv=new OS,XS=new xr(100),qS=[\"symbol\",\"symbolSize\",\"symbolKeepAspect\",\"color\",\"backgroundColor\",\"dashArrayX\",\"dashArrayY\",\"maxTileWidth\",\"maxTileHeight\"];function Xv(t,e){if(t===\"none\")return null;var r=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type===\"svg\";t.dirty&&Zv.delete(t);var a=Zv.get(t);if(a)return a;var o=te(t,{symbol:\"rect\",symbolSize:1,symbolKeepAspect:!0,color:\"rgba(0, 0, 0, 0.2)\",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===\"none\"&&(o.backgroundColor=null);var s={repeat:\"repeat\"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,Zv.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,p=0;p<qS.length;++p){var h=o[qS[p]];if(h!=null&&!k(h)&&!B(h)&&!fe(h)&&typeof h!=\"boolean\"){c=!1;break}f.push(h)}var v;if(c){v=f.join(\",\")+(n?\"-svg\":\"\");var d=XS.get(v);d&&(n?u.svgElement=d:u.image=d)}var m=jS(o.dashArrayX),g=cI(o.dashArrayY),y=KS(o.symbol),_=pI(m),x=QS(g),S=!n&&nt.createCanvas(),T=n&&{tag:\"g\",attrs:{},key:\"dcl\",children:[]},w=E(),A;S&&(S.width=w.width*r,S.height=w.height*r,A=S.getContext(\"2d\")),C(),c&&XS.put(v,S||T),u.image=S,u.svgElement=T,u.svgWidth=w.width,u.svgHeight=w.height;function E(){for(var D=1,O=0,M=_.length;O<M;++O)D=Up(D,_[O]);for(var I=1,O=0,M=y.length;O<M;++O)I=Up(I,y[O].length);D*=I;var z=x*_.length*y.length;if(0)var N;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(z,o.maxTileHeight))}}function C(){A&&(A.clearRect(0,0,S.width,S.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,S.width,S.height)));for(var D=0,O=0;O<g.length;++O)D+=g[O];if(D<=0)return;for(var M=-x,I=0,z=0,N=0;M<w.height;){if(I%2===0){for(var Y=z/2%y.length,X=0,Z=0,ie=0;X<w.width*2;){for(var J=0,O=0;O<m[N].length;++O)J+=m[N][O];if(J<=0)break;if(Z%2===0){var ae=(1-o.symbolSize)*.5,j=X+m[N][Z]*ae,W=M+g[I]*ae,ue=m[N][Z]*o.symbolSize,he=g[I]*o.symbolSize,Je=ie/2%y[Y].length;it(j,W,ue,he,y[Y][Je])}X+=m[N][Z],++ie,++Z,Z===m[N].length&&(Z=0)}++N,N===m.length&&(N=0)}M+=g[I],++z,++I,I===g.length&&(I=0)}function it(_e,Le,oe,ve,tr){var Xe=n?1:r,vo=Ct(tr,_e*Xe,Le*Xe,oe*Xe,ve*Xe,o.color,o.symbolKeepAspect);if(n){var Wi=i.painter.renderOneToVNode(vo);Wi&&T.children.push(Wi)}else ZS(A,vo)}}}}function KS(t){if(!t||t.length===0)return[[\"rect\"]];if(B(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!B(t[r])){e=!1;break}if(e)return KS([t]);for(var i=[],r=0;r<t.length;++r)B(t[r])?i.push([t[r]]):i.push(t[r]);return i}function jS(t){if(!t||t.length===0)return[[0,0]];if(fe(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,i=0;i<t.length;++i)if(!fe(t[i])){r=!1;break}if(r)return jS([t]);for(var n=[],i=0;i<t.length;++i)if(fe(t[i])){var e=Math.ceil(t[i]);n.push([e,e])}else{var e=R(t[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function cI(t){if(!t||typeof t==\"object\"&&t.length===0)return[0,0];if(fe(t)){var e=Math.ceil(t);return[e,e]}var r=R(t,function(i){return Math.ceil(i)});return t.length%2?r.concat(r):r}function pI(t){return R(t,function(e){return QS(e)})}function QS(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var $S=ru(hI);function hI(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,\"decal\");if(s){var l=i.ensureUniqueItemVisual(o,\"style\");l.decal=Xv(s,e)}});var n=i.getVisual(\"decal\");if(n){var a=i.getVisual(\"style\");a.decal=Xv(n,e)}}})}var vI=1,dI=800,mI=900,gI=920,yI=1e3,_I=2e3,JS=5e3,u1=1e3,xI=1100,ad=2e3,f1=3e3,SI=4e3,kf=4500,TI=4600,bI=5e3,wI=6e3,c1=7e3,p1={PROCESSOR:{SERIES_FILTER:dI,AXIS_STATISTICS:gI,FILTER:yI,STATISTIC:JS,STATISTICS:JS},VISUAL:{LAYOUT:u1,PROGRESSIVE_LAYOUT:xI,GLOBAL:ad,CHART:f1,POST_CHART_LAYOUT:TI,COMPONENT:SI,BRUSH:bI,CHART_ITEM:kf,ARIA:wI,DECAL:c1}},We=\"__flagInMainProcess\",Of=\"__mainProcessVersion\",$e=\"__pendingUpdate\",qv=\"__needsUpdateStatus\",e1=/^[a-zA-Z0-9_]+$/,Kv=\"__connectUpdateStatus\",t1=0,CI=1,EI=2;function h1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return d1(this,t,e)}}function v1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return d1(this,t,e)}}function d1(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),tt.prototype[e].apply(t,r)}var m1=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(tt),g1=m1.prototype;g1.on=v1(\"on\");g1.off=v1(\"off\");var Gn,jv,If,ii,Lf,Qv,$v,Ka,ja,r1,i1,Jv,n1,Pf,a1,y1,$t,o1,Qa,_1=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,new gS)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=r;var o=\"canvas\",s=\"auto\",l=!1;if(a[Of]=1,0)var u;n.ssr&&hy(function(h){var v=be(h),d=v.dataIndex;if(d!=null){var m=U();return m.set(\"series_index\",v.seriesIndex),m.set(\"data_index\",d),v.ssrType&&m.set(\"ssr_type\",v.ssrType),m}});var f=a._zr=Pp(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:F(n.useDirtyRect,l),useCoarsePointer:F(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=kv($(f.flush,f),17),a._updateTheme(i),a._locale=V0(n.locale||Fu),a._coordSysMgr=new cs;var c=a._api=a1(a);function p(h,v){return h.__prio-v.__prio}return en(Rf,p),en(rd,p),a._scheduler=new Uv(a,c,rd,Rf),a._messageCenter=new m1,a._initEvents(),a.resize=$(a.resize,a),f.animation.on(\"frame\",a._onframe,a),r1(f,a),i1(f,a),na(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,n=this._api;if(o1(this),this[$e]){var a=this[$e].silent;this[We]=!0,Qa(this);try{Gn(this),ii.update.call(this,null,this[$e].updateParams)}catch(l){throw this[We]=!1,this[$e]=null,l}this._zr.flush(),this[We]=!1,this[$e]=null,Ka.call(this,a),ja.call(this,a)}else if(r.unfinished){var o=vI;do{r.unfinished=!1;var s=nt.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),Qv(this,i),r.performVisualTasks(i),Pf(this,this._model,n,\"remain\",{}),o-=nt.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,i,n){if(!this[We]){if(this._disposed){this.id;return}var a,o,s;if(H(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[We]=!0,Qa(this),!this._model||i){var l=new xx(this._api),u=this._theme,f=this._model=new cf;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},id);var c={seriesTransition:s,optionChanged:!0};if(n)this[$e]={silent:a,updateParams:c},this[We]=!1,this.getZr().wakeUp();else{try{Gn(this),ii.update.call(this,null,c)}catch(p){throw this[$e]=null,this[We]=!1,p}this._ssr||this._zr.flush(),this[$e]=null,this[We]=!1,Ka.call(this,a),ja.call(this,a)}}},e.prototype.setTheme=function(r,i){if(!this[We]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[$e]&&(a==null&&(a=this[$e].silent),o=this[$e].updateParams,this[$e]=null),this[We]=!0,Qa(this);try{this._updateTheme(r),n.setTheme(this._theme),Gn(this),ii.update.call(this,{type:\"setTheme\"},o)}catch(s){throw this[We]=!1,s}this[We]=!1,Ka.call(this,a),ja.call(this,a)}}},e.prototype._updateTheme=function(r){B(r)&&(r=x1[r]),r&&(r=Q(r),r&&pf(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||me.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get(\"backgroundColor\"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return b(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;b(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()===\"svg\"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL(\"image/\"+(r&&r.type||\"png\"));return b(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type===\"svg\",n=this.group,a=Math.min,o=Math.max,s=1/0;if(s1[n]){var l=s,u=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();b(As,function(_,x){if(_.group===n){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Q(r)),T=_.getDom().getBoundingClientRect();l=a(T.left,l),u=a(T.top,u),f=o(T.right,f),c=o(T.bottom,c),p.push({dom:S,left:T.left,top:T.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,d=c-u,m=nt.createCanvas(),g=Pp(m,{renderer:i?\"svg\":\"canvas\"});if(g.resize({width:v,height:d}),i){var y=\"\";return b(p,function(_){var x=_.left-l,S=_.top-u;y+='<g transform=\"translate('+x+\",\"+S+')\">'+_.dom+\"</g>\"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Te({shape:{x:0,y:0,width:v,height:d},style:{fill:r.connectedBackgroundColor}})),b(p,function(_){var x=new st({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});g.add(x)}),g.refreshImmediately(),m.toDataURL(\"image/\"+(r&&r.type||\"png\"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,i,n){return Lf(this,\"convertToPixel\",r,i,n)},e.prototype.convertToLayout=function(r,i,n){return Lf(this,\"convertToLayout\",r,i,n)},e.prototype.convertFromPixel=function(r,i,n){return Lf(this,\"convertFromPixel\",r,i,n)},e.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=eu(n,r);return b(o,function(s,l){l.indexOf(\"Models\")>=0&&b(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l===\"seriesModels\"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(r,i){var n=this._model,a=eu(n,r,{defaultMainType:\"series\"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty(\"dataIndexInside\")?a.dataIndexInside:a.hasOwnProperty(\"dataIndex\")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?SS(s,l,i):TS(s,i)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;b(AI,function(n){var a=function(o){var s=r.getModel(),l=o.target,u,f=n===\"globalout\";if(f?u={}:l&&ws(l,function(d){var m=be(d);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=P({},m.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c===\"markLine\"||c===\"markPoint\"||c===\"markArea\")&&(c=\"series\",p=u.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),v=h&&r[h.mainType===\"series\"?\"_chartsMap\":\"_componentsMap\"][h.__viewId];u.event=o,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:v},r.trigger(n,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;b(td,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),bS(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Yp(this.getDom(),sd,\"\");var i=this,n=i._api,a=i._model;b(i._componentsViews,function(o){o.dispose(a,n)}),b(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete As[i.id]},e.prototype.resize=function(r){if(!this[We]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption(\"media\"),a=r&&r.silent;this[$e]&&(a==null&&(a=this[$e].silent),n=!0,this[$e]=null),this[We]=!0,Qa(this);try{n&&Gn(this),ii.update.call(this,{type:\"resize\",animation:P({duration:0},r&&r.animation)})}catch(o){throw this[We]=!1,o}this[We]=!1,Ka.call(this,a),ja.call(this,a)}}},e.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(H(r)&&(i=r,r=\"\"),r=r||\"default\",this.hideLoading(),!!nd[r]){var n=nd[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var i=P({},r);return i.type=ed[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(H(i)||(i={silent:!!i}),!!Nf[r.type]&&this._model){if(this[We]){this._pendingActions.push(r);return}var n=i.silent;$v.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&me.browser.weChat&&this._throttledZrFlush(),Ka.call(this,n),ja.call(this,n)}},e.prototype.updateLabelLayout=function(){Ft.trigger(\"series:layoutlabels\",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Gn=function(c){DS(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),jv(c,!0),jv(c,!1),p.plan()},jv=function(c,p){for(var h=c._model,v=c._scheduler,d=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<d.length;_++)d[_].__alive=!1;p?h.eachComponent(function(T,w){T!==\"series\"&&x(w)}):h.eachSeries(x);function x(T){var w=T.__requireNewView;T.__requireNewView=!1;var A=\"_ec_\"+T.id+\"_\"+T.type,E=!w&&m[A];if(!E){var C=Tt(T.type),D=p?zt.getClass(C.main,C.sub):Ut.getClass(C.sub);E=new D,E.init(h,y),m[A]=E,d.push(E),g.add(E.group)}T.__viewId=E.__id=A,E.__alive=!0,E.__model=T,E.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!p&&v.prepareView(E,T,h,y)}for(var _=0;_<d.length;){var S=d[_];S.__alive?_++:(!p&&S.renderTask.dispose(),g.remove(S.group),S.dispose(h,y),d.splice(_,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},If=function(c,p,h,v,d){var m=c._model;if(m.setUpdatePayload(h),!v){b([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g=Ey(h,v,d),y=h.excludeSeriesId,_;y!=null&&(_=U(),b(De(y),function(S){var T=Pt(S,null);T!=null&&_.set(T,!0)})),m&&m.eachComponent(g,function(S){var T=_&&_.get(S.id)!=null;if(!T)if(Ih(h))if(S instanceof Pr)h.type===Di&&!h.notBlur&&!S.get([\"emphasis\",\"disabled\"])&&k_(S,h,c._api);else{var w=gu(S.mainType,S.componentIndex,h.name,c._api),A=w.focusSelf,E=w.dispatchers;h.type===Di&&A&&!h.notBlur&&hu(S.mainType,S.componentIndex,c._api),E&&b(E,function(C){h.type===Di?bn(C):wn(C)})}else yu(h)&&S instanceof Pr&&(U_(S,h,c._api),Dh(S),$t(c))},c),m&&m.eachComponent(g,function(S){var T=_&&_.get(S.id)!=null;T||x(c[v===\"series\"?\"_chartsMap\":\"_componentsMap\"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,m,c._api,h)}},ii={prepareAndUpdate:function(c){Gn(this),ii.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,v=this._api,d=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){MS(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,v),Ft.trigger(\"coordsys:aftercreate\",h,v),g.performDataProcessorTasks(h,c),Qv(this,h),m.update(h,v),i(h),g.performVisualTasks(h,c);var y=h.get(\"backgroundColor\")||\"transparent\";d.setBackgroundColor(y);var _=h.get(\"darkMode\");_!=null&&_!==\"auto\"&&d.setDarkMode(_),Jv(this,h,v,c,p),Ft.trigger(\"afterupdate\",h,v)}},updateTransform:function(c){var p=this,h=p._model,v=p._api;if(h){h.setUpdatePayload(c);var d=[];h.eachComponent(function(g,y){if(g!==fu){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,v,c);x&&x.update&&d.push(_)}else d.push(_)}});var m=U();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,h,v,c);x&&x.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),Pf(p,h,v,c,{},m),Ft.trigger(\"afterupdate\",h,v)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),Ut.markUpdateMethod(c,\"updateView\"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),Jv(this,p,this._api,c,{}),Ft.trigger(\"afterupdate\",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),Ut.markUpdateMethod(c,\"updateVisual\"),i(h),this._scheduler.performVisualTasks(h,c,{visualType:\"visual\",setDirty:!0}),h.eachComponent(function(v,d){if(v!==\"series\"){var m=p.getViewOfComponentModel(d);m&&m.__alive&&m.updateVisual(d,h,p._api,c)}}),h.eachSeries(function(v){var d=p._chartsMap[v.__viewId];d.updateVisual(v,h,p._api,c)}),Ft.trigger(\"afterupdate\",h,this._api))},updateLayout:function(c){ii.update.call(this,c)}};function r(c,p,h,v,d){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=eu(m,h),x=0;x<g.length;x++){var S=g[x];if(S[p]&&(y=S[p](m,_,v,d))!=null)return y}}Lf=r,Qv=function(c,p){var h=c._chartsMap,v=c._scheduler;p.eachSeries(function(d){v.updateStreamModes(d,h[d.__viewId])})},$v=function(c,p){var h=this,v=this.getModel(),d=c.type,m=c.escapeConnect,g=Nf[d],y=(g.update||\"update\").split(\":\"),_=y.pop(),x=y[0]!=null&&Tt(y[0]);this[We]=!0,Qa(this);var S=[c],T=!1;c.batch&&(T=!0,S=R(c.batch,function(N){return N=te(P({},N),c),N.batch=null,N}));var w=[],A,E=[],C=g.nonRefinedEventType,D=yu(c),O=Ih(c);if(O&&Ah(this._api),b(S,function(N){var Y=g.action(N,v,h._api);if(g.refineEvent?E.push(Y):A=Y,A=A||P({},N),A.type=C,w.push(A),O){var X=Gp(c),Z=X.queryOptionMap,ie=X.mainTypeSpecified,J=ie?Z.keys()[0]:\"series\";If(h,_,N,J),$t(h)}else D?(If(h,_,N,\"series\"),$t(h)):x&&If(h,_,N,x.main,x.sub)}),_!==\"none\"&&!O&&!D&&!x)try{this[$e]?(Gn(this),ii.update.call(this,c),this[$e]=null):ii[_].call(this,c)}catch(N){throw this[We]=!1,N}if(T?A={type:C,escapeConnect:m,batch:w}:A=w[0],this[We]=!1,!p){var M=void 0;if(g.refineEvent){var I=g.refineEvent(E,c,v,this._api).eventContent;Re(H(I)),M=te({type:g.refinedEventType},I),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var z=this._messageCenter;z.trigger(A.type,A),M&&z.trigger(M.type,M)}},Ka=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();$v.call(this,h,c)}},ja=function(c){!c&&this.trigger(\"updated\")},r1=function(c,p){c.on(\"rendered\",function(h){p.trigger(\"rendered\",h),c.animation.isFinished()&&!p[$e]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger(\"finished\"):c.refresh()})},i1=function(c,p){c.on(\"mouseover\",function(h){var v=h.target,d=ws(v,$o);d&&(B_(d,h,p._api),$t(p))}).on(\"mouseout\",function(h){var v=h.target,d=ws(v,$o);d&&(z_(d,h,p._api),$t(p))}).on(\"click\",function(h){var v=h.target,d=ws(v,function(y){return be(y).dataIndex!=null},!0);if(d){var m=d.selected?\"unselect\":\"select\",g=be(d);p._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function n(c){var p=[],h=[],v=!1;if(c.eachComponent(function(y,_){var x=_.get(\"zlevel\")||0,S=_.get(\"z\")||0,T=_.getZLevelKey();v=v||!!T,(y===\"series\"?h:p).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:T})}),v){var d=p.concat(h),m,g;en(d,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),b(d,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;m!=null&&(x=Math.max(m,x)),S?(x===m&&S!==g&&x++,g=S):g&&(x===m&&x++,g=\"\"),m=x,_.setZLevel(x)})}}Jv=function(c,p,h,v,d){n(p),n1(c,p,h,v,d),b(c._chartsViews,function(m){m.__alive=!1}),Pf(c,p,h,v,d),b(c._chartsViews,function(m){m.__alive||m.remove(p,h)})},n1=function(c,p,h,v,d,m){b(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,h,v),l(y,g),f(y,g)})},Pf=function(c,p,h,v,d,m){var g=c._scheduler;d=P(d||{},{updatedSeries:p.getSeries()}),Ft.trigger(\"series:beforeupdate\",p,h,d);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;g.updatePayload(S,v),u(_,x),m&&m.get(_.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get(\"silent\"),s(_,x),Dh(_)}),g.unfinished=y||g.unfinished,Ft.trigger(\"series:layoutlabels\",p,h,d),Ft.trigger(\"series:transition\",p,h,d),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(c,p),Ft.trigger(\"series:afterupdate\",p,h,d)},$t=function(c){c[qv]=!0,c.getZr().wakeUp()},Qa=function(c){c[Of]=(c[Of]+1)%1e6},o1=function(c){c[qv]&&(c.getZr().storage.traverse(function(p){Dn(p)||a(p)}),c[qv]=!1)};function a(c){for(var p=[],h=c.currentStates,v=0;v<h.length;v++){var d=h[v];d===\"emphasis\"||d===\"blur\"||d===\"select\"||p.push(d)}c.selected&&c.states.select&&p.push(\"select\"),c.hoverState===Xo&&c.states.emphasis?p.push(\"emphasis\"):c.hoverState===Zo&&c.states.blur&&p.push(\"blur\"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type===\"canvas\"){var v=h.storage,d=0;v.traverse(function(g){g.isGroup||d++});var m=d>F(p.get(\"hoverLayerThreshold\"),lf.hoverLayerThreshold)&&!me.node&&!me.worker;(c._usingTHL||m)&&(p.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==ls&&(x.hoverLayer=m?Zh:Wh)})}}),c._usingTHL=m)}}function s(c,p){var h=c.get(\"blendMode\")||null;p.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function l(c,p){if(!c.preventAutoZ){var h=Mi(c);p.eachRendered(function(v){return $h(v,h.z,h.zlevel),!0})}}function u(c,p){p.eachRendered(function(h){if(!Dn(h)){var v=h.getTextContent(),d=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel(\"stateAnimation\"),v=c.isAnimationEnabled(),d=h.get(\"duration\"),m=d>0?{duration:d,delay:h.get(\"delay\"),easing:h.get(\"easing\")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Dn(g))return;if(g instanceof ne&&G_(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=m;var _=g.getTextContent(),x=g.getTextGuideLine();_&&(_.stateTransition=m),x&&(x.stateTransition=m)}g.__dirty&&a(g)}})}a1=function(c){return new((function(p){L(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return c._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){bn(v,d),$t(c)},h.prototype.leaveEmphasis=function(v,d){wn(v,d),$t(c)},h.prototype.enterBlur=function(v){N_(v),$t(c)},h.prototype.leaveBlur=function(v){wh(v),$t(c)},h.prototype.enterSelect=function(v){Ch(v),$t(c)},h.prototype.leaveSelect=function(v){Eh(v),$t(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getECUpdateCycleVersion=function(){return c[Of]},h.prototype.usingTHL=function(){return c._usingTHL},h})(pu))(c)},y1=function(c){function p(h,v){for(var d=0;d<h.length;d++){var m=h[d];m[Kv]=v}}b(ed,function(h,v){c._messageCenter.on(v,function(d){if(s1[c.group]&&c[Kv]!==t1){if(d&&d.escapeConnect)return;var m=c.makeActionFromEvent(d),g=[];b(As,function(y){y!==c&&y.group===c.group&&g.push(y)}),p(g,t1),b(g,function(y){y[Kv]!==CI&&y.dispatchAction(m)}),p(g,EI)}})})}})(),e})(tt),od=_1.prototype;od.on=h1(\"on\");od.off=h1(\"off\");od.one=function(t,e,r){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(t,n)}this.on.call(this,t,n,r)};var AI=[\"click\",\"dblclick\",\"mouseover\",\"mouseout\",\"mousemove\",\"mousedown\",\"mouseup\",\"globalout\",\"contextmenu\"];var Nf={},ed={},td={},rd=[],id=[],Rf=[],x1={},nd={},As={},s1={},DI=+new Date-0,VG=+new Date-0,sd=\"_echarts_instance_\";function S1(t,e,r){var i=!(r&&r.ssr);if(i){var n=MI(t);if(n)return n}var a=new _1(t,e,r);return a.id=\"ec_\"+DI++,As[a.id]=a,i&&Yp(t,sd,a.id),y1(a),Ft.trigger(\"afterinit\",a),a}function MI(t){return As[Ay(t,sd)]}function T1(t,e){x1[t]=e}function ld(t){se(id,t)<0&&id.push(t)}function ud(t,e){fd(rd,t,e,_I)}function b1(t){Bf(\"afterinit\",t)}function w1(t){Bf(\"afterupdate\",t)}function Bf(t,e){Ft.on(t,e)}function ni(t,e,r){var i,n,a,o,s;G(e)&&(r=e,e=\"\"),H(t)?(i=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(i=t,n=e);function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;Nf[i]||(Re(e1.test(i)&&e1.test(n)),a&&Re(n!==i),Nf[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:r,refineEvent:a},td[n]=1,a&&s&&(td[u]=1),ed[u]=i)}function C1(t,e){cs.register(t,e)}function E1(t,e){fd(Rf,t,e,u1,\"layout\",!0)}function ki(t,e){fd(Rf,t,e,f1,\"visual\",!0)}var l1=[];function fd(t,e,r,i,n,a){if((G(e)||H(e))&&(r=e,e=i),!(se(l1,r)>=0)){l1.push(r);var o=Uv.wrapStageHandler(r,n);o.__prio=e,o.__raw=r,t.push(o)}}function cd(t,e){nd[t]=e}function A1(t,e,r){var i=ES(\"registerMap\");i&&i(t,e,r)}var D1=Vx;ki(ad,sS);ki(kf,lS);ki(kf,uS);ki(ad,_S);ki(kf,xS);ki(c1,$S);ld(pf);ud(mI,Dx);cd(\"default\",zv);ni({type:Di,event:Di,update:Di},Ce);ni({type:qo,event:qo,update:qo},Ce);ni({type:Ko,event:du,update:Ko,action:Ce,refineEvent:pd,publishNonRefinedEvent:!0});ni({type:vu,event:du,update:vu,action:Ce,refineEvent:pd,publishNonRefinedEvent:!0});ni({type:jo,event:du,update:jo,action:Ce,refineEvent:pd,publishNonRefinedEvent:!0});function pd(t,e,r,i){return{eventContent:{selected:F_(r),isFromClick:e.isFromClick||!1}}}T1(\"default\",{});T1(\"dark\",mS);function Ds(t){return t==null?0:t.length||1}function M1(t){return t}var II=(function(){function t(e,r,i,n,a,o){this._old=e,this._new=r,this._oldKeyGetter=i||M1,this._newKeyGetter=n||M1,this.context=a,this._diffModeMultiple=o===\"multiple\"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?\"_executeMultiple\":\"_executeOneToOne\"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,i={},n=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,n,\"_oldKeyGetter\"),this._initIndexMap(r,i,a,\"_newKeyGetter\");for(var o=0;o<e.length;o++){var s=n[o],l=i[s],u=Ds(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,\"_oldKeyGetter\"),this._initIndexMap(r,n,o,\"_newKeyGetter\");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],c=Ds(u),p=Ds(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(e,r){for(var i=0;i<e.length;i++){var n=e[i],a=r[n],o=Ds(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[n]=null}},t.prototype._initIndexMap=function(e,r,i,n){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s=\"_ec_\"+this[n](e[o],o);if(a||(i[o]=s),!!r){var l=r[s],u=Ds(l);u===0?(r[s]=o,a&&i.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),O1=II;var LI=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function I1(t,e){var r={},i=r.encode={},n=U(),a=[],o=[],s={};b(t.dimensions,function(p){var h=t.getDimensionInfo(p),v=h.coordDim;if(v){var d=h.coordDimIndex;hd(i,v)[d]=p,h.isExtraCoord||(n.set(v,1),PI(h.type)&&(a[0]=p),hd(s,v)[d]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}cu.each(function(m,g){var y=hd(i,g),_=h.otherDims[g];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};n.each(function(p,h){var v=i[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=R(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new LI(s,e),r}function hd(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function L1(t){return t===\"category\"?\"ordinal\":t===\"time\"?\"time\":\"float\"}function PI(t){return!(t===\"ordinal\"||t===\"time\")}var NI=(function(){function t(e){this.otherDims={},e!=null&&P(this,e)}return t})(),$a=NI;var RI=q(),kI={float:\"f\",int:\"i\",ordinal:\"o\",number:\"n\",time:\"t\"},vd=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=dd(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return F(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=vf(this.source),i=!md(e),n=\"\",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=r?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=i?l.replace(/\\`/g,\"`1\").replace(/\\$/g,\"`2\"):l),n+=\"$\",n+=kI[u]||\"f\",f&&(n+=f.uid),n+=\"$\"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,n].join(\"$$\");return{dimensions:a,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}e.push(n)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function zf(t){return t instanceof vd}function Ms(t){for(var e=U(),r=0;r<(t||[]).length;r++){var i=t[r],n=H(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,r)}return e}function dd(t){var e=RI(t);return e.dimNameMap||(e.dimNameMap=Ms(t.dimensionsDefine))}function md(t){return t>30}var Os=H,Bi=R,BI=typeof Int32Array>\"u\"?Array:Int32Array,zI=\"e\\0\\0\",P1=-1,UI=[\"hasItemOption\",\"_nameList\",\"_idList\",\"_invertedIndicesMap\",\"_dimSummary\",\"userOutput\",\"_rawData\",\"_dimValueGetter\",\"_nameDimIdx\",\"_idDimIdx\",\"_nameRepeatCount\"],FI=[\"_approximateExtent\"],N1,Uf,Is,Ls,gd,Ps,yd,VI=(function(){function t(e,r){this.type=\"list\",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[\"cloneShallow\",\"downSample\",\"minmaxDownSample\",\"lttbDownSample\",\"map\"],this.CHANGABLE_METHODS=[\"filterSelf\",\"selectRange\"],this.DOWNSAMPLE_METHODS=[\"downSample\",\"minmaxDownSample\",\"lttbDownSample\"];var i,n=!1;zf(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||[\"x\",\"y\"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],p=B(c)?new $a({name:c}):c instanceof $a?c:new $a(c),h=p.name;p.type=p.type||\"float\",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var v=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,u[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),n&&(p.storeDimIndex=f),v.itemName===0&&(this._nameDimIdx=p.storeDimIndex),v.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=U();b(o,function(m){d.set(a[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(fe(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,i=r.encode[e];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,i){var n=this,a;if(e instanceof _s&&(a=e),!a){var o=this.dimensions,s=Ha(e)||He(e)?new mf(e,o.length):e;a=new _s;var l=Bi(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=I1(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var i=this._store.appendValues(e,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=r[l],o&&yd(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Rt&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Ke;if(l&&!n.pure)for(var u=[],f=e;f<r;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&Sy(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=Pt(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=Pt(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)yd(this,f);N1(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Os(e)?P(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=Is(this,this._nameDimIdx,r)),i==null&&(i=\"\"),i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},t.prototype.getId=function(e){return Uf(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var i=this,n=this._store;return k(e)?n.getValues(Bi(e,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var i=e&&this._invertedIndicesMap[e],n=i&&i[r];return n==null||isNaN(n)?P1:n},t.prototype.each=function(e,r,i){\"use strict\";G(e)&&(i=r,r=e,e=[]);var n=i||this,a=Bi(Ls(e),this._getStoreDimIndex,this);this._store.each(a,n?$(r,n):r)},t.prototype.filterSelf=function(e,r,i){\"use strict\";G(e)&&(i=r,r=e,e=[]);var n=i||this,a=Bi(Ls(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?$(r,n):r),this},t.prototype.selectRange=function(e){\"use strict\";var r=this,i={},n=K(e),a=[];return b(n,function(o){var s=r._getStoreDimIndex(o);i[s]=e[o],a.push(s)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(e,r,i){\"use strict\";G(e)&&(i=r,r=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(r&&r.apply(this,arguments))},i),n},t.prototype.map=function(e,r,i,n){\"use strict\";var a=i||n||this,o=Bi(Ls(e),this._getStoreDimIndex,this),s=Ps(this);return s._store=this._store.map(o,a?$(r,a):r),s},t.prototype.modify=function(e,r,i,n){var a=this,o=i||n||this,s=Bi(Ls(e),this._getStoreDimIndex,this);this._store.modify(s,o?$(r,o):r)},t.prototype.downSample=function(e,r,i,n){var a=Ps(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,i,n),a},t.prototype.minmaxDownSample=function(e,r){var i=Ps(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=Ps(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),i},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,i=this.getRawDataItem(e);return new Ye(i,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new O1(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Uf(e,i)},function(i){return Uf(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Os(e)?P(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e],n=i&&i[r];return n??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var a=n[r];return a==null&&(a=this.getVisual(r),k(a)?a=a.slice():Os(a)&&(a=P({},a)),n[r]=a),a},t.prototype.setItemVisual=function(e,r,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Os(r)?P(n,r):n[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Os(e)?P(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,i){this._itemLayouts[e]=i?P(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var i=this.hostModel&&this.hostModel.seriesIndex;T_(i,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){b(this._graphicEls,function(i,n){i&&e&&e.call(r,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Bi(this.dimensions,this._getDimInfo,this),this.hostModel)),gd(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];G(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(hl(arguments)))})},t.internalField=(function(){N1=function(e){var r=e._invertedIndicesMap;b(r,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=r[n]=new BI(o.categories.length);for(var l=0;l<i.length;l++)i[l]=P1;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},Is=function(e,r,i){return Pt(e._getCategory(r,i),null)},Uf=function(e,r){var i=e._idList[r];return i==null&&e._idDimIdx!=null&&(i=Is(e,e._idDimIdx,r)),i==null&&(i=zI+r),i},Ls=function(e){return k(e)||(e=e!=null?[e]:[]),e},Ps=function(e){var r=new t(e._schema?e._schema:Bi(e.dimensions,e._getDimInfo,e),e.hostModel);return gd(r,e),r},gd=function(e,r){b(UI.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(e[i]=r[i])}),e.__wrappedMethods=r.__wrappedMethods,b(FI,function(i){e[i]=Q(r[i])}),e._calculationInfo=P({},r._calculationInfo)},yd=function(e,r){var i=e._nameList,n=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[r],l=n[r];if(s==null&&a!=null&&(i[r]=s=Is(e,a,r)),l==null&&o!=null&&(n[r]=l=Is(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+=\"__ec__\"+f),n[r]=l}}})(),t})(),R1=VI;function _d(t,e){Ha(t)||(t=Ga(t)),e=e||{};var r=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],n=U(),a=[],o=HI(t,r,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&md(o),l=i===t.dimensionsDefine,u=l?dd(t):Ms(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=U(f),p=new Lv(o),h=0;h<p.length;h++)p[h]=-1;function v(E){var C=p[E];if(C<0){var D=i[E],O=H(D)?D:{name:D},M=new $a,I=O.name;I!=null&&u.get(I)!=null&&(M.name=M.displayName=I),O.type!=null&&(M.type=O.type),O.displayName!=null&&(M.displayName=O.displayName);var z=a.length;return p[E]=z,M.storeDimIndex=E,a.push(M),M}return a[C]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(E,C){var D=De(E).slice();if(D.length===1&&!B(D[0])&&D[0]<0){c.set(C,!1);return}var O=c.set(C,[]);b(D,function(M,I){var z=B(M)?u.get(M):M;z!=null&&z<o&&(O[I]=z,m(v(z),C,I))})});var d=0;b(r,function(E){var C,D,O,M;if(B(E))C=E,M={};else{M=E,C=M.name;var I=M.ordinalMeta;M.ordinalMeta=null,M=P({},M),M.ordinalMeta=I,D=M.dimsDef,O=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var z=c.get(C);if(z!==!1){if(z=De(z),!z.length)for(var N=0;N<(D&&D.length||1);N++){for(;d<o&&v(d).coordDim!=null;)d++;d<o&&z.push(d++)}b(z,function(Y,X){var Z=v(Y);if(l&&M.type!=null&&(Z.type=M.type),m(te(Z,M),C,X),Z.name==null&&D){var ie=D[X];!H(ie)&&(ie={name:ie}),Z.name=Z.displayName=ie.name,Z.defaultTooltip=ie.defaultTooltip}O&&te(Z.otherDims,O)})}});function m(E,C,D){cu.get(C)!=null?E.otherDims[C]=D:(E.coordDim=C,E.coordDimIndex=D,n.set(C,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var x=g||\"value\";function S(E){E.name==null&&(E.name=E.coordDim)}if(s)b(a,function(E){S(E)}),a.sort(function(E,C){return E.storeDimIndex-C.storeDimIndex});else for(var T=0;T<o;T++){var w=v(T),A=w.coordDim;A==null&&(w.coordDim=GI(x,n,_),w.coordDimIndex=0,(!g||y<=0)&&(w.isExtraCoord=!0),y--),S(w),w.type==null&&(uf(t,T)===gt.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type=\"ordinal\")}return wa(a,function(E){return E.name},function(E,C){C>0&&(E.name=E.name+(C-1))}),new vd({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function HI(t,e,r,i){var n=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,i||0);return b(e,function(a){var o;H(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function GI(t,e,r){if(r||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var YI=(function(){function t(e){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=e}return t})();function k1(t){var e=t.get(\"coordinateSystem\"),r=new YI(e),i=WI[e];if(i)return i(t,r,r.axisMap,r.categoryAxisMap),r}var WI={cartesian2d:function(t,e,r,i){var n=t.getReferringComponents(\"xAxis\",ke).models[0],a=t.getReferringComponents(\"yAxis\",ke).models[0];e.coordSysDims=[\"x\",\"y\"],r.set(\"x\",n),r.set(\"y\",a),Ja(n)&&(i.set(\"x\",n),e.firstCategoryDimIndex=0),Ja(a)&&(i.set(\"y\",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,i){var n=t.getReferringComponents(\"singleAxis\",ke).models[0];e.coordSysDims=[\"single\"],r.set(\"single\",n),Ja(n)&&(i.set(\"single\",n),e.firstCategoryDimIndex=0)},polar:function(t,e,r,i){var n=t.getReferringComponents(\"polar\",ke).models[0],a=n.findAxisModel(\"radiusAxis\"),o=n.findAxisModel(\"angleAxis\");e.coordSysDims=[\"radius\",\"angle\"],r.set(\"radius\",a),r.set(\"angle\",o),Ja(a)&&(i.set(\"radius\",a),e.firstCategoryDimIndex=0),Ja(o)&&(i.set(\"angle\",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,i){e.coordSysDims=[\"lng\",\"lat\"]},parallel:function(t,e,r,i){var n=t.ecModel,a=n.getComponent(\"parallel\",t.get(\"parallelIndex\")),o=e.coordSysDims=a.dimensions.slice();b(a.parallelAxisIndex,function(s,l){var u=n.getComponent(\"parallelAxis\",s),f=o[l];r.set(f,u),Ja(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,i){var n=t.getReferringComponents(\"matrix\",ke).models[0];e.coordSysDims=[\"x\",\"y\"];var a=n.getDimensionModel(\"x\"),o=n.getDimensionModel(\"y\");r.set(\"x\",a),r.set(\"y\",o),i.set(\"x\",a),i.set(\"y\",o)}};function Ja(t){return t.get(\"type\")===\"category\"}function B1(t,e,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;ZI(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get(\"stack\")),u,f,c,p,h=!0;function v(x){return x.type!==\"ordinal\"&&x.type!==\"time\"}if(b(a,function(x,S){B(x)&&(a[S]=x={name:x}),v(x)||(h=!1)}),b(a,function(x,S){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!f&&v(x)&&(!h||x.coordDim!==\"x\"&&x.coordDim!==\"angle\")&&(!n||n===x.coordDim)&&(f=x))}),f&&!i&&!u&&(i=!0),f){c=\"__\\0ecstackresult_\"+t.id,p=\"__\\0ecstackedover_\"+t.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,m=f.type,g=0;b(a,function(x){x.coordDim===d&&g++});var y={name:c,coordDim:d,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:p,coordDim:p,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function ZI(t){return!zf(t.schema)}function Yn(t,e){return!!e&&e===t.getCalculationInfo(\"stackedDimension\")}function z1(t,e){return Yn(t,e)?t.getCalculationInfo(\"stackResultDimension\"):e}function XI(t,e){var r=t.get(\"coordinateSystem\"),i=cs.get(r),n;return e&&e.coordSysDims&&(n=R(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get(\"type\");o.type=L1(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||[\"x\",\"y\"]),n}function qI(t,e,r){var i,n;return r&&b(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(t[i].otherDims.itemName=0),i}function KI(t,e,r){r=r||{};var i=e.getSourceManager(),n,a=!1;t?(a=!0,n=Ga(t)):(n=i.getSource(),a=n.sourceFormat===Ke);var o=k1(e),s=XI(e,o),l=r.useEncodeDefaulter,u=G(l)?l:l?Me(fx,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=_d(n,f),p=qI(c.dimensions,r.createInvertedIndices,o),h=a?null:i.getSharedDataStore(c),v=B1(e,{schema:c,store:h}),d=new R1(c,e);d.setCalculationInfo(v);var m=p!=null&&jI(n)?function(g,y,_,x){return x===p?_:this.defaultDimValueGetter(g,y,_,x)}:null;return d.hasItemOption=!1,d.initData(a?n:h,null,m),d}function jI(t){if(t.sourceFormat===Ke){var e=QI(t.data||[]);return!k(Xr(e))}}function QI(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var Ff=KI;var U1=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();bi(U1);var _t=U1;var $I=0,JI=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++$I,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,n=i&&R(i,eL);return new t({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,i=this._needCollect;if(!B(e)&&!i)return e;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var n=this._getOrCreateMap();return r=n.get(e),r==null&&(i?(r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},t})();function eL(t){return H(t)&&t.value!=null?t.value:t+\"\"}var Ns=JI;var Et=0,eo=1,tL={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},V1=K(tL),to=2,H1=3;function ro(t,e,r){var i;t=t||{};var n=Ie();if(n){var a=n.createBreakScaleMapper(e,r);a.hasBreaks()&&(b(V1,function(o){a[o]&&(t[o]=$(a[o],a))}),i=a)}return i==null&&rL(t,r),{brk:i,mapper:t}}function Vf(t,e){b(V1,function(r){t[r]=e[r]})}function Hf(t,e){t.freeze=Ce}function ai(t){return t.getExtentUnsafe(Et,to)}function Wn(t,e){return t.getExtentUnsafe(eo,e)||t.getExtentUnsafe(Et,e)}function G1(t){var e=Wn(t,H1);return e[1]-e[0]}function io(t){var e=t.getExtentUnsafe(Et,H1);return e[1]-e[0]}function rL(t,e){var r=t||{},i=[];return r._extents=i,i[Et]=e?e.slice():rt(),P(r,iL),r}var iL={needTransform:function(){return!1},normalize:function(t){var e=this._extents[eo]||this._extents[Et];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[eo]||this._extents[Et];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Wn(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Et].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){F1(this._extents,Et,t,e)},setExtent2:function(t,e,r){var i=this._extents;i[t]||(i[t]=i[Et].slice()),F1(i,t,e,r)},freeze:function(){}};function F1(t,e,r,i){qr(r,i)&&(t[e][0]=r,t[e][1]=i)}function Gf(t){return no(t)||Rr(t)}function no(t){return t.type===\"interval\"}function Nr(t){return t.type===\"time\"}function Rr(t){return t.type===\"log\"}function Ze(t){return t.type===\"ordinal\"}function Y1(t){var e=$l(t),r=un(10,e),i=It(t/r);return i?i===2?i=3:i===3?i=5:i*=2:i=1,le(i*r,-e)}function dr(t){return sr(t)+2}function Rs(t,e){return xa(t)/xa(e)}function Yf(t,e,r){var i=r&&r.lookup;if(i){for(var n=0;n<i.from.length;n++)if(t===i.from[n])return i.to[n]}return un(e,t)}function Wf(t,e,r){var i=t.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var a=Ae(i[0]);e[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!ur(i[0])||!ur(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function W1(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function ks(t,e){return t=t||e,It(ce(t,1))}function Zf(t,e,r){var i=ai(t),n=i[0],a=t.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&a/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==i[0]&&l(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var Z1=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type=\"ordinal\",i.parse=e.parse,Vf(i,e.decoratedMethods);var n=r.ordinalMeta;n||(n=new Ns({})),k(n)&&(n=new Ns({categories:R(n,function(o){return H(o)?o.value:o})})),i._ordinalMeta=n;var a=ro(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,Hf(i,a.mapper),i}return e.parse=function(r){return r==null?r=NaN:B(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=It(r),r},e.prototype.getTicks=function(){var r=[];return Zf(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Fe(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?\"\":n+\"\"}},e.prototype.count=function(){var r=ai(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type=\"ordinal\",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(It(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,n){return this._mapper.setExtent2(r,i,n)}},e})(_t);_t.registerClass(Z1);var X1=Z1;function ao(t,e,r,i){for(var n=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var f=0,c=[],p=l.value-u.value,h=p/e,v=dr(h);f<e-1;){var d=le(u.value+(f+1)*h,v);d>o[0]&&d<o[1]&&c.push(d),f++}var m=Ie();m&&m.pruneTicksByBreak(\"auto\",c,r,function(g){return g},i,o),a.push(c)}}return a}var q1=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type=\"interval\",i.parse=e.parse,r=r||{};var n=Vu(i,r),a=ro(i,n,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(r){return r==null||r===\"\"?NaN:Number(r)},e.prototype.getConfig=function(){return Q(this._cfg)},e.prototype.setConfig=function(r){var i=ai(this);this._cfg=r=Q(r),r.niceExtent==null&&(r.niceExtent=i.slice()),r.intervalPrecision==null&&(r.intervalPrecision=dr(r.interval))},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,a=ai(this),o=i.niceExtent,s=i.intervalPrecision,l=Ie(),u=this.brk,f=l&&u,c=[];if(!n)return c;if(r.breakTicks===\"only_break\"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?le(o[0]-n,s):a[0]});for(var h=function(_,x){return It((x-_)/n)},v=i.intervalCount,d=o[0],m=0;;m++){if(v==null){if(d>o[1]||!isFinite(d)||!isFinite(o[1]))break}else{if(m>v)break;d=Fe(d,o[1]),m===v&&(d=o[1])}if(c.push({value:d}),d=le(d+n,s),u){var g=u.calcNiceTickMultiple(d,h);g>=0&&(d=le(d+g*n,s))}if(c.length>0&&d===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?le(y+n,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},i.interval,a),f&&r.breakTicks!==\"none\"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return ao(this,r,Nn(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return\"\";var n=i&&i.precision;n==null?n=sr(r.value)||0:n===\"auto\"&&(n=this._cfg.intervalPrecision);var a=le(r.value,n,!0);return Q0(a)},e.type=\"interval\",e})(_t);_t.registerClass(q1);var Zn=q1;var nL=function(t,e,r,i){for(;r<i;){var n=r+i>>>1;t[n][1]<e?r=n+1:i=n}return r},j1=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type=\"time\",i.parse=e.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;var n=Vu(i,r),a=ro(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(r){return uv(r.value,lv[X0(za(this._minLevelUnit))]||lv.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,n){return q0(r,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=ai(this),a=Ie(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&r.breakTicks===\"only_break\")return Ie().addBreaksToTicks(l,o.breaks,n),l;l=cL(this._minLevelUnit,this._approxInterval,u,n,io(this),o);var f=wt.length-1,c=0;return b(l,function(p){p.time&&(f=Math.min(f,se(wt,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Ie().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,n),s&&r.breakTicks!==\"none\"&&Ie().addBreaksToTicks(l,o.breaks,n,function(p){for(var h=Math.max(se(wt,kn(p.vmin,u)),se(wt,kn(p.vmax,u))),v=0,d=0;d<wt.length;d++)if(!Q1(wt[d],p.vmin,p.vmax,u)){v=d;break}var m=Math.min(v,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:wt[g],upperTimeUnit:wt[m]}}),l},e.prototype.getMinorTicks=function(r){return ao(this,r,Nn(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return fe(r)?Math.round(r):+Wr(r)},e.type=\"time\",e})(_t),Xf=[[\"second\",Yu],[\"minute\",Wu],[\"hour\",Ba],[\"quarter-day\",Ba*6],[\"half-day\",Ba*12],[\"day\",Bt*1.2],[\"half-week\",Bt*3.5],[\"week\",Bt*7],[\"month\",Bt*31],[\"quarter\",Bt*95],[\"half-year\",sv/2],[\"year\",sv]];function Q1(t,e,r,i){return Zu(new Date(e),t,i).getTime()===Zu(new Date(r),t,i).getTime()}function aL(t,e){return t/=Bt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function oL(t){var e=30*Bt;return t/=e,t>6?6:t>3?3:t>2?2:1}function sL(t){return t/=Ba,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function K1(t,e){return t/=e?Wu:Yu,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function lL(t){return ce(fn(t,!0),1)}function uL(t,e,r){var i=Math.max(0,se(wt,e)-1);return Zu(new Date(t),wt[i],r).getTime()}function fL(t,e){var r=new Date(0);r[t](1);var i=r.getTime();r[t](1+e);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function cL(t,e,r,i,n,a){var o=3e3,s=Y0,l=0;function u(N,Y,X,Z,ie,J,ae){for(var j=fL(ie,N),W=Y,ue=new Date(W);W<X&&W<=i[1]&&(ae.push({value:W}),!(l++>o));)if(ue[ie](ue[Z]()+N),W=ue.getTime(),a){var he=a.calcNiceTickMultiple(W,j);he>0&&(ue[ie](ue[Z]()+he*N),W=ue.getTime())}ae.push({value:W,notAdd:W>i[1]})}function f(N,Y,X){var Z=[],ie=!Y.length;if(!Q1(za(N),i[0],i[1],r)){ie&&(Y=[{value:uL(i[0],N,r)},{value:i[1]}]);for(var J=0;J<Y.length-1;J++){var ae=Y[J].value,j=Y[J+1].value;if(ae!==j){var W=void 0,ue=void 0,he=void 0,Je=!1;switch(N){case\"year\":W=Math.max(1,Math.round(e/Bt/365)),ue=fv(r),he=K0(r);break;case\"half-year\":case\"quarter\":case\"month\":W=oL(e),ue=Xu(r),he=cv(r);break;case\"week\":case\"half-week\":case\"day\":W=aL(e,31),ue=qu(r),he=pv(r),Je=!0;break;case\"half-day\":case\"quarter-day\":case\"hour\":W=sL(e),ue=Ku(r),he=hv(r);break;case\"minute\":W=K1(e,!0),ue=ju(r),he=vv(r);break;case\"second\":W=K1(e,!1),ue=Qu(r),he=dv(r);break;case\"millisecond\":W=lL(e),ue=$u(r),he=mv(r);break}j>=i[0]&&ae<=i[1]&&u(W,ae,j,ue,he,Je,Z),N===\"year\"&&X.length>1&&J===0&&X.unshift({value:X[0].value-W})}}for(var J=0;J<Z.length;J++)X.push(Z[J])}}for(var c=[],p=[],h=0,v=0,d=0;d<s.length;++d){var m=za(s[d]);if(Z0(s[d])){f(s[d],c[c.length-1]||[],p);var g=s[d+1]?za(s[d+1]):null;if(m!==g){if(p.length){v=h,p.sort(function(N,Y){return N.value-Y.value});for(var y=[],_=0;_<p.length;++_){var x=p[_].value;(_===0||p[_-1].value!==x)&&(y.push(p[_]),x>=i[0]&&x<=i[1]&&h++)}var S=n/e;if(h>S*1.5&&v>S/1.5||(c.push(y),h>S||t===s[d]))break}p=[]}}}for(var T=Pe(R(c,function(N){return Pe(N,function(Y){return Y.value>=i[0]&&Y.value<=i[1]&&!Y.notAdd})}),function(N){return N.length>0}),w=T.length-1,A=[],d=0;d<T.length;++d)for(var E=T[d],C=0;C<E.length;++C){var D=kn(E[C].value,r);A.push({value:E[C].value,time:{level:w-d,upperTimeUnit:D,lowerTimeUnit:D}})}wa(A,Oy,null),A.sort(function(N,Y){return N.value-Y.value});var O=A[0],M=A[A.length-1],I=kn(i[0],r),z=kn(i[1],r);return(!O||O.value>i[0])&&A.unshift({value:i[0],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),(!M||M.value<i[1])&&A.push({value:i[1],time:{level:0,upperTimeUnit:z,lowerTimeUnit:z},notNice:!0}),A}var $1=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Bt,r[1]+=Bt),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-Bt}t.setExtent(r[0],r[1]);var n=ks(e.splitNumber,10),a=io(t)/n,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=Xf.length,u=Math.min(nL(Xf,a,0,l),l-1),f=Xf[u][1],c=Xf[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};_t.registerClass(j1);var J1=j1;var qf=0,Kf=1,pL=2,iT=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type=\"log\",i.parse=Zn.parse,i.base=r.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[qf]=n[Kf]=a[qf]=a[Kf]=NaN,Vf(i,e.mapperMethods);var s=Ie(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},pL,u),i.powStub=new Zn({breakParsed:u.original}),i.intervalStub=new Zn({breakParsed:u.transformed}),Hf(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,n=this.powStub,a=Ie(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return R(o.getTicks(r||{}),function(f){var c=f.value,p=Yf(c,i,u),h;if(a){var v=a.getTicksBreakOutwardTransform(this,f,Nn(n),this._lookup);v&&(h=v.vBreak,p=v.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return ao(this,r,Nn(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},e.type=\"log\",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(Rs(r,this.base))},scale:function(r){return Yf(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=Rs(r,this.base),i&&i.depth===to?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return eT.depth=n,tT.lookup=this._lookup,Yf(n===to?r:this.intervalStub.transformOut(r,eT),this.base,tT)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(Et,r,i)},setExtent2:function(r,i,n){if(!(!qr(i,n)||i<=0||n<=0)){var a=rT,o=rT;if(r===Et){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[qf]=i,a[Kf]=n);var l=this.base;this.intervalStub.setExtent2(r,o[qf]=Rs(i,l),o[Kf]=Rs(n,l))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return qr(i[0],i[1])&&ht(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},e})(_t);_t.registerClass(iT);var eT={},tT={},rT=[],nT=iT;var jf={value:1,category:1,time:1,log:1};var aT=q();function oT(t){var e=t.get(\"type\");return(e==null||!Ue(jf,e)&&!_t.getClass(e))&&(e=\"value\"),e}function sT(t,e,r){var i=Ie(),n;switch(i&&(n=xd(t,e,r)),e){case\"category\":return new X1({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:rt()});case\"time\":return new J1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get(\"useUTC\"),breakOption:n});case\"log\":return new nT({logBase:t.get(\"logBase\"),breakOption:n});case\"value\":return new Zn({breakOption:n});default:return new(_t.getClass(e)||Zn)({})}}function lT(t,e,r){var i=r?Wn(t,null):t.getExtentUnsafe(Et,null),n=i[0],a=i[1];return qr(n,a)?n===e||a===e?vL:n<e&&a>e?hL:Qf:Qf}var hL=1,vL=2,Qf=3;function uT(t){aT(t).noOnMyZero=!0}function fT(t){return aT(t).noOnMyZero}function Bs(t){var e=t.getLabelModel().get(\"formatter\");if(t.type===\"time\"){var r=W0(e);return function(n,a){return t.scale.getFormattedLabel(n,a,r)}}else{if(B(e))return function(n){var a=t.scale.getLabel(n),o=e.replace(\"{value}\",a??\"\");return o};if(G(e)){if(t.type===\"category\")return function(n,a){return e($f(t,n),n.value-t.scale.getExtent()[0],null)};var i=Ie();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),e($f(t,n),a,o)}}else return function(n){return t.scale.getLabel(n)}}}function $f(t,e){var r=t.scale;return Ze(r)?r.getLabel(e):e.value}function Jf(t){var e=t.get(\"interval\");return e??\"auto\"}function cT(t){return t.type===\"category\"&&Jf(t.getLabelModel())===0}function pT(t,e){var r={};return b(t.mapDimensionsAll(e),function(i){r[z1(t,i)]=!0}),K(r)}function zi(t){return t===\"middle\"||t===\"center\"}function Xn(t){return t.getShallow(\"show\")}function xd(t,e,r){var i=t.get(\"breaks\",!0);if(i!=null){if(!Ie())return;if(!r||!dL(e)){if(0)var n;return}return i}}function dL(t){return t!==\"category\"}function ec(t,e,r,i,n,a){var o=Rr(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var l=t.powStub,u={depth:to},f=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=W1(r,i);e[0]&&!p[0]&&(f=n[0]),e[1]&&!p[1]&&(c=n[1]),l.setExtent(f,c)}s.setConfig(a)}function oi(t,e){return Ze(t)?t.getRawOrdinalNumber(e.value):e.value}function tc(t,e){return Ze(t)&&!!e.get(\"boundaryGap\")}var hT=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})();var n4=tu(),vT=\"|&\",zs=q(),gT=-2;var a4=q();function gL(t,e){var r=t.model,i=zs(qa(r.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(r.uid)}function yT(t,e){return xT(gL(t,e))}function _T(t,e){var r=[];return yL(t.model.ecModel,function(i){for(var n=0;n<e.length;n++)e[n]&&i.serByIdx[e[n].seriesIndex]&&r.push(xT(i))}),r}function yL(t,e){var r=zs(qa(t)).keyed;r&&r.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function xT(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function ST(t,e){var r=t.model.ecModel,i=zs(qa(r)).axSer;i&&_L(r,i.get(t.model.uid),e)}function _L(t,e,r){if(e)for(var i=0;i<e.length;i++){var n=e[i];t.isSeriesFiltered(n)||r(n)}}function Sd(t,e){var r=t.model,i=zs(qa(r.ecModel)).keys;i&&b(i.get(r.uid),function(n){if(0)var a;e(n)})}function Td(t,e,r){if(t){var i=e.ecModel,n=zs(qa(i)),a=t.model.uid;if(0)var o,s;var l=n.axSer||(n.axSer=U()),u=l.get(a)||l.set(a,[]);if(0)var f;u.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=mT.get(dT(c,p,r))||mT.get(dT(c,p,null));if(h){var v=n.keyed||(n.keyed=U()),d=n.keys||(n.keys=U()),m=h.key,g=v.get(m)||v.set(m,U()),y=g.get(a);y||(y=g.set(a,{axis:t,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(t),(d.get(a)||d.set(a,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function dT(t,e,r){return t+vT+F(e,!0)+vT+(r||\"\")}var mT=U();var xL=q(),wT=1,CT=2,SL=3,ET=(function(){function t(e,r,i,n,a){var o=Ze(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=i.slice();(no(e)||Rr(e)||Nr(e))&&(Zp(f,Us(e,r.get(\"dataMin\",!0))),Xp(f,Us(e,r.get(\"dataMax\",!0)))),My(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=r.get(\"min\",!0);h===\"dataMin\"?(c[0]=f[0],p[0]=!0):(c[0]=Us(e,G(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var v=r.get(\"max\",!0);v===\"dataMax\"?(c[1]=f[1],p[1]=!0):(c[1]=Us(e,G(v)?v({min:f[0],max:f[1]}):v),p[1]=c[1]!=null);var d=TL(e,r),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-d[0]*m),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+d[1]*m),!ur(c[0])&&(c[0]=NaN),!ur(c[1])&&(c[1]=NaN);var g=l||pi(c[0])||pi(c[1])||o&&!s,y=no(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var S=Us(e,r.get(\"startValue\",!0)),T=S!=null;!ht(S)&&n&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),ht(S)&&(T||!y||_)&&(S<c[0]&&!p[0]?(c[0]=S,p[0]=!0):S>c[1]&&!p[1]&&(c[1]=S,p[1]=!0));var w=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:S,isBlank:g,incl0:_,tggAxInv:x,ctnShp:a};TT(w,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,i=e.noZoomEffMM,n=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=n[1]=!0),TT(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function TT(t,e){var r=t.scale,i=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),ba(e))}function Us(t,e){return e==null?null:pi(e)?NaN:t.parse(e)}function TL(t,e){var r;if(Ze(t))r=[0,0];else{var i=e.get(\"boundaryGap\");typeof i==\"boolean\"&&(i=null),r=k(i)?i:[i,i]}return[bT(r[0]),bT(r[1])]}function bT(t){return Hr(typeof t==\"boolean\"?0:t,1)||0}function AT(t){var e=xL(t.scale);return e.extent||(e.extent=rt()),e}function DT(t,e){AT(t).dimIdxInCoord=e.get(t.dim)}function rc(t,e){var r=t.scale,i=t.model,n=t.dim;r.rawExtentInfo||bL(r,t,n,i,e)}function bL(t,e,r,i,n){var a=AT(e),o=a.extent,s=!1;ST(e,function(f){if(f.boxCoordinateSystem){var c=rf(f).coord,p=a.dimIdxInCoord;if(p>=0){if(k(c)){var h=c[p];h!=null&&!k(h)&&Vo(o,t.parse(h))}}}else if(f.coordinateSystem){var v=f.getData();if(v){var d=t.getFilter?t.getFilter():null;b(pT(v,r),function(m){Dy(o,v.getApproximateExtent(m,d))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=CL(t,e,i),u=new ET(t,i,o,s,l);MT(t,u,n),a.extent=null}function wL(t,e){var r=t.scale;MT(r,new ET(r,t.model,e,!1,!1),SL)}function MT(t,e,r){t.rawExtentInfo=e,e.from=r}var OT=U();function ic(t,e,r,i,n){t.rawExtentInfo||wL({scale:t,model:e},n||rt());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),i&&a.tggAxInv&&r&&!r.get(\"legacyMinMaxDontInverseAxis\")&&(i.inverse=!i.inverse),a}function CL(t,e,r){var i=tc(t,r),n=r.get(\"containShape\",!0);if(n==null&&!i&&(n=!0),!n)return!1;var a=!1;return Sd(e,function(o){a=!!OT.get(o)||a}),a}function IT(t,e,r,i){if(r.ctnShp){var n;if(Sd(t,function(s){var l=OT.get(s);if(l){var u=l(t,i);u&&(n=n||[0,0],Zp(n,u[0]),Xp(n,u[1]),uT(t))}}),!!n){var a=e.getExtent();if(Ze(e))t.onBand||e.setExtent2(eo,Fe(a[0],a[0]+n[0]),ce(a[1],a[1]+n[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=Fe(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),r.zoomFixMM[1]||(o[1]=ce(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(eo,o[0],o[1])}}}}function LT(t,e){var r=Rr(t),i=r?t.intervalStub:t,n=e.fixMinMax||[],a=r?t.getExtent():null,o=i.getExtent(),s=Wf(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=r?AL(i,e):EL(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=dr(c)),n[0]||(s[0]=le(lr(s[0]/f)*f,u)),n[1]||(s[1]=le(Tr(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),ec(t,n,o,s,a,l)}function EL(t,e){var r=ks(e.splitNumber,5),i=io(t),n=e.minInterval,a=e.maxInterval,o=fn(i/r,!0);n!=null&&o<n&&(o=n),a!=null&&o>a&&(o=a);var s=dr(o),l=t.getExtent(),u=[le(Tr(l[0]/o)*o,s),le(lr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function AL(t,e){var r=ks(e.splitNumber,10),i=t.getExtent(),n=io(t),a=ce(Ql(n),1),o=r/n*a;o<=.5&&(a*=10);var s=dr(a),l=[le(Tr(i[0]/a)*a,s),le(lr(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function bd(t){var e=t.scale,r=t.model,i=r.axis,n=r.ecModel;DL(e,r,i,n,null)}function DL(t,e,r,i,n){var a=ic(t,e,i,r,n),o=no(t)||Nr(t);ML(t,{splitNumber:e.get(\"splitNumber\"),fixMinMax:a.fixMM,userInterval:e.get(\"interval\"),minInterval:o?e.get(\"minInterval\"):null,maxInterval:o?e.get(\"maxInterval\"):null,rawExtentResult:a}),r&&i&&IT(r,t,a,i)}function ML(t,e){OL[t.type](t,e)}var OL={interval:LT,log:LT,time:$1,ordinal:Ce};var PT=[],IL={registerPreprocessor:ld,registerProcessor:ud,registerPostInit:b1,registerPostUpdate:w1,registerUpdateLifecycle:Bf,registerAction:ni,registerCoordinateSystem:C1,registerLayout:E1,registerVisual:ki,registerTransform:D1,registerLoading:cd,registerMap:A1,registerImpl:CS,PRIORITY:p1,ComponentModel:Se,ComponentView:zt,SeriesModel:Pr,ChartView:Ut,registerComponentModel:function(t){Se.registerClass(t)},registerComponentView:function(t){zt.registerClass(t)},registerSeriesModel:function(t){Pr.registerClass(t)},registerChartView:function(t){Ut.registerClass(t)},registerCustomSeries:function(t,e){AS(t,e)},registerSubTypeDefaulter:function(t,e){Se.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){cy(t,e)}};function Jt(t){if(k(t)){b(t,function(e){Jt(e)});return}se(PT,t)>=0||(PT.push(t),G(t)&&(t={install:t}),t.install(IL))}var LL=q(),Fs=q(),At={estimate:1,determine:2};function oo(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function NT(t,e){var r=t.getLabelModel().get(\"customValues\");if(r){var i=t.scale;return{labels:R(kT(r,i),function(n,a){return{formattedLabel:Bs(t)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return t.type===\"category\"?PL(t,e):RL(t)}function RT(t,e,r){var i=t.scale,n=t.getTickModel().get(\"customValues\");return n?{ticks:kT(n,i)}:t.type===\"category\"?NL(t,e):{ticks:i.getTicks(r)}}function kT(t,e){var r=e.getExtent(),i=[];return b(t,function(n){n=e.parse(n),n>=r[0]&&n<=r[1]&&i.push(n)}),wa(i,Iy,null),Yt(i),R(i,function(n){return{value:n}})}function PL(t,e){var r=t.getLabelModel(),i=BT(t,r,e);return!r.get(\"show\")||t.scale.isBlank()?{labels:[]}:i}function BT(t,e,r){var i=BL(t),n=Jf(e),a=r.kind===At.estimate;if(!a){var o=UT(i,n);if(o)return o}var s,l;G(n)?s=nc(t,n,!1):(l=n===\"auto\"?zL(t,r):n,s=nc(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return wd(i,n,u),!0}):wd(i,n,u),u}function NL(t,e){var r=kL(t),i=Jf(e),n=UT(r,i);if(n)return n;var a,o;if((!e.get(\"show\")||t.scale.isBlank())&&(a=[]),G(i))a=nc(t,i,!0);else if(i===\"auto\"){var s=BT(t,t.getLabelModel(),oo(At.determine));o=s.labelCategoryInterval,a=R(s.labels,function(l){return l.tick})}else o=i,a=nc(t,o,!0);return wd(r,i,{ticks:a,tickCategoryInterval:o})}function RL(t){var e=t.scale.getTicks(),r=Bs(t);return{labels:R(e,function(i,n){return{formattedLabel:r(i,n),rawLabel:t.scale.getLabel(i),tick:i}})}}var kL=zT(\"axisTick\"),BL=zT(\"axisLabel\");function zT(t){return function(r){return Fs(r)[t]||(Fs(r)[t]={list:[]})}}function UT(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function wd(t,e,r){return t.list.push({key:e,value:r}),r}function zL(t,e){if(e.kind===At.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Fs(t).autoInterval=r,!0}),r}var i=Fs(t).autoInterval;return i??(Fs(t).autoInterval=t.calculateCategoryInterval(e))}function FT(t,e){var r=e.kind,i=FL(t),n=Bs(t),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(a)),v=Math.abs(p*Math.sin(a)),d=0,m=0;c<=s[1];c+=u){var g=0,y=0,_=Gl(n({value:c}),i.font,\"center\",\"top\");g=_.width*1.3,y=_.height*1.3,d=Math.max(d,g,7),m=Math.max(m,y,7)}var x=d/h,S=m/v;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var T=Math.max(0,Math.floor(Math.min(x,S)));if(r===At.estimate)return e.out.noPxChangeTryDetermine.push($(UL,null,t,T,l)),T;var w=VT(t,T,l);return w??T}function UL(t,e,r){return VT(t,e,r)==null}function VT(t,e,r){var i=LL(t.model),n=t.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=r,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function FL(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get(\"rotate\")||0,font:e.getFont()}}function nc(t,e,r){var i=Bs(t),n=t.scale,a=[],o=G(e);return Zf(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),a}var VL=.8;function qn(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,n=e.fromStat,a=e.min,o=G1(i);ht(o)||(o=NaN);var s=t.getExtent(),l=Ae(s[1]-s[0]);return Ze(i)?HL(r,t,o,l):n?GL(r,t,o,l,n):a==null,a!=null&&(r.w=ht(r.w)?ce(a,r.w):a),r}function HL(t,e,r,i){var n=e.onBand,a=r+(n?1:0);a===0&&(a=1),t.w=i/a,!n&&r&&i&&(t.w2=t.w*r/i)}function GL(t,e,r,i,n){var a=!1,o=-1/0;b(n.key?[yT(e,n.key)]:_T(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===gT&&(a=!0))}),ht(r)&&r>0&&ht(o)?(t.w=i/r*o,t.w2=o):a&&(t.w=i*VL,t.w2=t.w*r/i)}var HT=[0,1],YL=(function(){function t(e,r,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=i||[0,0]}return t.prototype.contain=function(e){var r=this._extent,i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return e>=i&&e<=n},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var i=this._extent;i[0]=e,i[1]=r},t.prototype.dataToCoord=function(e,r){var i=this.scale;return e=i.normalize(i.parse(e)),Oe(e,HT,GT(this),r)},t.prototype.coordToData=function(e,r){var i=Oe(e,GT(this),HT,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),i=RT(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=R(i.ticks,function(s){return{coord:this.dataToCoord(oi(this.scale,s)),tick:s}},this),a=r.get(\"alignWithLabel\"),o=WL(this,n,a);return R(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(Ze(this.scale))return[];var e=this.model.getModel(\"minorTick\"),r=e.get(\"splitNumber\");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),n=R(i,function(a){return R(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},t.prototype.getViewLabels=function(e){return e=e||oo(At.determine),NT(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel(\"axisLabel\")},t.prototype.getTickModel=function(){return this.model.getModel(\"axisTick\")},t.prototype.getBandWidth=function(){return qn(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||oo(At.determine),FT(this,e)},t})();function GT(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],i=r/t.scale.count()/2;e[0]+=i,e[1]-=i}return e}function WL(t,e,r){var i=e.length;if(!t.onBand||r||!i)return!1;var n=qn(t).w;if(!n)return!1;b(e,function(s){s.coord-=n/2});var a=t.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var YT=YL;var WT=[\"label\",\"labelLine\",\"layoutOption\",\"priority\",\"defaultAttr\",\"marginForce\",\"minMarginForce\",\"marginDefault\",\"suggestIgnore\"],ZL=1,ac=2,XT=ZL|ac;function Vs(t,e,r){r=r||XT,e?t.dirty|=r:t.dirty&=~r}function qT(t,e){return e=e||XT,t.dirty==null||!!(t.dirty&e)}function mr(t){if(t)return qT(t)&&XL(t,t.label,t),t}function XL(t,e,r){var i=e.getComputedTransform();t.transform=Nu(t.transform,i);var n=t.localRect=Na(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=Ln.textMargin);for(var c=0;c<4;c++)Cd[c]=f===Ln.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Ln.textMargin&&Pa(n,Cd,!1,!1);var p=t.rect=Na(t.rect,n);return i&&p.applyTransform(i),f===Ln.minMargin&&Pa(p,Cd,!1,!1),t.axisAligned=Pu(i),(t.label=t.label||{}).ignore=e.ignore,Vs(t,!1),Vs(t,!0,ac),t}var Cd=[0,0,0,0];function KT(t,e,r){return t.transform=Nu(t.transform,r),t.localRect=Na(t.localRect,e),t.rect=Na(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Pu(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function jT(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var n=t.obb;n&&n.fromBoundingRect(t.localRect,r)}}function Ed(t,e){for(var r=0;r<WT.length;r++){var i=WT[r];t[i]==null&&(t[i]=e[i])}return mr(t)}function ZT(t){var e=t.obb;return(!e||qT(t,ac))&&(t.obb=e=e||new Mu,e.fromBoundingRect(t.localRect,t.transform),Vs(t,!1,ac)),e}function QT(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState(\"emphasis\");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var i=0;i<t.length;i++){var n=mr(t[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(oc(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(n)}}}function oc(t,e,r,i){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,i)?!1:t.axisAligned&&e.axisAligned?!0:ZT(t).intersect(ZT(e),r,i)}var qL=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(0)var i;return Ff(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var i=new ye,n=Ct(\"line\",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);i.add(n),n.setStyle(r.lineStyle);var a=this.getData().getVisual(\"symbol\"),o=this.getData().getVisual(\"symbolRotate\"),s=a===\"none\"?\"circle\":a,l=r.itemHeight*.8,u=Ct(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);i.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate===\"inherit\"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf(\"empty\")>-1&&(u.style.stroke=u.style.fill,u.style.fill=re.color.neutral00,u.style.lineWidth=2),i},e.type=\"series.line\",e.dependencies=[\"grid\",\"polar\"],e.defaultOption={z:3,coordinateSystem:\"cartesian2d\",legendHoverLink:!0,clip:!0,label:{position:\"top\"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:\"solid\"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:\"emptyCircle\",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:\"auto\",connectNulls:!1,sampling:\"none\",animationEasing:\"linear\",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:\"clone\"},triggerLineEvent:!1,triggerEvent:!1},e})(Pr),$T=qL;function sc(t,e){var r=t.mapDimensionsAll(\"defaultedLabel\"),i=r.length;if(i===1){var n=ri(t,e,r[0]);return n!=null?n+\"\":null}else if(i){for(var a=[],o=0;o<r.length;o++)a.push(ri(t,e,r[o]));return a.join(\" \")}}function JT(t,e){var r=t.mapDimensionsAll(\"defaultedLabel\");if(!k(e))return e+\"\";for(var i=[],n=0;n<r.length;n++){var a=t.getDimensionIndex(r[n]);a>=0&&i.push(e[a])}return i.join(\" \")}var KL=(function(t){L(e,t);function e(r,i,n,a){var o=t.call(this)||this;return o.updateData(r,i,n,a),o}return e.prototype._createSymbol=function(r,i,n,a,o,s){this.removeAll();var l=Ct(r,-1,-1,2,2,null,s);l.attr({z2:F(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=jL,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){bn(this.childAt(0))},e.prototype.downplay=function(){wn(this.childAt(0))},e.prototype.setZ=function(r,i){var n=this.childAt(0);n.zlevel=r,n.z=i},e.prototype.setDraggable=function(r,i){var n=this.childAt(0);n.draggable=r,n.cursor=!i&&r?\"move\":n.cursor},e.prototype.updateData=function(r,i,n,a){this.silent=!1;var o=r.getItemVisual(i,\"symbol\")||\"circle\",s=r.hostModel,l=e.getSymbolSize(r,i),u=e.getSymbolZ2(r,i),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var p=r.getItemVisual(i,\"symbolKeepAspect\");this._createSymbol(o,r,i,l,u,p)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):jt(h,v,s,i),_0(h)}if(this._updateCommon(r,i,l,n,a),f){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,$r(h,v,s,i)}}c&&this.childAt(0).stopAnimation(\"leave\")},e.prototype._updateCommon=function(r,i,n,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,p,h,v,d,m,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,d=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(i),_=y.getModel(\"emphasis\");u=_.getModel(\"itemStyle\").getItemStyle(),c=y.getModel([\"select\",\"itemStyle\"]).getItemStyle(),f=y.getModel([\"blur\",\"itemStyle\"]).getItemStyle(),p=_.get(\"focus\"),h=_.get(\"blurScope\"),v=_.get(\"disabled\"),d=Ra(y),m=_.getShallow(\"scale\"),g=y.getShallow(\"cursor\")}var x=r.getItemVisual(i,\"symbolRotate\");s.attr(\"rotation\",(x||0)*Math.PI/180||0);var S=Ef(r.getItemVisual(i,\"symbolOffset\"),n);S&&(s.x=S[0],s.y=S[1]),g&&s.attr(\"cursor\",g);var T=r.getItemVisual(i,\"style\"),w=T.fill;if(s instanceof st){var A=s.style;s.useStyle(P({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},T))}else s.__isEmptyBrush?s.useStyle(P({},T)):s.useStyle(T),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var E=r.getItemVisual(i,\"liftZ\"),C=this._z2;E!=null?C==null&&(this._z2=s.z2,s.z2+=E):C!=null&&(s.z2=C,this._z2=null);var D=o&&o.useNameLabel;ku(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:O,inheritColor:w,defaultOpacity:T.opacity});function O(z){return D?r.getName(z):sc(r,z)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=s.ensureState(\"emphasis\");M.style=u,s.ensureState(\"select\").style=c,s.ensureState(\"blur\").style=f;var I=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*I,M.scaleY=this._sizeY*I,this.setSymbolScale(1),Qo(this,p,h,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,i,n){var a=this.childAt(0),o=be(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&La(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();La(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,i){return IS(r.getItemVisual(i,\"symbolSize\"))},e.getSymbolZ2=function(r,i){return r.getItemVisual(i,\"z2\")},e})(ye);function jL(t,e){this.parent.drift(t,e)}var Hs=KL;function lc(t,e,r,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(r))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,\"symbol\")!==\"none\"}function eb(t){return t!=null&&!H(t)&&(t={isIgnore:t}),t||{}}function tb(t){var e=t.hostModel,r=e.getModel(\"emphasis\");return{emphasisItemStyle:r.getModel(\"itemStyle\").getItemStyle(),blurItemStyle:e.getModel([\"blur\",\"itemStyle\"]).getItemStyle(),selectItemStyle:e.getModel([\"select\",\"itemStyle\"]).getItemStyle(),focus:r.get(\"focus\"),blurScope:r.get(\"blurScope\"),emphasisDisabled:r.get(\"disabled\"),hoverScale:r.get(\"scale\"),labelStatesModels:Ra(e),cursorStyle:e.get(\"cursor\")}}function rb(t,e,r,i,n,a,o){var s=new t(e,r,i,n);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var QL=(function(){function t(e){this.group=new ye,this._SymbolCtor=e||Hs}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=eb(r);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=tb(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||i.removeAll(),e.diff(a).add(function(c){var p=f(c);lc(e,p,c,r)&&rb(o,e,c,l,u,p,i)}).update(function(c,p){var h=a.getItemGraphicEl(p),v=f(c);if(!lc(e,v,c,r)){i.remove(h);return}var d=e.getItemVisual(c,\"symbol\")||\"circle\",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==d)i.remove(h),h=new o(e,c,l,u),h.setPosition(v);else{h.updateData(e,c,l,u);var g={x:v[0],y:v[1]};s?h.attr(g):jt(h,g,n)}i.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=a.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},n)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var i=this,n=r.getStore(),a=0,o=n.count();a<o;a++){var s=r.getItemGraphicEl(a),l=i._getSymbolPoint(a);lc(r,l,a,e)?(s=s||rb(i._SymbolCtor,r,a,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=tb(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i,n){this._progressiveEls=[],n=eb(n);function a(u){u.isGroup||(u.incremental=i,u.ensureState(\"emphasis\").hoverLayer=ls)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(lc(r,s,o,n)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){us(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},i.hostModel)}):r.removeAll()},t})(),uc=QL;function fc(t,e,r){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=$L(n,r),o=i.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s===\"x\"||s===\"radius\"?1:0,c=R(t.dimensions,function(v){return e.mapDimension(v)}),p=!1,h=e.getCalculationInfo(\"stackResultDimension\");return Yn(e,c[0])&&(p=!0,c[0]=h),Yn(e,c[1])&&(p=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo(\"stackedOverDimension\")}}function $L(t,e){var r=0,i=t.scale.getExtent();return e===\"start\"?r=i[0]:e===\"end\"?r=i[1]:fe(e)&&!isNaN(e)?r=e:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function cc(t,e,r,i){var n=NaN;t.stacked&&(n=r.get(r.getCalculationInfo(\"stackedOverDimension\"),i)),isNaN(n)&&(n=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,i),o[1-a]=n,e.dataToPoint(o)}function Dt(t,e){return!isFinite(t)||!isFinite(e)}var JL=typeof Float32Array!==Tn?Float32Array:void 0;function si(t){return eP({ctor:JL},t).arr}function eP(t,e){var r=t.arr,i=t.ctor;if(e>Rp&&(e=Rp),!r||t.typed&&r.length<e){var n=void 0;if(i)try{n=new i(e),t.typed=!0,r&&n.set(r)}catch{}if(!n&&(n=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)n[a]=r[a];t.arr=n}return t}function tP(t,e){var r=[];return e.diff(t).add(function(i){r.push({cmd:\"+\",idx:i})}).update(function(i,n){r.push({cmd:\"=\",idx:n,idx1:i})}).remove(function(i){r.push({cmd:\"-\",idx:i})}).execute(),r}function Ad(t,e,r,i,n,a,o,s){for(var l=tP(t,e),u=[],f=[],c=[],p=[],h=[],v=[],d=[],m=fc(n,e,o),g=t.getLayout(\"points\")||[],y=e.getLayout(\"points\")||[],_=0;_<l.length;_++){var x=l[_],S=!0,T=void 0,w=void 0;switch(x.cmd){case\"=\":T=x.idx*2,w=x.idx1*2;var A=g[T],E=g[T+1],C=y[w],D=y[w+1];(isNaN(A)||isNaN(E))&&(A=C,E=D),u.push(A,E),f.push(C,D),c.push(r[T],r[T+1]),p.push(i[w],i[w+1]),d.push(e.getRawIndex(x.idx1));break;case\"+\":var O=x.idx,M=m.dataDimsForPoint,I=n.dataToPoint([e.get(M[0],O),e.get(M[1],O)]);w=O*2,u.push(I[0],I[1]),f.push(y[w],y[w+1]);var z=cc(m,n,e,O);c.push(z[0],z[1]),p.push(i[w],i[w+1]),d.push(e.getRawIndex(O));break;case\"-\":S=!1}S&&(h.push(x),v.push(v.length))}v.sort(function(ue,he){return d[ue]-d[he]});for(var N=u.length,Y=si(N),X=si(N),Z=si(N),ie=si(N),J=[],_=0;_<v.length;_++){var ae=v[_],j=_*2,W=ae*2;Y[j]=u[W],Y[j+1]=u[W+1],X[j]=f[W],X[j+1]=f[W+1],Z[j]=c[W],Z[j+1]=c[W+1],ie[j]=p[W],ie[j+1]=p[W+1],J[_]=h[ae]}return{current:Y,next:X,stackedOnCurrent:Z,stackedOnNext:ie,status:J}}var Ui=Math.min,Fi=Math.max;function Dd(t,e,r,i,n,a,o,s,l){for(var u,f,c,p,h,v,d=r,m=0;m<i;m++){var g=e[d*2],y=e[d*2+1];if(d>=n||d<0)break;if(Dt(g,y)){if(l){d+=a;continue}break}if(d===r)t[a>0?\"moveTo\":\"lineTo\"](g,y),c=g,p=y;else{var _=g-u,x=y-f;if(_*_+x*x<.5){d+=a;continue}if(o>0){for(var S=d+a,T=e[S*2],w=e[S*2+1];T===g&&w===y&&m<i;)m++,S+=a,d+=a,T=e[S*2],w=e[S*2+1],g=e[d*2],y=e[d*2+1],_=g-u,x=y-f;var A=m+1;if(l)for(;Dt(T,w)&&A<i;)A++,S+=a,T=e[S*2],w=e[S*2+1];var E=.5,C=0,D=0,O=void 0,M=void 0;if(A>=i||Dt(T,w))h=g,v=y;else{C=T-u,D=w-f;var I=g-u,z=T-g,N=y-f,Y=w-y,X=void 0,Z=void 0;if(s===\"x\"){X=Math.abs(I),Z=Math.abs(z);var ie=C>0?1:-1;h=g-ie*X*o,v=y,O=g+ie*Z*o,M=y}else if(s===\"y\"){X=Math.abs(N),Z=Math.abs(Y);var J=D>0?1:-1;h=g,v=y-J*X*o,O=g,M=y+J*Z*o}else X=Math.sqrt(I*I+N*N),Z=Math.sqrt(z*z+Y*Y),E=Z/(Z+X),h=g-C*o*(1-E),v=y-D*o*(1-E),O=g+C*o*E,M=y+D*o*E,O=Ui(O,Fi(T,g)),M=Ui(M,Fi(w,y)),O=Fi(O,Ui(T,g)),M=Fi(M,Ui(w,y)),C=O-g,D=M-y,h=g-C*X/Z,v=y-D*X/Z,h=Ui(h,Fi(u,g)),v=Ui(v,Fi(f,y)),h=Fi(h,Ui(u,g)),v=Fi(v,Ui(f,y)),C=g-h,D=y-v,O=g+C*Z/X,M=y+D*Z/X}t.bezierCurveTo(c,p,h,v,g,y),c=O,p=M}else t.lineTo(g,y)}u=g,f=y,d+=a}return m}var ib=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),nb=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type=\"ec-polyline\",i}return e.prototype.getDefaultStyle=function(){return{stroke:re.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new ib},e.prototype.buildPath=function(r,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&Dt(n[o*2-2],n[o*2-1]);o--);for(;a<o&&Dt(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=Dd(r,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(r,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=vt.CMD,s,l,u=i===\"x\",f=[],c=0;c<a.length;){var p=a[c++],h=void 0,v=void 0,d=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(p){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],v=a[c++],_=u?(r-s)/(h-s):(r-l)/(v-l),_<=1&&_>=0){var x=u?(v-l)*_+l:(h-s)*_+s;return u?[r,x]:[x,r]}s=h,l=v;break;case o.C:h=a[c++],v=a[c++],d=a[c++],m=a[c++],g=a[c++],y=a[c++];var S=u?rn(s,h,d,g,r,f):rn(l,v,m,y,r,f);if(S>0)for(var T=0;T<S;T++){var w=f[T];if(w<=1&&w>=0){var x=u?Ee(l,v,m,y,w):Ee(s,h,d,g,w);return u?[r,x]:[x,r]}}s=g,l=y;break}}},e})(ne);var rP=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(ib),ab=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type=\"ec-polygon\",i}return e.prototype.getDefaultShape=function(){return new rP},e.prototype.buildPath=function(r,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Dt(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Dt(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Dd(r,n,o,s,s,1,i.smooth,l,i.connectNulls);Dd(r,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,r.closePath()}},e})(ne);function ob(t,e,r,i,n){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get([\"lineStyle\",\"width\"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Te({shape:{x:o,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),v=p.inverse;h?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var d=G(n)?function(m){n(m,c)}:null;$r(c,{shape:{width:l,height:u,x:o,y:s}},r,null,i,d)}return c}function sb(t,e,r){var i=t.getArea(),n=le(i.r0,1),a=le(i.r,1),o=new is({shape:{cx:le(t.cx,1),cy:le(t.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=t.getBaseAxis().dim===\"angle\";s?o.shape.endAngle=i.startAngle:o.shape.r=n,$r(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function lb(t){var e=t.coordinateSystem;if(t.get(\"clip\",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function ub(t,e){return t.type===e}function fb(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function cb(t){for(var e=rt(),r=rt(),i=0;i<t.length;){var n=t[i++],a=t[i++];Dt(n,a)||(Vo(e,n),Vo(r,a))}return[e,r]}function pb(t,e){var r=cb(t),i=r[0],n=r[1],a=cb(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(n[1]-s[1]))}function hb(t){return fe(t)?t:t?.5:0}function iP(t,e,r){if(r.valueDim==null)return[];for(var i=e.count(),n=si(i*2),a=0;a<i;a++){var o=cc(r,t,e,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function Vi(t,e,r,i,n){var a=r.getBaseAxis(),o=a.dim===\"x\"||a.dim===\"radius\"?0:1,s=[],l=0,u=[],f=[],c=[],p=[];if(n){for(l=0;l<t.length;l+=2){var h=e||t;Dt(h[l],h[l+1])||p.push(t[l],t[l+1])}t=p}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),i){case\"end\":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case\"middle\":var v=(f[o]+c[o])/2,d=[];u[o]=d[o]=v,u[1-o]=f[1-o],d[1-o]=c[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function nP(t,e){var r=[],i=t.length,n,a;function o(f,c,p){var h=f.coord,v=(p-h)/(c.coord-h),d=Pg(v,[f.color,c.color]);return{coord:p,color:d}}for(var s=0;s<i;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){a?r.push(o(a,l,e)):n&&r.push(o(n,l,0),o(n,l,e));break}else n&&(r.push(o(n,l,0)),n=null),r.push(l),a=l}return r}function aP(t,e,r){var i=t.getVisual(\"visualMeta\");if(!(!i||!i.length||!t.count())&&e.type===\"cartesian2d\"){for(var n,a,o=i.length-1;o>=0;o--){var s=t.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n===\"x\"||n===\"y\"){a=i[o];break}}if(a){var l=e.getAxis(n),u=R(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var p=nP(u,n===\"x\"?r.getWidth():r.getHeight()),h=p.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var v=10,d=p[0].coord-v,m=p[h-1].coord+v,g=m-d;if(g<.001)return\"transparent\";b(p,function(_){_.offset=(_.coord-d)/g}),p.push({offset:h?p[h-1].offset:.5,color:c[1]||\"transparent\"}),p.unshift({offset:h?p[0].offset:.5,color:c[0]||\"transparent\"});var y=new Cu(0,0,0,0,p,!0);return y[n]=d,y[n+\"2\"]=m,y}}}function oP(t,e,r){var i=t.get(\"showAllSymbol\"),n=i===\"auto\";if(!(i&&!n)){var a=r.getAxesByScale(\"ordinal\")[0];if(a&&!(n&&sP(a,e))){var o=e.mapDimension(a.dim),s={};return b(a.getViewLabels(),function(l){l.tick.offInterval||(s[oi(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function sP(t,e){var r=t.getExtent(),i=Math.abs(r[1]-r[0])/t.scale.count();isNaN(i)&&(i=0);for(var n=e.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(Hs.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>i)return!1;return!0}function lP(t){for(var e=t.length/2;e>0&&Dt(t[e*2-2],t[e*2-1]);e--);return e-1}function vb(t,e){return[t[e*2],t[e*2+1]]}function uP(t,e,r){for(var i=t.length/2,n=r===\"x\"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=t[u*2+n],!Dt(o,t[u*2+1-n])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function db(t){if(t.get([\"endLabel\",\"show\"]))return!0;for(var e=0;e<Kt.length;e++)if(t.get([Kt[e],\"endLabel\",\"show\"]))return!0;return!1}function Md(t,e,r,i){if(ub(e,\"cartesian2d\")){var n=i.getModel(\"endLabel\"),a=n.get(\"valueAnimation\"),o=i.getData(),s={lastFrameIndex:0},l=db(i)?function(h,v){t._endLabelOnDuring(h,v,o,s,a,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=ob(e,r,i,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!i.get(\"clip\",!0)){var c=f.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=p*2):(c.x-=p,c.width+=p*2)}return l&&l(1,f),f}else return sb(e,r,i)}function fP(t,e){var r=e.getBaseAxis(),i=r.isHorizontal(),n=r.inverse,a=i?n?\"right\":\"left\":\"center\",o=i?\"middle\":n?\"top\":\"bottom\";return{normal:{align:t.get(\"align\")||a,verticalAlign:t.get(\"verticalAlign\")||o}}}var cP=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new ye,i=new uc;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=$(this._changePolyState,this)},e.prototype.render=function(r,i,n){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel(\"lineStyle\"),u=r.getModel(\"areaStyle\"),f=s.getLayout(\"points\")||[],c=a.type===\"polar\",p=this._coordSys,h=this._symbolDraw,v=this._polyline,d=this._polygon,m=this._lineGroup,g=!i.ssr&&r.get(\"animation\"),y=!u.isEmpty(),_=u.get(\"origin\"),x=fc(a,s,_),S=y&&iP(a,s,x),T=r.get(\"showSymbol\"),w=r.get(\"connectNulls\"),A=T&&!c&&oP(r,s,a),E=this._data;E&&E.eachItemGraphicEl(function(_e,Le){_e.__temp&&(o.remove(_e),E.setItemGraphicEl(Le,null))}),T||h.remove(),o.add(m);var C=c?!1:r.get(\"step\"),D;a&&a.getArea&&r.get(\"clip\",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var O=aP(s,a,n)||s.getVisual(\"style\")[s.getVisual(\"drawType\")];if(!(v&&p.type===a.type&&C===this._step))T&&h.updateData(s,{isIgnore:A,clipShape:D,disableAnimation:!0,getSymbolPoint:function(_e){return[f[_e*2],f[_e*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,D),C&&(S&&(S=Vi(S,f,a,C,w)),f=Vi(f,null,a,C,w)),v=this._newPolyline(f),y?d=this._newPolygon(f,S):d&&(m.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,fs(O)),m.setClipPath(Md(this,a,!0,r));else{y&&!d?d=this._newPolygon(f,S):d&&!y&&(m.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,fs(O));var M=m.getClipPath();if(M){var I=Md(this,a,!1,r);$r(M,{shape:I.shape},r)}else m.setClipPath(Md(this,a,!0,r));T&&h.updateData(s,{isIgnore:A,clipShape:D,disableAnimation:!0,getSymbolPoint:function(_e){return[f[_e*2],f[_e*2+1]]}}),(!fb(this._stackedOnPoints,S)||!fb(this._points,f))&&(g?this._doUpdateAnimation(s,S,a,n,C,_,w):(C&&(S&&(S=Vi(S,f,a,C,w)),f=Vi(f,null,a,C,w)),v.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:S})))}var z=r.getModel(\"emphasis\"),N=z.get(\"focus\"),Y=z.get(\"blurScope\"),X=z.get(\"disabled\");if(v.useStyle(te(l.getLineStyle(),{fill:\"none\",stroke:O,lineJoin:\"bevel\"})),Oh(v,r,\"lineStyle\"),v.style.lineWidth>0&&r.get([\"emphasis\",\"lineStyle\",\"width\"])===\"bolder\"){var Z=v.getState(\"emphasis\").style;Z.lineWidth=+v.style.lineWidth+1}be(v).seriesIndex=r.seriesIndex,Qo(v,N,Y,X);var ie=hb(r.get(\"smooth\")),J=r.get(\"smoothMonotone\");if(v.setShape({smooth:ie,smoothMonotone:J,connectNulls:w}),d){var ae=s.getCalculationInfo(\"stackedOnSeries\"),j=0;d.useStyle(te(u.getAreaStyle(),{fill:O,opacity:.7,lineJoin:\"bevel\",decal:s.getVisual(\"style\").decal})),ae&&(j=hb(ae.get(\"smooth\"))),d.setShape({smooth:ie,stackedOnSmooth:j,smoothMonotone:J,connectNulls:w}),Oh(d,r,\"areaStyle\"),be(d).seriesIndex=r.seriesIndex,Qo(d,N,Y,X)}var W=this._changePolyState;s.eachItemGraphicEl(function(_e){_e&&(_e.onHoverStateChange=W)}),this._polyline.onHoverStateChange=W,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=C,this._valueOrigin=_;var ue=r.get(\"triggerEvent\"),he=r.get(\"triggerLineEvent\"),Je=he===!0||ue===!0||ue===\"line\",it=he===!0||ue===!0||ue===\"area\";this.packEventData(r,v,Je),d&&this.packEventData(r,d,it)},e.prototype.packEventData=function(r,i,n){be(i).eventData=n?{componentType:\"series\",componentSubType:\"line\",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:\"line\",selfType:i===this._polygon?\"area\":\"line\"}:null},e.prototype.highlight=function(r,i,n,a){var o=r.getData(),s=Wt(o,a);if(this._changePolyState(\"emphasis\"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout(\"points\"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(Dt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=r.get(\"zlevel\")||0,h=r.get(\"z\")||0;u=new Hs(o,s),u.x=f,u.y=c,u.setZ(p,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=p,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ut.prototype.highlight.call(this,r,i,n,a)},e.prototype.downplay=function(r,i,n,a){var o=r.getData(),s=Wt(o,a);if(this._changePolyState(\"normal\"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ut.prototype.downplay.call(this,r,i,n,a)},e.prototype._changePolyState=function(r){var i=this._polygon;bh(this._polyline,r),i&&bh(i,r)},e.prototype._newPolyline=function(r){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new nb({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(r,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new ab({shape:{points:r,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(r,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type===\"cartesian2d\"?(a=s.isHorizontal(),o=!1):i.type===\"polar\"&&(a=s.dim===\"angle\",o=!0);var u=r.hostModel,f=u.get(\"animationDuration\");G(f)&&(f=f(null));var c=u.get(\"animationDelay\")||0,p=G(c)?c(null):c;r.eachItemGraphicEl(function(h,v){var d=h;if(d){var m=[h.x,h.y],g=void 0,y=void 0,_=void 0;if(n)if(o){var x=n,S=i.pointToCoord(m);a?(g=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(g=x.r0,y=x.r,_=S[0])}else{var T=n;a?(g=T.x,y=T.x+T.width,_=h.x):(g=T.y+T.height,y=T.y,_=h.y)}var w=y===g?0:(_-g)/(y-g);l&&(w=1-w);var A=G(c)?c(v):f*w+p,E=d.getSymbolPath(),C=E.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:A}),E.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,i,n){var a=r.getModel(\"endLabel\");if(db(r)){var o=r.getData(),s=this._polyline,l=o.getLayout(\"points\");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new je({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=lP(l);f>=0&&(ku(s,Ra(r,\"endLabel\"),{inheritColor:n,labelFetcher:r,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?JT(o,h):sc(o,c)},enableTextSetter:!0},fP(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=n.getLayout(\"points\"),p=n.hostModel,h=p.get(\"connectNulls\"),v=s.get(\"precision\"),d=s.get(\"distance\")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=i.shape,x=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,S=(g?d:0)*(y?-1:1),T=(g?0:-d)*(y?-1:1),w=g?\"x\":\"y\",A=uP(c,x,w),E=A.range,C=E[1]-E[0],D=void 0;if(C>=1){if(C>1&&!h){var O=vb(c,E[0]);u.attr({x:O[0]+S,y:O[1]+T}),o&&(D=p.getRawValue(E[0]))}else{var O=f.getPointOn(x,w);O&&u.attr({x:O[0]+S,y:O[1]+T});var M=p.getRawValue(E[0]),I=p.getRawValue(E[1]);o&&(D=Wp(n,v,M,I,A.t))}a.lastFrameIndex=E[0]}else{var z=r===1||a.lastFrameIndex>0?E[0]:0,O=vb(c,z);o&&(D=p.getRawValue(z)),u.attr({x:O[0]+S,y:O[1]+T})}if(o){var N=Jh(u);typeof N.setLabelText==\"function\"&&N.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(r,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,p=Ad(this._data,r,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),h=p.current,v=p.stackedOnCurrent,d=p.next,m=p.stackedOnNext;if(o&&(v=Vi(p.stackedOnCurrent,p.current,n,o,l),h=Vi(p.current,null,n,o,l),m=Vi(p.stackedOnNext,p.next,n,o,l),d=Vi(p.next,null,n,o,l)),pb(h,d)>3e3||f&&pb(v,m)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m}));return}u.shape.__points=p.current,u.shape.points=h;var g={shape:{points:d}};p.current!==h&&(g.shape.__points=p.next),u.stopAnimation(),jt(u,g,c),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),jt(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=p.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S===\"=\"){var T=r.getItemGraphicEl(_[x].idx1);T&&y.push({el:T,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,A=0;A<y.length;A++){var E=y[A].el,C=y[A].ptIdx*2;E.x=w[C],E.y=w[C+1],E.markRedraw()}})},e.prototype.remove=function(r){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type=\"line\",e})(Ut),mb=cP;function Kn(t,e){return{seriesType:t,plan:xs(),reset:function(r){var i=r.getData(),n=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(n){var s=R(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,u=i.getCalculationInfo(\"stackResultDimension\");Yn(i,s[0])&&(s[0]=u),Yn(i,s[1])&&(s[1]=u);var f=i.getStore(),c=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var d=h.end-h.start,m=o&&si(d*l),g=[],y=[],_=h.start,x=0;_<h.end;_++){var S=void 0;if(l===1){var T=f.get(c,_);S=n.dataToPoint(T,null,y)}else g[0]=f.get(c,_),g[1]=f.get(p,_),S=n.dataToPoint(g,null,y);o?(m[x++]=S[0],m[x++]=S[1]):v.setItemLayout(_,S.slice())}o&&(v.setLayout(\"points\",m),v.setLayout(\"pointsRange\",{start:h.start,end:h.end}))}}}}}}var pP={average:function(t){for(var e=0,r=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},hP=function(t){return Math.round(t.length/2)};function Od(t){return{seriesType:t,reset:function(e,r,i){var n=e.getData(),a=e.get(\"sampling\"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type===\"cartesian2d\"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){a===\"lttb\"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):a===\"minmax\"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var v=void 0;B(a)?v=pP[a]:G(a)&&(v=a),v&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,v,hP))}}}}}function Id(t){t.registerChartView(mb),t.registerSeriesModel($T),t.registerLayout(Kn(\"line\",!0)),t.registerVisual({seriesType:\"line\",reset:function(e){var r=e.getData(),i=e.getModel(\"lineStyle\").getLineStyle();i&&!i.stroke&&(i.stroke=r.getVisual(\"style\").fill),r.setVisual(\"legendLineStyle\",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Od(\"line\"))}var vP=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this,r,i,n)||this;return s.index=0,s.type=a||\"value\",s.position=o||\"bottom\",s}return e.prototype.isHorizontal=function(){var r=this.position;return r===\"top\"||r===\"bottom\"},e.prototype.getGlobalExtent=function(r){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim===\"x\"?0:1]),i)},e.prototype.setCategorySortInfo=function(r){if(this.type!==\"category\")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(YT),gb=vP;var dP=null;function jn(){return dP}var yb=\"expandAxisBreak\";var Hi=Math.PI,mP=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],gP=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Gi=q(),Sb=q(),Pd=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,i=e.componentIndex,n=this.recordMap,a=n[r]||(n[r]=[]);return a[i]||(a[i]={ready:{}})},t})();function yP(t,e,r,i){var n=r.axis,a=e.ensureRecord(r),o=[],s,l=kd(t.axisName)&&zi(t.nameLocation);b(i,function(v){var d=mr(v);if(!(!d||d.label.ignore)){o.push(d);var m=a.transGroup;l&&(m.transform?yr(Gs,m.transform):Ur(Gs),d.transform&&di(Gs,Gs,d.transform),ee.copy(pc,d.localRect),pc.applyTransform(Gs),s?s.union(pc):ee.copy(s=new ee(0,0,0,0),pc))}});var u=Math.abs(a.dirVec.x)>.1?\"x\":\"y\",f=a.transGroup[u];if(o.sort(function(v,d){return Math.abs(v.label[u]-f)-Math.abs(d.label[u]-f)}),l&&s){var c=n.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new ee(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Gs=pt(),pc=new ee(0,0,0,0),Nd=function(t,e,r,i,n,a){if(zi(t.nameLocation)){var o=a.stOccupiedRect;o&&Tb(KT({},o,a.transGroup.transform),i,n)}else Rd(a.labelInfoList,a.dirVec,i,n)};function Tb(t,e,r){var i=new ge;oc(t,e,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&jT(e,i)}function Rd(t,e,r,i){for(var n=ge.dot(i,e)>=0,a=0,o=t.length;a<o;a++){var s=t[n?a:o-1-a];s.label.ignore||Tb(s,r,i)}}var Qn=(function(){function t(e,r,i,n){this.group=new ye,this._axisModel=e,this._api=r,this._local={},this._shared=n||new Pd(Nd),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(e){if(0)var r;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=F(e.axisName,r.get(\"name\")),a=r.get(\"nameMoveOverlap\");(a==null||a===\"auto\")&&(a=F(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:F(e.nameDirection,1),tickDirection:F(e.tickDirection,1),labelDirection:F(e.labelDirection,1),labelOffset:F(e.labelOffset,0),silent:F(e.silent,!0),axisName:n,nameLocation:ir(r.get(\"nameLocation\"),i.nameLocation,\"end\"),shouldNameMoveOverlap:kd(n)&&a,optionHideOverlap:r.get([\"axisLabel\",\"hideOverlap\"]),showMinorTicks:r.get([\"minorTick\",\"show\"])};this._cfg=o;var s=new ye({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new ge(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),b(_P,function(n){e[n]&&xP[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},t.innerTextLayout=function(e,r,i){var n=kp(r-e),a,o;return zo(n)?(o=i>0?\"top\":\"bottom\",a=\"center\"):zo(n-Hi)?(o=i>0?\"bottom\":\"top\",a=\"center\"):(o=\"middle\",n>0&&n<Hi?a=i>0?\"right\":\"left\":a=i>0?\"left\":\"right\"),{rotation:n,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+\"Index\"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get(\"tooltip\");return e.get(\"silent\")||!(e.get(\"triggerEvent\")||r&&r.show)},t})(),_P=[\"axisLine\",\"axisTickLabelEstimate\",\"axisTickLabelDetermine\",\"axisName\"],xP={axisLine:function(t,e,r,i,n,a,o){if(0)var s;var l=i.get([\"axisLine\",\"show\"]);if(l===\"auto\"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];f&&(et(c,c,f),et(p,p,f));var v=P({lineCap:\"round\"},i.getModel([\"axisLine\",\"lineStyle\"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get([\"axisLine\",\"breakLine\"])&&Rn(i.axis.scale))jn().buildAxisBreakLine(i,n,a,d);else{var m=new cr(P({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},d));On(m.shape,m.style.lineWidth),m.anid=\"line\",n.add(m)}var g=i.get([\"axisLine\",\"symbol\"]);if(g!=null){var y=i.get([\"axisLine\",\"symbolSize\"]);B(g)&&(g=[g,g]),(B(y)||fe(y))&&(y=[y,y]);var _=Ef(i.get([\"axisLine\",\"symbolOffset\"])||0,y),x=y[0],S=y[1];b([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(T,w){if(g[w]!==\"none\"&&g[w]!=null){var A=Ct(g[w],-x/2,-S/2,x,S,v.stroke,!0),E=T.r+T.offset,C=h?p:c;A.attr({rotation:T.rotate,x:C[0]+E*Math.cos(t.rotation),y:C[1]-E*Math.sin(t.rotation),silent:!0,z2:11}),n.add(A)}})}}},axisTickLabelEstimate:function(t,e,r,i,n,a,o,s){if(0)var l;var u=xb(e,n,s);u&&_b(t,e,r,i,n,a,o,At.estimate)},axisTickLabelDetermine:function(t,e,r,i,n,a,o,s){if(0)var l;var u=xb(e,n,s);u&&_b(t,e,r,i,n,a,o,At.determine);var f=wP(t,n,a,i);bP(t,e.labelLayoutList,f),CP(t,n,a,i,t.tickDirection)},axisName:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i);if(0)var u;e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(kd(f)){var c=t.nameLocation,p=t.nameDirection,h=i.getModel(\"nameTextStyle\"),v=i.get(\"nameGap\")||0,d=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new ge(0,0),y=new ge(0,0);c===\"start\"?(g.x=d[0]-m*v,y.x=-m):c===\"end\"?(g.x=d[1]+m*v,y.x=m):(g.x=(d[0]+d[1])/2,g.y=t.labelOffset+p*v,y.y=p);var _=pt();y.transform(sa(_,_,t.rotation));var x=i.get(\"nameRotate\");x!=null&&(x=x*Hi/180);var S,T;zi(c)?S=Qn.innerTextLayout(t.rotation,x??t.rotation,p):(S=SP(t.rotation,c,x||0,d),T=t.raw.axisNameAvailableWidth,T!=null&&(T=Math.abs(T/Math.sin(S.rotation)),!isFinite(T)&&(T=null)));var w=h.getFont(),A=i.get(\"nameTruncate\",!0)||{},E=A.ellipsis,C=ra(t.raw.nameTruncateMaxWidth,A.maxWidth,T),D=s.nameMarginLevel||0,O=new je({x:g.x,y:g.y,rotation:S.rotation,silent:Qn.isLabelSilent(i),style:ei(h,{text:f,font:w,overflow:\"truncate\",width:C,ellipsis:E,fill:h.getTextColor()||i.get([\"axisLine\",\"lineStyle\",\"color\"]),align:h.get(\"align\")||S.textAlign,verticalAlign:h.get(\"verticalAlign\")||S.textVerticalAlign}),z2:1});if(Lu({el:O,componentModel:i,itemName:f}),O.__fullText=f,O.anid=\"name\",i.get(\"triggerEvent\")){var M=Qn.makeAxisEventDataBase(i);M.targetType=\"axisName\",M.name=f,be(O).eventData=M}a.add(O),O.updateTransform(),e.nameEl=O;var I=l.nameLayout=mr({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:zi(c)?mP[D]:gP[D]});if(l.nameLocation=c,n.add(O),O.decomposeTransform(),t.shouldNameMoveOverlap&&I){var z=r.ensureRecord(i);r.resolveAxisNameOverlap(t,r,i,I,y,z)}}}};function _b(t,e,r,i,n,a,o,s){wb(e)||EP(t,e,n,s,i,o);var l=e.labelLayoutList;AP(t,i,l,a),OP(i,t.rotation,l);var u=t.optionHideOverlap;TP(i,l,u),u&&QT(Pe(l,function(f){return f&&!f.label.ignore})),yP(t,r,i,l)}function SP(t,e,r,i){var n=kp(r-t),a,o,s=i[0]>i[1],l=e===\"start\"&&!s||e!==\"start\"&&s;return zo(n-Hi/2)?(o=l?\"bottom\":\"top\",a=\"center\"):zo(n-Hi*1.5)?(o=l?\"top\":\"bottom\",a=\"center\"):(o=\"middle\",n<Hi*1.5&&n>Hi/2?a=l?\"left\":\"right\":a=l?\"right\":\"left\"),{rotation:n,textAlign:a,textVerticalAlign:o}}function TP(t,e,r){var i=t.axis,n=t.get([\"axisLabel\",\"customValues\"]);if(cT(i))return;function a(u,f,c){var p=mr(e[f]),h=mr(e[c]),v=i.scale;if(!(!p||!h)){if(u==null){if(!r&&n)return;var d=Gi(p.label).labelInfo.tick;if(Nr(v)&&d.notNice||Ze(v)&&d.offInterval){so(p.label);return}}if(u===!1||p.suggestIgnore){so(p.label);return}if(h.suggestIgnore){so(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];p=Ed({marginForce:g},p),h=Ed({marginForce:g},h)}oc(p,h,null,{touchThreshold:m})&&so(u?h.label:p.label)}}var o=t.get([\"axisLabel\",\"showMinLabel\"]),s=t.get([\"axisLabel\",\"showMaxLabel\"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function bP(t,e,r){t.showMinorTicks||b(e,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=Sb(a),s=Gi(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){so(a);return}}})}function so(t){t&&(t.ignore=!0)}function bb(t,e,r,i,n){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(et(o,o,e),et(s,s,e));var f=new cr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});On(f.shape,f.style.lineWidth),f.anid=n+\"_\"+t[l].tickValue,a.push(f);var c=Sb(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function wP(t,e,r,i){var n=i.axis,a=i.getModel(\"axisTick\"),o=a.get(\"show\");if(o===\"auto\"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel(\"lineStyle\"),l=t.tickDirection*a.get(\"length\"),u=n.getTicksCoords(),f=bb(u,r.transform,l,te(s.getLineStyle(),{stroke:i.get([\"axisLine\",\"lineStyle\",\"color\"])}),\"ticks\"),c=0;c<f.length;c++)e.add(f[c]);return f}function CP(t,e,r,i,n){var a=i.axis,o=i.getModel(\"minorTick\");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel(\"lineStyle\"),u=n*o.get(\"length\"),f=te(l.getLineStyle(),te(i.getModel(\"axisTick\").getLineStyle(),{stroke:i.get([\"axisLine\",\"lineStyle\",\"color\"])})),c=0;c<s.length;c++)for(var p=bb(s[c],r.transform,u,f,\"minorticks_\"+c),h=0;h<p.length;h++)e.add(p[h])}}function xb(t,e,r){if(wb(t)){var i=t.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(e.remove(t.labelGroup),Ld(t,null,null,null))}return!0}function EP(t,e,r,i,n,a){var o=n.axis,s=ra(t.raw.axisLabelShow,n.get([\"axisLabel\",\"show\"])),l=new ye;r.add(l);var u=oo(i);if(!s||o.scale.isBlank()){Ld(e,[],l,u);return}var f=n.getModel(\"axisLabel\"),c=o.getViewLabels(u),p=(ra(t.raw.labelRotate,f.get(\"rotate\"))||0)*Hi/180,h=Qn.innerTextLayout(t.rotation,p,t.labelDirection),v=n.getCategories&&n.getCategories(!0),d=[],m=n.get(\"triggerEvent\"),g=1/0,y=-1/0;b(c,function(x,S){var T,w=x.tick,A=x.formattedLabel,E=x.rawLabel,C=f,D=oi(o.scale,w);if(v&&v[D]){var O=v[D];H(O)&&O.textStyle&&(C=new Ye(O.textStyle,f,n.ecModel))}var M=C.getTextColor()||n.get([\"axisLine\",\"lineStyle\",\"color\"]),I=C.getShallow(\"align\",!0)||h.textAlign,z=F(C.getShallow(\"alignMinLabel\",!0),I),N=F(C.getShallow(\"alignMaxLabel\",!0),I),Y=C.getShallow(\"verticalAlign\",!0)||C.getShallow(\"baseline\",!0)||h.textVerticalAlign,X=F(C.getShallow(\"verticalAlignMinLabel\",!0),Y),Z=F(C.getShallow(\"verticalAlignMaxLabel\",!0),Y),ie=10+(((T=w.time)===null||T===void 0?void 0:T.level)||0);g=Math.min(g,ie),y=Math.max(y,ie);var J=new je({x:0,y:0,rotation:0,silent:Qn.isLabelSilent(n),z2:ie,style:ei(C,{text:A,align:S===0?z:S===c.length-1?N:I,verticalAlign:S===0?X:S===c.length-1?Z:Y,fill:G(M)?M(o.type===\"category\"?E:o.type===\"value\"?D+\"\":D,S):M})});J.anid=\"label_\"+D;var ae=Gi(J);if(ae.labelInfo=x,ae.layoutRotation=h.rotation,Lu({el:J,componentModel:n,itemName:A,formatterParamsExtra:{isTruncated:function(){return J.isTruncated},value:E,tickIndex:S}}),m){var j=Qn.makeAxisEventDataBase(n);j.targetType=\"axisLabel\",j.value=E,j.tickIndex=S;var W=x.tick.break;if(W){var ue=W.parsedBreak;j.break={start:ue.vmin,end:ue.vmax}}o.type===\"category\"&&(j.dataIndex=D),be(J).eventData=j,W&&MP(n,a,J,W)}d.push(J),l.add(J)});var _=R(d,function(x){return{label:x,priority:Gi(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});Ld(e,_,l,u)}function wb(t){return!!t.labelLayoutList}function Ld(t,e,r,i){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=i}function AP(t,e,r,i){var n=e.get([\"axisLabel\",\"margin\"]);b(r,function(a,o){var s=mr(a);if(s){var l=s.label,u=Gi(l);s.suggestIgnore=l.ignore,l.ignore=!1,Si(li,DP);var f=e.axis;li.x=f.dataToCoord(oi(f.scale,u.labelInfo.tick)),li.y=t.labelOffset+t.labelDirection*n,li.rotation=u.layoutRotation,i.add(li),li.updateTransform(),i.remove(li),li.decomposeTransform(),Si(l,li),l.markRedraw(),Vs(s,!0),mr(s)}})}var li=new Te,DP=new Te;function kd(t){return!!t}function MP(t,e,r,i){r.on(\"click\",function(n){var a={type:yb,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[t.axis.dim+\"AxisIndex\"]=t.componentIndex,e.dispatchAction(a)})}function OP(t,e,r){var i=Ie();if(i){var n=i.retrieveAxisBreakPairs(r,function(o){return o&&Gi(o.label).labelInfo.tick.break},!0),a=t.get([\"breakLabelLayout\",\"moveOverlap\"],!0);(a===!0||a===\"auto\")&&b(n,function(o){jn().adjustBreakLabelPair(t.axis.inverse,e,[mr(r[o[0]]),mr(r[o[1]])])})}}var hc=Qn;function Ys(t,e,r){r=r||{};var i=e.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?\"onZero\":o,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get(\"offset\")||0,p=l===\"x\"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}n.position=[l===\"y\"?p[f[s]]:u[0],l===\"x\"?p[f[s]]:u[3]],n.rotation=Math.PI/2*(l===\"x\"?0:1);var v={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=v[o],n.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get([\"axisTick\",\"inside\"])&&(n.tickDirection=-n.tickDirection),ra(r.labelInside,e.get([\"axisLabel\",\"inside\"]))&&(n.labelDirection=-n.labelDirection);var d=e.get([\"axisLabel\",\"rotate\"]);return n.labelRotate=s===\"top\"?-d:d,n.z2=1,n}function Cb(t){var e={xAxisModel:null,yAxisModel:null};return b(e,function(r,i){var n=i.replace(/Model$/,\"\"),a=t.getReferringComponents(n,ke).models[0];e[i]=a}),e}function Eb(t,e,r,i,n,a){for(var o=Ys(t,r),s=!1,l=!1,u=0;u<e.length;u++)Gf(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type===\"category\"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new hc(r,i,o,n)}function Ab(t,e,r){var i=Ys(e,r);if(0)var n;t.updateCfg(i)}var Bd={left:0,right:0,top:0,bottom:0},Ws=[\"25%\",\"25%\"],lo=\"cartesian2d\",LP=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,i){var n=Lr(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&hr(r.outerBounds,n)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&hr(this.option.outerBounds,r.outerBounds)},e.type=\"grid\",e.dependencies=[\"xAxis\",\"yAxis\"],e.layoutMode=\"box\",e.defaultOption={show:!1,z:0,left:\"15%\",top:65,right:\"10%\",bottom:80,containLabel:!1,outerBoundsMode:\"auto\",outerBounds:Bd,outerBoundsContain:\"all\",outerBoundsClampWidth:Ws[0],outerBoundsClampHeight:Ws[1],backgroundColor:re.color.transparent,borderWidth:1,borderColor:re.color.neutral30},e})(Se),Db=LP;var PP=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,i){return Ff(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get(\"progressive\"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get(\"progressiveThreshold\"))},e.prototype.brushSelector=function(r,i,n){return n.point(i.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:\"\"},e.type=\"series.scatter\",e.dependencies=[\"grid\",\"polar\",\"geo\",\"singleAxis\",\"calendar\",\"matrix\"],e.defaultOption={coordinateSystem:\"cartesian2d\",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:re.color.primary}},universalTransition:{divideShape:\"clone\"}},e})(Pr),Mb=PP;var Ob=4,NP=(function(){function t(){}return t})(),RP=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new NP},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},e.prototype.buildPath=function(r,i){var n=i.points,a=i.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<Ob,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<n.length;){var p=n[c++],h=n[c++];isNaN(p)||isNaN(h)||f&&!f.contain(p,h)||(s.x=p-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,i=r.points,n=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,i){for(var n=this.shape,a=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,p=a[f+1]-l/2;if(r>=c&&i>=p&&r<=c+s&&i<=p+l)return u}return-1},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(r=n[0],i=n[1],a.contain(r,i)){var o=this.hoverDataIdx=this.findDataIndex(r,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var i=this.shape,n=i.points,a=i.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,p=0;p<n.length;){var h=n[p++],v=n[p++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(v,u),c=Math.max(v,c)}r=this._rect=new ee(l-o/2,u-s/2,f-l+o,c-u+s)}return r},e})(ne),kP=(function(){function t(){this.group=new ye}return t.prototype.updateData=function(e,r){this._clear(),this._data=e;var i=this._create();i.setShape({points:e.getLayout(\"points\")}),this._setCommon(i,e,r)},t.prototype.updateLayout=function(e){var r=this._data;if(r){var i=r.getLayout(\"points\");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,o=n.startIndex*4*2;i=new Float32Array(i.buffer,o,a)}n.setShape(\"points\",i),n.reset(),n.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,i,n){var a=this._newAdded[0],o=r.getLayout(\"points\"),s=a&&a.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),a.endIndex=e.end,a.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=i,f.setShape({points:o}),this._setCommon(f,r,n)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new RP({cursor:\"default\"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,i){var n=r.hostModel;i=i||{};var a=r.getVisual(\"symbolSize\");e.setShape(\"size\",a instanceof Array?a:[a,a]),e.softClipShape=i.clipShape||null,e.symbolProxy=Ct(r.getVisual(\"symbol\"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<Ob;e.useStyle(n.getModel(\"itemStyle\").getItemStyle(o?[\"color\",\"shadowBlur\",\"shadowColor\"]:[\"color\"]));var s=r.getVisual(\"style\"),l=s&&s.fill;l&&e.setColor(l);var u=be(e);u.seriesIndex=n.seriesIndex,e.on(\"mousemove\",function(f){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),Ib=kP;var BP=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,zd(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,i,n){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,i,n){this._symbolDraw.incrementalUpdate(r,i.getData(),Ly(i),zd(i)),this._finished=r.end===i.getData().count()},e.prototype.updateTransform=function(r,i,n){var a=r.getData();if(this.group.dirty(),this._finished){var o=Kn(\"\").reset(r,i,n);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(zd(r))}else return{update:!0}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,i){var n=this._symbolDraw,a=i.pipelineContext,o=a.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new Ib:new uc,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(r,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type=\"scatter\",e})(Ut);function zd(t){return{clipShape:lb(t)}}var Lb=BP;var vc=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents(\"grid\",ke).models[0]},e.type=\"cartesian2dAxis\",e})(Se);ct(vc,hT);var Pb={show:!0,z:0,inverse:!1,name:\"\",nameLocation:\"end\",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:\"...\",placeholder:\".\"},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:\"auto\",onZeroAxisIndex:null,lineStyle:{color:re.color.axisLine,width:1,type:\"solid\"},symbol:[\"none\",\"none\"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:re.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:re.color.axisSplitLine,width:1,type:\"solid\"}},splitArea:{show:!1,areaStyle:{color:[re.color.backgroundTint,re.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:re.color.neutral00,borderColor:re.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:\"auto\"}},zP=pe({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:\"auto\",show:\"auto\"},axisLabel:{interval:\"auto\"}},Pb),Ud=pe({boundaryGap:[0,0],axisLine:{show:\"auto\"},axisTick:{show:\"auto\"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:re.color.axisMinorSplitLine,width:1}}},Pb),UP=pe({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:\"bold\"}}},splitLine:{show:!1}},Ud),FP=te({logBase:10},Ud),Nb={category:zP,value:Ud,time:UP,log:FP};function dc(t,e,r,i){b(jf,function(n,a){var o=pe(pe({},Nb[a],!0),i,!0),s=(function(l){L(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+\"Axis.\"+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var p=Li(this),h=p?Lr(f):{},v=c.getTheme();pe(f,v.get(a+\"Axis\")),pe(f,this.getDefaultOption()),f.type=Rb(f),p&&hr(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type===\"category\"&&(this.__ordinalMeta=Ns.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type===\"category\")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=jn();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+\"Axis.\"+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+\"Axis\",Rb)}function Rb(t){return t.type||(t.data?\"category\":\"value\")}var VP=(function(){function t(e){this.type=\"cartesian\",this._dimList=[],this._axes={},this.name=e||\"\"}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return R(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Pe(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),kb=VP;var Zs=[\"x\",\"y\"];function Bb(t){return(t.type===\"interval\"||t.type===\"time\")&&!Rn(t)}var HP=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=lo,r.dimensions=Zs,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis(\"x\").scale,i=this.getAxis(\"y\").scale;if(!(!Bb(r)||!Bb(i))){var n=Wn(r,null),a=Wn(i,null),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,p=o[0]-n[0]*f,h=o[1]-a[0]*c,v=this._transform=[f,0,0,c,p,h];this._invTransform=yr([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale(\"ordinal\")[0]||this.getAxesByScale(\"time\")[0]||this.getAxis(\"x\")},e.prototype.containPoint=function(r){var i=this.getAxis(\"x\"),n=this.getAxis(\"y\");return i.contain(i.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis(\"x\").containData(r[0])&&this.getAxis(\"y\").containData(r[1])},e.prototype.containZone=function(r,i){var n=this.dataToPoint(r),a=this.dataToPoint(i),o=this.getArea(),s=new ee(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,i,n){n=n||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return et(n,r,this._transform);var s=this.getAxis(\"x\"),l=this.getAxis(\"y\");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},e.prototype.clampData=function(r,i){var n=this.getAxis(\"x\").scale,a=this.getAxis(\"y\").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(r[0]),u=a.parse(r[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(r,i,n){if(n=n||[],this._invTransform)return et(n,r,this._invTransform);var a=this.getAxis(\"x\"),o=this.getAxis(\"y\");return n[0]=a.coordToData(a.toLocalCoord(r[0]),i),n[1]=o.coordToData(o.toLocalCoord(r[1]),i),n},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim===\"x\"?\"y\":\"x\")},e.prototype.getArea=function(r){r=r||0;var i=this.getAxis(\"x\").getGlobalExtent(),n=this.getAxis(\"y\").getGlobalExtent(),a=Math.min(i[0],i[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(i[0],i[1])-a+r,l=Math.max(n[0],n[1])-o+r;return new ee(a,o,s,l)},e})(kb),zb=HP;function Ub(t,e){var r=t.scale,i=t.model,n=ic(r,i,i.ecModel,t,null),a=Rr(r),o=Rr(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,p,h,v;if(c===1)p=h=0,v=1;else if(c===2){var d=Ae(u[0].value-u[1].value),m=Ae(u[1].value-u[2].value);p=h=0,d===m?v=2:(v=1,d<m?p=d/m:h=m/d)}else{var g=o.getConfig().interval;p=(1-(u[0].value-f[0].value)/g)%1,h=(1-(f[c].value-u[c].value)/g)%1,v=c-(p?1:0)-(h?1:0)}var y=n.zoomFixMM,_=y[0]||y[1],x=[n.fixMM[0]||_,n.fixMM[1]||_],S=r.getExtent(),T=s.getExtent(),w=Wf(T,x),A,E,C,D,O,M;function I(ae){for(var j=50,W=0;W<j&&!ae();W++)C=a?C*ce(l,2):Y1(C),D=dr(C)}function z(){A=le(M-C*p,D)}function N(){E=le(O+C*h,D)}function Y(){M=p?le(A+C*p,D):A}function X(){O=h?le(E-C*h,D):E}if(x[0]&&x[1]){A=w[0],E=w[1],C=(E-A)/(v+p+h);var Z=t.getExtent(),ie=Ae(Z[1]-Z[0]);D=jl([E,A],ie,.5/v),Y(),X(),ht(D)&&(C=le(C,D))}else{var J=w[1]-w[0];C=a?ce(Ql(J),1):fn(J/v,Bp),D=dr(C),x[0]?(A=w[0],I(function(){if(Y(),O=le(M+C*v,D),N(),E>=w[1])return!0})):x[1]?(E=w[1],I(function(){if(X(),M=le(O-C*v,D),z(),A<=w[0])return!0})):I(function(){M=le(Tr(w[0]/C)*C,D),O=le(lr(w[1]/C)*C,D);var ae=It((O-M)/C);if(ae<=v){var j=v-ae,W=void 0,ue=n.incl0||a;if(ue&&w[0]===0)W=[0,j];else if(ue&&w[1]===0)W=[j,0];else{var he=lr(j/2);W=j%2===0?[he,he]:A+E<w[0]+w[1]?[he,he+1]:[he+1,he]}if(M=le(M-C*W[0],D),O=le(O+C*W[1],D),z(),N(),A<=w[0]&&E>=w[1])return!0}})}ec(r,x,T,[A,E],S,{interval:C,intervalCount:v,intervalPrecision:D,niceExtent:[M,O]})}var Fb=[[3,1],[0,2]],GP=(function(){function t(e,r,i){this.type=\"grid\",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Zs,this._initCartesian(e,r,i),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var i=this._axesMap;b(this._axesList,function(o){rc(o,wT);var s=o.scale;Ze(s)&&s.setSortInfo(o.model.get(\"categorySortInfo\"))});function n(o){for(var s=K(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):bd(f)}b(l,function(c){WP(c,c.__alignTo)?bd(c):Ub(c,c.__alignTo.scale)})}n(i.x),n(i.y);var a={};b(i.x,function(o){Vb(i,\"y\",o,a)}),b(i.y,function(o){Vb(i,\"x\",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,i){var n=sf(e,r),a=this._rect=ps(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get(\"containLabel\");if(Fd(o,a),!i){var u=XP(a,s,o,l,r),f=void 0;if(l)Wb?(Wb(this._axesList,a),Fd(o,a)):f=Zb(a.clone(),\"axisLabel\",null,a,o,u,n);else{var c=qP(e,a,n),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,v=c.outerBoundsClamp;p&&(f=Zb(p,h,v,a,o,u,n))}Xb(a,o,At.determine,null,f,n),b(this._coordsList,function(d){d.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var i=this._axesMap[e];if(i!=null)return i[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var i=\"x\"+e+\"y\"+r;return this._coordsMap[i]}H(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis(\"x\").index===e||a[n].getAxis(\"y\").index===r)return a[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents(\"xAxis\",ke).models[0],n=e.yAxisModel||r&&r.getReferringComponents(\"yAxis\",ke).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,se(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis(\"x\",i.componentIndex);else if(n)l=this.getAxis(\"y\",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent(\"xAxis\",u(\"x\"),this),r.eachComponent(\"yAxis\",u(\"y\"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,b(s.x,function(f,c){b(s.y,function(p,h){var v=\"x\"+c+\"y\"+h,d=new zb(v);d.master=n,d.model=e,n._coordsMap[v]=d,n._coordsList.push(d),d.addAxis(f),d.addAxis(p)})}),Gb(s.x),Gb(s.y);function u(f){return function(c,p){if(YP(c,e)){var h=c.get(\"position\");f===\"x\"?h!==\"top\"&&h!==\"bottom\"&&(h=o.bottom?\"top\":\"bottom\"):h!==\"left\"&&h!==\"right\"&&(h=o.left?\"right\":\"left\"),o[h]=!0;var v=oT(c),d=new gb(f,sT(c,v,!0),[0,0],v,h);d.onBand=tc(d.scale,c),d.inverse=c.get(\"inverse\"),c.axis=d,d.model=c,d.grid=a,d.index=p,a._axesList.push(d),s[f][p]=d,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],i=[];return b(this.getCartesians(),function(n){var a=e!=null&&e!==\"auto\"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(a);se(r,a)<0&&r.push(a),se(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},t.create=function(e,r){var i=[];return e.eachComponent(\"grid\",function(n,a){var o=new t(n,e,r);o.name=\"grid_\"+a,o.resize(n,r,!0),n.coordinateSystem=o,i.push(o),b(o._axesList,function(s){DT(s,t.dimIdxMap)})}),e.eachSeries(function(n){var a,o;rx({targetModel:n,coordSysType:lo,coordSysProvider:s});function s(){var l=Cb(n),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(Td(a,n,lo),Td(o,n,lo))},this),i},t.dimensions=Zs,t.dimIdxMap=Ms(Zs),t})();function YP(t,e){return t.getCoordSysModel()===e}function Vb(t,e,r,i){r.getAxesOnZeroOf=function(){return a?[a]:[]};var n=t[e],a,o=r.model,s=o.get([\"axisLine\",\"onZero\"]),l=o.get([\"axisLine\",\"onZeroAxisIndex\"]);if(!s)return;if(l!=null)Hb(s,n[l])&&(a=n[l]);else for(var u in n)if(Ue(n,u)&&Hb(s,n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(c){return c.dim+\"_\"+c.index}}function Hb(t,e){if(!e)return!1;var r=e.scale,i=lT(r,0,!1),n=e&&e.type!==\"category\"&&e.type!==\"time\"&&i!==Qf;return n&&t===\"auto\"&&fT(e)&&(n=!1),n}function Gb(t){for(var e=K(t),r,i=[],n=e.length-1;n>=0;n--){var a=t[+e[n]];Gf(a.scale)&&xd(a.model,a.type,!0)==null&&(a.model.get(\"alignTicks\")&&a.model.get(\"interval\")==null?i.push(a):r=a)}r||(r=i.pop()),r&&b(i,function(o){o.__alignTo=r})}function WP(t,e){return Rn(t.scale)||Rn(e.scale)||e.scale.getTicks().length<2}function ZP(t,e){var r=t.getExtent(),i=r[0]+r[1];t.toGlobalCoord=t.dim===\"x\"?function(n){return n+e}:function(n){return i-n+e},t.toLocalCoord=t.dim===\"x\"?function(n){return n-e}:function(n){return i-n+e}}function Fd(t,e){b(t.x,function(r){return Yb(r,e.x,e.width)}),b(t.y,function(r){return Yb(r,e.y,e.height)})}function Yb(t,e,r){var i=[0,r],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),ZP(t,e)}var Wb;function Zb(t,e,r,i,n,a,o){Xb(i,n,At.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=Vm(s,function(p){return p>0})==null;return Pa(i,s,!0,!0,r),Fd(n,i),l;function u(p){b(n[Jr[p]],function(h){if(Xn(h.model)){var v=a.ensureRecord(h.model),d=v.labelInfoList;if(d)for(var m=0;m<d.length;m++){var g=d[m],y=h.scale.normalize(oi(h.scale,Gi(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var _=v.nameLayout;if(_){var y=zi(v.nameLocation)?.5:NaN;f(_.rect,p,y),f(_.rect,1-p,NaN)}}})}function f(p,h,v){var d=t[Jr[h]]-p[Jr[h]],m=p[Mn[h]]+p[Jr[h]]-(t[Mn[h]]+t[Jr[h]]);d=c(d,1-v),m=c(m,v);var g=Fb[h][0],y=Fb[h][1];s[g]=ce(s[g],d),s[y]=ce(s[y],m)}function c(p,h){return p>0&&!pi(h)&&h>1e-4&&(p/=h),p}}function XP(t,e,r,i,n){var a=new Pd(KP);return b(r,function(o){return b(o,function(s){if(Xn(s.model)){var l=!i;s.axisBuilder=Eb(t,e,s.model,n,a,l)}})}),a}function Xb(t,e,r,i,n,a){var o=r===At.determine;b(e,function(u){return b(u,function(f){Xn(f.model)&&(Ab(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Jr[1-u]]=t[Mn[u]]<=a.refContainer[Mn[u]]*.5?0:1-u===1?2:1}b(e,function(u,f){return b(u,function(c){Xn(c.model)&&((i===\"all\"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function qP(t,e,r){var i,n=t.get(\"outerBoundsMode\",!0);n===\"same\"?i=e.clone():(n==null||n===\"auto\")&&(i=ps(t.get(\"outerBounds\",!0)||Bd,r.refContainer));var a=t.get(\"outerBoundsContain\",!0),o;a==null||a===\"auto\"||se([\"all\",\"axisLabel\"],a)<0?o=\"all\":o=a;var s=[Kl(F(t.get(\"outerBoundsClampWidth\",!0),Ws[0]),e.width),Kl(F(t.get(\"outerBoundsClampHeight\",!0),Ws[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var KP=function(t,e,r,i,n,a){var o=r.axis.dim===\"x\"?\"y\":\"x\";Nd(t,e,r,i,n,a),zi(t.nameLocation)||b(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Rd(s.labelInfoList,s.dirVec,i,n)})},qb=GP;function Kb(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return jP(r,t,e),r.seriesInvolved&&$P(r,t),r}function jP(t,e,r){var i=e.getComponent(\"tooltip\"),n=e.getComponent(\"axisPointer\"),a=n.get(\"link\",!0)||[],o=[];b(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=uo(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel(\"tooltip\",i);if(b(s.getAxes(),Me(d,!1,null)),s.getTooltipAxes&&i&&c.get(\"show\")){var p=c.get(\"trigger\")===\"axis\",h=c.get([\"axisPointer\",\"type\"])===\"cross\",v=s.getTooltipAxes(c.get([\"axisPointer\",\"axis\"]));(p||h)&&b(v.baseAxes,Me(d,h?\"cross\":!0,p)),h&&b(v.otherAxes,Me(d,\"cross\",!1))}function d(m,g,y){var _=y.model.getModel(\"axisPointer\",n),x=_.get(\"show\");if(!(!x||x===\"auto\"&&!m&&!Hd(_))){g==null&&(g=_.get(\"triggerTooltip\")),_=m?QP(y,c,n,e,m,g):_;var S=_.get(\"snap\"),T=_.get(\"triggerEmphasis\"),w=uo(y.model),A=g||S||y.type===\"category\",E=t.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:T,involveSeries:A,snap:S,useHandle:Hd(_),seriesModels:[],linkGroup:null};u[w]=E,t.seriesInvolved=t.seriesInvolved||A;var C=JP(a,y);if(C!=null){var D=o[C]||(o[C]={axesInfo:{}});D.axesInfo[w]=E,D.mapper=a[C].mapper,E.linkGroup=D}}}})}function QP(t,e,r,i,n,a){var o=e.getModel(\"axisPointer\"),s=[\"type\",\"snap\",\"lineStyle\",\"shadowStyle\",\"label\",\"animation\",\"animationDurationUpdate\",\"animationEasingUpdate\",\"z\"],l={};b(s,function(p){l[p]=Q(o.get(p))}),l.snap=t.type!==\"category\"&&!!a,o.get(\"type\")===\"cross\"&&(l.type=\"line\");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n===\"cross\"){var f=o.get([\"label\",\"show\"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get(\"crossStyle\");c&&te(u,c.textStyle)}}return t.model.getModel(\"axisPointer\",new Ye(l,r,i))}function $P(t,e){e.eachSeries(function(r){var i=r.coordinateSystem,n=r.get([\"tooltip\",\"trigger\"],!0),a=r.get([\"tooltip\",\"show\"],!0);!i||!i.model||n===\"none\"||n===!1||n===\"item\"||a===!1||r.get([\"axisPointer\",\"show\"],!0)===!1||b(t.coordSysAxesInfo[uo(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function JP(t,e){for(var r=e.model,i=e.dim,n=0;n<t.length;n++){var a=t[n]||{};if(Vd(a[i+\"AxisId\"],r.id)||Vd(a[i+\"AxisIndex\"],r.componentIndex)||Vd(a[i+\"AxisName\"],r.name))return n}}function Vd(t,e){return t===\"all\"||k(t)&&se(t,e)>=0||t===e}function jb(t){var e=mc(t);if(e){var r=e.axisPointerModel,i=e.axis.scale,n=r.option,a=r.get(\"status\"),o=r.get(\"value\");o!=null&&(o=i.parse(o));var s=Hd(r);a==null&&(n.status=s?\"show\":\"hide\");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?\"hide\":\"show\")}}function mc(t){var e=(t.ecModel.getComponent(\"axisPointer\")||{}).coordSysAxesInfo;return e&&e.axesInfo[uo(t)]}function Qb(t){var e=mc(t);return e&&e.axisPointerModel}function Hd(t){return!!t.get([\"handle\",\"show\"])}function uo(t){return t.type+\"||\"+t.id}var $b={},eN=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n,a){this.axisPointerClass&&jb(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},e.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},e.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(r,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=Qb(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,i){$b[r]=i},e.getAxisPointerClass=function(r){return r&&$b[r]},e.type=\"axis\",e})(zt),gc=eN;var Yd=q();function Jb(t,e,r,i){var n=r.axis;if(!n.scale.isBlank()){var a=r.getModel(\"splitArea\"),o=a.getModel(\"areaStyle\"),s=o.get(\"color\"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,breakTicks:\"none\",pruneByBreak:\"preserve_extent_bound\"});if(u.length){var f=s.length,c=Yd(t).splitAreaColors,p=U(),h=0;if(c)for(var v=0;v<u.length;v++){var d=c.get(u[v].tickValue);if(d!=null){h=(d+(f-1)*v)%f;break}}var m=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=k(s)?s:[s];for(var v=1;v<u.length;v++){var y=n.toGlobalCoord(u[v].coord),_=void 0,x=void 0,S=void 0,T=void 0;n.isHorizontal()?(_=m,x=l.y,S=y-_,T=l.height,m=_+S):(_=l.x,x=m,S=l.width,T=y-x,m=x+T);var w=u[v-1].tickValue;w!=null&&p.set(w,h),e.add(new Te({anid:w!=null?\"area_\"+w:null,shape:{x:_,y:x,width:S,height:T},style:te({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}Yd(t).splitAreaColors=p}}}function ew(t){Yd(t).splitAreaColors=null}var tN=[\"splitArea\",\"splitLine\",\"minorSplitLine\",\"breakArea\"],tw=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass=\"CartesianAxisPointer\",r}return e.prototype.render=function(r,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ye,this.group.add(this._axisGroup),!!Xn(r)){this._axisGroup.add(r.axis.axisBuilder.group),b(tN,function(l){r.get([l,\"show\"])&&rN[l](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type===\"changeAxisOrder\"&&a.isInitSort;s||jh(o,this._axisGroup,r),t.prototype.render.call(this,r,i,n,a)}},e.prototype.remove=function(){ew(this)},e.type=\"cartesianAxis\",e})(gc),rN={splitLine:function(t,e,r,i,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel(\"splitLine\"),s=o.getModel(\"lineStyle\"),l=s.get(\"color\"),u=o.get(\"showMinLine\")!==!1,f=o.get(\"showMaxLine\")!==!1;l=k(l)?l:[l];for(var c=i.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,v=a.getTicksCoords({tickModel:o,breakTicks:\"none\",pruneByBreak:\"preserve_extent_bound\"}),d=[],m=[],g=s.getLineStyle(),y=0;y<v.length;y++){var _=a.toGlobalCoord(v[y].coord);if(!(y===0&&!u||y===v.length-1&&!f)){var x=v[y].tickValue;p?(d[0]=_,d[1]=c.y,m[0]=_,m[1]=c.y+c.height):(d[0]=c.x,d[1]=_,m[0]=c.x+c.width,m[1]=_);var S=h++%l.length,T=new cr({anid:x!=null?\"line_\"+x:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},style:te({stroke:l[S]},g),silent:!0});On(T.shape,g.lineWidth),e.add(T)}}}},minorSplitLine:function(t,e,r,i,n){var a=r.axis,o=r.getModel(\"minorSplitLine\"),s=o.getModel(\"lineStyle\"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),v=0;v<f.length;v++)for(var d=0;d<f[v].length;d++){var m=a.toGlobalCoord(f[v][d].coord);u?(c[0]=m,c[1]=l.y,p[0]=m,p[1]=l.y+l.height):(c[0]=l.x,c[1]=m,p[0]=l.x+l.width,p[1]=m);var g=new cr({anid:\"minor_line_\"+f[v][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});On(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,i,n){Jb(t,e,r,i)},breakArea:function(t,e,r,i,n){var a=jn(),o=r.axis.scale;a&&o.type!==\"ordinal\"&&a.rectCoordBuildBreakAxis(e,t,r,i.coordinateSystem.getRect(),n)}},Wd=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type=\"xAxis\",e})(tw);var rw=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Wd.type,r}return e.type=\"yAxis\",e})(tw);var iN=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=\"grid\",r}return e.prototype.render=function(r,i){this.group.removeAll(),r.get(\"show\")&&this.group.add(new Te({shape:r.coordinateSystem.getRect(),style:te({fill:r.get(\"backgroundColor\")},r.getItemStyle()),silent:!0,z2:-1}))},e.type=\"grid\",e})(zt),iw={offset:0};function yc(t){t.registerComponentView(iN),t.registerComponentModel(Db),t.registerCoordinateSystem(\"cartesian2d\",qb),dc(t,\"x\",vc,iw),dc(t,\"y\",vc,iw),t.registerComponentView(Wd),t.registerComponentView(rw),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function Zd(t){Jt(yc),t.registerSeriesModel(Mb),t.registerChartView(Lb),t.registerLayout(Kn(\"scatter\"))}var nN=q();function Xd(t,e){return!!nN(t)[e]}ni({type:\"takeGlobalCursor\",event:\"globalCursorTaken\",update:\"update\"},Ce);var oN={axisPointer:1,tooltip:1,brush:1};function nw(t,e,r){var i=e.getComponentByElement(t.topTarget);if(!i||i===r||oN.hasOwnProperty(i.mainType))return!1;var n=i.coordinateSystem;if(!n||n.model===r)return!1;var a=Mi(i),o=Mi(r);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var sN=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i._zr=r;var n=$(i._mousedownHandler,i),a=$(i._mousemoveHandler,i),o=$(i._mouseupHandler,i),s=$(i._mousewheelHandler,i),l=$(i._pinchHandler,i);return i.enable=function(u,f){var c=f.zInfo,p=Mi(c.component),h=p.z,v=p.zlevel,d={component:c.component,z:h,zlevel:v,z2:F(c.z2,-1/0)},m=P({},f.triggerInfo);this._opt=te(P({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:d,triggerInfo:m,cursorGrab:\"grab\",cursorGrabbing:\"grabbing\"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u===\"move\"||u===\"pan\")&&(qs(r,\"mousedown\",n,d),qs(r,\"mousemove\",a,d),qs(r,\"mouseup\",o,d)),(u===!0||u===\"scale\"||u===\"zoom\")&&(qs(r,\"mousewheel\",s,d),qs(r,\"pinch\",l,d)))},i.disable=function(){this._enabled&&(this._enabled=!1,Ks(r,\"mousedown\",n),Ks(r,\"mousemove\",a),Ks(r,\"mouseup\",o),Ks(r,\"mousewheel\",s),Ks(r,\"pinch\",l))},i}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(r,i,n){var a=this._opt,o=a.zInfoParsed;if(nw(r,a.api,o.component))return!1;var s=a.triggerInfo,l=s.roamTrigger,u=!1;return l===\"global\"&&(u=!0),u||(u=s.isInSelf(r,i,n)),u&&s.isInClip&&!s.isInClip(r,i,n)&&(u=!1),u},e.prototype._decideCursorStyle=function(r,i,n,a){var o=r.target;if(!o&&this._checkPointer(r,i,n))return this._opt.cursorGrab;if(a)return o&&o.cursor||\"default\"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(r){if(!(Wc(r)||Xs(r))){for(var i=r.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var n=r.offsetX,a=r.offsetY;this._checkPointer(r,n,a)&&(this._x=n,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(r){var i=this._zr;if(!(r.gestureEvent===\"pinch\"||Xd(i,\"globalPan\")||Xs(r))){var n=r.offsetX,a=r.offsetY;if(!this._dragging||!_c(\"moveOnMouseMove\",r,this._opt)){var o=this._decideCursorStyle(r,n,a,!1);o&&i.setCursorStyle(o);return}i.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=n-s,f=a-l;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&gr(r.event),r.__ecRoamConsumed=!0,aw(this,\"pan\",\"moveOnMouseMove\",r,{dx:u,dy:f,oldX:s,oldY:l,newX:n,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(r){if(!Xs(r)){var i=this._zr;if(!Wc(r)){this._dragging=!1;var n=this._decideCursorStyle(r,r.offsetX,r.offsetY,!0);n&&i.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(r){if(!Xs(r)){var i=_c(\"zoomOnMouseWheel\",r,this._opt),n=_c(\"moveOnMouseWheel\",r,this._opt),a=r.wheelDelta,o=Math.abs(a),s=r.offsetX,l=r.offsetY;if(!(a===0||!i&&!n)){if(i){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;this._checkTriggerMoveZoom(this,\"zoom\",\"zoomOnMouseWheel\",r,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var c=Math.abs(a),p=(a>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,\"scrollMove\",\"moveOnMouseWheel\",r,{scrollDelta:p,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(r){if(!(Xd(this._zr,\"globalPan\")||Xs(r))){var i=r.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,\"zoom\",null,r,{scale:i,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(r,i,n,a,o){r._checkPointer(a,o.originX,o.originY)&&(gr(a.event),a.__ecRoamConsumed=!0,aw(r,i,n,a,o))},e})(tt);function Xs(t){return t.__ecRoamConsumed}var lN=q();function xc(t){var e=lN(t);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function qs(t,e,r,i){for(var n=xc(t),a=n.roam,o=a[e]=a[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-i.zlevel||l.z-i.z||l.z2-i.z2)<=0)break}o.splice(s,0,{listener:r,zInfoParsed:i}),uN(t,e)}function Ks(t,e,r){for(var i=xc(t),n=i.roam[e]||[],a=0;a<n.length;a++)if(n[a].listener===r){n.splice(a,1),n.length||fN(t,e);return}}function uN(t,e){var r=xc(t);r.uniform[e]||t.on(e,r.uniform[e]=function(i){var n=r.roam[e];if(n)for(var a=0;a<n.length;a++)n[a].listener(i)})}function fN(t,e){var r=xc(t),i=r.uniform;i[e]&&(t.off(e,i[e]),i[e]=null)}function aw(t,e,r,i,n){n.isAvailableBehavior=$(_c,null,r,i),t.trigger(e,n)}function _c(t,e,r){var i=r[t];return!t||i&&(!B(i)||e.event[i+\"Key\"])}var ow=sN;function ui(t,e,r,i,n,a){t=t||0;var o=Yr(r[1],-r[0]);if(n!=null&&(n=fo(n,[0,o])),a!=null&&(a=Math.max(a,n??0)),i===\"all\"){var s=Math.abs(Yr(e[1],-e[0]));s=fo(s,[0,o]),n=a=fo(s,[n,a]),i=0}e[0]=fo(e[0],r),e[1]=fo(e[1],r);var l=qd(e,i);e[i]+=t;var u=n||0,f=r.slice();l.sign<0?f[0]=Yr(f[0],u):f[1]=Yr(f[1],-u),e[i]=fo(e[i],f);var c;return c=qd(e,i),n!=null&&(c.sign!==l.sign||c.span<n)&&(e[1-i]=Yr(e[i],l.sign*n)),c=qd(e,i),a!=null&&c.span>a&&(e[1-i]=Yr(e[i],c.sign*a)),e}function qd(t,e){var r=t[e]-t[1-e];return{span:Math.abs(r),sign:r>0?-1:r<0?1:e?-1:1}}function fo(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var $n=q(),sw=Q,Kd=$,cN=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,i,n){var a=r.get(\"value\"),o=r.get(\"status\");if(this._axisModel=e,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o===\"hide\"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new ye,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),i.getZr().add(s);else{var p=Me(lw,r,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}fw(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var i=r.get(\"animation\"),n=e.axis,a=n.type===\"category\",o=r.get(\"snap\");if(!o&&!a)return!1;if(i===\"auto\"||i==null){var s=this.animationThreshold;if(a&&qn(n).w>s)return!0;if(o){var l=mc(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},t.prototype.makeElOption=function(e,r,i,n,a){},t.prototype.createPointerEl=function(e,r,i,n){var a=r.pointer;if(a){var o=$n(e).pointerEl=new ut[a.type](sw(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,i,n){if(r.label){var a=$n(e).labelEl=new je(sw(r.label));e.add(a),uw(a,n)}},t.prototype.updatePointerEl=function(e,r,i){var n=$n(e).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,i,n){var a=$n(e).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),uw(a,n))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel(\"handle\"),o=r.get(\"status\");if(!a.get(\"show\")||!o||o===\"hide\"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Qh(a.get(\"icon\"),{cursor:\"move\",draggable:!0,onmousemove:function(u){gr(u.event)},onmousedown:Kd(this._onHandleDragMove,this,0,0),drift:Kd(this._onHandleDragMove,this),ondragend:Kd(this._onHandleDragEnd,this)}),i.add(n)),fw(n,r,!1),n.setStyle(a.getItemStyle(null,[\"color\",\"borderColor\",\"borderWidth\",\"opacity\",\"shadowColor\",\"shadowBlur\",\"shadowOffsetX\",\"shadowOffsetY\"]));var l=a.get(\"size\");k(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Za(this,\"_doDispatchAxisPointer\",a.get(\"throttle\")||0,\"fixRate\"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){lw(this._axisPointerModel,!r&&this._moveAnimation,this._handle,jd(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(jd(i),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(jd(n)),$n(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:\"updateAxisPointer\",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get(\"value\");this._moveHandleToValue(r),this._api.dispatchAction({type:\"hideTip\"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Tf(this,\"_doDispatchAxisPointer\")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,i){return i=i||0,{x:e[i],y:e[1-i],width:r[i],height:r[1-i]}},t})();function lw(t,e,r,i){cw($n(r).lastProp,i)||($n(r).lastProp=i,e?jt(r,i,t):(r.stopAnimation(),r.attr(i)))}function cw(t,e){if(H(t)&&H(e)){var r=!0;return b(e,function(i,n){r=r&&cw(t[n],i)}),!!r}else return t===e}function uw(t,e){t[e.get([\"label\",\"show\"])?\"show\":\"hide\"]()}function jd(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function fw(t,e,r){var i=e.get(\"z\"),n=e.get(\"zlevel\");t&&t.traverse(function(a){a.type!==\"group\"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}var pw=cN;function hw(t){var e=t.get(\"type\"),r=t.getModel(e+\"Style\"),i;return e===\"line\"?(i=r.getLineStyle(),i.fill=null):e===\"shadow\"&&(i=r.getAreaStyle(),i.stroke=null),i}function pN(t,e,r,i,n){var a=r.get(\"value\"),o=vN(a,e.axis,e.ecModel,r.get(\"seriesDataIndices\"),{precision:r.get([\"label\",\"precision\"]),formatter:r.get([\"label\",\"formatter\"])}),s=r.getModel(\"label\"),l=Ju(s.get(\"padding\")||0),u=s.getFont(),f=Gl(o,u),c=n.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=n.align;v===\"right\"&&(c[0]-=p),v===\"center\"&&(c[0]-=p/2);var d=n.verticalAlign;d===\"bottom\"&&(c[1]-=h),d===\"middle\"&&(c[1]-=h/2),hN(c,p,h,i);var m=s.get(\"backgroundColor\");(!m||m===\"auto\")&&(m=e.get([\"axisLine\",\"lineStyle\",\"color\"])),t.label={x:c[0],y:c[1],style:ei(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function hN(t,e,r,i){var n=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,n)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function vN(t,e,r,i,n){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:n.precision}),o=n.formatter;if(o){var s={value:$f(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};b(i,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),B(o)?a=o.replace(\"{value}\",a):G(o)&&(a=o(s))}return a}function Qd(t,e,r){var i=pt();return sa(i,i,r.rotation),xo(i,i,r.position),In([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function vw(t,e,r,i,n,a){var o=hc.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get([\"label\",\"margin\"]),pN(e,i,n,a,{position:Qd(i.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function dw(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function mw(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function gw(t,e,r){return qn(t,{fromStat:{sers:R(e,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function yw(t,e,r){return[ce(Fe(e[0],e[1]),t-r/2),Fe(t+r/2,ce(e[0],e[1]))]}var mN=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,l=s.grid,u=a.get(\"type\"),f=s.getGlobalExtent(),c=_w(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!==\"none\"){var h=hw(a),v=gN[u](s,p,f,c,a.get(\"seriesDataIndices\"),a.ecModel);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=Ys(l.getRect(),n);vw(i,r,d,n,a,o)},e.prototype.getHandleTransform=function(r,i,n){var a=Ys(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get([\"handle\",\"margin\"]);var o=Qd(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=_w(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim===\"x\"?0:1,c=[r.x,r.y];c[f]+=i[f],c[f]=Fe(l[1],c[f]),c[f]=ce(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];var v=[{verticalAlign:\"middle\"},{align:\"center\"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[f]}},e})(pw);function _w(t,e){var r={};return r[e.dim+\"AxisIndex\"]=e.index,t.getCartesian(r)}var gN={line:function(t,e,r,i){var n=dw([e,i[0]],[e,i[1]],xw(t));return{type:\"Line\",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r,i,n,a){var o=gw(t,n,a),s=i[1]-i[0],l=yw(e,r,o),u=l[0],f=l[1];return{type:\"Rect\",shape:mw([u,i[0]],[f-u,s],xw(t))}}};function xw(t){return t.dim===\"x\"?0:1}var Sw=mN;var yN=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type=\"axisPointer\",e.defaultOption={show:\"auto\",z:50,type:\"line\",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:re.color.border,width:1,type:\"dashed\"},shadowStyle:{color:re.color.shadowTint},label:{show:!0,formatter:null,precision:\"auto\",margin:3,color:re.color.neutral00,padding:[5,7,5,7],backgroundColor:re.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:\"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z\",size:45,margin:50,color:re.color.accent40,throttle:40}},e})(Se),Tw=yN;var fi=q(),_N=b;function bw(t,e,r){if(!me.node){var i=e.getZr();fi(i).records||(fi(i).records={}),xN(i,e);var n=fi(i).records[t]||(fi(i).records[t]={});n.handler=r}}function xN(t,e){if(fi(t).initialized)return;fi(t).initialized=!0,r(\"click\",Me($d,\"click\")),r(\"mousemove\",Me($d,\"mousemove\")),r(\"mousewheel\",Me($d,\"mousewheel\")),r(\"globalout\",TN);function r(i,n){t.on(i,function(a){var o=bN(e);_N(fi(t).records,function(s){s&&n(s,a,o.dispatchAction)}),SN(o.pendings,e)})}}function SN(t,e){var r=t.showTip.length,i=t.hideTip.length,n;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function TN(t,e,r){t.handler(\"leave\",null,r)}function $d(t,e,r,i){e.handler(t,r,i)}function bN(t){var e={showTip:[],hideTip:[]},r=function(i){var n=e[i.type];n?n.push(i):(i.dispatchAction=r,t.dispatchAction(i))};return{dispatchAction:r,pendings:e}}function Jd(t,e){if(!me.node){var r=e.getZr(),i=(fi(r).records||{})[t];i&&(fi(r).records[t]=null)}}var CN=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n){var a=i.getComponent(\"tooltip\"),o=r.get(\"triggerOn\")||a&&a.get(\"triggerOn\")||\"mousemove|click|mousewheel\";bw(\"axisPointer\",n,function(s,l,u){o!==\"none\"&&(s===\"leave\"||o.indexOf(s)>=0)&&u({type:\"updateAxisPointer\",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,i){Jd(\"axisPointer\",i)},e.prototype.dispose=function(r,i){Jd(\"axisPointer\",i)},e.type=\"axisPointer\",e})(zt),ww=CN;function em(t,e){var r=[],i=t.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=Wt(a,t);if(o==null||o<0||k(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,p=u.dim,h=c===\"x\"||c===\"radius\"?1:0,v=a.mapDimension(p),d=[];d[h]=a.get(v,o),d[1-h]=a.get(a.getCalculationInfo(\"stackResultDimension\"),o),r=l.dataToPoint(d)||[]}else r=l.dataToPoint(a.getValues(R(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var Cw=q();function tm(t,e,r){var i=t.currTrigger,n=[t.x,t.y],a=t,o=t.dispatchAction||$(r.dispatchAction,r),s=e.getComponent(\"axisPointer\").coordSysAxesInfo;if(s){Sc(n)&&(n=em({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Sc(n),u=a.axesInfo,f=s.axesInfo,c=i===\"leave\"||Sc(n),p={},h={},v={list:[],map:{}},d={showPointer:Me(AN,h),showTooltip:Me(DN,v)};b(s.coordSysMap,function(g,y){var _=l||g.containPoint(n);b(s.coordSysAxesInfo[y],function(x,S){var T=x.axis,w=LN(u,x);if(!c&&_&&(!u||w)){var A=w&&w.value;A==null&&!l&&(A=T.pointToData(n)),A!=null&&Ew(x,A,d,!1,p)}})});var m={};return b(f,function(g,y){var _=g.linkGroup;_&&!h[y]&&b(_.axesInfo,function(x,S){var T=h[S];if(x!==g&&T){var w=T.value;_.mapper&&(w=g.axis.scale.parse(_.mapper(w,Aw(x),Aw(g)))),m[g.key]=w}})}),b(m,function(g,y){Ew(f[y],g,d,!0,p)}),MN(h,f,p),ON(v,n,t,o),IN(f,o,r),p}}function Ew(t,e,r,i,n){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=EN(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&P(n,s[0]),!i&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function EN(t,e){var r=e.axis,i=r.dim,n=t,a=[],o=Number.MAX_VALUE,s=-1;return b(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);p=h.dataIndices,c=h.nestestValue}else{if(p=l.indicesOfNearest(i,f[0],t,r.type===\"category\"?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(ht(c)){var v=t-c,d=Math.abs(v);d<=o&&((d<o||v>=0&&s<0)&&(o=d,s=v,n=c,a.length=0),b(p,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:n}}function AN(t,e,r,i){t[e.key]={value:r,payloadBatch:i}}function DN(t,e,r,i){var n=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=uo(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get([\"label\",\"precision\"]),formatter:s.get([\"label\",\"formatter\"])},seriesDataIndices:n.slice()})}}function MN(t,e,r){var i=r.axesInfo=[];b(e,function(n,a){var o=n.axisPointerModel.option,s=t[a];s?(!n.useHandle&&(o.status=\"show\"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status=\"hide\"),o.status===\"show\"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function ON(t,e,r,i){if(Sc(e)||!t.list.length){i({type:\"hideTip\"});return}var n=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:\"showTip\",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:t.list})}function IN(t,e,r){var i=r.getZr(),n=\"axisPointerLastHighlights\",a=Cw(i)[n]||{},o=Cw(i)[n]={};b(t,function(f,c){var p=f.axisPointerModel.option;p.status===\"show\"&&f.triggerEmphasis&&b(p.seriesDataIndices,function(h){o[h.seriesIndex+\"|\"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}b(a,function(f,c){!o[c]&&l.push(u(f))}),b(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:\"downplay\",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:\"highlight\",escapeConnect:!0,notBlur:!0,batch:s})}function LN(t,e){for(var r=0;r<(t||[]).length;r++){var i=t[r];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function Aw(t){var e=t.axis.model,r={},i=r.axisDim=t.axis.dim;return r.axisIndex=r[i+\"AxisIndex\"]=e.componentIndex,r.axisName=r[i+\"AxisName\"]=e.name,r.axisId=r[i+\"AxisId\"]=e.id,r}function Sc(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Dw(t){gc.registerAxisPointerClass(\"CartesianAxisPointer\",Sw),t.registerComponentModel(Tw),t.registerComponentView(ww),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!k(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent(\"axisPointer\").coordSysAxesInfo=Kb(e,r)}}),t.registerAction({type:\"updateAxisPointer\",event:\"updateAxisPointer\",update:\":updateAxisPointer\"},tm)}function rm(t){Jt(yc),Jt(Dw)}var im=[\"x\",\"y\",\"radius\",\"angle\",\"single\"],PN=q(),NN=[\"cartesian2d\",\"polar\",\"singleAxis\"];function Mw(t){var e=t.get(\"coordinateSystem\");return se(NN,e)>=0}function er(t){return t+\"Axis\"}function Ow(t,e){var r=U(),i=[],n=U();t.eachComponent({mainType:\"dataZoom\",query:e},function(f){n.get(f.uid)||s(f)});var a;do a=!1,t.eachComponent(\"dataZoom\",o);while(a);function o(f){!n.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){n.set(f.uid,!0),i.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(p,h){var v=r.get(p);v&&v[h]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,p){(r.get(c)||r.set(c,[]))[p]=!0})}return i}function Tc(t){var e=t.ecModel,r={infoList:[],infoMap:U()};return t.eachTargetAxis(function(i,n){var a=e.getComponent(er(i),n);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}function Iw(t){var e=PN(Vv(t));return e.axisProxyMap||(e.axisProxyMap=U())}function co(t){if(t)return Iw(t.ecModel).get(t.uid)}function Lw(t,e){Iw(t.ecModel).set(t.uid,e)}function bc(t,e){var r=e.getAxisModel().axis.__alignTo;return r&&t.getAxisProxy(r.dim,r.model.componentIndex)?co(r.model):null}var nm=(function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t})(),RN=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=[\"percent\",\"percent\"],r}return e.prototype.init=function(r,i,n){var a=Pw(r);this.settledOption=a,this.mergeDefaultAndTheme(r,n),this._doInit(a)},e.prototype.mergeOption=function(r){var i=Pw(r);pe(this.option,r,!0),pe(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(r){var i=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var n=this.settledOption;b([[\"start\",\"startValue\"],[\"end\",\"endValue\"]],function(a,o){this._rangePropMode[o]===\"value\"&&(i[a[0]]=n[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var r=this.get(\"orient\",!0),i=this._targetAxisInfoMap=U(),n=this._fillSpecifiedTargetAxis(i);n?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||\"horizontal\",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(r){var i=!1;return b(im,function(n){var a=this.getReferringComponents(er(n),Cy);if(a.specified){i=!0;var o=new nm;b(a.models,function(s){o.add(s.componentIndex)}),r.set(n,o)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(r,i){var n=this.ecModel,a=!0;if(a){var o=i===\"vertical\"?\"y\":\"x\",s=n.findComponents({mainType:o+\"Axis\"});l(s,o)}if(a){var s=n.findComponents({mainType:\"singleAxis\",filter:function(f){return f.get(\"orient\",!0)===i}});l(s,\"single\")}function l(u,f){var c=u[0];if(c){var p=new nm;if(p.add(c.componentIndex),r.set(f,p),a=!1,f===\"x\"||f===\"y\"){var h=c.getReferringComponents(\"grid\",ke).models[0];h&&b(u,function(v){c.componentIndex!==v.componentIndex&&h===v.getReferringComponents(\"grid\",ke).models[0]&&p.add(v.componentIndex)})}}}a&&b(im,function(u){if(a){var f=n.findComponents({mainType:er(u),filter:function(p){return p.get(\"type\",!0)===\"category\"}});if(f[0]){var c=new nm;c.add(f[0].componentIndex),r.set(u,c),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(i){!r&&(r=i)},this),r===\"y\"?\"vertical\":\"horizontal\"},e.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty(\"throttle\")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(r){var i=this._rangePropMode,n=this.get(\"rangeMode\");b([[\"start\",\"startValue\"],[\"end\",\"endValue\"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?i[o]=\"percent\":!s&&l?i[o]=\"value\":n?i[o]=n[o]:s&&(i[o]=\"percent\")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(i,n){r==null&&(r=this.ecModel.getComponent(er(i),n))},this),r},e.prototype.eachTargetAxis=function(r,i){this._targetAxisInfoMap.each(function(n,a){b(n.indexList,function(o){r.call(i,a,o)})})},e.prototype.getAxisProxy=function(r,i){return co(this.getAxisModel(r,i))},e.prototype.getAxisModel=function(r,i){var n=this._targetAxisInfoMap.get(r);if(n&&n.indexMap[i])return this.ecModel.getComponent(er(r),i)},e.prototype.setRawRange=function(r){var i=this.option,n=this.settledOption;b([[\"start\",\"startValue\"],[\"end\",\"endValue\"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(i[a[0]]=n[a[0]]=r[a[0]],i[a[1]]=n[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},e.prototype.setCalculatedRange=function(r){var i=this.option;b([\"start\",\"startValue\",\"end\",\"endValue\"],function(n){i[n]=r[n]})},e.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getWindow().percent},e.prototype.getValueRange=function(r,i){if(r==null&&i==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(r,i).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(r){if(r)return co(r);for(var i,n=this._targetAxisInfoMap.keys(),a=0;a<n.length;a++)for(var o=n[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;i||(i=u)}return i},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type=\"dataZoom\",e.dependencies=[\"xAxis\",\"yAxis\",\"radiusAxis\",\"angleAxis\",\"singleAxis\",\"series\",\"toolbox\"],e.defaultOption={z:4,filterMode:\"filter\",start:0,end:100},e})(Se);function Pw(t){var e={};return b([\"start\",\"end\",\"startValue\",\"endValue\",\"throttle\"],function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var po=RN;var kN=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n,a){this.dataZoomModel=r,this.ecModel=i,this.api=n},e.type=\"dataZoom\",e})(zt),wc=kN;var BN=(function(){function t(e,r,i,n){this._dimName=e,this._axisIndex=r,this.ecModel=n,this._dataZoomModel=i}return t.prototype.hostedBy=function(e){return this._dataZoomModel===e},t.prototype.getWindow=function(){return Q(this._window)},t.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(r){if(Mw(r)){var i=er(this._dimName),n=r.getReferringComponents(i,ke).models[0];n&&this._axisIndex===n.componentIndex&&e.push(r)}},this),e},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+\"Axis\",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return Q(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var r=this._extent,i=this.getAxisModel().axis,n=i.scale,a=this._dataZoomModel,o=a.getRangePropMode(),s=[0,100],l=[],u=[],f,c=[!1,!1];b([\"start\",\"end\"],function(_,x){var S=e[_],T=e[_+\"Value\"];o[x]===\"percent\"?(S==null&&(S=s[x]),T=Oe(S,s,r),c[x]=!0):(f=!0,T==null?T=r[x]:(T=n.parse(T),n.sanitize&&(T=n.sanitize(T,r))),S=Oe(T,r,s)),u[x]=T==null||isNaN(T)?r[x]:T,l[x]=S==null||isNaN(S)?s[x]:S}),Yt(u),Yt(l);var p=this._minMaxSpan;f?h(u,l,r,s,!1):h(l,u,s,r,!0);function h(_,x,S,T,w){var A=w?\"Span\":\"ValueSpan\";ui(0,_,S,\"all\",p[\"min\"+A],p[\"max\"+A]);for(var E=0;E<2;E++)x[E]=Oe(_[E],S,T,!0),w&&(x[E]=x[E],c[E]=!0);ba(x)}var v=Ze(n)||Nr(n),d=i.getExtent(),m=Ae(d[1]-d[0]),g=v?0:jl(u,m,.5);b([[0,Tr],[1,lr]],function(_){var x=_[0],S=_[1];!c[x]||!isFinite(g)||(u[x]=le(u[x],g),u[x]=Fe(r[1],ce(r[0],u[x])),l[x]===s[x]&&(u[x]=r[x],v&&(u[x]=S(u[x]))))}),ba(u);var y=[Oe(u[0],r,s,!0),Oe(u[1],r,s,!0)];return ba(y),{value:u,percent:l,percentInverted:y,valuePrecision:g}},t.prototype.reset=function(e,r){if(this.hostedBy(e)){var i=this.getAxisModel().axis;rc(i,CT);var n=i.scale.rawExtentInfo;this._extent=n.makeNoZoom(),this._updateMinMaxSpan();var a=e.settledOption;r&&(a=te({start:r[0],end:r[1]},a));var o=this._window=this.calculateDataWindow(a),s=o.percent,l=o.value;s[0]!==0&&n.setZoomMM(0,l[0]),s[1]!==100&&n.setZoomMM(1,l[1])}},t.prototype.filterData=function(e,r){if(!this.hostedBy(e))return;var i=this._dimName,n=this.getTargetSeriesModels(),a=e.get(\"filterMode\"),o=this._window.value;if(a===\"none\")return;b(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(i);if(f.length){if(a===\"weakFilter\"){var c=u.getStore(),p=R(f,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var v,d,m,g=0;g<f.length;g++){var y=c.get(p[g],h),_=!isNaN(y),x=y<o[0],S=y>o[1];if(_&&!x&&!S)return!0;_&&(m=!0),x&&(v=!0),S&&(d=!0)}return m&&v&&d})}else b(f,function(h){if(a===\"empty\")l.setData(u=u.map(h,function(d){return s(d)?d:NaN}));else{var v={};v[h]=o,u.selectRange(v)}});b(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},r=this._dataZoomModel,i=this._extent;b([\"min\",\"max\"],function(n){var a=r.get(n+\"Span\"),o=r.get(n+\"ValueSpan\");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Oe(i[0]+o,i,[0,100],!0):a!=null&&(o=Oe(a,[0,100],i,!0)-i[0]),e[n+\"Span\"]=a,e[n+\"ValueSpan\"]=o},this)},t})(),Nw=BN;var zN={dirtyOnOverallProgress:!0,getTargetSeries:function(t){function e(n){t.eachComponent(\"dataZoom\",function(a){a.eachTargetAxis(function(o,s){var l=t.getComponent(er(o),s);n(o,s,l,a)})})}var r=[];e(function(n,a,o,s){if(!co(o)){var l=new Nw(n,a,s,t);r.push(l),Lw(o,l)}});var i=U();return b(r,function(n){b(n.getTargetSeriesModels(),function(a){i.set(a.uid,a)})}),i},overallReset:function(t,e){t.eachComponent(\"dataZoom\",function(r){var i=[];r.eachTargetAxis(function(n,a){var o=r.getAxisProxy(n,a),s=bc(r,o);s?i.push([o,s]):o.reset(r,null)}),b(i,function(n){n[0].reset(r,n[1].getWindow().percentInverted)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,e)})}),t.eachComponent(\"dataZoom\",function(r){var i=r.findRepresentativeAxisProxy();if(i){var n=i.getWindow(),a=n.percent,o=n.value;r.setCalculatedRange({start:a[0],end:a[1],startValue:o[0],endValue:o[1]})}})}},Rw=zN;function am(t){t.registerAction(\"dataZoom\",function(e,r){var i=Ow(r,e);b(i,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var UN=tu();function js(t){UN(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,Rw),am(t),t.registerSubTypeDefaulter(\"dataZoom\",function(){return\"slider\"})})}var FN=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type=\"dataZoom.inside\",e.defaultOption=Bu(po.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(po),kw=FN;var om=q();function Bw(t,e,r){om(t).coordSysRecordMap.each(function(i){var n=i.dataZoomInfoMap.get(e.uid);n&&(n.getRange=r)})}function zw(t,e){for(var r=om(t).coordSysRecordMap,i=r.keys(),n=0;n<i.length;n++){var a=i[n],o=r.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||Uw(r,o))}}}function Uw(t,e){if(e){t.removeKey(e.model.uid);var r=e.controller;r&&r.dispose()}}function VN(t,e){var r={model:e,containsPoint:Me(GN,e),dispatchAction:Me(HN,t),dataZoomInfoMap:null,controller:null},i=r.controller=new ow(t.getZr());return b([\"pan\",\"zoom\",\"scrollMove\"],function(n){i.on(n,function(a){var o=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,a);!s.model.get(\"disabled\",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function HN(t,e){t.isDisposed()||t.dispatchAction({type:\"dataZoom\",animation:{easing:\"cubicOut\",duration:100},batch:e})}function GN(t,e,r,i){return t.coordinateSystem.containPoint([r,i])}function YN(t,e,r){var i,n=\"type_\",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,l;return t.each(function(u){var f=u.model,c=f.get(\"disabled\",!0)?!1:f.get(\"zoomLock\",!0)?\"move\":!0;a[n+c]>a[n+i]&&(i=c),o=o&&f.get(\"preventDefaultMouseMove\",!0),s=F(f.get(\"cursorGrab\",!0),s),l=F(f.get(\"cursorGrabbing\",!0),l)}),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:r,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function Fw(t){t.registerUpdateLifecycle(\"coordsys:aftercreate\",function(e,r){var i=om(r),n=i.coordSysRecordMap||(i.coordSysRecordMap=U());n.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:\"dataZoom\",subType:\"inside\"},function(a){var o=Tc(a);b(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,VN(r,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=U());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),n.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Uw(n,a);return}var f=YN(l,a,r);o.enable(f.controlType,f.opt),Za(a,\"dispatchAction\",s.model.get(\"throttle\",!0),\"fixRate\")})})}var ZN=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=\"dataZoom.inside\",r}return e.prototype.render=function(r,i,n){if(t.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),Bw(n,r,{pan:$(sm.pan,this),zoom:$(sm.zoom,this),scrollMove:$(sm.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){zw(this.api,this.dataZoomModel),this.range=null},e.type=\"dataZoom.inside\",e})(wc),sm={zoom:function(t,e,r,i){var n=this.range,a=n.slice(),o=t.axisModels[0];if(o){var s=lm[e](null,[i.originX,i.originY],o,r,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/i.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ui(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,n[0]!==a[0]||n[1]!==a[1])return a}},pan:Vw(function(t,e,r,i,n,a){var o=lm[i]([a.oldX,a.oldY],[a.newX,a.newY],e,n,r);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:Vw(function(t,e,r,i,n,a){var o=lm[i]([0,0],[a.scrollDelta,a.scrollDelta],e,n,r);return o.signal*(t[1]-t[0])*a.scrollDelta})};function Vw(t){return function(e,r,i,n){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,r,i,n);if(ui(l,o,[0,100],\"all\"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var lm={grid:function(t,e,r,i,n){var a=r.axis,o={},s=n.model.coordinateSystem.getRect();return t=t||[0,0],a.dim===\"x\"?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,r,i,n){var a=r.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),r.mainType===\"radiusAxis\"?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,r,i,n){var a=r.axis,o=n.model.coordinateSystem.getRect(),s={};return t=t||[0,0],a.orient===\"horizontal\"?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},Hw=ZN;function Gw(t){js(t),t.registerComponentModel(kw),t.registerComponentView(Hw),Fw(t)}var XN=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type=\"dataZoom.slider\",e.layoutMode=\"box\",e.defaultOption=Bu(po.defaultOption,{show:!0,right:\"ph\",top:\"ph\",width:\"ph\",height:\"ph\",left:null,bottom:null,borderColor:re.color.accent10,borderRadius:0,backgroundColor:re.color.transparent,dataBackground:{lineStyle:{color:re.color.accent30,width:.5},areaStyle:{color:re.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:re.color.accent40,width:.5},areaStyle:{color:re.color.accent20,opacity:.3}},fillerColor:\"rgba(135,175,274,0.2)\",handleIcon:\"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z\",handleSize:\"100%\",handleStyle:{color:re.color.neutral00,borderColor:re.color.accent20},moveHandleSize:7,moveHandleIcon:\"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z\",moveHandleStyle:{color:re.color.accent40,opacity:.5},showDetail:!0,showDataShadow:\"auto\",realtime:!0,zoomLock:!1,textStyle:{color:re.color.tertiary},brushSelect:!0,brushStyle:{color:re.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:re.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e})(po),Yw=XN;var Qs=Te,qN=1,um=30,KN=7,$s=\"horizontal\",Ww=\"vertical\",jN=5,QN=[\"line\",\"bar\",\"candlestick\",\"scatter\"],$N={easing:\"cubicOut\",duration:100,delay:0},JN=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._displayables={},r}return e.prototype.init=function(r,i){this.api=i,this._onBrush=$(this._onBrush,this),this._onBrushEnd=$(this._onBrushEnd,this)},e.prototype.render=function(r,i,n,a){if(t.prototype.render.apply(this,arguments),Za(this,\"_dispatchZoomAction\",r.get(\"throttle\"),\"fixRate\"),this._orient=r.getOrient(),r.get(\"show\")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!==\"dataZoom\"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Tf(this,\"_dispatchZoomAction\");var r=this.api.getZr();r.off(\"mousemove\",this._onBrush),r.off(\"mouseup\",this._onBrushEnd)},e.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new ye;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var r=this.dataZoomModel,i=this.api,n=r.get(\"brushSelect\"),a=n?KN:0,o=sf(r,i).refContainer,s=this._findCoordRect(),l=r.get(\"defaultLocationEdgeGap\",!0)||0,u=this._orient===$s?{right:o.width-s.x-s.width,top:o.height-um-l-a,width:s.width,height:um}:{right:l,top:s.y,width:um,height:s.height},f=Lr(r.option);b([\"right\",\"top\",\"width\",\"height\"],function(p){f[p]===\"ph\"&&(f[p]=u[p])});var c=ps(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===Ww&&this._size.reverse()},e.prototype._positionGroup=function(){var r=this.group,i=this._location,n=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get(\"inverse\"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===$s&&!o?{scaleY:l?1:-1,scaleX:1}:n===$s&&o?{scaleY:l?1:-1,scaleX:-1}:n===Ww&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]),f=isNaN(u.x)?0:u.x,c=isNaN(u.y)?0:u.y;r.x=i.x-f,r.y=i.y-c,r.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var r=this.dataZoomModel,i=this._size,n=this._displayables.sliderGroup,a=r.get(\"brushSelect\");n.add(new Qs({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:r.get(\"backgroundColor\")},z2:-40}));var o=new Qs({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:\"transparent\"},z2:0,onclick:$(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on(\"mousedown\",this._onBrushStart,this),o.cursor=\"crosshair\",s.on(\"mousemove\",this._onBrush),s.on(\"mouseup\",this._onBrushEnd)):(s.off(\"mousemove\",this._onBrush),s.off(\"mouseup\",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var i=this._size,n=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==n[0]||i[1]!==n[1]){var c=o.getDataExtent(r.thisDim),p=o.getDataExtent(l),h=(p[1]-p[0])*.3;p=[p[0]-h,p[1]+h];var v=[0,i[1]],d=[0,i[0]],m=[[i[0],0],[0,0]],g=[],y=d[1]/Math.max(1,o.count()-1),_=i[0]/(c[1]-c[0]),x=r.thisAxis.type===\"time\",S=-y,T=Math.round(o.count()/i[0]),w;o.each([r.thisDim,l],function(O,M,I){if(T>0&&I%T){x||(S+=y);return}S=x?(+O-c[0])*_:S+y;var z=M==null||isNaN(M)||M===\"\",N=z?0:Oe(M,p,v,!0);z&&!w&&I?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!z&&w&&(m.push([S,0]),g.push([S,0])),z||(m.push([S,N]),g.push([S,N])),w=z}),u=this._shadowPolygonPts=m,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var A=this.dataZoomModel;function E(O){var M=A.getModel(O?\"selectedDataBackground\":\"dataBackground\"),I=new ye,z=new ns({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel(\"areaStyle\").getAreaStyle(),silent:!0,z2:-20}),N=new as({shape:{points:f},segmentIgnoreThreshold:1,style:M.getModel(\"lineStyle\").getLineStyle(),silent:!0,z2:-19});return I.add(z),I.add(N),I}for(var C=0;C<3;C++){var D=E(C===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},e.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,i=r.get(\"showDataShadow\");if(i!==!1){var n,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();b(l,function(u){if(!n&&!(i!==!0&&se(QN,u.get(\"type\"))<0)){var f=a.getComponent(er(o),s).axis,c=eR(o),p,h=u.coordinateSystem;c!=null&&h.getOtherAxis&&(p=h.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var v=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:v,otherDim:c,otherAxisInverse:p}}},this)},this),n}},e.prototype._renderHandle=function(){var r=this.group,i=this._displayables,n=i.handles=[null,null],a=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get(\"borderRadius\")||0,c=l.get(\"brushSelect\"),p=i.filler=new Qs({silent:c,style:{fill:l.get(\"fillerColor\")},textConfig:{position:\"inside\"}});o.add(p),o.add(new Qs({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get(\"dataBackgroundColor\")||l.get(\"borderColor\"),lineWidth:qN,fill:re.color.transparent}})),b([0,1],function(_){var x=l.get(\"handleIcon\");!Cs[x]&&x.indexOf(\"path://\")<0&&x.indexOf(\"image://\")<0&&(x=\"path://\"+x);var S=Ct(x,-1,0,2,2,null,!0);S.attr({cursor:tR(this._orient),draggable:!0,drift:$(this._onDragMove,this,_),ondragend:$(this._onDragEnd,this),onmouseover:$(this._onOverDataInfoTriggerArea,this,!0),onmouseout:$(this._onOverDataInfoTriggerArea,this,!1),z2:5});var T=S.getBoundingRect(),w=l.get(\"handleSize\");this._handleHeight=Lt(w,this._size[1]),this._handleWidth=T.width/T.height*this._handleHeight,S.setStyle(l.getModel(\"handleStyle\").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState(\"emphasis\").style=l.getModel([\"emphasis\",\"handleStyle\"]).getItemStyle(),Mh(S);var A=l.get(\"handleColor\");A!=null&&(S.style.fill=A),o.add(n[_]=S);var E=l.getModel(\"textStyle\"),C=l.get(\"handleLabel\")||{},D=C.show||!1;r.add(a[_]=new je({silent:!0,invisible:!D,style:ei(E,{x:0,y:0,text:\"\",verticalAlign:\"middle\",align:\"center\",fill:E.getTextColor(),font:E.getFont()}),z2:10}))},this);var h=p;if(c){var v=Lt(l.get(\"moveHandleSize\"),s[1]),d=i.moveHandle=new Te({style:l.getModel(\"moveHandleStyle\").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),m=v*.8,g=i.moveHandleIcon=Ct(l.get(\"moveHandleIcon\"),-m/2,-m/2,m,m,re.color.neutral00,!0);g.silent=!0,g.y=s[1]+v/2-.5,d.ensureState(\"emphasis\").style=l.getModel([\"emphasis\",\"moveHandleStyle\"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(v,10));h=i.moveZone=new Te({invisible:!0,shape:{y:s[1]-y,height:v+y}}),h.on(\"mouseover\",function(){u.enterEmphasis(d)}).on(\"mouseout\",function(){u.leaveEmphasis(d)}),o.add(d),o.add(g),o.add(h)}h.attr({draggable:!0,cursor:\"grab\",drift:$(this._onActualMoveZoneDrift,this),ondragstart:$(this._onActualMoveZoneDragStart,this),ondragend:$(this._onActualMoveZoneDragEnd,this),onmouseover:$(this._onOverDataInfoTriggerArea,this,!0),onmouseout:$(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Oe(r[0],[0,100],i,!0),Oe(r[1],[0,100],i,!0)]},e.prototype._updateInterval=function(r,i){var n=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ui(i,a,o,n.get(\"zoomLock\")?\"all\":r,s.minSpan!=null?Oe(s.minSpan,l,o,!0):null,s.maxSpan!=null?Oe(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Yt([Oe(a[0],o,l,!0),Oe(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(r){var i=this._displayables,n=this._handleEnds,a=Yt(n.slice()),o=this._size;b([0,1],function(h){var v=i.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:n[h]+(h?-1:1),y:o[1]/2-d/2})},this),i.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr(\"x\",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;f<l.length;f++){var c=l[f],p=c.getClipPath();p||(p=new Te,c.setClipPath(p)),p.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(r)},e.prototype._updateDataInfo=function(r){var i=this.dataZoomModel,n=this._displayables,a=n.handleLabels,o=this._orient,s=[\"\",\"\"];if(i.get(\"showDetail\")){var l=i.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var f=this._range,c;if(r){var p={start:f[0],end:f[1]},h=bc(i,l);if(h){var v=h.calculateDataWindow(p).percentInverted;p={start:v[0],end:v[1]}}c=l.calculateDataWindow(p)}else c=l.getWindow();s=[Zw(i,0,c,u),Zw(i,1,c,u)]}}var d=Yt(this._handleEnds.slice());m.call(this,0),m.call(this,1);function m(g){var y=qh(n.handles[g].parent,this.group),_=Kh(g===0?\"right\":\"left\",y),x=this._handleWidth/2+jN,S=In([d[g]+(g===0?-x:x),this._size[1]/2],y);a[g].setStyle({x:S[0],y:S[1],verticalAlign:o===$s?\"middle\":_,align:o===$s?_:\"center\",text:s[g]})}},e.prototype._onOverDataInfoTriggerArea=function(r){this._isOverDataInfoTriggerArea=r,this._showDataInfo(r)},e.prototype._showDataInfo=function(r){var i=this.dataZoomModel.get(\"handleLabel\")||{},n=i.show||!1,a=this.dataZoomModel.getModel([\"emphasis\",\"handleLabel\"]),o=a.get(\"show\")||!1,s=r||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr(\"invisible\",!s),u[1].attr(\"invisible\",!s),l.moveHandle&&this.api[s?\"enterEmphasis\":\"leaveEmphasis\"](l.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(r,i,n){this.api.getZr().setCursorStyle(\"grabbing\"),this._onDragMove(\"all\",r,i,n)},e.prototype._onActualMoveZoneDragStart=function(r){r.target.attr(\"cursor\",\"grabbing\"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(r){r.target.attr(\"cursor\",\"grab\"),this._onDragEnd()},e.prototype._onDragMove=function(r,i,n,a){this._dragging=!0,gr(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=In([i,n],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get(\"realtime\");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1);var r=this.dataZoomModel.get(\"realtime\");!r&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(r){var i=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(n[0]<0||n[0]>i[0]||n[1]<0||n[1]>i[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval(\"all\",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(r){var i=r.offsetX,n=r.offsetY;this._brushStart=new ge(i,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(r){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr(\"ignore\",!0);var n=i.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();ui(0,l,o,0,u.minSpan!=null?Oe(u.minSpan,s,o,!0):null,u.maxSpan!=null?Oe(u.maxSpan,s,o,!0):null),this._range=Yt([Oe(l[0],o,s,!0),Oe(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(r){this._brushing&&(gr(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},e.prototype._updateBrushRect=function(r,i){var n=this._displayables,a=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Qs({silent:!0,style:a.getModel(\"brushStyle\").getItemStyle()}),n.sliderGroup.add(o)),o.attr(\"ignore\",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,i),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},e.prototype._dispatchZoomAction=function(r){var i=this._range;this.api.dispatchAction({type:\"dataZoom\",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?$N:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var r,i=Tc(this.dataZoomModel).infoList;if(!r&&i.length){var n=i[0].model.coordinateSystem;r=n.getRect&&n.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},e.type=\"dataZoom.slider\",e})(wc);function Zw(t,e,r,i){var n=t.get(\"labelFormatter\"),a=t.get(\"labelPrecision\");(a==null||a===\"auto\")&&(a=r.valuePrecision);var o=r.value[e],s=o==null||isNaN(o)?\"\":Ze(i)||Nr(i)?i.getLabel({value:Math.round(o)}):isFinite(a)?le(o,a,!0):o+\"\";return G(n)?n(o,s):B(n)?n.replace(\"{value}\",s):s}function eR(t){var e={x:\"y\",y:\"x\",radius:\"angle\",angle:\"radius\"};return e[t]}function tR(t){return t===\"vertical\"?\"ns-resize\":\"ew-resize\"}var Xw=JN;function qw(t){t.registerComponentModel(Yw),t.registerComponentView(Xw),js(t)}function fm(t){Jt(Gw),Jt(qw)}var cm=Math.sin,pm=Math.cos,Kw=Math.PI,Jn=Math.PI*2,rR=180/Kw,iR=(function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str=\"\",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add(\"M\",e,r)},t.prototype.lineTo=function(e,r){this._add(\"L\",e,r)},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){this._add(\"C\",e,r,i,n,a,o)},t.prototype.quadraticCurveTo=function(e,r,i,n){this._add(\"Q\",e,r,i,n)},t.prototype.arc=function(e,r,i,n,a,o){this.ellipse(e,r,i,i,0,n,a,o)},t.prototype.ellipse=function(e,r,i,n,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),p=Sr(c-Jn)||(f?u>=Jn:-u>=Jn),h=u>0?u%Jn:u%Jn+Jn,v=!1;p?v=!0:Sr(c)?v=!1:v=h>=Kw==!!f;var d=e+i*pm(o),m=r+n*cm(o);this._start&&this._add(\"M\",d,m);var g=Math.round(a*rR);if(p){var y=1/this._p,_=(f?1:-1)*(Jn-y);this._add(\"A\",i,n,g,1,+f,e+i*pm(o+_),r+n*cm(o+_)),y>.01&&this._add(\"A\",i,n,g,0,+f,d,m)}else{var x=e+i*pm(s),S=r+n*cm(s);this._add(\"A\",i,n,g,+v,+f,x,S)}},t.prototype.rect=function(e,r,i,n){this._add(\"M\",e,r),this._add(\"l\",i,0),this._add(\"l\",0,n),this._add(\"l\",-i,0),this._add(\"Z\")},t.prototype.closePath=function(){this._d.length>0&&this._add(\"Z\")},t.prototype._add=function(e,r,i,n,a,o,s,l,u){for(var f=[],c=this._p,p=1;p<arguments.length;p++){var h=arguments[p];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(e+f.join(\" \")),this._start=e===\"Z\"},t.prototype.generateStr=function(){this._str=this._invalid?\"\":this._d.join(\"\"),this._d=[]},t.prototype.getStr=function(){return this._str},t})(),Cc=iR;var Js=\"none\",nR=Math.round;function aR(t){var e=t.fill;return e!=null&&e!==Js}function oR(t){var e=t.stroke;return e!=null&&e!==Js}var hm=[\"lineCap\",\"miterLimit\",\"lineJoin\"],sR=R(hm,function(t){return\"stroke-\"+t.toLowerCase()});function vm(t,e,r,i){var n=e.opacity==null?1:e.opacity;if(r instanceof st){t(\"opacity\",n);return}if(aR(e)){var a=xi(e.fill);t(\"fill\",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*n:a.opacity*n;(i||o<1)&&t(\"fill-opacity\",o)}else t(\"fill\",Js);if(oR(e)){var s=xi(e.stroke);t(\"stroke\",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,c=e.strokeFirst;if((i||u!==1)&&t(\"stroke-width\",u),(i||c)&&t(\"paint-order\",c?\"stroke\":\"fill\"),(i||f<1)&&t(\"stroke-opacity\",f),e.lineDash){var p=Es(r),h=p[0],v=p[1];h&&(v=nR(v||0),t(\"stroke-dasharray\",h.join(\",\")),(v||i)&&t(\"stroke-dashoffset\",v))}else i&&t(\"stroke-dasharray\",Js);for(var d=0;d<hm.length;d++){var m=hm[d];if(i||e[m]!==Aa[m]){var g=e[m]||Aa[m];g&&t(sR[d],g)}}}else i&&t(\"stroke\",Js)}var jw=\"http://www.w3.org/2000/svg\",dm=\"http://www.w3.org/1999/xlink\",Qw=\"http://www.w3.org/2000/xmlns/\",$w=\"http://www.w3.org/XML/1998/namespace\",mm=\"ecmeta_\";function Ec(t){return document.createElementNS(jw,t)}function ze(t,e,r,i,n){return{tag:t,attrs:r||{},children:i,text:n,key:e}}function lR(t,e){var r=[];if(e)for(var i in e){var n=e[i],a=i;n!==!1&&(n!==!0&&n!=null&&(a+='=\"'+n+'\"'),r.push(a))}return\"<\"+t+\" \"+r.join(\" \")+\">\"}function uR(t){return\"</\"+t+\">\"}function el(t,e){e=e||{};var r=e.newline?`\n`:\"\";function i(n){var a=n.children,o=n.tag,s=n.attrs,l=n.text;return lR(o,s)+(o!==\"style\"?qi(l):l||\"\")+(a?\"\"+r+R(a,function(u){return i(u)}).join(r)+r:\"\")+uR(o)}return i(t)}function Jw(t,e,r){r=r||{};var i=r.newline?`\n`:\"\",n=\" {\"+i,a=i+\"}\",o=R(K(t),function(l){return l+n+R(K(t[l]),function(u){return u+\":\"+t[l][u]+\";\"}).join(i)+a}).join(i),s=R(K(e),function(l){return\"@keyframes \"+l+n+R(K(e[l]),function(u){return u+n+R(K(e[l][u]),function(f){var c=e[l][u][f];return f===\"d\"&&(c='path(\"'+c+'\")'),f+\":\"+c+\";\"}).join(i)+a}).join(i)+a}).join(i);return!o&&!s?\"\":[\"<![CDATA[\",o,s,\"]]>\"].join(i)}function tl(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function gm(t,e,r,i){return ze(\"svg\",\"root\",{width:t,height:e,xmlns:jw,\"xmlns:xlink\":dm,version:\"1.1\",baseProfile:\"full\",viewBox:i?\"0 0 \"+t+\" \"+e:!1},r)}var fR=0;function Ac(){return fR++}var eC={cubicIn:\"0.32,0,0.67,0\",cubicOut:\"0.33,1,0.68,1\",cubicInOut:\"0.65,0,0.35,1\",quadraticIn:\"0.11,0,0.5,0\",quadraticOut:\"0.5,1,0.89,1\",quadraticInOut:\"0.45,0,0.55,1\",quarticIn:\"0.5,0,0.75,0\",quarticOut:\"0.25,1,0.5,1\",quarticInOut:\"0.76,0,0.24,1\",quinticIn:\"0.64,0,0.78,0\",quinticOut:\"0.22,1,0.36,1\",quinticInOut:\"0.83,0,0.17,1\",sinusoidalIn:\"0.12,0,0.39,0\",sinusoidalOut:\"0.61,1,0.88,1\",sinusoidalInOut:\"0.37,0,0.63,1\",exponentialIn:\"0.7,0,0.84,0\",exponentialOut:\"0.16,1,0.3,1\",exponentialInOut:\"0.87,0,0.13,1\",circularIn:\"0.55,0,1,0.45\",circularOut:\"0,0.55,0.45,1\",circularInOut:\"0.85,0,0.15,1\"},ea=\"transform-origin\";function cR(t,e,r){var i=P({},t.shape);P(i,e),t.buildPath(r,i);var n=new Cc;return n.reset(Nl(t)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function pR(t,e){var r=e.originX,i=e.originY;(r||i)&&(t[ea]=r+\"px \"+i+\"px\")}var hR={fill:\"fill\",opacity:\"opacity\",lineWidth:\"stroke-width\",lineDashOffset:\"stroke-dashoffset\"};function rC(t,e){var r=e.zrId+\"-ani-\"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function vR(t,e,r){var i=t.shape.paths,n={},a,o;if(b(i,function(l){var u=tl(r.zrId);u.animation=!0,rl(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,p=K(f),h=p.length;if(h){o=p[h-1];var v=f[o];for(var d in v){var m=v[d];n[d]=n[d]||{d:\"\"},n[d].d+=m.d||\"\"}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=rC(n,r);return a.replace(o,s)}}function tC(t){return B(t)?eC[t]?\"cubic-bezier(\"+eC[t]+\")\":pa(t)?t:\"\":\"\"}function rl(t,e,r,i){var n=t.animators,a=n.length,o=[];if(t instanceof bu){var s=vR(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=n[u],c=[f.getMaxTime()/1e3+\"s\"],p=tC(f.getClip().easing),h=f.getDelay();p?c.push(p):c.push(\"linear\"),h&&c.push(h/1e3+\"s\"),f.getLoop()&&c.push(\"infinite\");var v=c.join(\" \");l[v]=l[v]||[v,[]],l[v][1].push(f)}function d(y){var _=y[1],x=_.length,S={},T={},w={},A=\"animation-timing-function\";function E(it,_e,Le){for(var oe=it.getTracks(),ve=it.getMaxTime(),tr=0;tr<oe.length;tr++){var Xe=oe[tr];if(Xe.needsAnimate()){var vo=Xe.keyframes,Wi=Xe.propName;if(Le&&(Wi=Le(Wi)),Wi)for(var Ic=0;Ic<vo.length;Ic++){var ol=vo[Ic],sl=Math.round(ol.time/ve*100)+\"%\",Lm=tC(ol.easing),Pm=ol.rawValue;(B(Pm)||fe(Pm))&&(_e[sl]=_e[sl]||{},_e[sl][Wi]=ol.rawValue,Lm&&(_e[sl][A]=Lm))}}}}for(var C=0;C<x;C++){var D=_[C],O=D.targetName;O?O===\"shape\"&&E(D,T):!i&&E(D,S)}for(var M in S){var I={};Si(I,t),P(I,S[M]);var z=Rl(I),N=S[M][A];w[M]=z?{transform:z}:{},pR(w[M],I),N&&(w[M][A]=N)}var Y,X=!0;for(var M in T){w[M]=w[M]||{};var Z=!Y,N=T[M][A];Z&&(Y=new vt);var ie=Y.len();Y.reset(),w[M].d=cR(t,T[M],Y);var J=Y.len();if(!Z&&ie!==J){X=!1;break}N&&(w[M][A]=N)}if(!X)for(var M in w)delete w[M].d;if(!i)for(var C=0;C<x;C++){var D=_[C],O=D.targetName;O===\"style\"&&E(D,w,function(oe){return hR[oe]})}for(var ae=K(w),j=!0,W,C=1;C<ae.length;C++){var ue=ae[C-1],he=ae[C];if(w[ue][ea]!==w[he][ea]){j=!1;break}W=w[ue][ea]}if(j&&W){for(var M in w)w[M][ea]&&delete w[M][ea];e[ea]=W}if(Pe(ae,function(it){return K(w[it]).length>0}).length){var Je=rC(w,r);return Je+\" \"+y[0]+\" both\"}}for(var m in l){var s=d(l[m]);s&&o.push(s)}if(o.length){var g=r.zrId+\"-cls-\"+Ac();r.cssNodes[\".\"+g]={animation:o.join(\",\")},e.class=g}}function nC(t,e,r){if(!t.ignore)if(t.isSilent()){var i={\"pointer-events\":\"none\"};iC(i,e,r,!0)}else{var n=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=n.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf(\"select\")>=0&&s||o;l&&(a=Do(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var i={cursor:\"pointer\"};a&&(i.fill=a),n.stroke&&(i.stroke=n.stroke),u&&(i[\"stroke-width\"]=u),iC(i,e,r,!0)}}function iC(t,e,r,i){var n=JSON.stringify(t),a=r.cssStyleCache[n];a||(a=r.zrId+\"-cls-\"+Ac(),r.cssStyleCache[n]=a,r.cssNodes[\".\"+a+(i?\":hover\":\"\")]=t),e.class=e.class?e.class+\" \"+a:a}var il=Math.round;function lC(t){return t&&B(t.src)}function uC(t){return t&&G(t.toDataURL)}function ym(t,e,r,i){vm(function(n,a){var o=n===\"fill\"||n===\"stroke\";o&&Pl(a)?Tm(e,t,n,i):o&&Mo(a)?bm(r,t,n,i):t[n]=a,o&&i.ssr&&a===\"none\"&&(t[\"pointer-events\"]=\"visible\")},e,r,!1),SR(r,t,i)}function _m(t,e){var r=py(e);r&&(r.each(function(i,n){i!=null&&(t[(mm+n).toLowerCase()]=i+\"\")}),e.isSilent()&&(t[mm+\"silent\"]=\"true\"))}function aC(t){return Sr(t[0]-1)&&Sr(t[1])&&Sr(t[2])&&Sr(t[3]-1)}function dR(t){return Sr(t[4])&&Sr(t[5])}function xm(t,e,r){if(e&&!(dR(e)&&aC(e))){var i=r?10:1e4;t.transform=aC(e)?\"translate(\"+il(e[4]*i)/i+\" \"+il(e[5]*i)/i+\")\":Rg(e)}}function oC(t,e,r){for(var i=t.points,n=[],a=0;a<i.length;a++)n.push(il(i[a][0]*r)/r),n.push(il(i[a][1]*r)/r);e.points=n.join(\" \")}function sC(t){return!t.smooth}function mR(t){var e=R(t,function(r){return typeof r==\"string\"?[r,r]:r});return function(r,i,n){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];s!=null&&(i[o[1]]=il(s*n)/n)}}}var gR={circle:[mR([\"cx\",\"cy\",\"r\"])],polyline:[oC,sC],polygon:[oC,sC]};function yR(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName===\"shape\")return!0;return!1}function fC(t,e){var r=t.style,i=t.shape,n=gR[t.type],a={},o=e.animation,s=\"path\",l=t.style.strokePercent,u=e.compress&&Nl(t)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](i))&&!(o&&yR(t))&&!(l<1)){s=t.type;var f=Math.pow(10,u);n[0](i,a,f)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var p=t.path;c&&(p.beginPath(),t.buildPath(p,t.shape),t.pathUpdated());var h=p.getVersion(),v=t,d=v.__svgPathBuilder;(v.__svgPathVersion!==h||!d||l!==v.__svgPathStrokePercent)&&(d||(d=v.__svgPathBuilder=new Cc),d.reset(u),p.rebuildPath(d,l),d.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),a.d=d.getStr()}return xm(a,t.transform),ym(a,r,t,e),_m(a,t),e.animation&&rl(t,a,e),e.emphasis&&nC(t,a,e),ze(s,t.id+\"\",a)}function _R(t,e){var r=t.style,i=r.image;if(i&&!B(i)&&(lC(i)?i=i.src:uC(i)&&(i=i.toDataURL())),!!i){var n=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:i,width:o,height:s};return n&&(l.x=n),a&&(l.y=a),xm(l,t.transform),ym(l,r,t,e),_m(l,t),e.animation&&rl(t,l,e),ze(\"image\",t.id+\"\",l)}}function xR(t,e){var r=t.style,i=r.text;if(i!=null&&(i+=\"\"),!(!i||isNaN(r.x)||isNaN(r.y))){var n=r.font||xt,a=r.x||0,o=Bg(r.y||0,ln(n),r.textBaseline),s=kg[r.textAlign]||r.textAlign,l={\"dominant-baseline\":\"central\",\"text-anchor\":s};if(dh(r)){var u=\"\",f=r.fontStyle,c=vh(r.fontSize);if(!parseFloat(c))return;var p=r.fontFamily||Nc,h=r.fontWeight;u+=\"font-size:\"+c+\";font-family:\"+p+\";\",f&&f!==\"normal\"&&(u+=\"font-style:\"+f+\";\"),h&&h!==\"normal\"&&(u+=\"font-weight:\"+h+\";\"),l.style=u}else l.style=\"font: \"+n;return i.match(/\\s/)&&(l[\"xml:space\"]=\"preserve\"),a&&(l.x=a),o&&(l.y=o),xm(l,t.transform),ym(l,r,t,e),_m(l,t),e.animation&&rl(t,l,e),ze(\"text\",t.id+\"\",l,void 0,i)}}function Sm(t,e){if(t instanceof ne)return fC(t,e);if(t instanceof st)return _R(t,e);if(t instanceof Sn)return xR(t,e)}function SR(t,e,r){var i=t.style;if(zg(i)){var n=Ug(t),a=r.shadowCache,o=a[n];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,c=i.shadowOffsetY||0,p=i.shadowBlur,h=xi(i.shadowColor),v=h.opacity,d=h.color,m=p/2/l,g=p/2/u,y=m+\" \"+g;o=r.zrId+\"-s\"+r.shadowIdx++,r.defs[o]=ze(\"filter\",o,{id:o,x:\"-100%\",y:\"-100%\",width:\"300%\",height:\"300%\"},[ze(\"feDropShadow\",\"\",{dx:f/l,dy:c/u,stdDeviation:y,\"flood-color\":d,\"flood-opacity\":v})]),a[n]=o}e.filter=Oo(o)}}function Tm(t,e,r,i){var n=t[r],a,o={gradientUnits:n.global?\"userSpaceOnUse\":\"objectBoundingBox\"};if(Il(n))a=\"linearGradient\",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(Ll(n))a=\"radialGradient\",o.cx=F(n.x,.5),o.cy=F(n.y,.5),o.r=F(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=Ol(s[u].offset)*100+\"%\",p=s[u].color,h=xi(p),v=h.color,d=h.opacity,m={offset:c};m[\"stop-color\"]=v,d<1&&(m[\"stop-opacity\"]=d),l.push(ze(\"stop\",u+\"\",m))}var g=ze(a,\"\",o,l),y=el(g),_=i.gradientCache,x=_[y];x||(x=i.zrId+\"-g\"+i.gradientIdx++,_[y]=x,o.id=x,i.defs[x]=ze(a,x,o,l)),e[r]=Oo(x)}function bm(t,e,r,i){var n=t.style[r],a=t.getBoundingRect(),o={},s=n.repeat,l=s===\"no-repeat\",u=s===\"repeat-x\",f=s===\"repeat-y\",c;if(cp(n)){var p=n.imageWidth,h=n.imageHeight,v=void 0,d=n.image;if(B(d)?v=d:lC(d)?v=d.src:uC(d)&&(v=d.toDataURL()),typeof Image>\"u\"){var m=\"Image width/height must been given explictly in svg-ssr renderer.\";Re(p,m),Re(h,m)}else if(p==null||h==null){var g=function(C,D){if(C){var O=C.elm,M=p||D.width,I=h||D.height;C.tag===\"pattern\"&&(u?(I=1,M/=a.width):f&&(M=1,I/=a.height)),C.attrs.width=M,C.attrs.height=I,O&&(O.setAttribute(\"width\",M),O.setAttribute(\"height\",I))}},y=Ho(v,null,t,function(C){l||g(T,C),g(c,C)});y&&y.width&&y.height&&(p=p||y.width,h=h||y.height)}c=ze(\"image\",\"img\",{href:v,width:p,height:h}),o.width=p,o.height=h}else n.svgElement&&(c=Q(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var _,x;l?_=x=1:u?(x=1,_=o.width/a.width):f?(_=1,x=o.height/a.height):o.patternUnits=\"userSpaceOnUse\",_!=null&&!isNaN(_)&&(o.width=_),x!=null&&!isNaN(x)&&(o.height=x);var S=Rl(n);S&&(o.patternTransform=S);var T=ze(\"pattern\",\"\",o,[c]),w=el(T),A=i.patternCache,E=A[w];E||(E=i.zrId+\"-p\"+i.patternIdx++,A[w]=E,o.id=E,T=i.defs[E]=ze(\"pattern\",E,o,[c])),e[r]=Oo(E)}}function cC(t,e,r){var i=r.clipPathCache,n=r.defs,a=i[t.id];if(!a){a=r.zrId+\"-c\"+r.clipPathIdx++;var o={id:a};i[t.id]=a,n[a]=ze(\"clipPath\",a,o,[fC(t,r)])}e[\"clip-path\"]=Oo(a)}function wm(t){return document.createTextNode(t)}function Yi(t,e,r){t.insertBefore(e,r)}function Cm(t,e){t.removeChild(e)}function Em(t,e){t.appendChild(e)}function Am(t){return t.parentNode}function Dm(t){return t.nextSibling}function Dc(t,e){t.textContent=e}var pC=58,bR=120,wR=ze(\"\",\"\");function Mm(t){return t===void 0}function kr(t){return t!==void 0}function CR(t,e,r){for(var i={},n=e;n<=r;++n){var a=t[n].key;a!==void 0&&(i[a]=n)}return i}function nl(t,e){var r=t.key===e.key,i=t.tag===e.tag;return i&&r}function al(t){var e,r=t.children,i=t.tag;if(kr(i)){var n=t.elm=Ec(i);if(Oc(wR,t),k(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&Em(n,al(a))}else kr(t.text)&&!H(t.text)&&Em(n,wm(t.text))}else t.elm=wm(t.text);return t.elm}function hC(t,e,r,i,n){for(;i<=n;++i){var a=r[i];a!=null&&Yi(t,al(a),e)}}function Mc(t,e,r,i){for(;r<=i;++r){var n=e[r];if(n!=null)if(kr(n.tag)){var a=Am(n.elm);Cm(a,n.elm)}else Cm(t,n.elm)}}function Oc(t,e){var r,i=e.elm,n=t&&t.attrs||{},a=e.attrs||{};if(n!==a){for(r in a){var o=a[r],s=n[r];s!==o&&(o===!0?i.setAttribute(r,\"\"):o===!1?i.removeAttribute(r):r===\"style\"?i.style.cssText=o:r.charCodeAt(0)!==bR?i.setAttribute(r,o):r===\"xmlns:xlink\"||r===\"xmlns\"?i.setAttributeNS(Qw,r,o):r.charCodeAt(3)===pC?i.setAttributeNS($w,r,o):r.charCodeAt(5)===pC?i.setAttributeNS(dm,r,o):i.setAttribute(r,o))}for(r in n)r in a||i.removeAttribute(r)}}function ER(t,e,r){for(var i=0,n=0,a=e.length-1,o=e[0],s=e[a],l=r.length-1,u=r[0],f=r[l],c,p,h,v;i<=a&&n<=l;)o==null?o=e[++i]:s==null?s=e[--a]:u==null?u=r[++n]:f==null?f=r[--l]:nl(o,u)?(ho(o,u),o=e[++i],u=r[++n]):nl(s,f)?(ho(s,f),s=e[--a],f=r[--l]):nl(o,f)?(ho(o,f),Yi(t,o.elm,Dm(s.elm)),o=e[++i],f=r[--l]):nl(s,u)?(ho(s,u),Yi(t,s.elm,o.elm),s=e[--a],u=r[++n]):(Mm(c)&&(c=CR(e,i,a)),p=c[u.key],Mm(p)?Yi(t,al(u),o.elm):(h=e[p],h.tag!==u.tag?Yi(t,al(u),o.elm):(ho(h,u),e[p]=void 0,Yi(t,h.elm,o.elm))),u=r[++n]);(i<=a||n<=l)&&(i>a?(v=r[l+1]==null?null:r[l+1].elm,hC(t,v,r,n,l)):Mc(t,e,i,a))}function ho(t,e){var r=e.elm=t.elm,i=t.children,n=e.children;t!==e&&(Oc(t,e),Mm(e.text)?kr(i)&&kr(n)?i!==n&&ER(r,i,n):kr(n)?(kr(t.text)&&Dc(r,\"\"),hC(r,null,n,0,n.length-1)):kr(i)?Mc(r,i,0,i.length-1):kr(t.text)&&Dc(r,\"\"):t.text!==e.text&&(kr(i)&&Mc(r,i,0,i.length-1),Dc(r,e.text)))}function Om(t,e){if(nl(t,e))ho(t,e);else{var r=t.elm,i=Am(r);al(e),i!==null&&(Yi(i,e.elm,Dm(r)),Mc(i,[t],0,0))}return e}var AR=0,DR=(function(){function t(e,r,i){if(this.type=\"svg\",this.configLayer=MR(\"configLayer\"),this.storage=r,this._opts=i=P({},i),this.root=e,this._id=\"zr\"+AR++,this._oldVNode=gm(i.width,i.height),e&&!i.ssr){var n=this._viewport=document.createElement(\"div\");n.style.cssText=\"position:relative;overflow:hidden\";var a=this._svgDom=this._oldVNode.elm=Ec(\"svg\");Oc(null,this._oldVNode),n.appendChild(a),e.appendChild(n)}this.resize(i.width,i.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=\"position:absolute;left:0;top:0;user-select:none\",Om(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return Sm(e,tl(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),i=this._width,n=this._height,a=tl(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=OR(i,n,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=ze(\"g\",\"main\",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=R(K(a.defs),function(p){return a.defs[p]});if(u.length&&o.push(ze(\"defs\",\"defs\",{},u)),e.animation){var f=Jw(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=ze(\"style\",\"stl\",{},[],f);o.push(c)}}return gm(i,n,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},el(this.renderToVNode({animation:F(e.cssAnimation,!0),emphasis:F(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:F(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,i){for(var n=e.length,a=[],o=0,s,l,u=0,f=0;f<n;f++){var c=e[f];if(!c.invisible){var p=c.__clipPaths,h=p&&p.length||0,v=l&&l.length||0,d=void 0;for(d=Math.max(h-1,v-1);d>=0&&!(p&&l&&p[d]===l[d]);d--);for(var m=v-1;m>d;m--)o--,s=a[o-1];for(var g=d+1;g<h;g++){var y={};cC(p[g],y,r);var _=ze(\"g\",\"clip-g-\"+u++,y,[]);(s?s.children:i).push(_),a[o++]=_,s=_}l=p;var x=Sm(c,r);x&&(s?s.children:i).push(x)}}},t.prototype.resize=function(e,r){var i=this._opts,n=this.root,a=this._viewport;if(e!=null&&(i.width=e),r!=null&&(i.height=r),n&&a&&(a.style.display=\"none\",e=Gv(n,0,i),r=Gv(n,1,i),a.style.display=\"\"),this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+\"px\",o.height=r+\"px\"}if(Mo(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute(\"width\",e),s.setAttribute(\"height\",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute(\"width\",e),l.setAttribute(\"height\",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=\"\"),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),i=\"data:image/svg+xml;\";return e?(r=Fg(r),r&&i+\"base64,\"+r):i+\"charset=UTF-8,\"+encodeURIComponent(r)},t})();function MR(t){return function(){}}function OR(t,e,r,i){var n;if(r&&r!==\"none\")if(n=ze(\"rect\",\"bg\",{width:t,height:e,x:\"0\",y:\"0\"}),Pl(r))Tm({fill:r},n.attrs,\"fill\",i);else if(Mo(r))bm({style:{fill:r},dirty:Ce,getBoundingRect:function(){return{width:t,height:e}}},n.attrs,\"fill\",i);else{var a=xi(r),o=a.color,s=a.opacity;n.attrs.fill=o,s<1&&(n.attrs[\"fill-opacity\"]=s)}return n}var vC=DR;function Im(t){t.registerPainter(\"svg\",vC)}Jt([Id,Zd,rm,fm,Im]);return _C(IR);})();\n;window.Bibliotecas=window.Bibliotecas||{};window.Bibliotecas[\"echarts\"]=_bibliotecaMethods;})();\n",
  "vendor/echarts/LICENSE": "===== echarts =====\n\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n\n\n\n\n\n========================================================================\nApache ECharts Subcomponents:\n\nThe Apache ECharts project contains subcomponents with separate copyright\nnotices and license terms. Your use of the source code for these\nsubcomponents is also subject to the terms and conditions of the following\nlicenses.\n\nBSD 3-Clause (d3.js):\nThe following files embed [d3.js](https://github.com/d3/d3) BSD 3-Clause:\n    `/src/chart/treemap/treemapLayout.ts`,\n    `/src/chart/tree/layoutHelper.ts`,\n    `/src/chart/graph/forceHelper.ts`,\n    `/src/util/number.ts`\nSee `/licenses/LICENSE-d3` for details of the license.\n\n\n===== tslib =====\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\n\n===== zrender =====\nBSD 3-Clause License\n\nCopyright (c) 2017, Baidu Inc.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
  "vendor/echarts/package.json": "{\n  \"name\": \"echarts\",\n  \"version\": \"6.1.0\",\n  \"description\": \"Apache ECharts is a powerful, interactive charting and data visualization library for browser\",\n  \"license\": \"Apache-2.0\",\n  \"keywords\": [\n    \"echarts\",\n    \"data-visualization\",\n    \"charts\",\n    \"charting-library\",\n    \"visualization\",\n    \"apache\",\n    \"data-viz\",\n    \"canvas\",\n    \"svg\"\n  ],\n  \"main\": \"dist/echarts.js\",\n  \"module\": \"index.js\",\n  \"unpkg\": \"dist/echarts.min.js\",\n  \"jsdelivr\": \"dist/echarts.min.js\",\n  \"types\": \"types/dist/echarts.d.cts\",\n  \"homepage\": \"https://echarts.apache.org\",\n  \"bugs\": {\n    \"url\": \"https://github.com/apache/echarts/issues\",\n    \"email\": \"dev@echarts.apache.org\"\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/apache/echarts.git\"\n  },\n  \"sideEffects\": [\n    \"index.js\",\n    \"index.blank.js\",\n    \"index.common.js\",\n    \"index.simple.js\",\n    \"lib/echarts.js\",\n    \"lib/chart/*.js\",\n    \"lib/component/*.js\",\n    \"extension/**/*.js\",\n    \"theme/*.js\",\n    \"i18n/*.js\"\n  ],\n  \"scripts\": {\n    \"build\": \"node build/build.js --type all,common,simple --min\",\n    \"build:esm\": \"node build/build.js --type all --min --format esm\",\n    \"build:i18n\": \"node build/build-i18n.js\",\n    \"build:lib\": \"node build/build-lib.js\",\n    \"build:extension\": \"node build/build.js --type extension --min\",\n    \"build:ssr\": \"node build/build.js --type ssr\",\n    \"dev:fast\": \"node build/build-i18n.js && node build/dev-fast.js\",\n    \"dev\": \"npx -y concurrently -n build,server \\\"npm run dev:fast\\\" \\\"npx -y http-server -c-1 -s -o test\\\"\",\n    \"prepare\": \"npm run build:lib && husky install\",\n    \"release\": \"npm run build:lib && npm run build:i18n && npm run build && npm run build:esm && npm run build:extension && npm run build:ssr\",\n    \"help\": \"node build/build.js --help\",\n    \"test:visual\": \"node test/runTest/server.js\",\n    \"test:visual:copy:examples\": \"node test/runTest/visual-test-copy-from-examples.js\",\n    \"test\": \"npx jest --config test/ut/jest.config.cjs\",\n    \"test:single\": \"npx jest --config test/ut/jest.config.cjs --coverage=false -t\",\n    \"test:single:debug\": \"npx --node-arg=--inspect-brk jest --runInBand --config test/ut/jest.config.cjs --coverage=false -t\",\n    \"test:dts\": \"npm install --prefix ./test/types && node build/testDts.js\",\n    \"test:dts:fast\": \"node build/testDts.js\",\n    \"mktest\": \"node test/build/mktest.js\",\n    \"mktest2\": \"node test/build/mktest.js --with-inputs-common\",\n    \"mktest3\": \"node test/build/mktest.js --with-inputs-all\",\n    \"mktest:canvas:debug\": \"node test/build/mktest.js --with-canvas-debug\",\n    \"mktest:help\": \"node test/build/mktest.js -h\",\n    \"checktype\": \"npx tsc --noEmit && npx tsc -p ./extension-src/bmap/tsconfig.json --noEmit\",\n    \"checkheader\": \"node build/checkHeader.js\",\n    \"lint\": \"npx eslint --cache --cache-location node_modules/.cache/eslint \\\"src/**/*.ts\\\" \\\"ssr/client/src/**/*.ts\\\" \\\"extension-src/**/*.ts\\\"\",\n    \"lint:nocache\": \"npx eslint \\\"src/**/*.ts\\\" \\\"ssr/client/src/**/*.ts\\\" \\\"extension-src/**/*.ts\\\"\",\n    \"lint:nocache:list\": \"npm run lint:nocache -- --debug 2>&1 | grep \\\"filePath\\\"\",\n    \"lint:fix\": \"npx eslint --fix \\\"src/**/*.ts\\\" \\\"ssr/client/src/**/*.ts\\\" \\\"extension-src/**/*.ts\\\"\",\n    \"lint:dist\": \"echo 'It might take a while. Please wait ...' && npx jshint --config .jshintrc-dist dist/echarts.js\"\n  },\n  \"dependencies\": {\n    \"tslib\": \"2.3.0\",\n    \"zrender\": \"6.1.0\"\n  },\n  \"devDependencies\": {\n    \"@babel/code-frame\": \"7.10.4\",\n    \"@babel/core\": \"7.3.4\",\n    \"@babel/types\": \"7.10.5\",\n    \"@definitelytyped/typescript-versions\": \"^0.1.9\",\n    \"@definitelytyped/utils\": \"0.0.188\",\n    \"@echarts-x/eslint-plugin-ec\": \"^1.0.0\",\n    \"@lang/rollup-plugin-dts\": \"2.0.3\",\n    \"@microsoft/api-extractor\": \"7.31.2\",\n    \"@rollup/plugin-commonjs\": \"^17.0.0\",\n    \"@rollup/plugin-node-resolve\": \"^11.0.0\",\n    \"@rollup/plugin-replace\": \"^2.3.4\",\n    \"@rollup/plugin-terser\": \"0.4.2\",\n    \"@types/jest\": \"^26.0.14\",\n    \"@typescript-eslint/eslint-plugin\": \"^4.33.0\",\n    \"@typescript-eslint/parser\": \"^4.33.0\",\n    \"chalk\": \"^3.0.0\",\n    \"commander\": \"2.11.0\",\n    \"dtslint\": \"^4.0.5\",\n    \"esbuild\": \"^0.8.39\",\n    \"eslint\": \"^7.15.0\",\n    \"fs-extra\": \"^10.0.0\",\n    \"globby\": \"11.0.0\",\n    \"husky\": \"^8.0.3\",\n    \"jest\": \"^26.6.1\",\n    \"jest-canvas-mock\": \"^2.5.0\",\n    \"jshint\": \"2.13.5\",\n    \"magic-string\": \"^0.25.7\",\n    \"open\": \"6.4.0\",\n    \"rollup\": \"2.34.2\",\n    \"seedrandom\": \"3.0.3\",\n    \"semver\": \"6.3.0\",\n    \"terser\": \"^5.16.1\",\n    \"ts-jest\": \"^26.4.3\",\n    \"typescript\": \"4.4.3\"\n  },\n  \"type\": \"module\",\n  \"exports\": {\n    \".\": {\n      \"types\": {\n        \"import\": \"./types/dist/all.d.ts\",\n        \"require\": \"./types/dist/echarts.d.cts\",\n        \"default\": \"./types/dist/all.d.ts\"\n      },\n      \"import\": \"./index.js\",\n      \"require\": \"./dist/echarts.js\",\n      \"default\": \"./index.js\"\n    },\n    \"./core\": \"./core.js\",\n    \"./core.js\": \"./core.js\",\n    \"./charts\": \"./charts.js\",\n    \"./charts.js\": \"./charts.js\",\n    \"./components\": \"./components.js\",\n    \"./components.js\": \"./components.js\",\n    \"./features\": \"./features.js\",\n    \"./features.js\": \"./features.js\",\n    \"./renderers\": \"./renderers.js\",\n    \"./renderers.js\": \"./renderers.js\",\n    \"./index.blank\": \"./index.blank.js\",\n    \"./index.blank.js\": \"./index.blank.js\",\n    \"./index.common\": \"./index.common.js\",\n    \"./index.common.js\": \"./index.common.js\",\n    \"./index.simple\": \"./index.simple.js\",\n    \"./index.simple.js\": \"./index.simple.js\",\n    \"./index\": \"./index.js\",\n    \"./index.js\": \"./index.js\",\n    \"./theme/*\": \"./theme/*\",\n    \"./i18n/*\": \"./i18n/*\",\n    \"./types/dist/all\": \"./types/dist/all.d.ts\",\n    \"./types/dist/charts\": \"./types/dist/charts.d.ts\",\n    \"./types/dist/components\": \"./types/dist/components.d.ts\",\n    \"./types/dist/core\": \"./types/dist/core.d.ts\",\n    \"./types/dist/echarts\": \"./types/dist/echarts.d.ts\",\n    \"./types/dist/features\": \"./types/dist/features.d.ts\",\n    \"./types/dist/option\": \"./types/dist/option.d.ts\",\n    \"./types/dist/renderers\": \"./types/dist/renderers.d.ts\",\n    \"./types/dist/shared\": \"./types/dist/shared.d.ts\",\n    \"./ssr/client/index\": {\n      \"types\": \"./ssr/client/index.d.ts\",\n      \"import\": \"./ssr/client/index.js\",\n      \"require\": \"./ssr/client/dist/index.js\"\n    },\n    \"./extension/dataTool\": \"./extension/dataTool/index.js\",\n    \"./extension/dataTool/index\": \"./extension/dataTool/index.js\",\n    \"./extension/dataTool/index.js\": \"./extension/dataTool/index.js\",\n    \"./extension/dataTool/gexf\": \"./extension/dataTool/gexf.js\",\n    \"./extension/dataTool/gexf.js\": \"./extension/dataTool/gexf.js\",\n    \"./extension/dataTool/prepareBoxplotData\": \"./extension/dataTool/prepareBoxplotData.js\",\n    \"./extension/dataTool/prepareBoxplotData.js\": \"./extension/dataTool/prepareBoxplotData.js\",\n    \"./extension/bmap/bmap\": \"./extension/bmap/bmap.js\",\n    \"./extension/bmap/bmap.js\": \"./extension/bmap/bmap.js\",\n    \"./lib/echarts\": \"./lib/echarts.js\",\n    \"./lib/echarts.js\": \"./lib/echarts.js\",\n    \"./lib/extension\": \"./lib/extension.js\",\n    \"./lib/extension.js\": \"./lib/extension.js\",\n    \"./lib/chart/bar\": \"./lib/chart/bar.js\",\n    \"./lib/chart/boxplot\": \"./lib/chart/boxplot.js\",\n    \"./lib/chart/candlestick\": \"./lib/chart/candlestick.js\",\n    \"./lib/chart/chord\": \"./lib/chart/chord.js\",\n    \"./lib/chart/custom\": \"./lib/chart/custom.js\",\n    \"./lib/chart/effectScatter\": \"./lib/chart/effectScatter.js\",\n    \"./lib/chart/funnel\": \"./lib/chart/funnel.js\",\n    \"./lib/chart/gauge\": \"./lib/chart/gauge.js\",\n    \"./lib/chart/graph\": \"./lib/chart/graph.js\",\n    \"./lib/chart/heatmap\": \"./lib/chart/heatmap.js\",\n    \"./lib/chart/line\": \"./lib/chart/line.js\",\n    \"./lib/chart/lines\": \"./lib/chart/lines.js\",\n    \"./lib/chart/map\": \"./lib/chart/map.js\",\n    \"./lib/chart/parallel\": \"./lib/chart/parallel.js\",\n    \"./lib/chart/pictorialBar\": \"./lib/chart/pictorialBar.js\",\n    \"./lib/chart/pie\": \"./lib/chart/pie.js\",\n    \"./lib/chart/radar\": \"./lib/chart/radar.js\",\n    \"./lib/chart/sankey\": \"./lib/chart/sankey.js\",\n    \"./lib/chart/scatter\": \"./lib/chart/scatter.js\",\n    \"./lib/chart/sunburst\": \"./lib/chart/sunburst.js\",\n    \"./lib/chart/themeRiver\": \"./lib/chart/themeRiver.js\",\n    \"./lib/chart/tree\": \"./lib/chart/tree.js\",\n    \"./lib/chart/treemap\": \"./lib/chart/treemap.js\",\n    \"./lib/component/aria\": \"./lib/component/aria.js\",\n    \"./lib/component/axisPointer\": \"./lib/component/axisPointer.js\",\n    \"./lib/component/brush\": \"./lib/component/brush.js\",\n    \"./lib/component/calendar\": \"./lib/component/calendar.js\",\n    \"./lib/component/matrix\": \"./lib/component/matrix.js\",\n    \"./lib/component/thumbnail\": \"./lib/component/thumbnail.js\",\n    \"./lib/component/dataZoom\": \"./lib/component/dataZoom.js\",\n    \"./lib/component/dataZoomInside\": \"./lib/component/dataZoomInside.js\",\n    \"./lib/component/dataZoomSelect\": \"./lib/component/dataZoomSelect.js\",\n    \"./lib/component/dataZoomSlider\": \"./lib/component/dataZoomSlider.js\",\n    \"./lib/component/dataset\": \"./lib/component/dataset.js\",\n    \"./lib/component/geo\": \"./lib/component/geo.js\",\n    \"./lib/component/graphic\": \"./lib/component/graphic.js\",\n    \"./lib/component/grid\": \"./lib/component/grid.js\",\n    \"./lib/component/gridSimple\": \"./lib/component/gridSimple.js\",\n    \"./lib/component/legend\": \"./lib/component/legend.js\",\n    \"./lib/component/legendPlain\": \"./lib/component/legendPlain.js\",\n    \"./lib/component/legendScroll\": \"./lib/component/legendScroll.js\",\n    \"./lib/component/markArea\": \"./lib/component/markArea.js\",\n    \"./lib/component/markLine\": \"./lib/component/markLine.js\",\n    \"./lib/component/markPoint\": \"./lib/component/markPoint.js\",\n    \"./lib/component/parallel\": \"./lib/component/parallel.js\",\n    \"./lib/component/polar\": \"./lib/component/polar.js\",\n    \"./lib/component/radar\": \"./lib/component/radar.js\",\n    \"./lib/component/singleAxis\": \"./lib/component/singleAxis.js\",\n    \"./lib/component/timeline\": \"./lib/component/timeline.js\",\n    \"./lib/component/title\": \"./lib/component/title.js\",\n    \"./lib/component/toolbox\": \"./lib/component/toolbox.js\",\n    \"./lib/component/tooltip\": \"./lib/component/tooltip.js\",\n    \"./lib/component/transform\": \"./lib/component/transform.js\",\n    \"./lib/component/visualMap\": \"./lib/component/visualMap.js\",\n    \"./lib/component/visualMapContinuous\": \"./lib/component/visualMapContinuous.js\",\n    \"./lib/component/visualMapPiecewise\": \"./lib/component/visualMapPiecewise.js\",\n    \"./dist/echarts.common\": \"./dist/echarts.common.js\",\n    \"./dist/echarts.common.min\": \"./dist/echarts.common.min.js\",\n    \"./dist/echarts.esm\": \"./dist/echarts.esm.mjs\",\n    \"./dist/echarts.esm.min\": \"./dist/echarts.esm.min.mjs\",\n    \"./dist/echarts\": \"./dist/echarts.js\",\n    \"./dist/echarts.min\": \"./dist/echarts.min.js\",\n    \"./dist/echarts.simple\": \"./dist/echarts.simple.js\",\n    \"./dist/echarts.simple.min\": \"./dist/echarts.simple.min.js\",\n    \"./dist/extension/bmap\": \"./dist/extension/bmap.js\",\n    \"./dist/extension/bmap.min\": \"./dist/extension/bmap.min.js\",\n    \"./dist/extension/dataTool\": \"./dist/extension/dataTool.js\",\n    \"./dist/extension/dataTool.min\": \"./dist/extension/dataTool.min.js\",\n    \"./*\": \"./*\"\n  }\n}\n",
  "vendor/simple-statistics/erlen-bundle.js": "(function(){var _bibliotecaMethods=(()=>{var f=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(r,n)=>{for(var t in n)f(r,t,{get:n[t],enumerable:!0})},M=(r,n,t,e)=>{if(n&&typeof n==\"object\"||typeof n==\"function\")for(let a of w(n))!d.call(r,a)&&a!==t&&f(r,a,{get:()=>n[a],enumerable:!(e=m(n,a))||e.enumerable});return r};var b=r=>M(f({},\"__esModule\",{value:!0}),r);var P={};p(P,{mean:()=>v,quantileSorted:()=>l,sampleStandardDeviation:()=>h});function q(r){if(r.length===0)return 0;var n=r[0],t=0,e;if(typeof n!=\"number\")return Number.NaN;for(var a=1;a<r.length;a++){if(typeof r[a]!=\"number\")return Number.NaN;e=n+r[a],Math.abs(n)>=Math.abs(r[a])?t+=n-e+r[a]:t+=r[a]-e+n,n=e}return n+t}function v(r){if(r.length===0)throw new Error(\"mean requires at least one data point\");return q(r)/r.length}function E(r,n){var t=v(r),e=0,a,o;if(n===2)for(o=0;o<r.length;o++)a=r[o]-t,e+=a*a;else for(o=0;o<r.length;o++)e+=Math.pow(r[o]-t,n);return e}function S(r){if(r.length<2)throw new Error(\"sampleVariance requires at least two data points\");var n=E(r,2),t=r.length-1;return n/t}function h(r){var n=S(r);return Math.sqrt(n)}function l(r,n){var t=(r.length-1)*n;if(r.length===0)throw new Error(\"quantile requires at least one data point.\");if(n<0||n>1)throw new Error(\"quantiles must be between 0 and 1\");if(n===1)return r[r.length-1];if(n===0)return r[0];if(t%1!==0){var e=Math.floor(t),a=Math.ceil(t),o=t-e;return r[e]+o*(r[a]-r[e])}else return r[t]}var s=function(){this.totalCount=0,this.data={}};s.prototype.train=function(n,t){this.data[t]||(this.data[t]={});for(var e in n){var a=n[e];this.data[t][e]===void 0&&(this.data[t][e]={}),this.data[t][e][a]===void 0&&(this.data[t][e][a]=0),this.data[t][e][a]++}this.totalCount++};s.prototype.score=function(n){var t={},e;for(var a in n){var o=n[a];for(e in this.data)t[e]===void 0&&(t[e]={}),this.data[e][a]?t[e][a+\"_\"+o]=(this.data[e][a][o]||0)/this.totalCount:t[e][a+\"_\"+o]=0}var i={};for(e in t){i[e]=0;for(var c in t[e])i[e]+=t[e][c]}return i};var A=607/128,D=Math.log(Math.sqrt(2*Math.PI));var y=Math.sqrt(2*Math.PI);function N(r){for(var n=r,t=r,e=1;e<30;e++)t*=r*r/(2*e+1),n+=t;return Math.round((.5+n/y*Math.exp(-r*r/2))*1e4)/1e4}var I=[];for(u=0;u<=3.09;u+=.01)I.push(N(u));var u;var V=Math.sqrt(2*Math.PI);var g=function(){this.weights=[],this.bias=0};g.prototype.predict=function(n){if(n.length!==this.weights.length)return null;for(var t=0,e=0;e<this.weights.length;e++)t+=this.weights[e]*n[e];return t+=this.bias,t>0?1:0};g.prototype.train=function(n,t){if(t!==0&&t!==1)return null;n.length!==this.weights.length&&(this.weights=n.slice(),this.bias=1);var e=this.predict(n);if(typeof e==\"number\"&&e!==t){for(var a=t-e,o=0;o<this.weights.length;o++)this.weights[o]+=a*n[o];this.bias+=a}return this};return b(P);})();\n;window.Bibliotecas=window.Bibliotecas||{};window.Bibliotecas[\"simple-statistics\"]=_bibliotecaMethods;})();\n",
  "vendor/simple-statistics/LICENSE": "===== simple-statistics =====\nISC License\n\nCopyright (c) 2014, Tom MacWright\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n",
  "vendor/simple-statistics/package.json": "{\n  \"name\": \"simple-statistics\",\n  \"version\": \"7.12.1\",\n  \"description\": \"Simple Statistics\",\n  \"author\": \"Tom MacWright <tom@macwright.com> (https://macwright.com/)\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git://github.com/simple-statistics/simple-statistics.git\"\n  },\n  \"files\": [\n    \"src\",\n    \"dist\",\n    \"LICENSE\",\n    \"index.js\",\n    \"index.d.ts\"\n  ],\n  \"devDependencies\": {\n    \"@biomejs/biome\": \"^2.5.8\",\n    \"@changesets/cli\": \"^3.0.0\",\n    \"@rollup/plugin-buble\": \"^1.0.3\",\n    \"@rollup/plugin-terser\": \"^1.0.0\",\n    \"documentation\": \"^14.0.3\",\n    \"random-js\": \"^2.1.0\",\n    \"rollup\": \"^4.62.4\",\n    \"typescript\": \"^7.0.2\"\n  },\n  \"type\": \"module\",\n  \"source\": \"index.js\",\n  \"main\": \"dist/simple-statistics.cjs\",\n  \"module\": \"dist/simple-statistics.mjs\",\n  \"umd:main\": \"dist/simple-statistics.min.js\",\n  \"browser\": \"dist/simple-statistics.min.js\",\n  \"unpkg\": \"dist/simple-statistics.min.js\",\n  \"types\": \"index.d.ts\",\n  \"exports\": {\n    \"./package.json\": \"./package.json\",\n    \".\": {\n      \"types\": \"./index.d.ts\",\n      \"import\": \"./dist/simple-statistics.mjs\",\n      \"browser\": \"./dist/simple-statistics.min.js\",\n      \"require\": \"./dist/simple-statistics.cjs\"\n    }\n  },\n  \"engines\": {\n    \"node\": \"*\"\n  },\n  \"license\": \"ISC\",\n  \"keywords\": [\n    \"descriptive\",\n    \"linear\",\n    \"math\",\n    \"probability\",\n    \"regression\",\n    \"statistics\"\n  ],\n  \"publishConfig\": {\n    \"access\": \"public\"\n  },\n  \"scripts\": {\n    \"release\": \"sh ./scripts/update_website.sh\",\n    \"test\": \"npm run lint && node --test --experimental-test-isolation=none test/*.test.js\",\n    \"build\": \"rollup -c rollup.config.mjs\",\n    \"changeset:version\": \"changeset version && node ./scripts/update_readme.js\",\n    \"prelint\": \"tsc --skipLibCheck --noEmit && tsc --noEmit --module nodenext --moduleResolution nodenext\",\n    \"lint\": \"biome check index.js src test\",\n    \"lint-fix\": \"biome check --fix index.js src test\",\n    \"postlint\": \"documentation lint src\"\n  }\n}\n",
  "vendor/validacion.js": "\"use strict\";var ValidadorMethods=(()=>{var R=(g,i)=>()=>{try{return i||g((i={exports:{}}).exports,i),i.exports}catch(v){throw i=0,v}};var A=R(q=>{\"use strict\";Object.defineProperty(q,\"__esModule\",{value:!0});function O(g){let i=g.length,v=0,P=0,w;for(;P<i;)v++,w=g.charCodeAt(P++),w>=55296&&w<=56319&&P<i&&(w=g.charCodeAt(P),(w&64512)===56320&&P++);return v}q.default=O;O.code='require(\"ajv/dist/runtime/ucs2length\").default'});var M=R((E,N)=>{N.exports=L;N.exports.default=L;var j={$schema:\"http://json-schema.org/draft-07/schema#\",$id:\"erlen-methods-protocolo-v2\",title:\"Protocolo y registros de ejecuci\\xF3n de Erlen Methods\",type:\"object\",required:[\"format\",\"id\",\"titulo\",\"reactivos\",\"pasos\",\"lotes\"],properties:{format:{const:\"erlen-methods-protocolo-v2\"},id:{type:\"string\",minLength:1},titulo:{type:\"string\"},escala:{type:\"number\",exclusiveMinimum:0},reactivos:{type:\"array\",items:{type:\"object\",required:[\"id\"],properties:{id:{type:\"string\",minLength:1,maxLength:120},smiles:{type:\"string\"},cantidad:{type:[\"number\",\"null\"],minimum:0},pureza:{type:[\"number\",\"null\"],minimum:0,maximum:100},masaMolar:{type:[\"number\",\"null\"],exclusiveMinimum:0},densidad:{type:[\"number\",\"null\"],exclusiveMinimum:0}}}},pasos:{type:\"array\",items:{type:\"object\",required:[\"id\"],properties:{id:{type:\"string\",minLength:1,maxLength:120},volumen:{type:[\"number\",\"null\"],minimum:0},capacidad:{type:[\"number\",\"null\"],exclusiveMinimum:0},dependeDe:{type:\"array\",maxItems:1e3,uniqueItems:!0,items:{type:\"string\",minLength:1,maxLength:120}}}}},lotes:{type:\"array\",items:{type:\"object\",required:[\"id\"],properties:{id:{type:\"string\",minLength:1,maxLength:120},factor:{type:\"number\",exclusiveMinimum:0},resultado:{type:[\"number\",\"null\"]},revision:{type:[\"object\",\"null\"]},ejecucion:{type:\"object\",properties:{estado:{enum:[\"preparado\",\"enCurso\",\"terminado\"]},inicio:{type:\"string\"},fin:{type:\"string\"},pasos:{type:\"object\",additionalProperties:{type:\"object\",properties:{completado:{type:\"boolean\"},fecha:{type:\"string\"},nota:{type:\"string\"}}}},muestrasRegistros:{type:\"array\",maxItems:5e3,items:{type:\"object\",required:[\"id\",\"nombre\"],properties:{id:{type:\"string\",minLength:1,maxLength:120},nombre:{type:\"string\"},fechaVinculo:{type:\"string\"},loteId:{type:\"string\"},origen:{type:\"string\",maxLength:500},tipo:{type:\"string\",maxLength:120},ubicacion:{type:\"string\",maxLength:300},cantidad:{type:[\"number\",\"null\"],minimum:0},unidad:{enum:[\"\",\"\\xB5L\",\"mL\",\"L\",\"mg\",\"g\",\"unidades\"]},estado:{enum:[\"registrada\",\"disponible\",\"agotada\",\"descartada\"]},fechaRecepcion:{type:\"string\",pattern:\"^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$\"},derivadaDe:{type:\"string\",maxLength:120},derivacion:{type:[\"object\",\"null\"]},historial:{type:\"array\",maxItems:1e4,items:{type:\"object\",required:[\"id\",\"tipo\",\"fecha\",\"motivo\"],properties:{id:{type:\"string\",minLength:1},tipo:{type:\"string\"},fecha:{type:\"string\"},motivo:{type:\"string\"}}}}}}},placas:{type:\"array\",maxItems:100,items:{type:\"object\",required:[\"id\",\"formato\",\"pozos\"],properties:{id:{type:\"string\",minLength:1,maxLength:120},formato:{enum:[6,12,24,48,96,384]},capacidad:{type:[\"number\",\"null\"],exclusiveMinimum:0},pozos:{type:\"object\",additionalProperties:{type:\"object\",properties:{volumenReal:{type:[\"number\",\"null\"],minimum:0},resultado:{type:[\"number\",\"null\"]},muestraId:{type:\"string\"},unidadResultado:{type:\"string\"},fechaMedida:{type:\"string\"},fechaRegistro:{type:\"string\"},origen:{type:\"object\"}}},propertyNames:{pattern:\"^[A-P]([1-9]|1[0-9]|2[0-4])$\"}},historial:{type:\"array\",maxItems:1e4,items:{type:\"object\"}}}}},archivosOrigen:{type:\"array\",items:{type:\"object\",required:[\"id\",\"nombre\",\"sha256\",\"bytes\"],properties:{id:{type:\"string\",pattern:\"^sha256-[a-f0-9]{64}$\"},nombre:{type:\"string\"},sha256:{type:\"string\",pattern:\"^[a-f0-9]{64}$\"},bytes:{type:\"integer\",minimum:0,maximum:10485760},enlace:{type:\"object\",required:[\"tipo\",\"id\"],properties:{tipo:{enum:[\"protocolo\",\"lote\",\"muestra\",\"instrumento\"]},id:{type:\"string\",minLength:1,maxLength:120}}},tipo:{type:\"string\",maxLength:100}}},maxItems:1e3}}}}}},placas:{type:\"array\",items:{type:\"object\",required:[\"id\",\"formato\",\"pozos\"],properties:{id:{type:\"string\",minLength:1,maxLength:120},formato:{enum:[6,12,24,48,96,384]},capacidad:{type:[\"number\",\"null\"],exclusiveMinimum:0},pozos:{type:\"object\",additionalProperties:{type:\"object\",properties:{volumen:{type:[\"number\",\"null\"],minimum:0},resultado:{type:[\"number\",\"null\"]},muestra:{type:\"string\",maxLength:120},replica:{type:[\"integer\",\"null\"],minimum:1},concentracion:{type:[\"number\",\"null\"],minimum:0},rol:{enum:[\"muestra\",\"blanco\",\"controlPositivo\",\"controlNegativo\",\"patron\"]}}},propertyNames:{pattern:\"^[A-P]([1-9]|1[0-9]|2[0-4])$\"}},transferencias:{type:\"array\",items:{type:\"object\",required:[\"id\",\"origen\",\"destino\",\"volumen\"],properties:{id:{type:\"string\",minLength:1,maxLength:120},origen:{type:\"string\"},destino:{type:\"string\"},volumen:{type:\"number\",exclusiveMinimum:0},fecha:{type:\"string\"}}}}}},maxItems:100},muestras:{type:\"array\",items:{type:\"object\",required:[\"id\",\"nombre\"],properties:{id:{type:\"string\",minLength:1,maxLength:120},nombre:{type:\"string\"},loteId:{type:\"string\"},origen:{type:\"string\",maxLength:500},tipo:{type:\"string\",maxLength:120},ubicacion:{type:\"string\",maxLength:300},cantidad:{type:[\"number\",\"null\"],minimum:0},unidad:{enum:[\"\",\"\\xB5L\",\"mL\",\"L\",\"mg\",\"g\",\"unidades\"]},estado:{enum:[\"registrada\",\"disponible\",\"agotada\",\"descartada\"]},fechaRecepcion:{type:\"string\",pattern:\"^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$\"},derivadaDe:{type:\"string\",maxLength:120},derivacion:{type:[\"object\",\"null\"]},historial:{type:\"array\",maxItems:1e4,items:{type:\"object\",required:[\"id\",\"tipo\",\"fecha\",\"motivo\"],properties:{id:{type:\"string\",minLength:1},tipo:{type:\"string\"},fecha:{type:\"string\"},motivo:{type:\"string\"}}}}}},maxItems:5e3},referencias:{type:\"array\",items:{type:\"object\",required:[\"id\",\"type\",\"title\"],properties:{id:{type:[\"string\",\"number\"]},type:{type:\"string\"},title:{type:\"string\"}}},maxItems:1e3},adjuntos:{type:\"array\",items:{type:\"object\",required:[\"id\",\"nombre\",\"sha256\",\"bytes\"],properties:{id:{type:\"string\",pattern:\"^sha256-[a-f0-9]{64}$\"},nombre:{type:\"string\"},sha256:{type:\"string\",pattern:\"^[a-f0-9]{64}$\"},bytes:{type:\"integer\",minimum:0,maximum:10485760},enlace:{type:\"object\",required:[\"tipo\",\"id\"],properties:{tipo:{enum:[\"protocolo\",\"lote\",\"muestra\",\"instrumento\"]},id:{type:\"string\",minLength:1,maxLength:120}}},tipo:{type:\"string\",maxLength:100}}},maxItems:1e3},analisis:{type:\"array\",items:{type:\"object\",properties:{id:{type:\"string\",minLength:1,maxLength:120},tipo:{type:\"string\"},fecha:{type:\"string\"}}},maxItems:100},secuencias:{type:\"array\",maxItems:200,items:{type:\"object\",required:[\"id\",\"tipo\",\"secuencia\",\"sha256\",\"cabecera\",\"identificador\"],properties:{id:{type:\"string\",minLength:1,maxLength:120},identificador:{type:\"string\",minLength:1,maxLength:2e3},cabecera:{type:\"string\",minLength:1,maxLength:2e3},tipo:{enum:[\"ADN\",\"ARN\",\"proteina\"]},secuencia:{type:\"string\",minLength:1,maxLength:1e6},sha256:{type:\"string\",pattern:\"^[a-f0-9]{64}$\"},muestraId:{type:\"string\",maxLength:120},origen:{type:\"object\"},notas:{type:\"string\"}}}},flujo:{type:\"object\",required:[\"modo\"],properties:{modo:{enum:[\"libre\",\"secuencial\",\"dependencias\"]}}}}},y=A().default,z=new RegExp(\"^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$\",\"u\"),I=new RegExp(\"^[A-P]([1-9]|1[0-9]|2[0-4])$\",\"u\"),T=new RegExp(\"^sha256-[a-f0-9]{64}$\",\"u\"),x=new RegExp(\"^[a-f0-9]{64}$\",\"u\");function L(g,{instancePath:i=\"\",parentData:v,parentDataProperty:P,rootData:w=g}={}){let e=null,a=0;if(g&&typeof g==\"object\"&&!Array.isArray(g)){if(g.format===void 0){let c={instancePath:i,schemaPath:\"#/required\",keyword:\"required\",params:{missingProperty:\"format\"},message:\"must have required property 'format'\"};e===null?e=[c]:e.push(c),a++}if(g.id===void 0){let c={instancePath:i,schemaPath:\"#/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[c]:e.push(c),a++}if(g.titulo===void 0){let c={instancePath:i,schemaPath:\"#/required\",keyword:\"required\",params:{missingProperty:\"titulo\"},message:\"must have required property 'titulo'\"};e===null?e=[c]:e.push(c),a++}if(g.reactivos===void 0){let c={instancePath:i,schemaPath:\"#/required\",keyword:\"required\",params:{missingProperty:\"reactivos\"},message:\"must have required property 'reactivos'\"};e===null?e=[c]:e.push(c),a++}if(g.pasos===void 0){let c={instancePath:i,schemaPath:\"#/required\",keyword:\"required\",params:{missingProperty:\"pasos\"},message:\"must have required property 'pasos'\"};e===null?e=[c]:e.push(c),a++}if(g.lotes===void 0){let c={instancePath:i,schemaPath:\"#/required\",keyword:\"required\",params:{missingProperty:\"lotes\"},message:\"must have required property 'lotes'\"};e===null?e=[c]:e.push(c),a++}if(g.format!==void 0&&g.format!==\"erlen-methods-protocolo-v2\"){let c={instancePath:i+\"/format\",schemaPath:\"#/properties/format/const\",keyword:\"const\",params:{allowedValue:\"erlen-methods-protocolo-v2\"},message:\"must be equal to constant\"};e===null?e=[c]:e.push(c),a++}if(g.id!==void 0){let c=g.id;if(typeof c==\"string\"){if(y(c)<1){let d={instancePath:i+\"/id\",schemaPath:\"#/properties/id/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[d]:e.push(d),a++}}else{let d={instancePath:i+\"/id\",schemaPath:\"#/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[d]:e.push(d),a++}}if(g.titulo!==void 0&&typeof g.titulo!=\"string\"){let c={instancePath:i+\"/titulo\",schemaPath:\"#/properties/titulo/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[c]:e.push(c),a++}if(g.escala!==void 0){let c=g.escala;if(typeof c==\"number\"&&isFinite(c)){if(c<=0||isNaN(c)){let d={instancePath:i+\"/escala\",schemaPath:\"#/properties/escala/exclusiveMinimum\",keyword:\"exclusiveMinimum\",params:{comparison:\">\",limit:0},message:\"must be > 0\"};e===null?e=[d]:e.push(d),a++}}else{let d={instancePath:i+\"/escala\",schemaPath:\"#/properties/escala/type\",keyword:\"type\",params:{type:\"number\"},message:\"must be number\"};e===null?e=[d]:e.push(d),a++}}if(g.reactivos!==void 0){let c=g.reactivos;if(Array.isArray(c)){let d=c.length;for(let r=0;r<d;r++){let m=c[r];if(m&&typeof m==\"object\"&&!Array.isArray(m)){if(m.id===void 0){let s={instancePath:i+\"/reactivos/\"+r,schemaPath:\"#/properties/reactivos/items/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[s]:e.push(s),a++}if(m.id!==void 0){let s=m.id;if(typeof s==\"string\"){if(y(s)>120){let t={instancePath:i+\"/reactivos/\"+r+\"/id\",schemaPath:\"#/properties/reactivos/items/properties/id/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[t]:e.push(t),a++}if(y(s)<1){let t={instancePath:i+\"/reactivos/\"+r+\"/id\",schemaPath:\"#/properties/reactivos/items/properties/id/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/reactivos/\"+r+\"/id\",schemaPath:\"#/properties/reactivos/items/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.smiles!==void 0&&typeof m.smiles!=\"string\"){let s={instancePath:i+\"/reactivos/\"+r+\"/smiles\",schemaPath:\"#/properties/reactivos/items/properties/smiles/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[s]:e.push(s),a++}if(m.cantidad!==void 0){let s=m.cantidad;if(!(typeof s==\"number\"&&isFinite(s))&&s!==null){let t={instancePath:i+\"/reactivos/\"+r+\"/cantidad\",schemaPath:\"#/properties/reactivos/items/properties/cantidad/type\",keyword:\"type\",params:{type:j.properties.reactivos.items.properties.cantidad.type},message:\"must be number,null\"};e===null?e=[t]:e.push(t),a++}if(typeof s==\"number\"&&isFinite(s)&&(s<0||isNaN(s))){let t={instancePath:i+\"/reactivos/\"+r+\"/cantidad\",schemaPath:\"#/properties/reactivos/items/properties/cantidad/minimum\",keyword:\"minimum\",params:{comparison:\">=\",limit:0},message:\"must be >= 0\"};e===null?e=[t]:e.push(t),a++}}if(m.pureza!==void 0){let s=m.pureza;if(!(typeof s==\"number\"&&isFinite(s))&&s!==null){let t={instancePath:i+\"/reactivos/\"+r+\"/pureza\",schemaPath:\"#/properties/reactivos/items/properties/pureza/type\",keyword:\"type\",params:{type:j.properties.reactivos.items.properties.pureza.type},message:\"must be number,null\"};e===null?e=[t]:e.push(t),a++}if(typeof s==\"number\"&&isFinite(s)){if(s>100||isNaN(s)){let t={instancePath:i+\"/reactivos/\"+r+\"/pureza\",schemaPath:\"#/properties/reactivos/items/properties/pureza/maximum\",keyword:\"maximum\",params:{comparison:\"<=\",limit:100},message:\"must be <= 100\"};e===null?e=[t]:e.push(t),a++}if(s<0||isNaN(s)){let t={instancePath:i+\"/reactivos/\"+r+\"/pureza\",schemaPath:\"#/properties/reactivos/items/properties/pureza/minimum\",keyword:\"minimum\",params:{comparison:\">=\",limit:0},message:\"must be >= 0\"};e===null?e=[t]:e.push(t),a++}}}if(m.masaMolar!==void 0){let s=m.masaMolar;if(!(typeof s==\"number\"&&isFinite(s))&&s!==null){let t={instancePath:i+\"/reactivos/\"+r+\"/masaMolar\",schemaPath:\"#/properties/reactivos/items/properties/masaMolar/type\",keyword:\"type\",params:{type:j.properties.reactivos.items.properties.masaMolar.type},message:\"must be number,null\"};e===null?e=[t]:e.push(t),a++}if(typeof s==\"number\"&&isFinite(s)&&(s<=0||isNaN(s))){let t={instancePath:i+\"/reactivos/\"+r+\"/masaMolar\",schemaPath:\"#/properties/reactivos/items/properties/masaMolar/exclusiveMinimum\",keyword:\"exclusiveMinimum\",params:{comparison:\">\",limit:0},message:\"must be > 0\"};e===null?e=[t]:e.push(t),a++}}if(m.densidad!==void 0){let s=m.densidad;if(!(typeof s==\"number\"&&isFinite(s))&&s!==null){let t={instancePath:i+\"/reactivos/\"+r+\"/densidad\",schemaPath:\"#/properties/reactivos/items/properties/densidad/type\",keyword:\"type\",params:{type:j.properties.reactivos.items.properties.densidad.type},message:\"must be number,null\"};e===null?e=[t]:e.push(t),a++}if(typeof s==\"number\"&&isFinite(s)&&(s<=0||isNaN(s))){let t={instancePath:i+\"/reactivos/\"+r+\"/densidad\",schemaPath:\"#/properties/reactivos/items/properties/densidad/exclusiveMinimum\",keyword:\"exclusiveMinimum\",params:{comparison:\">\",limit:0},message:\"must be > 0\"};e===null?e=[t]:e.push(t),a++}}}else{let s={instancePath:i+\"/reactivos/\"+r,schemaPath:\"#/properties/reactivos/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[s]:e.push(s),a++}}}else{let d={instancePath:i+\"/reactivos\",schemaPath:\"#/properties/reactivos/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[d]:e.push(d),a++}}if(g.pasos!==void 0){let c=g.pasos;if(Array.isArray(c)){let d=c.length;for(let r=0;r<d;r++){let m=c[r];if(m&&typeof m==\"object\"&&!Array.isArray(m)){if(m.id===void 0){let s={instancePath:i+\"/pasos/\"+r,schemaPath:\"#/properties/pasos/items/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[s]:e.push(s),a++}if(m.id!==void 0){let s=m.id;if(typeof s==\"string\"){if(y(s)>120){let t={instancePath:i+\"/pasos/\"+r+\"/id\",schemaPath:\"#/properties/pasos/items/properties/id/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[t]:e.push(t),a++}if(y(s)<1){let t={instancePath:i+\"/pasos/\"+r+\"/id\",schemaPath:\"#/properties/pasos/items/properties/id/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/pasos/\"+r+\"/id\",schemaPath:\"#/properties/pasos/items/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.volumen!==void 0){let s=m.volumen;if(!(typeof s==\"number\"&&isFinite(s))&&s!==null){let t={instancePath:i+\"/pasos/\"+r+\"/volumen\",schemaPath:\"#/properties/pasos/items/properties/volumen/type\",keyword:\"type\",params:{type:j.properties.pasos.items.properties.volumen.type},message:\"must be number,null\"};e===null?e=[t]:e.push(t),a++}if(typeof s==\"number\"&&isFinite(s)&&(s<0||isNaN(s))){let t={instancePath:i+\"/pasos/\"+r+\"/volumen\",schemaPath:\"#/properties/pasos/items/properties/volumen/minimum\",keyword:\"minimum\",params:{comparison:\">=\",limit:0},message:\"must be >= 0\"};e===null?e=[t]:e.push(t),a++}}if(m.capacidad!==void 0){let s=m.capacidad;if(!(typeof s==\"number\"&&isFinite(s))&&s!==null){let t={instancePath:i+\"/pasos/\"+r+\"/capacidad\",schemaPath:\"#/properties/pasos/items/properties/capacidad/type\",keyword:\"type\",params:{type:j.properties.pasos.items.properties.capacidad.type},message:\"must be number,null\"};e===null?e=[t]:e.push(t),a++}if(typeof s==\"number\"&&isFinite(s)&&(s<=0||isNaN(s))){let t={instancePath:i+\"/pasos/\"+r+\"/capacidad\",schemaPath:\"#/properties/pasos/items/properties/capacidad/exclusiveMinimum\",keyword:\"exclusiveMinimum\",params:{comparison:\">\",limit:0},message:\"must be > 0\"};e===null?e=[t]:e.push(t),a++}}if(m.dependeDe!==void 0){let s=m.dependeDe;if(Array.isArray(s)){if(s.length>1e3){let n={instancePath:i+\"/pasos/\"+r+\"/dependeDe\",schemaPath:\"#/properties/pasos/items/properties/dependeDe/maxItems\",keyword:\"maxItems\",params:{limit:1e3},message:\"must NOT have more than 1000 items\"};e===null?e=[n]:e.push(n),a++}let t=s.length;for(let n=0;n<t;n++){let o=s[n];if(typeof o==\"string\"){if(y(o)>120){let l={instancePath:i+\"/pasos/\"+r+\"/dependeDe/\"+n,schemaPath:\"#/properties/pasos/items/properties/dependeDe/items/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[l]:e.push(l),a++}if(y(o)<1){let l={instancePath:i+\"/pasos/\"+r+\"/dependeDe/\"+n,schemaPath:\"#/properties/pasos/items/properties/dependeDe/items/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[l]:e.push(l),a++}}else{let l={instancePath:i+\"/pasos/\"+r+\"/dependeDe/\"+n,schemaPath:\"#/properties/pasos/items/properties/dependeDe/items/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[l]:e.push(l),a++}}let u=s.length,p;if(u>1){let n={};for(;u--;){let o=s[u];if(typeof o==\"string\"){if(typeof n[o]==\"number\"){p=n[o];let l={instancePath:i+\"/pasos/\"+r+\"/dependeDe\",schemaPath:\"#/properties/pasos/items/properties/dependeDe/uniqueItems\",keyword:\"uniqueItems\",params:{i:u,j:p},message:\"must NOT have duplicate items (items ## \"+p+\" and \"+u+\" are identical)\"};e===null?e=[l]:e.push(l),a++;break}n[o]=u}}}}else{let t={instancePath:i+\"/pasos/\"+r+\"/dependeDe\",schemaPath:\"#/properties/pasos/items/properties/dependeDe/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[t]:e.push(t),a++}}}else{let s={instancePath:i+\"/pasos/\"+r,schemaPath:\"#/properties/pasos/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[s]:e.push(s),a++}}}else{let d={instancePath:i+\"/pasos\",schemaPath:\"#/properties/pasos/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[d]:e.push(d),a++}}if(g.lotes!==void 0){let c=g.lotes;if(Array.isArray(c)){let d=c.length;for(let r=0;r<d;r++){let m=c[r];if(m&&typeof m==\"object\"&&!Array.isArray(m)){if(m.id===void 0){let s={instancePath:i+\"/lotes/\"+r,schemaPath:\"#/properties/lotes/items/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[s]:e.push(s),a++}if(m.id!==void 0){let s=m.id;if(typeof s==\"string\"){if(y(s)>120){let t={instancePath:i+\"/lotes/\"+r+\"/id\",schemaPath:\"#/properties/lotes/items/properties/id/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[t]:e.push(t),a++}if(y(s)<1){let t={instancePath:i+\"/lotes/\"+r+\"/id\",schemaPath:\"#/properties/lotes/items/properties/id/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/lotes/\"+r+\"/id\",schemaPath:\"#/properties/lotes/items/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.factor!==void 0){let s=m.factor;if(typeof s==\"number\"&&isFinite(s)){if(s<=0||isNaN(s)){let t={instancePath:i+\"/lotes/\"+r+\"/factor\",schemaPath:\"#/properties/lotes/items/properties/factor/exclusiveMinimum\",keyword:\"exclusiveMinimum\",params:{comparison:\">\",limit:0},message:\"must be > 0\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/lotes/\"+r+\"/factor\",schemaPath:\"#/properties/lotes/items/properties/factor/type\",keyword:\"type\",params:{type:\"number\"},message:\"must be number\"};e===null?e=[t]:e.push(t),a++}}if(m.resultado!==void 0){let s=m.resultado;if(!(typeof s==\"number\"&&isFinite(s))&&s!==null){let t={instancePath:i+\"/lotes/\"+r+\"/resultado\",schemaPath:\"#/properties/lotes/items/properties/resultado/type\",keyword:\"type\",params:{type:j.properties.lotes.items.properties.resultado.type},message:\"must be number,null\"};e===null?e=[t]:e.push(t),a++}}if(m.revision!==void 0){let s=m.revision;if(!(s&&typeof s==\"object\"&&!Array.isArray(s))&&s!==null){let t={instancePath:i+\"/lotes/\"+r+\"/revision\",schemaPath:\"#/properties/lotes/items/properties/revision/type\",keyword:\"type\",params:{type:j.properties.lotes.items.properties.revision.type},message:\"must be object,null\"};e===null?e=[t]:e.push(t),a++}}if(m.ejecucion!==void 0){let s=m.ejecucion;if(s&&typeof s==\"object\"&&!Array.isArray(s)){if(s.estado!==void 0){let t=s.estado;if(!(t===\"preparado\"||t===\"enCurso\"||t===\"terminado\")){let u={instancePath:i+\"/lotes/\"+r+\"/ejecucion/estado\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/estado/enum\",keyword:\"enum\",params:{allowedValues:j.properties.lotes.items.properties.ejecucion.properties.estado.enum},message:\"must be equal to one of the allowed values\"};e===null?e=[u]:e.push(u),a++}}if(s.inicio!==void 0&&typeof s.inicio!=\"string\"){let t={instancePath:i+\"/lotes/\"+r+\"/ejecucion/inicio\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/inicio/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}if(s.fin!==void 0&&typeof s.fin!=\"string\"){let t={instancePath:i+\"/lotes/\"+r+\"/ejecucion/fin\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/fin/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}if(s.pasos!==void 0){let t=s.pasos;if(t&&typeof t==\"object\"&&!Array.isArray(t))for(let u in t){let p=t[u];if(p&&typeof p==\"object\"&&!Array.isArray(p)){if(p.completado!==void 0&&typeof p.completado!=\"boolean\"){let n={instancePath:i+\"/lotes/\"+r+\"/ejecucion/pasos/\"+u.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/completado\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/pasos/additionalProperties/properties/completado/type\",keyword:\"type\",params:{type:\"boolean\"},message:\"must be boolean\"};e===null?e=[n]:e.push(n),a++}if(p.fecha!==void 0&&typeof p.fecha!=\"string\"){let n={instancePath:i+\"/lotes/\"+r+\"/ejecucion/pasos/\"+u.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/fecha\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/pasos/additionalProperties/properties/fecha/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[n]:e.push(n),a++}if(p.nota!==void 0&&typeof p.nota!=\"string\"){let n={instancePath:i+\"/lotes/\"+r+\"/ejecucion/pasos/\"+u.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/nota\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/pasos/additionalProperties/properties/nota/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[n]:e.push(n),a++}}else{let n={instancePath:i+\"/lotes/\"+r+\"/ejecucion/pasos/\"+u.replace(/~/g,\"~0\").replace(/\\//g,\"~1\"),schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/pasos/additionalProperties/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[n]:e.push(n),a++}}else{let u={instancePath:i+\"/lotes/\"+r+\"/ejecucion/pasos\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/pasos/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[u]:e.push(u),a++}}if(s.muestrasRegistros!==void 0){let t=s.muestrasRegistros;if(Array.isArray(t)){if(t.length>5e3){let p={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/maxItems\",keyword:\"maxItems\",params:{limit:5e3},message:\"must NOT have more than 5000 items\"};e===null?e=[p]:e.push(p),a++}let u=t.length;for(let p=0;p<u;p++){let n=t[p];if(n&&typeof n==\"object\"&&!Array.isArray(n)){if(n.id===void 0){let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[o]:e.push(o),a++}if(n.nombre===void 0){let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/required\",keyword:\"required\",params:{missingProperty:\"nombre\"},message:\"must have required property 'nombre'\"};e===null?e=[o]:e.push(o),a++}if(n.id!==void 0){let o=n.id;if(typeof o==\"string\"){if(y(o)>120){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/id\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/id/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[l]:e.push(l),a++}if(y(o)<1){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/id\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/id/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[l]:e.push(l),a++}}else{let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/id\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[l]:e.push(l),a++}}if(n.nombre!==void 0&&typeof n.nombre!=\"string\"){let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/nombre\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/nombre/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[o]:e.push(o),a++}if(n.fechaVinculo!==void 0&&typeof n.fechaVinculo!=\"string\"){let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/fechaVinculo\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/fechaVinculo/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[o]:e.push(o),a++}if(n.loteId!==void 0&&typeof n.loteId!=\"string\"){let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/loteId\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/loteId/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[o]:e.push(o),a++}if(n.origen!==void 0){let o=n.origen;if(typeof o==\"string\"){if(y(o)>500){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/origen\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/origen/maxLength\",keyword:\"maxLength\",params:{limit:500},message:\"must NOT have more than 500 characters\"};e===null?e=[l]:e.push(l),a++}}else{let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/origen\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/origen/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[l]:e.push(l),a++}}if(n.tipo!==void 0){let o=n.tipo;if(typeof o==\"string\"){if(y(o)>120){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/tipo\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/tipo/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[l]:e.push(l),a++}}else{let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/tipo\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/tipo/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[l]:e.push(l),a++}}if(n.ubicacion!==void 0){let o=n.ubicacion;if(typeof o==\"string\"){if(y(o)>300){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/ubicacion\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/ubicacion/maxLength\",keyword:\"maxLength\",params:{limit:300},message:\"must NOT have more than 300 characters\"};e===null?e=[l]:e.push(l),a++}}else{let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/ubicacion\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/ubicacion/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[l]:e.push(l),a++}}if(n.cantidad!==void 0){let o=n.cantidad;if(!(typeof o==\"number\"&&isFinite(o))&&o!==null){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/cantidad\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/cantidad/type\",keyword:\"type\",params:{type:j.properties.lotes.items.properties.ejecucion.properties.muestrasRegistros.items.properties.cantidad.type},message:\"must be number,null\"};e===null?e=[l]:e.push(l),a++}if(typeof o==\"number\"&&isFinite(o)&&(o<0||isNaN(o))){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/cantidad\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/cantidad/minimum\",keyword:\"minimum\",params:{comparison:\">=\",limit:0},message:\"must be >= 0\"};e===null?e=[l]:e.push(l),a++}}if(n.unidad!==void 0){let o=n.unidad;if(!(o===\"\"||o===\"\\xB5L\"||o===\"mL\"||o===\"L\"||o===\"mg\"||o===\"g\"||o===\"unidades\")){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/unidad\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/unidad/enum\",keyword:\"enum\",params:{allowedValues:j.properties.lotes.items.properties.ejecucion.properties.muestrasRegistros.items.properties.unidad.enum},message:\"must be equal to one of the allowed values\"};e===null?e=[l]:e.push(l),a++}}if(n.estado!==void 0){let o=n.estado;if(!(o===\"registrada\"||o===\"disponible\"||o===\"agotada\"||o===\"descartada\")){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/estado\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/estado/enum\",keyword:\"enum\",params:{allowedValues:j.properties.lotes.items.properties.ejecucion.properties.muestrasRegistros.items.properties.estado.enum},message:\"must be equal to one of the allowed values\"};e===null?e=[l]:e.push(l),a++}}if(n.fechaRecepcion!==void 0){let o=n.fechaRecepcion;if(typeof o==\"string\"){if(!z.test(o)){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/fechaRecepcion\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/fechaRecepcion/pattern\",keyword:\"pattern\",params:{pattern:\"^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$\"},message:'must match pattern \"^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$\"'};e===null?e=[l]:e.push(l),a++}}else{let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/fechaRecepcion\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/fechaRecepcion/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[l]:e.push(l),a++}}if(n.derivadaDe!==void 0){let o=n.derivadaDe;if(typeof o==\"string\"){if(y(o)>120){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/derivadaDe\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/derivadaDe/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[l]:e.push(l),a++}}else{let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/derivadaDe\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/derivadaDe/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[l]:e.push(l),a++}}if(n.derivacion!==void 0){let o=n.derivacion;if(!(o&&typeof o==\"object\"&&!Array.isArray(o))&&o!==null){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/derivacion\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/derivacion/type\",keyword:\"type\",params:{type:j.properties.lotes.items.properties.ejecucion.properties.muestrasRegistros.items.properties.derivacion.type},message:\"must be object,null\"};e===null?e=[l]:e.push(l),a++}}if(n.historial!==void 0){let o=n.historial;if(Array.isArray(o)){if(o.length>1e4){let h={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/historial\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/historial/maxItems\",keyword:\"maxItems\",params:{limit:1e4},message:\"must NOT have more than 10000 items\"};e===null?e=[h]:e.push(h),a++}let l=o.length;for(let h=0;h<l;h++){let f=o[h];if(f&&typeof f==\"object\"&&!Array.isArray(f)){if(f.id===void 0){let b={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/historial/\"+h,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/historial/items/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[b]:e.push(b),a++}if(f.tipo===void 0){let b={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/historial/\"+h,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/historial/items/required\",keyword:\"required\",params:{missingProperty:\"tipo\"},message:\"must have required property 'tipo'\"};e===null?e=[b]:e.push(b),a++}if(f.fecha===void 0){let b={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/historial/\"+h,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/historial/items/required\",keyword:\"required\",params:{missingProperty:\"fecha\"},message:\"must have required property 'fecha'\"};e===null?e=[b]:e.push(b),a++}if(f.motivo===void 0){let b={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/historial/\"+h,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/historial/items/required\",keyword:\"required\",params:{missingProperty:\"motivo\"},message:\"must have required property 'motivo'\"};e===null?e=[b]:e.push(b),a++}if(f.id!==void 0){let b=f.id;if(typeof b==\"string\"){if(y(b)<1){let k={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/historial/\"+h+\"/id\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/historial/items/properties/id/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[k]:e.push(k),a++}}else{let k={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/historial/\"+h+\"/id\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/historial/items/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[k]:e.push(k),a++}}if(f.tipo!==void 0&&typeof f.tipo!=\"string\"){let b={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/historial/\"+h+\"/tipo\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/historial/items/properties/tipo/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[b]:e.push(b),a++}if(f.fecha!==void 0&&typeof f.fecha!=\"string\"){let b={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/historial/\"+h+\"/fecha\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/historial/items/properties/fecha/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[b]:e.push(b),a++}if(f.motivo!==void 0&&typeof f.motivo!=\"string\"){let b={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/historial/\"+h+\"/motivo\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/historial/items/properties/motivo/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[b]:e.push(b),a++}}else{let b={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/historial/\"+h,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/historial/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[b]:e.push(b),a++}}}else{let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p+\"/historial\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/properties/historial/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[l]:e.push(l),a++}}}else{let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros/\"+p,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[o]:e.push(o),a++}}}else{let u={instancePath:i+\"/lotes/\"+r+\"/ejecucion/muestrasRegistros\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/muestrasRegistros/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[u]:e.push(u),a++}}if(s.placas!==void 0){let t=s.placas;if(Array.isArray(t)){if(t.length>100){let p={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/maxItems\",keyword:\"maxItems\",params:{limit:100},message:\"must NOT have more than 100 items\"};e===null?e=[p]:e.push(p),a++}let u=t.length;for(let p=0;p<u;p++){let n=t[p];if(n&&typeof n==\"object\"&&!Array.isArray(n)){if(n.id===void 0){let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[o]:e.push(o),a++}if(n.formato===void 0){let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/required\",keyword:\"required\",params:{missingProperty:\"formato\"},message:\"must have required property 'formato'\"};e===null?e=[o]:e.push(o),a++}if(n.pozos===void 0){let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/required\",keyword:\"required\",params:{missingProperty:\"pozos\"},message:\"must have required property 'pozos'\"};e===null?e=[o]:e.push(o),a++}if(n.id!==void 0){let o=n.id;if(typeof o==\"string\"){if(y(o)>120){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/id\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/id/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[l]:e.push(l),a++}if(y(o)<1){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/id\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/id/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[l]:e.push(l),a++}}else{let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/id\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[l]:e.push(l),a++}}if(n.formato!==void 0){let o=n.formato;if(!(o===6||o===12||o===24||o===48||o===96||o===384)){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/formato\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/formato/enum\",keyword:\"enum\",params:{allowedValues:j.properties.lotes.items.properties.ejecucion.properties.placas.items.properties.formato.enum},message:\"must be equal to one of the allowed values\"};e===null?e=[l]:e.push(l),a++}}if(n.capacidad!==void 0){let o=n.capacidad;if(!(typeof o==\"number\"&&isFinite(o))&&o!==null){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/capacidad\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/capacidad/type\",keyword:\"type\",params:{type:j.properties.lotes.items.properties.ejecucion.properties.placas.items.properties.capacidad.type},message:\"must be number,null\"};e===null?e=[l]:e.push(l),a++}if(typeof o==\"number\"&&isFinite(o)&&(o<=0||isNaN(o))){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/capacidad\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/capacidad/exclusiveMinimum\",keyword:\"exclusiveMinimum\",params:{comparison:\">\",limit:0},message:\"must be > 0\"};e===null?e=[l]:e.push(l),a++}}if(n.pozos!==void 0){let o=n.pozos;if(o&&typeof o==\"object\"&&!Array.isArray(o)){for(let l in o){let h=a;if(typeof l==\"string\"&&!I.test(l)){let f={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/pozos\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/pozos/propertyNames/pattern\",keyword:\"pattern\",params:{pattern:\"^[A-P]([1-9]|1[0-9]|2[0-4])$\"},message:'must match pattern \"^[A-P]([1-9]|1[0-9]|2[0-4])$\"',propertyName:l};e===null?e=[f]:e.push(f),a++}var $=h===a;if(!$){let f={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/pozos\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/pozos/propertyNames\",keyword:\"propertyNames\",params:{propertyName:l},message:\"property name must be valid\"};e===null?e=[f]:e.push(f),a++}}for(let l in o){let h=o[l];if(h&&typeof h==\"object\"&&!Array.isArray(h)){if(h.volumenReal!==void 0){let f=h.volumenReal;if(!(typeof f==\"number\"&&isFinite(f))&&f!==null){let b={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/pozos/\"+l.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/volumenReal\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/pozos/additionalProperties/properties/volumenReal/type\",keyword:\"type\",params:{type:j.properties.lotes.items.properties.ejecucion.properties.placas.items.properties.pozos.additionalProperties.properties.volumenReal.type},message:\"must be number,null\"};e===null?e=[b]:e.push(b),a++}if(typeof f==\"number\"&&isFinite(f)&&(f<0||isNaN(f))){let b={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/pozos/\"+l.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/volumenReal\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/pozos/additionalProperties/properties/volumenReal/minimum\",keyword:\"minimum\",params:{comparison:\">=\",limit:0},message:\"must be >= 0\"};e===null?e=[b]:e.push(b),a++}}if(h.resultado!==void 0){let f=h.resultado;if(!(typeof f==\"number\"&&isFinite(f))&&f!==null){let b={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/pozos/\"+l.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/resultado\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/pozos/additionalProperties/properties/resultado/type\",keyword:\"type\",params:{type:j.properties.lotes.items.properties.ejecucion.properties.placas.items.properties.pozos.additionalProperties.properties.resultado.type},message:\"must be number,null\"};e===null?e=[b]:e.push(b),a++}}if(h.muestraId!==void 0&&typeof h.muestraId!=\"string\"){let f={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/pozos/\"+l.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/muestraId\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/pozos/additionalProperties/properties/muestraId/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[f]:e.push(f),a++}if(h.unidadResultado!==void 0&&typeof h.unidadResultado!=\"string\"){let f={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/pozos/\"+l.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/unidadResultado\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/pozos/additionalProperties/properties/unidadResultado/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[f]:e.push(f),a++}if(h.fechaMedida!==void 0&&typeof h.fechaMedida!=\"string\"){let f={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/pozos/\"+l.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/fechaMedida\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/pozos/additionalProperties/properties/fechaMedida/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[f]:e.push(f),a++}if(h.fechaRegistro!==void 0&&typeof h.fechaRegistro!=\"string\"){let f={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/pozos/\"+l.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/fechaRegistro\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/pozos/additionalProperties/properties/fechaRegistro/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[f]:e.push(f),a++}if(h.origen!==void 0){let f=h.origen;if(!(f&&typeof f==\"object\"&&!Array.isArray(f))){let b={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/pozos/\"+l.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/origen\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/pozos/additionalProperties/properties/origen/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[b]:e.push(b),a++}}}else{let f={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/pozos/\"+l.replace(/~/g,\"~0\").replace(/\\//g,\"~1\"),schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/pozos/additionalProperties/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[f]:e.push(f),a++}}}else{let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/pozos\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/pozos/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[l]:e.push(l),a++}}if(n.historial!==void 0){let o=n.historial;if(Array.isArray(o)){if(o.length>1e4){let h={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/historial\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/historial/maxItems\",keyword:\"maxItems\",params:{limit:1e4},message:\"must NOT have more than 10000 items\"};e===null?e=[h]:e.push(h),a++}let l=o.length;for(let h=0;h<l;h++){let f=o[h];if(!(f&&typeof f==\"object\"&&!Array.isArray(f))){let b={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/historial/\"+h,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/historial/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[b]:e.push(b),a++}}}else{let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p+\"/historial\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/properties/historial/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[l]:e.push(l),a++}}}else{let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas/\"+p,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[o]:e.push(o),a++}}}else{let u={instancePath:i+\"/lotes/\"+r+\"/ejecucion/placas\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/placas/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[u]:e.push(u),a++}}if(s.archivosOrigen!==void 0){let t=s.archivosOrigen;if(Array.isArray(t)){if(t.length>1e3){let p={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/maxItems\",keyword:\"maxItems\",params:{limit:1e3},message:\"must NOT have more than 1000 items\"};e===null?e=[p]:e.push(p),a++}let u=t.length;for(let p=0;p<u;p++){let n=t[p];if(n&&typeof n==\"object\"&&!Array.isArray(n)){if(n.id===void 0){let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[o]:e.push(o),a++}if(n.nombre===void 0){let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/required\",keyword:\"required\",params:{missingProperty:\"nombre\"},message:\"must have required property 'nombre'\"};e===null?e=[o]:e.push(o),a++}if(n.sha256===void 0){let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/required\",keyword:\"required\",params:{missingProperty:\"sha256\"},message:\"must have required property 'sha256'\"};e===null?e=[o]:e.push(o),a++}if(n.bytes===void 0){let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/required\",keyword:\"required\",params:{missingProperty:\"bytes\"},message:\"must have required property 'bytes'\"};e===null?e=[o]:e.push(o),a++}if(n.id!==void 0){let o=n.id;if(typeof o==\"string\"){if(!T.test(o)){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/id\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/id/pattern\",keyword:\"pattern\",params:{pattern:\"^sha256-[a-f0-9]{64}$\"},message:'must match pattern \"^sha256-[a-f0-9]{64}$\"'};e===null?e=[l]:e.push(l),a++}}else{let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/id\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[l]:e.push(l),a++}}if(n.nombre!==void 0&&typeof n.nombre!=\"string\"){let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/nombre\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/nombre/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[o]:e.push(o),a++}if(n.sha256!==void 0){let o=n.sha256;if(typeof o==\"string\"){if(!x.test(o)){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/sha256\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/sha256/pattern\",keyword:\"pattern\",params:{pattern:\"^[a-f0-9]{64}$\"},message:'must match pattern \"^[a-f0-9]{64}$\"'};e===null?e=[l]:e.push(l),a++}}else{let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/sha256\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/sha256/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[l]:e.push(l),a++}}if(n.bytes!==void 0){let o=n.bytes;if(!(typeof o==\"number\"&&!(o%1)&&!isNaN(o)&&isFinite(o))){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/bytes\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/bytes/type\",keyword:\"type\",params:{type:\"integer\"},message:\"must be integer\"};e===null?e=[l]:e.push(l),a++}if(typeof o==\"number\"&&isFinite(o)){if(o>10485760||isNaN(o)){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/bytes\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/bytes/maximum\",keyword:\"maximum\",params:{comparison:\"<=\",limit:10485760},message:\"must be <= 10485760\"};e===null?e=[l]:e.push(l),a++}if(o<0||isNaN(o)){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/bytes\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/bytes/minimum\",keyword:\"minimum\",params:{comparison:\">=\",limit:0},message:\"must be >= 0\"};e===null?e=[l]:e.push(l),a++}}}if(n.enlace!==void 0){let o=n.enlace;if(o&&typeof o==\"object\"&&!Array.isArray(o)){if(o.tipo===void 0){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/enlace\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/enlace/required\",keyword:\"required\",params:{missingProperty:\"tipo\"},message:\"must have required property 'tipo'\"};e===null?e=[l]:e.push(l),a++}if(o.id===void 0){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/enlace\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/enlace/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[l]:e.push(l),a++}if(o.tipo!==void 0){let l=o.tipo;if(!(l===\"protocolo\"||l===\"lote\"||l===\"muestra\"||l===\"instrumento\")){let h={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/enlace/tipo\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/enlace/properties/tipo/enum\",keyword:\"enum\",params:{allowedValues:j.properties.lotes.items.properties.ejecucion.properties.archivosOrigen.items.properties.enlace.properties.tipo.enum},message:\"must be equal to one of the allowed values\"};e===null?e=[h]:e.push(h),a++}}if(o.id!==void 0){let l=o.id;if(typeof l==\"string\"){if(y(l)>120){let h={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/enlace/id\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/enlace/properties/id/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[h]:e.push(h),a++}if(y(l)<1){let h={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/enlace/id\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/enlace/properties/id/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[h]:e.push(h),a++}}else{let h={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/enlace/id\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/enlace/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[h]:e.push(h),a++}}}else{let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/enlace\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/enlace/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[l]:e.push(l),a++}}if(n.tipo!==void 0){let o=n.tipo;if(typeof o==\"string\"){if(y(o)>100){let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/tipo\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/tipo/maxLength\",keyword:\"maxLength\",params:{limit:100},message:\"must NOT have more than 100 characters\"};e===null?e=[l]:e.push(l),a++}}else{let l={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p+\"/tipo\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/properties/tipo/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[l]:e.push(l),a++}}}else{let o={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen/\"+p,schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[o]:e.push(o),a++}}}else{let u={instancePath:i+\"/lotes/\"+r+\"/ejecucion/archivosOrigen\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/properties/archivosOrigen/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[u]:e.push(u),a++}}}else{let t={instancePath:i+\"/lotes/\"+r+\"/ejecucion\",schemaPath:\"#/properties/lotes/items/properties/ejecucion/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[t]:e.push(t),a++}}}else{let s={instancePath:i+\"/lotes/\"+r,schemaPath:\"#/properties/lotes/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[s]:e.push(s),a++}}}else{let d={instancePath:i+\"/lotes\",schemaPath:\"#/properties/lotes/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[d]:e.push(d),a++}}if(g.placas!==void 0){let c=g.placas;if(Array.isArray(c)){if(c.length>100){let r={instancePath:i+\"/placas\",schemaPath:\"#/properties/placas/maxItems\",keyword:\"maxItems\",params:{limit:100},message:\"must NOT have more than 100 items\"};e===null?e=[r]:e.push(r),a++}let d=c.length;for(let r=0;r<d;r++){let m=c[r];if(m&&typeof m==\"object\"&&!Array.isArray(m)){if(m.id===void 0){let s={instancePath:i+\"/placas/\"+r,schemaPath:\"#/properties/placas/items/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[s]:e.push(s),a++}if(m.formato===void 0){let s={instancePath:i+\"/placas/\"+r,schemaPath:\"#/properties/placas/items/required\",keyword:\"required\",params:{missingProperty:\"formato\"},message:\"must have required property 'formato'\"};e===null?e=[s]:e.push(s),a++}if(m.pozos===void 0){let s={instancePath:i+\"/placas/\"+r,schemaPath:\"#/properties/placas/items/required\",keyword:\"required\",params:{missingProperty:\"pozos\"},message:\"must have required property 'pozos'\"};e===null?e=[s]:e.push(s),a++}if(m.id!==void 0){let s=m.id;if(typeof s==\"string\"){if(y(s)>120){let t={instancePath:i+\"/placas/\"+r+\"/id\",schemaPath:\"#/properties/placas/items/properties/id/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[t]:e.push(t),a++}if(y(s)<1){let t={instancePath:i+\"/placas/\"+r+\"/id\",schemaPath:\"#/properties/placas/items/properties/id/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/placas/\"+r+\"/id\",schemaPath:\"#/properties/placas/items/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.formato!==void 0){let s=m.formato;if(!(s===6||s===12||s===24||s===48||s===96||s===384)){let t={instancePath:i+\"/placas/\"+r+\"/formato\",schemaPath:\"#/properties/placas/items/properties/formato/enum\",keyword:\"enum\",params:{allowedValues:j.properties.placas.items.properties.formato.enum},message:\"must be equal to one of the allowed values\"};e===null?e=[t]:e.push(t),a++}}if(m.capacidad!==void 0){let s=m.capacidad;if(!(typeof s==\"number\"&&isFinite(s))&&s!==null){let t={instancePath:i+\"/placas/\"+r+\"/capacidad\",schemaPath:\"#/properties/placas/items/properties/capacidad/type\",keyword:\"type\",params:{type:j.properties.placas.items.properties.capacidad.type},message:\"must be number,null\"};e===null?e=[t]:e.push(t),a++}if(typeof s==\"number\"&&isFinite(s)&&(s<=0||isNaN(s))){let t={instancePath:i+\"/placas/\"+r+\"/capacidad\",schemaPath:\"#/properties/placas/items/properties/capacidad/exclusiveMinimum\",keyword:\"exclusiveMinimum\",params:{comparison:\">\",limit:0},message:\"must be > 0\"};e===null?e=[t]:e.push(t),a++}}if(m.pozos!==void 0){let s=m.pozos;if(s&&typeof s==\"object\"&&!Array.isArray(s)){for(let t in s){let u=a;if(typeof t==\"string\"&&!I.test(t)){let p={instancePath:i+\"/placas/\"+r+\"/pozos\",schemaPath:\"#/properties/placas/items/properties/pozos/propertyNames/pattern\",keyword:\"pattern\",params:{pattern:\"^[A-P]([1-9]|1[0-9]|2[0-4])$\"},message:'must match pattern \"^[A-P]([1-9]|1[0-9]|2[0-4])$\"',propertyName:t};e===null?e=[p]:e.push(p),a++}var F=u===a;if(!F){let p={instancePath:i+\"/placas/\"+r+\"/pozos\",schemaPath:\"#/properties/placas/items/properties/pozos/propertyNames\",keyword:\"propertyNames\",params:{propertyName:t},message:\"property name must be valid\"};e===null?e=[p]:e.push(p),a++}}for(let t in s){let u=s[t];if(u&&typeof u==\"object\"&&!Array.isArray(u)){if(u.volumen!==void 0){let p=u.volumen;if(!(typeof p==\"number\"&&isFinite(p))&&p!==null){let n={instancePath:i+\"/placas/\"+r+\"/pozos/\"+t.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/volumen\",schemaPath:\"#/properties/placas/items/properties/pozos/additionalProperties/properties/volumen/type\",keyword:\"type\",params:{type:j.properties.placas.items.properties.pozos.additionalProperties.properties.volumen.type},message:\"must be number,null\"};e===null?e=[n]:e.push(n),a++}if(typeof p==\"number\"&&isFinite(p)&&(p<0||isNaN(p))){let n={instancePath:i+\"/placas/\"+r+\"/pozos/\"+t.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/volumen\",schemaPath:\"#/properties/placas/items/properties/pozos/additionalProperties/properties/volumen/minimum\",keyword:\"minimum\",params:{comparison:\">=\",limit:0},message:\"must be >= 0\"};e===null?e=[n]:e.push(n),a++}}if(u.resultado!==void 0){let p=u.resultado;if(!(typeof p==\"number\"&&isFinite(p))&&p!==null){let n={instancePath:i+\"/placas/\"+r+\"/pozos/\"+t.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/resultado\",schemaPath:\"#/properties/placas/items/properties/pozos/additionalProperties/properties/resultado/type\",keyword:\"type\",params:{type:j.properties.placas.items.properties.pozos.additionalProperties.properties.resultado.type},message:\"must be number,null\"};e===null?e=[n]:e.push(n),a++}}if(u.muestra!==void 0){let p=u.muestra;if(typeof p==\"string\"){if(y(p)>120){let n={instancePath:i+\"/placas/\"+r+\"/pozos/\"+t.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/muestra\",schemaPath:\"#/properties/placas/items/properties/pozos/additionalProperties/properties/muestra/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[n]:e.push(n),a++}}else{let n={instancePath:i+\"/placas/\"+r+\"/pozos/\"+t.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/muestra\",schemaPath:\"#/properties/placas/items/properties/pozos/additionalProperties/properties/muestra/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[n]:e.push(n),a++}}if(u.replica!==void 0){let p=u.replica;if(!(typeof p==\"number\"&&!(p%1)&&!isNaN(p)&&isFinite(p))&&p!==null){let n={instancePath:i+\"/placas/\"+r+\"/pozos/\"+t.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/replica\",schemaPath:\"#/properties/placas/items/properties/pozos/additionalProperties/properties/replica/type\",keyword:\"type\",params:{type:j.properties.placas.items.properties.pozos.additionalProperties.properties.replica.type},message:\"must be integer,null\"};e===null?e=[n]:e.push(n),a++}if(typeof p==\"number\"&&isFinite(p)&&(p<1||isNaN(p))){let n={instancePath:i+\"/placas/\"+r+\"/pozos/\"+t.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/replica\",schemaPath:\"#/properties/placas/items/properties/pozos/additionalProperties/properties/replica/minimum\",keyword:\"minimum\",params:{comparison:\">=\",limit:1},message:\"must be >= 1\"};e===null?e=[n]:e.push(n),a++}}if(u.concentracion!==void 0){let p=u.concentracion;if(!(typeof p==\"number\"&&isFinite(p))&&p!==null){let n={instancePath:i+\"/placas/\"+r+\"/pozos/\"+t.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/concentracion\",schemaPath:\"#/properties/placas/items/properties/pozos/additionalProperties/properties/concentracion/type\",keyword:\"type\",params:{type:j.properties.placas.items.properties.pozos.additionalProperties.properties.concentracion.type},message:\"must be number,null\"};e===null?e=[n]:e.push(n),a++}if(typeof p==\"number\"&&isFinite(p)&&(p<0||isNaN(p))){let n={instancePath:i+\"/placas/\"+r+\"/pozos/\"+t.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/concentracion\",schemaPath:\"#/properties/placas/items/properties/pozos/additionalProperties/properties/concentracion/minimum\",keyword:\"minimum\",params:{comparison:\">=\",limit:0},message:\"must be >= 0\"};e===null?e=[n]:e.push(n),a++}}if(u.rol!==void 0){let p=u.rol;if(!(p===\"muestra\"||p===\"blanco\"||p===\"controlPositivo\"||p===\"controlNegativo\"||p===\"patron\")){let n={instancePath:i+\"/placas/\"+r+\"/pozos/\"+t.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")+\"/rol\",schemaPath:\"#/properties/placas/items/properties/pozos/additionalProperties/properties/rol/enum\",keyword:\"enum\",params:{allowedValues:j.properties.placas.items.properties.pozos.additionalProperties.properties.rol.enum},message:\"must be equal to one of the allowed values\"};e===null?e=[n]:e.push(n),a++}}}else{let p={instancePath:i+\"/placas/\"+r+\"/pozos/\"+t.replace(/~/g,\"~0\").replace(/\\//g,\"~1\"),schemaPath:\"#/properties/placas/items/properties/pozos/additionalProperties/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[p]:e.push(p),a++}}}else{let t={instancePath:i+\"/placas/\"+r+\"/pozos\",schemaPath:\"#/properties/placas/items/properties/pozos/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[t]:e.push(t),a++}}if(m.transferencias!==void 0){let s=m.transferencias;if(Array.isArray(s)){let t=s.length;for(let u=0;u<t;u++){let p=s[u];if(p&&typeof p==\"object\"&&!Array.isArray(p)){if(p.id===void 0){let n={instancePath:i+\"/placas/\"+r+\"/transferencias/\"+u,schemaPath:\"#/properties/placas/items/properties/transferencias/items/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[n]:e.push(n),a++}if(p.origen===void 0){let n={instancePath:i+\"/placas/\"+r+\"/transferencias/\"+u,schemaPath:\"#/properties/placas/items/properties/transferencias/items/required\",keyword:\"required\",params:{missingProperty:\"origen\"},message:\"must have required property 'origen'\"};e===null?e=[n]:e.push(n),a++}if(p.destino===void 0){let n={instancePath:i+\"/placas/\"+r+\"/transferencias/\"+u,schemaPath:\"#/properties/placas/items/properties/transferencias/items/required\",keyword:\"required\",params:{missingProperty:\"destino\"},message:\"must have required property 'destino'\"};e===null?e=[n]:e.push(n),a++}if(p.volumen===void 0){let n={instancePath:i+\"/placas/\"+r+\"/transferencias/\"+u,schemaPath:\"#/properties/placas/items/properties/transferencias/items/required\",keyword:\"required\",params:{missingProperty:\"volumen\"},message:\"must have required property 'volumen'\"};e===null?e=[n]:e.push(n),a++}if(p.id!==void 0){let n=p.id;if(typeof n==\"string\"){if(y(n)>120){let o={instancePath:i+\"/placas/\"+r+\"/transferencias/\"+u+\"/id\",schemaPath:\"#/properties/placas/items/properties/transferencias/items/properties/id/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[o]:e.push(o),a++}if(y(n)<1){let o={instancePath:i+\"/placas/\"+r+\"/transferencias/\"+u+\"/id\",schemaPath:\"#/properties/placas/items/properties/transferencias/items/properties/id/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[o]:e.push(o),a++}}else{let o={instancePath:i+\"/placas/\"+r+\"/transferencias/\"+u+\"/id\",schemaPath:\"#/properties/placas/items/properties/transferencias/items/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[o]:e.push(o),a++}}if(p.origen!==void 0&&typeof p.origen!=\"string\"){let n={instancePath:i+\"/placas/\"+r+\"/transferencias/\"+u+\"/origen\",schemaPath:\"#/properties/placas/items/properties/transferencias/items/properties/origen/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[n]:e.push(n),a++}if(p.destino!==void 0&&typeof p.destino!=\"string\"){let n={instancePath:i+\"/placas/\"+r+\"/transferencias/\"+u+\"/destino\",schemaPath:\"#/properties/placas/items/properties/transferencias/items/properties/destino/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[n]:e.push(n),a++}if(p.volumen!==void 0){let n=p.volumen;if(typeof n==\"number\"&&isFinite(n)){if(n<=0||isNaN(n)){let o={instancePath:i+\"/placas/\"+r+\"/transferencias/\"+u+\"/volumen\",schemaPath:\"#/properties/placas/items/properties/transferencias/items/properties/volumen/exclusiveMinimum\",keyword:\"exclusiveMinimum\",params:{comparison:\">\",limit:0},message:\"must be > 0\"};e===null?e=[o]:e.push(o),a++}}else{let o={instancePath:i+\"/placas/\"+r+\"/transferencias/\"+u+\"/volumen\",schemaPath:\"#/properties/placas/items/properties/transferencias/items/properties/volumen/type\",keyword:\"type\",params:{type:\"number\"},message:\"must be number\"};e===null?e=[o]:e.push(o),a++}}if(p.fecha!==void 0&&typeof p.fecha!=\"string\"){let n={instancePath:i+\"/placas/\"+r+\"/transferencias/\"+u+\"/fecha\",schemaPath:\"#/properties/placas/items/properties/transferencias/items/properties/fecha/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[n]:e.push(n),a++}}else{let n={instancePath:i+\"/placas/\"+r+\"/transferencias/\"+u,schemaPath:\"#/properties/placas/items/properties/transferencias/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[n]:e.push(n),a++}}}else{let t={instancePath:i+\"/placas/\"+r+\"/transferencias\",schemaPath:\"#/properties/placas/items/properties/transferencias/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[t]:e.push(t),a++}}}else{let s={instancePath:i+\"/placas/\"+r,schemaPath:\"#/properties/placas/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[s]:e.push(s),a++}}}else{let d={instancePath:i+\"/placas\",schemaPath:\"#/properties/placas/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[d]:e.push(d),a++}}if(g.muestras!==void 0){let c=g.muestras;if(Array.isArray(c)){if(c.length>5e3){let r={instancePath:i+\"/muestras\",schemaPath:\"#/properties/muestras/maxItems\",keyword:\"maxItems\",params:{limit:5e3},message:\"must NOT have more than 5000 items\"};e===null?e=[r]:e.push(r),a++}let d=c.length;for(let r=0;r<d;r++){let m=c[r];if(m&&typeof m==\"object\"&&!Array.isArray(m)){if(m.id===void 0){let s={instancePath:i+\"/muestras/\"+r,schemaPath:\"#/properties/muestras/items/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[s]:e.push(s),a++}if(m.nombre===void 0){let s={instancePath:i+\"/muestras/\"+r,schemaPath:\"#/properties/muestras/items/required\",keyword:\"required\",params:{missingProperty:\"nombre\"},message:\"must have required property 'nombre'\"};e===null?e=[s]:e.push(s),a++}if(m.id!==void 0){let s=m.id;if(typeof s==\"string\"){if(y(s)>120){let t={instancePath:i+\"/muestras/\"+r+\"/id\",schemaPath:\"#/properties/muestras/items/properties/id/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[t]:e.push(t),a++}if(y(s)<1){let t={instancePath:i+\"/muestras/\"+r+\"/id\",schemaPath:\"#/properties/muestras/items/properties/id/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/muestras/\"+r+\"/id\",schemaPath:\"#/properties/muestras/items/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.nombre!==void 0&&typeof m.nombre!=\"string\"){let s={instancePath:i+\"/muestras/\"+r+\"/nombre\",schemaPath:\"#/properties/muestras/items/properties/nombre/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[s]:e.push(s),a++}if(m.loteId!==void 0&&typeof m.loteId!=\"string\"){let s={instancePath:i+\"/muestras/\"+r+\"/loteId\",schemaPath:\"#/properties/muestras/items/properties/loteId/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[s]:e.push(s),a++}if(m.origen!==void 0){let s=m.origen;if(typeof s==\"string\"){if(y(s)>500){let t={instancePath:i+\"/muestras/\"+r+\"/origen\",schemaPath:\"#/properties/muestras/items/properties/origen/maxLength\",keyword:\"maxLength\",params:{limit:500},message:\"must NOT have more than 500 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/muestras/\"+r+\"/origen\",schemaPath:\"#/properties/muestras/items/properties/origen/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.tipo!==void 0){let s=m.tipo;if(typeof s==\"string\"){if(y(s)>120){let t={instancePath:i+\"/muestras/\"+r+\"/tipo\",schemaPath:\"#/properties/muestras/items/properties/tipo/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/muestras/\"+r+\"/tipo\",schemaPath:\"#/properties/muestras/items/properties/tipo/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.ubicacion!==void 0){let s=m.ubicacion;if(typeof s==\"string\"){if(y(s)>300){let t={instancePath:i+\"/muestras/\"+r+\"/ubicacion\",schemaPath:\"#/properties/muestras/items/properties/ubicacion/maxLength\",keyword:\"maxLength\",params:{limit:300},message:\"must NOT have more than 300 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/muestras/\"+r+\"/ubicacion\",schemaPath:\"#/properties/muestras/items/properties/ubicacion/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.cantidad!==void 0){let s=m.cantidad;if(!(typeof s==\"number\"&&isFinite(s))&&s!==null){let t={instancePath:i+\"/muestras/\"+r+\"/cantidad\",schemaPath:\"#/properties/muestras/items/properties/cantidad/type\",keyword:\"type\",params:{type:j.properties.muestras.items.properties.cantidad.type},message:\"must be number,null\"};e===null?e=[t]:e.push(t),a++}if(typeof s==\"number\"&&isFinite(s)&&(s<0||isNaN(s))){let t={instancePath:i+\"/muestras/\"+r+\"/cantidad\",schemaPath:\"#/properties/muestras/items/properties/cantidad/minimum\",keyword:\"minimum\",params:{comparison:\">=\",limit:0},message:\"must be >= 0\"};e===null?e=[t]:e.push(t),a++}}if(m.unidad!==void 0){let s=m.unidad;if(!(s===\"\"||s===\"\\xB5L\"||s===\"mL\"||s===\"L\"||s===\"mg\"||s===\"g\"||s===\"unidades\")){let t={instancePath:i+\"/muestras/\"+r+\"/unidad\",schemaPath:\"#/properties/muestras/items/properties/unidad/enum\",keyword:\"enum\",params:{allowedValues:j.properties.muestras.items.properties.unidad.enum},message:\"must be equal to one of the allowed values\"};e===null?e=[t]:e.push(t),a++}}if(m.estado!==void 0){let s=m.estado;if(!(s===\"registrada\"||s===\"disponible\"||s===\"agotada\"||s===\"descartada\")){let t={instancePath:i+\"/muestras/\"+r+\"/estado\",schemaPath:\"#/properties/muestras/items/properties/estado/enum\",keyword:\"enum\",params:{allowedValues:j.properties.muestras.items.properties.estado.enum},message:\"must be equal to one of the allowed values\"};e===null?e=[t]:e.push(t),a++}}if(m.fechaRecepcion!==void 0){let s=m.fechaRecepcion;if(typeof s==\"string\"){if(!z.test(s)){let t={instancePath:i+\"/muestras/\"+r+\"/fechaRecepcion\",schemaPath:\"#/properties/muestras/items/properties/fechaRecepcion/pattern\",keyword:\"pattern\",params:{pattern:\"^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$\"},message:'must match pattern \"^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$\"'};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/muestras/\"+r+\"/fechaRecepcion\",schemaPath:\"#/properties/muestras/items/properties/fechaRecepcion/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.derivadaDe!==void 0){let s=m.derivadaDe;if(typeof s==\"string\"){if(y(s)>120){let t={instancePath:i+\"/muestras/\"+r+\"/derivadaDe\",schemaPath:\"#/properties/muestras/items/properties/derivadaDe/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/muestras/\"+r+\"/derivadaDe\",schemaPath:\"#/properties/muestras/items/properties/derivadaDe/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.derivacion!==void 0){let s=m.derivacion;if(!(s&&typeof s==\"object\"&&!Array.isArray(s))&&s!==null){let t={instancePath:i+\"/muestras/\"+r+\"/derivacion\",schemaPath:\"#/properties/muestras/items/properties/derivacion/type\",keyword:\"type\",params:{type:j.properties.muestras.items.properties.derivacion.type},message:\"must be object,null\"};e===null?e=[t]:e.push(t),a++}}if(m.historial!==void 0){let s=m.historial;if(Array.isArray(s)){if(s.length>1e4){let u={instancePath:i+\"/muestras/\"+r+\"/historial\",schemaPath:\"#/properties/muestras/items/properties/historial/maxItems\",keyword:\"maxItems\",params:{limit:1e4},message:\"must NOT have more than 10000 items\"};e===null?e=[u]:e.push(u),a++}let t=s.length;for(let u=0;u<t;u++){let p=s[u];if(p&&typeof p==\"object\"&&!Array.isArray(p)){if(p.id===void 0){let n={instancePath:i+\"/muestras/\"+r+\"/historial/\"+u,schemaPath:\"#/properties/muestras/items/properties/historial/items/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[n]:e.push(n),a++}if(p.tipo===void 0){let n={instancePath:i+\"/muestras/\"+r+\"/historial/\"+u,schemaPath:\"#/properties/muestras/items/properties/historial/items/required\",keyword:\"required\",params:{missingProperty:\"tipo\"},message:\"must have required property 'tipo'\"};e===null?e=[n]:e.push(n),a++}if(p.fecha===void 0){let n={instancePath:i+\"/muestras/\"+r+\"/historial/\"+u,schemaPath:\"#/properties/muestras/items/properties/historial/items/required\",keyword:\"required\",params:{missingProperty:\"fecha\"},message:\"must have required property 'fecha'\"};e===null?e=[n]:e.push(n),a++}if(p.motivo===void 0){let n={instancePath:i+\"/muestras/\"+r+\"/historial/\"+u,schemaPath:\"#/properties/muestras/items/properties/historial/items/required\",keyword:\"required\",params:{missingProperty:\"motivo\"},message:\"must have required property 'motivo'\"};e===null?e=[n]:e.push(n),a++}if(p.id!==void 0){let n=p.id;if(typeof n==\"string\"){if(y(n)<1){let o={instancePath:i+\"/muestras/\"+r+\"/historial/\"+u+\"/id\",schemaPath:\"#/properties/muestras/items/properties/historial/items/properties/id/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[o]:e.push(o),a++}}else{let o={instancePath:i+\"/muestras/\"+r+\"/historial/\"+u+\"/id\",schemaPath:\"#/properties/muestras/items/properties/historial/items/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[o]:e.push(o),a++}}if(p.tipo!==void 0&&typeof p.tipo!=\"string\"){let n={instancePath:i+\"/muestras/\"+r+\"/historial/\"+u+\"/tipo\",schemaPath:\"#/properties/muestras/items/properties/historial/items/properties/tipo/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[n]:e.push(n),a++}if(p.fecha!==void 0&&typeof p.fecha!=\"string\"){let n={instancePath:i+\"/muestras/\"+r+\"/historial/\"+u+\"/fecha\",schemaPath:\"#/properties/muestras/items/properties/historial/items/properties/fecha/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[n]:e.push(n),a++}if(p.motivo!==void 0&&typeof p.motivo!=\"string\"){let n={instancePath:i+\"/muestras/\"+r+\"/historial/\"+u+\"/motivo\",schemaPath:\"#/properties/muestras/items/properties/historial/items/properties/motivo/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[n]:e.push(n),a++}}else{let n={instancePath:i+\"/muestras/\"+r+\"/historial/\"+u,schemaPath:\"#/properties/muestras/items/properties/historial/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[n]:e.push(n),a++}}}else{let t={instancePath:i+\"/muestras/\"+r+\"/historial\",schemaPath:\"#/properties/muestras/items/properties/historial/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[t]:e.push(t),a++}}}else{let s={instancePath:i+\"/muestras/\"+r,schemaPath:\"#/properties/muestras/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[s]:e.push(s),a++}}}else{let d={instancePath:i+\"/muestras\",schemaPath:\"#/properties/muestras/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[d]:e.push(d),a++}}if(g.referencias!==void 0){let c=g.referencias;if(Array.isArray(c)){if(c.length>1e3){let r={instancePath:i+\"/referencias\",schemaPath:\"#/properties/referencias/maxItems\",keyword:\"maxItems\",params:{limit:1e3},message:\"must NOT have more than 1000 items\"};e===null?e=[r]:e.push(r),a++}let d=c.length;for(let r=0;r<d;r++){let m=c[r];if(m&&typeof m==\"object\"&&!Array.isArray(m)){if(m.id===void 0){let s={instancePath:i+\"/referencias/\"+r,schemaPath:\"#/properties/referencias/items/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[s]:e.push(s),a++}if(m.type===void 0){let s={instancePath:i+\"/referencias/\"+r,schemaPath:\"#/properties/referencias/items/required\",keyword:\"required\",params:{missingProperty:\"type\"},message:\"must have required property 'type'\"};e===null?e=[s]:e.push(s),a++}if(m.title===void 0){let s={instancePath:i+\"/referencias/\"+r,schemaPath:\"#/properties/referencias/items/required\",keyword:\"required\",params:{missingProperty:\"title\"},message:\"must have required property 'title'\"};e===null?e=[s]:e.push(s),a++}if(m.id!==void 0){let s=m.id;if(typeof s!=\"string\"&&!(typeof s==\"number\"&&isFinite(s))){let t={instancePath:i+\"/referencias/\"+r+\"/id\",schemaPath:\"#/properties/referencias/items/properties/id/type\",keyword:\"type\",params:{type:j.properties.referencias.items.properties.id.type},message:\"must be string,number\"};e===null?e=[t]:e.push(t),a++}}if(m.type!==void 0&&typeof m.type!=\"string\"){let s={instancePath:i+\"/referencias/\"+r+\"/type\",schemaPath:\"#/properties/referencias/items/properties/type/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[s]:e.push(s),a++}if(m.title!==void 0&&typeof m.title!=\"string\"){let s={instancePath:i+\"/referencias/\"+r+\"/title\",schemaPath:\"#/properties/referencias/items/properties/title/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[s]:e.push(s),a++}}else{let s={instancePath:i+\"/referencias/\"+r,schemaPath:\"#/properties/referencias/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[s]:e.push(s),a++}}}else{let d={instancePath:i+\"/referencias\",schemaPath:\"#/properties/referencias/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[d]:e.push(d),a++}}if(g.adjuntos!==void 0){let c=g.adjuntos;if(Array.isArray(c)){if(c.length>1e3){let r={instancePath:i+\"/adjuntos\",schemaPath:\"#/properties/adjuntos/maxItems\",keyword:\"maxItems\",params:{limit:1e3},message:\"must NOT have more than 1000 items\"};e===null?e=[r]:e.push(r),a++}let d=c.length;for(let r=0;r<d;r++){let m=c[r];if(m&&typeof m==\"object\"&&!Array.isArray(m)){if(m.id===void 0){let s={instancePath:i+\"/adjuntos/\"+r,schemaPath:\"#/properties/adjuntos/items/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[s]:e.push(s),a++}if(m.nombre===void 0){let s={instancePath:i+\"/adjuntos/\"+r,schemaPath:\"#/properties/adjuntos/items/required\",keyword:\"required\",params:{missingProperty:\"nombre\"},message:\"must have required property 'nombre'\"};e===null?e=[s]:e.push(s),a++}if(m.sha256===void 0){let s={instancePath:i+\"/adjuntos/\"+r,schemaPath:\"#/properties/adjuntos/items/required\",keyword:\"required\",params:{missingProperty:\"sha256\"},message:\"must have required property 'sha256'\"};e===null?e=[s]:e.push(s),a++}if(m.bytes===void 0){let s={instancePath:i+\"/adjuntos/\"+r,schemaPath:\"#/properties/adjuntos/items/required\",keyword:\"required\",params:{missingProperty:\"bytes\"},message:\"must have required property 'bytes'\"};e===null?e=[s]:e.push(s),a++}if(m.id!==void 0){let s=m.id;if(typeof s==\"string\"){if(!T.test(s)){let t={instancePath:i+\"/adjuntos/\"+r+\"/id\",schemaPath:\"#/properties/adjuntos/items/properties/id/pattern\",keyword:\"pattern\",params:{pattern:\"^sha256-[a-f0-9]{64}$\"},message:'must match pattern \"^sha256-[a-f0-9]{64}$\"'};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/adjuntos/\"+r+\"/id\",schemaPath:\"#/properties/adjuntos/items/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.nombre!==void 0&&typeof m.nombre!=\"string\"){let s={instancePath:i+\"/adjuntos/\"+r+\"/nombre\",schemaPath:\"#/properties/adjuntos/items/properties/nombre/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[s]:e.push(s),a++}if(m.sha256!==void 0){let s=m.sha256;if(typeof s==\"string\"){if(!x.test(s)){let t={instancePath:i+\"/adjuntos/\"+r+\"/sha256\",schemaPath:\"#/properties/adjuntos/items/properties/sha256/pattern\",keyword:\"pattern\",params:{pattern:\"^[a-f0-9]{64}$\"},message:'must match pattern \"^[a-f0-9]{64}$\"'};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/adjuntos/\"+r+\"/sha256\",schemaPath:\"#/properties/adjuntos/items/properties/sha256/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.bytes!==void 0){let s=m.bytes;if(!(typeof s==\"number\"&&!(s%1)&&!isNaN(s)&&isFinite(s))){let t={instancePath:i+\"/adjuntos/\"+r+\"/bytes\",schemaPath:\"#/properties/adjuntos/items/properties/bytes/type\",keyword:\"type\",params:{type:\"integer\"},message:\"must be integer\"};e===null?e=[t]:e.push(t),a++}if(typeof s==\"number\"&&isFinite(s)){if(s>10485760||isNaN(s)){let t={instancePath:i+\"/adjuntos/\"+r+\"/bytes\",schemaPath:\"#/properties/adjuntos/items/properties/bytes/maximum\",keyword:\"maximum\",params:{comparison:\"<=\",limit:10485760},message:\"must be <= 10485760\"};e===null?e=[t]:e.push(t),a++}if(s<0||isNaN(s)){let t={instancePath:i+\"/adjuntos/\"+r+\"/bytes\",schemaPath:\"#/properties/adjuntos/items/properties/bytes/minimum\",keyword:\"minimum\",params:{comparison:\">=\",limit:0},message:\"must be >= 0\"};e===null?e=[t]:e.push(t),a++}}}if(m.enlace!==void 0){let s=m.enlace;if(s&&typeof s==\"object\"&&!Array.isArray(s)){if(s.tipo===void 0){let t={instancePath:i+\"/adjuntos/\"+r+\"/enlace\",schemaPath:\"#/properties/adjuntos/items/properties/enlace/required\",keyword:\"required\",params:{missingProperty:\"tipo\"},message:\"must have required property 'tipo'\"};e===null?e=[t]:e.push(t),a++}if(s.id===void 0){let t={instancePath:i+\"/adjuntos/\"+r+\"/enlace\",schemaPath:\"#/properties/adjuntos/items/properties/enlace/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[t]:e.push(t),a++}if(s.tipo!==void 0){let t=s.tipo;if(!(t===\"protocolo\"||t===\"lote\"||t===\"muestra\"||t===\"instrumento\")){let u={instancePath:i+\"/adjuntos/\"+r+\"/enlace/tipo\",schemaPath:\"#/properties/adjuntos/items/properties/enlace/properties/tipo/enum\",keyword:\"enum\",params:{allowedValues:j.properties.adjuntos.items.properties.enlace.properties.tipo.enum},message:\"must be equal to one of the allowed values\"};e===null?e=[u]:e.push(u),a++}}if(s.id!==void 0){let t=s.id;if(typeof t==\"string\"){if(y(t)>120){let u={instancePath:i+\"/adjuntos/\"+r+\"/enlace/id\",schemaPath:\"#/properties/adjuntos/items/properties/enlace/properties/id/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[u]:e.push(u),a++}if(y(t)<1){let u={instancePath:i+\"/adjuntos/\"+r+\"/enlace/id\",schemaPath:\"#/properties/adjuntos/items/properties/enlace/properties/id/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[u]:e.push(u),a++}}else{let u={instancePath:i+\"/adjuntos/\"+r+\"/enlace/id\",schemaPath:\"#/properties/adjuntos/items/properties/enlace/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[u]:e.push(u),a++}}}else{let t={instancePath:i+\"/adjuntos/\"+r+\"/enlace\",schemaPath:\"#/properties/adjuntos/items/properties/enlace/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[t]:e.push(t),a++}}if(m.tipo!==void 0){let s=m.tipo;if(typeof s==\"string\"){if(y(s)>100){let t={instancePath:i+\"/adjuntos/\"+r+\"/tipo\",schemaPath:\"#/properties/adjuntos/items/properties/tipo/maxLength\",keyword:\"maxLength\",params:{limit:100},message:\"must NOT have more than 100 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/adjuntos/\"+r+\"/tipo\",schemaPath:\"#/properties/adjuntos/items/properties/tipo/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}}else{let s={instancePath:i+\"/adjuntos/\"+r,schemaPath:\"#/properties/adjuntos/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[s]:e.push(s),a++}}}else{let d={instancePath:i+\"/adjuntos\",schemaPath:\"#/properties/adjuntos/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[d]:e.push(d),a++}}if(g.analisis!==void 0){let c=g.analisis;if(Array.isArray(c)){if(c.length>100){let r={instancePath:i+\"/analisis\",schemaPath:\"#/properties/analisis/maxItems\",keyword:\"maxItems\",params:{limit:100},message:\"must NOT have more than 100 items\"};e===null?e=[r]:e.push(r),a++}let d=c.length;for(let r=0;r<d;r++){let m=c[r];if(m&&typeof m==\"object\"&&!Array.isArray(m)){if(m.id!==void 0){let s=m.id;if(typeof s==\"string\"){if(y(s)>120){let t={instancePath:i+\"/analisis/\"+r+\"/id\",schemaPath:\"#/properties/analisis/items/properties/id/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[t]:e.push(t),a++}if(y(s)<1){let t={instancePath:i+\"/analisis/\"+r+\"/id\",schemaPath:\"#/properties/analisis/items/properties/id/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/analisis/\"+r+\"/id\",schemaPath:\"#/properties/analisis/items/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.tipo!==void 0&&typeof m.tipo!=\"string\"){let s={instancePath:i+\"/analisis/\"+r+\"/tipo\",schemaPath:\"#/properties/analisis/items/properties/tipo/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[s]:e.push(s),a++}if(m.fecha!==void 0&&typeof m.fecha!=\"string\"){let s={instancePath:i+\"/analisis/\"+r+\"/fecha\",schemaPath:\"#/properties/analisis/items/properties/fecha/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[s]:e.push(s),a++}}else{let s={instancePath:i+\"/analisis/\"+r,schemaPath:\"#/properties/analisis/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[s]:e.push(s),a++}}}else{let d={instancePath:i+\"/analisis\",schemaPath:\"#/properties/analisis/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[d]:e.push(d),a++}}if(g.secuencias!==void 0){let c=g.secuencias;if(Array.isArray(c)){if(c.length>200){let r={instancePath:i+\"/secuencias\",schemaPath:\"#/properties/secuencias/maxItems\",keyword:\"maxItems\",params:{limit:200},message:\"must NOT have more than 200 items\"};e===null?e=[r]:e.push(r),a++}let d=c.length;for(let r=0;r<d;r++){let m=c[r];if(m&&typeof m==\"object\"&&!Array.isArray(m)){if(m.id===void 0){let s={instancePath:i+\"/secuencias/\"+r,schemaPath:\"#/properties/secuencias/items/required\",keyword:\"required\",params:{missingProperty:\"id\"},message:\"must have required property 'id'\"};e===null?e=[s]:e.push(s),a++}if(m.tipo===void 0){let s={instancePath:i+\"/secuencias/\"+r,schemaPath:\"#/properties/secuencias/items/required\",keyword:\"required\",params:{missingProperty:\"tipo\"},message:\"must have required property 'tipo'\"};e===null?e=[s]:e.push(s),a++}if(m.secuencia===void 0){let s={instancePath:i+\"/secuencias/\"+r,schemaPath:\"#/properties/secuencias/items/required\",keyword:\"required\",params:{missingProperty:\"secuencia\"},message:\"must have required property 'secuencia'\"};e===null?e=[s]:e.push(s),a++}if(m.sha256===void 0){let s={instancePath:i+\"/secuencias/\"+r,schemaPath:\"#/properties/secuencias/items/required\",keyword:\"required\",params:{missingProperty:\"sha256\"},message:\"must have required property 'sha256'\"};e===null?e=[s]:e.push(s),a++}if(m.cabecera===void 0){let s={instancePath:i+\"/secuencias/\"+r,schemaPath:\"#/properties/secuencias/items/required\",keyword:\"required\",params:{missingProperty:\"cabecera\"},message:\"must have required property 'cabecera'\"};e===null?e=[s]:e.push(s),a++}if(m.identificador===void 0){let s={instancePath:i+\"/secuencias/\"+r,schemaPath:\"#/properties/secuencias/items/required\",keyword:\"required\",params:{missingProperty:\"identificador\"},message:\"must have required property 'identificador'\"};e===null?e=[s]:e.push(s),a++}if(m.id!==void 0){let s=m.id;if(typeof s==\"string\"){if(y(s)>120){let t={instancePath:i+\"/secuencias/\"+r+\"/id\",schemaPath:\"#/properties/secuencias/items/properties/id/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[t]:e.push(t),a++}if(y(s)<1){let t={instancePath:i+\"/secuencias/\"+r+\"/id\",schemaPath:\"#/properties/secuencias/items/properties/id/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/secuencias/\"+r+\"/id\",schemaPath:\"#/properties/secuencias/items/properties/id/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.identificador!==void 0){let s=m.identificador;if(typeof s==\"string\"){if(y(s)>2e3){let t={instancePath:i+\"/secuencias/\"+r+\"/identificador\",schemaPath:\"#/properties/secuencias/items/properties/identificador/maxLength\",keyword:\"maxLength\",params:{limit:2e3},message:\"must NOT have more than 2000 characters\"};e===null?e=[t]:e.push(t),a++}if(y(s)<1){let t={instancePath:i+\"/secuencias/\"+r+\"/identificador\",schemaPath:\"#/properties/secuencias/items/properties/identificador/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/secuencias/\"+r+\"/identificador\",schemaPath:\"#/properties/secuencias/items/properties/identificador/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.cabecera!==void 0){let s=m.cabecera;if(typeof s==\"string\"){if(y(s)>2e3){let t={instancePath:i+\"/secuencias/\"+r+\"/cabecera\",schemaPath:\"#/properties/secuencias/items/properties/cabecera/maxLength\",keyword:\"maxLength\",params:{limit:2e3},message:\"must NOT have more than 2000 characters\"};e===null?e=[t]:e.push(t),a++}if(y(s)<1){let t={instancePath:i+\"/secuencias/\"+r+\"/cabecera\",schemaPath:\"#/properties/secuencias/items/properties/cabecera/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/secuencias/\"+r+\"/cabecera\",schemaPath:\"#/properties/secuencias/items/properties/cabecera/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.tipo!==void 0){let s=m.tipo;if(!(s===\"ADN\"||s===\"ARN\"||s===\"proteina\")){let t={instancePath:i+\"/secuencias/\"+r+\"/tipo\",schemaPath:\"#/properties/secuencias/items/properties/tipo/enum\",keyword:\"enum\",params:{allowedValues:j.properties.secuencias.items.properties.tipo.enum},message:\"must be equal to one of the allowed values\"};e===null?e=[t]:e.push(t),a++}}if(m.secuencia!==void 0){let s=m.secuencia;if(typeof s==\"string\"){if(y(s)>1e6){let t={instancePath:i+\"/secuencias/\"+r+\"/secuencia\",schemaPath:\"#/properties/secuencias/items/properties/secuencia/maxLength\",keyword:\"maxLength\",params:{limit:1e6},message:\"must NOT have more than 1000000 characters\"};e===null?e=[t]:e.push(t),a++}if(y(s)<1){let t={instancePath:i+\"/secuencias/\"+r+\"/secuencia\",schemaPath:\"#/properties/secuencias/items/properties/secuencia/minLength\",keyword:\"minLength\",params:{limit:1},message:\"must NOT have fewer than 1 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/secuencias/\"+r+\"/secuencia\",schemaPath:\"#/properties/secuencias/items/properties/secuencia/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.sha256!==void 0){let s=m.sha256;if(typeof s==\"string\"){if(!x.test(s)){let t={instancePath:i+\"/secuencias/\"+r+\"/sha256\",schemaPath:\"#/properties/secuencias/items/properties/sha256/pattern\",keyword:\"pattern\",params:{pattern:\"^[a-f0-9]{64}$\"},message:'must match pattern \"^[a-f0-9]{64}$\"'};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/secuencias/\"+r+\"/sha256\",schemaPath:\"#/properties/secuencias/items/properties/sha256/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.muestraId!==void 0){let s=m.muestraId;if(typeof s==\"string\"){if(y(s)>120){let t={instancePath:i+\"/secuencias/\"+r+\"/muestraId\",schemaPath:\"#/properties/secuencias/items/properties/muestraId/maxLength\",keyword:\"maxLength\",params:{limit:120},message:\"must NOT have more than 120 characters\"};e===null?e=[t]:e.push(t),a++}}else{let t={instancePath:i+\"/secuencias/\"+r+\"/muestraId\",schemaPath:\"#/properties/secuencias/items/properties/muestraId/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[t]:e.push(t),a++}}if(m.origen!==void 0){let s=m.origen;if(!(s&&typeof s==\"object\"&&!Array.isArray(s))){let t={instancePath:i+\"/secuencias/\"+r+\"/origen\",schemaPath:\"#/properties/secuencias/items/properties/origen/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[t]:e.push(t),a++}}if(m.notas!==void 0&&typeof m.notas!=\"string\"){let s={instancePath:i+\"/secuencias/\"+r+\"/notas\",schemaPath:\"#/properties/secuencias/items/properties/notas/type\",keyword:\"type\",params:{type:\"string\"},message:\"must be string\"};e===null?e=[s]:e.push(s),a++}}else{let s={instancePath:i+\"/secuencias/\"+r,schemaPath:\"#/properties/secuencias/items/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[s]:e.push(s),a++}}}else{let d={instancePath:i+\"/secuencias\",schemaPath:\"#/properties/secuencias/type\",keyword:\"type\",params:{type:\"array\"},message:\"must be array\"};e===null?e=[d]:e.push(d),a++}}if(g.flujo!==void 0){let c=g.flujo;if(c&&typeof c==\"object\"&&!Array.isArray(c)){if(c.modo===void 0){let d={instancePath:i+\"/flujo\",schemaPath:\"#/properties/flujo/required\",keyword:\"required\",params:{missingProperty:\"modo\"},message:\"must have required property 'modo'\"};e===null?e=[d]:e.push(d),a++}if(c.modo!==void 0){let d=c.modo;if(!(d===\"libre\"||d===\"secuencial\"||d===\"dependencias\")){let r={instancePath:i+\"/flujo/modo\",schemaPath:\"#/properties/flujo/properties/modo/enum\",keyword:\"enum\",params:{allowedValues:j.properties.flujo.properties.modo.enum},message:\"must be equal to one of the allowed values\"};e===null?e=[r]:e.push(r),a++}}}else{let d={instancePath:i+\"/flujo\",schemaPath:\"#/properties/flujo/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[d]:e.push(d),a++}}}else{let c={instancePath:i,schemaPath:\"#/type\",keyword:\"type\",params:{type:\"object\"},message:\"must be object\"};e===null?e=[c]:e.push(c),a++}return L.errors=e,a===0}});return M();})();\n\n",
  "package.json": "{\n  \"name\": \"@erlen/methods\",\n  \"version\": \"0.4.0\",\n  \"description\": \"Protocolos de laboratorio reproducibles para cualquier disciplina: reactivos escalados por lote con su seguridad, pasos con parámetros, lotes comparables, calculadoras y la sección de métodos redactada, en el navegador\",\n  \"license\": \"AGPL-3.0-only\",\n  \"type\": \"module\",\n  \"private\": true,\n  \"engines\": {\n    \"node\": \">=22\"\n  },\n  \"scripts\": {\n    \"build\": \"node herramientas/build.mjs\",\n    \"test\": \"node --test tests/*.test.mjs\",\n    \"start\": \"node herramientas/serve.mjs\",\n    \"package\": \"npm run build && npm test && node herramientas/minificar.mjs && python3 herramientas/package-release.py && node herramientas/contrato.mjs\",\n    \"check\": \"node herramientas/contrato.mjs\",\n    \"contrato\": \"node herramientas/contrato.mjs\",\n    \"test:browser\": \"node herramientas/verificar-navegador.mjs\",\n    \"test:browser:ampliacion\": \"node herramientas/verificar-ampliacion.mjs\",\n    \"test:browser:placas\": \"node herramientas/verificar-placas.mjs\",\n    \"test:source\": \"node herramientas/verificar-fuente.mjs\",\n    \"test:browser:biologia\": \"node herramientas/verificar-biologia.mjs\",\n    \"test:browser:flujo\": \"node herramientas/verificar-flujo.mjs\",\n    \"test:browser:instrumentos\": \"node herramientas/verificar-instrumentos.mjs\",\n    \"test:browser:cambios\": \"node herramientas/verificar-cambios.mjs\",\n    \"test:browser:ciencia\": \"node herramientas/verificar-ciencia.mjs\",\n    \"test:browser:preparacion\": \"node herramientas/verificar-preparacion.mjs\",\n    \"test:browser:cuantificacion\": \"node herramientas/verificar-cuantificacion.mjs\"\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/erlen-frontier-ops/erlen-methods.git\"\n  },\n  \"devDependencies\": {\n    \"@erlen/contracts\": \"0.1.0\",\n    \"ajv\": \"8.20.0\",\n    \"axe-core\": \"4.13.0\",\n    \"esbuild\": \"^0.28.2\",\n    \"fake-indexeddb\": \"^6.2.5\",\n    \"jsdom\": \"^30.1.1\",\n    \"playwright\": \"1.63.0\"\n  },\n  \"erlenAssets\": [\n    {\n      \"package\": \"@erlen/design\",\n      \"source\": \"revisions/18a28cde5ade32cdfff6\",\n      \"destination\": \"src/diseno\"\n    },\n    {\n      \"package\": \"@erlen/contracts\",\n      \"source\": \"contratos/erlen-methods-protocolo-v2.schema.json\",\n      \"destination\": \"src/modelo/protocolo-v2.schema.json\"\n    }\n  ],\n  \"dependencies\": {\n    \"@citation-js/core\": \"0.9.0\",\n    \"@citation-js/plugin-bibtex\": \"0.9.0\",\n    \"@citation-js/plugin-ris\": \"0.9.0\",\n    \"@erlen/design\": \"2.5.3\",\n    \"dexie\": \"4.4.6\",\n    \"docx\": \"9.8.1\",\n    \"echarts\": \"6.1.0\",\n    \"fflate\": \"0.8.3\",\n    \"fuse.js\": \"7.1.0\",\n    \"katex\": \"0.18.9\",\n    \"papaparse\": \"5.5.3\",\n    \"simple-statistics\": \"7.12.1\",\n    \"smiles-drawer\": \"2.4.1\"\n  }\n}\n",
  "package-lock.json": "{\n  \"name\": \"@erlen/methods\",\n  \"version\": \"0.4.0\",\n  \"lockfileVersion\": 3,\n  \"requires\": true,\n  \"packages\": {\n    \"\": {\n      \"name\": \"@erlen/methods\",\n      \"version\": \"0.4.0\",\n      \"license\": \"AGPL-3.0-only\",\n      \"dependencies\": {\n        \"@citation-js/core\": \"0.9.0\",\n        \"@citation-js/plugin-bibtex\": \"0.9.0\",\n        \"@citation-js/plugin-ris\": \"0.9.0\",\n        \"dexie\": \"4.4.6\",\n        \"docx\": \"9.8.1\",\n        \"echarts\": \"6.1.0\",\n        \"fflate\": \"0.8.3\",\n        \"fuse.js\": \"7.1.0\",\n        \"katex\": \"0.18.9\",\n        \"papaparse\": \"5.5.3\",\n        \"simple-statistics\": \"7.12.1\",\n        \"smiles-drawer\": \"2.4.1\"\n      },\n      \"devDependencies\": {\n        \"ajv\": \"8.20.0\",\n        \"axe-core\": \"4.13.0\",\n        \"esbuild\": \"^0.28.2\",\n        \"fake-indexeddb\": \"^6.2.5\",\n        \"jsdom\": \"^30.1.1\",\n        \"playwright\": \"1.63.0\"\n      },\n      \"engines\": {\n        \"node\": \">=22\"\n      }\n    },\n    \"node_modules/@asamuzakjp/css-color\": {\n      \"version\": \"7.0.1\",\n      \"resolved\": \"https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-7.0.1.tgz\",\n      \"integrity\": \"sha512-C9duntabagkBZ1LebM7FKmphR4Q1pBclLxVbZETQV0akkFjV0ooFxo8FlvAQyKj9F6l8rEnmidgcTlpyxFYizg==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"@csstools/css-calc\": \"^3.4.0\",\n        \"@csstools/css-color-parser\": \"^4.2.3\",\n        \"@csstools/css-parser-algorithms\": \"^4.0.0\",\n        \"@csstools/css-tokenizer\": \"^4.0.1\",\n        \"lru-cache\": \"^11.5.3\"\n      },\n      \"engines\": {\n        \"node\": \"^22.22.2 || ^24.15.0 || >=26.0.0\"\n      }\n    },\n    \"node_modules/@asamuzakjp/dom-selector\": {\n      \"version\": \"9.2.1\",\n      \"resolved\": \"https://registry.npmjs.org/@asamuzakjp/dom-selector/-/dom-selector-9.2.1.tgz\",\n      \"integrity\": \"sha512-NT4s3yZLjovPpliRpTvdsdzyPjqRqiCZj9MxnarBihbaY5MbAG7DWAJcrLlhmC7xKTNCXsTELcqB8YsqpLnUFQ==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"bidi-js\": \"^1.1.0\",\n        \"css-tree\": \"^3.2.1\",\n        \"is-potential-custom-element-name\": \"^1.0.1\",\n        \"lru-cache\": \"^11.5.3\"\n      },\n      \"engines\": {\n        \"node\": \"^22.22.2 || ^24.15.0 || >=26.0.0\"\n      }\n    },\n    \"node_modules/@bramus/specificity\": {\n      \"version\": \"2.4.2\",\n      \"resolved\": \"https://registry.npmjs.org/@bramus/specificity/-/specificity-2.4.2.tgz\",\n      \"integrity\": \"sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"css-tree\": \"^3.0.0\"\n      },\n      \"bin\": {\n        \"specificity\": \"bin/cli.js\"\n      }\n    },\n    \"node_modules/@citation-js/core\": {\n      \"version\": \"0.9.0\",\n      \"resolved\": \"https://registry.npmjs.org/@citation-js/core/-/core-0.9.0.tgz\",\n      \"integrity\": \"sha512-IIIfDFirx8B7eYiYIg412If3WVJAefJUS7IsAnkW3YSuThHK4fW9Ibog6wCqmT6pfXW1VM9wfGPFvO2J5k859A==\",\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"@citation-js/date\": \"^0.5.0\",\n        \"@citation-js/name\": \"^0.4.2\",\n        \"sync-fetch-undici\": \"^0.7.1\"\n      },\n      \"engines\": {\n        \"node\": \">=22.12.0\"\n      }\n    },\n    \"node_modules/@citation-js/core/node_modules/@citation-js/date\": {\n      \"version\": \"0.5.1\",\n      \"resolved\": \"https://registry.npmjs.org/@citation-js/date/-/date-0.5.1.tgz\",\n      \"integrity\": \"sha512-1iDKAZ4ie48PVhovsOXQ+C6o55dWJloXqtznnnKy6CltJBQLIuLLuUqa8zlIvma0ZigjVjgDUhnVaNU1MErtZw==\",\n      \"license\": \"MIT\",\n      \"engines\": {\n        \"node\": \">=10.0.0\"\n      }\n    },\n    \"node_modules/@citation-js/core/node_modules/@citation-js/name\": {\n      \"version\": \"0.4.2\",\n      \"resolved\": \"https://registry.npmjs.org/@citation-js/name/-/name-0.4.2.tgz\",\n      \"integrity\": \"sha512-brSPsjs2fOVzSnARLKu0qncn6suWjHVQtrqSUrnqyaRH95r/Ad4wPF5EsoWr+Dx8HzkCGb/ogmoAzfCsqlTwTQ==\",\n      \"license\": \"MIT\",\n      \"engines\": {\n        \"node\": \">=6\"\n      }\n    },\n    \"node_modules/@citation-js/core/node_modules/sync-fetch-undici\": {\n      \"version\": \"0.7.1\",\n      \"resolved\": \"https://registry.npmjs.org/sync-fetch-undici/-/sync-fetch-undici-0.7.1.tgz\",\n      \"integrity\": \"sha512-t/rJBTRr3/WCs/04MnLStgGGFac1Ge6WDugNxO+KoMqtfmWENMPJbtAmGqIWnwsXi+B7Uh0P0ea2QRkKIZTIPg==\",\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"whatwg-mimetype\": \"^5.0.0\"\n      },\n      \"engines\": {\n        \"node\": \">=22.12.0\"\n      }\n    },\n    \"node_modules/@citation-js/plugin-bibtex\": {\n      \"version\": \"0.9.0\",\n      \"resolved\": \"https://registry.npmjs.org/@citation-js/plugin-bibtex/-/plugin-bibtex-0.9.0.tgz\",\n      \"integrity\": \"sha512-9n8EVP/kq+v7VuoWVI+p8SRE3KikQYd2c78NSRq9btC4b3XzuBA3qFI3uF6xyxbNLPtY7+Y4BQDayta2yrl1zQ==\",\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"@citation-js/date\": \"^0.5.0\",\n        \"@citation-js/name\": \"^0.4.2\",\n        \"moo\": \"^0.5.1\"\n      },\n      \"engines\": {\n        \"node\": \">=22.12.0\"\n      },\n      \"peerDependencies\": {\n        \"@citation-js/core\": \"^0.9.0\"\n      }\n    },\n    \"node_modules/@citation-js/plugin-bibtex/node_modules/@citation-js/date\": {\n      \"version\": \"0.5.1\",\n      \"resolved\": \"https://registry.npmjs.org/@citation-js/date/-/date-0.5.1.tgz\",\n      \"integrity\": \"sha512-1iDKAZ4ie48PVhovsOXQ+C6o55dWJloXqtznnnKy6CltJBQLIuLLuUqa8zlIvma0ZigjVjgDUhnVaNU1MErtZw==\",\n      \"license\": \"MIT\",\n      \"engines\": {\n        \"node\": \">=10.0.0\"\n      }\n    },\n    \"node_modules/@citation-js/plugin-bibtex/node_modules/@citation-js/name\": {\n      \"version\": \"0.4.2\",\n      \"resolved\": \"https://registry.npmjs.org/@citation-js/name/-/name-0.4.2.tgz\",\n      \"integrity\": \"sha512-brSPsjs2fOVzSnARLKu0qncn6suWjHVQtrqSUrnqyaRH95r/Ad4wPF5EsoWr+Dx8HzkCGb/ogmoAzfCsqlTwTQ==\",\n      \"license\": \"MIT\",\n      \"engines\": {\n        \"node\": \">=6\"\n      }\n    },\n    \"node_modules/@citation-js/plugin-bibtex/node_modules/moo\": {\n      \"version\": \"0.5.3\",\n      \"resolved\": \"https://registry.npmjs.org/moo/-/moo-0.5.3.tgz\",\n      \"integrity\": \"sha512-m2fmM2dDm7GZQsY7KK2cme8agi+AAljILjQnof7p1ZMDe6dQ4bdnSMx0cPppudoeNv5hEFQirN6u+O4fDE0IWA==\",\n      \"license\": \"BSD-3-Clause\"\n    },\n    \"node_modules/@citation-js/plugin-ris\": {\n      \"version\": \"0.9.0\",\n      \"resolved\": \"https://registry.npmjs.org/@citation-js/plugin-ris/-/plugin-ris-0.9.0.tgz\",\n      \"integrity\": \"sha512-cqnZtV5C260xFYnwzu5fnrH/RDOUPuCLH9JOtkIgwUZvGtSbsBJ3sDrBtSXoH1h3/r2Aa1lCiWanVqv6jDRegQ==\",\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"@citation-js/date\": \"^0.5.0\",\n        \"@citation-js/name\": \"^0.4.2\"\n      },\n      \"engines\": {\n        \"node\": \">=22.12.0\"\n      },\n      \"peerDependencies\": {\n        \"@citation-js/core\": \"^0.9.0\"\n      }\n    },\n    \"node_modules/@citation-js/plugin-ris/node_modules/@citation-js/date\": {\n      \"version\": \"0.5.1\",\n      \"resolved\": \"https://registry.npmjs.org/@citation-js/date/-/date-0.5.1.tgz\",\n      \"integrity\": \"sha512-1iDKAZ4ie48PVhovsOXQ+C6o55dWJloXqtznnnKy6CltJBQLIuLLuUqa8zlIvma0ZigjVjgDUhnVaNU1MErtZw==\",\n      \"license\": \"MIT\",\n      \"engines\": {\n        \"node\": \">=10.0.0\"\n      }\n    },\n    \"node_modules/@citation-js/plugin-ris/node_modules/@citation-js/name\": {\n      \"version\": \"0.4.2\",\n      \"resolved\": \"https://registry.npmjs.org/@citation-js/name/-/name-0.4.2.tgz\",\n      \"integrity\": \"sha512-brSPsjs2fOVzSnARLKu0qncn6suWjHVQtrqSUrnqyaRH95r/Ad4wPF5EsoWr+Dx8HzkCGb/ogmoAzfCsqlTwTQ==\",\n      \"license\": \"MIT\",\n      \"engines\": {\n        \"node\": \">=6\"\n      }\n    },\n    \"node_modules/@csstools/color-helpers\": {\n      \"version\": \"6.1.1\",\n      \"resolved\": \"https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.1.1.tgz\",\n      \"integrity\": \"sha512-gLNsunvwf3mCi5u5o46/Z/JcJMnhbHSaZ69rkgPzNM3J4s8hWwpPUQB6/tt0EDFyCiWzxANlx+2LJwpYj4zS1w==\",\n      \"dev\": true,\n      \"funding\": [\n        {\n          \"type\": \"github\",\n          \"url\": \"https://github.com/sponsors/csstools\"\n        },\n        {\n          \"type\": \"opencollective\",\n          \"url\": \"https://opencollective.com/csstools\"\n        }\n      ],\n      \"license\": \"MIT-0\",\n      \"engines\": {\n        \"node\": \">=20.19.0\"\n      }\n    },\n    \"node_modules/@csstools/css-calc\": {\n      \"version\": \"3.4.0\",\n      \"resolved\": \"https://registry.npmjs.org/@csstools/css-calc/-/css-calc-3.4.0.tgz\",\n      \"integrity\": \"sha512-XQKj5B7QiZcHiegCOCAzcAOJdhGgWOHbbu62h5e5mkHnn8lWcfiJhllkqWmxu5zWR9jucPHuo1iTB56P033hcg==\",\n      \"dev\": true,\n      \"funding\": [\n        {\n          \"type\": \"github\",\n          \"url\": \"https://github.com/sponsors/csstools\"\n        },\n        {\n          \"type\": \"opencollective\",\n          \"url\": \"https://opencollective.com/csstools\"\n        }\n      ],\n      \"license\": \"MIT\",\n      \"engines\": {\n        \"node\": \">=20.19.0\"\n      },\n      \"peerDependencies\": {\n        \"@csstools/css-parser-algorithms\": \"^4.0.0\",\n        \"@csstools/css-tokenizer\": \"^4.0.0\"\n      }\n    },\n    \"node_modules/@csstools/css-color-parser\": {\n      \"version\": \"4.2.3\",\n      \"resolved\": \"https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-4.2.3.tgz\",\n      \"integrity\": \"sha512-y4LpL+lmpuyKDiEFq2PnZUVFdAjsoB/qQJod79yLNokXyW7jewi+/WJ69EfItj8A2unWtxXnGjw6LYXgXu5ZjA==\",\n      \"dev\": true,\n      \"funding\": [\n        {\n          \"type\": \"github\",\n          \"url\": \"https://github.com/sponsors/csstools\"\n        },\n        {\n          \"type\": \"opencollective\",\n          \"url\": \"https://opencollective.com/csstools\"\n        }\n      ],\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"@csstools/color-helpers\": \"^6.1.1\",\n        \"@csstools/css-calc\": \"^3.4.0\"\n      },\n      \"engines\": {\n        \"node\": \">=20.19.0\"\n      },\n      \"peerDependencies\": {\n        \"@csstools/css-parser-algorithms\": \"^4.0.0\",\n        \"@csstools/css-tokenizer\": \"^4.0.0\"\n      }\n    },\n    \"node_modules/@csstools/css-parser-algorithms\": {\n      \"version\": \"4.0.0\",\n      \"resolved\": \"https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.0.tgz\",\n      \"integrity\": \"sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==\",\n      \"dev\": true,\n      \"funding\": [\n        {\n          \"type\": \"github\",\n          \"url\": \"https://github.com/sponsors/csstools\"\n        },\n        {\n          \"type\": \"opencollective\",\n          \"url\": \"https://opencollective.com/csstools\"\n        }\n      ],\n      \"license\": \"MIT\",\n      \"engines\": {\n        \"node\": \">=20.19.0\"\n      },\n      \"peerDependencies\": {\n        \"@csstools/css-tokenizer\": \"^4.0.0\"\n      }\n    },\n    \"node_modules/@csstools/css-syntax-patches-for-csstree\": {\n      \"version\": \"1.1.14\",\n      \"resolved\": \"https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.14.tgz\",\n      \"integrity\": \"sha512-HpbVXyrofRXpHpgkNIjU/3EWR4WJvOkO3emNK/L6X/mTJU7bGUI3AkkpoTNXznQLp0KRjLHELTGeKI5dIkI9JQ==\",\n      \"dev\": true,\n      \"funding\": [\n        {\n          \"type\": \"github\",\n          \"url\": \"https://github.com/sponsors/csstools\"\n        },\n        {\n          \"type\": \"opencollective\",\n          \"url\": \"https://opencollective.com/csstools\"\n        }\n      ],\n      \"license\": \"MIT-0\",\n      \"peerDependencies\": {\n        \"css-tree\": \"^3.2.1\"\n      },\n      \"peerDependenciesMeta\": {\n        \"css-tree\": {\n          \"optional\": true\n        }\n      }\n    },\n    \"node_modules/@csstools/css-tokenizer\": {\n      \"version\": \"4.0.1\",\n      \"resolved\": \"https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-4.0.1.tgz\",\n      \"integrity\": \"sha512-bPlN9S9O1A0euCpEWE4qnvB5YDuyYVsUTrxSgmAM1Is0j4tICHoVyOVAXfWMP/kS9ZrjvyIXWV2PmomiAXXqOw==\",\n      \"dev\": true,\n      \"funding\": [\n        {\n          \"type\": \"github\",\n          \"url\": \"https://github.com/sponsors/csstools\"\n        },\n        {\n          \"type\": \"opencollective\",\n          \"url\": \"https://opencollective.com/csstools\"\n        }\n      ],\n      \"license\": \"MIT\",\n      \"engines\": {\n        \"node\": \">=20.19.0\"\n      }\n    },\n    \"node_modules/@exodus/bytes\": {\n      \"version\": \"1.16.0\",\n      \"resolved\": \"https://registry.npmjs.org/@exodus/bytes/-/bytes-1.16.0.tgz\",\n      \"integrity\": \"sha512-IcpW84uEn3N7ETtNZMlxKhfl6Pec8rUNGOTBtWbK1FKhJxIFAptZyVrvVRVBimAJxJCgc3PxepxkdWWG4DVzfA==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"engines\": {\n        \"node\": \"^20.19.0 || ^22.12.0 || >=24.0.0\"\n      },\n      \"peerDependencies\": {\n        \"@noble/hashes\": \"^1.8.0 || ^2.0.0\"\n      },\n      \"peerDependenciesMeta\": {\n        \"@noble/hashes\": {\n          \"optional\": true\n        }\n      }\n    },\n    \"node_modules/ajv\": {\n      \"version\": \"8.20.0\",\n      \"resolved\": \"https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz\",\n      \"integrity\": \"sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"fast-deep-equal\": \"^3.1.3\",\n        \"fast-uri\": \"^3.0.1\",\n        \"json-schema-traverse\": \"^1.0.0\",\n        \"require-from-string\": \"^2.0.2\"\n      },\n      \"funding\": {\n        \"type\": \"github\",\n        \"url\": \"https://github.com/sponsors/epoberezkin\"\n      }\n    },\n    \"node_modules/ajv/node_modules/fast-deep-equal\": {\n      \"version\": \"3.1.3\",\n      \"resolved\": \"https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz\",\n      \"integrity\": \"sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==\",\n      \"dev\": true,\n      \"license\": \"MIT\"\n    },\n    \"node_modules/ajv/node_modules/fast-uri\": {\n      \"version\": \"3.1.8\",\n      \"resolved\": \"https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.8.tgz\",\n      \"integrity\": \"sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==\",\n      \"dev\": true,\n      \"funding\": [\n        {\n          \"type\": \"github\",\n          \"url\": \"https://github.com/sponsors/fastify\"\n        },\n        {\n          \"type\": \"opencollective\",\n          \"url\": \"https://opencollective.com/fastify\"\n        }\n      ],\n      \"license\": \"BSD-3-Clause\"\n    },\n    \"node_modules/ajv/node_modules/json-schema-traverse\": {\n      \"version\": \"1.0.0\",\n      \"resolved\": \"https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz\",\n      \"integrity\": \"sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==\",\n      \"dev\": true,\n      \"license\": \"MIT\"\n    },\n    \"node_modules/axe-core\": {\n      \"version\": \"4.13.0\",\n      \"resolved\": \"https://registry.npmjs.org/axe-core/-/axe-core-4.13.0.tgz\",\n      \"integrity\": \"sha512-UzGt8zg7Ny8djbYMhxl2zuEevVa7r2gJjYY5Lwr1xM7+XU2nd6CkIWFTVcCIbAP63vSz71NaVyyuSk9lHKcy0A==\",\n      \"dev\": true,\n      \"license\": \"MPL-2.0\",\n      \"engines\": {\n        \"node\": \">=4\"\n      }\n    },\n    \"node_modules/bidi-js\": {\n      \"version\": \"1.1.0\",\n      \"resolved\": \"https://registry.npmjs.org/bidi-js/-/bidi-js-1.1.0.tgz\",\n      \"integrity\": \"sha512-fX1Onk0tdVPC7obPWB5EbJ1z7NVhLq4m2xZLq2YXBkxzMXIGRpNMU88n0EPgWseKl12J7zXs7qrDxPK4sRs2fg==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"require-from-string\": \"^2.0.2\"\n      }\n    },\n    \"node_modules/css-tree\": {\n      \"version\": \"3.2.1\",\n      \"resolved\": \"https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz\",\n      \"integrity\": \"sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"mdn-data\": \"2.27.1\",\n        \"source-map-js\": \"^1.2.1\"\n      },\n      \"engines\": {\n        \"node\": \"^10 || ^12.20.0 || ^14.13.0 || >=15.0.0\"\n      }\n    },\n    \"node_modules/data-urls\": {\n      \"version\": \"7.0.0\",\n      \"resolved\": \"https://registry.npmjs.org/data-urls/-/data-urls-7.0.0.tgz\",\n      \"integrity\": \"sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"whatwg-mimetype\": \"^5.0.0\",\n        \"whatwg-url\": \"^16.0.0\"\n      },\n      \"engines\": {\n        \"node\": \"^20.19.0 || ^22.12.0 || >=24.0.0\"\n      }\n    },\n    \"node_modules/data-urls/node_modules/whatwg-url\": {\n      \"version\": \"16.0.1\",\n      \"resolved\": \"https://registry.npmjs.org/whatwg-url/-/whatwg-url-16.0.1.tgz\",\n      \"integrity\": \"sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"@exodus/bytes\": \"^1.11.0\",\n        \"tr46\": \"^6.0.0\",\n        \"webidl-conversions\": \"^8.0.1\"\n      },\n      \"engines\": {\n        \"node\": \"^20.19.0 || ^22.12.0 || >=24.0.0\"\n      }\n    },\n    \"node_modules/decimal.js\": {\n      \"version\": \"10.6.0\",\n      \"resolved\": \"https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz\",\n      \"integrity\": \"sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==\",\n      \"dev\": true,\n      \"license\": \"MIT\"\n    },\n    \"node_modules/dexie\": {\n      \"version\": \"4.4.6\",\n      \"resolved\": \"https://registry.npmjs.org/dexie/-/dexie-4.4.6.tgz\",\n      \"integrity\": \"sha512-hJP/BO6mjB+tX6hToIO1kmxYLNmun90wYbfcoAoLpKEyDYal/k33dg0TAfoUe2TDsbbLoVIzljJ3BN2UbR5EOg==\",\n      \"license\": \"Apache-2.0\"\n    },\n    \"node_modules/docx\": {\n      \"version\": \"9.8.1\",\n      \"resolved\": \"https://registry.npmjs.org/docx/-/docx-9.8.1.tgz\",\n      \"integrity\": \"sha512-bv4yDxgiV9aRyh327HG+V36wG0f23wk32SDhXGQpUhnykVtIPaR1K4ISi8E+DYJ7OcRQRkR8Y70QYlSS08V1cA==\",\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"@types/node\": \"^26.6.2\",\n        \"hash.js\": \"^1.1.7\",\n        \"jszip\": \"^3.10.1\",\n        \"nanoid\": \"^6.0.1\",\n        \"xml\": \"^1.0.1\",\n        \"xml-js\": \"^1.6.8\"\n      },\n      \"engines\": {\n        \"node\": \">=10\"\n      }\n    },\n    \"node_modules/docx/node_modules/@types/node\": {\n      \"version\": \"26.6.3\",\n      \"resolved\": \"https://registry.npmjs.org/@types/node/-/node-26.6.3.tgz\",\n      \"integrity\": \"sha512-dsqMQQoeTLqu9wynDD00q573mNzso3IdQOAfHRJqLCcmCFPoGo9A1bDpUcv/9tnKpErQWv9uKeGfl37EIS02Yg==\",\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"undici-types\": \"~8.9.0\"\n      }\n    },\n    \"node_modules/docx/node_modules/@types/node/node_modules/undici-types\": {\n      \"version\": \"8.9.0\",\n      \"resolved\": \"https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz\",\n      \"integrity\": \"sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==\",\n      \"license\": \"MIT\"\n    },\n    \"node_modules/docx/node_modules/hash.js\": {\n      \"version\": \"1.1.7\",\n      \"resolved\": \"https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz\",\n      \"integrity\": \"sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==\",\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"inherits\": \"^2.0.3\",\n        \"minimalistic-assert\": \"^1.0.1\"\n      }\n    },\n    \"node_modules/docx/node_modules/hash.js/node_modules/inherits\": {\n      \"version\": \"2.0.4\",\n      \"resolved\": \"https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz\",\n      \"integrity\": \"sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==\",\n      \"license\": \"ISC\"\n    },\n    \"node_modules/docx/node_modules/hash.js/node_modules/minimalistic-assert\": {\n      \"version\": \"1.0.1\",\n      \"resolved\": \"https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz\",\n      \"integrity\": \"sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==\",\n      \"license\": \"ISC\"\n    },\n    \"node_modules/docx/node_modules/jszip\": {\n      \"version\": \"3.10.2\",\n      \"resolved\": \"https://registry.npmjs.org/jszip/-/jszip-3.10.2.tgz\",\n      \"integrity\": \"sha512-3l+rb15IOWtUhU0H5MFqES/T6Kh7abYwjosBey/vD6hDt8zoEffkSC5Ws5SGtgVw3gBx2NEbhTeSW1+kWkpyTQ==\",\n      \"license\": \"(MIT OR GPL-3.0-or-later)\",\n      \"dependencies\": {\n        \"lie\": \"~3.3.0\",\n        \"pako\": \"~1.0.2\",\n        \"readable-stream\": \"~2.3.6\",\n        \"setimmediate\": \"^1.0.5\"\n      }\n    },\n    \"node_modules/docx/node_modules/jszip/node_modules/lie\": {\n      \"version\": \"3.3.0\",\n      \"resolved\": \"https://registry.npmjs.org/lie/-/lie-3.3.0.tgz\",\n      \"integrity\": \"sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==\",\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"immediate\": \"~3.0.5\"\n      }\n    },\n    \"node_modules/docx/node_modules/jszip/node_modules/lie/node_modules/immediate\": {\n      \"version\": \"3.0.6\",\n      \"resolved\": \"https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz\",\n      \"integrity\": \"sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==\",\n      \"license\": \"MIT\"\n    },\n    \"node_modules/docx/node_modules/jszip/node_modules/pako\": {\n      \"version\": \"1.0.11\",\n      \"resolved\": \"https://registry.npmjs.org/pako/-/pako-1.0.11.tgz\",\n      \"integrity\": \"sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==\",\n      \"license\": \"(MIT AND Zlib)\"\n    },\n    \"node_modules/docx/node_modules/jszip/node_modules/readable-stream\": {\n      \"version\": \"2.3.8\",\n      \"resolved\": \"https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz\",\n      \"integrity\": \"sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==\",\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"core-util-is\": \"~1.0.0\",\n        \"inherits\": \"~2.0.3\",\n        \"isarray\": \"~1.0.0\",\n        \"process-nextick-args\": \"~2.0.0\",\n        \"safe-buffer\": \"~5.1.1\",\n        \"string_decoder\": \"~1.1.1\",\n        \"util-deprecate\": \"~1.0.1\"\n      }\n    },\n    \"node_modules/docx/node_modules/jszip/node_modules/readable-stream/node_modules/core-util-is\": {\n      \"version\": \"1.0.3\",\n      \"resolved\": \"https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz\",\n      \"integrity\": \"sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==\",\n      \"license\": \"MIT\"\n    },\n    \"node_modules/docx/node_modules/jszip/node_modules/readable-stream/node_modules/inherits\": {\n      \"version\": \"2.0.4\",\n      \"resolved\": \"https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz\",\n      \"integrity\": \"sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==\",\n      \"license\": \"ISC\"\n    },\n    \"node_modules/docx/node_modules/jszip/node_modules/readable-stream/node_modules/isarray\": {\n      \"version\": \"1.0.0\",\n      \"resolved\": \"https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz\",\n      \"integrity\": \"sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==\",\n      \"license\": \"MIT\"\n    },\n    \"node_modules/docx/node_modules/jszip/node_modules/readable-stream/node_modules/process-nextick-args\": {\n      \"version\": \"2.0.1\",\n      \"resolved\": \"https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz\",\n      \"integrity\": \"sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==\",\n      \"license\": \"MIT\"\n    },\n    \"node_modules/docx/node_modules/jszip/node_modules/readable-stream/node_modules/safe-buffer\": {\n      \"version\": \"5.1.2\",\n      \"resolved\": \"https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz\",\n      \"integrity\": \"sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==\",\n      \"license\": \"MIT\"\n    },\n    \"node_modules/docx/node_modules/jszip/node_modules/readable-stream/node_modules/string_decoder\": {\n      \"version\": \"1.1.1\",\n      \"resolved\": \"https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz\",\n      \"integrity\": \"sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==\",\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"safe-buffer\": \"~5.1.0\"\n      }\n    },\n    \"node_modules/docx/node_modules/jszip/node_modules/readable-stream/node_modules/util-deprecate\": {\n      \"version\": \"1.0.2\",\n      \"resolved\": \"https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz\",\n      \"integrity\": \"sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==\",\n      \"license\": \"MIT\"\n    },\n    \"node_modules/docx/node_modules/jszip/node_modules/setimmediate\": {\n      \"version\": \"1.0.5\",\n      \"resolved\": \"https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz\",\n      \"integrity\": \"sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==\",\n      \"license\": \"MIT\"\n    },\n    \"node_modules/docx/node_modules/nanoid\": {\n      \"version\": \"6.0.1\",\n      \"resolved\": \"https://registry.npmjs.org/nanoid/-/nanoid-6.0.1.tgz\",\n      \"integrity\": \"sha512-3wVS3i51pE2pi1k5FFL/95BGfVS0kSsvDVuGXHOtxox/TywUmtgq+3qiTOTbs9J7KfHaXPiN171k/A6dBnaXFw==\",\n      \"funding\": [\n        {\n          \"type\": \"github\",\n          \"url\": \"https://github.com/sponsors/ai\"\n        }\n      ],\n      \"license\": \"MIT\",\n      \"bin\": {\n        \"nanoid\": \"bin/nanoid.js\"\n      },\n      \"engines\": {\n        \"node\": \"^22 || ^24 || >=26\"\n      }\n    },\n    \"node_modules/docx/node_modules/xml\": {\n      \"version\": \"1.0.1\",\n      \"resolved\": \"https://registry.npmjs.org/xml/-/xml-1.0.1.tgz\",\n      \"integrity\": \"sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==\",\n      \"license\": \"MIT\"\n    },\n    \"node_modules/docx/node_modules/xml-js\": {\n      \"version\": \"1.6.11\",\n      \"resolved\": \"https://registry.npmjs.org/xml-js/-/xml-js-1.6.11.tgz\",\n      \"integrity\": \"sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==\",\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"sax\": \"^1.2.4\"\n      },\n      \"bin\": {\n        \"xml-js\": \"bin/cli.js\"\n      }\n    },\n    \"node_modules/docx/node_modules/xml-js/node_modules/sax\": {\n      \"version\": \"1.6.1\",\n      \"resolved\": \"https://registry.npmjs.org/sax/-/sax-1.6.1.tgz\",\n      \"integrity\": \"sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==\",\n      \"license\": \"BlueOak-1.0.0\",\n      \"engines\": {\n        \"node\": \">=11.0.0\"\n      }\n    },\n    \"node_modules/echarts\": {\n      \"version\": \"6.1.0\",\n      \"resolved\": \"https://registry.npmjs.org/echarts/-/echarts-6.1.0.tgz\",\n      \"integrity\": \"sha512-q0yaFPggC9FUdsWH4blavRWFmxdrIodbkoKNAjJudAI6CA9gNPxHtV2RcZNEepZVlk4yvBYkOkbk6HIVpIyHZA==\",\n      \"license\": \"Apache-2.0\",\n      \"dependencies\": {\n        \"tslib\": \"2.3.0\",\n        \"zrender\": \"6.1.0\"\n      }\n    },\n    \"node_modules/echarts/node_modules/tslib\": {\n      \"version\": \"2.3.0\",\n      \"resolved\": \"https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz\",\n      \"integrity\": \"sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==\",\n      \"license\": \"0BSD\"\n    },\n    \"node_modules/echarts/node_modules/zrender\": {\n      \"version\": \"6.1.0\",\n      \"resolved\": \"https://registry.npmjs.org/zrender/-/zrender-6.1.0.tgz\",\n      \"integrity\": \"sha512-oEGMDB6pOP2S6OwRR4PdVv610zrjnA3Bh+JnSG12fYJlBKjtNAoEb5fSUoCOOINlH96I2fU38/A2UpRKs67xYQ==\",\n      \"license\": \"BSD-3-Clause\",\n      \"dependencies\": {\n        \"tslib\": \"2.3.0\"\n      }\n    },\n    \"node_modules/entities\": {\n      \"version\": \"8.1.0\",\n      \"resolved\": \"https://registry.npmjs.org/entities/-/entities-8.1.0.tgz\",\n      \"integrity\": \"sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==\",\n      \"dev\": true,\n      \"license\": \"BSD-2-Clause\",\n      \"engines\": {\n        \"node\": \">=20.19.0\"\n      },\n      \"funding\": {\n        \"url\": \"https://github.com/fb55/entities?sponsor=1\"\n      }\n    },\n    \"node_modules/esbuild\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz\",\n      \"integrity\": \"sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==\",\n      \"dev\": true,\n      \"hasInstallScript\": true,\n      \"license\": \"MIT\",\n      \"bin\": {\n        \"esbuild\": \"bin/esbuild\"\n      },\n      \"engines\": {\n        \"node\": \">=18\"\n      },\n      \"optionalDependencies\": {\n        \"@esbuild/aix-ppc64\": \"0.28.2\",\n        \"@esbuild/android-arm\": \"0.28.2\",\n        \"@esbuild/android-arm64\": \"0.28.2\",\n        \"@esbuild/android-x64\": \"0.28.2\",\n        \"@esbuild/darwin-arm64\": \"0.28.2\",\n        \"@esbuild/darwin-x64\": \"0.28.2\",\n        \"@esbuild/freebsd-arm64\": \"0.28.2\",\n        \"@esbuild/freebsd-x64\": \"0.28.2\",\n        \"@esbuild/linux-arm\": \"0.28.2\",\n        \"@esbuild/linux-arm64\": \"0.28.2\",\n        \"@esbuild/linux-ia32\": \"0.28.2\",\n        \"@esbuild/linux-loong64\": \"0.28.2\",\n        \"@esbuild/linux-mips64el\": \"0.28.2\",\n        \"@esbuild/linux-ppc64\": \"0.28.2\",\n        \"@esbuild/linux-riscv64\": \"0.28.2\",\n        \"@esbuild/linux-s390x\": \"0.28.2\",\n        \"@esbuild/linux-x64\": \"0.28.2\",\n        \"@esbuild/netbsd-arm64\": \"0.28.2\",\n        \"@esbuild/netbsd-x64\": \"0.28.2\",\n        \"@esbuild/openbsd-arm64\": \"0.28.2\",\n        \"@esbuild/openbsd-x64\": \"0.28.2\",\n        \"@esbuild/openharmony-arm64\": \"0.28.2\",\n        \"@esbuild/sunos-x64\": \"0.28.2\",\n        \"@esbuild/win32-arm64\": \"0.28.2\",\n        \"@esbuild/win32-ia32\": \"0.28.2\",\n        \"@esbuild/win32-x64\": \"0.28.2\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/aix-ppc64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz\",\n      \"integrity\": \"sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==\",\n      \"cpu\": [\n        \"ppc64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"aix\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/android-arm\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz\",\n      \"integrity\": \"sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==\",\n      \"cpu\": [\n        \"arm\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"android\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/android-arm64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz\",\n      \"integrity\": \"sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==\",\n      \"cpu\": [\n        \"arm64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"android\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/android-x64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz\",\n      \"integrity\": \"sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==\",\n      \"cpu\": [\n        \"x64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"android\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/darwin-arm64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz\",\n      \"integrity\": \"sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==\",\n      \"cpu\": [\n        \"arm64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"darwin\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/darwin-x64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz\",\n      \"integrity\": \"sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==\",\n      \"cpu\": [\n        \"x64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"darwin\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/freebsd-arm64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz\",\n      \"integrity\": \"sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==\",\n      \"cpu\": [\n        \"arm64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"freebsd\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/freebsd-x64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz\",\n      \"integrity\": \"sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==\",\n      \"cpu\": [\n        \"x64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"freebsd\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/linux-arm\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz\",\n      \"integrity\": \"sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==\",\n      \"cpu\": [\n        \"arm\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"linux\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/linux-arm64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz\",\n      \"integrity\": \"sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==\",\n      \"cpu\": [\n        \"arm64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"linux\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/linux-ia32\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz\",\n      \"integrity\": \"sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==\",\n      \"cpu\": [\n        \"ia32\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"linux\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/linux-loong64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz\",\n      \"integrity\": \"sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==\",\n      \"cpu\": [\n        \"loong64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"linux\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/linux-mips64el\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz\",\n      \"integrity\": \"sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==\",\n      \"cpu\": [\n        \"mips64el\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"linux\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/linux-ppc64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz\",\n      \"integrity\": \"sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==\",\n      \"cpu\": [\n        \"ppc64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"linux\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/linux-riscv64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz\",\n      \"integrity\": \"sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==\",\n      \"cpu\": [\n        \"riscv64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"linux\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/linux-s390x\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz\",\n      \"integrity\": \"sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==\",\n      \"cpu\": [\n        \"s390x\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"linux\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/linux-x64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz\",\n      \"integrity\": \"sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==\",\n      \"cpu\": [\n        \"x64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"linux\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/netbsd-arm64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz\",\n      \"integrity\": \"sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==\",\n      \"cpu\": [\n        \"arm64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"netbsd\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/netbsd-x64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz\",\n      \"integrity\": \"sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==\",\n      \"cpu\": [\n        \"x64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"netbsd\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/openbsd-arm64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz\",\n      \"integrity\": \"sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==\",\n      \"cpu\": [\n        \"arm64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"openbsd\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/openbsd-x64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz\",\n      \"integrity\": \"sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==\",\n      \"cpu\": [\n        \"x64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"openbsd\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/openharmony-arm64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz\",\n      \"integrity\": \"sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==\",\n      \"cpu\": [\n        \"arm64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"openharmony\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/sunos-x64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz\",\n      \"integrity\": \"sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==\",\n      \"cpu\": [\n        \"x64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"sunos\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/win32-arm64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz\",\n      \"integrity\": \"sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==\",\n      \"cpu\": [\n        \"arm64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"win32\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/win32-ia32\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz\",\n      \"integrity\": \"sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==\",\n      \"cpu\": [\n        \"ia32\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"win32\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/esbuild/node_modules/@esbuild/win32-x64\": {\n      \"version\": \"0.28.2\",\n      \"resolved\": \"https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz\",\n      \"integrity\": \"sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==\",\n      \"cpu\": [\n        \"x64\"\n      ],\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"optional\": true,\n      \"os\": [\n        \"win32\"\n      ],\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/fake-indexeddb\": {\n      \"version\": \"6.2.5\",\n      \"resolved\": \"https://registry.npmjs.org/fake-indexeddb/-/fake-indexeddb-6.2.5.tgz\",\n      \"integrity\": \"sha512-CGnyrvbhPlWYMngksqrSSUT1BAVP49dZocrHuK0SvtR0D5TMs5wP0o3j7jexDJW01KSadjBp1M/71o/KR3nD1w==\",\n      \"dev\": true,\n      \"license\": \"Apache-2.0\",\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/fflate\": {\n      \"version\": \"0.8.3\",\n      \"resolved\": \"https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz\",\n      \"integrity\": \"sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==\",\n      \"license\": \"MIT\"\n    },\n    \"node_modules/fuse.js\": {\n      \"version\": \"7.1.0\",\n      \"resolved\": \"https://registry.npmjs.org/fuse.js/-/fuse.js-7.1.0.tgz\",\n      \"integrity\": \"sha512-trLf4SzuuUxfusZADLINj+dE8clK1frKdmqiJNb1Es75fmI5oY6X2mxLVUciLLjxqw/xr72Dhy+lER6dGd02FQ==\",\n      \"license\": \"Apache-2.0\",\n      \"engines\": {\n        \"node\": \">=10\"\n      }\n    },\n    \"node_modules/html-encoding-sniffer\": {\n      \"version\": \"7.0.0\",\n      \"resolved\": \"https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-7.0.0.tgz\",\n      \"integrity\": \"sha512-UikN5yr7xsCDAq87Or5or0PAlD3HJJOKVzM05az588WnpDJ4Ux7a2A53Qi6gofGg2/EtvF/H4hCi/TXfCW4Y6w==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"@exodus/bytes\": \"^1.15.1\"\n      },\n      \"engines\": {\n        \"node\": \"^22.13.0 || >=24.0.0\"\n      }\n    },\n    \"node_modules/is-potential-custom-element-name\": {\n      \"version\": \"1.0.1\",\n      \"resolved\": \"https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz\",\n      \"integrity\": \"sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==\",\n      \"dev\": true,\n      \"license\": \"MIT\"\n    },\n    \"node_modules/jsdom\": {\n      \"version\": \"30.1.1\",\n      \"resolved\": \"https://registry.npmjs.org/jsdom/-/jsdom-30.1.1.tgz\",\n      \"integrity\": \"sha512-FahmoPK5vbPc+jxV1iErMHmAZypCZ942NHF4+qqaWAuvaKKTBZxawnmAtrbGWLU7MtlxfqIP0qw6aSI+aWGtLg==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"@asamuzakjp/css-color\": \"^7.0.0\",\n        \"@asamuzakjp/dom-selector\": \"^9.2.1\",\n        \"@bramus/specificity\": \"^2.4.2\",\n        \"@csstools/css-syntax-patches-for-csstree\": \"^1.1.13\",\n        \"@exodus/bytes\": \"^1.15.1\",\n        \"css-tree\": \"^3.2.1\",\n        \"data-urls\": \"^7.0.0\",\n        \"decimal.js\": \"^10.6.0\",\n        \"html-encoding-sniffer\": \"^7.0.0\",\n        \"is-potential-custom-element-name\": \"^1.0.1\",\n        \"lru-cache\": \"^11.5.2\",\n        \"parse5\": \"^8.0.1\",\n        \"saxes\": \"^6.0.0\",\n        \"tough-cookie\": \"^6.0.2\",\n        \"undici\": \"^8.10.2\",\n        \"w3c-xmlserializer\": \"^6.0.0\",\n        \"webidl-conversions\": \"^8.0.1\",\n        \"whatwg-mimetype\": \"^5.0.0\",\n        \"whatwg-url\": \"^17.1.1\",\n        \"xml-name-validator\": \"^5.0.0\"\n      },\n      \"engines\": {\n        \"node\": \"^22.22.2 || ^24.15.0 || >=26.0.0\"\n      },\n      \"peerDependencies\": {\n        \"canvas\": \"^3.2.3\"\n      },\n      \"peerDependenciesMeta\": {\n        \"canvas\": {\n          \"optional\": true\n        }\n      }\n    },\n    \"node_modules/katex\": {\n      \"version\": \"0.18.9\",\n      \"resolved\": \"https://registry.npmjs.org/katex/-/katex-0.18.9.tgz\",\n      \"integrity\": \"sha512-8ad9RyoKsb/g8/yLFE+KAlP+DhbCTRUNi/V9XGsxn0R+trJJltNwzcDNo0q/DEkOy5fQUQTAQyCXCYSE+OakTQ==\",\n      \"funding\": [\n        \"https://opencollective.com/katex\",\n        \"https://github.com/sponsors/katex\"\n      ],\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"commander\": \"^15.0.0\"\n      },\n      \"bin\": {\n        \"katex\": \"cli.js\"\n      }\n    },\n    \"node_modules/katex/node_modules/commander\": {\n      \"version\": \"15.0.0\",\n      \"resolved\": \"https://registry.npmjs.org/commander/-/commander-15.0.0.tgz\",\n      \"integrity\": \"sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==\",\n      \"license\": \"MIT\",\n      \"engines\": {\n        \"node\": \">=22.12.0\"\n      }\n    },\n    \"node_modules/lru-cache\": {\n      \"version\": \"11.5.3\",\n      \"resolved\": \"https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz\",\n      \"integrity\": \"sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==\",\n      \"dev\": true,\n      \"license\": \"BlueOak-1.0.0\",\n      \"engines\": {\n        \"node\": \"20 || >=22\"\n      }\n    },\n    \"node_modules/mdn-data\": {\n      \"version\": \"2.27.1\",\n      \"resolved\": \"https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz\",\n      \"integrity\": \"sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==\",\n      \"dev\": true,\n      \"license\": \"CC0-1.0\"\n    },\n    \"node_modules/papaparse\": {\n      \"version\": \"5.5.3\",\n      \"resolved\": \"https://registry.npmjs.org/papaparse/-/papaparse-5.5.3.tgz\",\n      \"integrity\": \"sha512-5QvjGxYVjxO59MGU2lHVYpRWBBtKHnlIAcSe1uNFCkkptUh63NFRj0FJQm7nR67puEruUci/ZkjmEFrjCAyP4A==\",\n      \"license\": \"MIT\"\n    },\n    \"node_modules/parse5\": {\n      \"version\": \"8.0.1\",\n      \"resolved\": \"https://registry.npmjs.org/parse5/-/parse5-8.0.1.tgz\",\n      \"integrity\": \"sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"entities\": \"^8.0.0\"\n      },\n      \"funding\": {\n        \"url\": \"https://github.com/inikulin/parse5?sponsor=1\"\n      }\n    },\n    \"node_modules/playwright\": {\n      \"version\": \"1.63.0\",\n      \"resolved\": \"https://registry.npmjs.org/playwright/-/playwright-1.63.0.tgz\",\n      \"integrity\": \"sha512-+7ziBLidS4NaNCdt57SUDT+wYmmd5fmiQejUic/kb+YsYSCPyOOE9sebzMjNmQrsnNpDJqd4WHvV/8lfKfUDUg==\",\n      \"dev\": true,\n      \"license\": \"Apache-2.0\",\n      \"dependencies\": {\n        \"playwright-core\": \"1.63.0\"\n      },\n      \"bin\": {\n        \"playwright\": \"cli.js\"\n      },\n      \"engines\": {\n        \"node\": \">=20\"\n      }\n    },\n    \"node_modules/playwright/node_modules/playwright-core\": {\n      \"version\": \"1.63.0\",\n      \"resolved\": \"https://registry.npmjs.org/playwright-core/-/playwright-core-1.63.0.tgz\",\n      \"integrity\": \"sha512-rYCsBF/M5HjUch52bbtVONEFjv6Xu8sm8h72dNlR5bzIE1fvC/bxgspzkjSfU+MweEMmPM8KJebG6nnyxo5mCg==\",\n      \"dev\": true,\n      \"license\": \"Apache-2.0\",\n      \"bin\": {\n        \"playwright-core\": \"cli.js\"\n      },\n      \"engines\": {\n        \"node\": \">=20\"\n      }\n    },\n    \"node_modules/punycode\": {\n      \"version\": \"2.3.1\",\n      \"resolved\": \"https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz\",\n      \"integrity\": \"sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"engines\": {\n        \"node\": \">=6\"\n      }\n    },\n    \"node_modules/require-from-string\": {\n      \"version\": \"2.0.2\",\n      \"resolved\": \"https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz\",\n      \"integrity\": \"sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"engines\": {\n        \"node\": \">=0.10.0\"\n      }\n    },\n    \"node_modules/saxes\": {\n      \"version\": \"6.0.0\",\n      \"resolved\": \"https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz\",\n      \"integrity\": \"sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==\",\n      \"dev\": true,\n      \"license\": \"ISC\",\n      \"dependencies\": {\n        \"xmlchars\": \"^2.2.0\"\n      },\n      \"engines\": {\n        \"node\": \">=v12.22.7\"\n      }\n    },\n    \"node_modules/simple-statistics\": {\n      \"version\": \"7.12.1\",\n      \"resolved\": \"https://registry.npmjs.org/simple-statistics/-/simple-statistics-7.12.1.tgz\",\n      \"integrity\": \"sha512-LYRvHhZceO9MTzDw6ptt3PBoOHuiTqNU5Ew5MLjjcLwuzgfATMf1oMFdgDW7elVDGwZvi98pGoUoFhwuXTHTRA==\",\n      \"license\": \"ISC\",\n      \"engines\": {\n        \"node\": \"*\"\n      }\n    },\n    \"node_modules/smiles-drawer\": {\n      \"version\": \"2.4.1\",\n      \"resolved\": \"https://registry.npmjs.org/smiles-drawer/-/smiles-drawer-2.4.1.tgz\",\n      \"integrity\": \"sha512-kJeD91Bp8EwLTQouq4az7hn5zUYdIaLQoyFt8XlsqriugPiZOdBFADJMUnfqDYpyu3XK9SFpBgTuDtczpbSUbA==\",\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"chroma-js\": \"^2.4.2\"\n      }\n    },\n    \"node_modules/smiles-drawer/node_modules/chroma-js\": {\n      \"version\": \"2.6.0\",\n      \"resolved\": \"https://registry.npmjs.org/chroma-js/-/chroma-js-2.6.0.tgz\",\n      \"integrity\": \"sha512-BLHvCB9s8Z1EV4ethr6xnkl/P2YRFOGqfgvuMG/MyCbZPrTA+NeiByY6XvgF0zP4/2deU2CXnWyMa3zu1LqQ3A==\",\n      \"license\": \"(BSD-3-Clause AND Apache-2.0)\"\n    },\n    \"node_modules/source-map-js\": {\n      \"version\": \"1.2.1\",\n      \"resolved\": \"https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz\",\n      \"integrity\": \"sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==\",\n      \"dev\": true,\n      \"license\": \"BSD-3-Clause\",\n      \"engines\": {\n        \"node\": \">=0.10.0\"\n      }\n    },\n    \"node_modules/tldts\": {\n      \"version\": \"7.4.14\",\n      \"resolved\": \"https://registry.npmjs.org/tldts/-/tldts-7.4.14.tgz\",\n      \"integrity\": \"sha512-EahQoi+Q5oqmG3yxRHx+bwn36OaLbtw6jnTFcGjc8fcmktzTgk45xRnzAx8Ch87PFEiqRhoc3FWBmY+LBrvEGQ==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"tldts-core\": \"^7.4.14\"\n      },\n      \"bin\": {\n        \"tldts\": \"bin/cli.js\"\n      }\n    },\n    \"node_modules/tldts-core\": {\n      \"version\": \"7.4.14\",\n      \"resolved\": \"https://registry.npmjs.org/tldts-core/-/tldts-core-7.4.14.tgz\",\n      \"integrity\": \"sha512-KYkjfJHnIC5t+Gy7hPrMHgJmWc/N9FfmS+fggRPSlpFckidpB9HD6OzPsSTkfDH+MpZgcu2tJPGgLfHl979N1Q==\",\n      \"dev\": true,\n      \"license\": \"MIT\"\n    },\n    \"node_modules/tough-cookie\": {\n      \"version\": \"6.0.2\",\n      \"resolved\": \"https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.0.2.tgz\",\n      \"integrity\": \"sha512-exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==\",\n      \"dev\": true,\n      \"license\": \"BSD-3-Clause\",\n      \"dependencies\": {\n        \"tldts\": \"^7.0.5\"\n      },\n      \"engines\": {\n        \"node\": \">=16\"\n      }\n    },\n    \"node_modules/tr46\": {\n      \"version\": \"6.0.0\",\n      \"resolved\": \"https://registry.npmjs.org/tr46/-/tr46-6.0.0.tgz\",\n      \"integrity\": \"sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"punycode\": \"^2.3.1\"\n      },\n      \"engines\": {\n        \"node\": \">=20\"\n      }\n    },\n    \"node_modules/undici\": {\n      \"version\": \"8.11.0\",\n      \"resolved\": \"https://registry.npmjs.org/undici/-/undici-8.11.0.tgz\",\n      \"integrity\": \"sha512-AdzuGcAkzhbha3GgCSoUBx2P0quwym6qdFNCQz/fDGZc8w9XJ741wHUbt2kTmfPz+ZIOMkySFkiY7RXmiDDC8w==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"engines\": {\n        \"node\": \">=22.19.0\"\n      }\n    },\n    \"node_modules/w3c-xmlserializer\": {\n      \"version\": \"6.0.0\",\n      \"resolved\": \"https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-6.0.0.tgz\",\n      \"integrity\": \"sha512-4Nsy8K5Tr6SPDH9jhKJOHf7ChDrc1zufZTVSF7x72hwuEXBqxqk9G6cK+K2NRUtB3iELRJqjXb4JPDMBjMTl2Q==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"xml-name-validator\": \"^5.0.0\"\n      },\n      \"engines\": {\n        \"node\": \"^22.22.2 || ^24.15.0 || >=26.0.0\"\n      }\n    },\n    \"node_modules/webidl-conversions\": {\n      \"version\": \"8.0.1\",\n      \"resolved\": \"https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz\",\n      \"integrity\": \"sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==\",\n      \"dev\": true,\n      \"license\": \"BSD-2-Clause\",\n      \"engines\": {\n        \"node\": \">=20\"\n      }\n    },\n    \"node_modules/whatwg-mimetype\": {\n      \"version\": \"5.0.0\",\n      \"resolved\": \"https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz\",\n      \"integrity\": \"sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==\",\n      \"license\": \"MIT\",\n      \"engines\": {\n        \"node\": \">=20\"\n      }\n    },\n    \"node_modules/whatwg-url\": {\n      \"version\": \"17.1.2\",\n      \"resolved\": \"https://registry.npmjs.org/whatwg-url/-/whatwg-url-17.1.2.tgz\",\n      \"integrity\": \"sha512-TEZA+Zqxin7Jjsm2cjRohCmen5awh+hT6Zi3VZdqZlNRk7zvOI/9WpBFg/DWlA56bWnzwm6DuB8NS0EsxQH9uQ==\",\n      \"dev\": true,\n      \"license\": \"MIT\",\n      \"dependencies\": {\n        \"@exodus/bytes\": \"^1.15.1\",\n        \"tr46\": \"^6.0.0\",\n        \"webidl-conversions\": \"^8.0.1\"\n      },\n      \"engines\": {\n        \"node\": \"^22.14.0 || >=24.0.0\"\n      }\n    },\n    \"node_modules/xml-name-validator\": {\n      \"version\": \"5.0.0\",\n      \"resolved\": \"https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz\",\n      \"integrity\": \"sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==\",\n      \"dev\": true,\n      \"license\": \"Apache-2.0\",\n      \"engines\": {\n        \"node\": \">=18\"\n      }\n    },\n    \"node_modules/xmlchars\": {\n      \"version\": \"2.2.0\",\n      \"resolved\": \"https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz\",\n      \"integrity\": \"sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==\",\n      \"dev\": true,\n      \"license\": \"MIT\"\n    }\n  }\n}\n",
  "AGENTS.md": "# Erlen Methods: instrucciones del proyecto\n\nErlen Methods es la app de **protocolos de laboratorio** de Erlen Suite. Es un proyecto independiente con licencia **AGPL-3.0-only**. Se sirve en `/methods/`, usa el espacio de nombres `erlen-methods.` para el almacenamiento y sigue el contrato `erlen-suite/docs/CONTRATO-APP.md`.\n\nAntes de cambiar nada, lee en `erlen-suite`: `docs/GUIA-DISENO.md`, `docs/CONTRATO-APP.md`, `docs/COHERENCIA-APPS.md` (Erlen Slides como referencia de estructura, tokens de `diseno/` como identidad) y `docs/DISENO-PAQUETE.md`. Mandan sobre este archivo.\n\n**Todo ocurre en el navegador**: no hay servidor, CDN, telemetría ni cuenta.\n\n## Qué hace\n\nUn protocolo es un documento **estructurado**, no un texto libre, y sirve a **cualquier disciplina experimental** (desde 0.2.0 la app no está sesgada hacia ningún trabajo concreto; la calculadora de HDL es una más, en «Materiales»):\n\n- **Reactivos** con fórmula, pureza, proveedor, CAS, función, cantidad (g, mg, mL, µL, mmol, mol), densidad, **códigos H y P** (de la FDS; la app no clasifica), clases químicas, residuo y precio. Con la fórmula se calcula la masa molar; con la cantidad, los moles y lo que hay que pesar.\n- **Disoluciones** que apuntan a un reactivo: concentración, volumen, disolvente → masa a pesar.\n- **Pasos** con temperatura, tiempo, pH, agitación, atmósfera, «crítico» y, opcional, su redacción para el artículo.\n- **Medición y caracterización** por técnica (UV-Vis, FTIR, RMN, EM, HPLC, CG, microscopía, electroquímica, DRX, TGA, DSC, BET, MEB, otra) con los campos que pide un revisor (`src/datos/tecnicas.json`).\n- **Seguridad**: pictogramas GHS, incompatibilidades dentro del protocolo, residuos y notas.\n- **Lotes**: escala, pesadas y condiciones reales frente a las planeadas, masa obtenida, **resultado medido** (lo define el protocolo), rendimiento y costo. **Comparar lotes** con carta de control I-MR.\n- **Versiones** con nota y diferencias por elemento; **lista previa** imprimible; **laboratorio** común a todos los protocolos (inventario con caducidad, equipos con calibración).\n- **Condiciones publicadas** (literatura) por parámetro, importables desde Erlen Lens.\n- **Escala del lote**: multiplica cantidades y volúmenes; nunca tiempos ni temperaturas.\n- **Revisión de reproducibilidad**, **sección de métodos** en español o inglés y exportación en **Markdown, Word y LaTeX**.\n- **Calculadoras** registradas por disciplina (`Calculadoras.registra`, pantallas en `44-` y `45-`): química, disoluciones y medios, biología, medida y estadística, física y radiactividad, materiales.\n- **Suite**: factores para Erlen DoE (`erlen-doe-factores-v1`), lotes desde CSV, borrador desde un párrafo. Enviar a Documentos o Pentagrama está **en preparación** (el transporte de intercambio aún no acepta `methods`).\n\n## Reglas (no negociables)\n\n1. **Todo en español**, incluidos los nombres de variables y funciones.\n2. **Debajo de cada número va lo que significa.** Los cálculos devuelven objetos simples con `explicacion` en español llano.\n3. **Los casos imposibles explican, no revientan.** Pureza 0, dilución que concentra, fórmula ilegible o sal con dos metales devuelven `{error}` con un mensaje comprensible; nunca una excepción muda ni un `NaN` escondido.\n4. **No se inventan datos.** Un campo vacío se omite en la sección de métodos; no se rellena con un valor «típico». Las plantillas declaran que sus valores son ilustrativos. La app no conjuga ni traduce el texto del usuario: pide la redacción para el artículo.\n5. **Nunca se oculta una pérdida.** Si no se pudo guardar: «Sin guardar» en ámbar y qué hacer.\n6. Lo que aún no existe se declara «en preparación». Nunca se simula.\n7. Los comentarios explican **por qué**, no qué.\n\n## Estructura\n\n- `src/js/_orden.txt` lista los módulos en su orden. El build (`herramientas/build.mjs`) los concatena en **un solo ámbito** dentro de `public/index.html`.\n- `src/js/01…29-*.js` son el **cálculo**: no tocan el DOM al cargarse y se prueban con node, sin navegador. Cada uno expone **un único espacio de nombres** (`const Formula = (() => { …; return {…}; })();`) y solo usa módulos anteriores, `DATOS` y las utilidades de `01-util.js`. **Nunca se declaran globales sueltos.**\n  - `02-formula` lector de fórmulas y masa molar · `03-calculo` cálculos de laboratorio y HDL · `04-protocolo` modelo, saneado, cantidades y revisión · `05-expresion` expresiones y derivadas · `06-estadistica` t de Student, réplicas, Grubbs, calibración, carta de control, GUM y cifras · `07-unidades` análisis dimensional y concentraciones · `08-quimica` balanceo, limitante, gases, tampones, radiactividad, centrífuga · `09-biologia` diluciones, placa, células, PCR, ácidos nucleicos, recetas · `10-seguridad` GHS, incompatibilidades, residuos, costo · `11-lotes` pesadas, rendimiento, comparación y control · `12-redaccion` sección de métodos y Markdown · `13-versiones` · `14-exportar` LaTeX, .docx, DoE, CSV, párrafo, Lens · `15-laboratorio` inventario, equipos y lista previa.\n- `src/js/30+-*.js` son la interfaz: `30-ui` (DOM, campos, diálogos, toasts), `31-estado` (biblioteca, laboratorio y plantillas propias en localStorage; protocolo abierto con Deshacer), `32-marco` (secciones, rutas `#p/<sección>`, índice), `33-cinta` (la cinta común), `34-portada` (el inicio común), `4x-p-*` (pantallas; `44`/`45` calculadoras, `46` calidad, versiones, lista previa y laboratorio), `47-importar` (diálogos de importar y de factores para DoE) y `90-main` (acciones y arranque).\n- `src/datos/*.json` quedan disponibles como `DATOS.<nombre>`: `elementos` (pesos atómicos CIAAW 2021), `tecnicas` (campos por técnica), `plantillas` (las del inicio), `ghs` (textos CLP y pictogramas), `tampones` (Goldberg 2002), `gases` (van der Waals, CRC) e `isotopos` (NNDC). Cada uno lleva `fuente`.\n- `src/diseno/` es una copia sincronizada del paquete de diseño de la suite. **No se edita a mano.** Se regenera desde `erlen-suite/` con `npm run diseno-sync -- ../erlen-methods --destino src/diseno --modo inline --modo iife`.\n- `herramientas/nucleo.mjs` carga los módulos de cálculo para las pruebas (`import {N, cerca}`).\n\n## Formato del protocolo\n\n`{format: 'erlen-methods-protocolo-v2', id, titulo, tipo, objetivo, autores, referencia, escala, rendimientoTeorico, productoFormula, resultadoNombre, resultadoUnidad, reactivos[], disoluciones[], pasos[], equipos, caracterizacion[], seguridad[], lotes[], literatura[], versiones[], notas, sinPurificar, creado, modificado}`. Los campos añadidos en 0.2.0 (`ghs`, `prudencia`, `clases`, `precio`, `unidadPrecio`, `residuo` en reactivos; `parametros` y `resultado` en lotes; `literatura`, `versiones`, `resultado*`) son opcionales: un protocolo de 0.1.0 se abre sin avisos. `Protocolo.sanea()` acepta cualquier JSON y devuelve un protocolo válido más la lista de avisos de lo que descartó. Un cambio incompatible sube la versión (`-v2`) con migración en `sanea`.\n\nDesde 0.3.0 el lector migra v1 a v2. Cada lote nuevo conserva `revision.protocolo` sin lotes ni versiones anidados y `ejecucion` con estado, muestras, equipos y registros por paso. Los antiguos no reciben una referencia histórica inventada. `pasos` añade acción, volumen y capacidad; la caracterización puede vincular un instrumento. Ver `docs/transformacion-methods.md` y las pruebas de transformación.\n\nEl laboratorio se guarda aparte (`erlen-methods.laboratorio`, formato `erlen-methods-laboratorio-v1`) y se respalda o restaura como archivo desde su pantalla.\n\n## Pruebas\n\n- `npm test` (`node --test tests/*.test.mjs`): `calculo` (fórmulas y cálculos, con valores calculados aparte con los pesos de CIAAW), `herramientas` (estadística, unidades, química, biología, seguridad, exportación y laboratorio, contra tablas y valores de referencia), `protocolo` (modelo, revisión, redacción, lotes) y `app` (la app construida en JSDOM, incluidas todas las calculadoras).\n- JSDOM no valida el aspecto: antes de dar algo por terminado, revisa en Chromium y Firefox a 320, 390, 768 y 1440 px (`npm start` sirve `public/` en http://127.0.0.1:8151).\n- `npm run package` = build, pruebas, ZIP determinista y contrato de la suite. Tiene que acabar en verde.\n\n## Publicación\n\nCada empuje a `main` avisa al portal (`.github/workflows/suite-sync.yml`, evento `methods-changed`): el portal construye ese commit, lo prueba con su CI y lo integra por el canal `source-build` (`docs/actualizacion-automatica.md` del portal). Además, un tag `v<versión>` → `.github/workflows/publicar.yml`: build, pruebas, ZIP con su `.sha256`, release y aviso `app-publicada` al portal (`docs/CONTRATO-APP.md` §5). La versión sale de `package.json`; una versión publicada no se modifica: se publica otra.\n\n\n## Monorepo migration\n\nFollow the root AGENTS.md and docs/architecture.md for development, CI and publication.\nThis product is owned at `apps/methods`. Work only in a task worktree.\nGenerated assets declared by `erlenAssets` come from shared packages; never edit generated copies.\nLegacy cross-repository sync and release instructions above are historical; the root publication pipeline supersedes them.\n\n## Shared editing skills\n\nFrom the monorepo root run `npm run agent:context -- methods`. Read the returned skill files and this product's instructions before editing. Shared UI recipes: `docs/ui/README.md`; SaaS readiness: `docs/saas/README.md`. Skills and client adapters: `docs/agents/README.md`. Preserve product runtime, licenses, data and explicitly adopted design revisions.\n",
  "README.md": "# Erlen Methods\n\nProtocolos de laboratorio reproducibles, en el navegador. Parte de [Erlen Suite](https://www.erlensuite.com); se sirve en `/methods/`. **Versión 0.4.0 alfa.**\n\nEsta entrega amplía la transformación descrita en [el catálogo de 64 referencias](docs/transformacion-methods.md): almacenamiento transaccional, reservas y movimientos de inventario, placas y muestras, calibración y simulación de incertidumbre, bibliografía, estructuras SMILES, adjuntos y respaldos completos. El [registro del ciclo autónomo](docs/ciclo-autonomo.md) conserva las comprobaciones y correcciones realizadas.\n\nEl diseñador de flujo permite declarar dependencias, detectar ciclos y estimar la ruta crítica con los tiempos escritos. La ejecución exige el orden conservado en su revisión. Los CSV de instrumentos admiten un mapa de columnas y decimales/unidades explícitos, con vista previa y archivo original guardado junto a los datos.\n\nLa combinación de cambios trabaja con una revisión común guardada, muestra cada campo diferente y requiere resolver los conflictos antes de aplicar. Conserva la copia anterior y los registros experimentales locales. La lista previa distingue reservas propias y ajenas y muestra muestras y certificados de la ejecución.\n\nLa incertidumbre usa diferenciación automática contrastada con SymPy y conversiones contrastadas con Pint. El cálculo de flujo admite Hagen–Poiseuille y Darcy–Weisbach/Colebrook, con propiedades y rugosidad declaradas; fluids contrasta los resultados fuera del producto.\n\nLas respuestas reales de una placa se cuantifican con una calibración guardada, unidades y dilución declaradas. El análisis conserva lecturas, historial, patrones e intervalo de Fieller, sin sustituir las medidas. Sus archivos de origen siguen exportables aunque se retire la ejecución. Word incluye tablas de concentración, respuestas originales, intervalos, patrones y fuentes, y resume calibración y Monte Carlo. La [guía de cuantificación](docs/cuantificar-placas.md) describe el recorrido y sus supuestos.\n\nCada ejecución conserva su registro de placa, las muestras vinculadas, las medidas y las transferencias declaradas. Los planes no se presentan como medidas reales. Las comparaciones mantienen las unidades históricas; la calibración inversa incluye intervalos de Fieller y diagnósticos, y Monte Carlo admite entradas normales correlacionadas y distribuciones uniforme, triangular y lognormal. Los archivos vinculados a revisiones siguen incluidos en el paquete de investigación aunque se retire su enlace del protocolo actual.\n\nPara cualquier disciplina experimental —química, bioquímica, biología, ciencia de materiales, física, ciencias ambientales—. Escribe un protocolo como datos, no como texto suelto: reactivos con fórmula, pureza y peligros GHS, disoluciones, pasos con sus parámetros, condiciones de medida y notas de seguridad. De esa estructura salen:\n\n- **lo que hay que pesar**, a la escala del lote, con la pureza de cada frasco (cantidades en mmol → gramos);\n- **seguridad**: pictogramas desde los códigos H de la ficha de datos de seguridad, incompatibilidades entre los reactivos del protocolo y recipientes de residuos;\n- **una revisión de reproducibilidad**: qué dato impide que otra persona repita el protocolo y qué lo mejoraría;\n- **la sección de métodos** redactada en español o en inglés, sin inventar lo que falta, y el protocolo completo en **Markdown, Word (.docx), LaTeX** (fórmulas en mhchem) o **paquete .eln** (RO-Crate 1.2);\n- **lotes**: pesadas y condiciones reales frente a las planeadas, resultado medido, rendimiento y costo; **comparación lado a lado y carta de control** (I-MR);\n- **versiones** del protocolo con nota y diferencias, **lista previa** imprimible, **inventario** con caducidades y **registro de calibración** de equipos;\n- **plantillas propias** y seis plantillas didácticas (Bradford, dureza del agua, picnometría, HDL, DRX/FTIR, valoración de NaOH);\n- **integración con la suite**: factores para Erlen DoE (`erlen-doe-factores-v1`), condiciones publicadas desde Erlen Lens, lotes desde el CSV de corridas y un borrador de protocolo a partir del párrafo experimental de un artículo.\n\n**Calculadoras** por disciplina, cada número con su explicación:\n\n- Química: masa molar y composición, balanceo de ecuaciones (con cargas), reactivo limitante, gases ideales y de van der Waals.\n- Disoluciones y medios: disolución desde un sólido, dilución, ácido o base concentrado, conversor de concentraciones (M, m, % m/m, % m/v, ppm, N, fracción molar), tampones con temperatura y fuerza iónica, recetas de medios.\n- Biología: diluciones seriadas, mapa de placa (24–384 pozos), conteo en cámara de Neubauer, mezcla maestra de PCR, ácidos nucleicos por absorbancia.\n- Medida y estadística: réplicas con Grubbs e intervalo de confianza, curva de calibración con LOD/LOQ, propagación de incertidumbre (GUM), cifras significativas, conversor de unidades con análisis dimensional.\n- Física y radiactividad: centrífuga (rpm ↔ × g), decaimiento radiactivo y atenuación.\n- Materiales: coprecipitación de hidróxidos dobles laminares M²⁺/M³⁺.\n\nPesos atómicos CIAAW/IUPAC 2021. La app no clasifica sustancias: los códigos H y P se copian de la ficha de datos de seguridad.\n\n## Exportación e interoperabilidad\n\n- **Cuadernos electrónicos (.eln)**: exporta paquetes `.eln` compatibles con la especificación de The ELN Consortium basada en **RO-Crate 1.2**. El paquete es un ZIP almacenado sin compresión, estructurado en `<slug>.eln/`, con el protocolo en `protocol.json`, el texto experimental en `protocol.md` y, cuando hay lotes, `batches.csv` con las condiciones y parámetros reales. Cada archivo incluye su tamaño en bytes y suma de comprobación SHA-256 en el grafo de metadatos.\n- **Documentos**: exportación a Word (.docx), LaTeX (.tex) con fórmulas `mhchem` y Markdown (.md).\n- **Intercambio en la suite**: factores de variación para Erlen DoE (`erlen-doe-factores-v1`) e importación de condiciones publicadas desde Erlen Lens.\n\n## Privacidad\n\nTodo ocurre en tu navegador: sin servidor, sin cuenta, sin telemetría. La biblioteca, el laboratorio (inventario y equipos) y las plantillas propias se guardan en este navegador (`erlen-methods.`); borrar sus datos los borra, así que descarga copias con «Guardar copia» y el respaldo del laboratorio.\n\n## Desarrollo\n\nRequiere Node ≥ 22 y Python 3 para el ZIP.\n\n```sh\nnpm ci\nnpm run build     # public/index.html autocontenido\nnpm test          # cálculo, modelo y app en JSDOM\nnpm start         # http://127.0.0.1:8151\nnpm run package   # build + pruebas + ZIP determinista + contrato de la suite\nnpm run test:source # reconstruye el HTML desde source.json sin node_modules\nnpm run test:browser # ejecución y modo local, Chromium/Firefox\nnpm run test:browser:ampliacion # inventario, ciencia, archivos y restauración\nnpm run test:browser:placas # medidas, transferencias, historial y anexos Word\nnpm run test:browser:flujo\nnpm run test:browser:instrumentos\nnpm run test:browser:cambios # combinación con revisión común y conflictos explícitos\nnpm run test:browser:cuantificacion # lecturas reales, calibración, intervalos y origen\nnpm run test:browser:ciencia # flujo e incertidumbre en extremos numéricos\nnpm run test:browser:preparacion # reservas y referencias conservadas en la lista previa\nnpm run test:browser:biologia # muestras, alícuotas, FASTA, traducción y origen\n```\nEl ZIP de release usa una copia autocontenida con espacios minificados para respetar el límite de 3 MiB de la suite; `public/index.html` queda legible para desarrollo.\n\nLas muestras conservan sus recuentos, consumos, ubicaciones y alícuotas. Secuencias biológicas importa FASTA con alfabeto declarado, conserva el archivo original y calcula GC con límites de ambigüedad, complemento inverso y traducción con las tablas NCBI 1, 2 y 11. Biopython 1.88 y Biotite 1.7.1 verifican los resultados; no se distribuye Python en la app.\n\nLas pruebas de navegador requieren `npx playwright install chromium firefox`. Usan el puerto local 4201, configurable con `ERLEN_METHODS_TEST_PORT`; `ERLEN_METHODS_TEST_ORIGIN=http://127.0.0.1:4200` permite reutilizar un servidor existente en todas las suites. Guardan informes, descargas y capturas en `.local/` dentro de la app. Los oráculos científicos se regeneran con `herramientas/oraculos-cientificos.py` y las versiones de `herramientas/oraculos-requisitos.txt`.\n\nEstructura y reglas del proyecto en [AGENTS.md](AGENTS.md). Guías vinculantes de la suite: `docs/GUIA-DISENO.md`, `docs/CONTRATO-APP.md` y `docs/COHERENCIA-APPS.md` en `erlen-suite`.\n\n## Licencia\n\nAGPL-3.0-only. El paquete web incluye su código fuente completo en `source.json`. Avisos de terceros en [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).\n",
  "LICENSE": "                    GNU AFFERO GENERAL PUBLIC LICENSE\n                       Version 3, 19 November 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU Affero General Public License is a free, copyleft license for\nsoftware and other kinds of works, specifically designed to ensure\ncooperation with the community in the case of network server software.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nour General Public Licenses are intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  Developers that use our General Public Licenses protect your rights\nwith two steps: (1) assert copyright on the software, and (2) offer\nyou this License which gives you legal permission to copy, distribute\nand/or modify the software.\n\n  A secondary benefit of defending all users' freedom is that\nimprovements made in alternate versions of the program, if they\nreceive widespread use, become available for other developers to\nincorporate.  Many developers of free software are heartened and\nencouraged by the resulting cooperation.  However, in the case of\nsoftware used on network servers, this result may fail to come about.\nThe GNU General Public License permits making a modified version and\nletting the public access it on a server without ever releasing its\nsource code to the public.\n\n  The GNU Affero General Public License is designed specifically to\nensure that, in such cases, the modified source code becomes available\nto the community.  It requires the operator of a network server to\nprovide the source code of the modified version running there to the\nusers of that server.  Therefore, public use of a modified version, on\na publicly accessible server, gives the public access to the source\ncode of the modified version.\n\n  An older license, called the Affero General Public License and\npublished by Affero, was designed to accomplish similar goals.  This is\na different license, not a version of the Affero GPL, but Affero has\nreleased a new version of the Affero GPL which permits relicensing under\nthis license.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU Affero General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Remote Network Interaction; Use with the GNU General Public License.\n\n  Notwithstanding any other provision of this License, if you modify the\nProgram, your modified version must prominently offer all users\ninteracting with it remotely through a computer network (if your version\nsupports such interaction) an opportunity to receive the Corresponding\nSource of your version by providing access to the Corresponding Source\nfrom a network server at no charge, through some standard or customary\nmeans of facilitating copying of software.  This Corresponding Source\nshall include the Corresponding Source for any work covered by version 3\nof the GNU General Public License that is incorporated pursuant to the\nfollowing paragraph.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the work with which it is combined will remain governed by version\n3 of the GNU General Public License.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU Affero General Public License from time to time.  Such new versions\nwill be similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU Affero General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU Affero General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU Affero General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU Affero General Public License as published\n    by the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU Affero General Public License for more details.\n\n    You should have received a copy of the GNU Affero General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If your software can interact with users remotely through a computer\nnetwork, you should also make sure that it provides a way for users to\nget its source.  For example, if your program is a web application, its\ninterface could display a \"Source\" link that leads users to an archive\nof the code.  There are many ways you could offer source, and different\nsolutions will be better for different programs; see section 13 for the\nspecific requirements.\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU AGPL, see\n<https://www.gnu.org/licenses/>.\n",
  "CITATION.cff": "cff-version: 1.2.0\nmessage: \"Si utilizas Erlen Methods en tu trabajo, cita esta versión del software.\"\ntype: software\ntitle: \"Erlen Methods: protocolos de laboratorio reproducibles en el navegador\"\nversion: 0.3.0\nauthors:\n  - family-names: \"González Sevilla\"\n    given-names: \"Jorge\"\nrepository-code: \"https://github.com/erlen-frontier-ops/erlen-methods\"\nlicense: AGPL-3.0-only\nabstract: \"Protocolos de laboratorio estructurados para cualquier disciplina experimental: reactivos con fórmula, pureza y peligros GHS, cantidades escaladas por lote, disoluciones, pasos con sus parámetros, condiciones de medida, lotes con pesadas y condiciones reales, comparación y carta de control, versiones, inventario y calibraciones, revisión de reproducibilidad y la sección de métodos en español o inglés (Markdown, Word o LaTeX). Incluye calculadoras de química, disoluciones y tampones, biología, estadística e incertidumbre (GUM), física y materiales. Todo ocurre en el navegador.\"\nkeywords:\n  - laboratory protocols\n  - reproducibility\n  - materials and methods\n  - stoichiometry\n  - laboratory calculators\n  - measurement uncertainty\n  - GHS\n  - open science\n",
  "THIRD_PARTY_NOTICES.md": "# Avisos de terceros\n\nEl modelo y las reglas de laboratorio de Erlen Methods son código propio (AGPL-3.0-only). La estructura del paquete `.eln` sigue la especificación de The ELN Consortium (TheELNFileFormat, MIT), con metadatos basados en RO-Crate 1.2. El HTML incorpora las bibliotecas indicadas abajo; sus versiones, dependencias transitivas y licencias viajan con el paquete y no se descargan durante el uso.\n\n## Paquete de diseño de Erlen Suite\n\n`src/diseno/` (tokens, cromo, cinta, pantalla de inicio, menú de la suite y fuentes) es una copia sincronizada del paquete del portal y viaja incrustada en el HTML:\n\n- Latin Modern (LM Roman, LM Sans): GUST Font License.\n- Computer Modern Unicode (CMU Concrete, CMU Typewriter): SIL Open Font License.\n- Menú, cinta, inicio y CSS del paquete: MIT.\n\nLos textos están en `src/diseno/licencias/` y se publican en `licenses/` del paquete web.\n\n## Datos de referencia\n\n`src/datos/elementos.json`: pesos atómicos estándar abreviados de la Comisión de Abundancias Isotópicas y Pesos Atómicos (CIAAW) de la IUPAC, tabla de 2021. Son datos científicos de dominio público; la fuente se cita en la app («Acerca de»).\n\nTodos los archivos de datos citan su fuente en la app («Acerca de») y piden verificar el valor para el trabajo propio:\n\n- `src/datos/ghs.json`: textos de las indicaciones de peligro (H, EUH), consejos de prudencia (P) y pictogramas del Reglamento (CE) n.º 1272/2008 (CLP), anexos III, IV y V, en su versión española. Texto normativo de la Unión Europea, reutilizable según la Decisión 2011/833/UE. Es una selección; la app no clasifica sustancias.\n- `src/datos/tampones.json`: pKa termodinámicos a 25 °C y entalpías de ionización de Goldberg, Kishore y Lennen, *J. Phys. Chem. Ref. Data* 31 (2002) 231 (datos numéricos citados).\n- `src/datos/gases.json`: constantes de van der Waals del *CRC Handbook of Chemistry and Physics* (datos numéricos citados).\n- `src/datos/isotopos.json`: periodos de semidesintegración de NNDC/NuDat (Brookhaven National Laboratory), datos de dominio público.\n- Los factores de absorbancia y las masas molares medias de ácidos nucleicos siguen los valores publicados por New England Biolabs (datos numéricos citados).\n\n## Bibliotecas incrustadas desde 0.3.0\n\n- PapaParse 5.5.3 — MIT — https://github.com/mholt/PapaParse\n- Fuse.js 7.1.0 — Apache-2.0 — https://github.com/krisk/Fuse\n- fflate 0.8.3 — MIT — https://github.com/101arrowz/fflate\n\nSus versiones exactas están en el lockfile raíz del monorepo. El build incrusta el código distribuido por los paquetes npm, conserva sus avisos y publica los textos de licencia en `licenses/`, el registro en `third-party.json` y los archivos utilizados en `source.json`. No se descargan bibliotecas durante el uso. Los demás proyectos del catálogo son referencias; no se afirma que se haya incorporado su código.\n\n## Bibliotecas añadidas en 0.4.0\n\n- Dexie 4.4.6 — Apache-2.0 — https://github.com/dexie/Dexie.js\n- SmilesDrawer 2.4.1 — MIT — https://github.com/reymond-group/smilesDrawer\n- Citation.js core, BibTeX y RIS 0.9.0 — MIT — https://github.com/citation-js/citation-js\n- docx 9.8.1 — MIT — https://github.com/dolanmiu/docx\n- KaTeX 0.18.9 — MIT — https://github.com/KaTeX/KaTeX\n- ECharts 6.1.0 — Apache-2.0 — https://github.com/apache/echarts\n- simple-statistics 7.12.1 — ISC — https://github.com/simple-statistics/simple-statistics\n\nEl build publica los avisos de las dependencias transitivas realmente utilizadas. `@citation-js/name` y `@citation-js/date` 0.4.2 declaran MIT y el autor Lars Willighagen en sus metadatos, pero sus paquetes no incluyen un archivo LICENSE independiente. Para esos dos paquetes se incluye el texto estándar MIT junto a esa procedencia, sin atribuir un año ni presentar el texto como una copia verificada del upstream. Las demás licencias se toman de los archivos publicados por cada paquete.\n\nNumPy, SciPy, statsmodels, uncertainties, Chempy, chemicals, pymatgen, Pint, RO-Crate, Biopython, Biotite, NetworkX, SymPy y fluids se usan como referencias de desarrollo cuando lo indican sus fixtures; no se incrustan esos paquetes Python en el producto. Los algoritmos adaptados y sus límites se documentan en el catálogo.\n",
  ".gitignore": "node_modules/\npublic/\ndist/\n.env\n.env.*\n*.log\n.DS_Store\ntest-results/\n\nnode_modules/\n.turbo/\n.local/\n.artifacts/\n/src/diseno\n\n# Contrato generado por el paquete compartido.\nsrc/modelo/\n",
  "src/css/_orden.txt": "diseno/00-diseno.css\n01-base.css\n02-controles.css\n03-marco.css\n04-editor.css\n05-herramientas.css\n06-imprimir.css\n\n07-ampliacion.css\n",
  "src/css/_preludio.css": "/* Los estilos se concatenan en el orden de _orden.txt. */\n",
  "src/css/01-base.css": "/* ==== 01-base.css ==== */\n/* ================= escala, color y cabecera =================\n   Aplicación científica densa, como DoE y FTIR: una escala de espaciado en múltiplos\n   de 4 y la saturación reservada al dato. Todos los colores del cromo son\n   tokens de la suite (src/diseno/tokens.css), que ya cambian en oscuro con\n   prefers-color-scheme y con data-theme; lo que el paquete no nombra se\n   deriva con color-mix, nunca con un literal. */\n:root{\n  --e1:var(--erlen-esp-1,4px); --e2:var(--erlen-esp-2,8px); --e3:var(--erlen-esp-3,12px); --e4:var(--erlen-esp-4,16px); --e5:var(--erlen-esp-5,24px); --e6:var(--erlen-esp-6,32px);\n  --r1:var(--erlen-radio-campo,7px); --r2:var(--erlen-radio-pequeno,8px); --r3:var(--erlen-radio-tarjeta,12px);\n  --t0:var(--erlen-texto-xs,12px); --t1:12.5px; --t2:13.5px; --t3:15px; --t4:17px; --t5:22px;\n  --lh:1.55;\n  --alto-ctl:34px;\n  --bg:var(--erlen-papel); --panel:var(--erlen-superficie); --panel2:var(--erlen-superficie-2);\n  --panel3:color-mix(in srgb, var(--erlen-superficie-2) 90%, var(--erlen-tinta));\n  --tinta:var(--erlen-tinta); --mut:var(--erlen-tinta-suave);\n  --tenue:color-mix(in srgb, var(--erlen-tinta-suave) 82%, var(--erlen-papel));\n  --linea:var(--erlen-linea); --linea2:color-mix(in srgb, var(--erlen-linea) 55%, var(--erlen-papel)); --lineaF:var(--erlen-linea-fuerte);\n  --acc:var(--erlen-verde); --acc2:color-mix(in srgb, var(--erlen-verde) 82%, var(--erlen-tinta)); --accSuave:var(--erlen-verde-suave); --accTinta:var(--erlen-verde-contraste);\n  --ok:var(--erlen-verde); --okSuave:var(--erlen-verde-suave);\n  --warn:var(--erlen-ambar); --warnSuave:var(--erlen-ambar-suave);\n  --peligro:var(--erlen-peligro); --peligroSuave:var(--erlen-peligro-suave);\n  --sombraG:var(--erlen-sombra-panel); --sombraM:var(--erlen-sombra-menu);\n  --anillo:0 0 0 3px var(--erlen-ambar-suave);\n  --ui:var(--erlen-font-ui); --mono:var(--erlen-font-mono); --serif:var(--erlen-font-titulo); --cuerpo:var(--erlen-font-cuerpo);\n}\n\n*,::before,::after{box-sizing:border-box}\nhtml{overflow-x:hidden}\nbody{margin:0;font:var(--t3)/var(--lh) var(--ui);background:var(--bg);color:var(--tinta);-webkit-font-smoothing:antialiased;overflow-x:hidden}\n/* base.css del paquete estiliza button/input/select para apps de documento\n   (44 px, borde verde, negrita). Un programa con quince controles por pantalla\n   necesita su densidad: dentro de la app y de los modales se vuelve a cero y\n   cada clase (.btn, .ico, .inp) pone la suya. :is() da la especificidad de un\n   elemento, igual que base.css, y como esta hoja va después, gana; :where()\n   no bastaba y el botón del tema salía recortado por el relleno de 16 px. */\n:where(.app,.modal,.toasts) :is(button,input,select,textarea){min-height:0;padding:0;border:0;border-radius:0;background:none;color:inherit;font:inherit;font-weight:inherit;line-height:inherit;gap:0;transition:none}\n:where(.app,.modal,.toasts) button{display:inline-flex;align-items:center;justify-content:center}\n:where(.app,.modal,.toasts) button:hover{background:none;text-decoration:none;transform:none}\n:where(.app,.modal) :where(label,small){font-size:inherit}\n/* Foco ámbar visible (CONTRATO-APP §2): lo pone base.css; aquí se asegura\n   también en los controles densos, que reinician el borde. */\n:where(.app,.modal,.toasts) :focus-visible{outline:3px solid var(--erlen-foco);outline-offset:2px}\n\nh1,h2,h3,h4,h5{margin:0 0 var(--e2);line-height:1.25}\np{margin:0 0 var(--e2)}\na{color:var(--acc)}\n/* Enlaces dentro de texto corrido: subrayados, no solo por color (WCAG 1.4.1, axe link-in-text-block). */\n:is(p,li,.nota,.subtitulo) a:not([class]){text-decoration:underline;text-underline-offset:2px}\nhr,.sep-h{border:0;border-top:1px solid var(--linea);margin:var(--e5) 0}\nkbd{font:var(--t0) var(--mono);background:var(--panel3);border:1px solid var(--linea);border-radius:var(--erlen-radio-pequeno);padding:1px 5px}\ncode{font-family:var(--mono);font-size:.92em;background:var(--panel2);border-radius:var(--erlen-radio-pequeno);padding:0 3px}\n.visualmente-oculto{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:-1px;padding:0;border:0}\n.salta{position:absolute;left:var(--e2);top:-60px;z-index:200;background:var(--panel);color:var(--acc);padding:var(--e2) var(--e3);border-radius:var(--r1)}\n/* La sombra solo al verse: escondido a -60 px, su sombra se asomaba sobre la cabecera. */\n.salta:focus{top:var(--e2);box-shadow:var(--sombraM)}\n\n/* ---------- cabecera: los huecos del marco común (diseno/marco.css) ----------\n   La cabecera, la marca, el nombre del producto y el menú de la suite los pinta\n   el marco; aquí solo se visten los nodos de la app que van en sus huecos:\n   título del protocolo, guardado y el grupo de acciones. */\n.titulo-proy{flex:1 1 160px;min-width:0;max-width:360px;border:1px solid transparent!important;border-radius:var(--r1)!important;padding:6px var(--e2)!important;font:var(--t3) var(--ui);color:var(--tinta)}\n.titulo-proy:hover{border-color:var(--linea)!important}\n.titulo-proy:focus{border-color:var(--acc)!important;background:var(--panel2)!important;box-shadow:var(--anillo)}\n.estado-guardado{flex:none;font-size:var(--t1);color:var(--mut);white-space:nowrap}\n.estado-guardado[data-error]{padding:2px var(--e2);border-radius:var(--erlen-radio-badge);background:var(--warnSuave);color:var(--tinta);font-weight:700}\n.barra-acciones{display:flex;gap:var(--e2);align-items:center;flex:none}\n.barra-acciones .ico svg{width:20px;height:20px}\n\n/* Controles de 44 px en pantallas estrechas. En móvil «Guardado ✓» deja de\n   verse pero se sigue anunciando; «Sin guardar» se ve siempre. */\n@media (max-width:920px){\n  .titulo-proy{min-height:44px!important}\n  .barra-acciones .btn{min-height:44px!important}\n  .barra-acciones .ico{width:44px;height:44px}\n}\n@media (max-width:480px){.estado-guardado:not([data-error]){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}\n/* ≤ 600 px sin deshacer/rehacer en la barra (COHERENCIA-APPS §4): siguen en\n   la cinta y con Ctrl+Z. */\n@media (max-width:600px){.barra-historial{display:none!important}}\n.barra-acciones .ico:disabled{opacity:.4;cursor:default}\n",
  "src/css/02-controles.css": "/* ==== 02-controles.css ==== */\n/* ================= botones, campos, diálogos, avisos y toasts =================\n   Componentes de COHERENCIA-APPS §6, solo con tokens. Un botón principal por\n   bloque; los secundarios, en superficie con borde y texto verde. */\n.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--e2);min-height:var(--alto-ctl);padding:0 var(--e3);border-radius:var(--r1);font:600 var(--t2)/1.2 var(--ui);cursor:pointer;white-space:nowrap;transition:background var(--erlen-dur-micro,120ms) var(--erlen-ease,ease)}\n:where(.app,.modal,.toasts) .btn-sec,.btn-sec{background:var(--panel);border:1px solid var(--lineaF);color:var(--acc)}\n:where(.app,.modal,.toasts) .btn-sec:hover{background:var(--accSuave)}\n:where(.app,.modal,.toasts) .btn-pri,.btn-pri{background:var(--acc);color:var(--accTinta);border:1px solid var(--acc)}\n:where(.app,.modal,.toasts) .btn-pri:hover{background:var(--acc2)}\n:where(.app,.modal,.toasts) .btn-peligro{background:var(--peligro);color:var(--erlen-verde-contraste);border:1px solid var(--peligro)}\n:where(.app,.modal,.toasts) .btn-suave{color:var(--tinta)}\n:where(.app,.modal,.toasts) .btn-suave:hover{background:var(--accSuave)}\n.btn-mini{min-height:32px;padding:0 var(--e2);font-size:var(--t1)}\n.btn-ico svg{width:18px;height:18px}\n.fila-botones{display:flex;flex-wrap:wrap;gap:var(--e2);align-items:center}\n.ico{width:36px;height:36px;border-radius:var(--r1);color:var(--tinta);cursor:pointer;flex:none}\n:where(.app,.modal) .ico:hover{background:var(--accSuave)}\n.ico:disabled{opacity:.35;cursor:default}\n:where(.app,.modal) .ico:disabled:hover{background:none}\n\n.campo{display:flex;flex-direction:column;gap:4px;min-width:0}\n.campo-completo{grid-column:1/-1}\n.campo-etq{font:600 var(--t1)/1.3 var(--ui);color:var(--mut)}\n.campo-unidad{font-weight:400}\n.campo-ayuda{font-size:var(--t0);color:var(--mut);line-height:1.35}\n.campo-corto{max-width:220px}\n:where(.app,.modal) .inp{width:100%;min-height:var(--alto-ctl);padding:6px var(--e2);border:1px solid var(--lineaF);border-radius:var(--r1);background:var(--panel);color:var(--tinta);font:var(--t3)/1.4 var(--ui)}\n:where(.app,.modal) textarea.inp{min-height:0;resize:vertical;font-family:var(--ui);line-height:1.5}\n:where(.app,.modal) .inp:focus{border-color:var(--acc)}\n:where(.app,.modal) .inp-num{font-variant-numeric:tabular-nums;font-family:var(--mono)}\n:where(.app,.modal) .inp.erlen-campo-error,:where(.app,.modal) .inp[aria-invalid=\"true\"]{border-color:var(--peligro);background:var(--peligroSuave)}\n:where(.app,.modal) select.inp{padding-right:var(--e5)}\n.casilla-etq{display:inline-flex;align-items:center;gap:var(--e2);font-size:var(--t2);cursor:pointer;min-height:32px}\n.casilla{width:18px;height:18px;accent-color:var(--acc);flex:none}\n\n.modal-fondo{position:fixed;inset:0;z-index:300;background:color-mix(in srgb,var(--erlen-tinta) 28%,transparent);display:flex;align-items:center;justify-content:center;padding:var(--e4)}\n/* Diálogo de cristal, como dialog.erlen-dialogo del paquete: el desenfoque solo en la caja, con el token (que se apaga con las preferencias). */\n.modal{background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border:1px solid var(--erlen-vidrio-contorno);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro);color:var(--tinta);border-radius:var(--erlen-radio-panel,14px);box-shadow:var(--erlen-vidrio-relieve),var(--sombraG);width:min(560px,100%);max-height:calc(100dvh - 32px);display:flex;flex-direction:column}\n.modal-sm{width:min(420px,100%)}\n.modal-md{width:min(640px,100%)}\n.modal-cab{display:flex;align-items:center;justify-content:space-between;gap:var(--e3);padding:var(--e4) var(--e4) var(--e2)}\n.modal-tit{font:400 24px/1.2 var(--serif);margin:0}\n.modal-cuerpo{padding:var(--e2) var(--e4);overflow:auto;font-size:var(--t3)}\n.modal-cuerpo h3{font:700 var(--t2) var(--ui);margin:var(--e4) 0 var(--e1)}\n.modal-pie{display:flex;justify-content:flex-end;gap:var(--e2);padding:var(--e3) var(--e4) var(--e4)}\n\n.aviso{border:1px solid var(--linea);border-left:4px solid var(--acc);border-radius:var(--r2);padding:var(--e3) var(--e4);background:var(--panel);font-size:var(--t2)}\n.aviso-nota{border-left-color:var(--lineaF);background:var(--panel2)}\n.aviso-ok{border-left-color:var(--ok);background:var(--okSuave)}\n.aviso-error{border-left-color:var(--peligro);background:var(--peligroSuave)}\n.vacio{border:1px dashed var(--lineaF);border-radius:var(--r3);padding:var(--e5);display:flex;flex-direction:column;gap:var(--e2);align-items:flex-start;background:var(--panel)}\n.vacio h3{margin:0;font:400 var(--t5) var(--serif)}\n.vacio p{margin:0;color:var(--mut);max-width:62ch}\n\n.toasts{position:fixed;left:50%;bottom:var(--e5);transform:translateX(-50%);z-index:400;display:flex;flex-direction:column;gap:var(--e2);align-items:center;width:max-content;max-width:calc(100vw - 24px);pointer-events:none}\n.toast{pointer-events:auto;display:flex;align-items:center;gap:var(--e3);padding:var(--e2) var(--e4);border:1px solid var(--erlen-vidrio-contorno);border-radius:var(--erlen-radio-capsula,999px);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro);color:var(--tinta);box-shadow:var(--erlen-vidrio-relieve),var(--sombraM);font-size:var(--t2);max-width:100%}\n.toast-aviso{background:var(--warnSuave);color:var(--tinta);border:1px solid var(--warn);-webkit-backdrop-filter:none;backdrop-filter:none}\n.toast .btn-sec{background:var(--panel)}\n@media (prefers-reduced-motion:reduce){.btn{transition:none}}\n",
  "src/css/03-marco.css": "/* ==== 03-marco.css ==== */\n/* ================= el marco: índice y pantalla =================\n   La forma de app de oficina (COHERENCIA-APPS §4) —cabecera, cinta, columnas y\n   pie— la pinta el marco común (diseno/marco.css); aquí solo se visten los\n   nodos que la app pone en sus huecos: el índice del protocolo (#lateral), la\n   pantalla (#pantalla) y el pie (#pie-contenido). En escritorio solo se\n   desplazan los paneles, nunca la ventana. */\n.app{height:100vh;height:100dvh;min-width:0;overflow:hidden}\n.lateral{min-height:0;overflow:auto;overscroll-behavior:contain;padding:var(--e4) var(--e3);border-right:1px solid var(--erlen-vidrio-contorno);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio);display:flex;flex-direction:column;gap:var(--e2);font-size:var(--t2)}\n.pantalla{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:var(--e5) max(var(--e6),calc(100% - 1060px)) var(--e6) var(--e6);display:flex;flex-direction:column;gap:var(--e4)}\n.pantalla:focus{outline:none}\n.pantalla:focus-visible{outline:3px solid var(--erlen-foco);outline-offset:-3px}\n.pie-contenido{display:flex;align-items:center;justify-content:space-between;gap:var(--e2) var(--e4);flex-wrap:wrap;width:100%}\n.pie-enlaces{display:flex;gap:var(--e4);flex-wrap:wrap}\n.pie-enlaces a{color:var(--mut)}\n.pie-enlaces a:hover{color:var(--acc)}\n\n/* Vista → «Índice del protocolo»: el interruptor de la cinta oculta el hueco\n   de navegación del marco y lo conserva en las preferencias. */\nbody.sin-tira .erlen-marco-cuerpo.con-navegacion{grid-template-columns:minmax(0,1fr)}\nbody.sin-tira .erlen-marco-cuerpo>.erlen-marco-navegacion{display:none}\n\n/* Rótulo de panel: LM Sans 700, mayúsculas, 12 px, con el guion verde. */\n.panel-label,.eyebrow{display:flex;align-items:center;gap:6px;margin:var(--e2) 0 0;font:700 var(--t0)/1.3 var(--ui);letter-spacing:.13em;text-transform:uppercase;color:var(--mut)}\n.panel-label::before,.eyebrow::before{content:\"\";width:10px;height:2px;background:var(--acc);flex:none}\n.eyebrow{margin:0}\n.tira-titulo{font:400 var(--t4)/1.3 var(--serif);margin:0 0 var(--e1);overflow-wrap:anywhere}\n.tira-lista{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}\n/* Índice en cápsulas; la sección actual es la «lente» de cristal (COHERENCIA-APPS §0.1). */\n.tira-enlace{display:flex;justify-content:space-between;align-items:center;gap:var(--e2);min-height:36px;padding:var(--e1) var(--e2) var(--e1) var(--e3);border:1px solid transparent;border-radius:var(--erlen-radio-capsula,999px);color:var(--tinta);text-decoration:none}\n.tira-enlace:hover{background:var(--erlen-vidrio-tinte)}\n.tira-enlace[aria-current]{background:var(--erlen-vidrio-reflejo),var(--erlen-superficie);border-color:var(--erlen-vidrio-contorno);box-shadow:var(--erlen-vidrio-relieve);font-weight:700;color:var(--acc)}\n.tira-cuenta{min-width:24px;padding:0 6px;border-radius:var(--erlen-radio-badge,999px);background:var(--panel);border:1px solid var(--linea);font:var(--t0)/20px var(--mono);text-align:center;font-variant-numeric:tabular-nums;color:var(--mut)}\n.tira-revision{margin-top:var(--e2);display:flex;flex-direction:column;gap:var(--e1)}\n.barra-progreso{height:8px;border-radius:var(--erlen-radio-badge,999px);background:var(--panel);border:1px solid var(--linea);overflow:hidden}\n.barra-progreso span{display:block;height:100%;background:var(--acc)}\n.tira-nota{font-size:var(--t0);color:var(--mut);margin:0;line-height:1.4}\n.tira-ir{font-size:var(--t1)}\n.tira-efimero{padding:var(--e2);border:1px dashed var(--lineaF);border-radius:var(--r1)}\n\n.encabezado{display:flex;flex-direction:column;gap:var(--e1)}\n.titulo-pantalla{font:400 var(--erlen-h1-app,30px)/1.15 var(--serif);letter-spacing:-.3px;margin:0;color:var(--tinta)}\n.subtitulo{font-size:var(--t3);color:var(--mut);max-width:78ch;margin:0}\n.nota{font-size:var(--t1);color:var(--mut);margin:0;max-width:78ch}\n\n@media (max-width:920px){\n  /* El marco hace una sola columna y da el cajón accesible de navegación; el\n     interruptor «Índice del protocolo» enseña el índice sobre el trabajo,\n     como siempre. */\n  body.cajon-abierto .erlen-marco-cuerpo{grid-template-rows:minmax(0,auto) minmax(0,1fr)}\n  body.cajon-abierto .erlen-marco-cuerpo>.erlen-marco-navegacion{display:block}\n  body.cajon-abierto .lateral{border-right:0;border-bottom:1px solid var(--linea);overflow:visible}\n  .pantalla{padding:var(--e4) var(--e4) var(--e6)}\n  .tira-enlace{min-height:44px}\n}\n@media (max-width:420px){.pantalla{padding:var(--e3) 14px var(--e6)}}\n/* A ≤ 600 px el pie del marco es una tira con scroll: sin envolver, anchura natural. */\n@media (max-width:600px){\n .pie-contenido{flex:none;flex-wrap:nowrap;width:max-content;min-width:100%;max-width:none}\n}\n",
  "src/css/04-editor.css": "/* ==== 04-editor.css ==== */\n/* ================= el protocolo: bloques, tarjetas y resultados ================= */\n.bloque{border:1px solid var(--linea);border-radius:var(--r3);background:var(--panel);padding:var(--e4);display:flex;flex-direction:column;gap:var(--e3)}\n.bloque h3{margin:0;font:700 var(--t3) var(--ui)}\n.rejilla-campos{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:var(--e3)}\n.tarjeta-item{border:1px solid var(--linea);border-radius:var(--r3);background:var(--panel);padding:var(--e3) var(--e4) var(--e4);display:flex;flex-direction:column;gap:var(--e3);scroll-margin-top:var(--e4)}\n.tarjeta-item:focus-within{border-color:var(--lineaF)}\n.item-cab{display:flex;align-items:center;gap:var(--e2);min-width:0}\n.item-num{flex:none;width:28px;height:28px;border-radius:50%;background:var(--accSuave);color:var(--acc);font:700 var(--t1)/28px var(--mono);text-align:center}\n.item-tit{flex:1 1 auto;min-width:0;margin:0;font:700 var(--t3) var(--ui);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.item-acciones{display:flex;gap:2px;flex:none}\n.item-acciones .ico{width:32px;height:32px}\n.calculado{margin:0;padding:var(--e2) var(--e3);border-radius:var(--r1);background:var(--panel2);font:var(--t2)/1.45 var(--ui);font-variant-numeric:tabular-nums;color:var(--tinta)}\n.calculado:empty{display:none}\n.calculado-error{background:var(--peligroSuave)}\n.lista-simple{margin:0;padding-left:var(--e5);display:flex;flex-direction:column;gap:var(--e1)}\n\n.tabla-scroll{overflow-x:auto;max-width:100%}\n.tabla{border-collapse:collapse;width:100%;font-size:var(--t2);font-variant-numeric:tabular-nums}\n.tabla caption{text-align:left;font:700 var(--t1) var(--ui);color:var(--mut);padding-bottom:var(--e1)}\n.tabla th,.tabla td{border-bottom:1px solid var(--linea);padding:var(--e1) var(--e2);text-align:left;vertical-align:middle}\n.tabla thead th{font-weight:700;color:var(--mut);font-size:var(--t1)}\n.tabla .num{text-align:right}\n.tabla td .inp{max-width:140px;margin-left:auto;text-align:right}\n.col-desv.fuera{color:var(--peligro);font-weight:700}\n\n.fila-herramientas{display:flex;flex-wrap:wrap;gap:var(--e3);align-items:flex-end;justify-content:space-between}\n.hoja-metodos{border:1px solid var(--linea);border-radius:var(--r3);background:var(--panel);padding:var(--e5) var(--e5) var(--e3);font:var(--erlen-texto-base,17px)/1.7 var(--cuerpo);max-width:80ch}\n.hoja-metodos h3{font:700 var(--t3) var(--ui);margin:0 0 var(--e1)}\n.hoja-metodos p{margin:0 0 var(--e4)}\n\n.metricas{display:flex;flex-wrap:wrap;gap:var(--e3)}\n.metrica{flex:1 1 140px;border:1px solid var(--linea);border-radius:var(--r3);background:var(--panel);padding:var(--e3) var(--e4);display:flex;flex-direction:column}\n.metrica-valor{font:400 32px/1.1 var(--serif);font-variant-numeric:tabular-nums}\n.metrica-etq{font-size:var(--t1);color:var(--mut)}\n.lista-revision{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--e2)}\n.lista-revision li{display:flex;align-items:center;gap:var(--e3);flex-wrap:wrap}\n.rev-nivel{flex:none;min-width:92px;padding:2px var(--e2);border-radius:var(--erlen-radio-badge,999px);font:700 var(--t0)/1.6 var(--ui);text-align:center;text-transform:uppercase;letter-spacing:.06em}\n.rev-falta .rev-nivel{background:var(--peligroSuave);color:var(--tinta)}\n.rev-sugerencia .rev-nivel{background:var(--panel2);color:var(--mut);border:1px solid var(--linea)}\n.rev-texto{flex:1 1 260px;min-width:0}\n\n.calculadora{scroll-margin-top:var(--e4)}\n.calculadora:focus{outline:none}\n.calculadora:focus-visible{outline:3px solid var(--erlen-foco);outline-offset:3px}\n.calc-salida{display:flex;flex-direction:column;gap:var(--e2)}\n.resultado{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,1fr);gap:var(--e1) var(--e4);margin:0;padding:var(--e3);border-radius:var(--r1);background:var(--panel2);font-variant-numeric:tabular-nums}\n.resultado dt{color:var(--mut);font-size:var(--t2)}\n.resultado dd{margin:0;font-weight:600;overflow-wrap:anywhere}\n.explicacion{margin:0;font:var(--t3)/1.6 var(--cuerpo);max-width:80ch}\n@media (max-width:600px){\n  .rejilla-campos{grid-template-columns:minmax(0,1fr)}\n  .resultado{grid-template-columns:minmax(0,1fr)}\n  .item-acciones .ico{width:44px;height:44px}\n  .btn{min-height:44px}\n  .hoja-metodos{padding:var(--e4)}\n}\n",
  "src/css/05-herramientas.css": "/* ==== 05-herramientas.css ==== */\n/* ================= calculadoras, calidad y laboratorio =================\n   Componentes de las herramientas: categorías, gráficas, pictogramas GHS,\n   mapa de placa, lista previa y tablas editables. Solo tokens. */\n\n/* ---------- categorías de calculadoras ---------- */\n.fila-categorias{display:flex;flex-wrap:wrap;gap:var(--e2)}\n.calculadora .rejilla-campos{margin-top:var(--e1)}\n.calc-salida{display:flex;flex-direction:column;gap:var(--e2)}\n.calc-salida:empty{display:none}\n.resultado{display:grid;grid-template-columns:max-content 1fr;gap:var(--e1) var(--e4);margin:0;font-variant-numeric:tabular-nums}\n.resultado dt{color:var(--mut)}\n.resultado dd{margin:0;font-weight:600}\n.explicacion{margin:0;font-size:var(--t2);color:var(--mut);max-width:78ch}\n.grupo-var{border:1px solid var(--linea);border-radius:var(--r2);padding:var(--e2) var(--e3);display:flex;flex-wrap:wrap;gap:var(--e3);align-items:flex-end;margin:0}\n.grupo-var legend{padding:0 var(--e1)}\n.grupo-casillas{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:var(--e1) var(--e4)}\n.grupo-casillas legend{font-size:var(--t1);color:var(--mut);padding:0;margin-bottom:var(--e1)}\n\n/* ---------- gráfica de una serie ----------\n   Una serie, sin leyenda (el título la nombra); línea de 2 px, marcas de\n   9 px con diana de 24 px para el puntero; la rejilla, recesiva. Un punto\n   fuera de control lleva color, anillo y texto (en el título y la tabla). */\n.figura{margin:0;display:flex;flex-direction:column;gap:var(--e1)}\n.figura figcaption{font-size:var(--t1);color:var(--mut)}\n.grafica{width:100%;max-width:640px;height:auto;display:block;overflow:visible}\n.g-rejilla{stroke:var(--linea2);stroke-width:1}\n.g-eje,.g-titulo-eje{fill:var(--mut);font:11px var(--ui);font-variant-numeric:tabular-nums}\n.g-titulo-eje{font-size:12px}\n.g-serie{fill:none;stroke:var(--acc);stroke-width:2;stroke-linejoin:round}\n.g-referencia{stroke:var(--lineaF);stroke-width:1.5;stroke-dasharray:5 4}\n.g-centro{stroke:var(--mut);stroke-width:1.5}\n.g-diana{fill:transparent;stroke:none}\n.g-marca{fill:var(--acc);stroke:var(--panel);stroke-width:2}\n.g-punto:hover .g-marca{r:6}\n.g-alerta .g-marca{fill:var(--peligro)}\n.g-anillo{fill:none;stroke:var(--peligro);stroke-width:2}\n\n/* ---------- pictogramas GHS ---------- */\n.fila-pictogramas{display:inline-flex;flex-wrap:wrap;gap:var(--e1) var(--e2);vertical-align:middle}\n.pictograma{display:inline-flex;align-items:center;gap:var(--e1);font-size:var(--t1);color:var(--tinta);padding:2px var(--e2) 2px 2px;border:1px solid var(--linea);border-radius:999px;background:var(--panel)}\n.pictograma-ico{display:inline-flex;color:var(--peligro)}\n.detalle-reactivo{border-top:1px solid var(--linea2);padding-top:var(--e2)}\n.detalle-reactivo>summary{cursor:pointer;font-size:var(--t2);font-weight:600;color:var(--mut);padding:var(--e1) 0}\n.detalle-reactivo[open]>summary{margin-bottom:var(--e2)}\n.detalle-reactivo>*+*:not(summary){margin-top:var(--e2)}\n\n/* ---------- mapa de placa ---------- */\n.placa{border-collapse:separate;border-spacing:2px;font:11px var(--mono);font-variant-numeric:tabular-nums}\n.placa th{font-weight:600;color:var(--mut);padding:0 var(--e1);text-align:center}\n.pozo{width:34px;height:28px;text-align:center;border-radius:999px;border:1px solid var(--linea);background:var(--panel);color:var(--tinta)}\n.pozo-blanco{background:var(--panel3)}\n.pozo-patron{background:var(--accSuave);border-color:var(--acc)}\n.pozo-muestra{background:var(--warnSuave);border-color:var(--warn)}\n\n/* ---------- lista previa ---------- */\n.hoja-verificacion{border:1px solid var(--linea);border-radius:var(--r3);background:var(--panel);padding:var(--e4);display:flex;flex-direction:column;gap:var(--e3)}\n.hoja-verificacion h3{margin:0;font:700 var(--t4) var(--ui)}\n.hoja-verificacion h4{margin:0 0 var(--e1);font:700 var(--t2) var(--ui);text-transform:uppercase;letter-spacing:.04em;color:var(--mut)}\n.lista-verificacion{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--e1)}\n.lista-verificacion label{display:flex;gap:var(--e2);align-items:flex-start;cursor:pointer}\n.lista-verificacion .casilla{margin-top:3px}\n.lista-verificacion small{display:block;color:var(--mut);font-size:var(--t1)}\n.lv-alerta small{color:var(--peligro)}\n.lv-alerta span::before{content:\"Atención: \";font-weight:700;color:var(--peligro)}\n\n/* ---------- tablas editables ---------- */\n.tabla-editable td{padding:2px var(--e1)}\n.tabla-editable .inp{width:100%;min-width:90px}\n.tabla-scroll .tabla td.num,.tabla-scroll .tabla thead th{white-space:nowrap}\n\n@media print{\n  .detalle-reactivo>summary{display:none}\n  .hoja-verificacion{border:0;padding:0}\n  .lista-verificacion .casilla{appearance:none;-webkit-appearance:none;border:1.5px solid #000;border-radius:2px}\n}\n",
  "src/css/06-imprimir.css": "/* ==== 06-imprimir.css ==== */\n/* ================= impresión =================\n   Se imprime la sección abierta sin la interfaz, en blanco y negro legible;\n   la hoja de pesadas de un lote se imprime sola. El marco común oculta su\n   cabecera, cinta, índice y pie al imprimir (diseno/marco.css); aquí se\n   estira la pantalla para que use toda la hoja. */\n@media print{\n  .app{height:auto;overflow:visible}\n  .erlen-marco-cuerpo.con-navegacion{grid-template-columns:minmax(0,1fr)}\n  .toasts,.salta,.item-acciones,.fila-botones,.fila-herramientas{display:none!important}\n  .pantalla{overflow:visible;padding:0}\n  .tarjeta-item,.bloque,.hoja-metodos{break-inside:avoid;box-shadow:none}\n  body.imprime-seleccion .pantalla>*:not(.imprimir-solo){display:none!important}\n  .inp{border:0!important;background:none!important;padding:0!important}\n}\n",
  "src/css/07-ampliacion.css": "/* SPDX-License-Identifier: AGPL-3.0-only */\n.placa-scroll{max-width:100%;overflow:auto}\n.placa-mapa{table-layout:fixed;min-width:540px}\n.placa-mapa td{min-width:70px;vertical-align:top}\n.placa-mapa button{max-width:100%;overflow-wrap:anywhere;white-space:normal}\n.grafica-cientifica{width:100%;height:300px;background:var(--panel);overflow:hidden;margin-block:1rem}\n.estructura-molecular{max-width:100%;height:auto;background:var(--panel)}\n.ecuacion-mathml{overflow:auto;padding:1rem}\n\n.secuencia-texto{white-space:pre-wrap;overflow-wrap:anywhere;max-height:24rem;overflow:auto;font-family:var(--mono)}\n.secuencia-identificador,.secuencia-huella{overflow-wrap:anywhere}\n\n.flujo-scroll{max-width:100%;overflow:auto;margin-block:1rem;color:var(--tinta)}\n.flujo-nodo{cursor:pointer}\n.flujo-nodo rect{fill:var(--panel);stroke:currentColor;stroke-width:1.2}\n.flujo-nodo text{fill:var(--tinta);font:13px var(--ui)}\n.flujo-nodo-critico rect{stroke-width:2.5}\n.flujo-nodo:focus rect{stroke:var(--acc);stroke-width:3}\n.flujo-fila{padding:1rem;border:1px solid var(--linea);margin-block:.5rem;background:var(--panel)}\n.lista-dependencias{display:grid;gap:.5rem}\n",
  "src/cuerpo.html": "<!-- Armazón de la suite Erlen (docs/COHERENCIA-APPS.md del portal). El marco común\n     (src/diseno/suite-marco.js) mueve estos nodos a sus huecos — cabecera con la marca,\n     el nombre del producto, el menú de la suite, el título del protocolo, el guardado y\n     las acciones; cinta; índice del protocolo a la izquierda; pantalla al centro; pie —\n     y los devuelve si se destruye. La pantalla de inicio común se monta aparte, sobre\n     <body>, y deja todo esto inerte mientras está abierta. -->\n<a class=\"salta\" href=\"#pantalla\">Saltar al contenido</a>\n<div class=\"app\" id=\"app\">\n  <input id=\"tituloProtocolo\" class=\"titulo-proy\" aria-label=\"Título del protocolo\" placeholder=\"Protocolo sin título\" autocomplete=\"off\">\n  <span id=\"estadoGuardado\" class=\"estado-guardado\" role=\"status\" aria-live=\"polite\"></span>\n  <div class=\"barra-acciones\">\n    <button type=\"button\" class=\"ico barra-historial\" id=\"deshacerBtn\" aria-label=\"Deshacer\" title=\"Deshacer (Ctrl+Z)\"><svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M9 7L4 12l5 5\"/><path d=\"M4 12h11a5 5 0 0 1 0 10h-3\"/></svg></button>\n    <button type=\"button\" class=\"ico barra-historial\" id=\"rehacerBtn\" aria-label=\"Rehacer\" title=\"Rehacer (Ctrl+Y)\"><svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M15 7l5 5-5 5\"/><path d=\"M20 12H9a5 5 0 0 0 0 10h3\"/></svg></button>\n    <button type=\"button\" class=\"btn btn-pri\" id=\"metodosBtn\" title=\"La sección «Materiales y métodos» redactada a partir del protocolo\">Métodos</button>\n    <button type=\"button\" class=\"ico\" id=\"acercaBtn\" aria-label=\"Acerca de Erlen Methods\" title=\"Acerca de Erlen Methods: licencia, código fuente y atajos\"><svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\" focusable=\"false\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M9.6 9.3a2.5 2.5 0 1 1 3.4 2.3c-.6.3-1 .8-1 1.5v.6\"/><path d=\"M12 16.6v.4\"/></svg></button>\n  </div>\n  <div id=\"cinta\"></div>\n  <nav id=\"lateral\" class=\"lateral\" aria-label=\"Secciones del protocolo\"></nav>\n  <div id=\"pantalla\" class=\"pantalla erlen-enter\" tabindex=\"-1\"></div>\n  <div id=\"pie-contenido\" class=\"pie-contenido\">\n    <span class=\"pie-estado-app\">Erlen Methods __VERSION__ · Versión alfa · sin cuenta, todo en este navegador</span>\n    <nav class=\"pie-enlaces\" aria-label=\"Enlaces de la suite\">\n      <a href=\"../\">Volver a la suite</a>\n      <a href=\"source.json\">Fuente</a>\n      <a href=\"LICENSE\">AGPLv3</a>\n      <a href=\"https://github.com/erlen-frontier-ops/erlen-methods\" target=\"_blank\" rel=\"noopener\">Repositorio</a>\n    </nav>\n  </div>\n  <input type=\"file\" id=\"abrirArchivo\" accept=\".json,application/json\" class=\"visualmente-oculto\" tabindex=\"-1\" aria-hidden=\"true\">\n</div>\n<div id=\"toasts\" class=\"toasts\" role=\"status\" aria-live=\"polite\" aria-atomic=\"false\"></div>\n<div id=\"modalRoot\"></div>\n",
  "src/datos/elementos.json": "{\n \"fuente\": \"Pesos atómicos estándar abreviados (CIAAW/IUPAC 2021): cinco cifras significativas, o las que admite el intervalo natural; valores convencionales para los elementos con intervalo (H, Li, B, C, N, O, Mg, Si, S, Cl, Br, Tl). Sin elementos sin isótopos estables salvo Th, Pa y U.\",\n \"pesos\": {\n  \"H\": 1.008,\n  \"He\": 4.0026,\n  \"Li\": 6.94,\n  \"Be\": 9.0122,\n  \"B\": 10.81,\n  \"C\": 12.011,\n  \"N\": 14.007,\n  \"O\": 15.999,\n  \"F\": 18.998,\n  \"Ne\": 20.18,\n  \"Na\": 22.99,\n  \"Mg\": 24.305,\n  \"Al\": 26.982,\n  \"Si\": 28.085,\n  \"P\": 30.974,\n  \"S\": 32.06,\n  \"Cl\": 35.45,\n  \"Ar\": 39.95,\n  \"K\": 39.098,\n  \"Ca\": 40.078,\n  \"Sc\": 44.956,\n  \"Ti\": 47.867,\n  \"V\": 50.942,\n  \"Cr\": 51.996,\n  \"Mn\": 54.938,\n  \"Fe\": 55.845,\n  \"Co\": 58.933,\n  \"Ni\": 58.693,\n  \"Cu\": 63.546,\n  \"Zn\": 65.38,\n  \"Ga\": 69.723,\n  \"Ge\": 72.63,\n  \"As\": 74.922,\n  \"Se\": 78.971,\n  \"Br\": 79.904,\n  \"Kr\": 83.798,\n  \"Rb\": 85.468,\n  \"Sr\": 87.62,\n  \"Y\": 88.906,\n  \"Zr\": 91.224,\n  \"Nb\": 92.906,\n  \"Mo\": 95.95,\n  \"Ru\": 101.07,\n  \"Rh\": 102.91,\n  \"Pd\": 106.42,\n  \"Ag\": 107.87,\n  \"Cd\": 112.41,\n  \"In\": 114.82,\n  \"Sn\": 118.71,\n  \"Sb\": 121.76,\n  \"Te\": 127.6,\n  \"I\": 126.9,\n  \"Xe\": 131.29,\n  \"Cs\": 132.91,\n  \"Ba\": 137.33,\n  \"La\": 138.91,\n  \"Ce\": 140.12,\n  \"Pr\": 140.91,\n  \"Nd\": 144.24,\n  \"Sm\": 150.36,\n  \"Eu\": 151.96,\n  \"Gd\": 157.25,\n  \"Tb\": 158.93,\n  \"Dy\": 162.5,\n  \"Ho\": 164.93,\n  \"Er\": 167.26,\n  \"Tm\": 168.93,\n  \"Yb\": 173.05,\n  \"Lu\": 174.97,\n  \"Hf\": 178.49,\n  \"Ta\": 180.95,\n  \"W\": 183.84,\n  \"Re\": 186.21,\n  \"Os\": 190.23,\n  \"Ir\": 192.22,\n  \"Pt\": 195.08,\n  \"Au\": 196.97,\n  \"Hg\": 200.59,\n  \"Tl\": 204.38,\n  \"Pb\": 207.2,\n  \"Bi\": 208.98,\n  \"Th\": 232.04,\n  \"Pa\": 231.04,\n  \"U\": 238.03\n }\n}",
  "src/datos/gases.json": "{\n \"fuente\": \"Constantes de van der Waals del CRC Handbook of Chemistry and Physics (a en L²·bar/mol², b en L/mol). Verifica el valor en tu edición antes de publicar.\",\n \"gases\": {\n  \"He\": {\n   \"nombre\": \"Helio\",\n   \"a\": 0.0346,\n   \"b\": 0.0238\n  },\n  \"H2\": {\n   \"nombre\": \"Hidrógeno\",\n   \"a\": 0.2452,\n   \"b\": 0.02651\n  },\n  \"N2\": {\n   \"nombre\": \"Nitrógeno\",\n   \"a\": 1.37,\n   \"b\": 0.0387\n  },\n  \"O2\": {\n   \"nombre\": \"Oxígeno\",\n   \"a\": 1.382,\n   \"b\": 0.03186\n  },\n  \"Ar\": {\n   \"nombre\": \"Argón\",\n   \"a\": 1.355,\n   \"b\": 0.03201\n  },\n  \"CO\": {\n   \"nombre\": \"Monóxido de carbono\",\n   \"a\": 1.472,\n   \"b\": 0.03948\n  },\n  \"CO2\": {\n   \"nombre\": \"Dióxido de carbono\",\n   \"a\": 3.658,\n   \"b\": 0.04286\n  },\n  \"CH4\": {\n   \"nombre\": \"Metano\",\n   \"a\": 2.303,\n   \"b\": 0.0431\n  },\n  \"NH3\": {\n   \"nombre\": \"Amoníaco\",\n   \"a\": 4.225,\n   \"b\": 0.0371\n  },\n  \"H2O\": {\n   \"nombre\": \"Agua (vapor)\",\n   \"a\": 5.537,\n   \"b\": 0.03049\n  }\n }\n}",
  "src/datos/ghs.json": "{\n \"fuente\": \"Textos de las indicaciones de peligro (H, EUH) y consejos de prudencia (P) del Reglamento (CE) n.º 1272/2008 (CLP), anexos III y IV, en español, con los pictogramas GHS que les corresponden. Es una selección de uso frecuente. La clasificación de cada sustancia la da la ficha de datos de seguridad de tu proveedor: la app no la supone.\",\n \"H\": {\n  \"H200\": \"Explosivo inestable.\",\n  \"H201\": \"Explosivo; peligro de explosión en masa.\",\n  \"H202\": \"Explosivo; grave peligro de proyección.\",\n  \"H203\": \"Explosivo; peligro de incendio, de onda expansiva o de proyección.\",\n  \"H204\": \"Peligro de incendio o de proyección.\",\n  \"H205\": \"Peligro de explosión en masa en caso de incendio.\",\n  \"H220\": \"Gas extremadamente inflamable.\",\n  \"H221\": \"Gas inflamable.\",\n  \"H222\": \"Aerosol extremadamente inflamable.\",\n  \"H223\": \"Aerosol inflamable.\",\n  \"H224\": \"Líquido y vapores extremadamente inflamables.\",\n  \"H225\": \"Líquido y vapores muy inflamables.\",\n  \"H226\": \"Líquidos y vapores inflamables.\",\n  \"H228\": \"Sólido inflamable.\",\n  \"H229\": \"Recipiente a presión: puede reventar si se calienta.\",\n  \"H240\": \"Peligro de explosión en caso de calentamiento.\",\n  \"H241\": \"Peligro de incendio o explosión en caso de calentamiento.\",\n  \"H242\": \"Peligro de incendio en caso de calentamiento.\",\n  \"H250\": \"Se inflama espontáneamente en contacto con el aire.\",\n  \"H251\": \"Se calienta espontáneamente; puede inflamarse.\",\n  \"H252\": \"Se calienta espontáneamente en grandes cantidades; puede inflamarse.\",\n  \"H260\": \"En contacto con el agua desprende gases inflamables que pueden inflamarse espontáneamente.\",\n  \"H261\": \"En contacto con el agua desprende gases inflamables.\",\n  \"H270\": \"Puede provocar o agravar un incendio; comburente.\",\n  \"H271\": \"Puede provocar un incendio o una explosión; muy comburente.\",\n  \"H272\": \"Puede agravar un incendio; comburente.\",\n  \"H280\": \"Contiene gas a presión; peligro de explosión en caso de calentamiento.\",\n  \"H281\": \"Contiene un gas refrigerado; puede provocar quemaduras o lesiones criogénicas.\",\n  \"H290\": \"Puede ser corrosivo para los metales.\",\n  \"H300\": \"Mortal en caso de ingestión.\",\n  \"H301\": \"Tóxico en caso de ingestión.\",\n  \"H302\": \"Nocivo en caso de ingestión.\",\n  \"H304\": \"Puede ser mortal en caso de ingestión y penetración en las vías respiratorias.\",\n  \"H310\": \"Mortal en contacto con la piel.\",\n  \"H311\": \"Tóxico en contacto con la piel.\",\n  \"H312\": \"Nocivo en contacto con la piel.\",\n  \"H314\": \"Provoca quemaduras graves en la piel y lesiones oculares graves.\",\n  \"H315\": \"Provoca irritación cutánea.\",\n  \"H317\": \"Puede provocar una reacción alérgica en la piel.\",\n  \"H318\": \"Provoca lesiones oculares graves.\",\n  \"H319\": \"Provoca irritación ocular grave.\",\n  \"H330\": \"Mortal en caso de inhalación.\",\n  \"H331\": \"Tóxico en caso de inhalación.\",\n  \"H332\": \"Nocivo en caso de inhalación.\",\n  \"H334\": \"Puede provocar síntomas de alergia o asma o dificultades respiratorias en caso de inhalación.\",\n  \"H335\": \"Puede irritar las vías respiratorias.\",\n  \"H336\": \"Puede provocar somnolencia o vértigo.\",\n  \"H340\": \"Puede provocar defectos genéticos.\",\n  \"H341\": \"Se sospecha que provoca defectos genéticos.\",\n  \"H350\": \"Puede provocar cáncer.\",\n  \"H351\": \"Se sospecha que provoca cáncer.\",\n  \"H360\": \"Puede perjudicar a la fertilidad o dañar al feto.\",\n  \"H361\": \"Se sospecha que perjudica a la fertilidad o daña al feto.\",\n  \"H362\": \"Puede perjudicar a los niños alimentados con leche materna.\",\n  \"H370\": \"Provoca daños en los órganos.\",\n  \"H371\": \"Puede provocar daños en los órganos.\",\n  \"H372\": \"Provoca daños en los órganos tras exposiciones prolongadas o repetidas.\",\n  \"H373\": \"Puede provocar daños en los órganos tras exposiciones prolongadas o repetidas.\",\n  \"H400\": \"Muy tóxico para los organismos acuáticos.\",\n  \"H410\": \"Muy tóxico para los organismos acuáticos, con efectos nocivos duraderos.\",\n  \"H411\": \"Tóxico para los organismos acuáticos, con efectos nocivos duraderos.\",\n  \"H412\": \"Nocivo para los organismos acuáticos, con efectos nocivos duraderos.\",\n  \"H413\": \"Puede ser nocivo para los organismos acuáticos, con efectos nocivos duraderos.\",\n  \"H420\": \"Causa daños a la salud pública y el medio ambiente al destruir el ozono en la atmósfera superior.\",\n  \"EUH014\": \"Reacciona violentamente con el agua.\",\n  \"EUH019\": \"Puede formar peróxidos explosivos.\",\n  \"EUH029\": \"En contacto con agua libera gases tóxicos.\",\n  \"EUH031\": \"En contacto con ácidos libera gases tóxicos.\",\n  \"EUH032\": \"En contacto con ácidos libera gases muy tóxicos.\",\n  \"EUH044\": \"Riesgo de explosión al calentarlo en ambiente confinado.\",\n  \"EUH066\": \"La exposición repetida puede provocar sequedad o formación de grietas en la piel.\",\n  \"EUH071\": \"Corrosivo para las vías respiratorias.\"\n },\n \"P\": {\n  \"P201\": \"Procurarse las instrucciones antes del uso.\",\n  \"P202\": \"No manipular antes de haber leído y comprendido todas las precauciones de seguridad.\",\n  \"P210\": \"Mantener alejado del calor, de superficies calientes, de chispas, de llamas abiertas y de cualquier otra fuente de ignición. No fumar.\",\n  \"P220\": \"Mantener alejado de la ropa y otros materiales combustibles.\",\n  \"P222\": \"No dejar que entre en contacto con el aire.\",\n  \"P223\": \"Evitar el contacto con el agua.\",\n  \"P231\": \"Manipular y almacenar el contenido en atmósfera de gas inerte.\",\n  \"P233\": \"Mantener el recipiente herméticamente cerrado.\",\n  \"P234\": \"Conservar únicamente en el recipiente original.\",\n  \"P240\": \"Toma de tierra y enlace equipotencial del recipiente y del equipo receptor.\",\n  \"P241\": \"Utilizar material eléctrico, de ventilación o de iluminación antideflagrante.\",\n  \"P242\": \"Utilizar herramientas que no produzcan chispas.\",\n  \"P243\": \"Tomar medidas de precaución contra las descargas electrostáticas.\",\n  \"P260\": \"No respirar el polvo, el humo, el gas, la niebla, los vapores o el aerosol.\",\n  \"P261\": \"Evitar respirar el polvo, el humo, el gas, la niebla, los vapores o el aerosol.\",\n  \"P262\": \"Evitar el contacto con los ojos, la piel o la ropa.\",\n  \"P264\": \"Lavarse concienzudamente tras la manipulación.\",\n  \"P270\": \"No comer, beber ni fumar durante su utilización.\",\n  \"P271\": \"Utilizar únicamente en exteriores o en un lugar bien ventilado.\",\n  \"P272\": \"Las prendas de trabajo contaminadas no podrán sacarse del lugar de trabajo.\",\n  \"P273\": \"Evitar su liberación al medio ambiente.\",\n  \"P280\": \"Llevar guantes, prendas, gafas o máscara de protección.\",\n  \"P284\": \"En caso de ventilación insuficiente, llevar equipo de protección respiratoria.\",\n  \"P301+P310\": \"EN CASO DE INGESTIÓN: llamar inmediatamente a un centro de toxicología o a un médico.\",\n  \"P301+P330+P331\": \"EN CASO DE INGESTIÓN: enjuagar la boca. NO provocar el vómito.\",\n  \"P302+P352\": \"EN CASO DE CONTACTO CON LA PIEL: lavar con abundante agua.\",\n  \"P303+P361+P353\": \"EN CASO DE CONTACTO CON LA PIEL (o el pelo): quitar inmediatamente toda la ropa contaminada. Aclararse la piel con agua o ducharse.\",\n  \"P304+P340\": \"EN CASO DE INHALACIÓN: transportar a la persona al aire libre y mantenerla en una posición que le facilite la respiración.\",\n  \"P305+P351+P338\": \"EN CASO DE CONTACTO CON LOS OJOS: aclarar cuidadosamente con agua durante varios minutos. Quitar las lentes de contacto, si lleva y resulta fácil. Seguir aclarando.\",\n  \"P308+P313\": \"EN CASO DE exposición manifiesta o presunta: consultar a un médico.\",\n  \"P310\": \"Llamar inmediatamente a un centro de toxicología o a un médico.\",\n  \"P370+P378\": \"En caso de incendio: utilizar el medio de extinción que indique la ficha de datos de seguridad.\",\n  \"P391\": \"Recoger el vertido.\",\n  \"P403+P233\": \"Almacenar en un lugar bien ventilado. Mantener el recipiente cerrado herméticamente.\",\n  \"P405\": \"Guardar bajo llave.\",\n  \"P501\": \"Eliminar el contenido o el recipiente conforme a la normativa local.\"\n },\n \"pictogramas\": {\n  \"GHS01\": {\n   \"nombre\": \"Explosivo\",\n   \"h\": [\n    \"H200\",\n    \"H201\",\n    \"H202\",\n    \"H203\",\n    \"H204\",\n    \"H240\",\n    \"H241\"\n   ]\n  },\n  \"GHS02\": {\n   \"nombre\": \"Inflamable\",\n   \"h\": [\n    \"H220\",\n    \"H222\",\n    \"H223\",\n    \"H224\",\n    \"H225\",\n    \"H226\",\n    \"H228\",\n    \"H241\",\n    \"H242\",\n    \"H250\",\n    \"H251\",\n    \"H252\",\n    \"H260\",\n    \"H261\"\n   ]\n  },\n  \"GHS03\": {\n   \"nombre\": \"Comburente\",\n   \"h\": [\n    \"H270\",\n    \"H271\",\n    \"H272\"\n   ]\n  },\n  \"GHS04\": {\n   \"nombre\": \"Gas a presión\",\n   \"h\": [\n    \"H280\",\n    \"H281\"\n   ]\n  },\n  \"GHS05\": {\n   \"nombre\": \"Corrosivo\",\n   \"h\": [\n    \"H290\",\n    \"H314\",\n    \"H318\"\n   ]\n  },\n  \"GHS06\": {\n   \"nombre\": \"Toxicidad aguda\",\n   \"h\": [\n    \"H300\",\n    \"H301\",\n    \"H310\",\n    \"H311\",\n    \"H330\",\n    \"H331\"\n   ]\n  },\n  \"GHS07\": {\n   \"nombre\": \"Nocivo o irritante\",\n   \"h\": [\n    \"H302\",\n    \"H312\",\n    \"H332\",\n    \"H315\",\n    \"H317\",\n    \"H319\",\n    \"H335\",\n    \"H336\",\n    \"H420\"\n   ]\n  },\n  \"GHS08\": {\n   \"nombre\": \"Peligro para la salud\",\n   \"h\": [\n    \"H304\",\n    \"H334\",\n    \"H340\",\n    \"H341\",\n    \"H350\",\n    \"H351\",\n    \"H360\",\n    \"H361\",\n    \"H370\",\n    \"H371\",\n    \"H372\",\n    \"H373\"\n   ]\n  },\n  \"GHS09\": {\n   \"nombre\": \"Peligro para el medio ambiente\",\n   \"h\": [\n    \"H400\",\n    \"H410\",\n    \"H411\"\n   ]\n  }\n }\n}",
  "src/datos/isotopos.json": "{\n \"fuente\": \"Periodos de semidesintegración de referencia (NNDC, NuDat). Verifica el valor vigente para trabajo regulado.\",\n \"isotopos\": {\n  \"H-3\": {\n   \"t\": 12.32,\n   \"u\": \"año\"\n  },\n  \"C-14\": {\n   \"t\": 5700,\n   \"u\": \"año\"\n  },\n  \"Na-22\": {\n   \"t\": 2.6018,\n   \"u\": \"año\"\n  },\n  \"P-32\": {\n   \"t\": 14.268,\n   \"u\": \"d\"\n  },\n  \"S-35\": {\n   \"t\": 87.37,\n   \"u\": \"d\"\n  },\n  \"Co-60\": {\n   \"t\": 5.2714,\n   \"u\": \"año\"\n  },\n  \"Tc-99m\": {\n   \"t\": 6.0067,\n   \"u\": \"h\"\n  },\n  \"I-131\": {\n   \"t\": 8.0252,\n   \"u\": \"d\"\n  },\n  \"Cs-137\": {\n   \"t\": 30.08,\n   \"u\": \"año\"\n  },\n  \"F-18\": {\n   \"t\": 109.77,\n   \"u\": \"min\"\n  }\n }\n}",
  "src/datos/plantillas.json": "{\n \"bradford\": {\n  \"disciplina\": \"Bioquímica · valores ilustrativos\",\n  \"tarjeta\": \"Curva de patrones de BSA en microplaca, lectura a 595 nm y la concentración de las muestras con su incertidumbre en la calculadora de calibración.\",\n  \"protocolo\": {\n   \"format\": \"erlen-methods-protocolo-v1\",\n   \"titulo\": \"Cuantificación de proteína total por el método de Bradford en microplaca\",\n   \"tipo\": \"analisis\",\n   \"objetivo\": \"Cuantificar la proteína total de extractos con una curva de patrones de albúmina sérica bovina. Los valores de esta plantilla son ilustrativos: usa los de tu kit y tu lector.\",\n   \"resultadoNombre\": \"Proteína total\",\n   \"resultadoUnidad\": \"mg/mL\",\n   \"reactivos\": [\n    {\n     \"id\": \"r-bsa\",\n     \"nombre\": \"Albúmina sérica bovina (BSA), patrón\",\n     \"rol\": \"patron\",\n     \"cantidad\": 2,\n     \"unidad\": \"mg\"\n    },\n    {\n     \"id\": \"r-brad\",\n     \"nombre\": \"Reactivo de Bradford (azul de Coomassie G-250)\",\n     \"rol\": \"indicador\",\n     \"cantidad\": 25,\n     \"unidad\": \"mL\",\n     \"ghs\": [\n      \"H290\",\n      \"H314\"\n     ],\n     \"clases\": [\n      \"acido\"\n     ]\n    },\n    {\n     \"id\": \"r-pbs\",\n     \"nombre\": \"Tampón fosfato salino (PBS) pH 7,4\",\n     \"rol\": \"medio\",\n     \"cantidad\": 10,\n     \"unidad\": \"mL\"\n    },\n    {\n     \"id\": \"r-mue\",\n     \"nombre\": \"Extracto de proteína (muestra)\",\n     \"rol\": \"muestra\"\n    }\n   ],\n   \"pasos\": [\n    {\n     \"id\": \"s1\",\n     \"texto\": \"Preparar los patrones de BSA de 0 a 1 mg/mL en PBS por diluciones seriadas\",\n     \"articulo\": \"Los patrones de BSA (0–1 mg/mL) se prepararon en PBS por diluciones seriadas\"\n    },\n    {\n     \"id\": \"s2\",\n     \"texto\": \"Pipetear 5 µL de cada patrón y de cada muestra por triplicado en la placa de 96 pozos\",\n     \"articulo\": \"Se pipetearon 5 µL de cada patrón y de cada muestra por triplicado en una placa de 96 pozos\"\n    },\n    {\n     \"id\": \"s3\",\n     \"texto\": \"Añadir 250 µL de reactivo de Bradford a cada pozo y mezclar\",\n     \"articulo\": \"Se añadieron 250 µL de reactivo de Bradford a cada pozo\"\n    },\n    {\n     \"id\": \"s4\",\n     \"texto\": \"Incubar a temperatura ambiente\",\n     \"temperatura\": 25,\n     \"tiempo\": 5,\n     \"unidadTiempo\": \"min\",\n     \"critico\": true,\n     \"articulo\": \"La placa se incubó a temperatura ambiente\"\n    },\n    {\n     \"id\": \"s5\",\n     \"texto\": \"Leer la absorbancia a 595 nm y restar el blanco\",\n     \"articulo\": \"La absorbancia se leyó a 595 nm y se restó el blanco\"\n    }\n   ],\n   \"caracterizacion\": [\n    {\n     \"id\": \"c-uv\",\n     \"tecnica\": \"uvvis\",\n     \"valores\": {\n      \"modo\": \"transmisión\",\n      \"min\": 595,\n      \"max\": 595,\n      \"referencia\": \"pozo con PBS y reactivo (blanco)\"\n     }\n    }\n   ],\n   \"seguridad\": [\n    {\n     \"id\": \"n1\",\n     \"texto\": \"El reactivo de Bradford contiene ácido fosfórico y metanol: guantes y gafas; desecha las placas como residuo químico.\"\n    }\n   ]\n  }\n },\n \"dureza\": {\n  \"disciplina\": \"Química analítica ambiental · valores ilustrativos\",\n  \"tarjeta\": \"Valoración complejométrica con EDTA a pH 10: reactivos, tampón, viraje del indicador y la dureza como resultado de cada lote.\",\n  \"protocolo\": {\n   \"format\": \"erlen-methods-protocolo-v1\",\n   \"titulo\": \"Dureza total del agua por valoración con EDTA\",\n   \"tipo\": \"analisis\",\n   \"objetivo\": \"Determinar la dureza total (calcio y magnesio) de muestras de agua, expresada como mg/L de CaCO₃. Valores ilustrativos: estandariza tu EDTA.\",\n   \"resultadoNombre\": \"Dureza total\",\n   \"resultadoUnidad\": \"mg/L CaCO₃\",\n   \"reactivos\": [\n    {\n     \"id\": \"r-edta\",\n     \"nombre\": \"EDTA disódico dihidratado\",\n     \"formula\": \"C10H14N2Na2O8·2H2O\",\n     \"pureza\": 99,\n     \"rol\": \"precursor\",\n     \"ghs\": [\n      \"H332\",\n      \"H373\"\n     ]\n    },\n    {\n     \"id\": \"r-nh4cl\",\n     \"nombre\": \"Cloruro de amonio\",\n     \"formula\": \"NH4Cl\",\n     \"pureza\": 99.5,\n     \"rol\": \"medio\",\n     \"cantidad\": 6.75,\n     \"unidad\": \"g\",\n     \"ghs\": [\n      \"H302\",\n      \"H319\"\n     ]\n    },\n    {\n     \"id\": \"r-nh3\",\n     \"nombre\": \"Amoníaco 25 % (disolución)\",\n     \"formula\": \"NH3\",\n     \"rol\": \"medio\",\n     \"cantidad\": 57,\n     \"unidad\": \"mL\",\n     \"ghs\": [\n      \"H290\",\n      \"H314\",\n      \"H335\",\n      \"H400\"\n     ],\n     \"clases\": [\n      \"base\"\n     ]\n    },\n    {\n     \"id\": \"r-negt\",\n     \"nombre\": \"Negro de eriocromo T\",\n     \"formula\": \"C20H12N3NaO7S\",\n     \"rol\": \"indicador\"\n    },\n    {\n     \"id\": \"r-agua\",\n     \"nombre\": \"Muestra de agua\",\n     \"rol\": \"muestra\",\n     \"cantidad\": 50,\n     \"unidad\": \"mL\"\n    }\n   ],\n   \"disoluciones\": [\n    {\n     \"id\": \"d-edta\",\n     \"nombre\": \"EDTA 0,01 mol/L\",\n     \"reactivo\": \"r-edta\",\n     \"concentracion\": 0.01,\n     \"volumen\": 1000,\n     \"disolvente\": \"agua desionizada\"\n    }\n   ],\n   \"pasos\": [\n    {\n     \"id\": \"s1\",\n     \"texto\": \"Medir 50 mL de muestra con pipeta aforada en un matraz Erlenmeyer\",\n     \"articulo\": \"Se midieron 50 mL de muestra con pipeta aforada\"\n    },\n    {\n     \"id\": \"s2\",\n     \"texto\": \"Añadir 1 mL de tampón NH3/NH4Cl y una pizca del indicador\",\n     \"ph\": 10,\n     \"articulo\": \"Se añadieron 1 mL de tampón NH₃/NH₄Cl y el indicador negro de eriocromo T\"\n    },\n    {\n     \"id\": \"s3\",\n     \"texto\": \"Valorar con EDTA 0,01 mol/L hasta el viraje de rojo vino a azul\",\n     \"critico\": true,\n     \"articulo\": \"La muestra se valoró con EDTA 0,01 mol/L hasta el viraje de rojo vino a azul\"\n    },\n    {\n     \"id\": \"s4\",\n     \"texto\": \"Calcular la dureza como mg/L de CaCO3 y repetir por triplicado\",\n     \"articulo\": \"La dureza se calculó como mg/L de CaCO₃; cada muestra se valoró por triplicado\"\n    }\n   ],\n   \"seguridad\": [\n    {\n     \"id\": \"n1\",\n     \"texto\": \"El amoníaco concentrado es corrosivo y sus vapores irritan: prepara el tampón en campana.\"\n    }\n   ]\n  }\n },\n \"picnometria\": {\n  \"disciplina\": \"Física · plantilla sin datos\",\n  \"tarjeta\": \"Densidad de un líquido con picnómetro a temperatura controlada: los pasos y lo que hay que registrar para propagar la incertidumbre.\",\n  \"protocolo\": {\n   \"format\": \"erlen-methods-protocolo-v1\",\n   \"titulo\": \"Densidad de un líquido por picnometría\",\n   \"tipo\": \"caracterizacion\",\n   \"objetivo\": \"Medir la densidad de un líquido comparando su masa con la del mismo volumen de agua a la misma temperatura. La densidad se calcula en la calculadora de propagación de incertidumbre con ρ = (m₂ − m₀)/(m₁ − m₀)·ρ_agua.\",\n   \"resultadoNombre\": \"Densidad\",\n   \"resultadoUnidad\": \"g/mL\",\n   \"reactivos\": [\n    {\n     \"id\": \"r-agua\",\n     \"nombre\": \"Agua desionizada\",\n     \"formula\": \"H2O\",\n     \"rol\": \"patron\"\n    },\n    {\n     \"id\": \"r-mue\",\n     \"nombre\": \"Líquido problema\",\n     \"rol\": \"muestra\"\n    }\n   ],\n   \"pasos\": [\n    {\n     \"id\": \"s1\",\n     \"texto\": \"Pesar el picnómetro limpio y seco con su tapón (m0)\",\n     \"articulo\": \"Se pesó el picnómetro limpio y seco (m₀)\"\n    },\n    {\n     \"id\": \"s2\",\n     \"texto\": \"Llenar con agua, termostatizar y pesar (m1)\",\n     \"critico\": true,\n     \"articulo\": \"El picnómetro se llenó con agua, se termostatizó y se pesó (m₁)\"\n    },\n    {\n     \"id\": \"s3\",\n     \"texto\": \"Secar, llenar con la muestra, termostatizar y pesar (m2)\",\n     \"critico\": true,\n     \"articulo\": \"El picnómetro se secó, se llenó con la muestra, se termostatizó y se pesó (m₂)\"\n    },\n    {\n     \"id\": \"s4\",\n     \"texto\": \"Registrar la temperatura del baño para tomar la densidad del agua a esa temperatura\",\n     \"articulo\": \"La densidad del agua se tomó a la temperatura del baño\"\n    }\n   ]\n  }\n },\n \"hdl-znal\": {\n  \"disciplina\": \"Ciencia de materiales · valores ilustrativos\",\n  \"tarjeta\": \"Coprecipitación a pH constante con cantidades en mmol que se convierten a gramos, escala del lote y condiciones de DRX, FTIR y TGA.\",\n  \"protocolo\": {\n   \"format\": \"erlen-methods-protocolo-v1\",\n   \"titulo\": \"Síntesis de HDL Zn-Al-CO₃ (R = 3) por coprecipitación a pH constante\",\n   \"tipo\": \"sintesis\",\n   \"objetivo\": \"Obtener un hidróxido doble laminar Zn-Al con carbonato interlaminar y relación molar Zn/Al = 3. Los valores de esta plantilla son ilustrativos: sustitúyelos por los de tus frascos y tu procedimiento.\",\n   \"escala\": 1,\n   \"sinPurificar\": true,\n   \"reactivos\": [\n    {\n     \"id\": \"r-zn\",\n     \"nombre\": \"Nitrato de zinc hexahidratado\",\n     \"formula\": \"Zn(NO3)2·6H2O\",\n     \"pureza\": 98,\n     \"rol\": \"precursor\",\n     \"cantidad\": 37.5,\n     \"unidad\": \"mmol\",\n     \"peligros\": \"Oxidante; nocivo en caso de ingestión; muy tóxico para organismos acuáticos.\"\n    },\n    {\n     \"id\": \"r-al\",\n     \"nombre\": \"Nitrato de aluminio nonahidratado\",\n     \"formula\": \"Al(NO3)3·9H2O\",\n     \"pureza\": 98,\n     \"rol\": \"precursor\",\n     \"cantidad\": 12.5,\n     \"unidad\": \"mmol\",\n     \"peligros\": \"Oxidante; irritante ocular.\"\n    },\n    {\n     \"id\": \"r-carb\",\n     \"nombre\": \"Carbonato de sodio anhidro\",\n     \"formula\": \"Na2CO3\",\n     \"pureza\": 99.5,\n     \"rol\": \"precipitante\",\n     \"cantidad\": 12.5,\n     \"unidad\": \"mmol\",\n     \"peligros\": \"Irritante ocular.\"\n    },\n    {\n     \"id\": \"r-naoh\",\n     \"nombre\": \"Hidróxido de sodio\",\n     \"formula\": \"NaOH\",\n     \"pureza\": 97,\n     \"rol\": \"precipitante\",\n     \"peligros\": \"Corrosivo: provoca quemaduras graves en piel y ojos.\"\n    },\n    {\n     \"id\": \"r-agua\",\n     \"nombre\": \"Agua desionizada descarbonatada\",\n     \"formula\": \"H2O\",\n     \"rol\": \"disolvente\"\n    }\n   ],\n   \"disoluciones\": [\n    {\n     \"id\": \"d-naoh\",\n     \"nombre\": \"Base para mantener el pH\",\n     \"reactivo\": \"r-naoh\",\n     \"concentracion\": 2,\n     \"volumen\": 100,\n     \"disolvente\": \"agua desionizada descarbonatada\"\n    }\n   ],\n   \"pasos\": [\n    {\n     \"id\": \"s1\",\n     \"texto\": \"Disolver el nitrato de zinc y el nitrato de aluminio en 50 mL de agua desionizada descarbonatada (1 mol/L en metal total)\",\n     \"agitacion\": 300,\n     \"articulo\": \"El nitrato de zinc y el nitrato de aluminio se disolvieron en 50 mL de agua desionizada descarbonatada (1 mol/L en metal total)\"\n    },\n    {\n     \"id\": \"s2\",\n     \"texto\": \"Disolver el carbonato de sodio en 100 mL de agua en el reactor\",\n     \"temperatura\": 25,\n     \"articulo\": \"El carbonato de sodio se disolvió en 100 mL de agua en el reactor\"\n    },\n    {\n     \"id\": \"s3\",\n     \"texto\": \"Añadir la disolución de sales gota a gota sobre la de carbonato, manteniendo el pH con NaOH 2 mol/L\",\n     \"temperatura\": 25,\n     \"ph\": 10,\n     \"agitacion\": 500,\n     \"atmosfera\": \"N₂\",\n     \"critico\": true,\n     \"articulo\": \"La disolución de sales se añadió gota a gota sobre la de carbonato y el pH se mantuvo con NaOH 2 mol/L\"\n    },\n    {\n     \"id\": \"s4\",\n     \"texto\": \"Envejecer la suspensión\",\n     \"temperatura\": 65,\n     \"tiempo\": 18,\n     \"unidadTiempo\": \"h\",\n     \"agitacion\": 300,\n     \"articulo\": \"La suspensión se envejeció\"\n    },\n    {\n     \"id\": \"s5\",\n     \"texto\": \"Filtrar y lavar el sólido con agua desionizada hasta que el filtrado tenga pH neutro\",\n     \"articulo\": \"El sólido se filtró y se lavó con agua desionizada hasta pH neutro del filtrado\"\n    },\n    {\n     \"id\": \"s6\",\n     \"texto\": \"Secar el sólido en estufa\",\n     \"temperatura\": 80,\n     \"tiempo\": 12,\n     \"unidadTiempo\": \"h\",\n     \"articulo\": \"El sólido se secó en estufa\"\n    }\n   ],\n   \"caracterizacion\": [\n    {\n     \"id\": \"c-xrd\",\n     \"tecnica\": \"xrd\",\n     \"valores\": {\n      \"radiacion\": \"Cu Kα (λ = 1,5406 Å)\",\n      \"min\": 5,\n      \"max\": 70,\n      \"paso\": 0.02\n     }\n    },\n    {\n     \"id\": \"c-ftir\",\n     \"tecnica\": \"ftir\",\n     \"valores\": {\n      \"modo\": \"ATR\",\n      \"max\": 4000,\n      \"min\": 400,\n      \"resolucion\": 4,\n      \"barridos\": 32\n     }\n    },\n    {\n     \"id\": \"c-tga\",\n     \"tecnica\": \"tga\",\n     \"valores\": {\n      \"tInicial\": 25,\n      \"tFinal\": 800,\n      \"rampa\": 10,\n      \"atmosfera\": \"N₂\"\n     }\n    }\n   ],\n   \"seguridad\": [\n    {\n     \"id\": \"n1\",\n     \"texto\": \"Trabaja en campana, con bata, gafas y guantes de nitrilo. La disolución de NaOH es corrosiva.\"\n    },\n    {\n     \"id\": \"n2\",\n     \"texto\": \"Recoge las aguas de lavado con nitratos y zinc como residuo acuoso de metales, no por el desagüe.\"\n    }\n   ]\n  }\n },\n \"drx-ftir\": {\n  \"disciplina\": \"Caracterización · plantilla sin datos\",\n  \"tarjeta\": \"Preparación de un polvo para DRX y FTIR: los campos que un revisor pide, vacíos para que pongas los de tu equipo.\",\n  \"protocolo\": {\n   \"format\": \"erlen-methods-protocolo-v1\",\n   \"titulo\": \"Caracterización de un sólido en polvo por DRX y FTIR\",\n   \"tipo\": \"caracterizacion\",\n   \"objetivo\": \"Registrar el difractograma y el espectro infrarrojo de un sólido en polvo con condiciones documentadas y comparables entre muestras.\",\n   \"pasos\": [\n    {\n     \"id\": \"s1\",\n     \"texto\": \"Moler la muestra en mortero de ágata hasta polvo fino y homogéneo\"\n    },\n    {\n     \"id\": \"s2\",\n     \"texto\": \"Montar el polvo en el portamuestras enrasando la superficie con un portaobjetos\"\n    },\n    {\n     \"id\": \"s3\",\n     \"texto\": \"Registrar el difractograma\"\n    },\n    {\n     \"id\": \"s4\",\n     \"texto\": \"Limpiar el cristal de ATR con isopropanol y registrar el fondo\"\n    },\n    {\n     \"id\": \"s5\",\n     \"texto\": \"Registrar el espectro de la muestra con la misma presión del yunque en todas las muestras\"\n    }\n   ],\n   \"caracterizacion\": [\n    {\n     \"id\": \"c-xrd\",\n     \"tecnica\": \"xrd\",\n     \"valores\": {}\n    },\n    {\n     \"id\": \"c-ftir\",\n     \"tecnica\": \"ftir\",\n     \"valores\": {}\n    }\n   ]\n  }\n },\n \"naoh-khp\": {\n  \"disciplina\": \"Química analítica · valores ilustrativos\",\n  \"tarjeta\": \"Disolución de NaOH 0,1 mol/L valorada con biftalato de potasio: la calculadora de disoluciones dentro de un protocolo.\",\n  \"protocolo\": {\n   \"format\": \"erlen-methods-protocolo-v1\",\n   \"titulo\": \"Preparación y valoración de NaOH 0,1 mol/L con biftalato de potasio\",\n   \"tipo\": \"preparacion\",\n   \"objetivo\": \"Preparar un litro de NaOH aproximadamente 0,1 mol/L y conocer su concentración real por valoración frente a un patrón primario. Valores ilustrativos.\",\n   \"reactivos\": [\n    {\n     \"id\": \"r-naoh\",\n     \"nombre\": \"Hidróxido de sodio\",\n     \"formula\": \"NaOH\",\n     \"pureza\": 97,\n     \"rol\": \"precursor\",\n     \"peligros\": \"Corrosivo.\"\n    },\n    {\n     \"id\": \"r-khp\",\n     \"nombre\": \"Biftalato de potasio (patrón primario, secado a 110 °C)\",\n     \"formula\": \"C8H5KO4\",\n     \"pureza\": 99.95,\n     \"rol\": \"patron\",\n     \"cantidad\": 0.4,\n     \"unidad\": \"g\"\n    },\n    {\n     \"id\": \"r-fen\",\n     \"nombre\": \"Fenolftaleína al 1 % en etanol\",\n     \"rol\": \"aditivo\"\n    }\n   ],\n   \"disoluciones\": [\n    {\n     \"id\": \"d-naoh\",\n     \"nombre\": \"NaOH 0,1 mol/L\",\n     \"reactivo\": \"r-naoh\",\n     \"concentracion\": 0.1,\n     \"volumen\": 1000,\n     \"disolvente\": \"agua desionizada hervida y fría\"\n    }\n   ],\n   \"pasos\": [\n    {\n     \"id\": \"s1\",\n     \"texto\": \"Pesar el NaOH rápidamente, disolverlo y aforar a 1000 mL con agua desionizada hervida y fría\"\n    },\n    {\n     \"id\": \"s2\",\n     \"texto\": \"Pesar por triplicado el biftalato de potasio en matraces Erlenmeyer y disolver en 50 mL de agua\"\n    },\n    {\n     \"id\": \"s3\",\n     \"texto\": \"Añadir dos gotas de fenolftaleína y valorar con la disolución de NaOH hasta rosa persistente 30 s\",\n     \"critico\": true\n    },\n    {\n     \"id\": \"s4\",\n     \"texto\": \"Calcular la concentración de cada réplica y su media con la desviación estándar\"\n    }\n   ],\n   \"seguridad\": [\n    {\n     \"id\": \"n1\",\n     \"texto\": \"El NaOH sólido es corrosivo e higroscópico: gafas y guantes, y el frasco cerrado.\"\n    }\n   ]\n  }\n }\n}",
  "src/datos/tampones.json": "{\n \"fuente\": \"pKa termodinámico (fuerza iónica cero) a 25 °C y entalpía de ionización ΔH° según Goldberg, Kishore y Lennen, J. Phys. Chem. Ref. Data 31 (2002) 231. zHA es la carga neta de la forma ácida. Verifica el valor para tu sistema.\",\n \"tampones\": {\n  \"acetato\": {\n   \"nombre\": \"Ácido acético / acetato\",\n   \"pKa\": 4.756,\n   \"dH\": -0.41,\n   \"zHA\": 0\n  },\n  \"mes\": {\n   \"nombre\": \"MES\",\n   \"pKa\": 6.27,\n   \"dH\": 14.8,\n   \"zHA\": 0\n  },\n  \"pipes\": {\n   \"nombre\": \"PIPES (pKa₂)\",\n   \"pKa\": 7.141,\n   \"dH\": 11.2,\n   \"zHA\": -1\n  },\n  \"mops\": {\n   \"nombre\": \"MOPS\",\n   \"pKa\": 7.184,\n   \"dH\": 21.1,\n   \"zHA\": 0\n  },\n  \"fosfato\": {\n   \"nombre\": \"Fosfato (H₂PO₄⁻/HPO₄²⁻)\",\n   \"pKa\": 7.198,\n   \"dH\": 3.6,\n   \"zHA\": -1\n  },\n  \"hepes\": {\n   \"nombre\": \"HEPES\",\n   \"pKa\": 7.564,\n   \"dH\": 20.4,\n   \"zHA\": 0\n  },\n  \"tris\": {\n   \"nombre\": \"Tris\",\n   \"pKa\": 8.072,\n   \"dH\": 47.45,\n   \"zHA\": 1\n  },\n  \"borato\": {\n   \"nombre\": \"Ácido bórico / borato\",\n   \"pKa\": 9.237,\n   \"dH\": 13.8,\n   \"zHA\": 0\n  },\n  \"glicina\": {\n   \"nombre\": \"Glicina (pKa₂)\",\n   \"pKa\": 9.78,\n   \"dH\": 44.2,\n   \"zHA\": 0\n  },\n  \"carbonato\": {\n   \"nombre\": \"Bicarbonato / carbonato\",\n   \"pKa\": 10.329,\n   \"dH\": 14.7,\n   \"zHA\": -1\n  }\n }\n}",
  "src/datos/tecnicas.json": "{\n \"orden\": [\n  \"uvvis\",\n  \"ftir\",\n  \"rmn\",\n  \"ms\",\n  \"hplc\",\n  \"gc\",\n  \"microscopia\",\n  \"electroquimica\",\n  \"xrd\",\n  \"tga\",\n  \"dsc\",\n  \"bet\",\n  \"sem\",\n  \"otra\"\n ],\n \"xrd\": {\n  \"nombre\": \"Difracción de rayos X de polvo (DRX)\",\n  \"corto\": \"DRX\",\n  \"campos\": [\n   {\n    \"id\": \"equipo\",\n    \"etiqueta\": \"Difractómetro (marca y modelo)\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"radiacion\",\n    \"etiqueta\": \"Radiación\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"Cu Kα (λ = 1,5406 Å)\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"voltaje\",\n    \"etiqueta\": \"Tensión del tubo\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"kV\"\n   },\n   {\n    \"id\": \"corriente\",\n    \"etiqueta\": \"Corriente del tubo\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"mA\"\n   },\n   {\n    \"id\": \"min\",\n    \"etiqueta\": \"2θ inicial\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"°\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"max\",\n    \"etiqueta\": \"2θ final\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"°\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"paso\",\n    \"etiqueta\": \"Paso\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"°\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"tiempo\",\n    \"etiqueta\": \"Tiempo por paso\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"s\"\n   },\n   {\n    \"id\": \"muestra\",\n    \"etiqueta\": \"Preparación de la muestra\",\n    \"tipo\": \"texto\"\n   }\n  ]\n },\n \"ftir\": {\n  \"nombre\": \"Espectroscopia infrarroja (FTIR)\",\n  \"corto\": \"FTIR\",\n  \"campos\": [\n   {\n    \"id\": \"equipo\",\n    \"etiqueta\": \"Espectrómetro (marca y modelo)\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"modo\",\n    \"etiqueta\": \"Modo de medida\",\n    \"tipo\": \"opcion\",\n    \"opciones\": [\n     \"ATR\",\n     \"pastilla de KBr\",\n     \"transmisión\",\n     \"reflectancia difusa (DRIFTS)\"\n    ],\n    \"requerido\": true\n   },\n   {\n    \"id\": \"max\",\n    \"etiqueta\": \"Número de onda máximo\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"cm⁻¹\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"min\",\n    \"etiqueta\": \"Número de onda mínimo\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"cm⁻¹\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"resolucion\",\n    \"etiqueta\": \"Resolución\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"cm⁻¹\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"barridos\",\n    \"etiqueta\": \"Barridos\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"\"\n   }\n  ]\n },\n \"tga\": {\n  \"nombre\": \"Análisis termogravimétrico (TGA)\",\n  \"corto\": \"TGA\",\n  \"campos\": [\n   {\n    \"id\": \"equipo\",\n    \"etiqueta\": \"Equipo (marca y modelo)\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"tInicial\",\n    \"etiqueta\": \"Temperatura inicial\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"°C\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"tFinal\",\n    \"etiqueta\": \"Temperatura final\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"°C\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"rampa\",\n    \"etiqueta\": \"Velocidad de calentamiento\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"°C/min\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"atmosfera\",\n    \"etiqueta\": \"Atmósfera\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"N₂\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"flujo\",\n    \"etiqueta\": \"Flujo de gas\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"mL/min\"\n   },\n   {\n    \"id\": \"masa\",\n    \"etiqueta\": \"Masa de muestra\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"mg\"\n   },\n   {\n    \"id\": \"crisol\",\n    \"etiqueta\": \"Crisol\",\n    \"tipo\": \"texto\"\n   }\n  ]\n },\n \"bet\": {\n  \"nombre\": \"Fisisorción de N₂ (área BET)\",\n  \"corto\": \"BET\",\n  \"campos\": [\n   {\n    \"id\": \"equipo\",\n    \"etiqueta\": \"Equipo (marca y modelo)\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"adsorbato\",\n    \"etiqueta\": \"Adsorbato\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"N₂\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"temperatura\",\n    \"etiqueta\": \"Temperatura de medida\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"K\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"tDesgasificado\",\n    \"etiqueta\": \"Temperatura de desgasificado\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"°C\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"hDesgasificado\",\n    \"etiqueta\": \"Tiempo de desgasificado\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"h\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"rango\",\n    \"etiqueta\": \"Intervalo de P/P₀ para BET\",\n    \"tipo\": \"texto\"\n   },\n   {\n    \"id\": \"poros\",\n    \"etiqueta\": \"Distribución de poros\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"BJH, rama de desorción\"\n   }\n  ]\n },\n \"sem\": {\n  \"nombre\": \"Microscopía electrónica de barrido (MEB/SEM)\",\n  \"corto\": \"MEB\",\n  \"campos\": [\n   {\n    \"id\": \"equipo\",\n    \"etiqueta\": \"Microscopio (marca y modelo)\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"voltaje\",\n    \"etiqueta\": \"Voltaje de aceleración\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"kV\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"detector\",\n    \"etiqueta\": \"Detector\",\n    \"tipo\": \"texto\"\n   },\n   {\n    \"id\": \"recubrimiento\",\n    \"etiqueta\": \"Recubrimiento\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"Au, pulverización catódica\"\n   },\n   {\n    \"id\": \"eds\",\n    \"etiqueta\": \"Microanálisis (EDS)\",\n    \"tipo\": \"texto\"\n   }\n  ]\n },\n \"uvvis\": {\n  \"nombre\": \"Espectroscopia UV-Vis\",\n  \"corto\": \"UV-Vis\",\n  \"campos\": [\n   {\n    \"id\": \"equipo\",\n    \"etiqueta\": \"Espectrofotómetro (marca y modelo)\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"modo\",\n    \"etiqueta\": \"Modo\",\n    \"tipo\": \"opcion\",\n    \"opciones\": [\n     \"transmisión\",\n     \"reflectancia difusa\"\n    ],\n    \"requerido\": true\n   },\n   {\n    \"id\": \"min\",\n    \"etiqueta\": \"Longitud de onda mínima\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"nm\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"max\",\n    \"etiqueta\": \"Longitud de onda máxima\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"nm\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"referencia\",\n    \"etiqueta\": \"Referencia o blanco\",\n    \"tipo\": \"texto\"\n   }\n  ]\n },\n \"otra\": {\n  \"nombre\": \"Otra técnica\",\n  \"corto\": \"Otra\",\n  \"campos\": [\n   {\n    \"id\": \"nombreTecnica\",\n    \"etiqueta\": \"Nombre de la técnica\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"equipo\",\n    \"etiqueta\": \"Equipo (marca y modelo)\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"condiciones\",\n    \"etiqueta\": \"Condiciones de medida\",\n    \"tipo\": \"area\",\n    \"requerido\": true\n   }\n  ]\n },\n \"rmn\": {\n  \"nombre\": \"Resonancia magnética nuclear (RMN)\",\n  \"corto\": \"RMN\",\n  \"campos\": [\n   {\n    \"id\": \"equipo\",\n    \"etiqueta\": \"Espectrómetro (marca y modelo)\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"nucleo\",\n    \"etiqueta\": \"Núcleo\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"¹H\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"frecuencia\",\n    \"etiqueta\": \"Frecuencia del núcleo\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"MHz\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"disolvente\",\n    \"etiqueta\": \"Disolvente deuterado\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"CDCl₃\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"referencia\",\n    \"etiqueta\": \"Referencia de desplazamiento\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"TMS o señal residual del disolvente\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"temperatura\",\n    \"etiqueta\": \"Temperatura\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"K\"\n   },\n   {\n    \"id\": \"barridos\",\n    \"etiqueta\": \"Barridos\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"\"\n   }\n  ]\n },\n \"ms\": {\n  \"nombre\": \"Espectrometría de masas (EM/MS)\",\n  \"corto\": \"EM\",\n  \"campos\": [\n   {\n    \"id\": \"equipo\",\n    \"etiqueta\": \"Espectrómetro (marca y modelo)\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"ionizacion\",\n    \"etiqueta\": \"Fuente de ionización\",\n    \"tipo\": \"opcion\",\n    \"opciones\": [\n     \"ESI\",\n     \"APCI\",\n     \"EI\",\n     \"CI\",\n     \"MALDI\",\n     \"ICP\"\n    ],\n    \"requerido\": true\n   },\n   {\n    \"id\": \"analizador\",\n    \"etiqueta\": \"Analizador\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"TOF, cuadrupolo, Orbitrap…\"\n   },\n   {\n    \"id\": \"polaridad\",\n    \"etiqueta\": \"Modo\",\n    \"tipo\": \"opcion\",\n    \"opciones\": [\n     \"positivo\",\n     \"negativo\"\n    ]\n   },\n   {\n    \"id\": \"min\",\n    \"etiqueta\": \"m/z mínimo\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"\"\n   },\n   {\n    \"id\": \"max\",\n    \"etiqueta\": \"m/z máximo\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"\"\n   }\n  ]\n },\n \"hplc\": {\n  \"nombre\": \"Cromatografía de líquidos (HPLC)\",\n  \"corto\": \"HPLC\",\n  \"campos\": [\n   {\n    \"id\": \"equipo\",\n    \"etiqueta\": \"Cromatógrafo (marca y modelo)\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"columna\",\n    \"etiqueta\": \"Columna (fase, dimensiones, partícula)\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"C18, 150 × 4,6 mm, 5 µm\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"fase\",\n    \"etiqueta\": \"Fase móvil y gradiente\",\n    \"tipo\": \"area\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"flujo\",\n    \"etiqueta\": \"Flujo\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"mL/min\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"temperatura\",\n    \"etiqueta\": \"Temperatura de la columna\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"°C\"\n   },\n   {\n    \"id\": \"deteccion\",\n    \"etiqueta\": \"Detección\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"UV a 254 nm\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"inyeccion\",\n    \"etiqueta\": \"Volumen de inyección\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"µL\"\n   }\n  ]\n },\n \"gc\": {\n  \"nombre\": \"Cromatografía de gases (CG/GC)\",\n  \"corto\": \"CG\",\n  \"campos\": [\n   {\n    \"id\": \"equipo\",\n    \"etiqueta\": \"Cromatógrafo (marca y modelo)\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"columna\",\n    \"etiqueta\": \"Columna (fase, dimensiones)\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"portador\",\n    \"etiqueta\": \"Gas portador\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"He\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"flujo\",\n    \"etiqueta\": \"Flujo\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"mL/min\"\n   },\n   {\n    \"id\": \"programa\",\n    \"etiqueta\": \"Programa de temperatura\",\n    \"tipo\": \"area\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"inyector\",\n    \"etiqueta\": \"Temperatura del inyector\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"°C\"\n   },\n   {\n    \"id\": \"detector\",\n    \"etiqueta\": \"Detector\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"FID, EM…\",\n    \"requerido\": true\n   }\n  ]\n },\n \"microscopia\": {\n  \"nombre\": \"Microscopía óptica o de fluorescencia\",\n  \"corto\": \"Microscopía\",\n  \"campos\": [\n   {\n    \"id\": \"equipo\",\n    \"etiqueta\": \"Microscopio (marca y modelo)\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"modo\",\n    \"etiqueta\": \"Modo\",\n    \"tipo\": \"opcion\",\n    \"opciones\": [\n     \"campo claro\",\n     \"contraste de fases\",\n     \"DIC\",\n     \"fluorescencia\",\n     \"confocal\"\n    ],\n    \"requerido\": true\n   },\n   {\n    \"id\": \"objetivo\",\n    \"etiqueta\": \"Objetivo (aumento y apertura numérica)\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"40×, AN 0,75\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"filtros\",\n    \"etiqueta\": \"Excitación y emisión\",\n    \"tipo\": \"texto\"\n   },\n   {\n    \"id\": \"camara\",\n    \"etiqueta\": \"Cámara y tiempo de exposición\",\n    \"tipo\": \"texto\"\n   }\n  ]\n },\n \"electroquimica\": {\n  \"nombre\": \"Electroquímica\",\n  \"corto\": \"Electroquímica\",\n  \"campos\": [\n   {\n    \"id\": \"equipo\",\n    \"etiqueta\": \"Potenciostato (marca y modelo)\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"tecnica\",\n    \"etiqueta\": \"Técnica\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"voltamperometría cíclica\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"trabajo\",\n    \"etiqueta\": \"Electrodo de trabajo\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"referencia\",\n    \"etiqueta\": \"Electrodo de referencia\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"Ag/AgCl (KCl 3 M)\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"contra\",\n    \"etiqueta\": \"Contraelectrodo\",\n    \"tipo\": \"texto\"\n   },\n   {\n    \"id\": \"electrolito\",\n    \"etiqueta\": \"Electrolito soporte\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"velocidad\",\n    \"etiqueta\": \"Velocidad de barrido\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"mV/s\"\n   },\n   {\n    \"id\": \"ventana\",\n    \"etiqueta\": \"Ventana de potencial\",\n    \"tipo\": \"texto\"\n   }\n  ]\n },\n \"dsc\": {\n  \"nombre\": \"Calorimetría diferencial de barrido (DSC)\",\n  \"corto\": \"DSC\",\n  \"campos\": [\n   {\n    \"id\": \"equipo\",\n    \"etiqueta\": \"Equipo (marca y modelo)\",\n    \"tipo\": \"texto\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"tInicial\",\n    \"etiqueta\": \"Temperatura inicial\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"°C\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"tFinal\",\n    \"etiqueta\": \"Temperatura final\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"°C\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"rampa\",\n    \"etiqueta\": \"Velocidad de calentamiento\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"°C/min\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"atmosfera\",\n    \"etiqueta\": \"Atmósfera\",\n    \"tipo\": \"texto\",\n    \"sugerido\": \"N₂\",\n    \"requerido\": true\n   },\n   {\n    \"id\": \"masa\",\n    \"etiqueta\": \"Masa de muestra\",\n    \"tipo\": \"numero\",\n    \"unidad\": \"mg\"\n   },\n   {\n    \"id\": \"crisol\",\n    \"etiqueta\": \"Crisol\",\n    \"tipo\": \"texto\"\n   }\n  ]\n }\n}",
  "src/diseno/00-diseno.css": "/* erlen-diseno 2.11.8 · generado por @erlen/design/tools/generate; no editar a mano */\n/* Vidrio mineral · decisión del usuario 2026-09-30. Tipografía original de Erlen: Latin Modern y Computer Modern; se conserva también en documentos y exportación. */\n/* Erlen Suite · paquete de diseño 2.0.0 · tokens (docs/DISENO-PAQUETE.md, docs/GUIA-DISENO.md §0 y §2–§6).\n   Fuente única en el portal: diseno/tokens.css. Los valores viven aquí y solo aquí; el cromo de cada app usa var(--erlen-*), nunca literales.\n   2.0.0 · cristal (vidrio líquido): el material de la capa de controles también vive aquí, con sus respaldos opacos (sin\n   backdrop-filter, prefers-reduced-transparency, prefers-contrast:more, forced-colors y [data-erlen-material=\"solido\"]).\n   Claro por defecto; oscuro por prefers-color-scheme (salvo [data-theme=\"light\"]) o por [data-theme=\"dark\"]. Licencia: licencias/MIT.txt */\n:root{color-scheme:light;\n /* Paleta: papel, tinta, verde, ámbar, peligro, línea, superficie */\n --erlen-papel:#f8f8f4;--erlen-superficie:#fdfdfb;--erlen-superficie-2:#f1f4f0;\n --erlen-tinta:#202824;--erlen-tinta-suave:#536159;\n --erlen-verde:#225747;--erlen-verde-suave:#e9efea;--erlen-verde-contraste:#fdfdfb;\n --erlen-ambar:#94621e;--erlen-ambar-suave:#fff4d6;\n --erlen-peligro:#a22d26;--erlen-peligro-suave:#fce8e3;\n --erlen-linea:#dbe2d8;--erlen-linea-fuerte:#c4d1bf;\n --erlen-foco:var(--erlen-ambar);\n --erlen-mey-ojos:#18171b;--erlen-mey-reflejo:#fdfdfd;\n /* Sobre oscuro (hero y franjas del portal; en las apps solo si una sección lo pide) */\n --erlen-espacio-fondo:#070a12;--erlen-espacio-tinta:#ecf0eb;--erlen-espacio-acento:#adcabd;--erlen-espacio-borde:#ffffff1f;\n /* Tipografía (familia de Knuth, fuentes.css) */\n --erlen-font-titulo:\"LM Roman\",Georgia,\"Times New Roman\",serif;\n --erlen-font-cuerpo:\"CMU Concrete\",Georgia,\"Times New Roman\",serif;\n --erlen-font-ui:\"LM Sans\",system-ui,-apple-system,\"Segoe UI\",sans-serif;\n --erlen-font-mono:\"CMU Typewriter\",ui-monospace,\"JetBrains Mono\",monospace;\n /* Escala */\n --erlen-texto-xs:12px;--erlen-texto-sm:14px;--erlen-texto-ui:15px;--erlen-texto-base:17px;--erlen-texto-lg:18px;\n --erlen-h1:clamp(42px,5.3vw,76px);--erlen-h2:clamp(28px,3vw,40px);--erlen-h3:24px;--erlen-h1-app:clamp(24px,2.6vw,30px);\n --erlen-interlineado:1.7;--erlen-interlineado-ui:1.5;\n /* Espaciado */\n --erlen-esp-1:4px;--erlen-esp-2:8px;--erlen-esp-3:12px;--erlen-esp-4:16px;--erlen-esp-5:24px;--erlen-esp-6:32px;--erlen-esp-7:48px;--erlen-esp-8:64px;\n /* Radios: concéntricos (interior = exterior − relleno); cápsula para pestañas, navegación y acciones */\n --erlen-radio-campo:8px;--erlen-radio-pequeno:8px;--erlen-radio-tarjeta:18px;--erlen-radio-panel:24px;--erlen-radio-badge:999px;--erlen-radio-capsula:999px;\n /* Sombras: paneles destacados, menús flotantes y tarjetas de cristal */\n --erlen-sombra-tarjeta:0 10px 30px #284b3014;--erlen-sombra-menu:0 14px 36px #183b3229;--erlen-sombra-panel:0 20px 55px #284b3014;\n /* Cristal (vidrio líquido, 2.0.0). Solo la capa de controles: cinta, cabeceras, menús, diálogos, paneles y tarjetas del inicio.\n    El área de trabajo (documento, hoja, lienzo, diapositiva, figura, espectro, partitura) sigue opaca.\n    --erlen-vidrio: sobre la atmósfera o sobre papel (barra lateral, tarjetas, paneles).\n    --erlen-vidrio-fuerte: sobre contenido que cambia (cinta, cabeceras fijas, menús, diálogos); legible sobre negro puro (test).\n    --erlen-vidrio-filtro: el desenfoque; úsalo solo en capas que flotan sobre contenido y nunca en áreas grandes que se desplazan. */\n --erlen-vidrio:color-mix(in srgb,var(--erlen-superficie) 84%,transparent);\n --erlen-vidrio-fuerte:color-mix(in srgb,var(--erlen-superficie) 94%,transparent);\n --erlen-vidrio-tinte:color-mix(in srgb,var(--erlen-verde) 10%,transparent);\n --erlen-vidrio-borde:#ffffffb3;--erlen-vidrio-contorno:#20282424;\n --erlen-vidrio-reflejo:linear-gradient(180deg,#ffffff38 0,#ffffff0d 38%,#ffffff00 62%);\n --erlen-vidrio-relieve:inset 0 1px 0 #ffffff99,0 4px 18px #1b2e2510;\n --erlen-vidrio-filtro:blur(18px) saturate(115%);\n /* Brillo especular sobre rellenos del acento (botón principal, «Archivo», «+»): tenue para que su texto siga ≥ 4,5:1 (test) */\n --erlen-vidrio-reflejo-acento:linear-gradient(180deg,#ffffff14 0,#ffffff05 45%,#ffffff00 60%);\n /* Atmósfera: luz de color detrás del cromo (inicio de las apps, portal); nunca detrás del contenido del usuario */\n /* --erlen-luz: versión luminosa del acento (la misma en claro y oscuro); la eligen también los acentos personales */\n --erlen-luz:#adcabd;\n --erlen-atmosfera-a:color-mix(in srgb,var(--erlen-luz) 14%,transparent);\n --erlen-atmosfera-b:color-mix(in srgb,#d2c1e3 8%,transparent);\n --erlen-atmosfera:radial-gradient(60% 70% at 0% 0%,var(--erlen-atmosfera-a) 0,transparent 72%),radial-gradient(55% 60% at 100% 0%,var(--erlen-atmosfera-b) 0,transparent 70%),radial-gradient(70% 55% at 75% 100%,var(--erlen-atmosfera-a) 0,transparent 70%),radial-gradient(50% 45% at 15% 95%,var(--erlen-atmosfera-b) 0,transparent 70%),var(--erlen-papel);\n /* Movimiento: micro 120 ms, estados 180 ms, entradas 300 ms */\n --erlen-dur-micro:.12s;--erlen-dur:.18s;--erlen-dur-entrada:.3s;--erlen-ease:cubic-bezier(.2,.7,.2,1);\n /* Controles */\n --erlen-alto-control:44px;--erlen-ancho-lectura:72ch}\n/* Modo oscuro: se redefinen papel, superficie, tinta, línea y sombras (GUIA-DISENO §2); el verde pasa al acento sobre oscuro, y el ámbar y el peligro (con sus fondos suaves) se aclaran para superar 4,5:1 como texto (autorizado por Jorge el 2026-09-22), para conservar contraste. */\n@media(prefers-color-scheme:dark){:root:not([data-theme=\"light\"]){color-scheme:dark;\n --erlen-papel:#121815;--erlen-superficie:#1c2520;--erlen-superficie-2:#242f28;\n --erlen-tinta:#ecf0eb;--erlen-tinta-suave:#b2bcb5;\n --erlen-verde:#adcabd;--erlen-verde-suave:#1f2f28;--erlen-verde-contraste:#121815;\n --erlen-ambar:#e3aa5c;--erlen-ambar-suave:#2f2514;--erlen-peligro:#f2877b;--erlen-peligro-suave:#3b1e1b;\n --erlen-linea:#ffffff1f;--erlen-linea-fuerte:#ffffff33;\n --erlen-sombra-tarjeta:0 10px 30px #00000059;--erlen-sombra-menu:0 14px 36px #00000080;--erlen-sombra-panel:0 20px 55px #00000066;\n --erlen-vidrio-borde:#ffffff24;--erlen-vidrio-contorno:#ffffff1f;\n --erlen-vidrio-reflejo:linear-gradient(180deg,#ffffff17 0,#ffffff08 38%,#ffffff00 62%);\n --erlen-vidrio-relieve:inset 0 1px 0 #ffffff2e,inset 0 0 0 1px #ffffff0d,inset 0 -1px 0 #ffffff0d,0 1px 2px #00000040,0 10px 28px #00000059;\n --erlen-atmosfera-a:color-mix(in srgb,var(--erlen-luz) 7%,transparent);--erlen-atmosfera-b:color-mix(in srgb,#d2c1e3 5%,transparent)}}\n:root[data-theme=\"dark\"]{color-scheme:dark;\n --erlen-papel:#121815;--erlen-superficie:#1c2520;--erlen-superficie-2:#242f28;\n --erlen-tinta:#ecf0eb;--erlen-tinta-suave:#b2bcb5;\n --erlen-verde:#adcabd;--erlen-verde-suave:#1f2f28;--erlen-verde-contraste:#121815;\n --erlen-ambar:#e3aa5c;--erlen-ambar-suave:#2f2514;--erlen-peligro:#f2877b;--erlen-peligro-suave:#3b1e1b;\n --erlen-linea:#ffffff1f;--erlen-linea-fuerte:#ffffff33;\n --erlen-sombra-tarjeta:0 10px 30px #00000059;--erlen-sombra-menu:0 14px 36px #00000080;--erlen-sombra-panel:0 20px 55px #00000066;\n --erlen-vidrio-borde:#ffffff24;--erlen-vidrio-contorno:#ffffff1f;\n --erlen-vidrio-reflejo:linear-gradient(180deg,#ffffff17 0,#ffffff08 38%,#ffffff00 62%);\n --erlen-vidrio-relieve:inset 0 1px 0 #ffffff2e,inset 0 0 0 1px #ffffff0d,inset 0 -1px 0 #ffffff0d,0 1px 2px #00000040,0 10px 28px #00000059;\n --erlen-atmosfera-a:color-mix(in srgb,var(--erlen-luz) 7%,transparent);--erlen-atmosfera-b:color-mix(in srgb,#d2c1e3 5%,transparent)}\n/* La preferencia de color solo toca el acento del cromo, no documentos, Mey, iconos o\n   --erlen-foco. Contraste mínimo 4,5:1 en ambas superficies de las apps. */\n:root[data-erlen-color=\"violeta\"]{--erlen-verde:#624b7b;--erlen-verde-suave:#eee8f6;--erlen-luz:#d2c1e3}\n:root[data-erlen-color=\"azul\"]{--erlen-verde:#244e73;--erlen-verde-suave:#e6effb;--erlen-luz:#b9d2e8}\n:root[data-erlen-color=\"cobre\"]{--erlen-verde:#6a532b;--erlen-verde-suave:#f5ebe2;--erlen-luz:#e0cca4}\n@media(prefers-color-scheme:dark){\n :root:not([data-theme=\"light\"])[data-erlen-color=\"violeta\"]{--erlen-verde:#d2c1e3;--erlen-verde-suave:#31273d}\n :root:not([data-theme=\"light\"])[data-erlen-color=\"azul\"]{--erlen-verde:#b9d2e8;--erlen-verde-suave:#203047}\n :root:not([data-theme=\"light\"])[data-erlen-color=\"cobre\"]{--erlen-verde:#e0cca4;--erlen-verde-suave:#37291f}\n}\n:root[data-theme=\"dark\"][data-erlen-color=\"violeta\"]{--erlen-verde:#d2c1e3;--erlen-verde-suave:#31273d}\n:root[data-theme=\"dark\"][data-erlen-color=\"azul\"]{--erlen-verde:#b9d2e8;--erlen-verde-suave:#203047}\n:root[data-theme=\"dark\"][data-erlen-color=\"cobre\"]{--erlen-verde:#e0cca4;--erlen-verde-suave:#37291f}\n:root[data-erlen-color=\"platino\"]{--erlen-verde:#3f4b53;--erlen-verde-suave:#e8edf0;--erlen-luz:#c3d0d8}\n@media(prefers-color-scheme:dark){:root:not([data-theme=\"light\"])[data-erlen-color=\"platino\"]{--erlen-verde:#c3d0d8;--erlen-verde-suave:#273239}}\n:root[data-theme=\"dark\"][data-erlen-color=\"platino\"]{--erlen-verde:#c3d0d8;--erlen-verde-suave:#273239}\n/* Estilos opt-in: solo material, contornos, radios y sombras del cromo. Sin atributo,\n   todos los valores originales de arriba permanecen idénticos. Paleta, fuentes, foco\n   y superficies opacas de contenido se conservan en todos los estilos. */\n:root[data-erlen-estilo=\"glassmorfismo\"]{\n --erlen-vidrio:color-mix(in srgb,var(--erlen-superficie) 74%,transparent);\n --erlen-vidrio-fuerte:color-mix(in srgb,var(--erlen-superficie) 90%,transparent);\n --erlen-vidrio-filtro:blur(28px) saturate(160%);\n --erlen-radio-campo:16px;--erlen-radio-tarjeta:28px;--erlen-radio-panel:32px;\n --erlen-vidrio-reflejo:linear-gradient(135deg,color-mix(in srgb,var(--erlen-vidrio-borde) 65%,transparent),transparent 55%);\n --erlen-vidrio-relieve:inset 0 0 0 1px var(--erlen-vidrio-borde),inset 0 -1px 0 color-mix(in srgb,var(--erlen-vidrio-borde) 45%,transparent),0 16px 40px color-mix(in srgb,var(--erlen-espacio-fondo) 20%,transparent);\n --erlen-control-relieve:inset 0 0 0 1px var(--erlen-vidrio-borde),0 4px 12px color-mix(in srgb,var(--erlen-espacio-fondo) 16%,transparent);\n --erlen-atmosfera-a:color-mix(in srgb,var(--erlen-luz) 70%,transparent);\n --erlen-atmosfera-b:color-mix(in srgb,#d2c1e3 55%,transparent);\n}\n/* La luz detrás del cristal conserva la lectura del héroe en oscuro. */\n@media(prefers-color-scheme:dark){:root:not([data-theme=\"light\"])[data-erlen-estilo=\"glassmorfismo\"]{--erlen-atmosfera-a:color-mix(in srgb,var(--erlen-luz) 18%,transparent);--erlen-atmosfera-b:color-mix(in srgb,#d2c1e3 12%,transparent)}}\n:root[data-theme=\"dark\"][data-erlen-estilo=\"glassmorfismo\"]{--erlen-atmosfera-a:color-mix(in srgb,var(--erlen-luz) 18%,transparent);--erlen-atmosfera-b:color-mix(in srgb,#d2c1e3 12%,transparent)}\n:root[data-erlen-estilo=\"neumorfismo\"]{\n --erlen-vidrio:var(--erlen-superficie-2);--erlen-vidrio-fuerte:var(--erlen-superficie-2);\n --erlen-vidrio-filtro:none;--erlen-vidrio-reflejo:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:18px;--erlen-radio-tarjeta:28px;--erlen-radio-panel:32px;\n --erlen-vidrio-contorno:color-mix(in srgb,var(--erlen-linea) 45%,transparent);\n --erlen-vidrio-relieve:-10px -10px 24px color-mix(in srgb,var(--erlen-superficie) 75%,#fff),10px 10px 24px color-mix(in srgb,var(--erlen-espacio-fondo) 22%,transparent);\n --erlen-control-relieve:-3px -3px 8px color-mix(in srgb,var(--erlen-superficie) 75%,#fff),3px 3px 8px color-mix(in srgb,var(--erlen-espacio-fondo) 22%,transparent);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-superficie-2);\n}\n:root[data-erlen-estilo=\"neobrutalismo\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);\n --erlen-vidrio-filtro:none;--erlen-vidrio-reflejo:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:0px;--erlen-radio-pequeno:0px;--erlen-radio-tarjeta:0px;--erlen-radio-panel:0px;--erlen-radio-badge:0px;--erlen-radio-capsula:0px;\n --erlen-vidrio-contorno:var(--erlen-tinta);--erlen-vidrio-borde:var(--erlen-tinta);\n --erlen-vidrio-relieve:inset 0 0 0 2px var(--erlen-tinta),6px 6px 0 var(--erlen-tinta);\n --erlen-control-relieve:inset 0 0 0 2px var(--erlen-tinta),3px 3px 0 var(--erlen-tinta);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"minimalismo\"]{\n --erlen-vidrio:var(--erlen-papel);--erlen-vidrio-fuerte:var(--erlen-papel);\n --erlen-vidrio-filtro:none;--erlen-vidrio-reflejo:none;--erlen-vidrio-reflejo-acento:none;--erlen-vidrio-relieve:none;\n --erlen-control-relieve:none;\n --erlen-vidrio-contorno:var(--erlen-linea-fuerte);--erlen-vidrio-borde:var(--erlen-linea-fuerte);\n --erlen-radio-campo:2px;--erlen-radio-pequeno:2px;--erlen-radio-tarjeta:0px;--erlen-radio-panel:0px;--erlen-radio-capsula:2px;\n --erlen-sombra-tarjeta:none;--erlen-sombra-menu:none;--erlen-sombra-panel:none;\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"art-deco\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;\n --erlen-radio-campo:0px;--erlen-radio-pequeno:0px;--erlen-radio-tarjeta:0px;--erlen-radio-panel:0px;--erlen-radio-capsula:0px;--erlen-radio-badge:0px;\n --erlen-vidrio-contorno:var(--erlen-ambar);--erlen-vidrio-borde:var(--erlen-ambar);\n --erlen-vidrio-reflejo:linear-gradient(135deg,transparent 85%,color-mix(in srgb,var(--erlen-ambar) 15%,transparent) 85%,transparent 86%),linear-gradient(315deg,transparent 85%,color-mix(in srgb,var(--erlen-ambar) 15%,transparent) 85%,transparent 86%);\n --erlen-vidrio-relieve:inset 0 0 0 4px var(--erlen-superficie),inset 0 0 0 5px var(--erlen-ambar),inset 0 0 0 8px var(--erlen-superficie),inset 0 0 0 9px color-mix(in srgb,var(--erlen-ambar) 55%,transparent);\n --erlen-control-relieve:inset 0 0 0 2px var(--erlen-superficie),inset 0 0 0 3px var(--erlen-ambar);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n/* Ocho expresiones adicionales: materiales estáticos y paleta personal; solo cromo. */\n:root[data-erlen-estilo=\"claymorfismo\"]{\n --erlen-vidrio:var(--erlen-superficie-2);--erlen-vidrio-fuerte:var(--erlen-superficie-2);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:22px;--erlen-radio-pequeno:22px;--erlen-radio-tarjeta:32px;--erlen-radio-panel:36px;--erlen-radio-capsula:22px;--erlen-radio-badge:22px;\n --erlen-vidrio-reflejo:linear-gradient(145deg,color-mix(in srgb,var(--erlen-superficie) 70%,transparent),transparent 65%);\n --erlen-vidrio-contorno:var(--erlen-linea);\n --erlen-vidrio-relieve:inset 3px 3px 6px color-mix(in srgb,var(--erlen-superficie) 80%,transparent),inset -4px -4px 8px color-mix(in srgb,var(--erlen-espacio-fondo) 12%,transparent),0 9px 0 color-mix(in srgb,var(--erlen-verde) 14%,var(--erlen-superficie-2)),0 14px 22px color-mix(in srgb,var(--erlen-espacio-fondo) 14%,transparent);\n --erlen-control-relieve:inset 2px 2px 3px var(--erlen-superficie),inset -2px -2px 4px color-mix(in srgb,var(--erlen-espacio-fondo) 12%,transparent),0 3px 0 color-mix(in srgb,var(--erlen-verde) 20%,var(--erlen-superficie-2));\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"bauhaus\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:0px;--erlen-radio-pequeno:0px;--erlen-radio-tarjeta:0px;--erlen-radio-panel:0px;--erlen-radio-capsula:0px;--erlen-radio-badge:0px;\n --erlen-vidrio-reflejo:radial-gradient(circle at 100% 0,color-mix(in srgb,var(--erlen-verde) 8%,transparent) 0 54px,transparent 55px),linear-gradient(90deg,color-mix(in srgb,var(--erlen-ambar) 7%,transparent) 0 10px,transparent 10px);\n --erlen-vidrio-contorno:var(--erlen-verde);\n --erlen-vidrio-relieve:inset 0 0 0 2px var(--erlen-verde),inset 10px 0 0 var(--erlen-ambar);\n --erlen-control-relieve:inset 0 -3px 0 var(--erlen-ambar),inset 0 0 0 1px var(--erlen-verde);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"frutiger-aero\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:18px;--erlen-radio-pequeno:18px;--erlen-radio-tarjeta:26px;--erlen-radio-panel:30px;--erlen-radio-capsula:999px;--erlen-radio-badge:999px;\n --erlen-vidrio-reflejo:radial-gradient(ellipse at 24% 0,color-mix(in srgb,var(--erlen-superficie) 90%,transparent),transparent 62%),linear-gradient(180deg,color-mix(in srgb,var(--erlen-luz) 9%,transparent) 0 48%,transparent 49%,color-mix(in srgb,var(--erlen-verde) 6%,transparent) 100%);\n --erlen-vidrio-contorno:color-mix(in srgb,var(--erlen-verde) 42%,var(--erlen-linea));\n --erlen-vidrio-relieve:inset 0 2px 0 var(--erlen-superficie),inset 0 -3px 0 color-mix(in srgb,var(--erlen-verde) 20%,transparent),0 8px 22px color-mix(in srgb,var(--erlen-verde) 20%,transparent);\n --erlen-control-relieve:inset 0 2px 0 color-mix(in srgb,var(--erlen-superficie) 60%,transparent),inset 0 -2px 0 color-mix(in srgb,var(--erlen-verde) 25%,transparent),0 3px 8px color-mix(in srgb,var(--erlen-verde) 20%,transparent);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"esqueuomorfismo\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:6px;--erlen-radio-pequeno:6px;--erlen-radio-tarjeta:8px;--erlen-radio-panel:10px;--erlen-radio-capsula:6px;--erlen-radio-badge:6px;\n --erlen-vidrio-reflejo:repeating-linear-gradient(0deg,color-mix(in srgb,var(--erlen-tinta) 3%,transparent) 0 1px,transparent 1px 4px),linear-gradient(180deg,color-mix(in srgb,var(--erlen-superficie) 70%,transparent),transparent 55%,color-mix(in srgb,var(--erlen-espacio-fondo) 5%,transparent));\n --erlen-vidrio-contorno:var(--erlen-linea-fuerte);\n --erlen-vidrio-relieve:inset 0 2px 0 var(--erlen-superficie),inset 0 -3px 0 var(--erlen-linea-fuerte),0 4px 0 var(--erlen-linea),0 7px 12px color-mix(in srgb,var(--erlen-espacio-fondo) 18%,transparent);\n --erlen-control-relieve:inset 0 1px 0 var(--erlen-superficie),inset 0 -2px 0 var(--erlen-linea-fuerte),0 2px 0 var(--erlen-linea-fuerte);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"retro-digital\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:0px;--erlen-radio-pequeno:0px;--erlen-radio-tarjeta:0px;--erlen-radio-panel:0px;--erlen-radio-capsula:0px;--erlen-radio-badge:0px;\n --erlen-vidrio-reflejo:repeating-linear-gradient(180deg,color-mix(in srgb,var(--erlen-tinta) 2%,transparent) 0 1px,transparent 1px 3px);\n --erlen-vidrio-contorno:var(--erlen-tinta);\n --erlen-vidrio-relieve:inset 2px 2px 0 var(--erlen-superficie),inset -2px -2px 0 var(--erlen-linea-fuerte),3px 0 0 var(--erlen-tinta),0 3px 0 var(--erlen-tinta),6px 6px 0 var(--erlen-linea-fuerte);\n --erlen-control-relieve:inset 2px 2px 0 var(--erlen-linea),inset -2px -2px 0 var(--erlen-tinta),2px 2px 0 var(--erlen-linea-fuerte);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"y2k\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:14px;--erlen-radio-pequeno:14px;--erlen-radio-tarjeta:24px;--erlen-radio-panel:28px;--erlen-radio-capsula:999px;--erlen-radio-badge:999px;\n --erlen-vidrio-reflejo:linear-gradient(165deg,transparent 0 20%,color-mix(in srgb,var(--erlen-tinta) 6%,transparent) 24%,color-mix(in srgb,var(--erlen-superficie) 85%,transparent) 32%,color-mix(in srgb,var(--erlen-tinta) 7%,transparent) 40%,transparent 48% 68%,color-mix(in srgb,var(--erlen-luz) 10%,transparent) 76%,transparent 90%);\n --erlen-vidrio-contorno:color-mix(in srgb,var(--erlen-tinta) 55%,var(--erlen-linea));\n --erlen-vidrio-relieve:inset 0 2px 0 var(--erlen-superficie),inset 0 -2px 0 var(--erlen-linea-fuerte),inset 2px 0 0 var(--erlen-linea),inset -2px 0 0 var(--erlen-linea),0 6px 16px color-mix(in srgb,var(--erlen-espacio-fondo) 18%,transparent);\n --erlen-control-relieve:inset 0 2px 0 color-mix(in srgb,var(--erlen-superficie) 65%,transparent),inset 0 -2px 0 var(--erlen-linea-fuerte),0 2px 5px color-mix(in srgb,var(--erlen-espacio-fondo) 18%,transparent);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"cyberpunk\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:2px;--erlen-radio-pequeno:2px;--erlen-radio-tarjeta:2px;--erlen-radio-panel:2px;--erlen-radio-capsula:2px;--erlen-radio-badge:2px;\n --erlen-vidrio-reflejo:repeating-linear-gradient(135deg,transparent 0 20px,color-mix(in srgb,var(--erlen-verde) 4%,transparent) 20px 22px,transparent 22px 42px);\n --erlen-vidrio-contorno:var(--erlen-verde);\n --erlen-vidrio-relieve:inset 0 0 0 1px var(--erlen-verde),inset 4px 0 0 var(--erlen-verde),inset -4px 0 0 var(--erlen-verde),0 0 18px color-mix(in srgb,var(--erlen-verde) 35%,transparent);\n --erlen-control-relieve:inset 0 0 0 1px var(--erlen-verde),0 0 8px color-mix(in srgb,var(--erlen-verde) 40%,transparent);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"blueprint\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:0px;--erlen-radio-pequeno:0px;--erlen-radio-tarjeta:2px;--erlen-radio-panel:2px;--erlen-radio-capsula:0px;--erlen-radio-badge:0px;\n --erlen-vidrio-reflejo:repeating-linear-gradient(0deg,color-mix(in srgb,var(--erlen-verde) 6%,transparent) 0 1px,transparent 1px 20px),repeating-linear-gradient(90deg,color-mix(in srgb,var(--erlen-verde) 6%,transparent) 0 1px,transparent 1px 20px);\n --erlen-vidrio-contorno:var(--erlen-verde);\n --erlen-vidrio-relieve:inset 0 0 0 1px var(--erlen-verde),inset 0 0 0 5px var(--erlen-superficie),inset 0 0 0 6px color-mix(in srgb,var(--erlen-verde) 45%,transparent);\n --erlen-control-relieve:inset 0 0 0 1px var(--erlen-verde),inset 0 -3px 0 color-mix(in srgb,var(--erlen-verde) 18%,transparent);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n/* Identidad elegida: atmósfera amplia e iconos de controles. Nunca contenido científico. */\n:root[data-erlen-estilo]{--erlen-cromo-luz:color-mix(in srgb,var(--erlen-luz) 42%,var(--erlen-papel));--erlen-cromo-acento:color-mix(in srgb,var(--erlen-verde) 12%,var(--erlen-papel));--erlen-cromo-fondo:var(--erlen-cromo-trama),var(--erlen-papel);--erlen-atmosfera:var(--erlen-cromo-fondo);--erlen-icono-relieve:inset 0 0 0 1px var(--erlen-vidrio-contorno);--erlen-icono-render:auto}\n@media(prefers-color-scheme:dark){:root:not([data-theme=\"light\"])[data-erlen-estilo]{--erlen-cromo-luz:color-mix(in srgb,var(--erlen-luz) 12%,var(--erlen-papel))}}\n:root[data-theme=\"dark\"][data-erlen-estilo]{--erlen-cromo-luz:color-mix(in srgb,var(--erlen-luz) 12%,var(--erlen-papel))}\n:root[data-erlen-estilo=\"bauhaus\"]{--erlen-cromo-trama:radial-gradient(circle at 88% 20%,var(--erlen-cromo-luz) 0 160px,transparent 162px),linear-gradient(90deg,var(--erlen-cromo-acento) 0 12%,transparent 12% 78%,var(--erlen-cromo-acento) 78%);--erlen-icono-grosor:2.9;--erlen-icono-terminal:butt;--erlen-icono-union:bevel;--erlen-icono-guion:none;--erlen-icono-filtro:none;--erlen-icono-radio:0px;--erlen-icono-placa:linear-gradient(90deg,var(--erlen-cromo-luz) 0 50%,var(--erlen-superficie) 50%)}\n:root[data-erlen-estilo=\"glassmorfismo\"]{--erlen-cromo-trama:radial-gradient(circle at 12% 18%,var(--erlen-cromo-luz) 0 120px,transparent 122px),radial-gradient(circle at 88% 75%,var(--erlen-cromo-acento) 0 220px,transparent 222px);--erlen-icono-grosor:1.4;--erlen-icono-terminal:round;--erlen-icono-union:round;--erlen-icono-guion:none;--erlen-icono-filtro:drop-shadow(0 1px 1px var(--erlen-superficie));--erlen-icono-radio:16px;--erlen-icono-placa:var(--erlen-vidrio-reflejo)}\n:root[data-erlen-estilo=\"neumorfismo\"]{--erlen-cromo-trama:linear-gradient(135deg,var(--erlen-superficie-2) 0 42%,var(--erlen-papel) 42% 58%,var(--erlen-cromo-acento) 58%);--erlen-icono-grosor:2.1;--erlen-icono-terminal:round;--erlen-icono-union:round;--erlen-icono-guion:none;--erlen-icono-filtro:drop-shadow(1px 1px 1px var(--erlen-linea-fuerte));--erlen-icono-radio:10px;--erlen-icono-placa:linear-gradient(135deg,var(--erlen-superficie),var(--erlen-superficie-2))}\n:root[data-erlen-estilo=\"neobrutalismo\"]{--erlen-cromo-trama:repeating-linear-gradient(135deg,var(--erlen-cromo-acento) 0 32px,var(--erlen-papel) 32px 96px);--erlen-icono-grosor:3;--erlen-icono-terminal:square;--erlen-icono-union:miter;--erlen-icono-guion:none;--erlen-icono-filtro:none;--erlen-icono-radio:0px;--erlen-icono-placa:linear-gradient(90deg,var(--erlen-cromo-luz) 0 50%,var(--erlen-superficie) 50%)}\n:root[data-erlen-estilo=\"minimalismo\"]{--erlen-cromo-trama:linear-gradient(90deg,var(--erlen-cromo-acento) 0 2px,transparent 2px);--erlen-icono-grosor:1.1;--erlen-icono-terminal:butt;--erlen-icono-union:miter;--erlen-icono-guion:none;--erlen-icono-filtro:none;--erlen-icono-radio:0px;--erlen-icono-placa:none}\n:root[data-erlen-estilo=\"art-deco\"]{--erlen-cromo-trama:repeating-linear-gradient(45deg,transparent 0 38px,var(--erlen-cromo-luz) 38px 40px,transparent 40px 78px),repeating-linear-gradient(135deg,transparent 0 38px,var(--erlen-cromo-luz) 38px 40px,transparent 40px 78px);--erlen-icono-grosor:1.8;--erlen-icono-terminal:square;--erlen-icono-union:bevel;--erlen-icono-guion:none;--erlen-icono-filtro:none;--erlen-icono-radio:0px;--erlen-icono-placa:linear-gradient(135deg,var(--erlen-cromo-luz) 0 24%,transparent 24% 76%,var(--erlen-cromo-luz) 76%)}\n:root[data-erlen-estilo=\"claymorfismo\"]{--erlen-cromo-trama:radial-gradient(ellipse at 0 0,var(--erlen-cromo-luz) 0 34%,transparent 35%),radial-gradient(ellipse at 100% 100%,var(--erlen-cromo-acento) 0 32%,transparent 33%);--erlen-icono-grosor:2.7;--erlen-icono-terminal:round;--erlen-icono-union:round;--erlen-icono-guion:none;--erlen-icono-filtro:drop-shadow(0 2px 0 var(--erlen-linea-fuerte));--erlen-icono-radio:12px;--erlen-icono-placa:linear-gradient(145deg,var(--erlen-superficie),var(--erlen-cromo-luz))}\n:root[data-erlen-estilo=\"frutiger-aero\"]{--erlen-cromo-trama:radial-gradient(ellipse at 50% 110%,var(--erlen-cromo-luz) 0 48%,transparent 49%),radial-gradient(ellipse at 100% -20%,var(--erlen-cromo-acento) 0 52%,transparent 53%);--erlen-icono-grosor:2.2;--erlen-icono-terminal:round;--erlen-icono-union:round;--erlen-icono-guion:none;--erlen-icono-filtro:drop-shadow(0 1px 0 var(--erlen-superficie));--erlen-icono-radio:999px;--erlen-icono-placa:linear-gradient(180deg,var(--erlen-superficie) 0 48%,var(--erlen-cromo-luz) 49% 100%)}\n:root[data-erlen-estilo=\"esqueuomorfismo\"]{--erlen-cromo-trama:repeating-linear-gradient(0deg,var(--erlen-cromo-acento) 0 1px,transparent 1px 5px),linear-gradient(90deg,var(--erlen-superficie-2),var(--erlen-papel));--erlen-icono-grosor:2;--erlen-icono-terminal:round;--erlen-icono-union:bevel;--erlen-icono-guion:none;--erlen-icono-filtro:drop-shadow(0 1px 0 var(--erlen-superficie));--erlen-icono-radio:4px;--erlen-icono-placa:repeating-linear-gradient(0deg,var(--erlen-cromo-luz) 0 1px,var(--erlen-superficie) 1px 3px)}\n:root[data-erlen-estilo=\"retro-digital\"]{--erlen-cromo-trama:repeating-linear-gradient(0deg,var(--erlen-cromo-acento) 0 2px,transparent 2px 8px),repeating-linear-gradient(90deg,var(--erlen-cromo-luz) 0 2px,transparent 2px 8px);--erlen-icono-grosor:2.8;--erlen-icono-terminal:square;--erlen-icono-union:miter;--erlen-icono-guion:none;--erlen-icono-filtro:none;--erlen-icono-radio:0px;--erlen-icono-placa:repeating-linear-gradient(0deg,var(--erlen-cromo-luz) 0 2px,var(--erlen-superficie) 2px 4px)}\n:root[data-erlen-estilo=\"y2k\"]{--erlen-cromo-trama:linear-gradient(155deg,var(--erlen-papel) 0 22%,var(--erlen-cromo-luz) 24%,var(--erlen-superficie) 31%,var(--erlen-cromo-acento) 39%,var(--erlen-papel) 48% 68%,var(--erlen-cromo-luz) 76%,var(--erlen-papel) 90%);--erlen-icono-grosor:2.4;--erlen-icono-terminal:round;--erlen-icono-union:bevel;--erlen-icono-guion:none;--erlen-icono-filtro:drop-shadow(1px 0 0 var(--erlen-superficie)) drop-shadow(-1px 0 0 var(--erlen-linea-fuerte));--erlen-icono-radio:8px;--erlen-icono-placa:linear-gradient(155deg,var(--erlen-superficie) 0 25%,var(--erlen-cromo-luz) 40%,var(--erlen-superficie) 55%,var(--erlen-cromo-acento) 80%)}\n:root[data-erlen-estilo=\"cyberpunk\"]{--erlen-cromo-trama:repeating-linear-gradient(90deg,var(--erlen-cromo-acento) 0 2px,transparent 2px 64px),repeating-linear-gradient(0deg,var(--erlen-cromo-acento) 0 2px,transparent 2px 64px);--erlen-icono-grosor:2.5;--erlen-icono-terminal:square;--erlen-icono-union:bevel;--erlen-icono-guion:none;--erlen-icono-filtro:drop-shadow(0 0 3px currentColor);--erlen-icono-radio:2px;--erlen-icono-placa:linear-gradient(135deg,var(--erlen-cromo-luz) 0 12%,transparent 12% 88%,var(--erlen-cromo-luz) 88%)}\n:root[data-erlen-estilo=\"blueprint\"]{--erlen-cromo-trama:repeating-linear-gradient(90deg,var(--erlen-cromo-luz) 0 1px,transparent 1px 24px),repeating-linear-gradient(0deg,var(--erlen-cromo-luz) 0 1px,transparent 1px 24px),repeating-linear-gradient(90deg,var(--erlen-cromo-acento) 0 2px,transparent 2px 120px),repeating-linear-gradient(0deg,var(--erlen-cromo-acento) 0 2px,transparent 2px 120px);--erlen-icono-grosor:1.35;--erlen-icono-terminal:butt;--erlen-icono-union:miter;--erlen-icono-guion:3 1;--erlen-icono-filtro:none;--erlen-icono-radio:0px;--erlen-icono-placa:repeating-linear-gradient(90deg,var(--erlen-cromo-luz) 0 1px,transparent 1px 8px),repeating-linear-gradient(0deg,var(--erlen-cromo-luz) 0 1px,transparent 1px 8px)}\n :root[data-erlen-estilo=\"neobrutalismo\"]{--erlen-icono-relieve:inset 0 0 0 1px currentColor,2px 2px 0 currentColor}\n:root[data-erlen-estilo=\"minimalismo\"]{--erlen-icono-relieve:none}\n:root[data-erlen-estilo=\"art-deco\"]{--erlen-icono-relieve:inset 0 0 0 1px var(--erlen-ambar),inset 0 0 0 3px var(--erlen-superficie),inset 0 0 0 2.5px var(--erlen-ambar)}\n:root[data-erlen-estilo=\"claymorfismo\"]{--erlen-icono-relieve:inset 1px 1px 2px var(--erlen-superficie),inset -1px -1px 2px var(--erlen-linea-fuerte),0 2px 0 var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"retro-digital\"]{--erlen-icono-render:crispEdges;--erlen-icono-relieve:inset 1px 1px 0 var(--erlen-superficie),inset -1px -1px 0 var(--erlen-tinta)}\n:root[data-erlen-estilo=\"cyberpunk\"]{--erlen-icono-relieve:inset 0 0 0 1px currentColor,0 0 6px color-mix(in srgb,var(--erlen-verde) 30%,transparent)}\n/* Cristal accesible: sin backdrop-filter, con menos transparencia, más contraste, colores forzados o\n   [data-erlen-material=\"solido\"] (elección de la persona), el material pasa a superficie opaca, sin reflejos ni desenfoque.\n   :root:root sube la especificidad para ganar a los bloques del modo oscuro, que también redefinen el cristal. */\n@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root:root{--erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie)}}\n@media (prefers-reduced-transparency:reduce){:root:root{--erlen-vidrio-reflejo-acento:none;--erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-reflejo:none;--erlen-vidrio-filtro:none}}\n@media (prefers-contrast:more){:root:root{--erlen-vidrio-reflejo-acento:none;--erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-tinte:var(--erlen-verde-suave);--erlen-vidrio-reflejo:none;--erlen-vidrio-filtro:none;--erlen-vidrio-borde:var(--erlen-linea-fuerte);--erlen-vidrio-contorno:var(--erlen-tinta);--erlen-vidrio-relieve:0 0 0 1px var(--erlen-tinta);--erlen-atmosfera:var(--erlen-papel)}}\n@media (forced-colors:active){:root:root{--erlen-vidrio-reflejo-acento:none;--erlen-vidrio:Canvas;--erlen-vidrio-fuerte:Canvas;--erlen-vidrio-tinte:Canvas;--erlen-vidrio-reflejo:none;--erlen-vidrio-filtro:none;--erlen-vidrio-borde:CanvasText;--erlen-vidrio-contorno:CanvasText;--erlen-vidrio-relieve:none;--erlen-atmosfera:Canvas}}\n:root[data-erlen-material=\"solido\"]{--erlen-vidrio-reflejo-acento:none;--erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-reflejo:none;--erlen-vidrio-filtro:none;--erlen-atmosfera:var(--erlen-papel)}\n@media print{:root:root{--erlen-vidrio-reflejo-acento:none;--erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-reflejo:none;--erlen-vidrio-filtro:none;--erlen-vidrio-relieve:none;--erlen-atmosfera:none}}\n\n/* Los respaldos eliminan también tramas, brillo y placas de los iconos. */\n:root:root[data-erlen-estilo][data-erlen-material=\"solido\"]{--erlen-cromo-trama:none;--erlen-cromo-fondo:var(--erlen-superficie);--erlen-atmosfera:var(--erlen-superficie);--erlen-icono-placa:none;--erlen-icono-relieve:none;--erlen-icono-filtro:none;--erlen-icono-guion:none;--erlen-icono-render:auto;--erlen-icono-grosor:1.6;--erlen-icono-terminal:round;--erlen-icono-union:round}\n@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active),print{:root:root[data-erlen-estilo]{--erlen-cromo-trama:none;--erlen-cromo-fondo:var(--erlen-superficie);--erlen-atmosfera:var(--erlen-superficie);--erlen-icono-placa:none;--erlen-icono-relieve:none;--erlen-icono-filtro:none;--erlen-icono-guion:none;--erlen-icono-render:auto;--erlen-icono-grosor:1.6;--erlen-icono-terminal:round;--erlen-icono-union:round}}\n@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root:root[data-erlen-estilo]{--erlen-cromo-trama:none;--erlen-cromo-fondo:var(--erlen-superficie);--erlen-atmosfera:var(--erlen-superficie);--erlen-icono-placa:none;--erlen-icono-relieve:none;--erlen-icono-filtro:none;--erlen-icono-guion:none;--erlen-icono-render:auto;--erlen-icono-grosor:1.6;--erlen-icono-terminal:round;--erlen-icono-union:round}}\n\n/* Erlen Suite · paquete de diseño · fuentes autoalojadas (copias subseteadas de web/recursos/fuentes/, ver manifest.json del portal).\n   Rutas relativas a este archivo: la app se sirve sola. Licencias: licencias/GUST-FL.txt (Latin Modern) y licencias/OFL.txt (CMU). */\n@font-face{font-family:\"LM Roman\";font-weight:400;font-style:normal;font-display:swap;src:url(data:font/woff2;base64,d09GMk9UVE8AADroAAkAAAAAcqAAADqiAAEAA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4wp1xJRPUVOCVtFhW9kbU5s1fhGpPF7w0s7RBpIXmvUP0B2VCNt2I0kPvYRVQy2TLPn1QwkJoO0Fg5LFASYJmxPPrufSKqGJQ0F6k14XC8pDEId+96W0EtMcXRwDXfwK2sWUozL6MF7kEvwjZHOwm7Mw/dp01WDRFuQA2x8Xismae7N00boxam92n6UTi1/XAjmuj0k7xSIxRhfGgDfIM90nNVm2C0IVJnKKROshQJ2bwhjyt9ErRFF8El1XTiXLaR2EXjYD7Ew1XgHuEFjGyeuDb0RQCKb8Q5YAaMWQwY/ufAghcAZ0toAv9r8QzA6Hkk/LuHXrIP52CTMPEN6ozz1BCFghbOBOc7gHCqC8ZIhojoYV2gaiCUGZbqBtkFMRVTc3yuBWzOQN7QTs663B8aRxAOaILBS822gcoCR98Av8y9f7HeT3qCOSY/mHOUyoMvjZFnN/11WBpx4doO8axhzlcYdAki0LgJTeeZEUHwtX8oYizWDdo3zgkJlg5fYtcHKWQb/Vz1MNGt6EsEmP8UjYE+D5VQaCYAJGVMBb0LfESD4Bws/I4GmKHU=) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n@font-face{font-family:\"LM Roman\";font-weight:700;font-style:normal;font-display:swap;src:url(data:font/woff2;base64,d09GMk9UVE8AADp0AAkAAAAAbcAAADotAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAADYHLXgZgAIUKATYCJAOHTAQGBQYHIBsZbUUHarcDEFElzy+iajNc9v8huTEG9YCa0FEix9Ud1sSvJqtWoe2pIFMp1C4e9bR1v6f62wu9pfdJDvpF02B1a1FDgSwNAoUEY05hXTsFheJARWaxyMohNhfn6giNfZILkb+3zey+q0XSJMYQ4luxuFKNwiI0GiPQ5Iw6vvAXLG+Arnn3uEc96qX771k9V1sip2CviTWwNaiBzW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XZW43cD21SvNW0+AJwex78MG2pSIZM5LSxgyRJ34BhrvRMEWRPEOoLOXvcEjF4+x+WMsbPtwz7KGqshdcDYaLJpOpK5dgPXVmDEcEWEKga0JP/XxEgXKfRoAZxH2ABpbZCUHasfNgAA) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n@font-face{font-family:\"LM Sans\";font-weight:400;font-style:normal;font-display:swap;src:url(data:font/woff2;base64,d09GMk9UVE8AAC5kAAkAAAAATZAAAC4cAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAADYGLLQZgAIUKATYCJAOHTAQGBQYHIBvoTCMDeRwAZHddkP31gSlDTLtD1IdVRsPp6XLbvhDLaW7OaF8l5OQNxfjtz3ZZDMNgEIKDIeZs/MYOFoLDqcOFgQRHF7+MkGSWf6j92J+7+1CJeCJSukmIlRKZHzrzGzJA2+yOKMkSzkaMprVf8CzM6FWpq3SuOpwra1VuL/9Pf9DOfX+JFnBFF2glDSSTppk84JpJMy9v/r+5vsYKamZ3e744B+qevffviXibIaIRIgSaBKmY3VS8KgkJJGjAgwWz9mftIyq1+6rn/Tw/Z9//u5v7GHujYf8muy8tNYUWSoCgQSzoIDYUKiJQk4SKUlyCmRfROtU5L/+EHXTX8Q9S8qF5v9CWkkOFPtHu/EbAv1/Nfz9wVQqPol4OtQNEDgDyCIkd+IRb5dN+//+an/a9Tc6eWU6WWGZXZYXbLbGQLPyb+35mMy/5wBNYIExh5sPM/ylx8hdSIJy/BJAUF1gWGGSrgEfIGlmjF1x1hakzlZWVlZWVtbVVmBsza9BWXP7sN/8rvVEsyhWgnilDJgywgPui/t50BHUBwEDaXeCDNKNnb/NDi2BBW80J2AVcd1zP4Hrn4uhbBHMics/2N/4qpi8J0UtPUK0r/wsYL3tCwCmAw/zzb3kcAN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5rrYK6Yj+WkkAAAA=) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n@font-face{font-family:\"LM Sans\";font-weight:700;font-style:normal;font-display:swap;src:url(data:font/woff2;base64,d09GMk9UVE8AADmkAAkAAAAAcLQAADleAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAADYHRUQZgAIUKATYCJAOHTAQGBQYHIBsMcAXcGLrdDghU13gVsv/r5K1Qdg+tz5LFYpPKEFb7m7kJCfTEMT2RHSIe96DRq1Hv9Dj6v3bjiLAmxsHCBWrrFOkIAjF9GSHJ7PA0t3+37bbBiljetruNyq2pMWRUj0gxKlEQi5NRFtgfP9gN2mCB+BETtAkjz//HF7NwlYGVJkS62tpP2Q8EdDcPAWBu+dof6H9sePfeRxA0dLFVo60IppWy0BYXAP///5z//5W1+5U/7r0P3qBiTqHtoUadClADWlSiRpKd7IhhHvBgcmihonbU5w4znL9q+rZkR4eLq+Luqn7XRb4B4WeIgSQefj0E0ojY+O3YQeLVwfQ8O+/9AuNsyhNt+/ucWUvOqmrPrkrr174/wBTsYBOaQbIMJJNsP8dAzZBkOj2IcPJBf7/UpH/Pa498dX1pclpVmA2YozShTHgn8Pt973q9Wql7+pVe5GgtX+2KnK4YpjTmWmVdk6/L6a3gvgbsoCfoEE0rOMOD2MEAePDgsQtgmeBQEpPZRN/sXgxJS9g6bD3WtGLKtbbFLc1sYgXJBLGCgrTt3/MAAhQKgCCInZBoHjlttlLha2EF9zqHSKDVSMUaFWujKOviLR+rG5P8gkkZHIEXT6e+lFCmwVIASOM4EgDOBAAcqk86Srw98AyAABX8A16BPvAZ/PJ/BYgBcSAHSAChkBxyhbwgFaSDgqFhkAmKg1IhM5QNFUKToWnQDGg2tAhaCpW61nVWucP9HvOEUp1R+SkUGoyh1oPLn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mJ/QGQ4QBhPgC7yJWElLBfaXZi8Bleem/Yo0McBl0/wx7HpwjAHueu+54G0EkAhhMIRl8JeTTq1GyISxcMoSYEHKBbw3Q/YItDIOyk2za03QCZkA0FQMrRzK7QWMCzTAJ7CCCwFDnRCqBOqiaAxvwqCTSyREsDbTxkvPEI1ijE0w4CxdCP4KHn1EPqOnW6a9ckAAXdCZzxO/H4JZJcSAyB1gAx4A9FczSHkKN3ikGb8QUo1yaKV0qSTby+MxAsvv1OEO9C9jbJlGkirC9oErwAhN8nRaBsOCHskmAPsqWQFXLsDwGmzUM/YCZsl6gD7qxMsot/DmLBkiOWsGQmnQHCxZG7EhwL2RWSJFjp/dgITuAa2CkekLKg7whoqQMWDCMhm5hTXgI=) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n@font-face{font-family:\"CMU Concrete\";font-weight:400;font-style:normal;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAN5IABAAAAACQmwAAN3oAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnwbr0wcj3gGVgCCFAhECYQFCoiSLIe2aQuRMAABNgIkA5EsBCAFgxAHIAyBNFvlClKj4lgH3qDbEAAMVGtt7bxDAbsVHnRHkvOQFUpXHcHBeQAh+su6zf7/M5KKHCZF0naDwyFDkGFYkAMjTYXsxFAVO4VRNYu8t0fBs0Q5MzhwePWhsBSduMwZTq7Nekn+fFObeyJz6UN6R/gFR+GJZnThjQa05NmGHro/dmwpEiSJtIH+4X/TgU94qWmMpLMvFHeU6BXH3Cdbajc1W7R7iYWJWm8dmMj1ASPLliNXnnyh75F73pm774OI6TaV2Oak6MyK0NuxmtrM7BriIJghQA5BmVyGtLq++AqADgDaIaKyU8QBmlu7RRUL2AaM2GAb3BGLYmNjsA0YWQagtKAYoG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LNY8h6JStLKIjCbRlmnatPDKE9pNnhOvfXiuOR//5x5xJu/eEQX5rE2qd8+jZ0ePqxQinMTbi83zmRE9GjKvUyDRWTAuC9WD11WT3cdCyseCn5evpdyfBVjiL9SDR8ZsDCQ6GcR8xI9v8iNxh/XMXKGxFUQPrZf1zYSqlcBW1TtWPpeaIbjxZAsj7UtqCT/eNOXAbkcek/1GdUq0v0+OawRTiii78MiNo+Pl4VMgfXkLSF95PfETEff5TJPmbOIlxCZCfsfyEsErMozbiLGlODpMq4h7zK0kfkhzEdRHnVtxVz3bSMM3dVXtGtSbsz/B0KvcjjTVnRGOEY6E0X85ZNOIc3ivPWC1cff34khCYRbRz7s7WGALSQgJvk+M4RZyRSFxihvm6wislHPKIsGyQErub9mCtpGRqIshhUDRxLQNXanY1MaQQgftd4+vZmQMrCjNRwY/6mSaqoW8ob3MVsOH2AN3K+7EemXv9jZ1+c190BRgEAKNQHctwoMeFA3m4fDbEhrOfjaBQ+tkYG6j6bBweGZ9NgIYs32iHrkWokyFS/X4zTKMwj8ZiWxaQTstTFBZZurXueguMha/FhAnyKPLwiBOPxrYZu26/XXStyo1ctaOpz0dDehz17AiPEXiIIAofqA/uLUO8dsv4BXL1drnIWs/bV06NkdVymmB38Tz5zO4yRnfJvIxJmiWbhMTqAlZ0nr+YyW7wD/spdXEE9QIN3O6KE4OiXspGtwOEBUYegGrp5R9jV74KjkCOIHBgEayBLnBh0XTMWPCCnBOuSxcoul+nMnafPmlYu5edPItl0Zcof7/PkXvnwg0q3mWWTwBVvqVinOiHKoesDAAA) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n@font-face{font-family:\"CMU Concrete\";font-weight:400;font-style:italic;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAAN1IABAAAAACQCQA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OdpHUMHzOuZbtdVYUAaLCCwHgqui9+IL9EZFTnUaJoZrDdIuZ9gGn3itGxW+kYM7KTxbPbYiFli7lyLLyNPN6pjWxgjihKc7tYleC6+owWrEcwtZvN7KXFE40BPWWbZoILFjua6XFoKBxoLi+iDDIUWVkOebNM4Yoma9iNHVJKBFvPdSVBK1gEDC1UQ9bhqhgvDZzBev7RHDIkYTcmOtTSwAK38jn6nPs3OFITYfKiUixWnnxFA0xOLH4l3+2Tq7HtstjlSwQNhKLDeRIdJuOfe9nBIpLCKjkmkrLSAtY1nJxU/vhuqTnTSSkgqtblrN5VosA5M7v4IVlxc5M/RCleTH+aO7RBS1REmlMS2lijorn6t40JhUySwRPN5sDtcN5L5E8N3MOqRFgG8o70xTqM9q+oby5SDFqlboJ08BBntbNBak1VmFC568UpbSbHxisrhe/iieMeBEwO/SddZkOyW/EXMqplmfyYuZjJhZ65lVns6NcU5MbZMV7hGD6tr8j5458hxzTnShf8nmLZEhNb0Oew4XMf40RmwyQfouj4GV/4Afju9HScO2j1O78dkK8vI/Ld5bTdLVg4umTp/uRcX250EWLnweQseRz8NIM+/zsIgCP0+NNXsiiVOHgUNEivdeBfLNVSyb1JTchQ2bmXItzCihzrIkwMONIvHgy+MRQ6kvo9VA1OE4jDTTRWd+JUYhfwgjgO3nJqNx58NdCekZ3X2nIDZ0yqKApliXsizxDMo5Yh+AkpCHL/FlZlggLaLmsX5JHuPKIorNi8SrBAaYj3++Pmtut/X++kr+Vz4DG4U/w/hnMgvYdNZbH2DXM3kDU9dHl+XPf8xNNG6AXc9VYMOq6GGAroeCooflCb5c52qJDasjIiaYoPWsknP7IHxKeCl57gJo3DmgrlQjL+u16ElFNQE=) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n@font-face{font-family:\"CMU Concrete\";font-weight:700;font-style:normal;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAALagABAAAAABroQAALY/AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnYbqyIciWQGVgCCFAhMCYQFCoaBPIW7QQuHIgABNgIkA45ABCAFg0QHIAyBNVvKhlGj6HWHHGonILN8X5dZhoLp5uDldlj81t8cUHUgdjuATyVulez//56cyBjMC2NqWgkVNrloIwmaFTWaPIe70IybhHMSSYXkcEPLrdKXawv9uenhm/R5TtOVZaq16a5uXHlEgfFlVYa2jH7m6eX/6oB299KrSipsWCxIhXbgH86L3sQJNdsUb7FYC976O3DTgVY3NaWbjtERHo6EWbcOTOT6gJEs25ErT748H/j39b921ZmeZ+tDiB6V/hQMBYYQ+9YAza3dNhbRbGyM2kb1ou8WDNiIHC3VikgKCla8iWLGG++b9a/+t/X++/r+G/n/+iH+1377TVgiNEKzto1HKgwN+uuohMjMSYh4/e030bvfGup+ufbuH1/CmM3EHskCwqbA4P/EqXfCtawQlaz/vDr7nsZiLHsMtkRIAkSIsgkCBzmNfkhhu5p2Q1GH9pz7LuNqQ7tFvbmkKP2jU3uMaCrIeoLujrENMYfiRy75usuvfZjWDCPLxHzv1Jq549HunywZSm8bbFJYCBSAJU1St+sF4Pw4dxy//RMYYgcaS7JlSNgcJml0CFNzG3adUBvr7zrT6ww1V4UBRQSlEFsJYgBFbaGUIKJiAEQxYOg03bu5e/fu9dvfdx7P/rz82VKf34PHHLeyNulWqdDf+jhbaxGyg20WBUKAYEmQAMG80JaWTmc646tn9vjp/7t7iky4JgmfTqIhDk7gwCUfSiAWmDqwtGvw9Ag9wNS+RJqFOotsxdLOag2K4hAo5MABPgF1X9TlXekqp6WFqm7p4P9NELmcAXEoafZOBwYKHe8l3eWs284WHgm0I0MU+v9MNds/OwAJiBcIhQspuWgISpc6l35XlC4q7J9ZzM7MLgguQBFBAQznxyD6CMi6RJ29CdAShwtZwSHkLlFyyKEpXIVU2p1rF42LVu8qh6JyW5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pgPYFbRtic7HahcJVlNkv34gihjYuI42SyQwocNbS7QKe8RVfAxnKzEZvrwMeTSRX0bAyVvM+5pINGtWBkZiYvi/XtSvBaLAZbnepkW9h95+jnCUox1yclgXNqlqAlEREvaDLlbE05GjDPZoqT7rAUA5sjHNyombY6uGYRl5jJvIxa/HoVVi2Yc3anV7EVdX5ac3Oy2JsugeUXTzmqFiySSSp9kfVyltA3ppwwYxFNCKwJW+506pgEkIkCNzo8m9MhNo+z2Rxfe0LBhjTatcev6h7E+Qd9FXiNLCRdSqahRZlwbJArzhucGfv1OuR8sq3W3TbyYxeZqorn7OVp5ba4UljFUYicJ2EzxOBGj35w1LNz6q+ZK/45Ej72/hEP+2za4ajJWm/OwG1Tn2FAWuV9yATJI93kl850sFVgwCfonOUwoOGfrrDD3QF/3teaXd8o764Dy6Z9201hXA7g+O9yOIx3lyN06bkcSSvl8gACEomiHeZ8Dtljo0YNyrSo0NbqEfSPi+uU8y63aFWTbZfQUImX1CxO6y9ZhiXLEiZdr7Ih6Iq99OT1eqVoM0W3+WaLqoMbVfexTqrNKzwwUoIIcSJENKVEYjzHY93RtdtWse7XPbSuBZZgVPdSmXa3yTXqqFdquUm9zNqTHLeyv7lWCOfJ8REF3+2HMvXAu+A84Lsi9y3xCnjy1v2/ocJuCaxQckGknt/vo69dWEGF3ZFD+zZILtxHwi7YF0ouPOCnVNg7EpwaMkh0il+2G9i3aSkRGeqbeTfC/NpO+LQwvCfsdM6D+D7HHOxdw1DJ05nELCoXAAAA) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n@font-face{font-family:\"CMU Typewriter\";font-weight:400;font-style:normal;font-display:swap;src:url(data:font/woff2;base64,d09GMgABAAAAANAEABAAAAAB7KAAAM+lAAEAAAAAAAAAAAAAAAAAAAA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NvH6aViF44awJnK9VoAGzOL26JQFzdSqMCBabnJyY7NWOyuO1ZkOgoIC+TJBUIBkteQZPCiJsFZCAgtEi5MDhPJ4WKuVig61x2iZDU2M7QUgAJsXqOXgCmE2/W0OuXXiFmV+VKlx5hQa65xAM4qgES8fWAslhSiBNABtR5wDRkxlL8wqHCgF1Hhf8WldSOEOW7qEdiTFBI4oSsWu/RZvONX+JBlaUsefOJGXkfpAvRrW6pqS5u5oXP4lRL4KQ254Qv4mOX8Boc+fyGHKgy4MOsuFsg0rQbyfOuOSTDtjGISBULJ+dBXmMIQUIH2AlRg24Ij4JrcAaG5k8uKnDoTER5Mi/9TI/7qhxT3lJrmcCHJI/p6jJOx5+gHIVJg7hTYBIwCgMNUHCxaQQsTtItargNj9uQoExnerwHSYvoqAWOmrCLFwI5HwHKCLPGVKTdGp1SQTjNKlVZFhihOP0K1dY4jLETSx5n6cDhSPcHHCy1MsUCI1hQgFaHJgjBLD6SK4q0ETKNQq5JFipZMoKOZl9ooXJlaYAB4jCYQeIYuD6nAPAnHQgprYLMVPoZYOt3psuXDHFmoUaBw3jNKmqUM+VoapDCSJ4ok0XNIBk1WP0B4fjSQxpQsibLNxihkVr7AQCjBxdydbYsybQpKY4qH2ETUGRShFedwu4WDq2NxLZMEVAWN7uIbm7QaXkfMqKRx5HASXjzqeLgoZKcd81fAxTfEe/W+V9VgyvGMNONamugEO6QoJ1a0ACP0XqOGEEEfcSv6eAVEdsTEid6zo7UhG1JBGxuzJ0+f3hDxNAZAuzgLGAQA=) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n\n/* Erlen Suite · paquete de diseño 2.0.0 · base del cromo de las apps (docs/GUIA-DISENO.md §0 y §3–§5, docs/CONTRATO-APP.md §2).\n   Solo cromo: cabecera, controles, estado, pie. El contenido del usuario (documento, hoja, figura, diapositiva) no se toca y sigue opaco.\n   Cristal (2.0.0): cabecera, paneles, diálogos y .erlen-vidrio usan los tokens --erlen-vidrio* de tokens.css, que ya traen sus respaldos.\n   Ningún color literal aquí: todo es var(--erlen-*) de tokens.css. Licencia: licencias/MIT.txt */\n*,::before,::after{box-sizing:border-box}\nhtml{-webkit-text-size-adjust:100%}\n/* Opt-in responsive recipes. User content remains opaque; ARIA belongs in markup.\n   Original Erlen implementation; references: docs/research/ui-saas.md. */\n.erlen-ui-stack{display:grid;gap:var(--erlen-esp-4);min-inline-size:0}\n.erlen-ui-stack>*{min-inline-size:0;max-inline-size:100%}\n.erlen-ui-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:var(--erlen-esp-4);min-inline-size:0}\n.erlen-ui-grid>*{min-inline-size:0}\n.erlen-ui-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:var(--erlen-esp-3);min-inline-size:0;max-inline-size:100%}\n.erlen-ui-toolbar>*{min-inline-size:0;max-inline-size:100%;overflow-wrap:anywhere}\n.erlen-ui-field{display:grid;gap:var(--erlen-esp-2);min-inline-size:0}\n.erlen-ui-field :is(input,select,textarea){inline-size:100%;min-inline-size:0;max-inline-size:100%}\n.erlen-ui-field :is(label,small){overflow-wrap:anywhere}\n.erlen-ui-field [aria-invalid=\"true\"]{border-color:var(--erlen-peligro)}\n.erlen-ui-message{padding:var(--erlen-esp-3) var(--erlen-esp-4);border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie);color:var(--erlen-tinta);overflow-wrap:anywhere}\n.erlen-ui-message[data-state=\"error\"]{border-color:var(--erlen-peligro);background:var(--erlen-peligro-suave)}\n.erlen-ui-message[data-state=\"success\"]{border-color:var(--erlen-verde);background:var(--erlen-verde-suave)}\n.erlen-ui-scroll{min-inline-size:0;max-inline-size:100%;overflow:auto;overscroll-behavior-inline:contain;border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie)}\n.erlen-ui-scroll:focus-visible{outline:3px solid var(--erlen-foco);outline-offset:-3px}\n.erlen-ui-table{inline-size:100%;min-inline-size:40rem;border-collapse:collapse;background:var(--erlen-superficie);color:var(--erlen-tinta);font:inherit}\n.erlen-ui-table caption{text-align:start;padding:var(--erlen-esp-3);font-weight:700}\n.erlen-ui-table :is(th,td){text-align:start;vertical-align:top;padding:var(--erlen-esp-3);border-block-end:1px solid var(--erlen-linea);overflow-wrap:anywhere}\n.erlen-ui-table th{background:var(--erlen-superficie-2)}\n@media print{.erlen-ui-scroll{overflow:visible;border:0}.erlen-ui-table{min-inline-size:0;table-layout:fixed}}\nbody{margin:0;background:var(--erlen-papel);color:var(--erlen-tinta);font:var(--erlen-texto-ui)/var(--erlen-interlineado-ui) var(--erlen-font-ui);-webkit-font-smoothing:antialiased}\n/* Títulos en LM Roman solo a partir de 24 px; por debajo, LM Sans. */\nh1,h2,h3,h4,p{margin:0}\nh1,h2{font-family:var(--erlen-font-titulo);font-weight:400;line-height:1.12;letter-spacing:-.5px}\nh1{font-size:var(--erlen-h1-app)}\nh2{font-size:var(--erlen-h3);font-weight:700}\nh3,h4{font-family:var(--erlen-font-ui);font-size:var(--erlen-texto-base);font-weight:700;line-height:1.3}\na{color:var(--erlen-verde);text-decoration:none}a:hover{text-decoration:underline}\ncode,kbd,pre,samp{font-family:var(--erlen-font-mono);font-size:.94em}\n/* Texto de lectura (párrafos largos, vistas previas): cuerpo de la familia a 17 px / 1,7. */\n.erlen-lectura{font:var(--erlen-texto-base)/var(--erlen-interlineado) var(--erlen-font-cuerpo);max-width:var(--erlen-ancho-lectura)}\n/* Foco ámbar visible en todo lo enfocable. */\na:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--erlen-foco);outline-offset:3px;border-radius:4px}\n/* Cabecera común: marca, título, badge y hueco para el menú de suite (erlen-suite-nav se monta dentro, a la derecha). */\n/* Sin backdrop-filter en la propia cabecera: crearía un bloque contenedor para el menú fijo de erlen-suite-nav que vive dentro.\n   Si una app la fija arriba (sticky), añade el desenfoque en un ::before (ver docs/COHERENCIA-APPS.md §0). */\n.erlen-app-header{display:flex;align-items:center;flex-wrap:wrap;gap:var(--erlen-esp-3) var(--erlen-esp-4);min-height:64px;padding:var(--erlen-esp-3) 4%;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border-bottom:1px solid var(--erlen-vidrio-contorno);box-shadow:inset 0 -1px 0 var(--erlen-vidrio-borde)}\n/* El nombre de la app cede espacio con base 0: con base auto su texto inflaba la primera línea y\n   bajaba la tira de controles a una segunda fila (p. ej. dft y data a 1440 px). Elipsis en\n   marco.css; a ≤ 600 px queda oculto visualmente. */\n.erlen-app-header h1{flex:1 1 0%;min-width:0;overflow-wrap:anywhere}\n.erlen-app-header .erlen-marca{font-weight:700;white-space:nowrap}\n:root[data-erlen-color] .erlen-app-header .erlen-marca{color:var(--erlen-verde)}\n.erlen-app-header>erlen-suite-nav,.erlen-app-header .erlen-menu{margin-left:auto;flex:0 0 auto;min-height:40px;display:flex;align-items:center}\n.erlen-app-header .erlen-menu:empty{min-width:88px}\n.erlen-app-header .erlen-menu>erlen-suite-nav{margin-left:0}\n.badge,.erlen-badge{display:inline-block;font:700 var(--erlen-texto-xs)/1 var(--erlen-font-ui);color:var(--erlen-tinta);background:var(--erlen-verde-suave);border-radius:var(--erlen-radio-badge);padding:6px 10px;white-space:nowrap}\n/* Controles: 44 px de alto, radio de campo, borde de línea; un solo .primary por bloque. El primario lleva el brillo especular del cristal. */\nbutton,input,select,textarea{font:inherit;color:inherit;margin:0}\nbutton,.erlen-boton{display:inline-flex;align-items:center;justify-content:center;gap:var(--erlen-esp-2);min-height:var(--erlen-alto-control);padding:var(--erlen-esp-2) var(--erlen-esp-4);border:1px solid var(--erlen-verde);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie);color:var(--erlen-verde);font-weight:700;line-height:1.2;cursor:pointer;text-decoration:none}\nbutton:hover,.erlen-boton:hover{background:var(--erlen-verde-suave);text-decoration:none}\nbutton.primary,.erlen-boton.primary{background:var(--erlen-vidrio-reflejo-acento),var(--erlen-verde);color:var(--erlen-verde-contraste);box-shadow:inset 0 1px 0 var(--erlen-vidrio-borde),0 2px 8px var(--erlen-vidrio-contorno)}\nbutton.primary:hover,.erlen-boton.primary:hover{background:var(--erlen-vidrio-reflejo-acento),color-mix(in srgb,var(--erlen-verde) 88%,var(--erlen-tinta))}\nbutton:disabled,.erlen-boton[aria-disabled=\"true\"]{opacity:.55;cursor:not-allowed}\nbutton.compact,.erlen-boton.compact{min-height:36px;padding:var(--erlen-esp-1) var(--erlen-esp-3);font-size:var(--erlen-texto-sm)}\ninput,select,textarea{min-height:var(--erlen-alto-control);padding:var(--erlen-esp-2) var(--erlen-esp-3);border:1px solid var(--erlen-linea-fuerte);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie);color:var(--erlen-tinta)}\ninput[type=\"checkbox\"],input[type=\"radio\"],input[type=\"range\"],input[type=\"color\"],input[type=\"file\"]{min-height:0;padding:0;border:0;background:none;accent-color:var(--erlen-verde)}\ninput::placeholder,textarea::placeholder{color:var(--erlen-tinta-suave);opacity:1}\ninput[data-error=\"true\"],.erlen-campo-error{border-color:var(--erlen-peligro);background:var(--erlen-peligro-suave)}\ntextarea{line-height:1.6;resize:vertical}\nlabel,small,.erlen-nota{font-size:var(--erlen-texto-sm)}\n/* Estado y avisos: en aria-live, sin animación. */\n#status,.erlen-status{min-height:26px;margin:var(--erlen-esp-2) 0 var(--erlen-esp-4);font-size:var(--erlen-texto-sm);color:var(--erlen-tinta-suave)}\n/* En el hueco «estado» de la cabecera del marco los márgenes verticales sobran: el hueco ya\n   centra y sus márgenes inflaban la fila (67 px en lugar de 61 en notes, lens y learn). */\n.erlen-marco-estado #status,.erlen-marco-estado .erlen-status{margin:0}\n#status[data-error=\"true\"],.erlen-status.error,.erlen-error{color:var(--erlen-peligro);font-weight:700}\n.erlen-aviso{padding:var(--erlen-esp-3) var(--erlen-esp-4);border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-pequeno);background:var(--erlen-ambar-suave);color:var(--erlen-tinta)}\n/* Paneles: cristal fuerte sin desenfoque (están en el flujo, no flotan); .destacado con más relieve. */\n.erlen-panel{background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border:1px solid var(--erlen-vidrio-contorno);border-radius:var(--erlen-radio-tarjeta);padding:var(--erlen-esp-4);box-shadow:var(--erlen-vidrio-relieve)}\n.erlen-panel.destacado{border-radius:var(--erlen-radio-panel);box-shadow:var(--erlen-vidrio-relieve),var(--erlen-sombra-panel)}\n/* Cristal flotante (menús, paletas, barras y paneles que se superponen al contenido): una sola capa de desenfoque por pantalla visible.\n   Nunca sobre el área de trabajo que se desplaza ni como fondo de un editor, hoja o lienzo. */\n.erlen-vidrio{background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border:1px solid var(--erlen-vidrio-contorno);border-radius:var(--erlen-radio-tarjeta);box-shadow:var(--erlen-vidrio-relieve),var(--erlen-sombra-menu);color:var(--erlen-tinta);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro)}\n/* Diálogo de cristal: <dialog class=\"erlen-dialogo\">; el fondo se atenúa sin desenfocar (un desenfoque a pantalla completa cuesta). */\ndialog.erlen-dialogo{max-width:min(560px,calc(100vw - 32px));padding:var(--erlen-esp-5);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border:1px solid var(--erlen-vidrio-contorno);border-radius:var(--erlen-radio-panel);box-shadow:var(--erlen-vidrio-relieve),var(--erlen-sombra-panel);color:var(--erlen-tinta);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro)}\ndialog.erlen-dialogo::backdrop{background:color-mix(in srgb,var(--erlen-tinta) 22%,transparent)}\n/* Cápsula: navegación, filtros y conmutadores; la activa (aria-pressed, aria-current o aria-selected) se eleva como una lente. */\n.erlen-capsula{display:inline-flex;align-items:center;justify-content:center;gap:var(--erlen-esp-2);min-height:36px;padding:0 var(--erlen-esp-4);border:1px solid transparent;border-radius:var(--erlen-radio-capsula);background:transparent;color:var(--erlen-tinta-suave);font:600 var(--erlen-texto-sm)/1.2 var(--erlen-font-ui);text-decoration:none;cursor:pointer}\n.erlen-capsula:hover{background:var(--erlen-vidrio-tinte);color:var(--erlen-tinta);text-decoration:none}\n.erlen-capsula:is([aria-pressed=\"true\"],[aria-current],[aria-selected=\"true\"]){background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border-color:var(--erlen-vidrio-contorno);box-shadow:var(--erlen-vidrio-relieve);color:var(--erlen-verde)}\n/* Atmósfera detrás del cromo (pantallas de bienvenida, vacíos, ajustes); nunca detrás del documento del usuario. */\n.erlen-atmosfera{background:var(--erlen-atmosfera)}\n/* Los estilos elegidos también se reconocen en las acciones principales. */\n:root[data-erlen-estilo] :is(button.primary,.erlen-boton.primary){box-shadow:var(--erlen-control-relieve)}\n/* Apariencia de las acciones del marco: relieve a escala de control, sin cambiar\n   tamaños, prioridad de la acción principal ni estados de selección o peligro. */\n:root[data-erlen-estilo] :is(.erlen-marco-acciones,.erlen-marco-utilidades) :is(button,.erlen-boton):not(.primary,.danger,.peligro,[aria-pressed=\"true\"],[aria-selected=\"true\"]){background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border-color:var(--erlen-vidrio-contorno);box-shadow:var(--erlen-control-relieve)}\n:root[data-erlen-estilo] :is(.erlen-marco-acciones,.erlen-marco-utilidades) :is(button,.erlen-boton):not(.primary,.danger,.peligro,[aria-pressed=\"true\"],[aria-selected=\"true\"]):hover:not(:disabled){background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-tinte)}\n/* Los respaldos siguen ganando también para el relieve de los controles. */\n@media(prefers-contrast:more),(forced-colors:active),print{:root:root[data-erlen-estilo]{--erlen-control-relieve:var(--erlen-vidrio-relieve)}}\n/* Pie de app: enlaces al portal, código y licencia. */\n.erlen-app-footer{padding:var(--erlen-esp-5) 4%;border-top:1px solid var(--erlen-linea);font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.visualmente-oculto{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n/* Entrada de archivo nativa con aspecto de botón secundario: el input queda oculto a la vista (no a la accesibilidad), va ANTES de su label y el anillo de foco se pinta en el label. */\n.erlen-entrada-archivo{display:flex;position:relative}\n.erlen-entrada-archivo>input[type=\"file\"]{position:absolute;width:1px;height:1px;min-width:0;max-width:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;opacity:0;outline:0}\n.erlen-entrada-archivo>label{display:inline-flex;align-items:center;justify-content:center;gap:var(--erlen-esp-2);min-height:var(--erlen-alto-control);padding:var(--erlen-esp-2) var(--erlen-esp-4);border:1px solid var(--erlen-verde);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie);color:var(--erlen-verde);font-weight:700;line-height:1.2;cursor:pointer;text-align:center}\n.erlen-entrada-archivo>label:hover{background:var(--erlen-verde-suave)}\n.erlen-entrada-archivo>input[type=\"file\"]:focus-visible+label{outline:3px solid var(--erlen-foco);outline-offset:3px;border-radius:4px}\n.erlen-entrada-archivo>input[type=\"file\"]:disabled+label{opacity:.55;cursor:not-allowed}\n@media(max-width:760px){.erlen-app-header{padding:var(--erlen-esp-3) var(--erlen-esp-4)}.erlen-app-footer{padding:var(--erlen-esp-5) var(--erlen-esp-4)}}\n@media print{.erlen-app-header,.erlen-app-footer,erlen-suite-nav{display:none}}\n\n/* Iconos del cromo: conserva el significado, las dimensiones y los estados. */\n:root[data-erlen-estilo] :is(.erlen-app-header,.erlen-cinta,.erlen-cinta-menu,.erlen-inicio-cabecera,.erlen-inicio-lateral,.erlen-marco-navegacion,.erlen-marco-detalles) :is(.erlen-icono,svg[viewBox=\"0 0 24 24\"]){stroke-width:var(--erlen-icono-grosor);stroke-linecap:var(--erlen-icono-terminal);stroke-linejoin:var(--erlen-icono-union);stroke-dasharray:var(--erlen-icono-guion);shape-rendering:var(--erlen-icono-render);filter:var(--erlen-icono-filtro);background:var(--erlen-icono-placa);border-radius:var(--erlen-icono-radio);box-shadow:var(--erlen-icono-relieve)}\n:root[data-erlen-estilo] :is(.primary,.primario,.erlen-cinta-archivo,.erlen-cinta-agregar,[aria-pressed=\"true\"],[aria-selected=\"true\"]) :is(.erlen-icono,svg[viewBox=\"0 0 24 24\"]){background:none;box-shadow:none;filter:none}\n\n:root[data-erlen-estilo] :is(.erlen-app-header,.erlen-cinta,.erlen-cinta-menu,.erlen-inicio-cabecera,.erlen-inicio-lateral,.erlen-marco-navegacion,.erlen-marco-detalles) :is(.erlen-icono,svg[viewBox=\"0 0 24 24\"]) :is(path,line,polyline,polygon,circle,rect,ellipse){stroke-width:inherit;stroke-linecap:inherit;stroke-linejoin:inherit;stroke-dasharray:inherit}\n\n\n/* Erlen Suite · paquete de diseño 1.0.0 · movimiento (docs/GUIA-DISENO.md §6).\n   Se anima lo que orienta: entrada suave del contenido y estados de hover/foco. Nada de texto de lectura ni controles de formulario.\n   Todo se apaga con prefers-reduced-motion. Licencia: licencias/MIT.txt */\n@keyframes erlen-aparecer{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}\n.erlen-enter{animation:erlen-aparecer var(--erlen-dur-entrada,.3s) var(--erlen-ease,cubic-bezier(.2,.7,.2,1)) both}\nbutton,.erlen-boton,.badge,.erlen-badge,.erlen-panel{transition:background-color var(--erlen-dur,.18s) var(--erlen-ease,ease),border-color var(--erlen-dur,.18s) var(--erlen-ease,ease),color var(--erlen-dur,.18s) var(--erlen-ease,ease),box-shadow var(--erlen-dur,.18s) var(--erlen-ease,ease),transform var(--erlen-dur,.18s) var(--erlen-ease,ease)}\nbutton.primary:hover,.erlen-boton.primary:hover{transform:translateY(-1px)}\n@media(prefers-reduced-motion:reduce){*,::before,::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.erlen-enter{opacity:1;transform:none}}\n/* Pasarelas entre páginas del mismo origen; mejora progresiva nativa. */\n@view-transition{navigation:auto}\n::view-transition-old(root),::view-transition-new(root){animation-duration:var(--erlen-dur);animation-timing-function:var(--erlen-ease)}\n@media(prefers-reduced-motion:reduce){@view-transition{navigation:none}}\n\n\n/* Erlen Suite · paquete de diseño 2.2.0 · marco común de las apps (docs/COHERENCIA-APPS.md §4).\n   Estructura compartida de mountMarco (suite-marco.mjs): cabecera, cinta, cuerpo con navegación,\n   trabajo y detalles, y pie. Solo cromo: el área de trabajo del usuario se queda opaca\n   (var(--erlen-superficie) / var(--erlen-papel)), nunca con vidrio. Ningún color literal aquí:\n   todo es var(--erlen-*) de tokens.css, que ya trae los respaldos de accesibilidad del material\n   (prefers-reduced-transparency, prefers-contrast:more, forced-colors,\n   [data-erlen-material=\"solido\"] e impresión). Licencia: licencias/MIT.txt */\n.erlen-marco{position:relative;display:flex;flex-direction:column;min-height:0;height:100dvh;overflow:hidden;background:var(--erlen-papel);color:var(--erlen-tinta)}\n/* Solo el área de trabajo cede espacio: cabecera, cinta y pie nunca se comprimen ni solapan. */\n.erlen-marco>.erlen-app-header,.erlen-marco>.erlen-marco-cinta,.erlen-marco>.erlen-app-footer{flex:none}\n.erlen-marco :focus-visible{outline:3px solid var(--erlen-foco);outline-offset:3px}\n/* Cabecera: marca, nombre, menú de suite, título, estado y acciones. El desenfoque vive en el\n   ::before, nunca en la cabecera: un backdrop-filter en un antepasado recoloca el menú fijo de\n   <erlen-suite-nav> (docs/COHERENCIA-APPS.md §0.1). */\n.erlen-marco>.erlen-app-header{position:relative;z-index:2;display:flex;align-items:center;flex-wrap:wrap;gap:var(--erlen-esp-3) var(--erlen-esp-4);min-height:60px;padding:var(--erlen-esp-2) var(--erlen-esp-5);border-bottom:1px solid var(--erlen-vidrio-contorno)}\n.erlen-marco>.erlen-app-header::before{content:\"\";position:absolute;inset:0;z-index:-1;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro);pointer-events:none}\n.erlen-marco-marca{display:inline-flex;align-items:center;gap:var(--erlen-esp-2);min-height:44px;padding:var(--erlen-esp-1) var(--erlen-esp-2);border:1px solid transparent;border-radius:var(--erlen-radio-capsula);background:transparent;color:var(--erlen-tinta);font:700 var(--erlen-texto-ui)/1.2 var(--erlen-font-ui);cursor:pointer}\n.erlen-marco-marca:hover{background:var(--erlen-vidrio-tinte)}\n.erlen-marco-marca svg{width:26px;height:26px;flex:none}\n.erlen-marco-marca .erlen-marco-marca-nombre{font-family:var(--erlen-font-titulo);font-size:var(--erlen-texto-lg);letter-spacing:-.3px}\n.erlen-marco-nombre{font-family:var(--erlen-font-titulo);font-size:var(--erlen-h1-app);font-weight:400;line-height:1.12;letter-spacing:-.4px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}\n/* El nombre de la app ocupa lo que mide su texto. base.css da a todo h1 de cabecera «flex:1 1 0%» y, sin esto, el nombre se\n   repartía a partes iguales el espacio libre con la tira de controles: a 1440 px el nombre era una caja de 631 px con 263 px\n   de texto y la tira (título, estado, acciones) se quedaba en 630 px y desbordaba (FEM, auditoría ux-simulacion E3). */\n.erlen-marco>.erlen-app-header .erlen-marco-nombre{flex:0 1 auto}\n.erlen-marco-suite{margin-left:auto;display:flex;align-items:center}\n/* Sin filas de más en escritorio: si no cabe, el desborde lo absorbe el título (elipsis) o la\n   tira gana scroll con degradado en el borde (data-desborde, lo vigila suite-marco.mjs).\n   Base 0 en la tira: con base auto su contenido decidía el salto de línea de la cabecera y la\n   tiraba a una segunda fila a 1024 px (analyze, data, projects, release, dft, spreadsheets). */\n.erlen-marco-controles{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--erlen-esp-3);flex:1 1 0%;min-width:0;overflow-x:auto;scrollbar-width:none;padding-block:var(--erlen-esp-1);margin-block:calc(var(--erlen-esp-1)*-1)}\n.erlen-marco-controles::-webkit-scrollbar{display:none}\n/* El nombre del documento no se reduce a 80 px, pero cuando falta ancho es el primero en ceder\n   (ver el bloque de escritorio más abajo). */\n.erlen-marco-titulo{flex:0 0 auto;max-width:clamp(160px,45%,28rem);display:flex;align-items:center;gap:var(--erlen-esp-2)}\n/* Estado: en móvil y tableta (≤ 920 px) no cede y la tira se desplaza con degradado en el borde\n   (data-desborde). En escritorio ver el bloque siguiente. */\n.erlen-marco-estado{flex:none;margin-inline-start:auto;display:flex;align-items:center;justify-content:flex-end;gap:var(--erlen-esp-2);font-size:var(--erlen-texto-sm);color:var(--erlen-tinta-suave);white-space:nowrap}\n.erlen-marco-acciones,.erlen-marco-utilidades{display:flex;align-items:center;flex:none;gap:var(--erlen-esp-2)}\n/* Escritorio (> 920 px, una sola fila): lo que cede cuando falta ancho son el nombre y el estado,\n   nunca las acciones. Con un proyecto abierto el nombre y el mensaje de estado medían lo que mide su\n   texto y empujaban fuera de la tira el botón principal (Guardar, Calcular, Descargar…). El nombre\n   cede primero (3 veces más rápido que el estado) y lleva elipsis con el nombre completo en el\n   tooltip; el estado se parte en las líneas que haga falta, sin recorte (WCAG 1.4.12): si el mensaje\n   es largo y el ancho escaso la cabecera crece en vez de cortar el texto. Los mensajes deben ser\n   cortos; el estado de la cabecera es un resumen y un aviso que importa (por ejemplo «ejemplo\n   simulado, no citable») debe vivir también en el cuerpo de la app. */\n@media (min-width:921px){\n .erlen-marco-titulo{flex:0 3 auto;min-width:min(6rem,100%)}\n .erlen-marco-titulo>*{min-width:0}\n .erlen-marco-estado{flex:0 1 auto;min-width:min(9rem,100%);white-space:normal}\n .erlen-marco-estado #status{min-width:0;white-space:normal}\n}\n.erlen-marco-acciones>*,.erlen-marco-utilidades>*{flex:none;white-space:nowrap}\n[data-desborde=\"fin\"]{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}\n[data-desborde=\"inicio\"]{-webkit-mask-image:linear-gradient(90deg,transparent,#000 28px);mask-image:linear-gradient(90deg,transparent,#000 28px)}\n[data-desborde=\"ambos\"]{-webkit-mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent)}\n@media (forced-colors:active),print{[data-desborde]{-webkit-mask-image:none;mask-image:none}}\n.erlen-marco-mey{flex:none}\n/* Variante decorativa (apps sin panel de ayuda): Mey solo mira, no recibe clics. */\nspan.erlen-marco-mey{pointer-events:none}\n/* Variante botón (con config.ayuda): abre el panel de Mey; objetivo táctil completo. */\nbutton.erlen-marco-mey{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 var(--erlen-esp-2);font:500 var(--erlen-texto-xs)/1.4 var(--erlen-font-ui);white-space:nowrap;border:1px solid transparent;border-radius:var(--erlen-radio-capsula);background:transparent;cursor:pointer}\nbutton.erlen-marco-mey:hover{background:var(--erlen-vidrio-tinte)}\n/* Cinta de herramientas a todo el ancho, debajo de la cabecera; su aspecto lo pone cinta.css. */\n.erlen-marco-cinta{flex:none;position:relative;z-index:1}\n.erlen-marco-sin-cinta>.erlen-marco-cinta{display:none}\n/* Cuerpo: 200 px de navegación · trabajo elástico · 310 px de detalles. La ausencia de un slot\n   elimina su columna (sin hueco). Solo los paneles se desplazan, no la ventana. */\n.erlen-marco-cuerpo{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);overflow:hidden}\n.erlen-marco-cuerpo.con-navegacion{grid-template-columns:200px minmax(0,1fr)}\n.erlen-marco-cuerpo.con-detalles{grid-template-columns:minmax(0,1fr) 310px}\n.erlen-marco-cuerpo.con-navegacion.con-detalles{grid-template-columns:200px minmax(0,1fr) 310px}\n.erlen-marco-navegacion{min-width:0;overflow:auto;background:var(--erlen-superficie-2);border-right:1px solid var(--erlen-linea)}\n.erlen-marco-cuerpo:not(.con-navegacion)>.erlen-marco-navegacion{display:none}\n.erlen-marco-trabajo{min-width:0;min-height:0;overflow:auto;background:var(--erlen-papel)}\n.erlen-marco-detalles{min-width:0;overflow:auto;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border-left:1px solid var(--erlen-linea)}\n.erlen-marco-cuerpo:not(.con-detalles)>.erlen-marco-detalles{display:none}\n.erlen-marco-suite:empty,.erlen-marco-titulo:empty,.erlen-marco-estado:empty,.erlen-marco-mey:empty,.erlen-marco-acciones:empty,.erlen-marco-utilidades:empty,.erlen-marco-navegacion:empty,.erlen-marco-detalles:empty{display:none}\n/* Pie: estado a la izquierda y enlaces de la suite a la derecha. */\n.erlen-marco>.erlen-app-footer{position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--erlen-esp-3);padding:var(--erlen-esp-4) var(--erlen-esp-5);border-top:1px solid var(--erlen-linea);background:var(--erlen-superficie);font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-marco>.erlen-app-footer:empty{display:none}\n/* Cajón accesible (navegación en móvil, detalles a ≤ 920 px): diálogo con máscara, foco atrapado,\n   Escape y restauración de foco; el resto queda inert mientras está abierto. */\n.erlen-marco-mascara{position:fixed;inset:0;z-index:40;background:color-mix(in srgb,var(--erlen-tinta) 22%,transparent)}\n.erlen-marco-cajon{position:fixed;z-index:41;top:0;bottom:0;right:0;width:min(340px,92vw);display:flex;flex-direction:column;gap:var(--erlen-esp-3);padding:var(--erlen-esp-4);overflow:auto;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border-left:1px solid var(--erlen-vidrio-contorno);box-shadow:var(--erlen-vidrio-relieve),var(--erlen-sombra-panel);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro)}\n.erlen-marco-cajon[hidden]{display:none}\n.erlen-marco-cajon-izq{right:auto;left:0;border-left:0;border-right:1px solid var(--erlen-vidrio-contorno)}\n.erlen-marco-cajon-cabecera{display:flex;align-items:center;justify-content:space-between;gap:var(--erlen-esp-3)}\n.erlen-marco-cajon-titulo{min-width:0;overflow-wrap:anywhere;font:700 var(--erlen-texto-sm)/1.2 var(--erlen-font-ui);letter-spacing:.13em;text-transform:uppercase;color:var(--erlen-tinta-suave)}\n.erlen-marco-cajon-cerrar{min-height:44px;min-width:44px;padding:var(--erlen-esp-2);border:1px solid var(--erlen-linea-fuerte);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie);color:var(--erlen-tinta);cursor:pointer}\n.erlen-marco-cajon-cerrar:hover{background:var(--erlen-verde-suave)}\n.erlen-marco-cajon-cuerpo{min-height:0;overflow:auto}\n/* Panel de ayuda de Mey (suite-mey-ayuda.mjs, dentro del cajón): guía con comandos reales de\n   la cinta y los ejecuta solo al pulsar «Hazlo». Solo tokens --erlen-*. */\n.erlen-ayuda{display:flex;flex-direction:column;gap:var(--erlen-esp-3);font-family:var(--erlen-font-ui);color:var(--erlen-tinta)}\n.erlen-ayuda-cabecera{display:flex;align-items:flex-start;gap:var(--erlen-esp-3)}\n.erlen-ayuda-mascota{flex:none;width:48px}\n.erlen-ayuda-mascota svg{display:block;width:100%;height:auto}\n.erlen-ayuda-titulo{margin:0;font:700 var(--erlen-texto-ui)/1.2 var(--erlen-font-ui)}\n.erlen-ayuda-intro{margin:var(--erlen-esp-1) 0 0;font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-ayuda-buscar{display:flex;flex-direction:column;gap:var(--erlen-esp-1)}\n.erlen-ayuda-buscar-rotulo{font-size:var(--erlen-texto-xs);font-weight:600}\n.erlen-ayuda-entrada{min-height:44px;padding:0 var(--erlen-esp-3);border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie);color:inherit;font:inherit}\n.erlen-ayuda-estado{margin:0;min-height:1.2em;font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-ayuda-sincinta{margin:0;padding:var(--erlen-esp-2) var(--erlen-esp-3);border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-pequeno);background:var(--erlen-superficie-2);font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-ayuda-empieza{margin:0;font-size:var(--erlen-texto-xs);letter-spacing:.06em;text-transform:uppercase;color:var(--erlen-tinta-suave)}\n.erlen-ayuda-lista{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}\n.erlen-ayuda-fila{display:flex;flex-wrap:wrap;align-items:center;gap:var(--erlen-esp-1) var(--erlen-esp-2);padding:var(--erlen-esp-2) 0;border-top:1px solid var(--erlen-linea)}\n.erlen-ayuda-etiqueta{flex:1 1 auto;min-width:0;font-size:var(--erlen-texto-sm)}\n.erlen-ayuda-ruta,.erlen-ayuda-texto{flex-basis:100%;font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-ayuda-no{font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-ayuda-acciones{display:flex;gap:var(--erlen-esp-1);margin-inline-start:auto}\n.erlen-ayuda-acciones button{min-height:32px;padding:0 var(--erlen-esp-3);border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-capsula);background:var(--erlen-superficie);color:inherit;font:600 var(--erlen-texto-xs)/1.2 var(--erlen-font-ui);cursor:pointer}\n.erlen-ayuda-acciones button:hover{background:var(--erlen-verde-suave)}\n.erlen-ayuda-acciones .erlen-ayuda-hazlo{border-color:var(--erlen-verde);color:var(--erlen-verde)}\n.erlen-ayuda-acciones button:disabled{opacity:.5;cursor:default}\n@media (any-pointer:coarse),(max-width:920px){.erlen-ayuda-acciones button{min-height:var(--erlen-alto-control);min-width:var(--erlen-alto-control)}}\n/* Botón de cajón de navegación: solo en estrecho (≤ 920 px). */\n.erlen-marco-abrir-cajon{display:none;min-height:44px;min-width:44px;padding:var(--erlen-esp-2);border:1px solid var(--erlen-linea-fuerte);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie);color:var(--erlen-tinta);cursor:pointer}\n.erlen-marco-abrir-cajon:hover{background:var(--erlen-verde-suave)}\n/* 921–1180 px: columnas estrechas. */\n@media (max-width:1180px){\n .erlen-marco-cuerpo.con-navegacion{grid-template-columns:176px minmax(0,1fr)}\n .erlen-marco-cuerpo.con-detalles{grid-template-columns:minmax(0,1fr) 280px}\n .erlen-marco-cuerpo.con-navegacion.con-detalles{grid-template-columns:176px minmax(0,1fr) 280px}\n .erlen-marco>.erlen-app-header{padding:var(--erlen-esp-2) var(--erlen-esp-4)}\n .erlen-marco>.erlen-app-footer{padding:var(--erlen-esp-4)}\n}\n/* ≤ 920 px: una columna; navegación y detalles pasan a cajón. El trabajo conserva su scroll. */\n@media (max-width:920px){\n .erlen-marco-cuerpo,.erlen-marco-cuerpo.con-navegacion,.erlen-marco-cuerpo.con-detalles,.erlen-marco-cuerpo.con-navegacion.con-detalles{grid-template-columns:minmax(0,1fr)}\n .erlen-marco-cuerpo.con-navegacion>.erlen-marco-navegacion{display:none}\n .erlen-marco-cuerpo>.erlen-marco-detalles{display:none}\n .erlen-marco-abrir-cajon{display:inline-flex;align-items:center;justify-content:center}\n .erlen-marco>.erlen-app-header .erlen-marco-nombre{font-size:var(--erlen-texto-lg);font-family:var(--erlen-font-ui);font-weight:700;letter-spacing:0}\n /* Dos filas: identidad arriba; título, estado y controles en una tira que se desplaza.\n    El padding evita que el overflow-x recorte el anillo de foco de 3 px (aquí sin margen\n    negativo: la cabecera de dos filas necesita sus 121 px). */\n .erlen-marco-controles{flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;gap:var(--erlen-esp-2);padding:var(--erlen-esp-1);margin-block:0}\n .erlen-marco-titulo{flex:0 0 auto;min-width:120px;max-width:min(60vw,20rem)}\n}\n/* ≤ 600 px: la tira de controles sigue en una fila con scroll, sin filas de más; 44 px en todo.\n   El nombre (h1, única de la vista) se oculta visualmente pero sigue en el árbol de accesibilidad:\n   la marca ya identifica la app y así la fila de identidad tiene aire para los controles reales. */\n@media (max-width:600px){\n .erlen-marco>.erlen-app-header{gap:var(--erlen-esp-2);padding:var(--erlen-esp-2) var(--erlen-esp-3)}\n .erlen-marco-controles{gap:var(--erlen-esp-2)}\n .erlen-marco-utilidades>*,.erlen-marco-acciones>*,.erlen-marco-marca,.erlen-marco-abrir-cajon,.erlen-marco-cajon-cerrar{min-height:44px}\n .erlen-marco-nombre{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n /* Pie compacto: misma mecánica de tira que los controles, sin segundas filas. El bloque queda\n    en 4 px para que con enlaces de 44 px (puntero táctil) el pie no pase de 56 px. */\n .erlen-marco>.erlen-app-footer{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;padding-block:var(--erlen-esp-1)}\n}\n/* El mismo mínimo en estrecho y cuando hay cualquier entrada táctil, también en equipos\n   híbridos. Los paneles usan la misma zona de toque en columna y dentro del cajón. */\n@media (max-width:920px),(any-pointer:coarse){\n .erlen-app-header :is(button,a,select,summary,input:not([type=checkbox]):not([type=radio])),\n :is(.erlen-marco-cajon,.erlen-marco-navegacion,.erlen-marco-detalles,dialog) :is(button,a,select,input:not([type=checkbox]):not([type=radio])),\n .erlen-app-footer :is(a,button){min-height:var(--erlen-alto-control);min-width:var(--erlen-alto-control)}\n :is(.erlen-marco-cajon,.erlen-marco-navegacion,.erlen-marco-detalles,dialog) a{display:inline-flex;align-items:center}\n .erlen-marco>.erlen-app-footer :is(a,button){display:inline-flex;align-items:center;justify-content:center}\n}\n@media (max-width:400px){\n .erlen-marco-marca .erlen-marco-marca-nombre{display:none}\n /* El bloque de la cabecera vuelve a 8 px: la tira de controles lleva 4 px propios (anillo de\n    foco sin recortar) y la cabecera de dos filas debe seguir midiendo 121 px. El pie compacto\n    queda en 4 px para no pasar de 56 px con enlaces de 44 px. */\n .erlen-marco>.erlen-app-header{padding:var(--erlen-esp-2) var(--erlen-esp-3)}\n .erlen-marco>.erlen-app-footer{padding:var(--erlen-esp-1) var(--erlen-esp-3)}\n}\n/* En paisaje corto, identidad y controles comparten una fila desplazable. El pie compacto\n   reserva espacio para editar sin reducir las zonas de toque ni ocultar sus acciones. */\n@media (max-width:920px) and (max-height:500px){\n .erlen-marco>.erlen-app-header{flex-wrap:nowrap}\n .erlen-marco-controles{flex:1 1 0%}\n .erlen-marco>.erlen-app-footer{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;padding-block:var(--erlen-esp-1)}\n}\n/* Impresión y material sólido: cromo sin desenfoque; el material opaco ya lo fijan los tokens. */\n@media print{\n .erlen-marco{height:auto;overflow:visible}\n .erlen-marco>.erlen-app-header::before{-webkit-backdrop-filter:none;backdrop-filter:none}\n .erlen-marco-cinta,.erlen-marco-navegacion,.erlen-marco-detalles,.erlen-marco-cajon,.erlen-marco-mascara{display:none!important}\n /* Sin columnas de cromo: el documento se imprime a todo el ancho. */\n .erlen-marco-cuerpo,.erlen-marco-cuerpo.con-navegacion,.erlen-marco-cuerpo.con-detalles,.erlen-marco-cuerpo.con-navegacion.con-detalles{grid-template-columns:minmax(0,1fr)}\n .erlen-marco-cuerpo{overflow:visible}\n .erlen-marco-trabajo{overflow:visible}\n}\n/* Cromo mineral: marca y título compactos; la cinta conserva la memoria muscular. */\n.erlen-marco-nombre{font-weight:600;letter-spacing:-.035em}\n.erlen-marco-marca{border-radius:var(--erlen-radio-campo)}\n/* Apariencia opcional del marco: una sola superficie de cristal en la cabecera.\n   La navegación y los detalles siguen el material elegido; el trabajo permanece\n   opaco. Las sombras de borde quedan dentro, sin invadir controles ni documentos. */\n:root[data-erlen-estilo] .erlen-marco>.erlen-app-header{background:transparent;box-shadow:none}\n:root[data-erlen-estilo] .erlen-marco>.erlen-app-header::before{box-shadow:inset 0 -2px 0 var(--erlen-vidrio-contorno)}\n:root[data-erlen-estilo] .erlen-marco :is(.erlen-marco-navegacion,.erlen-marco-detalles){background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border-color:var(--erlen-vidrio-contorno);box-shadow:inset 1px 0 0 var(--erlen-vidrio-contorno),inset -1px 0 0 var(--erlen-vidrio-contorno)}\n\n/* La atmósfera elegida llega al marco sin pintar el área de trabajo. */\n:root[data-erlen-estilo] .erlen-marco{background:var(--erlen-cromo-fondo)}\n:root[data-erlen-estilo] .erlen-marco>.erlen-app-header::before,:root[data-erlen-estilo] .erlen-marco :is(.erlen-marco-navegacion,.erlen-marco-detalles){background:var(--erlen-vidrio-reflejo),var(--erlen-cromo-trama),var(--erlen-vidrio-fuerte)}\n\n/* Erlen Suite · paquete de diseño 2.0.0 · cinta de herramientas (diseno/suite-cinta.mjs; docs/COHERENCIA-APPS.md §5).\n   Solo tokens --erlen-*. Autónoma: no depende de base.css (Slides no lo carga), y neutraliza las reglas de\n   elemento de base.css sobre <button> para que la cinta se vea igual en todas las apps.\n   Cristal (2.0.0): la cinta es una lámina de cristal fuerte con brillo especular; la pestaña activa es una lente en cápsula\n   y «Archivo» una cápsula del acento. Un solo desenfoque (la cinta) y otro en el menú abierto. Licencia: licencias/MIT.txt */\n.erlen-cinta{position:relative;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border-bottom:1px solid var(--erlen-vidrio-contorno);box-shadow:inset 0 1px 0 var(--erlen-vidrio-borde),0 6px 18px -12px var(--erlen-vidrio-contorno);font-family:var(--erlen-font-ui);color:var(--erlen-tinta);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro)}\n.erlen-cinta button,.erlen-cinta-menu button{min-height:0;margin:0;padding:0;border:1px solid transparent;border-radius:var(--erlen-radio-campo);background:transparent;color:inherit;font:inherit;line-height:1.2;cursor:pointer;text-decoration:none;box-shadow:none;transform:none}\n.erlen-cinta button:disabled,.erlen-cinta-menu button:disabled{opacity:.45;cursor:default}\n.erlen-cinta :focus-visible,.erlen-cinta-menu :focus-visible{outline:3px solid var(--erlen-foco);outline-offset:1px}\n/* Resalte de Mey: la ayuda señala durante unos segundos el botón del comando encontrado.\n   Sin animación a propósito: también cumple su función con prefers-reduced-motion. */\n.erlen-cinta [data-erlen-mey-resalta]{outline:3px solid var(--erlen-foco);outline-offset:2px}\n.erlen-cinta-oculto{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}\n\n/* Pestañas: una fila de cápsulas; la activa se eleva como una lente de cristal con el texto en el acento, «Archivo» a la izquierda. */\n.erlen-cinta-pestanas{display:flex;align-items:center;gap:var(--erlen-esp-1);padding:var(--erlen-esp-1) var(--erlen-esp-3);border-bottom:1px solid var(--erlen-vidrio-contorno);overflow-x:auto;scrollbar-width:none}\n.erlen-cinta-pestanas::-webkit-scrollbar{display:none}\n.erlen-cinta-lista{display:flex;align-items:center;gap:var(--erlen-esp-1);flex:none}\n.erlen-cinta .erlen-cinta-pestana{flex:none;min-height:32px;padding:0 var(--erlen-esp-4);border:1px solid transparent;border-radius:var(--erlen-radio-capsula);font:600 var(--erlen-texto-sm)/1 var(--erlen-font-ui);color:var(--erlen-tinta-suave);white-space:nowrap;transition:background-color var(--erlen-dur-micro) var(--erlen-ease),color var(--erlen-dur-micro) var(--erlen-ease),box-shadow var(--erlen-dur-micro) var(--erlen-ease)}\n.erlen-cinta .erlen-cinta-pestana:hover{color:var(--erlen-tinta);background:var(--erlen-vidrio-tinte)}\n.erlen-cinta .erlen-cinta-pestana[aria-selected=true]{color:var(--erlen-verde);background:var(--erlen-vidrio-reflejo),var(--erlen-superficie);border-color:var(--erlen-vidrio-contorno);box-shadow:var(--erlen-vidrio-relieve)}\n/* Contextual (aparece con la selección): tinte del acento y borde discontinuo para distinguirla sin depender solo del color del texto. */\n.erlen-cinta .erlen-cinta-pestana[data-contextual]{background:var(--erlen-verde-suave);color:var(--erlen-verde);border:1px dashed var(--erlen-verde)}\n.erlen-cinta .erlen-cinta-pestana[data-contextual][aria-selected=true]{border-style:solid}\n.erlen-cinta .erlen-cinta-archivo{flex:none;align-self:center;min-height:32px;margin-right:var(--erlen-esp-2);padding:0 var(--erlen-esp-4);border-radius:var(--erlen-radio-capsula);background:var(--erlen-vidrio-reflejo-acento),var(--erlen-verde);color:var(--erlen-verde-contraste);font:700 var(--erlen-texto-sm)/1 var(--erlen-font-ui);box-shadow:inset 0 1px 0 var(--erlen-vidrio-borde),0 2px 8px var(--erlen-vidrio-contorno)}\n.erlen-cinta .erlen-cinta-archivo:hover{background:var(--erlen-vidrio-reflejo-acento),color-mix(in srgb,var(--erlen-verde) 86%,var(--erlen-tinta))}\n.erlen-cinta-hueco{flex:1}\n.erlen-cinta .erlen-cinta-plegar{position:relative;flex:none;align-self:center;width:32px;min-height:28px;border-radius:var(--erlen-radio-capsula);color:var(--erlen-tinta-suave);font-size:var(--erlen-texto-sm)}\n.erlen-cinta .erlen-cinta-plegar:hover{background:var(--erlen-vidrio-tinte);color:var(--erlen-verde)}\n\n/* Panel: grupos en fila con el rótulo debajo; desplazamiento horizontal si no caben (nunca desborda la página). */\n.erlen-cinta-panel[hidden]{display:none}\n.erlen-cinta-fila{display:flex;align-items:stretch;padding:var(--erlen-esp-2) var(--erlen-esp-2) var(--erlen-esp-1);overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}\n.erlen-cinta-grupo{flex:none;display:flex;flex-direction:column;align-items:center;gap:var(--erlen-esp-1);padding:0 var(--erlen-esp-2);border-right:1px solid var(--erlen-vidrio-contorno)}\n.erlen-cinta-grupo:last-child{border-right:0}\n.erlen-cinta-grupo[hidden],.erlen-cinta-columna[hidden]{display:none}\n.erlen-cinta-controles{flex:1;display:flex;align-items:flex-start;gap:var(--erlen-esp-1)}\n.erlen-cinta-columna{display:flex;flex-direction:column;gap:2px}\n.erlen-cinta-rotulo{font:500 var(--erlen-texto-xs)/1.2 var(--erlen-font-ui);color:var(--erlen-tinta-suave);white-space:nowrap}\n\n/* Botones: grande (icono arriba, texto debajo) y pequeño (icono y texto en línea, en columnas de tres). */\n.erlen-cinta .erlen-cinta-boton{display:inline-flex;align-items:center;gap:var(--erlen-esp-2);border-radius:var(--erlen-radio-campo);color:var(--erlen-tinta);transition:background-color var(--erlen-dur-micro) var(--erlen-ease),border-color var(--erlen-dur-micro) var(--erlen-ease),box-shadow var(--erlen-dur-micro) var(--erlen-ease)}\n.erlen-cinta .erlen-cinta-boton:hover:not(:disabled){background:var(--erlen-vidrio-reflejo),var(--erlen-superficie);border-color:var(--erlen-vidrio-contorno);box-shadow:var(--erlen-vidrio-relieve)}\n.erlen-cinta .erlen-cinta-boton:active:not(:disabled){background:var(--erlen-verde-suave);box-shadow:none}\n.erlen-cinta .erlen-cinta-boton[hidden]{display:none}\n.erlen-cinta .erlen-cinta-boton[data-tipo=grande]{flex-direction:column;justify-content:flex-start;gap:var(--erlen-esp-1);min-width:60px;max-width:88px;min-height:72px;padding:var(--erlen-esp-2) var(--erlen-esp-1) var(--erlen-esp-1);text-align:center}\n.erlen-cinta .erlen-cinta-boton[data-tipo=grande] .erlen-cinta-icono{width:28px;height:28px;font-size:22px;color:var(--erlen-verde)}\n.erlen-cinta .erlen-cinta-boton[data-tipo=grande] .erlen-cinta-texto{font-size:var(--erlen-texto-xs);line-height:1.2;white-space:normal}\n.erlen-cinta .erlen-cinta-boton:not([data-tipo=grande]){min-height:28px;padding:0 var(--erlen-esp-2);font-size:var(--erlen-texto-xs);white-space:nowrap;justify-content:flex-start}\n.erlen-cinta .erlen-cinta-boton:not([data-tipo=grande]) .erlen-cinta-icono{width:18px;height:18px;font-size:15px;color:var(--erlen-tinta-suave)}\n.erlen-cinta .erlen-cinta-boton:hover:not(:disabled) .erlen-cinta-icono{color:var(--erlen-verde)}\n.erlen-cinta .erlen-cinta-boton[aria-pressed=true]{background:var(--erlen-verde-suave);border-color:color-mix(in srgb,var(--erlen-verde) 35%,transparent);color:var(--erlen-verde);box-shadow:inset 0 1px 2px var(--erlen-vidrio-contorno)}\n.erlen-cinta .erlen-cinta-boton[aria-pressed=true] .erlen-cinta-icono{color:var(--erlen-verde)}\n.erlen-cinta-icono{display:inline-grid;place-items:center;flex:none;line-height:1}\n.erlen-cinta-icono svg{width:100%;height:100%}\n.erlen-cinta-flecha{font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-cinta .erlen-cinta-boton[data-tipo=grande] .erlen-cinta-flecha{line-height:1}\n\n/* Menú desplegable de un botón de la cinta (se monta en <body>): cristal fuerte con desenfoque, radio concéntrico con sus opciones. */\n.erlen-cinta-menu{position:fixed;z-index:400;min-width:220px;max-width:min(360px,calc(100vw - 16px));max-height:min(70vh,520px);overflow:auto;padding:6px;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border:1px solid var(--erlen-vidrio-contorno);border-radius:var(--erlen-radio-tarjeta);box-shadow:var(--erlen-vidrio-relieve),var(--erlen-sombra-menu);font-family:var(--erlen-font-ui);color:var(--erlen-tinta);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro)}\n.erlen-cinta-menu .erlen-cinta-opcion{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:var(--erlen-esp-2);width:100%;min-height:36px;padding:var(--erlen-esp-1) var(--erlen-esp-2);border-radius:var(--erlen-radio-campo);text-align:left;font-size:var(--erlen-texto-sm)}\n.erlen-cinta-menu .erlen-cinta-opcion:hover:not(:disabled),.erlen-cinta-menu .erlen-cinta-opcion:focus-visible{background:var(--erlen-verde-suave)}\n.erlen-cinta-menu .erlen-cinta-opcion[aria-checked=true]{color:var(--erlen-verde);font-weight:700}\n.erlen-cinta-menu .erlen-cinta-opcion[aria-checked=true] .erlen-cinta-icono:empty::before{content:\"✓\"}\n.erlen-cinta-menu .erlen-cinta-icono{width:20px;color:var(--erlen-verde)}\n.erlen-cinta-opcion-texto{display:flex;flex-direction:column;min-width:0}\n.erlen-cinta-opcion-texto small{font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave);font-weight:400}\n.erlen-cinta-menu kbd{font:var(--erlen-texto-xs) var(--erlen-font-mono);color:var(--erlen-tinta-suave)}\n.erlen-cinta-separador{height:1px;margin:var(--erlen-esp-1) 0;background:var(--erlen-linea)}\n\n/* Pantallas estrechas y táctiles: botones grandes más compactos y zonas de toque de 44 px. */\n@media (max-width:920px){\n .erlen-cinta .erlen-cinta-boton[data-tipo=grande]{min-height:64px;min-width:56px}\n .erlen-cinta-fila{padding-inline:var(--erlen-esp-1)}\n}\n@media (max-width:920px),(any-pointer:coarse){\n /* Objetivo táctil completo: 44×44 también en anchura. Las variantes con :not y [data-tipo]\n    replican la especificidad de las reglas compactas de arriba para poder superarlas. */\n .erlen-cinta .erlen-cinta-boton{min-height:var(--erlen-alto-control);min-width:var(--erlen-alto-control)}\n .erlen-cinta .erlen-cinta-boton:not([data-tipo=grande]){min-height:var(--erlen-alto-control);min-width:var(--erlen-alto-control)}\n .erlen-cinta .erlen-cinta-boton[data-tipo=grande]{min-height:var(--erlen-alto-control);min-width:var(--erlen-alto-control)}\n .erlen-cinta .erlen-cinta-pestana,.erlen-cinta .erlen-cinta-plegar,.erlen-cinta .erlen-cinta-archivo{min-height:var(--erlen-alto-control);min-width:var(--erlen-alto-control)}\n .erlen-cinta-columna{flex-direction:row}\n .erlen-cinta-menu .erlen-cinta-opcion{min-height:var(--erlen-alto-control)}\n}\n@media (prefers-reduced-motion:reduce){.erlen-cinta .erlen-cinta-boton,.erlen-cinta .erlen-cinta-pestana{transition:none}}\n/* Colores forzados: la lente de la pestaña activa pierde su sombra; se marca con el borde del sistema. */\n@media (forced-colors:active){.erlen-cinta .erlen-cinta-pestana[aria-selected=true]{border-color:Highlight}.erlen-cinta .erlen-cinta-archivo{border:1px solid ButtonText}}\n@media print{.erlen-cinta,.erlen-cinta-menu{display:none}}\n\n\n/* Erlen Suite · paquete de diseño 2.0.0 · pantalla de inicio (diseno/suite-inicio.mjs; docs/COHERENCIA-APPS.md §3).\n   Solo tokens --erlen-*. Autónoma: no depende de base.css (Slides no lo carga) y neutraliza sus reglas de\n   elemento sobre <button>, <h1>, <p> y campos.\n   Cristal (2.0.0): atmósfera de color detrás, barra lateral y tarjetas de cristal sin desenfoque (sobre un degradado liso\n   no aporta nada y costaría una capa por tarjeta); solo la cabecera fija desenfoca lo que pasa por debajo, en un ::before\n   para no romper el menú fijo de erlen-suite-nav que vive dentro. Miniaturas y campos, opacos. Licencia: licencias/MIT.txt */\n.erlen-inicio{position:fixed;inset:0;z-index:300;isolation:isolate;overflow:auto;overscroll-behavior:contain;background:var(--erlen-papel);color:var(--erlen-tinta);font:400 var(--erlen-texto-ui)/var(--erlen-interlineado-ui) var(--erlen-font-ui);-webkit-font-smoothing:antialiased}\n/* Atmósfera en su propia capa fija: se rasteriza una vez; desplazar el inicio o pasar por una tarjeta translúcida no\n   obliga a repintar sus degradados. */\n.erlen-inicio::before{content:\"\";position:fixed;inset:0;z-index:-1;background:var(--erlen-atmosfera);pointer-events:none}\n.erlen-inicio[hidden]{display:none}\n.erlen-inicio *{box-sizing:border-box}\n.erlen-inicio{overflow-wrap:anywhere}\n.erlen-inicio-bienvenida>div,.erlen-inicio-cabecera>span{min-width:0;max-width:100%}\n.erlen-inicio h1,.erlen-inicio h2,.erlen-inicio h3,.erlen-inicio p,.erlen-inicio ul{margin:0}\n.erlen-inicio ul{padding:0;list-style:none}\n.erlen-inicio a{color:var(--erlen-verde)}\n.erlen-inicio :focus-visible{outline:3px solid var(--erlen-foco);outline-offset:3px}\n.erlen-inicio .erlen-inicio-titulo:focus{outline:none}\n.erlen-inicio-marco{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100%}\n\n/* Barra lateral: marca, navegación y pie con licencia y estado. */\n.erlen-inicio-lateral{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;gap:var(--erlen-esp-3);padding:var(--erlen-esp-6) var(--erlen-esp-4) var(--erlen-esp-5);background:var(--erlen-vidrio);border-right:1px solid var(--erlen-vidrio-contorno);box-shadow:inset -1px 0 0 var(--erlen-vidrio-borde);overflow-y:auto}\n.erlen-inicio-marca{display:flex;align-items:center;flex-wrap:wrap;gap:var(--erlen-esp-1) var(--erlen-esp-2);min-width:0;padding:0 var(--erlen-esp-3) var(--erlen-esp-6);font:400 32px/1 var(--erlen-font-titulo);color:var(--erlen-tinta)}\n.erlen-inicio-marca-icono{display:inline-grid;flex:none;width:28px;height:28px;color:var(--erlen-verde)}\n.erlen-inicio-marca-icono:empty{display:none}\n.erlen-inicio-marca-icono svg{width:100%;height:100%}\n.erlen-inicio-marca small{align-self:flex-end;margin-bottom:6px;max-width:100%;overflow-wrap:anywhere;font:700 var(--erlen-texto-xs)/1 var(--erlen-font-ui);letter-spacing:.13em;color:var(--erlen-tinta-suave)}\n.erlen-inicio-nav{display:flex;flex-direction:column;gap:var(--erlen-esp-1)}\n.erlen-inicio .erlen-inicio-enlace{display:flex;align-items:center;min-height:44px;padding:var(--erlen-esp-2) var(--erlen-esp-4);border:1px solid transparent;border-radius:var(--erlen-radio-capsula);color:var(--erlen-tinta-suave);text-decoration:none;font-size:var(--erlen-texto-sm);transition:background-color var(--erlen-dur) var(--erlen-ease),color var(--erlen-dur) var(--erlen-ease),box-shadow var(--erlen-dur) var(--erlen-ease)}\n.erlen-inicio .erlen-inicio-enlace:hover{background:var(--erlen-vidrio-tinte);color:var(--erlen-tinta)}\n.erlen-inicio .erlen-inicio-enlace[aria-current=page]{background:var(--erlen-vidrio-reflejo),var(--erlen-superficie);border-color:var(--erlen-vidrio-contorno);box-shadow:var(--erlen-vidrio-relieve);color:var(--erlen-verde);font-weight:700}\n.erlen-inicio-lateral-pie{margin-top:auto;display:flex;flex-direction:column;gap:var(--erlen-esp-2);padding-top:var(--erlen-esp-6)}\n.erlen-inicio .erlen-inicio-fuente{display:inline-flex;align-items:center;min-height:44px;padding:0 var(--erlen-esp-3);font-size:var(--erlen-texto-xs)}\n.erlen-inicio-estado{margin-top:var(--erlen-esp-3)!important;padding:var(--erlen-esp-4) var(--erlen-esp-3) 0;border-top:1px solid var(--erlen-vidrio-contorno);font:700 var(--erlen-texto-xs)/1.4 var(--erlen-font-ui)}\n.erlen-inicio-estado span{display:block;margin-top:var(--erlen-esp-1);font-weight:400;color:var(--erlen-tinta-suave)}\n\n/* Panel: cabecera fina y contenido con ancho máximo. */\n.erlen-inicio-panel{min-width:0}\n.erlen-inicio-cabecera{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:var(--erlen-esp-4);min-height:72px;padding:0 var(--erlen-esp-6);border-bottom:1px solid var(--erlen-vidrio-contorno);box-shadow:inset 0 -1px 0 var(--erlen-vidrio-borde);color:var(--erlen-tinta-suave);font-size:var(--erlen-texto-sm)}\n.erlen-inicio-cabecera::before{content:\"\";position:absolute;inset:0;z-index:-1;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro);pointer-events:none}\n.erlen-inicio-cabecera-acciones{display:flex;align-items:center;gap:var(--erlen-esp-4)}\n.erlen-inicio-local{font-size:var(--erlen-texto-xs)}\n.erlen-inicio-contenido{max-width:1350px;margin:0 auto;padding:var(--erlen-esp-7) var(--erlen-esp-6) var(--erlen-esp-8)}\n.erlen-inicio-eyebrow{display:block;font:700 var(--erlen-texto-xs)/1.2 var(--erlen-font-ui);letter-spacing:.13em;text-transform:uppercase;color:var(--erlen-verde)}\n.erlen-inicio-bienvenida{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--erlen-esp-5);flex-wrap:wrap}\n.erlen-inicio .erlen-inicio-titulo{margin:var(--erlen-esp-3) 0;font:400 clamp(34px,3.8vw,51px)/1.08 var(--erlen-font-titulo);letter-spacing:-.02em;color:var(--erlen-tinta)}\n.erlen-inicio-titulo em{font-style:italic;color:var(--erlen-verde)}\n.erlen-inicio-vista-cabecera{margin-bottom:var(--erlen-esp-6)}\n.erlen-inicio-vista-cabecera .erlen-inicio-titulo{font-size:42px}\n.erlen-inicio .erlen-inicio-lead{max-width:60ch;color:var(--erlen-tinta-suave);line-height:1.65}\n.erlen-inicio-buscar{display:flex;min-width:min(100%,320px)}\n.erlen-inicio-recreo{min-height:115px;margin:var(--erlen-esp-4) 0 var(--erlen-esp-6);padding:var(--erlen-esp-2) var(--erlen-esp-4) var(--erlen-esp-4);border-bottom:1px solid var(--erlen-vidrio-contorno)}\n.erlen-inicio-recreo erlen-mey{display:block;height:90px}\n\n/* Campos y botones propios (no dependen de base.css). */\n.erlen-inicio .erlen-inicio-campo{width:100%;min-height:var(--erlen-alto-control);padding:0 var(--erlen-esp-4);border:1px solid var(--erlen-linea-fuerte);border-radius:var(--erlen-radio-capsula);background:var(--erlen-superficie);color:var(--erlen-tinta);font:400 var(--erlen-texto-ui) var(--erlen-font-ui);box-shadow:inset 0 1px 2px var(--erlen-vidrio-contorno)}\n.erlen-inicio .erlen-inicio-campo:focus{border-color:var(--erlen-verde)}\n.erlen-inicio .erlen-inicio-boton{display:inline-flex;align-items:center;justify-content:center;gap:var(--erlen-esp-2);min-height:40px;margin:0;padding:0 var(--erlen-esp-4);border:1px solid var(--erlen-vidrio-contorno);border-radius:var(--erlen-radio-capsula);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);color:var(--erlen-verde);font:700 var(--erlen-texto-sm)/1.2 var(--erlen-font-ui);cursor:pointer;text-decoration:none;box-shadow:var(--erlen-vidrio-relieve);white-space:normal;max-width:100%;min-width:0;transition:background-color var(--erlen-dur-micro) var(--erlen-ease),border-color var(--erlen-dur-micro) var(--erlen-ease),box-shadow var(--erlen-dur-micro) var(--erlen-ease)}\n.erlen-inicio-boton-texto{min-width:0;overflow:hidden;text-overflow:ellipsis}\n.erlen-inicio-cabecera-acciones .erlen-inicio-boton-texto{white-space:normal}\n.erlen-inicio .erlen-inicio-nueva,.erlen-inicio .erlen-inicio-enlace{white-space:normal}\n.erlen-inicio .erlen-inicio-boton:hover{background:var(--erlen-vidrio-reflejo),var(--erlen-verde-suave);border-color:var(--erlen-verde)}\n.erlen-inicio .erlen-inicio-boton.primario{background:var(--erlen-vidrio-reflejo-acento),var(--erlen-verde);border-color:var(--erlen-verde);color:var(--erlen-verde-contraste);box-shadow:inset 0 1px 0 var(--erlen-vidrio-borde),0 2px 8px var(--erlen-vidrio-contorno)}\n.erlen-inicio .erlen-inicio-boton.primario:hover{background:var(--erlen-vidrio-reflejo-acento),color-mix(in srgb,var(--erlen-verde) 86%,var(--erlen-tinta))}\n.erlen-inicio .erlen-inicio-boton.peligro{color:var(--erlen-peligro);border-color:var(--erlen-peligro)}\n.erlen-inicio .erlen-inicio-boton.peligro:hover{background:var(--erlen-peligro-suave)}\n\n/* Colección de inicio: tarjeta «Nuevo…» y ejemplos. */\n/* Objetivos opcionales: tareas con datos propios, independientes del catálogo de ejemplos. */\n.erlen-inicio-objetivo{display:flex;flex-direction:column;gap:var(--erlen-esp-2);min-width:0;padding:var(--erlen-esp-4);border:1px solid var(--erlen-vidrio-contorno);border-radius:var(--erlen-radio-tarjeta);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio);box-shadow:var(--erlen-vidrio-relieve)}\n.erlen-inicio-objetivo h2{font:700 var(--erlen-texto-ui)/1.3 var(--erlen-font-ui);overflow-wrap:anywhere}\n.erlen-inicio-objetivo p{font-size:var(--erlen-texto-sm);line-height:1.5;color:var(--erlen-tinta-suave)}\n.erlen-inicio-objetivo .erlen-inicio-boton{margin-top:auto;align-self:flex-start;min-height:var(--erlen-alto-control)}\n.erlen-inicio-meta{display:flex;align-items:center;justify-content:space-between;gap:var(--erlen-esp-3);flex-wrap:wrap;margin-top:var(--erlen-esp-6);padding-top:var(--erlen-esp-4);border-top:1px solid var(--erlen-vidrio-contorno)}\n.erlen-inicio-meta h2{font:700 var(--erlen-texto-xs)/1.2 var(--erlen-font-ui);letter-spacing:.13em;text-transform:uppercase;color:var(--erlen-tinta-suave)}\n.erlen-inicio-acciones{display:flex;gap:var(--erlen-esp-2);flex-wrap:wrap}\n.erlen-inicio-rejilla{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:var(--erlen-esp-5);margin:var(--erlen-esp-5) 0}\n.erlen-inicio-coleccion{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:var(--erlen-esp-4)}\n.erlen-inicio .erlen-inicio-nueva{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--erlen-esp-2);min-height:0;margin:0;padding:var(--erlen-esp-4);border:1.5px dashed color-mix(in srgb,var(--erlen-verde) 45%,transparent);border-radius:var(--erlen-radio-tarjeta);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio);color:var(--erlen-tinta);font:inherit;cursor:pointer;text-align:center;transition:border-color var(--erlen-dur) var(--erlen-ease),background-color var(--erlen-dur) var(--erlen-ease),box-shadow var(--erlen-dur) var(--erlen-ease)}\n.erlen-inicio .erlen-inicio-nueva:hover{border-color:var(--erlen-verde);border-style:solid;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);box-shadow:var(--erlen-vidrio-relieve)}\n.erlen-inicio-mas{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--erlen-vidrio-reflejo-acento),var(--erlen-verde);color:var(--erlen-verde-contraste);font-size:24px;line-height:1;box-shadow:inset 0 1px 0 var(--erlen-vidrio-borde),0 4px 12px var(--erlen-vidrio-contorno)}\n.erlen-inicio-nueva-datos{display:flex;flex-direction:column;gap:var(--erlen-esp-1)}\n.erlen-inicio-nueva strong{font:400 24px/1.2 var(--erlen-font-titulo)}\n.erlen-inicio-nueva small{font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-inicio-ejemplo,.erlen-inicio-tarjeta{display:flex;flex-direction:column;gap:var(--erlen-esp-3);padding:var(--erlen-esp-5);border:1px solid var(--erlen-vidrio-contorno);border-radius:var(--erlen-radio-tarjeta);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio);box-shadow:var(--erlen-vidrio-relieve);transition:border-color var(--erlen-dur) var(--erlen-ease),box-shadow var(--erlen-dur) var(--erlen-ease),background-color var(--erlen-dur) var(--erlen-ease)}\n.erlen-inicio-ejemplo:hover,.erlen-inicio-tarjeta:hover{border-color:color-mix(in srgb,var(--erlen-verde) 35%,transparent);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);box-shadow:var(--erlen-vidrio-relieve),var(--erlen-sombra-tarjeta)}\n.erlen-inicio-ejemplo[hidden]{display:none}\n.erlen-inicio-ejemplo.con-arte{gap:var(--erlen-esp-2);padding:var(--erlen-esp-2);min-width:0}\n.erlen-inicio-ejemplo-datos{display:flex;flex-direction:column;gap:var(--erlen-esp-1);min-width:0;padding:0 var(--erlen-esp-2)}\n.erlen-inicio-arte{display:grid;place-items:center;height:120px;padding:var(--erlen-esp-3);border-radius:calc(var(--erlen-radio-tarjeta) - var(--erlen-esp-2));background:var(--erlen-verde-suave);box-shadow:inset 0 0 0 1px var(--erlen-vidrio-contorno);color:var(--erlen-verde);font:italic 400 24px/1.2 var(--erlen-font-titulo);text-align:center}\n.erlen-inicio-arte svg{max-width:100%;max-height:100%}\n.erlen-inicio-ejemplo.con-arte .erlen-inicio-arte{width:100%;height:auto;aspect-ratio:16/9;padding:var(--erlen-esp-2);overflow:hidden}\n.erlen-inicio-arte img{display:block;width:100%;height:100%;object-fit:contain}\n.erlen-inicio-ejemplo h2{font:400 24px/1.2 var(--erlen-font-titulo)}\n.erlen-inicio-ejemplo.con-arte h2{font:700 var(--erlen-texto-ui)/1.25 var(--erlen-font-ui);overflow-wrap:anywhere}\n.erlen-inicio-ejemplo p,.erlen-inicio-tarjeta p{color:var(--erlen-tinta-suave);line-height:1.6;font-size:var(--erlen-texto-sm)}\n.erlen-inicio-solo-lectura{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n.erlen-inicio-ejemplo .erlen-inicio-boton{align-self:flex-start;margin-top:auto}\n.erlen-inicio-ejemplo.con-arte .erlen-inicio-boton{margin:0 var(--erlen-esp-2) var(--erlen-esp-2);align-self:flex-start}\n\n/* Biblioteca y recientes. */\n.erlen-inicio-controles{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,220px);gap:var(--erlen-esp-3);max-width:720px}\n.erlen-inicio-nota{margin-top:var(--erlen-esp-3)!important;font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-inicio-biblioteca{grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:var(--erlen-esp-4)}\n.erlen-inicio-tarjeta{display:grid;grid-template-columns:88px minmax(0,1fr);gap:var(--erlen-esp-3);min-width:0;padding:var(--erlen-esp-2);overflow:hidden}\n.erlen-inicio-miniatura{display:flex;flex-direction:column;justify-content:space-between;gap:var(--erlen-esp-2);min-width:0;padding:var(--erlen-esp-2);border-radius:calc(var(--erlen-radio-tarjeta) - var(--erlen-esp-2));background:var(--erlen-superficie-2);box-shadow:inset 0 0 0 1px var(--erlen-vidrio-contorno)}\n.erlen-inicio-miniatura small{font:700 var(--erlen-texto-xs)/1 var(--erlen-font-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--erlen-tinta-suave)}\n.erlen-inicio-miniatura span{font:700 var(--erlen-texto-sm)/1.25 var(--erlen-font-ui);color:var(--erlen-tinta);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}\n.erlen-inicio-tarjeta-cuerpo{display:flex;flex-direction:column;justify-content:center;gap:var(--erlen-esp-1);min-width:0}\n.erlen-inicio-tarjeta h3{font:700 var(--erlen-texto-ui)/1.3 var(--erlen-font-ui);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}\n.erlen-inicio-tarjeta .erlen-inicio-acciones{gap:var(--erlen-esp-1)}\n.erlen-inicio-tarjeta .erlen-inicio-boton{min-height:36px;padding:0 var(--erlen-esp-2);font-size:var(--erlen-texto-xs)}\n.erlen-inicio-vacio{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:var(--erlen-esp-3);padding:var(--erlen-esp-7) var(--erlen-esp-5);border:1px dashed var(--erlen-linea-fuerte);border-radius:var(--erlen-radio-tarjeta);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio);box-shadow:var(--erlen-vidrio-relieve);text-align:center}\n/* Mey (diseno/mey.mjs) en un hueco de 96 px: <erlen-mey> elige 6 px por celda (96×108). */\n.erlen-inicio-mey{display:block;width:96px}\n.erlen-inicio-mey svg{display:block;width:100%;height:auto}\n.erlen-inicio-vacio h3{font:400 24px/1.2 var(--erlen-font-titulo)}\n.erlen-inicio-vacio p{max-width:52ch;color:var(--erlen-tinta-suave)}\n.erlen-inicio-recientes{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:var(--erlen-esp-2);margin-top:var(--erlen-esp-4)!important}\n.erlen-inicio .erlen-inicio-boton.reciente{flex-direction:column;align-items:flex-start;width:100%;min-height:56px;padding:var(--erlen-esp-2) var(--erlen-esp-3);color:var(--erlen-tinta);text-align:left;font-weight:400}\n.erlen-inicio-boton.reciente strong{font-weight:700;overflow-wrap:anywhere}\n.erlen-inicio-boton.reciente small{font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-inicio-enlace-texto{font-size:var(--erlen-texto-sm)}\n.erlen-inicio-pie{display:flex;align-items:center;justify-content:space-between;gap:var(--erlen-esp-3);flex-wrap:wrap;margin-top:var(--erlen-esp-6);padding-top:var(--erlen-esp-4);border-top:1px solid var(--erlen-vidrio-contorno);font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-inicio-activo{display:inline-flex;align-items:center;gap:6px;color:var(--erlen-verde);font-weight:700}\n.erlen-inicio-activo::before{content:\"\";width:7px;height:7px;border-radius:50%;background:currentColor}\n/* Sin guardado automático (guardado:'sesion' o 'explicito'): punto hueco y color neutro, para que no parezca un estado «activo». */\n.erlen-inicio-activo.sesion{color:var(--erlen-tinta-suave)}\n.erlen-inicio-activo.sesion::before{background:transparent;box-shadow:inset 0 0 0 1.5px currentColor}\n.erlen-inicio-acerca{display:flex;flex-direction:column;gap:var(--erlen-esp-3);max-width:72ch}\n.erlen-inicio-acerca h2{font:400 24px/1.2 var(--erlen-font-titulo)}\n.erlen-inicio-acerca ul{display:flex;flex-direction:column;gap:var(--erlen-esp-2)}\n\n@media (max-width:1190px){\n .erlen-inicio-marco{grid-template-columns:190px minmax(0,1fr)}\n .erlen-inicio-lateral{padding-inline:var(--erlen-esp-3)}\n .erlen-inicio-contenido{padding:var(--erlen-esp-6) var(--erlen-esp-5) var(--erlen-esp-7)}\n .erlen-inicio-cabecera{padding:0 var(--erlen-esp-5)}\n .erlen-inicio-local{display:none}\n}\n@media (max-width:760px){\n .erlen-inicio-marco{display:block}\n .erlen-inicio-lateral{position:static;height:auto;padding:var(--erlen-esp-4) var(--erlen-esp-4) var(--erlen-esp-2);border-right:0;border-bottom:1px solid var(--erlen-vidrio-contorno);box-shadow:inset 0 -1px 0 var(--erlen-vidrio-borde)}\n .erlen-inicio-marca{padding:0 0 var(--erlen-esp-2)}\n /* La fila de navegación se desplaza en horizontal y recorta lo que sobresale: un poco de margen interior y un relieve\n    corto en la lente para que su sombra no se corte en un rectángulo. */\n .erlen-inicio-nav{flex-direction:row;overflow-x:auto;scrollbar-width:none;padding:var(--erlen-esp-1);margin:calc(-1 * var(--erlen-esp-1))}\n .erlen-inicio .erlen-inicio-enlace[aria-current=page]{box-shadow:inset 0 1px 0 var(--erlen-vidrio-borde),0 1px 3px var(--erlen-vidrio-contorno)}\n .erlen-inicio .erlen-inicio-enlace{flex:none;white-space:nowrap}\n .erlen-inicio-lateral-pie{flex-direction:row;flex-wrap:wrap;align-items:center;padding-top:0;margin-top:0}\n .erlen-inicio-estado{display:none}\n .erlen-inicio .erlen-inicio-titulo{font-size:38px}\n .erlen-inicio-controles{grid-template-columns:1fr}\n .erlen-inicio-cabecera{position:relative;min-height:56px;padding-block:var(--erlen-esp-2)}\n .erlen-inicio-cabecera>span{display:none}\n /* Sin menú de suite ni «Continuar» (app fuera del portal, file://) la cabecera no tendría nada visible: se retira en\n    vez de dejar una franja de cristal vacía entre la barra lateral y el contenido (2.0.1). */\n .erlen-inicio-cabecera:not(:has(.erlen-inicio-cabecera-acciones>:not(.erlen-inicio-local,.erlen-inicio-suite:empty))){display:none}\n .erlen-inicio-cabecera-acciones{width:100%;justify-content:flex-end;gap:var(--erlen-esp-2)}\n}\n.erlen-inicio-cabecera-acciones{min-width:0;flex-wrap:wrap;justify-content:flex-end}\n.erlen-inicio-cabecera-acciones>*{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}\n.erlen-inicio-aviso{margin:0 0 var(--erlen-esp-5)!important;padding:var(--erlen-esp-3) var(--erlen-esp-4);border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-pequeno);background:var(--erlen-ambar-suave);color:var(--erlen-tinta)}\n.erlen-inicio-aviso.error{background:var(--erlen-peligro-suave);border-color:var(--erlen-peligro);color:var(--erlen-tinta)}\n/* El tamaño táctil depende del espacio y de la entrada disponible, también en\n   equipos híbridos. La regla posterior a las tarjetas cubre sus acciones densas. */\n@media (max-width:920px),(any-pointer:coarse){\n .erlen-inicio .erlen-inicio-boton{min-height:var(--erlen-alto-control);min-width:var(--erlen-alto-control)}\n}\n@media (max-width:600px){\n .erlen-inicio-rejilla{grid-template-columns:1fr}\n .erlen-inicio-coleccion{gap:var(--erlen-esp-3)}\n .erlen-inicio-tarjeta{grid-template-columns:72px minmax(0,1fr);gap:var(--erlen-esp-2)}\n .erlen-inicio-miniatura small{display:none}\n .erlen-inicio-tarjeta p{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n .erlen-inicio .erlen-inicio-nueva{flex-direction:row;justify-content:flex-start;min-height:104px;text-align:left}\n .erlen-inicio-ejemplo.con-arte{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;column-gap:var(--erlen-esp-3);min-height:112px}\n .erlen-inicio-ejemplo.con-arte .erlen-inicio-arte{grid-row:1/3;align-self:stretch;height:100%;aspect-ratio:auto}\n .erlen-inicio-ejemplo-datos{padding:0;align-self:end}\n .erlen-inicio-ejemplo.con-arte .erlen-inicio-boton{margin:var(--erlen-esp-1) 0 0;justify-self:start}\n /* Primera pantalla en móvil (2.10.10): aviso, presentación y acciones ocupaban todo el alto y el primer objetivo\n    quedaba bajo el pliegue. Se compacta lo que rodea a la colección sin quitar contenido: el aviso conserva su texto,\n    los botones de la colección caben en una fila y la etiqueta «Con tus datos», idéntica en cada objetivo, se oculta\n    (el título de la colección ya la sostiene). A 375×812 el primer objetivo entra completo. */\n .erlen-inicio-contenido{padding-top:var(--erlen-esp-4)}\n .erlen-inicio .erlen-inicio-aviso{margin-bottom:var(--erlen-esp-4)!important;padding:var(--erlen-esp-2) var(--erlen-esp-3);font-size:var(--erlen-texto-sm);line-height:1.4}\n .erlen-inicio .erlen-inicio-titulo{margin:var(--erlen-esp-2) 0;font-size:32px}\n .erlen-inicio .erlen-inicio-lead{line-height:1.5}\n .erlen-inicio-bienvenida{gap:var(--erlen-esp-3)}\n .erlen-inicio-meta{margin-top:var(--erlen-esp-4);padding-top:var(--erlen-esp-3)}\n .erlen-inicio-meta .erlen-inicio-acciones .erlen-inicio-boton{padding:0 var(--erlen-esp-3)}\n .erlen-inicio .erlen-inicio-nueva{min-height:80px}\n .erlen-inicio-objetivo{gap:var(--erlen-esp-1);padding:var(--erlen-esp-3) var(--erlen-esp-4)}\n .erlen-inicio-objetivo .erlen-inicio-eyebrow{display:none}\n}\n@media (max-width:360px){.erlen-inicio-contenido{padding-inline:14px}.erlen-inicio-cabecera{padding:0 14px}}\n@media (prefers-reduced-motion:reduce){.erlen-inicio *{transition:none!important}}\n/* Colores forzados: la lente del enlace actual y la cabecera se marcan con el borde del sistema. */\n@media (forced-colors:active){.erlen-inicio .erlen-inicio-enlace[aria-current=page]{border-color:Highlight}.erlen-inicio-cabecera::before{background:Canvas}}\n@media print{.erlen-inicio{display:none}}\n/* Inicio mineral: acciones claras, rail compacto y superficies de lectura estables. */\n.erlen-inicio-marca{font-weight:600;letter-spacing:-.04em}\n.erlen-inicio-titulo{font-weight:600;letter-spacing:-.04em;line-height:1.15}\n.erlen-inicio-titulo em{font-style:normal;color:var(--erlen-verde)}\n.erlen-inicio-lateral{background:var(--erlen-vidrio);box-shadow:none}\n.erlen-inicio-boton,.erlen-inicio-enlace{border-radius:var(--erlen-radio-campo)}\n.erlen-inicio-ejemplo{background:var(--erlen-superficie);box-shadow:none;border-color:var(--erlen-linea)}\n.erlen-inicio-ejemplo:hover{box-shadow:var(--erlen-sombra-tarjeta)}\n\n/* Fondo e iconos de las tarjetas de inicio; las miniaturas de archivos se conservan. */\n:root[data-erlen-estilo] .erlen-inicio-arte{background:var(--erlen-icono-placa),var(--erlen-cromo-acento);border-radius:var(--erlen-icono-radio);box-shadow:var(--erlen-icono-relieve)}\n:root[data-erlen-estilo] .erlen-inicio-cabecera::before{background:var(--erlen-vidrio-reflejo),var(--erlen-cromo-trama),var(--erlen-vidrio-fuerte)}\n\n/* Mey vive encima de la página, sin reservar huecos ni interceptar controles ajenos. */\n.mey-libre{position:fixed;left:0;top:0;z-index:501;display:block;width:auto;height:auto;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:var(--erlen-radio-pequeno);background:transparent;color:var(--erlen-tinta);box-shadow:none;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;will-change:transform;transition:none;line-height:0}\n.mey-libre:hover{background:transparent}.mey-libre[data-arrastrando]{cursor:grabbing}.mey-libre svg{display:block;pointer-events:none;max-width:none}.mey-libre:focus-visible,.mey-libre-pausa:focus-visible{outline:3px solid var(--erlen-foco);outline-offset:3px}\n.mey-libre-pausa{position:fixed;right:16px;bottom:12px;z-index:501;min-height:44px;padding:8px 14px;border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-campo);background:var(--erlen-vidrio-fuerte);color:var(--erlen-tinta-suave);font:500 var(--erlen-texto-xs)/1.4 var(--erlen-font-ui);cursor:pointer}\n.mey-libre-pausa--integrada{position:static;flex:0 0 auto;white-space:nowrap;z-index:auto}\n@media print{.mey-libre,.mey-libre-pausa{display:none}}\n\n/* Las ilustraciones de estados vacíos ceden ante la presencia compartida. */\nhtml[data-erlen-mey-presencia] .recientes-vacio .mey{display:none}\n\n/* Arte elegido para Mey: cambia el material, no sus poses, atuendo ni movimiento.\n   Los pigmentos conservan la paleta personal. Los ojos siguen planos y nítidos.\n   El tile de marca y el favicon de 16 × 16 quedan fuera de estos tratamientos. */\n:root[data-erlen-estilo]{--mey-arte-filtro:none;--mey-arte-render:auto;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-contorno:var(--erlen-tinta);--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"glassmorfismo\"]{--mey-arte-filtro:drop-shadow(0 -1px 0 var(--erlen-superficie)) drop-shadow(0 2px 2px var(--erlen-linea-fuerte));--mey-arte-radio:.12px;--mey-arte-trazo:.07px;--mey-arte-contorno:var(--erlen-superficie);--mey-arte-vidrio:.78;--mey-arte-banda:.9}\n:root[data-erlen-estilo=\"neumorfismo\"]{--mey-arte-filtro:drop-shadow(-2px -2px 1px var(--erlen-superficie)) drop-shadow(2px 2px 1px var(--erlen-linea-fuerte));--mey-arte-radio:.08px;--mey-arte-trazo:.035px;--mey-arte-contorno:var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"neobrutalismo\"]{--mey-arte-filtro:drop-shadow(3px 3px 0 var(--erlen-tinta));--mey-arte-render:crispEdges;--mey-arte-trazo:.16px}\n:root[data-erlen-estilo=\"minimalismo\"]{--mey-arte-render:crispEdges;--mey-arte-trazo:.05px;--mey-arte-contorno:var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"art-deco\"]{--mey-arte-filtro:drop-shadow(1px 1px 0 var(--erlen-ambar));--mey-arte-render:crispEdges;--mey-arte-trazo:.10px;--mey-arte-contorno:var(--erlen-ambar);--mey-arte-banda:.94}\n:root[data-erlen-estilo=\"claymorfismo\"]{--mey-arte-filtro:drop-shadow(-1px -1px 1px var(--erlen-superficie)) drop-shadow(0 3px 2px var(--erlen-linea-fuerte));--mey-arte-radio:.24px;--mey-arte-trazo:.025px;--mey-arte-contorno:var(--erlen-superficie)}\n:root[data-erlen-estilo=\"bauhaus\"]{--mey-arte-filtro:drop-shadow(3px 0 0 var(--erlen-cromo-luz)) drop-shadow(0 3px 0 var(--erlen-verde));--mey-arte-render:crispEdges;--mey-arte-trazo:.20px}\n:root[data-erlen-estilo=\"frutiger-aero\"]{--mey-arte-filtro:drop-shadow(0 -2px 0 var(--erlen-superficie)) drop-shadow(0 2px 1px var(--erlen-verde-suave));--mey-arte-radio:.16px;--mey-arte-trazo:.10px;--mey-arte-contorno:var(--erlen-superficie);--mey-arte-vidrio:.9;--mey-arte-banda:1}\n:root[data-erlen-estilo=\"esqueuomorfismo\"]{--mey-arte-filtro:drop-shadow(-1px -1px 0 var(--erlen-superficie)) drop-shadow(1.5px 1.5px .6px var(--erlen-linea-fuerte));--mey-arte-radio:.045px;--mey-arte-trazo:.10px;--mey-arte-contorno:var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"retro-digital\"]{--mey-arte-filtro:drop-shadow(-1px -1px 0 var(--erlen-superficie)) drop-shadow(2px 2px 0 var(--erlen-linea-fuerte));--mey-arte-render:crispEdges;--mey-arte-trazo:.08px}\n:root[data-erlen-estilo=\"y2k\"]{--mey-arte-filtro:drop-shadow(-1px -1px 0 var(--erlen-superficie)) drop-shadow(2px 1px 1px var(--erlen-linea-fuerte));--mey-arte-radio:.15px;--mey-arte-trazo:.085px;--mey-arte-contorno:var(--erlen-superficie);--mey-arte-vidrio:.95;--mey-arte-banda:.75}\n:root[data-erlen-estilo=\"cyberpunk\"]{--mey-arte-filtro:drop-shadow(0 0 3px var(--erlen-verde)) drop-shadow(0 0 6px var(--erlen-verde-suave));--mey-arte-render:crispEdges;--mey-arte-trazo:.13px;--mey-arte-contorno:var(--erlen-verde);--mey-arte-vidrio:.8;--mey-arte-banda:.9}\n:root[data-erlen-estilo=\"blueprint\"]{--mey-arte-render:crispEdges;--mey-arte-trazo:.075px;--mey-arte-contorno:var(--erlen-verde);--mey-arte-vidrio:.18;--mey-arte-banda:.18;--mey-arte-guion:.45 .15;--mey-arte-ojos:var(--erlen-tinta)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]){filter:var(--mey-arte-filtro);shape-rendering:var(--mey-arte-render)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) :is([data-mey-pigmento=\"g\"],[data-mey-pigmento=\"w\"]){rx:var(--mey-arte-radio);ry:var(--mey-arte-radio);stroke:var(--mey-arte-contorno);stroke-width:var(--mey-arte-trazo);stroke-dasharray:var(--mey-arte-guion);stroke-linejoin:round;paint-order:stroke fill}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) [data-mey-pigmento=\"g\"]{fill-opacity:var(--mey-arte-vidrio)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) [data-mey-pigmento=\"g\"]:nth-of-type(3n){fill-opacity:var(--mey-arte-banda)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) [data-mey-pigmento=\"e\"]{fill:var(--mey-arte-ojos);fill-opacity:1;stroke:none;rx:0;ry:0;shape-rendering:crispEdges}\n/* Un acabado quieto no añade relojes, flashes ni desplazamientos. Los respaldos\n   de legibilidad devuelven los pigmentos planos y los píxeles originales. */\n:root:root[data-erlen-estilo][data-erlen-material=\"solido\"]{--mey-arte-filtro:none;--mey-arte-render:crispEdges;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}\n@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active),print{:root:root[data-erlen-estilo]{--mey-arte-filtro:none;--mey-arte-render:crispEdges;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}}\n@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root:root[data-erlen-estilo]{--mey-arte-filtro:none;--mey-arte-render:crispEdges;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}}\n\n/* Sprites artísticos: contornos conectados, vidrio/líquido completos y ojos planos.\n   No son filtros sobre la cuadrícula: Original y los respaldos usan los píxeles. */\n:root[data-erlen-estilo]{--mey-vector-visible:inline;--mey-pixel-visible:none;--mey-vector-angular:inline;--mey-vector-suave:none;--mey-vector-trazo:.16;--mey-vector-borde:var(--erlen-mey-ojos);--mey-vector-ojos:var(--erlen-mey-ojos)}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"neumorfismo\"],[data-erlen-estilo=\"minimalismo\"],[data-erlen-estilo=\"claymorfismo\"],[data-erlen-estilo=\"frutiger-aero\"],[data-erlen-estilo=\"esqueuomorfismo\"],[data-erlen-estilo=\"y2k\"]){--mey-vector-angular:none;--mey-vector-suave:inline}\n:root[data-erlen-estilo=\"glassmorfismo\"]{--mey-vector-trazo:.35;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"neumorfismo\"]{--mey-vector-trazo:.2;--mey-vector-borde:var(--erlen-superficie)}\n:root[data-erlen-estilo=\"neobrutalismo\"]{--mey-vector-trazo:.8;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"minimalismo\"]{--mey-vector-trazo:.3;--mey-vector-borde:var(--erlen-tinta);--mey-vector-ojos:var(--erlen-tinta);--mey-arte-render:auto}\n:root[data-erlen-estilo=\"art-deco\"]{--mey-vector-trazo:.5;--mey-vector-borde:var(--erlen-ambar)}\n:root[data-erlen-estilo=\"claymorfismo\"]{--mey-vector-trazo:.15;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"bauhaus\"]{--mey-vector-trazo:.6;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"frutiger-aero\"]{--mey-vector-trazo:.3;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"esqueuomorfismo\"]{--mey-vector-trazo:.4;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"retro-digital\"]{--mey-vector-trazo:.4;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"y2k\"]{--mey-vector-trazo:.45;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"cyberpunk\"]{--mey-vector-trazo:.4;--mey-vector-borde:var(--erlen-verde);--mey-vector-ojos:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"blueprint\"]{--mey-vector-trazo:.3;--mey-vector-borde:var(--erlen-verde);--mey-vector-ojos:var(--erlen-tinta)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) .mey-ilustracion{display:var(--mey-vector-visible)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) rect[data-mey-pigmento]{display:var(--mey-pixel-visible)}\n:root[data-erlen-estilo] .mey-vector[data-mey-vector=\"angular\"]{display:var(--mey-vector-angular)}\n:root[data-erlen-estilo] .mey-vector[data-mey-vector=\"suave\"]{display:var(--mey-vector-suave)}\n:root[data-erlen-estilo] .mey-vector-contorno{stroke:var(--mey-vector-borde);stroke-width:var(--mey-vector-trazo);stroke-linejoin:round;fill:none}\n:root[data-erlen-estilo] .mey-vector [data-mey-material]{stroke:var(--mey-vector-borde);stroke-width:calc(var(--mey-vector-trazo)*.55);stroke-linejoin:round;paint-order:stroke fill}\n:root[data-erlen-estilo] .mey-vector [data-mey-material=\"e\"]{fill:var(--mey-vector-ojos);stroke:none;opacity:1}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"neumorfismo\"],[data-erlen-estilo=\"claymorfismo\"],[data-erlen-estilo=\"frutiger-aero\"],[data-erlen-estilo=\"esqueuomorfismo\"],[data-erlen-estilo=\"y2k\"]) .mey-material-luz{stop-color:var(--erlen-mey-reflejo)}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"neumorfismo\"],[data-erlen-estilo=\"claymorfismo\"],[data-erlen-estilo=\"frutiger-aero\"],[data-erlen-estilo=\"esqueuomorfismo\"],[data-erlen-estilo=\"y2k\"]) .mey-material-sombra{stop-color:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"minimalismo\"] .mey-vector [data-mey-material=\"g\"]{fill:var(--erlen-superficie)}\n:root[data-erlen-estilo=\"cyberpunk\"] .mey-vector [data-mey-material=\"g\"]{fill:var(--erlen-espacio-fondo)}\n:root[data-erlen-estilo=\"cyberpunk\"] .mey-vector [data-mey-material=\"w\"]{fill:var(--erlen-espacio-fondo);stroke:var(--erlen-verde);stroke-width:.35}\n:root[data-erlen-estilo=\"blueprint\"] .mey-vector :is([data-mey-material=\"g\"],[data-mey-material=\"w\"]){fill:none;stroke:var(--erlen-verde);stroke-width:.25;stroke-dasharray:none}\n:root[data-erlen-estilo=\"neobrutalismo\"] .mey-vector :is([data-mey-material],.mey-vector-contorno){stroke-linejoin:miter}\n:root[data-erlen-estilo] [data-mey-decoracion]{pointer-events:none;fill:none;stroke:none}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"frutiger-aero\"]) [data-mey-decoracion=\"cristal\"]{display:inline;fill:var(--erlen-mey-reflejo);opacity:.75}\n:root[data-erlen-estilo=\"frutiger-aero\"] [data-mey-decoracion=\"aero\"]{display:inline;stroke:var(--erlen-mey-reflejo);stroke-width:.35;fill:none}\n:root[data-erlen-estilo=\"art-deco\"] [data-mey-decoracion=\"deco\"]{display:inline;stroke:var(--erlen-ambar);stroke-width:.25}\n:root[data-erlen-estilo=\"bauhaus\"] [data-mey-decoracion=\"bauhaus\"]{display:inline;fill:var(--erlen-ambar);stroke:var(--erlen-mey-ojos);stroke-width:.25}\n:root[data-erlen-estilo=\"bauhaus\"] [data-mey-decoracion=\"bauhaus\"] path:first-of-type{fill:var(--erlen-cromo-luz)}\n:root[data-erlen-estilo=\"y2k\"] [data-mey-decoracion=\"metal\"]{display:inline;fill:var(--erlen-mey-reflejo);opacity:.85}\n:root[data-erlen-estilo=\"cyberpunk\"] [data-mey-decoracion=\"circuito\"]{display:inline;stroke:var(--erlen-verde);stroke-width:.35}\n:root[data-erlen-estilo=\"blueprint\"] [data-mey-decoracion=\"plano\"]{display:inline;stroke:var(--erlen-verde);stroke-width:.15;opacity:.7}\n:root[data-erlen-estilo=\"retro-digital\"] [data-mey-decoracion=\"retro\"]{display:inline;stroke:var(--erlen-mey-ojos);stroke-width:.35;opacity:.4}\n:root:root[data-erlen-estilo][data-erlen-material=\"solido\"]{--mey-vector-visible:none;--mey-pixel-visible:inline}\n@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active),print{:root:root[data-erlen-estilo]{--mey-vector-visible:none;--mey-pixel-visible:inline}}\n@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root:root[data-erlen-estilo]{--mey-vector-visible:none;--mey-pixel-visible:inline}}\n",
  "src/diseno/base.css": "/* Erlen Suite · paquete de diseño 2.0.0 · base del cromo de las apps (docs/GUIA-DISENO.md §0 y §3–§5, docs/CONTRATO-APP.md §2).\n   Solo cromo: cabecera, controles, estado, pie. El contenido del usuario (documento, hoja, figura, diapositiva) no se toca y sigue opaco.\n   Cristal (2.0.0): cabecera, paneles, diálogos y .erlen-vidrio usan los tokens --erlen-vidrio* de tokens.css, que ya traen sus respaldos.\n   Ningún color literal aquí: todo es var(--erlen-*) de tokens.css. Licencia: licencias/MIT.txt */\n*,::before,::after{box-sizing:border-box}\nhtml{-webkit-text-size-adjust:100%}\n/* Opt-in responsive recipes. User content remains opaque; ARIA belongs in markup.\n   Original Erlen implementation; references: docs/research/ui-saas.md. */\n.erlen-ui-stack{display:grid;gap:var(--erlen-esp-4);min-inline-size:0}\n.erlen-ui-stack>*{min-inline-size:0;max-inline-size:100%}\n.erlen-ui-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:var(--erlen-esp-4);min-inline-size:0}\n.erlen-ui-grid>*{min-inline-size:0}\n.erlen-ui-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:var(--erlen-esp-3);min-inline-size:0;max-inline-size:100%}\n.erlen-ui-toolbar>*{min-inline-size:0;max-inline-size:100%;overflow-wrap:anywhere}\n.erlen-ui-field{display:grid;gap:var(--erlen-esp-2);min-inline-size:0}\n.erlen-ui-field :is(input,select,textarea){inline-size:100%;min-inline-size:0;max-inline-size:100%}\n.erlen-ui-field :is(label,small){overflow-wrap:anywhere}\n.erlen-ui-field [aria-invalid=\"true\"]{border-color:var(--erlen-peligro)}\n.erlen-ui-message{padding:var(--erlen-esp-3) var(--erlen-esp-4);border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie);color:var(--erlen-tinta);overflow-wrap:anywhere}\n.erlen-ui-message[data-state=\"error\"]{border-color:var(--erlen-peligro);background:var(--erlen-peligro-suave)}\n.erlen-ui-message[data-state=\"success\"]{border-color:var(--erlen-verde);background:var(--erlen-verde-suave)}\n.erlen-ui-scroll{min-inline-size:0;max-inline-size:100%;overflow:auto;overscroll-behavior-inline:contain;border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie)}\n.erlen-ui-scroll:focus-visible{outline:3px solid var(--erlen-foco);outline-offset:-3px}\n.erlen-ui-table{inline-size:100%;min-inline-size:40rem;border-collapse:collapse;background:var(--erlen-superficie);color:var(--erlen-tinta);font:inherit}\n.erlen-ui-table caption{text-align:start;padding:var(--erlen-esp-3);font-weight:700}\n.erlen-ui-table :is(th,td){text-align:start;vertical-align:top;padding:var(--erlen-esp-3);border-block-end:1px solid var(--erlen-linea);overflow-wrap:anywhere}\n.erlen-ui-table th{background:var(--erlen-superficie-2)}\n@media print{.erlen-ui-scroll{overflow:visible;border:0}.erlen-ui-table{min-inline-size:0;table-layout:fixed}}\nbody{margin:0;background:var(--erlen-papel);color:var(--erlen-tinta);font:var(--erlen-texto-ui)/var(--erlen-interlineado-ui) var(--erlen-font-ui);-webkit-font-smoothing:antialiased}\n/* Títulos en LM Roman solo a partir de 24 px; por debajo, LM Sans. */\nh1,h2,h3,h4,p{margin:0}\nh1,h2{font-family:var(--erlen-font-titulo);font-weight:400;line-height:1.12;letter-spacing:-.5px}\nh1{font-size:var(--erlen-h1-app)}\nh2{font-size:var(--erlen-h3);font-weight:700}\nh3,h4{font-family:var(--erlen-font-ui);font-size:var(--erlen-texto-base);font-weight:700;line-height:1.3}\na{color:var(--erlen-verde);text-decoration:none}a:hover{text-decoration:underline}\ncode,kbd,pre,samp{font-family:var(--erlen-font-mono);font-size:.94em}\n/* Texto de lectura (párrafos largos, vistas previas): cuerpo de la familia a 17 px / 1,7. */\n.erlen-lectura{font:var(--erlen-texto-base)/var(--erlen-interlineado) var(--erlen-font-cuerpo);max-width:var(--erlen-ancho-lectura)}\n/* Foco ámbar visible en todo lo enfocable. */\na:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--erlen-foco);outline-offset:3px;border-radius:4px}\n/* Cabecera común: marca, título, badge y hueco para el menú de suite (erlen-suite-nav se monta dentro, a la derecha). */\n/* Sin backdrop-filter en la propia cabecera: crearía un bloque contenedor para el menú fijo de erlen-suite-nav que vive dentro.\n   Si una app la fija arriba (sticky), añade el desenfoque en un ::before (ver docs/COHERENCIA-APPS.md §0). */\n.erlen-app-header{display:flex;align-items:center;flex-wrap:wrap;gap:var(--erlen-esp-3) var(--erlen-esp-4);min-height:64px;padding:var(--erlen-esp-3) 4%;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border-bottom:1px solid var(--erlen-vidrio-contorno);box-shadow:inset 0 -1px 0 var(--erlen-vidrio-borde)}\n/* El nombre de la app cede espacio con base 0: con base auto su texto inflaba la primera línea y\n   bajaba la tira de controles a una segunda fila (p. ej. dft y data a 1440 px). Elipsis en\n   marco.css; a ≤ 600 px queda oculto visualmente. */\n.erlen-app-header h1{flex:1 1 0%;min-width:0;overflow-wrap:anywhere}\n.erlen-app-header .erlen-marca{font-weight:700;white-space:nowrap}\n:root[data-erlen-color] .erlen-app-header .erlen-marca{color:var(--erlen-verde)}\n.erlen-app-header>erlen-suite-nav,.erlen-app-header .erlen-menu{margin-left:auto;flex:0 0 auto;min-height:40px;display:flex;align-items:center}\n.erlen-app-header .erlen-menu:empty{min-width:88px}\n.erlen-app-header .erlen-menu>erlen-suite-nav{margin-left:0}\n.badge,.erlen-badge{display:inline-block;font:700 var(--erlen-texto-xs)/1 var(--erlen-font-ui);color:var(--erlen-tinta);background:var(--erlen-verde-suave);border-radius:var(--erlen-radio-badge);padding:6px 10px;white-space:nowrap}\n/* Controles: 44 px de alto, radio de campo, borde de línea; un solo .primary por bloque. El primario lleva el brillo especular del cristal. */\nbutton,input,select,textarea{font:inherit;color:inherit;margin:0}\nbutton,.erlen-boton{display:inline-flex;align-items:center;justify-content:center;gap:var(--erlen-esp-2);min-height:var(--erlen-alto-control);padding:var(--erlen-esp-2) var(--erlen-esp-4);border:1px solid var(--erlen-verde);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie);color:var(--erlen-verde);font-weight:700;line-height:1.2;cursor:pointer;text-decoration:none}\nbutton:hover,.erlen-boton:hover{background:var(--erlen-verde-suave);text-decoration:none}\nbutton.primary,.erlen-boton.primary{background:var(--erlen-vidrio-reflejo-acento),var(--erlen-verde);color:var(--erlen-verde-contraste);box-shadow:inset 0 1px 0 var(--erlen-vidrio-borde),0 2px 8px var(--erlen-vidrio-contorno)}\nbutton.primary:hover,.erlen-boton.primary:hover{background:var(--erlen-vidrio-reflejo-acento),color-mix(in srgb,var(--erlen-verde) 88%,var(--erlen-tinta))}\nbutton:disabled,.erlen-boton[aria-disabled=\"true\"]{opacity:.55;cursor:not-allowed}\nbutton.compact,.erlen-boton.compact{min-height:36px;padding:var(--erlen-esp-1) var(--erlen-esp-3);font-size:var(--erlen-texto-sm)}\ninput,select,textarea{min-height:var(--erlen-alto-control);padding:var(--erlen-esp-2) var(--erlen-esp-3);border:1px solid var(--erlen-linea-fuerte);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie);color:var(--erlen-tinta)}\ninput[type=\"checkbox\"],input[type=\"radio\"],input[type=\"range\"],input[type=\"color\"],input[type=\"file\"]{min-height:0;padding:0;border:0;background:none;accent-color:var(--erlen-verde)}\ninput::placeholder,textarea::placeholder{color:var(--erlen-tinta-suave);opacity:1}\ninput[data-error=\"true\"],.erlen-campo-error{border-color:var(--erlen-peligro);background:var(--erlen-peligro-suave)}\ntextarea{line-height:1.6;resize:vertical}\nlabel,small,.erlen-nota{font-size:var(--erlen-texto-sm)}\n/* Estado y avisos: en aria-live, sin animación. */\n#status,.erlen-status{min-height:26px;margin:var(--erlen-esp-2) 0 var(--erlen-esp-4);font-size:var(--erlen-texto-sm);color:var(--erlen-tinta-suave)}\n/* En el hueco «estado» de la cabecera del marco los márgenes verticales sobran: el hueco ya\n   centra y sus márgenes inflaban la fila (67 px en lugar de 61 en notes, lens y learn). */\n.erlen-marco-estado #status,.erlen-marco-estado .erlen-status{margin:0}\n#status[data-error=\"true\"],.erlen-status.error,.erlen-error{color:var(--erlen-peligro);font-weight:700}\n.erlen-aviso{padding:var(--erlen-esp-3) var(--erlen-esp-4);border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-pequeno);background:var(--erlen-ambar-suave);color:var(--erlen-tinta)}\n/* Paneles: cristal fuerte sin desenfoque (están en el flujo, no flotan); .destacado con más relieve. */\n.erlen-panel{background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border:1px solid var(--erlen-vidrio-contorno);border-radius:var(--erlen-radio-tarjeta);padding:var(--erlen-esp-4);box-shadow:var(--erlen-vidrio-relieve)}\n.erlen-panel.destacado{border-radius:var(--erlen-radio-panel);box-shadow:var(--erlen-vidrio-relieve),var(--erlen-sombra-panel)}\n/* Cristal flotante (menús, paletas, barras y paneles que se superponen al contenido): una sola capa de desenfoque por pantalla visible.\n   Nunca sobre el área de trabajo que se desplaza ni como fondo de un editor, hoja o lienzo. */\n.erlen-vidrio{background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border:1px solid var(--erlen-vidrio-contorno);border-radius:var(--erlen-radio-tarjeta);box-shadow:var(--erlen-vidrio-relieve),var(--erlen-sombra-menu);color:var(--erlen-tinta);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro)}\n/* Diálogo de cristal: <dialog class=\"erlen-dialogo\">; el fondo se atenúa sin desenfocar (un desenfoque a pantalla completa cuesta). */\ndialog.erlen-dialogo{max-width:min(560px,calc(100vw - 32px));padding:var(--erlen-esp-5);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border:1px solid var(--erlen-vidrio-contorno);border-radius:var(--erlen-radio-panel);box-shadow:var(--erlen-vidrio-relieve),var(--erlen-sombra-panel);color:var(--erlen-tinta);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro)}\ndialog.erlen-dialogo::backdrop{background:color-mix(in srgb,var(--erlen-tinta) 22%,transparent)}\n/* Cápsula: navegación, filtros y conmutadores; la activa (aria-pressed, aria-current o aria-selected) se eleva como una lente. */\n.erlen-capsula{display:inline-flex;align-items:center;justify-content:center;gap:var(--erlen-esp-2);min-height:36px;padding:0 var(--erlen-esp-4);border:1px solid transparent;border-radius:var(--erlen-radio-capsula);background:transparent;color:var(--erlen-tinta-suave);font:600 var(--erlen-texto-sm)/1.2 var(--erlen-font-ui);text-decoration:none;cursor:pointer}\n.erlen-capsula:hover{background:var(--erlen-vidrio-tinte);color:var(--erlen-tinta);text-decoration:none}\n.erlen-capsula:is([aria-pressed=\"true\"],[aria-current],[aria-selected=\"true\"]){background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border-color:var(--erlen-vidrio-contorno);box-shadow:var(--erlen-vidrio-relieve);color:var(--erlen-verde)}\n/* Atmósfera detrás del cromo (pantallas de bienvenida, vacíos, ajustes); nunca detrás del documento del usuario. */\n.erlen-atmosfera{background:var(--erlen-atmosfera)}\n/* Los estilos elegidos también se reconocen en las acciones principales. */\n:root[data-erlen-estilo] :is(button.primary,.erlen-boton.primary){box-shadow:var(--erlen-control-relieve)}\n/* Apariencia de las acciones del marco: relieve a escala de control, sin cambiar\n   tamaños, prioridad de la acción principal ni estados de selección o peligro. */\n:root[data-erlen-estilo] :is(.erlen-marco-acciones,.erlen-marco-utilidades) :is(button,.erlen-boton):not(.primary,.danger,.peligro,[aria-pressed=\"true\"],[aria-selected=\"true\"]){background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border-color:var(--erlen-vidrio-contorno);box-shadow:var(--erlen-control-relieve)}\n:root[data-erlen-estilo] :is(.erlen-marco-acciones,.erlen-marco-utilidades) :is(button,.erlen-boton):not(.primary,.danger,.peligro,[aria-pressed=\"true\"],[aria-selected=\"true\"]):hover:not(:disabled){background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-tinte)}\n/* Los respaldos siguen ganando también para el relieve de los controles. */\n@media(prefers-contrast:more),(forced-colors:active),print{:root:root[data-erlen-estilo]{--erlen-control-relieve:var(--erlen-vidrio-relieve)}}\n/* Pie de app: enlaces al portal, código y licencia. */\n.erlen-app-footer{padding:var(--erlen-esp-5) 4%;border-top:1px solid var(--erlen-linea);font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.visualmente-oculto{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n/* Entrada de archivo nativa con aspecto de botón secundario: el input queda oculto a la vista (no a la accesibilidad), va ANTES de su label y el anillo de foco se pinta en el label. */\n.erlen-entrada-archivo{display:flex;position:relative}\n.erlen-entrada-archivo>input[type=\"file\"]{position:absolute;width:1px;height:1px;min-width:0;max-width:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;opacity:0;outline:0}\n.erlen-entrada-archivo>label{display:inline-flex;align-items:center;justify-content:center;gap:var(--erlen-esp-2);min-height:var(--erlen-alto-control);padding:var(--erlen-esp-2) var(--erlen-esp-4);border:1px solid var(--erlen-verde);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie);color:var(--erlen-verde);font-weight:700;line-height:1.2;cursor:pointer;text-align:center}\n.erlen-entrada-archivo>label:hover{background:var(--erlen-verde-suave)}\n.erlen-entrada-archivo>input[type=\"file\"]:focus-visible+label{outline:3px solid var(--erlen-foco);outline-offset:3px;border-radius:4px}\n.erlen-entrada-archivo>input[type=\"file\"]:disabled+label{opacity:.55;cursor:not-allowed}\n@media(max-width:760px){.erlen-app-header{padding:var(--erlen-esp-3) var(--erlen-esp-4)}.erlen-app-footer{padding:var(--erlen-esp-5) var(--erlen-esp-4)}}\n@media print{.erlen-app-header,.erlen-app-footer,erlen-suite-nav{display:none}}\n\n/* Iconos del cromo: conserva el significado, las dimensiones y los estados. */\n:root[data-erlen-estilo] :is(.erlen-app-header,.erlen-cinta,.erlen-cinta-menu,.erlen-inicio-cabecera,.erlen-inicio-lateral,.erlen-marco-navegacion,.erlen-marco-detalles) :is(.erlen-icono,svg[viewBox=\"0 0 24 24\"]){stroke-width:var(--erlen-icono-grosor);stroke-linecap:var(--erlen-icono-terminal);stroke-linejoin:var(--erlen-icono-union);stroke-dasharray:var(--erlen-icono-guion);shape-rendering:var(--erlen-icono-render);filter:var(--erlen-icono-filtro);background:var(--erlen-icono-placa);border-radius:var(--erlen-icono-radio);box-shadow:var(--erlen-icono-relieve)}\n:root[data-erlen-estilo] :is(.primary,.primario,.erlen-cinta-archivo,.erlen-cinta-agregar,[aria-pressed=\"true\"],[aria-selected=\"true\"]) :is(.erlen-icono,svg[viewBox=\"0 0 24 24\"]){background:none;box-shadow:none;filter:none}\n\n:root[data-erlen-estilo] :is(.erlen-app-header,.erlen-cinta,.erlen-cinta-menu,.erlen-inicio-cabecera,.erlen-inicio-lateral,.erlen-marco-navegacion,.erlen-marco-detalles) :is(.erlen-icono,svg[viewBox=\"0 0 24 24\"]) :is(path,line,polyline,polygon,circle,rect,ellipse){stroke-width:inherit;stroke-linecap:inherit;stroke-linejoin:inherit;stroke-dasharray:inherit}\n",
  "src/diseno/cinta.css": "/* Erlen Suite · paquete de diseño 2.0.0 · cinta de herramientas (diseno/suite-cinta.mjs; docs/COHERENCIA-APPS.md §5).\n   Solo tokens --erlen-*. Autónoma: no depende de base.css (Slides no lo carga), y neutraliza las reglas de\n   elemento de base.css sobre <button> para que la cinta se vea igual en todas las apps.\n   Cristal (2.0.0): la cinta es una lámina de cristal fuerte con brillo especular; la pestaña activa es una lente en cápsula\n   y «Archivo» una cápsula del acento. Un solo desenfoque (la cinta) y otro en el menú abierto. Licencia: licencias/MIT.txt */\n.erlen-cinta{position:relative;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border-bottom:1px solid var(--erlen-vidrio-contorno);box-shadow:inset 0 1px 0 var(--erlen-vidrio-borde),0 6px 18px -12px var(--erlen-vidrio-contorno);font-family:var(--erlen-font-ui);color:var(--erlen-tinta);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro)}\n.erlen-cinta button,.erlen-cinta-menu button{min-height:0;margin:0;padding:0;border:1px solid transparent;border-radius:var(--erlen-radio-campo);background:transparent;color:inherit;font:inherit;line-height:1.2;cursor:pointer;text-decoration:none;box-shadow:none;transform:none}\n.erlen-cinta button:disabled,.erlen-cinta-menu button:disabled{opacity:.45;cursor:default}\n.erlen-cinta :focus-visible,.erlen-cinta-menu :focus-visible{outline:3px solid var(--erlen-foco);outline-offset:1px}\n/* Resalte de Mey: la ayuda señala durante unos segundos el botón del comando encontrado.\n   Sin animación a propósito: también cumple su función con prefers-reduced-motion. */\n.erlen-cinta [data-erlen-mey-resalta]{outline:3px solid var(--erlen-foco);outline-offset:2px}\n.erlen-cinta-oculto{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}\n\n/* Pestañas: una fila de cápsulas; la activa se eleva como una lente de cristal con el texto en el acento, «Archivo» a la izquierda. */\n.erlen-cinta-pestanas{display:flex;align-items:center;gap:var(--erlen-esp-1);padding:var(--erlen-esp-1) var(--erlen-esp-3);border-bottom:1px solid var(--erlen-vidrio-contorno);overflow-x:auto;scrollbar-width:none}\n.erlen-cinta-pestanas::-webkit-scrollbar{display:none}\n.erlen-cinta-lista{display:flex;align-items:center;gap:var(--erlen-esp-1);flex:none}\n.erlen-cinta .erlen-cinta-pestana{flex:none;min-height:32px;padding:0 var(--erlen-esp-4);border:1px solid transparent;border-radius:var(--erlen-radio-capsula);font:600 var(--erlen-texto-sm)/1 var(--erlen-font-ui);color:var(--erlen-tinta-suave);white-space:nowrap;transition:background-color var(--erlen-dur-micro) var(--erlen-ease),color var(--erlen-dur-micro) var(--erlen-ease),box-shadow var(--erlen-dur-micro) var(--erlen-ease)}\n.erlen-cinta .erlen-cinta-pestana:hover{color:var(--erlen-tinta);background:var(--erlen-vidrio-tinte)}\n.erlen-cinta .erlen-cinta-pestana[aria-selected=true]{color:var(--erlen-verde);background:var(--erlen-vidrio-reflejo),var(--erlen-superficie);border-color:var(--erlen-vidrio-contorno);box-shadow:var(--erlen-vidrio-relieve)}\n/* Contextual (aparece con la selección): tinte del acento y borde discontinuo para distinguirla sin depender solo del color del texto. */\n.erlen-cinta .erlen-cinta-pestana[data-contextual]{background:var(--erlen-verde-suave);color:var(--erlen-verde);border:1px dashed var(--erlen-verde)}\n.erlen-cinta .erlen-cinta-pestana[data-contextual][aria-selected=true]{border-style:solid}\n.erlen-cinta .erlen-cinta-archivo{flex:none;align-self:center;min-height:32px;margin-right:var(--erlen-esp-2);padding:0 var(--erlen-esp-4);border-radius:var(--erlen-radio-capsula);background:var(--erlen-vidrio-reflejo-acento),var(--erlen-verde);color:var(--erlen-verde-contraste);font:700 var(--erlen-texto-sm)/1 var(--erlen-font-ui);box-shadow:inset 0 1px 0 var(--erlen-vidrio-borde),0 2px 8px var(--erlen-vidrio-contorno)}\n.erlen-cinta .erlen-cinta-archivo:hover{background:var(--erlen-vidrio-reflejo-acento),color-mix(in srgb,var(--erlen-verde) 86%,var(--erlen-tinta))}\n.erlen-cinta-hueco{flex:1}\n.erlen-cinta .erlen-cinta-plegar{position:relative;flex:none;align-self:center;width:32px;min-height:28px;border-radius:var(--erlen-radio-capsula);color:var(--erlen-tinta-suave);font-size:var(--erlen-texto-sm)}\n.erlen-cinta .erlen-cinta-plegar:hover{background:var(--erlen-vidrio-tinte);color:var(--erlen-verde)}\n\n/* Panel: grupos en fila con el rótulo debajo; desplazamiento horizontal si no caben (nunca desborda la página). */\n.erlen-cinta-panel[hidden]{display:none}\n.erlen-cinta-fila{display:flex;align-items:stretch;padding:var(--erlen-esp-2) var(--erlen-esp-2) var(--erlen-esp-1);overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}\n.erlen-cinta-grupo{flex:none;display:flex;flex-direction:column;align-items:center;gap:var(--erlen-esp-1);padding:0 var(--erlen-esp-2);border-right:1px solid var(--erlen-vidrio-contorno)}\n.erlen-cinta-grupo:last-child{border-right:0}\n.erlen-cinta-grupo[hidden],.erlen-cinta-columna[hidden]{display:none}\n.erlen-cinta-controles{flex:1;display:flex;align-items:flex-start;gap:var(--erlen-esp-1)}\n.erlen-cinta-columna{display:flex;flex-direction:column;gap:2px}\n.erlen-cinta-rotulo{font:500 var(--erlen-texto-xs)/1.2 var(--erlen-font-ui);color:var(--erlen-tinta-suave);white-space:nowrap}\n\n/* Botones: grande (icono arriba, texto debajo) y pequeño (icono y texto en línea, en columnas de tres). */\n.erlen-cinta .erlen-cinta-boton{display:inline-flex;align-items:center;gap:var(--erlen-esp-2);border-radius:var(--erlen-radio-campo);color:var(--erlen-tinta);transition:background-color var(--erlen-dur-micro) var(--erlen-ease),border-color var(--erlen-dur-micro) var(--erlen-ease),box-shadow var(--erlen-dur-micro) var(--erlen-ease)}\n.erlen-cinta .erlen-cinta-boton:hover:not(:disabled){background:var(--erlen-vidrio-reflejo),var(--erlen-superficie);border-color:var(--erlen-vidrio-contorno);box-shadow:var(--erlen-vidrio-relieve)}\n.erlen-cinta .erlen-cinta-boton:active:not(:disabled){background:var(--erlen-verde-suave);box-shadow:none}\n.erlen-cinta .erlen-cinta-boton[hidden]{display:none}\n.erlen-cinta .erlen-cinta-boton[data-tipo=grande]{flex-direction:column;justify-content:flex-start;gap:var(--erlen-esp-1);min-width:60px;max-width:88px;min-height:72px;padding:var(--erlen-esp-2) var(--erlen-esp-1) var(--erlen-esp-1);text-align:center}\n.erlen-cinta .erlen-cinta-boton[data-tipo=grande] .erlen-cinta-icono{width:28px;height:28px;font-size:22px;color:var(--erlen-verde)}\n.erlen-cinta .erlen-cinta-boton[data-tipo=grande] .erlen-cinta-texto{font-size:var(--erlen-texto-xs);line-height:1.2;white-space:normal}\n.erlen-cinta .erlen-cinta-boton:not([data-tipo=grande]){min-height:28px;padding:0 var(--erlen-esp-2);font-size:var(--erlen-texto-xs);white-space:nowrap;justify-content:flex-start}\n.erlen-cinta .erlen-cinta-boton:not([data-tipo=grande]) .erlen-cinta-icono{width:18px;height:18px;font-size:15px;color:var(--erlen-tinta-suave)}\n.erlen-cinta .erlen-cinta-boton:hover:not(:disabled) .erlen-cinta-icono{color:var(--erlen-verde)}\n.erlen-cinta .erlen-cinta-boton[aria-pressed=true]{background:var(--erlen-verde-suave);border-color:color-mix(in srgb,var(--erlen-verde) 35%,transparent);color:var(--erlen-verde);box-shadow:inset 0 1px 2px var(--erlen-vidrio-contorno)}\n.erlen-cinta .erlen-cinta-boton[aria-pressed=true] .erlen-cinta-icono{color:var(--erlen-verde)}\n.erlen-cinta-icono{display:inline-grid;place-items:center;flex:none;line-height:1}\n.erlen-cinta-icono svg{width:100%;height:100%}\n.erlen-cinta-flecha{font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-cinta .erlen-cinta-boton[data-tipo=grande] .erlen-cinta-flecha{line-height:1}\n\n/* Menú desplegable de un botón de la cinta (se monta en <body>): cristal fuerte con desenfoque, radio concéntrico con sus opciones. */\n.erlen-cinta-menu{position:fixed;z-index:400;min-width:220px;max-width:min(360px,calc(100vw - 16px));max-height:min(70vh,520px);overflow:auto;padding:6px;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border:1px solid var(--erlen-vidrio-contorno);border-radius:var(--erlen-radio-tarjeta);box-shadow:var(--erlen-vidrio-relieve),var(--erlen-sombra-menu);font-family:var(--erlen-font-ui);color:var(--erlen-tinta);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro)}\n.erlen-cinta-menu .erlen-cinta-opcion{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:var(--erlen-esp-2);width:100%;min-height:36px;padding:var(--erlen-esp-1) var(--erlen-esp-2);border-radius:var(--erlen-radio-campo);text-align:left;font-size:var(--erlen-texto-sm)}\n.erlen-cinta-menu .erlen-cinta-opcion:hover:not(:disabled),.erlen-cinta-menu .erlen-cinta-opcion:focus-visible{background:var(--erlen-verde-suave)}\n.erlen-cinta-menu .erlen-cinta-opcion[aria-checked=true]{color:var(--erlen-verde);font-weight:700}\n.erlen-cinta-menu .erlen-cinta-opcion[aria-checked=true] .erlen-cinta-icono:empty::before{content:\"✓\"}\n.erlen-cinta-menu .erlen-cinta-icono{width:20px;color:var(--erlen-verde)}\n.erlen-cinta-opcion-texto{display:flex;flex-direction:column;min-width:0}\n.erlen-cinta-opcion-texto small{font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave);font-weight:400}\n.erlen-cinta-menu kbd{font:var(--erlen-texto-xs) var(--erlen-font-mono);color:var(--erlen-tinta-suave)}\n.erlen-cinta-separador{height:1px;margin:var(--erlen-esp-1) 0;background:var(--erlen-linea)}\n\n/* Pantallas estrechas y táctiles: botones grandes más compactos y zonas de toque de 44 px. */\n@media (max-width:920px){\n .erlen-cinta .erlen-cinta-boton[data-tipo=grande]{min-height:64px;min-width:56px}\n .erlen-cinta-fila{padding-inline:var(--erlen-esp-1)}\n}\n@media (max-width:920px),(any-pointer:coarse){\n /* Objetivo táctil completo: 44×44 también en anchura. Las variantes con :not y [data-tipo]\n    replican la especificidad de las reglas compactas de arriba para poder superarlas. */\n .erlen-cinta .erlen-cinta-boton{min-height:var(--erlen-alto-control);min-width:var(--erlen-alto-control)}\n .erlen-cinta .erlen-cinta-boton:not([data-tipo=grande]){min-height:var(--erlen-alto-control);min-width:var(--erlen-alto-control)}\n .erlen-cinta .erlen-cinta-boton[data-tipo=grande]{min-height:var(--erlen-alto-control);min-width:var(--erlen-alto-control)}\n .erlen-cinta .erlen-cinta-pestana,.erlen-cinta .erlen-cinta-plegar,.erlen-cinta .erlen-cinta-archivo{min-height:var(--erlen-alto-control);min-width:var(--erlen-alto-control)}\n .erlen-cinta-columna{flex-direction:row}\n .erlen-cinta-menu .erlen-cinta-opcion{min-height:var(--erlen-alto-control)}\n}\n@media (prefers-reduced-motion:reduce){.erlen-cinta .erlen-cinta-boton,.erlen-cinta .erlen-cinta-pestana{transition:none}}\n/* Colores forzados: la lente de la pestaña activa pierde su sombra; se marca con el borde del sistema. */\n@media (forced-colors:active){.erlen-cinta .erlen-cinta-pestana[aria-selected=true]{border-color:Highlight}.erlen-cinta .erlen-cinta-archivo{border:1px solid ButtonText}}\n@media print{.erlen-cinta,.erlen-cinta-menu{display:none}}\n",
  "src/diseno/diseno.json": "{\n \"version\": \"2.11.8\",\n \"files\": {\n  \"00-diseno.css\": \"90aad6a0db26297be88822d63cb4938082095246de513cab726e454cd1d91187\",\n  \"VERSION\": \"db35f13de05adf778c53c0a090dfdccce2347806f90773bfaad0f08d7b83d9f5\",\n  \"aplicaciones/analyze.svg\": \"f62ffce18b15b1126a89cb370be22c2d6dc7eceb1c5ee951409963c3bfede274\",\n  \"aplicaciones/data.svg\": \"b2c1532f99157f61e12142a12c9c2d584dd2872e884d9d1cea6926846e558655\",\n  \"aplicaciones/dft.svg\": \"4bee64f46ac3a534ba91401948a4cd5ade56de8856d2898ccd99a469ce973508\",\n  \"aplicaciones/documents.svg\": \"c7a704ec3bf08f13fa6366a9914451e761c9565465ccab1c6e4d0a85acd2f5f5\",\n  \"aplicaciones/doe.svg\": \"d443ca629630f7bc9833db5eb37d9d09df05f690de246e6bd7e82219f9fabc4b\",\n  \"aplicaciones/figures.svg\": \"74835b684198feb8952b2d7eba9fdab84115b23f62e31c2a5df5f6141a33452b\",\n  \"aplicaciones/ftir.svg\": \"0664f85cd603111ac85f7bf52407799d94fa6956f040ae8c1ae1d38ecead4248\",\n  \"aplicaciones/learn.svg\": \"708fab8e4fb76aaecd1c1bf0683121736558d06887e25ab7535cf9685751d8ee\",\n  \"aplicaciones/lens.svg\": \"315cd6a267689667f35b51ce5a4d4776969e3c66c80744750ecdbb95bb3dbc57\",\n  \"aplicaciones/methods.svg\": \"cf8706e0c4ed25aaa1741d6a82cde2a48e67b5ecd4ebf810f04567db77e0db6c\",\n  \"aplicaciones/notes.svg\": \"505a027ce923f288f06a7d338707d0d448f65adbb6fb5216070f50486ada071a\",\n  \"aplicaciones/novelty.svg\": \"72c9eb6f7c64c80359cd979d3f3508531cc99fc6e8a1f3a1f74d17ff56975fd9\",\n  \"aplicaciones/pentagrama.svg\": \"2f4a8ecb8237794d7b4917ba8fe16a9d42c5909dc64ff032587e790dc8533fc1\",\n  \"aplicaciones/projects.svg\": \"305f1ad45249c06d8e5cdf2b91c5154fc4cd1296c828a48e6efa01337b89afb7\",\n  \"aplicaciones/release.svg\": \"709fde92177bdbde94d85309c15bc1b54594389c41de824c286cabf8561b837c\",\n  \"aplicaciones/research.svg\": \"606754bca8f93a75d274bf2da2eb16ac1e8a2ca221325fb431065eeb129c723a\",\n  \"aplicaciones/rmn.svg\": \"765b7e487039c0ac872bf7be9920a37d9839f1c07a3a059fbd3105b260f0f303\",\n  \"aplicaciones/slides.svg\": \"d2b19abc904ad2bc0006c608cde6a05b94ee05c9980f053ca0b30ac29e1692db\",\n  \"aplicaciones/spreadsheets.svg\": \"dee7be7c8cf50b6b14fd8053ff3caf7b4a287031c89e7f243a4def0d132f160b\",\n  \"aplicaciones/xrd.svg\": \"ae629e9d383cbee19a4b5da393e56d3ae1e15d8978848d3ef2b3989a61046e5d\",\n  \"base.css\": \"eb82d187f82324aa585a6a9d2b416f7602d21014ea1bb398508ebaeb50c70fee\",\n  \"cinta.css\": \"7635c929d7ecfac9248d2ba5e20421513c048b3e822f08d3f574e2109f2c7c0c\",\n  \"fuentes.css\": \"5382f1d211a557d5d825e1a4fdea56f1957c32b9a682b8f58dd67d11c7c3b529\",\n  \"fuentes/cmu-concrete-400-italic.87b60891.woff2\": \"87b60891a08d17814e0320724fbece9f9bca05ebf50a4dd53b312e5ca96bae02\",\n  \"fuentes/cmu-concrete-400-normal.6e28f64d.woff2\": \"6e28f64dd35e439c6a9cd58debf3047bdc6a7d5fe4607a90685c0a2aeb670621\",\n  \"fuentes/cmu-concrete-700-normal.d6d7ddfb.woff2\": \"d6d7ddfbb0ac7c517b6f07bdff5d3036245971fa4f76b47a7b78b45c799fc814\",\n  \"fuentes/cmu-typewriter-400-normal.22349150.woff2\": \"223491505aaa335434fc4f523a1c9ae7cfb1c647d0a4430cb8f25918773007ca\",\n  \"fuentes/lm-roman-400-normal.90aa86d3.woff2\": \"90aa86d3f2dad2742fe2d740a4f551b600903284dc29a5982b5d966a3c4cef8f\",\n  \"fuentes/lm-roman-700-normal.346a6393.woff2\": \"346a6393ae6eb2216ff74bc5f0db274511b126c1f2614e45e7ea5e7feee6ce3e\",\n  \"fuentes/lm-sans-400-normal.4876dc5c.woff2\": \"4876dc5cf7fe2502dd58c1cf8f9daac4a36ba42cfa5144b0b3b61ea48b297142\",\n  \"fuentes/lm-sans-700-normal.8868f8c7.woff2\": \"8868f8c7f2688b988677797e426275d3fabe5c9dcb40c6d1fd67f4c04e5b8315\",\n  \"iconos.mjs\": \"2f2546e6aea23ae2e3d8fa029d3c05ab1e765b57624ced640abd297b75057d67\",\n  \"inicio.css\": \"2e7e0f4f8187da04206f6a817c161e835d86bb40233f2ff2f6cea266c3ea50a6\",\n  \"licencias/GUST-FL.txt\": \"5eb61bb836bb1845ef668717cb15b382e997748ce2629e4388cc5e4c3fa4e433\",\n  \"licencias/MIT.txt\": \"c6efd8524aedfbf769649e36a9bd6a0e95ce353bbd7a0a5eeef31adfdfb5cdad\",\n  \"licencias/OFL.txt\": \"73273dffdefe2e5f1e138084d4a4b65b1c50df2ab0179f78484f31beefe30d84\",\n  \"marco.css\": \"396f20c4608aa473f5c3a69a4c44ea720ca77383b2f190a98259bf963c39ce23\",\n  \"mey-recorrido.css\": \"2db355f0ab4109b7434b85001a76882db8787b88d29597c9e5bd09f9c1aaf8ab\",\n  \"mey.js\": \"4e6038e9deaed0ebf2e93b98bc7fb00c3ce2446d76870c4bfd6953979f1e9679\",\n  \"mey.mjs\": \"6ea6a579787b38dce0d106f886f688ef5828386857d858b7bb8d3d25919176f5\",\n  \"mey/aviso.svg\": \"a4c64d53eb07bb47d9ae0617ff69a85d7bfbc69bdebe3498e39967590161d79e\",\n  \"mey/dormido.svg\": \"8b3345defb261b19082bb771005119c299844f2b1655ab548139fbdf8c931889\",\n  \"mey/exito.svg\": \"35313d3b14ccfd5360081b3c9c3c9c9dfc89e02d39eeb90a890bd82cb5a7e640\",\n  \"mey/graficando.svg\": \"eef8f53f5fca0a659a201d2beb33e91985afcb71eb1164a57e7557236e6f6ee1\",\n  \"mey/hola.svg\": \"e89b728ff8f4375e92ebed82856b75a67843e64eb6ed05c2b2ff7eae4d3cf142\",\n  \"mey/leyendo.svg\": \"b8542ac50b63a47b352ea87535c8fe5e8dcbc06c0131ca3e16feddc1a882e5ab\",\n  \"mey/midiendo.svg\": \"2b66303c2a2a5bb599c518df2ecdd336703806241390bf24b5852c50f7c838a9\",\n  \"mey/pensando.svg\": \"07bdc766d458673d910bde1beccd36d5ec79bf449c4a36c365a376e7636a1a82\",\n  \"motion.css\": \"3a13baa361cecf312dd7d6dbe3a8050a470d2d0a507cca44489d3be635fc3b61\",\n  \"productos.mjs\": \"f349805cf42818633ce116eab064e97a394c5a7bff795176f648947ee2edf21b\",\n  \"suite-cinta.js\": \"e1d384135bac91a8ec7ea0ad92a9642ba5b005a5647d95cd7af91789716a8d1d\",\n  \"suite-cinta.mjs\": \"2b9bbfe0ea0a1f20d778823354aff6c7576ca543fd8e881d01312c032bf73b88\",\n  \"suite-color.js\": \"5c24e0c1b4e69082f16835600697f9e7cb82dc7af1a7e4f8b3b760de1b7b854d\",\n  \"suite-color.mjs\": \"425d31b9e0b0e8a1da69d96a92394356de248430b0a35911dfb13bed88541580\",\n  \"suite-iconos.js\": \"d931f92bc0f4527872d2ed761fd7923d22946ac0ca4fcd454d41eb1759853049\",\n  \"suite-inicio.js\": \"e72dda91fcdffc0a4849b7399157aa7889ebaa6e34b3c3000c1d0ce81fbe0cf6\",\n  \"suite-inicio.mjs\": \"d6694bab189016f8aed4fd22882511569723886847f5ff5e67088df0eea40662\",\n  \"suite-marco.js\": \"20705f4976cdcd3c51e264133a4affabffea3bba1de5819c6b182d75ee68e6a8\",\n  \"suite-marco.mjs\": \"79b0d1298dbad74969eae1f2d72ef98e9053e1bf20132d6c4d54b777b894e65e\",\n  \"suite-mey-ayuda.mjs\": \"969c5309cf22b20b6d9c63a63c2b156bf082acda0fbf659f9b9f96352a918821\",\n  \"suite-nav.mjs\": \"626b8592e18fa20c28c4fbc8413e2630f3286afa042da660ac68fc3c0f4c851f\",\n  \"suite-navigation.js\": \"0126537093baf34a385e369bd1dd47f8cf3025693eccffb496e807efb2dfa316\",\n  \"tokens.css\": \"e9c325b12f7c90ff605429cab7bced887fc26795315eb89a3b709e26d3b05384\"\n },\n \"modos\": [\n  \"iife\",\n  \"inline\"\n ]\n}\n",
  "src/diseno/fuentes.css": "/* Erlen Suite · paquete de diseño · fuentes autoalojadas (copias subseteadas de web/recursos/fuentes/, ver manifest.json del portal).\n   Rutas relativas a este archivo: la app se sirve sola. Licencias: licencias/GUST-FL.txt (Latin Modern) y licencias/OFL.txt (CMU). */\n@font-face{font-family:\"LM Roman\";font-weight:400;font-style:normal;font-display:swap;src:url(fuentes/lm-roman-400-normal.90aa86d3.woff2) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n@font-face{font-family:\"LM Roman\";font-weight:700;font-style:normal;font-display:swap;src:url(fuentes/lm-roman-700-normal.346a6393.woff2) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n@font-face{font-family:\"LM Sans\";font-weight:400;font-style:normal;font-display:swap;src:url(fuentes/lm-sans-400-normal.4876dc5c.woff2) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n@font-face{font-family:\"LM Sans\";font-weight:700;font-style:normal;font-display:swap;src:url(fuentes/lm-sans-700-normal.8868f8c7.woff2) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n@font-face{font-family:\"CMU Concrete\";font-weight:400;font-style:normal;font-display:swap;src:url(fuentes/cmu-concrete-400-normal.6e28f64d.woff2) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n@font-face{font-family:\"CMU Concrete\";font-weight:400;font-style:italic;font-display:swap;src:url(fuentes/cmu-concrete-400-italic.87b60891.woff2) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n@font-face{font-family:\"CMU Concrete\";font-weight:700;font-style:normal;font-display:swap;src:url(fuentes/cmu-concrete-700-normal.d6d7ddfb.woff2) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n@font-face{font-family:\"CMU Typewriter\";font-weight:400;font-style:normal;font-display:swap;src:url(fuentes/cmu-typewriter-400-normal.22349150.woff2) format(\"woff2\");unicode-range:U+20-7E,U+A0-FF,U+100-17F,U+2010-2027,U+2030-203A,U+2044,U+20AC,U+2122,U+2190-2193,U+2202,U+2206,U+220F-2212,U+221A-221E,U+2248,U+2260-2265,U+25CF,U+3B1-3C9,U+391-3A9}\n",
  "src/diseno/iconos.mjs": "// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n/* Iconos de herramientas de Erlen Suite (docs/COHERENCIA-APPS.md §7 del portal).\n   Familia propia, dibujada a mano para la cinta y los menús de las apps: rejilla de\n   24×24 con margen de 3–3,5, trazo 1,6 redondeado, esquinas de 1,5–2 en los\n   contenedores y detalles macizos con círculos de r=1,2 en currentColor. Un\n   significado, un icono. Sin dependencias; no toca el DOM.\n\n   iconos[id]        contenido interno del <svg> (sin envoltorio), una línea por icono.\n   nombresIconos     lista de ids en el orden del catálogo (docs/iconos.html).\n   icono(id,{titulo}) <svg> completo con la gramática fija: viewBox 0 0 24 24,\n                     fill=\"none\", stroke=\"currentColor\", stroke-width=\"1.6\", extremos\n                     y uniones redondeados, class=\"erlen-icono\", data-icono,\n                     aria-hidden=\"true\" y focusable=\"false\". Con titulo añade <title>\n                     (tooltip); el icono sigue oculto a los lectores: el nombre\n                     accesible lo lleva siempre el control que lo contiene.\n   Uso en la cinta: {tipo:'grande', etiqueta:'Guardar', icono:icono('guardar'), accion}. */\nexport const iconos={\n // Archivo\n inicio:'<path d=\"M4 10.5 12 4l8 6.5\"/><path d=\"M6 9v9.5A1.5 1.5 0 0 0 7.5 20h9a1.5 1.5 0 0 0 1.5-1.5V9\"/><path d=\"M10 20v-5h4v5\"/>',\n archivo:'<path d=\"M13.5 3.5H7A1.5 1.5 0 0 0 5.5 5v14A1.5 1.5 0 0 0 7 20.5h10a1.5 1.5 0 0 0 1.5-1.5V8.5z\"/><path d=\"M13.5 3.5v5h5\"/><path d=\"M8.8 13h6.4M8.8 16.5h4.4\"/>',\n nuevo:'<path d=\"M13.5 3.5H7A1.5 1.5 0 0 0 5.5 5v14A1.5 1.5 0 0 0 7 20.5h10a1.5 1.5 0 0 0 1.5-1.5V8.5z\"/><path d=\"M13.5 3.5v5h5\"/><path d=\"M12 11.5v6M9 14.5h6\"/>',\n abrir:'<path d=\"M3.5 17.5V6A1.5 1.5 0 0 1 5 4.5h3.8l2 2.3H17a1.5 1.5 0 0 1 1.5 1.5v1.9\"/><path d=\"M3.5 17.5l2.3-6.3a1.5 1.5 0 0 1 1.4-1h12.4a1 1 0 0 1 .95 1.3l-2 6.3a1.5 1.5 0 0 1-1.43 1.1H4.5a1 1 0 0 1-1-1.4z\"/>',\n guardar:'<path d=\"M4 5.5A1.5 1.5 0 0 1 5.5 4h10.2L20 8.3v10.2a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 18.5z\"/><path d=\"M8 4v4h7V4\"/><path d=\"M7.5 20v-5.5a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1V20\"/>',\n 'guardar-como':'<path d=\"M12 20H5.5A1.5 1.5 0 0 1 4 18.5v-13A1.5 1.5 0 0 1 5.5 4h10.2L20 8.3v2\"/><path d=\"M8 4v4h7V4\"/><path d=\"M7.5 20v-5.5a1 1 0 0 1 1-1H12\"/><path d=\"m14.5 20.5.5-2.5 4-4a1.4 1.4 0 0 1 2 2l-4 4z\"/>',\n importar:'<path d=\"M13.5 4.5h4A1.5 1.5 0 0 1 19 6v12a1.5 1.5 0 0 1-1.5 1.5h-4\"/><path d=\"M4 12h10M10.5 8.5 14 12l-3.5 3.5\"/>',\n exportar:'<path d=\"M10.5 4.5h-4A1.5 1.5 0 0 0 5 6v12a1.5 1.5 0 0 0 1.5 1.5h4\"/><path d=\"M10 12h10M16.5 8.5 20 12l-3.5 3.5\"/>',\n descargar:'<path d=\"M12 3.5v11M7.5 10.5 12 15l4.5-4.5\"/><path d=\"M4.5 15.5v3a1.5 1.5 0 0 0 1.5 1.5h12a1.5 1.5 0 0 0 1.5-1.5v-3\"/>',\n cargar:'<path d=\"M12 15V4M7.5 8 12 3.5 16.5 8\"/><path d=\"M4.5 15.5v3a1.5 1.5 0 0 0 1.5 1.5h12a1.5 1.5 0 0 0 1.5-1.5v-3\"/>',\n imprimir:'<path d=\"M7 8.5v-5h10v5\"/><path d=\"M7 16.5H5.5A1.5 1.5 0 0 1 4 15v-5a1.5 1.5 0 0 1 1.5-1.5h13A1.5 1.5 0 0 1 20 10v5a1.5 1.5 0 0 1-1.5 1.5H17\"/><path d=\"M7 13.5h10v7H7z\"/><circle cx=\"16.5\" cy=\"11\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/>',\n compartir:'<circle cx=\"17.5\" cy=\"5.5\" r=\"2.5\"/><circle cx=\"6.5\" cy=\"12\" r=\"2.5\"/><circle cx=\"17.5\" cy=\"18.5\" r=\"2.5\"/><path d=\"m8.7 10.7 6.6-3.9M8.7 13.3l6.6 3.9\"/>',\n paquete:'<path d=\"M12 3.5 19.5 7.5v9L12 20.5l-7.5-4v-9z\"/><path d=\"M4.5 7.5 12 11.5l7.5-4M12 11.5v9\"/><path d=\"m8.2 5.5 7.5 4v3.2\"/>',\n informe:'<path d=\"M15.5 5H17a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 17 20H7a1.5 1.5 0 0 1-1.5-1.5v-12A1.5 1.5 0 0 1 7 5h1.5\"/><rect x=\"8.5\" y=\"3.5\" width=\"7\" height=\"3.5\" rx=\"1\"/><path d=\"M9 16.5v-2.5M12 16.5v-5.5M15 16.5v-4\"/>',\n respaldo:'<rect x=\"3.5\" y=\"4\" width=\"17\" height=\"5\" rx=\"1.2\"/><path d=\"M5 9v9.5A1.5 1.5 0 0 0 6.5 20h11a1.5 1.5 0 0 0 1.5-1.5V9\"/><path d=\"M10 13h4\"/>',\n historial:'<path d=\"M4.8 13a7.5 7.5 0 1 0 1.9-6.3L4.5 9\"/><path d=\"M4.5 4.5V9H9\"/><path d=\"M12 8v4.5l3 2\"/>',\n plantilla:'<rect x=\"4\" y=\"3.5\" width=\"16\" height=\"6\" rx=\"1.5\"/><rect x=\"4\" y=\"12.5\" width=\"7\" height=\"8\" rx=\"1.5\"/><rect x=\"14\" y=\"12.5\" width=\"6\" height=\"8\" rx=\"1.5\"/>',\n ejemplo:'<path d=\"M13.5 3.5H7A1.5 1.5 0 0 0 5.5 5v14A1.5 1.5 0 0 0 7 20.5h10a1.5 1.5 0 0 0 1.5-1.5V8.5z\"/><path d=\"M13.5 3.5v5h5\"/><path d=\"M12 10.5c.35 2.3 1.2 3.15 3.5 3.5-2.3.35-3.15 1.2-3.5 3.5-.35-2.3-1.2-3.15-3.5-3.5 2.3-.35 3.15-1.2 3.5-3.5z\"/>',\n biblioteca:'<path d=\"M4.5 4.5h3v15h-3zM9.5 4.5h3v15h-3z\"/><path d=\"m14.3 5.4 2.9-.8 3.9 14.5-2.9.8z\"/>',\n libro:'<path d=\"M12 6.5c-1.8-1.6-4.3-2.3-8-2v13.5c3.7-.3 6.2.4 8 2 1.8-1.6 4.3-2.3 8-2V4.5c-3.7-.3-6.2.4-8 2z\"/><path d=\"M12 6.5v13.5\"/>',\n catalogo:'<rect x=\"3.5\" y=\"9.5\" width=\"17\" height=\"10.5\" rx=\"1.5\"/><path d=\"M5.5 6.5h13M7.5 3.8h9\"/><path d=\"M9.5 14.8h5\"/>',\n cuenta:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><circle cx=\"12\" cy=\"10\" r=\"3\"/><path d=\"M6.6 18.1a6 6 0 0 1 10.8 0\"/>',\n buzon:'<path d=\"M3.5 13.5h5l1.5 2.5h4l1.5-2.5h5\"/><path d=\"M5.7 5.6a1.5 1.5 0 0 1 1.4-1.1h9.8a1.5 1.5 0 0 1 1.4 1.1l2.2 7.9v5a1.5 1.5 0 0 1-1.5 1.5h-14a1.5 1.5 0 0 1-1.5-1.5v-5z\"/>',\n informacion:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><path d=\"M12 11v5.5\"/><circle cx=\"12\" cy=\"7.8\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n ayuda:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><path d=\"M9.5 9.5a2.5 2.5 0 1 1 3.6 2.2c-.7.4-1.1 1-1.1 1.8v.5\"/><circle cx=\"12\" cy=\"16.8\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n cerrar:'<path d=\"M6 6l12 12M18 6 6 18\"/>',\n // Edición\n deshacer:'<path d=\"M8.5 13.5 4 9l4.5-4.5\"/><path d=\"M4 9h10a5.5 5.5 0 0 1 0 11h-3.5\"/>',\n rehacer:'<path d=\"M15.5 13.5 20 9l-4.5-4.5\"/><path d=\"M20 9H10a5.5 5.5 0 0 0 0 11h3.5\"/>',\n cortar:'<circle cx=\"6.5\" cy=\"17\" r=\"2.8\"/><circle cx=\"17.5\" cy=\"17\" r=\"2.8\"/><path d=\"M8.2 14.8 17 3.5M15.8 14.8 7 3.5\"/>',\n copiar:'<rect x=\"8.5\" y=\"8.5\" width=\"11.5\" height=\"11.5\" rx=\"1.8\"/><path d=\"M15.5 8.5v-3A1.5 1.5 0 0 0 14 4H5.5A1.5 1.5 0 0 0 4 5.5V14a1.5 1.5 0 0 0 1.5 1.5h3\"/>',\n pegar:'<path d=\"M15.5 5H17a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 17 20H7a1.5 1.5 0 0 1-1.5-1.5v-12A1.5 1.5 0 0 1 7 5h1.5\"/><rect x=\"8.5\" y=\"3.5\" width=\"7\" height=\"3.5\" rx=\"1\"/><path d=\"M9 11.5h6M9 15h4\"/>',\n duplicar:'<rect x=\"8.5\" y=\"8.5\" width=\"11.5\" height=\"11.5\" rx=\"1.8\"/><path d=\"M15.5 8.5v-3A1.5 1.5 0 0 0 14 4H5.5A1.5 1.5 0 0 0 4 5.5V14a1.5 1.5 0 0 0 1.5 1.5h3\"/><path d=\"M14.25 11.5v5.5M11.5 14.25H17\"/>',\n eliminar:'<path d=\"M4.5 6.5h15M9.5 6.5v-2h5v2\"/><path d=\"m6.5 6.5.9 12.1a1.5 1.5 0 0 0 1.5 1.4h6.2a1.5 1.5 0 0 0 1.5-1.4l.9-12.1\"/><path d=\"M10.2 10.5v6M13.8 10.5v6\"/>',\n editar:'<path d=\"M14.5 5.5 18.5 9.5\"/><path d=\"M16 4a2 2 0 0 1 2.9 0l1.1 1.1a2 2 0 0 1 0 2.9L9.5 18.5 4.5 19.5l1-5z\"/>',\n buscar:'<circle cx=\"10.5\" cy=\"10.5\" r=\"6\"/><path d=\"m15 15 5 5\"/>',\n reemplazar:'<circle cx=\"9.5\" cy=\"9.5\" r=\"5\"/><path d=\"m13.2 13.2 2.3 2.3\"/><path d=\"M13 19h6.5M17 16.5l2.5 2.5-2.5 2.5\"/>',\n comando:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2\"/><path d=\"m7.5 9.5 3 2.5-3 2.5M12.5 15h4\"/>',\n seleccionar:'<path d=\"M5 4l12.5 6.2-5.3 1.6-2 5.2z\"/><path d=\"m12.4 12 5.6 7\"/>',\n 'seleccionar-todo':'<rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"2\" stroke-dasharray=\"2.6 2.7\"/><path d=\"m8.5 12.2 2.4 2.4 4.6-5\"/>',\n deseleccionar:'<rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"2\" stroke-dasharray=\"2.6 2.7\"/><path d=\"m9 9 6 6M15 9l-6 6\"/>',\n casilla:'<rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"2.5\"/><path d=\"m8 12.3 2.8 2.8L16.2 9\"/>',\n revisar:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><path d=\"m8.3 12.3 2.6 2.6 5-5.2\"/>',\n mas:'<path d=\"M12 5v14M5 12h14\"/>',\n menos:'<path d=\"M5 12h14\"/>',\n 'mas-opciones':'<circle cx=\"5.5\" cy=\"12\" r=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"12\" r=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18.5\" cy=\"12\" r=\"1.5\" fill=\"currentColor\" stroke=\"none\"/>',\n ordenar:'<path d=\"M7.5 20V4M4.5 7l3-3 3 3M16.5 4v16M13.5 17l3 3 3-3\"/>',\n izquierda:'<path d=\"m14.5 6-6 6 6 6\"/>',\n derecha:'<path d=\"m9.5 6 6 6-6 6\"/>',\n arriba:'<path d=\"m6 14.5 6-6 6 6\"/>',\n abajo:'<path d=\"m6 9.5 6 6 6-6\"/>',\n // Vista\n acercar:'<circle cx=\"10.5\" cy=\"10.5\" r=\"6\"/><path d=\"m15 15 5 5M10.5 8v5M8 10.5h5\"/>',\n alejar:'<circle cx=\"10.5\" cy=\"10.5\" r=\"6\"/><path d=\"m15 15 5 5M8 10.5h5\"/>',\n ajustar:'<path d=\"M9 4v3.5A1.5 1.5 0 0 1 7.5 9H4M15 4v3.5A1.5 1.5 0 0 0 16.5 9H20M20 15h-3.5a1.5 1.5 0 0 0-1.5 1.5V20M4 15h3.5A1.5 1.5 0 0 1 9 16.5V20\"/>',\n 'pantalla-completa':'<path d=\"M4 9V5.5A1.5 1.5 0 0 1 5.5 4H9M15 4h3.5A1.5 1.5 0 0 1 20 5.5V9M20 15v3.5a1.5 1.5 0 0 1-1.5 1.5H15M9 20H5.5A1.5 1.5 0 0 1 4 18.5V15\"/>',\n enfoque:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><circle cx=\"12\" cy=\"12\" r=\"4.3\"/><circle cx=\"12\" cy=\"12\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n mosaico:'<rect x=\"3.5\" y=\"5\" width=\"7.5\" height=\"6\" rx=\"1.2\"/><rect x=\"13\" y=\"5\" width=\"7.5\" height=\"6\" rx=\"1.2\"/><rect x=\"3.5\" y=\"13\" width=\"7.5\" height=\"6\" rx=\"1.2\"/><rect x=\"13\" y=\"13\" width=\"7.5\" height=\"6\" rx=\"1.2\"/>',\n tema:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><path d=\"M12 3.5a8.5 8.5 0 0 1 0 17z\" fill=\"currentColor\" stroke=\"none\"/>',\n panel:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2\"/><path d=\"M14.5 4.5v15\"/><path d=\"M16.8 8.5h1.5M16.8 11.5h1.5\"/>',\n 'panel-izquierdo':'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2\"/><path d=\"M9.5 4.5v15\"/><path d=\"M5.7 8.5h1.5M5.7 11.5h1.5\"/>',\n propiedades:'<path d=\"M4 7h9M17 7h3M4 17h3M11 17h9\"/><circle cx=\"15\" cy=\"7\" r=\"2\"/><circle cx=\"9\" cy=\"17\" r=\"2\"/>',\n cuadricula:'<rect x=\"3.5\" y=\"3.5\" width=\"17\" height=\"17\" rx=\"2\"/><path d=\"M9.2 3.5v17M14.8 3.5v17M3.5 9.2h17M3.5 14.8h17\"/>',\n regla:'<rect x=\"2.9\" y=\"8.2\" width=\"18.2\" height=\"7.6\" rx=\"1.4\" transform=\"rotate(-45 12 12)\"/><path d=\"m8.8 9.4 1.6 1.6M11.3 6.9l1.1 1.1M13.8 4.4l1.6 1.6M6.3 11.9l1.1 1.1\"/>',\n visible:'<path d=\"M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/>',\n apilar:'<path d=\"M3.5 7c2.5 0 3-3 4.5-3s2 3 4 3 2.5-1.5 4-1.5 2 1.5 4.5 1.5\"/><path d=\"M3.5 13c2.5 0 3-3 4.5-3s2 3 4 3 2.5-1.5 4-1.5 2 1.5 4.5 1.5\"/><path d=\"M3.5 19c2.5 0 3-3 4.5-3s2 3 4 3 2.5-1.5 4-1.5 2 1.5 4.5 1.5\"/>',\n idioma:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><path d=\"M3.5 12h17\"/><path d=\"M12 3.5c2.3 2.4 3.5 5.2 3.5 8.5s-1.2 6.1-3.5 8.5c-2.3-2.4-3.5-5.2-3.5-8.5S9.7 5.9 12 3.5z\"/>',\n teclado:'<rect x=\"2.5\" y=\"6\" width=\"19\" height=\"12\" rx=\"2\"/><circle cx=\"6.5\" cy=\"10\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"10.2\" cy=\"10\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"13.8\" cy=\"10\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"17.5\" cy=\"10\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M8 14.3h8\"/>',\n codigo:'<path d=\"M8.5 7 3.5 12l5 5M15.5 7l5 5-5 5\"/><path d=\"m13.5 4.5-3 15\"/>',\n asistente:'<path d=\"M10.5 4c.7 4.6 2.4 6.3 7 7-4.6.7-6.3 2.4-7 7-.7-4.6-2.4-6.3-7-7 4.6-.7 6.3-2.4 7-7z\"/><path d=\"M18 3v4M16 5h4\"/>',\n ideas:'<path d=\"M9 17.5v-1.3c0-1-.5-1.8-1.3-2.6A6 6 0 1 1 16.3 13.6c-.8.8-1.3 1.6-1.3 2.6v1.3z\"/><path d=\"M9.5 20.5h5\"/>',\n // Texto\n negrita:'<path d=\"M7 4.5h5.8a3.6 3.6 0 0 1 0 7.2H7zM7 11.7h6.8a3.9 3.9 0 0 1 0 7.8H7z\"/>',\n cursiva:'<path d=\"M10.5 4.5h7M6.5 19.5h7M14 4.5l-4 15\"/>',\n subrayado:'<path d=\"M7 4v7a5 5 0 0 0 10 0V4\"/><path d=\"M5 20h14\"/>',\n tachado:'<path d=\"M4.5 12h15\"/><path d=\"M16 6.8C15.4 5.2 13.9 4.5 12 4.5c-2.4 0-4 1.3-4 3.2 0 1.2.7 2.1 2 2.8\"/><path d=\"M8 17.2c.6 1.6 2.1 2.3 4 2.3 2.5 0 4.2-1.3 4.2-3.3 0-.7-.2-1.3-.6-1.8\"/>',\n resaltar:'<path d=\"m9 14 7.3-7.3a1.9 1.9 0 0 1 2.7 2.7L11.7 16.7\"/><path d=\"m9 14-1.8 1.8L8 19.2l2.4-1.2 1.3-1.3z\"/><path d=\"M4 20.5h3\"/>',\n fuente:'<path d=\"M3.5 18 8 6l4.5 12M5.2 13.5h5.6\"/><circle cx=\"17\" cy=\"15.2\" r=\"2.8\"/><path d=\"M19.8 11.8V18\"/>',\n 'color-texto':'<path d=\"M6.5 15.5 12 3.5l5.5 12M8.4 11.3h7.2\"/><rect x=\"4\" y=\"18.2\" width=\"16\" height=\"2.6\" rx=\".8\" fill=\"currentColor\" stroke=\"none\"/>',\n subindice:'<path d=\"m4 6 8 10M12 6l-8 10\"/><path d=\"M15.4 16.1a1.7 1.7 0 1 1 2.9 1.3L15.4 20.5h3.9\"/>',\n superindice:'<path d=\"m4 8 8 10M12 8l-8 10\"/><path d=\"M15.4 5.1a1.7 1.7 0 1 1 2.9 1.3L15.4 9.5h3.9\"/>',\n encabezado:'<path d=\"M5.5 4.5v15M14.5 4.5v15M5.5 12h9\"/><path d=\"M17.5 12.5l2-1.5v8.5\"/>',\n parrafo:'<path d=\"M13.5 4.5v15M17.5 4.5v15M19.5 4.5H10a4.2 4.2 0 0 0 0 8.4h3.5\"/>',\n lista:'<circle cx=\"5\" cy=\"6.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"5\" cy=\"12\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"5\" cy=\"17.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M9 6.5h11M9 12h11M9 17.5h11\"/>',\n 'lista-numerada':'<path d=\"M4.3 5.3 5.8 4.3v5\"/><path d=\"M4.1 14.7a1.4 1.4 0 1 1 2.5.9L4.1 19h2.8\"/><path d=\"M10 6.8h10M10 16.8h10\"/>',\n tareas:'<rect x=\"3.5\" y=\"4\" width=\"6.5\" height=\"6.5\" rx=\"1.3\"/><path d=\"m5.3 7.3 1.2 1.2 2-2.3\"/><rect x=\"3.5\" y=\"13.5\" width=\"6.5\" height=\"6.5\" rx=\"1.3\"/><path d=\"M13.5 7.2h7M13.5 16.8h7\"/>',\n esquema:'<circle cx=\"5\" cy=\"5.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M8.5 5.5H20\"/><path d=\"M5 9v7.5a2 2 0 0 0 2 2h2M5 12.5h4\"/><path d=\"M12.5 12.5H20M12.5 18.5H20\"/>',\n sangria:'<path d=\"M11 5.5h9M11 10h9M11 14.5h9M4 19h16\"/><path d=\"m4 8.3 3 2.2-3 2.2\"/>',\n 'texto-izquierda':'<path d=\"M4 5.5h16M4 10h10M4 14.5h16M4 19h10\"/>',\n 'texto-centro':'<path d=\"M4 5.5h16M7 10h10M4 14.5h16M7 19h10\"/>',\n 'texto-derecha':'<path d=\"M4 5.5h16M10 10h10M4 14.5h16M10 19h10\"/>',\n justificar:'<path d=\"M4 5.5h16M4 10h16M4 14.5h16M4 19h16\"/>',\n cita:'<path d=\"M5 18c2.6-1 4.2-3.3 4.2-6.8V6.5H5v4.7h4.2\"/><path d=\"M14.8 18c2.6-1 4.2-3.3 4.2-6.8V6.5h-4.2v4.7H19\"/>',\n separador:'<path d=\"M3.5 12h17\"/><path d=\"M4 6h16M4 18h16\" stroke-dasharray=\"0 3\"/>',\n 'salto-pagina':'<path d=\"M6 3.5V8a1.5 1.5 0 0 0 1.5 1.5h9A1.5 1.5 0 0 0 18 8V3.5\"/><path d=\"M6 20.5V16a1.5 1.5 0 0 1 1.5-1.5h9A1.5 1.5 0 0 1 18 16v4.5\"/><path d=\"M3.5 12h2M8.5 12h2M13.5 12h2M18.5 12h2\"/>',\n pagina:'<rect x=\"5\" y=\"3.5\" width=\"14\" height=\"17\" rx=\"1.5\"/><rect x=\"8\" y=\"7\" width=\"8\" height=\"10\" rx=\".5\" stroke-dasharray=\"1.6 2.2\"/>',\n 'nota-pie':'<path d=\"M4 5h9M4 9.5h9M4 14h16\"/><path d=\"M16.5 5.3 18.3 4v6\"/><path d=\"M4 17.8h4M4 20.5h12\"/>',\n // Insertar\n texto:'<path d=\"M5 7V4.5h14V7M12 4.5v15M9 19.5h6\"/>',\n tabla:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"1.8\"/><path d=\"M3.5 9.5h17M3.5 14.5h17M9.2 9.5v10M14.8 9.5v10\"/>',\n imagen:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2\"/><circle cx=\"9\" cy=\"9.5\" r=\"1.7\"/><path d=\"m4 17.5 4.8-4.8 4.2 4.2 2.5-2.5 4.5 4.5\"/>',\n ecuacion:'<path d=\"M3.5 13h2.3l2.9 6.5L12.4 4.5h8.1\"/><path d=\"m14.2 10.5 5 6M19.2 10.5l-5 6\"/>',\n formula:'<path d=\"M11 4.5h-1A2.5 2.5 0 0 0 7.5 7v12.5M4.5 10h6\"/><path d=\"m13.5 11 6 7.5M19.5 11l-6 7.5\"/>',\n grafica:'<path d=\"M4 4v16h16\"/><rect x=\"7.5\" y=\"12\" width=\"3\" height=\"5\" rx=\".5\"/><rect x=\"12.5\" y=\"8\" width=\"3\" height=\"9\" rx=\".5\"/><path d=\"M17.5 17V5.5\"/>',\n enlace:'<path d=\"M10.2 13.8a3.8 3.8 0 0 0 5.4 0l3-3a3.8 3.8 0 0 0-5.4-5.4l-1.2 1.2\"/><path d=\"M13.8 10.2a3.8 3.8 0 0 0-5.4 0l-3 3a3.8 3.8 0 0 0 5.4 5.4l1.2-1.2\"/>',\n referencias:'<path d=\"M7.5 4.5h-3v15h3M16.5 4.5h3v15h-3\"/><path d=\"M10.3 8.8 12.6 7v10\"/>',\n adjunto:'<path d=\"m17 8-7.1 7.1a1.7 1.7 0 0 1-2.4-2.4l7.5-7.5a3.4 3.4 0 0 1 4.8 4.8l-7.6 7.6a5.1 5.1 0 0 1-7.2-7.2l6.6-6.6\"/>',\n comentario:'<path d=\"M5.5 4.5h13A1.5 1.5 0 0 1 20 6v9a1.5 1.5 0 0 1-1.5 1.5H10l-4.5 3.5v-3.5A1.5 1.5 0 0 1 4 15V6a1.5 1.5 0 0 1 1.5-1.5z\"/><path d=\"M8 9h8M8 12h5\"/>',\n pregunta:'<path d=\"M5.5 4.5h13A1.5 1.5 0 0 1 20 6v9a1.5 1.5 0 0 1-1.5 1.5H10l-4.5 3.5v-3.5A1.5 1.5 0 0 1 4 15V6a1.5 1.5 0 0 1 1.5-1.5z\"/><path d=\"M10 8.6a2 2 0 1 1 2.8 1.8c-.5.3-.8.7-.8 1.3\"/><circle cx=\"12\" cy=\"14\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/>',\n notas:'<rect x=\"3.5\" y=\"3.5\" width=\"17\" height=\"9.5\" rx=\"1.5\"/><path d=\"M4 16.5h16M4 20h10\"/>',\n anotar:'<path d=\"M4.5 5.5A1.5 1.5 0 0 1 6 4h12a1.5 1.5 0 0 1 1.5 1.5V14L14 19.5H6a1.5 1.5 0 0 1-1.5-1.5z\"/><path d=\"M19.5 14h-4A1.5 1.5 0 0 0 14 15.5v4\"/><path d=\"M8 8.5h8M8 12h4.5\"/>',\n pendientes:'<path d=\"M5.5 20.5V4\"/><path d=\"M5.5 4.5h11.8l-2.6 4.3 2.6 4.2H5.5\"/>',\n tiempo:'<circle cx=\"12\" cy=\"13.5\" r=\"7\"/><path d=\"M12 13.5V10M10 3.5h4M12 3.5v3M17.3 7.6l1.3-1.3\"/>',\n microfono:'<rect x=\"9\" y=\"3.5\" width=\"6\" height=\"10.5\" rx=\"3\"/><path d=\"M5.5 11.5a6.5 6.5 0 0 0 13 0M12 18v2.5M9 20.5h6\"/>',\n // Objetos\n forma:'<circle cx=\"8.5\" cy=\"8.5\" r=\"4.5\"/><rect x=\"11.5\" y=\"11.5\" width=\"9\" height=\"9\" rx=\"1.2\"/>',\n flecha:'<path d=\"M4 12h15.5M14 6.5l5.5 5.5-5.5 5.5\"/>',\n linea:'<path d=\"M6.2 17.8 17.8 6.2\"/><circle cx=\"5\" cy=\"19\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"19\" cy=\"5\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/>',\n grosor:'<path d=\"M4 5.5h16\"/><rect x=\"4\" y=\"10\" width=\"16\" height=\"2.4\" rx=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><rect x=\"4\" y=\"16\" width=\"16\" height=\"3.8\" rx=\"1.6\" fill=\"currentColor\" stroke=\"none\"/>',\n color:'<path d=\"M12 3.5c3.3 4 5.5 7.2 5.5 10a5.5 5.5 0 0 1-11 0c0-2.8 2.2-6 5.5-10z\"/><path d=\"M9.3 14a2.8 2.8 0 0 0 2.2 2.8\"/>',\n paleta:'<path d=\"M12 3.5a8.5 8.5 0 0 0 0 17c1.2 0 1.8-.7 1.8-1.6 0-.5-.2-.9-.5-1.3s-.5-.8-.5-1.3c0-.9.7-1.6 1.6-1.6h1.9a4.2 4.2 0 0 0 4.2-4.2c0-3.9-3.8-7-8.5-7z\"/><circle cx=\"7.8\" cy=\"11.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"9.8\" cy=\"7.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"14.5\" cy=\"7.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n pincel:'<path d=\"m20 4-8.3 8.9\"/><path d=\"M11.5 12.6a2.8 2.8 0 0 0-4 0c-1.2 1.2-.5 3.4-3.5 4.6 2 1.9 5.8 2.1 7.4.5a2.8 2.8 0 0 0 .1-5.1z\"/>',\n recortar:'<path d=\"M7 3.5v12a1.5 1.5 0 0 0 1.5 1.5h12\"/><path d=\"M3.5 7h12A1.5 1.5 0 0 1 17 8.5v12\"/>',\n agrupar:'<rect x=\"7\" y=\"7\" width=\"5\" height=\"5\" rx=\"1\"/><rect x=\"12\" y=\"12\" width=\"5\" height=\"5\" rx=\"1\"/><path d=\"M3.5 6.5v-2a1 1 0 0 1 1-1h2M17.5 3.5h2a1 1 0 0 1 1 1v2M20.5 17.5v2a1 1 0 0 1-1 1h-2M6.5 20.5h-2a1 1 0 0 1-1-1v-2\"/>',\n desagrupar:'<rect x=\"3.5\" y=\"3.5\" width=\"8\" height=\"8\" rx=\"1.5\"/><rect x=\"12.5\" y=\"12.5\" width=\"8\" height=\"8\" rx=\"1.5\"/>',\n girar:'<rect x=\"4\" y=\"10\" width=\"9.5\" height=\"10\" rx=\"1.5\"/><path d=\"M7.5 6.3A8.5 8.5 0 0 1 19 12.8\"/><path d=\"m15.9 11.2 3.1 1.6 1.5-3.1\"/>',\n subir:'<path d=\"M12 20V8M6.5 13.5 12 8l5.5 5.5M5 4h14\"/>',\n bajar:'<path d=\"M12 4v12M6.5 10.5 12 16l5.5-5.5M5 20h14\"/>',\n 'traer-al-frente':'<path d=\"M7.5 15.5H5A1.5 1.5 0 0 1 3.5 14V5A1.5 1.5 0 0 1 5 3.5h9A1.5 1.5 0 0 1 15.5 5v2.5\"/><rect x=\"9\" y=\"9\" width=\"11.5\" height=\"11.5\" rx=\"1.5\" fill=\"currentColor\" stroke=\"none\"/>',\n 'enviar-al-fondo':'<path d=\"M5 3.5h9A1.5 1.5 0 0 1 15.5 5v2H8.5A1.5 1.5 0 0 0 7 8.5v7H5A1.5 1.5 0 0 1 3.5 14V5A1.5 1.5 0 0 1 5 3.5z\" fill=\"currentColor\" stroke=\"none\"/><rect x=\"9\" y=\"9\" width=\"11.5\" height=\"11.5\" rx=\"1.5\"/>',\n 'alinear-izquierda':'<path d=\"M4 3.5v17\"/><rect x=\"7\" y=\"6\" width=\"12.5\" height=\"4.5\" rx=\"1.2\"/><rect x=\"7\" y=\"13.5\" width=\"7.5\" height=\"4.5\" rx=\"1.2\"/>',\n 'alinear-centro':'<path d=\"M12 3.5v2.5M12 10.5v3M12 18v2.5\"/><rect x=\"5\" y=\"6\" width=\"14\" height=\"4.5\" rx=\"1.2\"/><rect x=\"7.5\" y=\"13.5\" width=\"9\" height=\"4.5\" rx=\"1.2\"/>',\n 'alinear-derecha':'<path d=\"M20 3.5v17\"/><rect x=\"4.5\" y=\"6\" width=\"12.5\" height=\"4.5\" rx=\"1.2\"/><rect x=\"9.5\" y=\"13.5\" width=\"7.5\" height=\"4.5\" rx=\"1.2\"/>',\n 'alinear-arriba':'<path d=\"M3.5 4h17\"/><rect x=\"6\" y=\"7\" width=\"4.5\" height=\"12.5\" rx=\"1.2\"/><rect x=\"13.5\" y=\"7\" width=\"4.5\" height=\"7.5\" rx=\"1.2\"/>',\n 'alinear-medio':'<path d=\"M3.5 12h2.5M10.5 12h3M18 12h2.5\"/><rect x=\"6\" y=\"5\" width=\"4.5\" height=\"14\" rx=\"1.2\"/><rect x=\"13.5\" y=\"7.5\" width=\"4.5\" height=\"9\" rx=\"1.2\"/>',\n 'alinear-abajo':'<path d=\"M3.5 20h17\"/><rect x=\"6\" y=\"4.5\" width=\"4.5\" height=\"12.5\" rx=\"1.2\"/><rect x=\"13.5\" y=\"9.5\" width=\"4.5\" height=\"7.5\" rx=\"1.2\"/>',\n 'distribuir-horizontal':'<path d=\"M4 3.5v17M20 3.5v17\"/><rect x=\"9.5\" y=\"7\" width=\"5\" height=\"10\" rx=\"1.2\"/>',\n 'distribuir-vertical':'<path d=\"M3.5 4h17M3.5 20h17\"/><rect x=\"7\" y=\"9.5\" width=\"10\" height=\"5\" rx=\"1.2\"/>',\n // Presentar\n presentar:'<path d=\"M7 5v14a1 1 0 0 0 1.5.9l11-7a1 1 0 0 0 0-1.8l-11-7A1 1 0 0 0 7 5z\"/>',\n 'presentar-desde-aqui':'<path d=\"M4.5 5v14\"/><path d=\"M9 5.8v12.4a.9.9 0 0 0 1.4.8l9.3-6.2a.9.9 0 0 0 0-1.6L10.4 5a.9.9 0 0 0-1.4.8z\"/>',\n presentador:'<rect x=\"3.5\" y=\"4\" width=\"17\" height=\"12.5\" rx=\"1.5\"/><rect x=\"6\" y=\"6.5\" width=\"7\" height=\"5\" rx=\".6\"/><path d=\"M15.5 7h2.5M15.5 10h2.5M6 14h12\"/><path d=\"M12 16.5v3.5M8.5 20h7\"/>',\n transicion:'<rect x=\"9.5\" y=\"5.5\" width=\"11\" height=\"13\" rx=\"1.5\"/><path d=\"M6.5 8v8M3.5 10v4\"/>',\n efecto:'<path d=\"m4 20 11-11\"/><path d=\"m13 7 4 4\"/><path d=\"M18 3v3M16.5 4.5h3M20 10v3M18.5 11.5h3M9 3.5v3M7.5 5h3\"/>',\n accesibilidad:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><circle cx=\"12\" cy=\"7.6\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"m7.8 10.3 4.2.9 4.2-.9M12 11.2v2.8l-2.3 3.8M12 14l2.3 3.8\"/>',\n publico:'<circle cx=\"9\" cy=\"8\" r=\"3\"/><path d=\"M3.5 19.5a5.5 5.5 0 0 1 11 0\"/><path d=\"M15.5 5.3a3 3 0 0 1 0 5.4M17.5 14.3a5.5 5.5 0 0 1 3 5.2\"/>',\n ramas:'<circle cx=\"6.5\" cy=\"5.5\" r=\"2\"/><circle cx=\"6.5\" cy=\"18.5\" r=\"2\"/><circle cx=\"17.5\" cy=\"7.5\" r=\"2\"/><path d=\"M6.5 7.5v9\"/><path d=\"M17.5 9.5c0 3.8-3 4.5-6.5 5.2-2 .4-3.5 1-4.2 2\"/>',\n // Ciencia y datos\n experimento:'<path d=\"M9.5 3.5h5M10.5 3.5V9l-5.4 9.3a1.4 1.4 0 0 0 1.2 2.2h11.4a1.4 1.4 0 0 0 1.2-2.2L13.5 9V3.5\"/><path d=\"M7.3 14.5h9.4\"/>',\n molecula:'<circle cx=\"6.5\" cy=\"7\" r=\"2.5\"/><circle cx=\"17.5\" cy=\"8\" r=\"2.5\"/><circle cx=\"11\" cy=\"17.5\" r=\"2.5\"/><path d=\"M9 7.2l6 .6M16.1 10.1l-3.8 5.3M7.4 9.3l2.7 5.9\"/>',\n reaccion:'<path d=\"M4 9h15.5M16 5.5 19.5 9\"/><path d=\"M20 15H4.5M8 18.5 4.5 15\"/>',\n cristal:'<path d=\"M12 3.5 19.5 7.7v8.6L12 20.5l-7.5-4.2V7.7z\"/><path d=\"M4.5 7.7 12 12l7.5-4.3M12 12v8.5\"/><circle cx=\"12\" cy=\"12\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"3.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"4.5\" cy=\"16.3\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"19.5\" cy=\"16.3\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n microscopio:'<path d=\"m9.6 3.2 3.5 2-3.6 6.2-3.5-2z\"/><path d=\"m7.8 11.2-.9 1.5\"/><path d=\"M13.6 8.2a5.8 5.8 0 0 1 .9 10.3\"/><path d=\"M8.5 15.5h4\"/><path d=\"M5 20.5h14\"/>',\n espectro:'<path d=\"M3.5 4v16.5H20\"/><path d=\"M6.5 15.5c1.5 0 2-8.5 3.5-8.5s1.8 6 3.2 6 1.4-3 2.8-3 1.4 5.5 3.5 5.5\"/>',\n picos:'<path d=\"M3.5 4v16.5H20\"/><path d=\"M6.5 17.5 9 9.5l2.5 8 2.5-5 2.5 5\"/><circle cx=\"9\" cy=\"5.8\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"14\" cy=\"8.8\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n 'linea-base':'<path d=\"M3.5 4v16.5H20\"/><path d=\"M6.5 13c2-.3 2.5-5.5 4-5.5s1.8 4 3.2 4 1.5-2 2.8-2 1.3 2 3 1.9\"/><path d=\"M6.5 16.5h13\" stroke-dasharray=\"1.6 2.4\"/>',\n bandas:'<path d=\"M3.5 4v16.5H20\"/><path d=\"M5.5 17.5c2.2 0 2.6-7.5 4.5-7.5s2.3 7.5 4.5 7.5\"/><path d=\"M9.5 17.5c2.2 0 2.6-11 4.5-11s2.3 11 4.5 11\"/>',\n area:'<path d=\"M3.5 4v16.5H20\"/><path d=\"M6 17.5c2.5 0 3.5-10 6-10s3.5 10 6 10\"/><path d=\"M9.6 17.5c.9-2.6 1.4-6.2 2.4-6.2s1.5 3.6 2.4 6.2z\" fill=\"currentColor\" stroke=\"none\"/>',\n suavizado:'<path d=\"m3.5 9 2-3.5 2 5 2-5.5 2 5 2-4 2 4.5 2-3.5 2.5 2\"/><path d=\"M3.5 17.5c2.5 0 3.5-3.5 6-3.5s3.5 3.5 6 3.5c2 0 3.2-1.5 5-1.5\"/>',\n normalizar:'<path d=\"M3.5 5h17\" stroke-dasharray=\"0 3\"/><path d=\"M3.5 19.5h17\"/><path d=\"M5 19.5c1.5 0 2-14.5 3.5-14.5S10.5 19.5 12 19.5c1.5 0 2-14.5 3.5-14.5s2 14.5 3.5 14.5\"/>',\n serie:'<path d=\"M3.5 4v16.5H20\"/><path d=\"m7 15 3.5-4 3 2.5L18 7\"/><circle cx=\"7\" cy=\"15\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"10.5\" cy=\"11\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"13.5\" cy=\"13.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18\" cy=\"7\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n modelo:'<path d=\"M3.5 4v16.5H20\"/><path d=\"M6.5 16.5c4 0 6.5-1.5 8.5-4.5s3-5 4.5-6\"/><circle cx=\"8\" cy=\"14\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"15\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"14\" cy=\"10\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18.5\" cy=\"8.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n mapa:'<rect x=\"3.75\" y=\"3.75\" width=\"4.5\" height=\"4.5\" rx=\".8\" fill=\"currentColor\" stroke=\"none\"/><rect x=\"9.75\" y=\"3.75\" width=\"4.5\" height=\"4.5\" rx=\".8\"/><rect x=\"15.75\" y=\"3.75\" width=\"4.5\" height=\"4.5\" rx=\".8\"/><rect x=\"3.75\" y=\"9.75\" width=\"4.5\" height=\"4.5\" rx=\".8\"/><rect x=\"9.75\" y=\"9.75\" width=\"4.5\" height=\"4.5\" rx=\".8\" fill=\"currentColor\" stroke=\"none\"/><rect x=\"15.75\" y=\"9.75\" width=\"4.5\" height=\"4.5\" rx=\".8\"/><rect x=\"3.75\" y=\"15.75\" width=\"4.5\" height=\"4.5\" rx=\".8\"/><rect x=\"9.75\" y=\"15.75\" width=\"4.5\" height=\"4.5\" rx=\".8\"/><rect x=\"15.75\" y=\"15.75\" width=\"4.5\" height=\"4.5\" rx=\".8\" fill=\"currentColor\" stroke=\"none\"/>',\n corridas:'<circle cx=\"6\" cy=\"6\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"6\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18\" cy=\"6\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"6\" cy=\"12\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"12\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18\" cy=\"12\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"6\" cy=\"18\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"18\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18\" cy=\"18\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/>',\n analizar:'<path d=\"M4 20V13M8.5 20V9M13 20v-3\"/><circle cx=\"15.5\" cy=\"9\" r=\"4\"/><path d=\"m18.5 12 2.5 2.5\"/>',\n comparar:'<path d=\"M12 3.5v17\"/><rect x=\"3.5\" y=\"6\" width=\"6\" height=\"12\" rx=\"1.5\"/><rect x=\"14.5\" y=\"6\" width=\"6\" height=\"12\" rx=\"1.5\"/>',\n datos:'<ellipse cx=\"12\" cy=\"6\" rx=\"7.5\" ry=\"2.5\"/><path d=\"M4.5 6v12c0 1.4 3.4 2.5 7.5 2.5s7.5-1.1 7.5-2.5V6\"/><path d=\"M4.5 12c0 1.4 3.4 2.5 7.5 2.5s7.5-1.1 7.5-2.5\"/>',\n unidades:'<path d=\"M4 7.5h16M4 16.5h16\"/><path d=\"M7 5v5M11 6v3M15 6v3M19 5v5M7 14v5M11 15v3M15 15v3M19 14v5\"/>',\n leyenda:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2\"/><circle cx=\"7.5\" cy=\"9.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"7.5\" cy=\"14.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M10.5 9.5h6M10.5 14.5h6\"/>',\n celda:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"1.8\"/><path d=\"M3.5 9.5h17M3.5 14.5h17M9.2 4.5v15M14.8 4.5v15\"/><rect x=\"9.2\" y=\"9.5\" width=\"5.6\" height=\"5\" fill=\"currentColor\" stroke=\"none\"/>',\n filas:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"1.8\"/><path d=\"M9.2 4.5v5M14.8 4.5v5M9.2 14.5v5M14.8 14.5v5\"/><rect x=\"3.5\" y=\"9.5\" width=\"17\" height=\"5\" fill=\"currentColor\" stroke=\"none\"/>',\n columnas:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"1.8\"/><path d=\"M3.5 9.5h5.7M3.5 14.5h5.7M14.8 9.5h5.7M14.8 14.5h5.7\"/><rect x=\"9.2\" y=\"4.5\" width=\"5.6\" height=\"15\" fill=\"currentColor\" stroke=\"none\"/>'\n};\n\nexport const nombresIconos=Object.freeze(Object.keys(iconos));\n\nconst escapar=s=>String(s).replace(/[&<>\"]/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;'}[c]));\n\nexport function icono(id,{titulo}={}){\n const interior=Object.prototype.hasOwnProperty.call(iconos,id)?iconos[id]:undefined;\n if(interior===undefined)throw new Error(`icono: id de icono desconocido: ${id}`);\n const t=titulo?`<title>${escapar(titulo)}</title>`:'';\n return `<svg class=\"erlen-icono\" data-icono=\"${id}\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\">${t}${interior}</svg>`;\n}\n",
  "src/diseno/inicio.css": "/* Mey vive encima de la página, sin reservar huecos ni interceptar controles ajenos. */\n.mey-libre{position:fixed;left:0;top:0;z-index:501;display:block;width:auto;height:auto;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:var(--erlen-radio-pequeno);background:transparent;color:var(--erlen-tinta);box-shadow:none;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;will-change:transform;transition:none;line-height:0}\n.mey-libre:hover{background:transparent}.mey-libre[data-arrastrando]{cursor:grabbing}.mey-libre svg{display:block;pointer-events:none;max-width:none}.mey-libre:focus-visible,.mey-libre-pausa:focus-visible{outline:3px solid var(--erlen-foco);outline-offset:3px}\n.mey-libre-pausa{position:fixed;right:16px;bottom:12px;z-index:501;min-height:44px;padding:8px 14px;border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-campo);background:var(--erlen-vidrio-fuerte);color:var(--erlen-tinta-suave);font:500 var(--erlen-texto-xs)/1.4 var(--erlen-font-ui);cursor:pointer}\n.mey-libre-pausa--integrada{position:static;flex:0 0 auto;white-space:nowrap;z-index:auto}\n@media print{.mey-libre,.mey-libre-pausa{display:none}}\n\n/* Las ilustraciones de estados vacíos ceden ante la presencia compartida. */\nhtml[data-erlen-mey-presencia] .recientes-vacio .mey{display:none}\n\n/* Arte elegido para Mey: cambia el material, no sus poses, atuendo ni movimiento.\n   Los pigmentos conservan la paleta personal. Los ojos siguen planos y nítidos.\n   El tile de marca y el favicon de 16 × 16 quedan fuera de estos tratamientos. */\n:root[data-erlen-estilo]{--mey-arte-filtro:none;--mey-arte-render:auto;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-contorno:var(--erlen-tinta);--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"glassmorfismo\"]{--mey-arte-filtro:drop-shadow(0 -1px 0 var(--erlen-superficie)) drop-shadow(0 2px 2px var(--erlen-linea-fuerte));--mey-arte-radio:.12px;--mey-arte-trazo:.07px;--mey-arte-contorno:var(--erlen-superficie);--mey-arte-vidrio:.78;--mey-arte-banda:.9}\n:root[data-erlen-estilo=\"neumorfismo\"]{--mey-arte-filtro:drop-shadow(-2px -2px 1px var(--erlen-superficie)) drop-shadow(2px 2px 1px var(--erlen-linea-fuerte));--mey-arte-radio:.08px;--mey-arte-trazo:.035px;--mey-arte-contorno:var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"neobrutalismo\"]{--mey-arte-filtro:drop-shadow(3px 3px 0 var(--erlen-tinta));--mey-arte-render:crispEdges;--mey-arte-trazo:.16px}\n:root[data-erlen-estilo=\"minimalismo\"]{--mey-arte-render:crispEdges;--mey-arte-trazo:.05px;--mey-arte-contorno:var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"art-deco\"]{--mey-arte-filtro:drop-shadow(1px 1px 0 var(--erlen-ambar));--mey-arte-render:crispEdges;--mey-arte-trazo:.10px;--mey-arte-contorno:var(--erlen-ambar);--mey-arte-banda:.94}\n:root[data-erlen-estilo=\"claymorfismo\"]{--mey-arte-filtro:drop-shadow(-1px -1px 1px var(--erlen-superficie)) drop-shadow(0 3px 2px var(--erlen-linea-fuerte));--mey-arte-radio:.24px;--mey-arte-trazo:.025px;--mey-arte-contorno:var(--erlen-superficie)}\n:root[data-erlen-estilo=\"bauhaus\"]{--mey-arte-filtro:drop-shadow(3px 0 0 var(--erlen-cromo-luz)) drop-shadow(0 3px 0 var(--erlen-verde));--mey-arte-render:crispEdges;--mey-arte-trazo:.20px}\n:root[data-erlen-estilo=\"frutiger-aero\"]{--mey-arte-filtro:drop-shadow(0 -2px 0 var(--erlen-superficie)) drop-shadow(0 2px 1px var(--erlen-verde-suave));--mey-arte-radio:.16px;--mey-arte-trazo:.10px;--mey-arte-contorno:var(--erlen-superficie);--mey-arte-vidrio:.9;--mey-arte-banda:1}\n:root[data-erlen-estilo=\"esqueuomorfismo\"]{--mey-arte-filtro:drop-shadow(-1px -1px 0 var(--erlen-superficie)) drop-shadow(1.5px 1.5px .6px var(--erlen-linea-fuerte));--mey-arte-radio:.045px;--mey-arte-trazo:.10px;--mey-arte-contorno:var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"retro-digital\"]{--mey-arte-filtro:drop-shadow(-1px -1px 0 var(--erlen-superficie)) drop-shadow(2px 2px 0 var(--erlen-linea-fuerte));--mey-arte-render:crispEdges;--mey-arte-trazo:.08px}\n:root[data-erlen-estilo=\"y2k\"]{--mey-arte-filtro:drop-shadow(-1px -1px 0 var(--erlen-superficie)) drop-shadow(2px 1px 1px var(--erlen-linea-fuerte));--mey-arte-radio:.15px;--mey-arte-trazo:.085px;--mey-arte-contorno:var(--erlen-superficie);--mey-arte-vidrio:.95;--mey-arte-banda:.75}\n:root[data-erlen-estilo=\"cyberpunk\"]{--mey-arte-filtro:drop-shadow(0 0 3px var(--erlen-verde)) drop-shadow(0 0 6px var(--erlen-verde-suave));--mey-arte-render:crispEdges;--mey-arte-trazo:.13px;--mey-arte-contorno:var(--erlen-verde);--mey-arte-vidrio:.8;--mey-arte-banda:.9}\n:root[data-erlen-estilo=\"blueprint\"]{--mey-arte-render:crispEdges;--mey-arte-trazo:.075px;--mey-arte-contorno:var(--erlen-verde);--mey-arte-vidrio:.18;--mey-arte-banda:.18;--mey-arte-guion:.45 .15;--mey-arte-ojos:var(--erlen-tinta)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]){filter:var(--mey-arte-filtro);shape-rendering:var(--mey-arte-render)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) :is([data-mey-pigmento=\"g\"],[data-mey-pigmento=\"w\"]){rx:var(--mey-arte-radio);ry:var(--mey-arte-radio);stroke:var(--mey-arte-contorno);stroke-width:var(--mey-arte-trazo);stroke-dasharray:var(--mey-arte-guion);stroke-linejoin:round;paint-order:stroke fill}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) [data-mey-pigmento=\"g\"]{fill-opacity:var(--mey-arte-vidrio)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) [data-mey-pigmento=\"g\"]:nth-of-type(3n){fill-opacity:var(--mey-arte-banda)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) [data-mey-pigmento=\"e\"]{fill:var(--mey-arte-ojos);fill-opacity:1;stroke:none;rx:0;ry:0;shape-rendering:crispEdges}\n/* Un acabado quieto no añade relojes, flashes ni desplazamientos. Los respaldos\n   de legibilidad devuelven los pigmentos planos y los píxeles originales. */\n:root:root[data-erlen-estilo][data-erlen-material=\"solido\"]{--mey-arte-filtro:none;--mey-arte-render:crispEdges;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}\n@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active),print{:root:root[data-erlen-estilo]{--mey-arte-filtro:none;--mey-arte-render:crispEdges;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}}\n@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root:root[data-erlen-estilo]{--mey-arte-filtro:none;--mey-arte-render:crispEdges;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}}\n\n/* Sprites artísticos: contornos conectados, vidrio/líquido completos y ojos planos.\n   No son filtros sobre la cuadrícula: Original y los respaldos usan los píxeles. */\n:root[data-erlen-estilo]{--mey-vector-visible:inline;--mey-pixel-visible:none;--mey-vector-angular:inline;--mey-vector-suave:none;--mey-vector-trazo:.16;--mey-vector-borde:var(--erlen-mey-ojos);--mey-vector-ojos:var(--erlen-mey-ojos)}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"neumorfismo\"],[data-erlen-estilo=\"minimalismo\"],[data-erlen-estilo=\"claymorfismo\"],[data-erlen-estilo=\"frutiger-aero\"],[data-erlen-estilo=\"esqueuomorfismo\"],[data-erlen-estilo=\"y2k\"]){--mey-vector-angular:none;--mey-vector-suave:inline}\n:root[data-erlen-estilo=\"glassmorfismo\"]{--mey-vector-trazo:.35;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"neumorfismo\"]{--mey-vector-trazo:.2;--mey-vector-borde:var(--erlen-superficie)}\n:root[data-erlen-estilo=\"neobrutalismo\"]{--mey-vector-trazo:.8;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"minimalismo\"]{--mey-vector-trazo:.3;--mey-vector-borde:var(--erlen-tinta);--mey-vector-ojos:var(--erlen-tinta);--mey-arte-render:auto}\n:root[data-erlen-estilo=\"art-deco\"]{--mey-vector-trazo:.5;--mey-vector-borde:var(--erlen-ambar)}\n:root[data-erlen-estilo=\"claymorfismo\"]{--mey-vector-trazo:.15;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"bauhaus\"]{--mey-vector-trazo:.6;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"frutiger-aero\"]{--mey-vector-trazo:.3;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"esqueuomorfismo\"]{--mey-vector-trazo:.4;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"retro-digital\"]{--mey-vector-trazo:.4;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"y2k\"]{--mey-vector-trazo:.45;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"cyberpunk\"]{--mey-vector-trazo:.4;--mey-vector-borde:var(--erlen-verde);--mey-vector-ojos:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"blueprint\"]{--mey-vector-trazo:.3;--mey-vector-borde:var(--erlen-verde);--mey-vector-ojos:var(--erlen-tinta)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) .mey-ilustracion{display:var(--mey-vector-visible)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) rect[data-mey-pigmento]{display:var(--mey-pixel-visible)}\n:root[data-erlen-estilo] .mey-vector[data-mey-vector=\"angular\"]{display:var(--mey-vector-angular)}\n:root[data-erlen-estilo] .mey-vector[data-mey-vector=\"suave\"]{display:var(--mey-vector-suave)}\n:root[data-erlen-estilo] .mey-vector-contorno{stroke:var(--mey-vector-borde);stroke-width:var(--mey-vector-trazo);stroke-linejoin:round;fill:none}\n:root[data-erlen-estilo] .mey-vector [data-mey-material]{stroke:var(--mey-vector-borde);stroke-width:calc(var(--mey-vector-trazo)*.55);stroke-linejoin:round;paint-order:stroke fill}\n:root[data-erlen-estilo] .mey-vector [data-mey-material=\"e\"]{fill:var(--mey-vector-ojos);stroke:none;opacity:1}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"neumorfismo\"],[data-erlen-estilo=\"claymorfismo\"],[data-erlen-estilo=\"frutiger-aero\"],[data-erlen-estilo=\"esqueuomorfismo\"],[data-erlen-estilo=\"y2k\"]) .mey-material-luz{stop-color:var(--erlen-mey-reflejo)}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"neumorfismo\"],[data-erlen-estilo=\"claymorfismo\"],[data-erlen-estilo=\"frutiger-aero\"],[data-erlen-estilo=\"esqueuomorfismo\"],[data-erlen-estilo=\"y2k\"]) .mey-material-sombra{stop-color:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"minimalismo\"] .mey-vector [data-mey-material=\"g\"]{fill:var(--erlen-superficie)}\n:root[data-erlen-estilo=\"cyberpunk\"] .mey-vector [data-mey-material=\"g\"]{fill:var(--erlen-espacio-fondo)}\n:root[data-erlen-estilo=\"cyberpunk\"] .mey-vector [data-mey-material=\"w\"]{fill:var(--erlen-espacio-fondo);stroke:var(--erlen-verde);stroke-width:.35}\n:root[data-erlen-estilo=\"blueprint\"] .mey-vector :is([data-mey-material=\"g\"],[data-mey-material=\"w\"]){fill:none;stroke:var(--erlen-verde);stroke-width:.25;stroke-dasharray:none}\n:root[data-erlen-estilo=\"neobrutalismo\"] .mey-vector :is([data-mey-material],.mey-vector-contorno){stroke-linejoin:miter}\n:root[data-erlen-estilo] [data-mey-decoracion]{pointer-events:none;fill:none;stroke:none}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"frutiger-aero\"]) [data-mey-decoracion=\"cristal\"]{display:inline;fill:var(--erlen-mey-reflejo);opacity:.75}\n:root[data-erlen-estilo=\"frutiger-aero\"] [data-mey-decoracion=\"aero\"]{display:inline;stroke:var(--erlen-mey-reflejo);stroke-width:.35;fill:none}\n:root[data-erlen-estilo=\"art-deco\"] [data-mey-decoracion=\"deco\"]{display:inline;stroke:var(--erlen-ambar);stroke-width:.25}\n:root[data-erlen-estilo=\"bauhaus\"] [data-mey-decoracion=\"bauhaus\"]{display:inline;fill:var(--erlen-ambar);stroke:var(--erlen-mey-ojos);stroke-width:.25}\n:root[data-erlen-estilo=\"bauhaus\"] [data-mey-decoracion=\"bauhaus\"] path:first-of-type{fill:var(--erlen-cromo-luz)}\n:root[data-erlen-estilo=\"y2k\"] [data-mey-decoracion=\"metal\"]{display:inline;fill:var(--erlen-mey-reflejo);opacity:.85}\n:root[data-erlen-estilo=\"cyberpunk\"] [data-mey-decoracion=\"circuito\"]{display:inline;stroke:var(--erlen-verde);stroke-width:.35}\n:root[data-erlen-estilo=\"blueprint\"] [data-mey-decoracion=\"plano\"]{display:inline;stroke:var(--erlen-verde);stroke-width:.15;opacity:.7}\n:root[data-erlen-estilo=\"retro-digital\"] [data-mey-decoracion=\"retro\"]{display:inline;stroke:var(--erlen-mey-ojos);stroke-width:.35;opacity:.4}\n:root:root[data-erlen-estilo][data-erlen-material=\"solido\"]{--mey-vector-visible:none;--mey-pixel-visible:inline}\n@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active),print{:root:root[data-erlen-estilo]{--mey-vector-visible:none;--mey-pixel-visible:inline}}\n@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root:root[data-erlen-estilo]{--mey-vector-visible:none;--mey-pixel-visible:inline}}\n\n/* Erlen Suite · paquete de diseño 2.0.0 · pantalla de inicio (diseno/suite-inicio.mjs; docs/COHERENCIA-APPS.md §3).\n   Solo tokens --erlen-*. Autónoma: no depende de base.css (Slides no lo carga) y neutraliza sus reglas de\n   elemento sobre <button>, <h1>, <p> y campos.\n   Cristal (2.0.0): atmósfera de color detrás, barra lateral y tarjetas de cristal sin desenfoque (sobre un degradado liso\n   no aporta nada y costaría una capa por tarjeta); solo la cabecera fija desenfoca lo que pasa por debajo, en un ::before\n   para no romper el menú fijo de erlen-suite-nav que vive dentro. Miniaturas y campos, opacos. Licencia: licencias/MIT.txt */\n.erlen-inicio{position:fixed;inset:0;z-index:300;isolation:isolate;overflow:auto;overscroll-behavior:contain;background:var(--erlen-papel);color:var(--erlen-tinta);font:400 var(--erlen-texto-ui)/var(--erlen-interlineado-ui) var(--erlen-font-ui);-webkit-font-smoothing:antialiased}\n/* Atmósfera en su propia capa fija: se rasteriza una vez; desplazar el inicio o pasar por una tarjeta translúcida no\n   obliga a repintar sus degradados. */\n.erlen-inicio::before{content:\"\";position:fixed;inset:0;z-index:-1;background:var(--erlen-atmosfera);pointer-events:none}\n.erlen-inicio[hidden]{display:none}\n.erlen-inicio *{box-sizing:border-box}\n.erlen-inicio{overflow-wrap:anywhere}\n.erlen-inicio-bienvenida>div,.erlen-inicio-cabecera>span{min-width:0;max-width:100%}\n.erlen-inicio h1,.erlen-inicio h2,.erlen-inicio h3,.erlen-inicio p,.erlen-inicio ul{margin:0}\n.erlen-inicio ul{padding:0;list-style:none}\n.erlen-inicio a{color:var(--erlen-verde)}\n.erlen-inicio :focus-visible{outline:3px solid var(--erlen-foco);outline-offset:3px}\n.erlen-inicio .erlen-inicio-titulo:focus{outline:none}\n.erlen-inicio-marco{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100%}\n\n/* Barra lateral: marca, navegación y pie con licencia y estado. */\n.erlen-inicio-lateral{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;gap:var(--erlen-esp-3);padding:var(--erlen-esp-6) var(--erlen-esp-4) var(--erlen-esp-5);background:var(--erlen-vidrio);border-right:1px solid var(--erlen-vidrio-contorno);box-shadow:inset -1px 0 0 var(--erlen-vidrio-borde);overflow-y:auto}\n.erlen-inicio-marca{display:flex;align-items:center;flex-wrap:wrap;gap:var(--erlen-esp-1) var(--erlen-esp-2);min-width:0;padding:0 var(--erlen-esp-3) var(--erlen-esp-6);font:400 32px/1 var(--erlen-font-titulo);color:var(--erlen-tinta)}\n.erlen-inicio-marca-icono{display:inline-grid;flex:none;width:28px;height:28px;color:var(--erlen-verde)}\n.erlen-inicio-marca-icono:empty{display:none}\n.erlen-inicio-marca-icono svg{width:100%;height:100%}\n.erlen-inicio-marca small{align-self:flex-end;margin-bottom:6px;max-width:100%;overflow-wrap:anywhere;font:700 var(--erlen-texto-xs)/1 var(--erlen-font-ui);letter-spacing:.13em;color:var(--erlen-tinta-suave)}\n.erlen-inicio-nav{display:flex;flex-direction:column;gap:var(--erlen-esp-1)}\n.erlen-inicio .erlen-inicio-enlace{display:flex;align-items:center;min-height:44px;padding:var(--erlen-esp-2) var(--erlen-esp-4);border:1px solid transparent;border-radius:var(--erlen-radio-capsula);color:var(--erlen-tinta-suave);text-decoration:none;font-size:var(--erlen-texto-sm);transition:background-color var(--erlen-dur) var(--erlen-ease),color var(--erlen-dur) var(--erlen-ease),box-shadow var(--erlen-dur) var(--erlen-ease)}\n.erlen-inicio .erlen-inicio-enlace:hover{background:var(--erlen-vidrio-tinte);color:var(--erlen-tinta)}\n.erlen-inicio .erlen-inicio-enlace[aria-current=page]{background:var(--erlen-vidrio-reflejo),var(--erlen-superficie);border-color:var(--erlen-vidrio-contorno);box-shadow:var(--erlen-vidrio-relieve);color:var(--erlen-verde);font-weight:700}\n.erlen-inicio-lateral-pie{margin-top:auto;display:flex;flex-direction:column;gap:var(--erlen-esp-2);padding-top:var(--erlen-esp-6)}\n.erlen-inicio .erlen-inicio-fuente{display:inline-flex;align-items:center;min-height:44px;padding:0 var(--erlen-esp-3);font-size:var(--erlen-texto-xs)}\n.erlen-inicio-estado{margin-top:var(--erlen-esp-3)!important;padding:var(--erlen-esp-4) var(--erlen-esp-3) 0;border-top:1px solid var(--erlen-vidrio-contorno);font:700 var(--erlen-texto-xs)/1.4 var(--erlen-font-ui)}\n.erlen-inicio-estado span{display:block;margin-top:var(--erlen-esp-1);font-weight:400;color:var(--erlen-tinta-suave)}\n\n/* Panel: cabecera fina y contenido con ancho máximo. */\n.erlen-inicio-panel{min-width:0}\n.erlen-inicio-cabecera{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:var(--erlen-esp-4);min-height:72px;padding:0 var(--erlen-esp-6);border-bottom:1px solid var(--erlen-vidrio-contorno);box-shadow:inset 0 -1px 0 var(--erlen-vidrio-borde);color:var(--erlen-tinta-suave);font-size:var(--erlen-texto-sm)}\n.erlen-inicio-cabecera::before{content:\"\";position:absolute;inset:0;z-index:-1;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro);pointer-events:none}\n.erlen-inicio-cabecera-acciones{display:flex;align-items:center;gap:var(--erlen-esp-4)}\n.erlen-inicio-local{font-size:var(--erlen-texto-xs)}\n.erlen-inicio-contenido{max-width:1350px;margin:0 auto;padding:var(--erlen-esp-7) var(--erlen-esp-6) var(--erlen-esp-8)}\n.erlen-inicio-eyebrow{display:block;font:700 var(--erlen-texto-xs)/1.2 var(--erlen-font-ui);letter-spacing:.13em;text-transform:uppercase;color:var(--erlen-verde)}\n.erlen-inicio-bienvenida{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--erlen-esp-5);flex-wrap:wrap}\n.erlen-inicio .erlen-inicio-titulo{margin:var(--erlen-esp-3) 0;font:400 clamp(34px,3.8vw,51px)/1.08 var(--erlen-font-titulo);letter-spacing:-.02em;color:var(--erlen-tinta)}\n.erlen-inicio-titulo em{font-style:italic;color:var(--erlen-verde)}\n.erlen-inicio-vista-cabecera{margin-bottom:var(--erlen-esp-6)}\n.erlen-inicio-vista-cabecera .erlen-inicio-titulo{font-size:42px}\n.erlen-inicio .erlen-inicio-lead{max-width:60ch;color:var(--erlen-tinta-suave);line-height:1.65}\n.erlen-inicio-buscar{display:flex;min-width:min(100%,320px)}\n.erlen-inicio-recreo{min-height:115px;margin:var(--erlen-esp-4) 0 var(--erlen-esp-6);padding:var(--erlen-esp-2) var(--erlen-esp-4) var(--erlen-esp-4);border-bottom:1px solid var(--erlen-vidrio-contorno)}\n.erlen-inicio-recreo erlen-mey{display:block;height:90px}\n\n/* Campos y botones propios (no dependen de base.css). */\n.erlen-inicio .erlen-inicio-campo{width:100%;min-height:var(--erlen-alto-control);padding:0 var(--erlen-esp-4);border:1px solid var(--erlen-linea-fuerte);border-radius:var(--erlen-radio-capsula);background:var(--erlen-superficie);color:var(--erlen-tinta);font:400 var(--erlen-texto-ui) var(--erlen-font-ui);box-shadow:inset 0 1px 2px var(--erlen-vidrio-contorno)}\n.erlen-inicio .erlen-inicio-campo:focus{border-color:var(--erlen-verde)}\n.erlen-inicio .erlen-inicio-boton{display:inline-flex;align-items:center;justify-content:center;gap:var(--erlen-esp-2);min-height:40px;margin:0;padding:0 var(--erlen-esp-4);border:1px solid var(--erlen-vidrio-contorno);border-radius:var(--erlen-radio-capsula);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);color:var(--erlen-verde);font:700 var(--erlen-texto-sm)/1.2 var(--erlen-font-ui);cursor:pointer;text-decoration:none;box-shadow:var(--erlen-vidrio-relieve);white-space:normal;max-width:100%;min-width:0;transition:background-color var(--erlen-dur-micro) var(--erlen-ease),border-color var(--erlen-dur-micro) var(--erlen-ease),box-shadow var(--erlen-dur-micro) var(--erlen-ease)}\n.erlen-inicio-boton-texto{min-width:0;overflow:hidden;text-overflow:ellipsis}\n.erlen-inicio-cabecera-acciones .erlen-inicio-boton-texto{white-space:normal}\n.erlen-inicio .erlen-inicio-nueva,.erlen-inicio .erlen-inicio-enlace{white-space:normal}\n.erlen-inicio .erlen-inicio-boton:hover{background:var(--erlen-vidrio-reflejo),var(--erlen-verde-suave);border-color:var(--erlen-verde)}\n.erlen-inicio .erlen-inicio-boton.primario{background:var(--erlen-vidrio-reflejo-acento),var(--erlen-verde);border-color:var(--erlen-verde);color:var(--erlen-verde-contraste);box-shadow:inset 0 1px 0 var(--erlen-vidrio-borde),0 2px 8px var(--erlen-vidrio-contorno)}\n.erlen-inicio .erlen-inicio-boton.primario:hover{background:var(--erlen-vidrio-reflejo-acento),color-mix(in srgb,var(--erlen-verde) 86%,var(--erlen-tinta))}\n.erlen-inicio .erlen-inicio-boton.peligro{color:var(--erlen-peligro);border-color:var(--erlen-peligro)}\n.erlen-inicio .erlen-inicio-boton.peligro:hover{background:var(--erlen-peligro-suave)}\n\n/* Colección de inicio: tarjeta «Nuevo…» y ejemplos. */\n/* Objetivos opcionales: tareas con datos propios, independientes del catálogo de ejemplos. */\n.erlen-inicio-objetivo{display:flex;flex-direction:column;gap:var(--erlen-esp-2);min-width:0;padding:var(--erlen-esp-4);border:1px solid var(--erlen-vidrio-contorno);border-radius:var(--erlen-radio-tarjeta);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio);box-shadow:var(--erlen-vidrio-relieve)}\n.erlen-inicio-objetivo h2{font:700 var(--erlen-texto-ui)/1.3 var(--erlen-font-ui);overflow-wrap:anywhere}\n.erlen-inicio-objetivo p{font-size:var(--erlen-texto-sm);line-height:1.5;color:var(--erlen-tinta-suave)}\n.erlen-inicio-objetivo .erlen-inicio-boton{margin-top:auto;align-self:flex-start;min-height:var(--erlen-alto-control)}\n.erlen-inicio-meta{display:flex;align-items:center;justify-content:space-between;gap:var(--erlen-esp-3);flex-wrap:wrap;margin-top:var(--erlen-esp-6);padding-top:var(--erlen-esp-4);border-top:1px solid var(--erlen-vidrio-contorno)}\n.erlen-inicio-meta h2{font:700 var(--erlen-texto-xs)/1.2 var(--erlen-font-ui);letter-spacing:.13em;text-transform:uppercase;color:var(--erlen-tinta-suave)}\n.erlen-inicio-acciones{display:flex;gap:var(--erlen-esp-2);flex-wrap:wrap}\n.erlen-inicio-rejilla{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:var(--erlen-esp-5);margin:var(--erlen-esp-5) 0}\n.erlen-inicio-coleccion{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:var(--erlen-esp-4)}\n.erlen-inicio .erlen-inicio-nueva{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--erlen-esp-2);min-height:0;margin:0;padding:var(--erlen-esp-4);border:1.5px dashed color-mix(in srgb,var(--erlen-verde) 45%,transparent);border-radius:var(--erlen-radio-tarjeta);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio);color:var(--erlen-tinta);font:inherit;cursor:pointer;text-align:center;transition:border-color var(--erlen-dur) var(--erlen-ease),background-color var(--erlen-dur) var(--erlen-ease),box-shadow var(--erlen-dur) var(--erlen-ease)}\n.erlen-inicio .erlen-inicio-nueva:hover{border-color:var(--erlen-verde);border-style:solid;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);box-shadow:var(--erlen-vidrio-relieve)}\n.erlen-inicio-mas{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--erlen-vidrio-reflejo-acento),var(--erlen-verde);color:var(--erlen-verde-contraste);font-size:24px;line-height:1;box-shadow:inset 0 1px 0 var(--erlen-vidrio-borde),0 4px 12px var(--erlen-vidrio-contorno)}\n.erlen-inicio-nueva-datos{display:flex;flex-direction:column;gap:var(--erlen-esp-1)}\n.erlen-inicio-nueva strong{font:400 24px/1.2 var(--erlen-font-titulo)}\n.erlen-inicio-nueva small{font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-inicio-ejemplo,.erlen-inicio-tarjeta{display:flex;flex-direction:column;gap:var(--erlen-esp-3);padding:var(--erlen-esp-5);border:1px solid var(--erlen-vidrio-contorno);border-radius:var(--erlen-radio-tarjeta);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio);box-shadow:var(--erlen-vidrio-relieve);transition:border-color var(--erlen-dur) var(--erlen-ease),box-shadow var(--erlen-dur) var(--erlen-ease),background-color var(--erlen-dur) var(--erlen-ease)}\n.erlen-inicio-ejemplo:hover,.erlen-inicio-tarjeta:hover{border-color:color-mix(in srgb,var(--erlen-verde) 35%,transparent);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);box-shadow:var(--erlen-vidrio-relieve),var(--erlen-sombra-tarjeta)}\n.erlen-inicio-ejemplo[hidden]{display:none}\n.erlen-inicio-ejemplo.con-arte{gap:var(--erlen-esp-2);padding:var(--erlen-esp-2);min-width:0}\n.erlen-inicio-ejemplo-datos{display:flex;flex-direction:column;gap:var(--erlen-esp-1);min-width:0;padding:0 var(--erlen-esp-2)}\n.erlen-inicio-arte{display:grid;place-items:center;height:120px;padding:var(--erlen-esp-3);border-radius:calc(var(--erlen-radio-tarjeta) - var(--erlen-esp-2));background:var(--erlen-verde-suave);box-shadow:inset 0 0 0 1px var(--erlen-vidrio-contorno);color:var(--erlen-verde);font:italic 400 24px/1.2 var(--erlen-font-titulo);text-align:center}\n.erlen-inicio-arte svg{max-width:100%;max-height:100%}\n.erlen-inicio-ejemplo.con-arte .erlen-inicio-arte{width:100%;height:auto;aspect-ratio:16/9;padding:var(--erlen-esp-2);overflow:hidden}\n.erlen-inicio-arte img{display:block;width:100%;height:100%;object-fit:contain}\n.erlen-inicio-ejemplo h2{font:400 24px/1.2 var(--erlen-font-titulo)}\n.erlen-inicio-ejemplo.con-arte h2{font:700 var(--erlen-texto-ui)/1.25 var(--erlen-font-ui);overflow-wrap:anywhere}\n.erlen-inicio-ejemplo p,.erlen-inicio-tarjeta p{color:var(--erlen-tinta-suave);line-height:1.6;font-size:var(--erlen-texto-sm)}\n.erlen-inicio-solo-lectura{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n.erlen-inicio-ejemplo .erlen-inicio-boton{align-self:flex-start;margin-top:auto}\n.erlen-inicio-ejemplo.con-arte .erlen-inicio-boton{margin:0 var(--erlen-esp-2) var(--erlen-esp-2);align-self:flex-start}\n\n/* Biblioteca y recientes. */\n.erlen-inicio-controles{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,220px);gap:var(--erlen-esp-3);max-width:720px}\n.erlen-inicio-nota{margin-top:var(--erlen-esp-3)!important;font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-inicio-biblioteca{grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:var(--erlen-esp-4)}\n.erlen-inicio-tarjeta{display:grid;grid-template-columns:88px minmax(0,1fr);gap:var(--erlen-esp-3);min-width:0;padding:var(--erlen-esp-2);overflow:hidden}\n.erlen-inicio-miniatura{display:flex;flex-direction:column;justify-content:space-between;gap:var(--erlen-esp-2);min-width:0;padding:var(--erlen-esp-2);border-radius:calc(var(--erlen-radio-tarjeta) - var(--erlen-esp-2));background:var(--erlen-superficie-2);box-shadow:inset 0 0 0 1px var(--erlen-vidrio-contorno)}\n.erlen-inicio-miniatura small{font:700 var(--erlen-texto-xs)/1 var(--erlen-font-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--erlen-tinta-suave)}\n.erlen-inicio-miniatura span{font:700 var(--erlen-texto-sm)/1.25 var(--erlen-font-ui);color:var(--erlen-tinta);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}\n.erlen-inicio-tarjeta-cuerpo{display:flex;flex-direction:column;justify-content:center;gap:var(--erlen-esp-1);min-width:0}\n.erlen-inicio-tarjeta h3{font:700 var(--erlen-texto-ui)/1.3 var(--erlen-font-ui);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}\n.erlen-inicio-tarjeta .erlen-inicio-acciones{gap:var(--erlen-esp-1)}\n.erlen-inicio-tarjeta .erlen-inicio-boton{min-height:36px;padding:0 var(--erlen-esp-2);font-size:var(--erlen-texto-xs)}\n.erlen-inicio-vacio{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:var(--erlen-esp-3);padding:var(--erlen-esp-7) var(--erlen-esp-5);border:1px dashed var(--erlen-linea-fuerte);border-radius:var(--erlen-radio-tarjeta);background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio);box-shadow:var(--erlen-vidrio-relieve);text-align:center}\n/* Mey (diseno/mey.mjs) en un hueco de 96 px: <erlen-mey> elige 6 px por celda (96×108). */\n.erlen-inicio-mey{display:block;width:96px}\n.erlen-inicio-mey svg{display:block;width:100%;height:auto}\n.erlen-inicio-vacio h3{font:400 24px/1.2 var(--erlen-font-titulo)}\n.erlen-inicio-vacio p{max-width:52ch;color:var(--erlen-tinta-suave)}\n.erlen-inicio-recientes{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:var(--erlen-esp-2);margin-top:var(--erlen-esp-4)!important}\n.erlen-inicio .erlen-inicio-boton.reciente{flex-direction:column;align-items:flex-start;width:100%;min-height:56px;padding:var(--erlen-esp-2) var(--erlen-esp-3);color:var(--erlen-tinta);text-align:left;font-weight:400}\n.erlen-inicio-boton.reciente strong{font-weight:700;overflow-wrap:anywhere}\n.erlen-inicio-boton.reciente small{font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-inicio-enlace-texto{font-size:var(--erlen-texto-sm)}\n.erlen-inicio-pie{display:flex;align-items:center;justify-content:space-between;gap:var(--erlen-esp-3);flex-wrap:wrap;margin-top:var(--erlen-esp-6);padding-top:var(--erlen-esp-4);border-top:1px solid var(--erlen-vidrio-contorno);font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-inicio-activo{display:inline-flex;align-items:center;gap:6px;color:var(--erlen-verde);font-weight:700}\n.erlen-inicio-activo::before{content:\"\";width:7px;height:7px;border-radius:50%;background:currentColor}\n/* Sin guardado automático (guardado:'sesion' o 'explicito'): punto hueco y color neutro, para que no parezca un estado «activo». */\n.erlen-inicio-activo.sesion{color:var(--erlen-tinta-suave)}\n.erlen-inicio-activo.sesion::before{background:transparent;box-shadow:inset 0 0 0 1.5px currentColor}\n.erlen-inicio-acerca{display:flex;flex-direction:column;gap:var(--erlen-esp-3);max-width:72ch}\n.erlen-inicio-acerca h2{font:400 24px/1.2 var(--erlen-font-titulo)}\n.erlen-inicio-acerca ul{display:flex;flex-direction:column;gap:var(--erlen-esp-2)}\n\n@media (max-width:1190px){\n .erlen-inicio-marco{grid-template-columns:190px minmax(0,1fr)}\n .erlen-inicio-lateral{padding-inline:var(--erlen-esp-3)}\n .erlen-inicio-contenido{padding:var(--erlen-esp-6) var(--erlen-esp-5) var(--erlen-esp-7)}\n .erlen-inicio-cabecera{padding:0 var(--erlen-esp-5)}\n .erlen-inicio-local{display:none}\n}\n@media (max-width:760px){\n .erlen-inicio-marco{display:block}\n .erlen-inicio-lateral{position:static;height:auto;padding:var(--erlen-esp-4) var(--erlen-esp-4) var(--erlen-esp-2);border-right:0;border-bottom:1px solid var(--erlen-vidrio-contorno);box-shadow:inset 0 -1px 0 var(--erlen-vidrio-borde)}\n .erlen-inicio-marca{padding:0 0 var(--erlen-esp-2)}\n /* La fila de navegación se desplaza en horizontal y recorta lo que sobresale: un poco de margen interior y un relieve\n    corto en la lente para que su sombra no se corte en un rectángulo. */\n .erlen-inicio-nav{flex-direction:row;overflow-x:auto;scrollbar-width:none;padding:var(--erlen-esp-1);margin:calc(-1 * var(--erlen-esp-1))}\n .erlen-inicio .erlen-inicio-enlace[aria-current=page]{box-shadow:inset 0 1px 0 var(--erlen-vidrio-borde),0 1px 3px var(--erlen-vidrio-contorno)}\n .erlen-inicio .erlen-inicio-enlace{flex:none;white-space:nowrap}\n .erlen-inicio-lateral-pie{flex-direction:row;flex-wrap:wrap;align-items:center;padding-top:0;margin-top:0}\n .erlen-inicio-estado{display:none}\n .erlen-inicio .erlen-inicio-titulo{font-size:38px}\n .erlen-inicio-controles{grid-template-columns:1fr}\n .erlen-inicio-cabecera{position:relative;min-height:56px;padding-block:var(--erlen-esp-2)}\n .erlen-inicio-cabecera>span{display:none}\n /* Sin menú de suite ni «Continuar» (app fuera del portal, file://) la cabecera no tendría nada visible: se retira en\n    vez de dejar una franja de cristal vacía entre la barra lateral y el contenido (2.0.1). */\n .erlen-inicio-cabecera:not(:has(.erlen-inicio-cabecera-acciones>:not(.erlen-inicio-local,.erlen-inicio-suite:empty))){display:none}\n .erlen-inicio-cabecera-acciones{width:100%;justify-content:flex-end;gap:var(--erlen-esp-2)}\n}\n.erlen-inicio-cabecera-acciones{min-width:0;flex-wrap:wrap;justify-content:flex-end}\n.erlen-inicio-cabecera-acciones>*{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}\n.erlen-inicio-aviso{margin:0 0 var(--erlen-esp-5)!important;padding:var(--erlen-esp-3) var(--erlen-esp-4);border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-pequeno);background:var(--erlen-ambar-suave);color:var(--erlen-tinta)}\n.erlen-inicio-aviso.error{background:var(--erlen-peligro-suave);border-color:var(--erlen-peligro);color:var(--erlen-tinta)}\n/* El tamaño táctil depende del espacio y de la entrada disponible, también en\n   equipos híbridos. La regla posterior a las tarjetas cubre sus acciones densas. */\n@media (max-width:920px),(any-pointer:coarse){\n .erlen-inicio .erlen-inicio-boton{min-height:var(--erlen-alto-control);min-width:var(--erlen-alto-control)}\n}\n@media (max-width:600px){\n .erlen-inicio-rejilla{grid-template-columns:1fr}\n .erlen-inicio-coleccion{gap:var(--erlen-esp-3)}\n .erlen-inicio-tarjeta{grid-template-columns:72px minmax(0,1fr);gap:var(--erlen-esp-2)}\n .erlen-inicio-miniatura small{display:none}\n .erlen-inicio-tarjeta p{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n .erlen-inicio .erlen-inicio-nueva{flex-direction:row;justify-content:flex-start;min-height:104px;text-align:left}\n .erlen-inicio-ejemplo.con-arte{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;column-gap:var(--erlen-esp-3);min-height:112px}\n .erlen-inicio-ejemplo.con-arte .erlen-inicio-arte{grid-row:1/3;align-self:stretch;height:100%;aspect-ratio:auto}\n .erlen-inicio-ejemplo-datos{padding:0;align-self:end}\n .erlen-inicio-ejemplo.con-arte .erlen-inicio-boton{margin:var(--erlen-esp-1) 0 0;justify-self:start}\n /* Primera pantalla en móvil (2.10.10): aviso, presentación y acciones ocupaban todo el alto y el primer objetivo\n    quedaba bajo el pliegue. Se compacta lo que rodea a la colección sin quitar contenido: el aviso conserva su texto,\n    los botones de la colección caben en una fila y la etiqueta «Con tus datos», idéntica en cada objetivo, se oculta\n    (el título de la colección ya la sostiene). A 375×812 el primer objetivo entra completo. */\n .erlen-inicio-contenido{padding-top:var(--erlen-esp-4)}\n .erlen-inicio .erlen-inicio-aviso{margin-bottom:var(--erlen-esp-4)!important;padding:var(--erlen-esp-2) var(--erlen-esp-3);font-size:var(--erlen-texto-sm);line-height:1.4}\n .erlen-inicio .erlen-inicio-titulo{margin:var(--erlen-esp-2) 0;font-size:32px}\n .erlen-inicio .erlen-inicio-lead{line-height:1.5}\n .erlen-inicio-bienvenida{gap:var(--erlen-esp-3)}\n .erlen-inicio-meta{margin-top:var(--erlen-esp-4);padding-top:var(--erlen-esp-3)}\n .erlen-inicio-meta .erlen-inicio-acciones .erlen-inicio-boton{padding:0 var(--erlen-esp-3)}\n .erlen-inicio .erlen-inicio-nueva{min-height:80px}\n .erlen-inicio-objetivo{gap:var(--erlen-esp-1);padding:var(--erlen-esp-3) var(--erlen-esp-4)}\n .erlen-inicio-objetivo .erlen-inicio-eyebrow{display:none}\n}\n@media (max-width:360px){.erlen-inicio-contenido{padding-inline:14px}.erlen-inicio-cabecera{padding:0 14px}}\n@media (prefers-reduced-motion:reduce){.erlen-inicio *{transition:none!important}}\n/* Colores forzados: la lente del enlace actual y la cabecera se marcan con el borde del sistema. */\n@media (forced-colors:active){.erlen-inicio .erlen-inicio-enlace[aria-current=page]{border-color:Highlight}.erlen-inicio-cabecera::before{background:Canvas}}\n@media print{.erlen-inicio{display:none}}\n/* Inicio mineral: acciones claras, rail compacto y superficies de lectura estables. */\n.erlen-inicio-marca{font-weight:600;letter-spacing:-.04em}\n.erlen-inicio-titulo{font-weight:600;letter-spacing:-.04em;line-height:1.15}\n.erlen-inicio-titulo em{font-style:normal;color:var(--erlen-verde)}\n.erlen-inicio-lateral{background:var(--erlen-vidrio);box-shadow:none}\n.erlen-inicio-boton,.erlen-inicio-enlace{border-radius:var(--erlen-radio-campo)}\n.erlen-inicio-ejemplo{background:var(--erlen-superficie);box-shadow:none;border-color:var(--erlen-linea)}\n.erlen-inicio-ejemplo:hover{box-shadow:var(--erlen-sombra-tarjeta)}\n\n/* Fondo e iconos de las tarjetas de inicio; las miniaturas de archivos se conservan. */\n:root[data-erlen-estilo] .erlen-inicio-arte{background:var(--erlen-icono-placa),var(--erlen-cromo-acento);border-radius:var(--erlen-icono-radio);box-shadow:var(--erlen-icono-relieve)}\n:root[data-erlen-estilo] .erlen-inicio-cabecera::before{background:var(--erlen-vidrio-reflejo),var(--erlen-cromo-trama),var(--erlen-vidrio-fuerte)}\n",
  "src/diseno/licencias/GUST-FL.txt": "% This is version 1.0, dated 22 June 2009, of the GUST Font License.\r\n% (GUST is the Polish TeX Users Group, https://www.gust.org.pl)\r\n%\r\n% For the most recent version of this license see\r\n% https://www.gust.org.pl/fonts/licenses/GUST-FONT-LICENSE.txt\r\n% or\r\n% https://tug.org/fonts/licenses/GUST-FONT-LICENSE.txt\r\n%\r\n% This work may be distributed and/or modified under the conditions\r\n% of the LaTeX Project Public License, either version 1.3c of this\r\n% license or (at your option) any later version.\r\n% \r\n% Please also observe the following clause:\r\n% 1) it is requested, but not legally required, that derived works be\r\n%    distributed only after changing the names of the fonts comprising this\r\n%    work and given in an accompanying \"manifest\", and that the\r\n%    files comprising the Work, as listed in the manifest, also be given\r\n%    new names. Any exceptions to this request are also given in the\r\n%    manifest.\r\n%    \r\n%    We recommend the manifest be given in a separate file named\r\n%    MANIFEST-<fontid>.txt, where <fontid> is some unique identification\r\n%    of the font family. If a separate \"readme\" file accompanies the Work, \r\n%    we recommend a name of the form README-<fontid>.txt.\r\n%\r\n% The latest version of the LaTeX Project Public License is in\r\n% https://www.latex-project.org/lppl.txt and version 1.3c or later\r\n% is part of all distributions of LaTeX version 2006/05/20 or later.\r\n\r\n",
  "src/diseno/licencias/MIT.txt": "MIT License\n\nCopyright (c) 2026 Erlen contributors\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
  "src/diseno/licencias/OFL.txt": "Copyright (C) Authors of original metafont fonts:\nDonald Ervin Knuth (cm, concrete fonts)\n1995, 1996, 1997 J\"org Knappen, 1990, 1992 Norbert Schwarz (ec fonts)\n1992-2006 A.Khodulev, O.Lapko, A.Berdnikov, V.Volovich (lh fonts)\n1997-2005 Claudio Beccari (cb greek fonts)\n2002 FUKUI Rei (tipa fonts)\n2003-2005 Han The Thanh (Vietnamese fonts)\n1996-2005 Walter Schmidt (cmbright fonts)\n\nCopyright (C) 2003-2009, Andrey V. Panov (panov@canopus.iacp.dvo.ru),\nwith Reserved Font Family Name \"Computer Modern Unicode fonts\".\n\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\nThis license is copied below, and is also available with a FAQ at:\nhttp://scripts.sil.org/OFL\n\n\n-----------------------------------------------------------\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\n-----------------------------------------------------------\n\nPREAMBLE\nThe goals of the Open Font License (OFL) are to stimulate worldwide\ndevelopment of collaborative font projects, to support the font creation\nefforts of academic and linguistic communities, and to provide a free and\nopen framework in which fonts may be shared and improved in partnership\nwith others.\n\nThe OFL allows the licensed fonts to be used, studied, modified and\nredistributed freely as long as they are not sold by themselves. The\nfonts, including any derivative works, can be bundled, embedded, \nredistributed and/or sold with any software provided that any reserved\nnames are not used by derivative works. The fonts and derivatives,\nhowever, cannot be released under any other type of license. The\nrequirement for fonts to remain under this license does not apply\nto any document created using the fonts or their derivatives.\n\nDEFINITIONS\n\"Font Software\" refers to the set of files released by the Copyright\nHolder(s) under this license and clearly marked as such. This may\ninclude source files, build scripts and documentation.\n\n\"Reserved Font Name\" refers to any names specified as such after the\ncopyright statement(s).\n\n\"Original Version\" refers to the collection of Font Software components as\ndistributed by the Copyright Holder(s).\n\n\"Modified Version\" refers to any derivative made by adding to, deleting,\nor substituting -- in part or in whole -- any of the components of the\nOriginal Version, by changing formats or by porting the Font Software to a\nnew environment.\n\n\"Author\" refers to any designer, engineer, programmer, technical\nwriter or other person who contributed to the Font Software.\n\nPERMISSION & CONDITIONS\nPermission is hereby granted, free of charge, to any person obtaining\na copy of the Font Software, to use, study, copy, merge, embed, modify,\nredistribute, and sell modified and unmodified copies of the Font\nSoftware, subject to the following conditions:\n\n1) Neither the Font Software nor any of its individual components,\nin Original or Modified Versions, may be sold by itself.\n\n2) Original or Modified Versions of the Font Software may be bundled,\nredistributed and/or sold with any software, provided that each copy\ncontains the above copyright notice and this license. These can be\nincluded either as stand-alone text files, human-readable headers or\nin the appropriate machine-readable metadata fields within text or\nbinary files as long as those fields can be easily viewed by the user.\n\n3) No Modified Version of the Font Software may use the Reserved Font\nName(s) unless explicit written permission is granted by the corresponding\nCopyright Holder. This restriction only applies to the primary font name as\npresented to the users.\n\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\nSoftware shall not be used to promote, endorse or advertise any\nModified Version, except to acknowledge the contribution(s) of the\nCopyright Holder(s) and the Author(s) or with their explicit written\npermission.\n\n5) The Font Software, modified or unmodified, in part or in whole,\nmust be distributed entirely under this license, and must not be\ndistributed under any other license. The requirement for fonts to\nremain under this license does not apply to any document created\nusing the Font Software.\n\nTERMINATION\nThis license becomes null and void if any of the above conditions are\nnot met.\n\nDISCLAIMER\nTHE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\nOTHER DEALINGS IN THE FONT SOFTWARE.\n",
  "src/diseno/marco.css": "/* Mey vive encima de la página, sin reservar huecos ni interceptar controles ajenos. */\n.mey-libre{position:fixed;left:0;top:0;z-index:501;display:block;width:auto;height:auto;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:var(--erlen-radio-pequeno);background:transparent;color:var(--erlen-tinta);box-shadow:none;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;will-change:transform;transition:none;line-height:0}\n.mey-libre:hover{background:transparent}.mey-libre[data-arrastrando]{cursor:grabbing}.mey-libre svg{display:block;pointer-events:none;max-width:none}.mey-libre:focus-visible,.mey-libre-pausa:focus-visible{outline:3px solid var(--erlen-foco);outline-offset:3px}\n.mey-libre-pausa{position:fixed;right:16px;bottom:12px;z-index:501;min-height:44px;padding:8px 14px;border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-campo);background:var(--erlen-vidrio-fuerte);color:var(--erlen-tinta-suave);font:500 var(--erlen-texto-xs)/1.4 var(--erlen-font-ui);cursor:pointer}\n.mey-libre-pausa--integrada{position:static;flex:0 0 auto;white-space:nowrap;z-index:auto}\n@media print{.mey-libre,.mey-libre-pausa{display:none}}\n\n/* Las ilustraciones de estados vacíos ceden ante la presencia compartida. */\nhtml[data-erlen-mey-presencia] .recientes-vacio .mey{display:none}\n\n/* Arte elegido para Mey: cambia el material, no sus poses, atuendo ni movimiento.\n   Los pigmentos conservan la paleta personal. Los ojos siguen planos y nítidos.\n   El tile de marca y el favicon de 16 × 16 quedan fuera de estos tratamientos. */\n:root[data-erlen-estilo]{--mey-arte-filtro:none;--mey-arte-render:auto;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-contorno:var(--erlen-tinta);--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"glassmorfismo\"]{--mey-arte-filtro:drop-shadow(0 -1px 0 var(--erlen-superficie)) drop-shadow(0 2px 2px var(--erlen-linea-fuerte));--mey-arte-radio:.12px;--mey-arte-trazo:.07px;--mey-arte-contorno:var(--erlen-superficie);--mey-arte-vidrio:.78;--mey-arte-banda:.9}\n:root[data-erlen-estilo=\"neumorfismo\"]{--mey-arte-filtro:drop-shadow(-2px -2px 1px var(--erlen-superficie)) drop-shadow(2px 2px 1px var(--erlen-linea-fuerte));--mey-arte-radio:.08px;--mey-arte-trazo:.035px;--mey-arte-contorno:var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"neobrutalismo\"]{--mey-arte-filtro:drop-shadow(3px 3px 0 var(--erlen-tinta));--mey-arte-render:crispEdges;--mey-arte-trazo:.16px}\n:root[data-erlen-estilo=\"minimalismo\"]{--mey-arte-render:crispEdges;--mey-arte-trazo:.05px;--mey-arte-contorno:var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"art-deco\"]{--mey-arte-filtro:drop-shadow(1px 1px 0 var(--erlen-ambar));--mey-arte-render:crispEdges;--mey-arte-trazo:.10px;--mey-arte-contorno:var(--erlen-ambar);--mey-arte-banda:.94}\n:root[data-erlen-estilo=\"claymorfismo\"]{--mey-arte-filtro:drop-shadow(-1px -1px 1px var(--erlen-superficie)) drop-shadow(0 3px 2px var(--erlen-linea-fuerte));--mey-arte-radio:.24px;--mey-arte-trazo:.025px;--mey-arte-contorno:var(--erlen-superficie)}\n:root[data-erlen-estilo=\"bauhaus\"]{--mey-arte-filtro:drop-shadow(3px 0 0 var(--erlen-cromo-luz)) drop-shadow(0 3px 0 var(--erlen-verde));--mey-arte-render:crispEdges;--mey-arte-trazo:.20px}\n:root[data-erlen-estilo=\"frutiger-aero\"]{--mey-arte-filtro:drop-shadow(0 -2px 0 var(--erlen-superficie)) drop-shadow(0 2px 1px var(--erlen-verde-suave));--mey-arte-radio:.16px;--mey-arte-trazo:.10px;--mey-arte-contorno:var(--erlen-superficie);--mey-arte-vidrio:.9;--mey-arte-banda:1}\n:root[data-erlen-estilo=\"esqueuomorfismo\"]{--mey-arte-filtro:drop-shadow(-1px -1px 0 var(--erlen-superficie)) drop-shadow(1.5px 1.5px .6px var(--erlen-linea-fuerte));--mey-arte-radio:.045px;--mey-arte-trazo:.10px;--mey-arte-contorno:var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"retro-digital\"]{--mey-arte-filtro:drop-shadow(-1px -1px 0 var(--erlen-superficie)) drop-shadow(2px 2px 0 var(--erlen-linea-fuerte));--mey-arte-render:crispEdges;--mey-arte-trazo:.08px}\n:root[data-erlen-estilo=\"y2k\"]{--mey-arte-filtro:drop-shadow(-1px -1px 0 var(--erlen-superficie)) drop-shadow(2px 1px 1px var(--erlen-linea-fuerte));--mey-arte-radio:.15px;--mey-arte-trazo:.085px;--mey-arte-contorno:var(--erlen-superficie);--mey-arte-vidrio:.95;--mey-arte-banda:.75}\n:root[data-erlen-estilo=\"cyberpunk\"]{--mey-arte-filtro:drop-shadow(0 0 3px var(--erlen-verde)) drop-shadow(0 0 6px var(--erlen-verde-suave));--mey-arte-render:crispEdges;--mey-arte-trazo:.13px;--mey-arte-contorno:var(--erlen-verde);--mey-arte-vidrio:.8;--mey-arte-banda:.9}\n:root[data-erlen-estilo=\"blueprint\"]{--mey-arte-render:crispEdges;--mey-arte-trazo:.075px;--mey-arte-contorno:var(--erlen-verde);--mey-arte-vidrio:.18;--mey-arte-banda:.18;--mey-arte-guion:.45 .15;--mey-arte-ojos:var(--erlen-tinta)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]){filter:var(--mey-arte-filtro);shape-rendering:var(--mey-arte-render)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) :is([data-mey-pigmento=\"g\"],[data-mey-pigmento=\"w\"]){rx:var(--mey-arte-radio);ry:var(--mey-arte-radio);stroke:var(--mey-arte-contorno);stroke-width:var(--mey-arte-trazo);stroke-dasharray:var(--mey-arte-guion);stroke-linejoin:round;paint-order:stroke fill}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) [data-mey-pigmento=\"g\"]{fill-opacity:var(--mey-arte-vidrio)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) [data-mey-pigmento=\"g\"]:nth-of-type(3n){fill-opacity:var(--mey-arte-banda)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) [data-mey-pigmento=\"e\"]{fill:var(--mey-arte-ojos);fill-opacity:1;stroke:none;rx:0;ry:0;shape-rendering:crispEdges}\n/* Un acabado quieto no añade relojes, flashes ni desplazamientos. Los respaldos\n   de legibilidad devuelven los pigmentos planos y los píxeles originales. */\n:root:root[data-erlen-estilo][data-erlen-material=\"solido\"]{--mey-arte-filtro:none;--mey-arte-render:crispEdges;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}\n@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active),print{:root:root[data-erlen-estilo]{--mey-arte-filtro:none;--mey-arte-render:crispEdges;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}}\n@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root:root[data-erlen-estilo]{--mey-arte-filtro:none;--mey-arte-render:crispEdges;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}}\n\n/* Sprites artísticos: contornos conectados, vidrio/líquido completos y ojos planos.\n   No son filtros sobre la cuadrícula: Original y los respaldos usan los píxeles. */\n:root[data-erlen-estilo]{--mey-vector-visible:inline;--mey-pixel-visible:none;--mey-vector-angular:inline;--mey-vector-suave:none;--mey-vector-trazo:.16;--mey-vector-borde:var(--erlen-mey-ojos);--mey-vector-ojos:var(--erlen-mey-ojos)}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"neumorfismo\"],[data-erlen-estilo=\"minimalismo\"],[data-erlen-estilo=\"claymorfismo\"],[data-erlen-estilo=\"frutiger-aero\"],[data-erlen-estilo=\"esqueuomorfismo\"],[data-erlen-estilo=\"y2k\"]){--mey-vector-angular:none;--mey-vector-suave:inline}\n:root[data-erlen-estilo=\"glassmorfismo\"]{--mey-vector-trazo:.35;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"neumorfismo\"]{--mey-vector-trazo:.2;--mey-vector-borde:var(--erlen-superficie)}\n:root[data-erlen-estilo=\"neobrutalismo\"]{--mey-vector-trazo:.8;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"minimalismo\"]{--mey-vector-trazo:.3;--mey-vector-borde:var(--erlen-tinta);--mey-vector-ojos:var(--erlen-tinta);--mey-arte-render:auto}\n:root[data-erlen-estilo=\"art-deco\"]{--mey-vector-trazo:.5;--mey-vector-borde:var(--erlen-ambar)}\n:root[data-erlen-estilo=\"claymorfismo\"]{--mey-vector-trazo:.15;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"bauhaus\"]{--mey-vector-trazo:.6;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"frutiger-aero\"]{--mey-vector-trazo:.3;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"esqueuomorfismo\"]{--mey-vector-trazo:.4;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"retro-digital\"]{--mey-vector-trazo:.4;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"y2k\"]{--mey-vector-trazo:.45;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"cyberpunk\"]{--mey-vector-trazo:.4;--mey-vector-borde:var(--erlen-verde);--mey-vector-ojos:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"blueprint\"]{--mey-vector-trazo:.3;--mey-vector-borde:var(--erlen-verde);--mey-vector-ojos:var(--erlen-tinta)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) .mey-ilustracion{display:var(--mey-vector-visible)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) rect[data-mey-pigmento]{display:var(--mey-pixel-visible)}\n:root[data-erlen-estilo] .mey-vector[data-mey-vector=\"angular\"]{display:var(--mey-vector-angular)}\n:root[data-erlen-estilo] .mey-vector[data-mey-vector=\"suave\"]{display:var(--mey-vector-suave)}\n:root[data-erlen-estilo] .mey-vector-contorno{stroke:var(--mey-vector-borde);stroke-width:var(--mey-vector-trazo);stroke-linejoin:round;fill:none}\n:root[data-erlen-estilo] .mey-vector [data-mey-material]{stroke:var(--mey-vector-borde);stroke-width:calc(var(--mey-vector-trazo)*.55);stroke-linejoin:round;paint-order:stroke fill}\n:root[data-erlen-estilo] .mey-vector [data-mey-material=\"e\"]{fill:var(--mey-vector-ojos);stroke:none;opacity:1}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"neumorfismo\"],[data-erlen-estilo=\"claymorfismo\"],[data-erlen-estilo=\"frutiger-aero\"],[data-erlen-estilo=\"esqueuomorfismo\"],[data-erlen-estilo=\"y2k\"]) .mey-material-luz{stop-color:var(--erlen-mey-reflejo)}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"neumorfismo\"],[data-erlen-estilo=\"claymorfismo\"],[data-erlen-estilo=\"frutiger-aero\"],[data-erlen-estilo=\"esqueuomorfismo\"],[data-erlen-estilo=\"y2k\"]) .mey-material-sombra{stop-color:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"minimalismo\"] .mey-vector [data-mey-material=\"g\"]{fill:var(--erlen-superficie)}\n:root[data-erlen-estilo=\"cyberpunk\"] .mey-vector [data-mey-material=\"g\"]{fill:var(--erlen-espacio-fondo)}\n:root[data-erlen-estilo=\"cyberpunk\"] .mey-vector [data-mey-material=\"w\"]{fill:var(--erlen-espacio-fondo);stroke:var(--erlen-verde);stroke-width:.35}\n:root[data-erlen-estilo=\"blueprint\"] .mey-vector :is([data-mey-material=\"g\"],[data-mey-material=\"w\"]){fill:none;stroke:var(--erlen-verde);stroke-width:.25;stroke-dasharray:none}\n:root[data-erlen-estilo=\"neobrutalismo\"] .mey-vector :is([data-mey-material],.mey-vector-contorno){stroke-linejoin:miter}\n:root[data-erlen-estilo] [data-mey-decoracion]{pointer-events:none;fill:none;stroke:none}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"frutiger-aero\"]) [data-mey-decoracion=\"cristal\"]{display:inline;fill:var(--erlen-mey-reflejo);opacity:.75}\n:root[data-erlen-estilo=\"frutiger-aero\"] [data-mey-decoracion=\"aero\"]{display:inline;stroke:var(--erlen-mey-reflejo);stroke-width:.35;fill:none}\n:root[data-erlen-estilo=\"art-deco\"] [data-mey-decoracion=\"deco\"]{display:inline;stroke:var(--erlen-ambar);stroke-width:.25}\n:root[data-erlen-estilo=\"bauhaus\"] [data-mey-decoracion=\"bauhaus\"]{display:inline;fill:var(--erlen-ambar);stroke:var(--erlen-mey-ojos);stroke-width:.25}\n:root[data-erlen-estilo=\"bauhaus\"] [data-mey-decoracion=\"bauhaus\"] path:first-of-type{fill:var(--erlen-cromo-luz)}\n:root[data-erlen-estilo=\"y2k\"] [data-mey-decoracion=\"metal\"]{display:inline;fill:var(--erlen-mey-reflejo);opacity:.85}\n:root[data-erlen-estilo=\"cyberpunk\"] [data-mey-decoracion=\"circuito\"]{display:inline;stroke:var(--erlen-verde);stroke-width:.35}\n:root[data-erlen-estilo=\"blueprint\"] [data-mey-decoracion=\"plano\"]{display:inline;stroke:var(--erlen-verde);stroke-width:.15;opacity:.7}\n:root[data-erlen-estilo=\"retro-digital\"] [data-mey-decoracion=\"retro\"]{display:inline;stroke:var(--erlen-mey-ojos);stroke-width:.35;opacity:.4}\n:root:root[data-erlen-estilo][data-erlen-material=\"solido\"]{--mey-vector-visible:none;--mey-pixel-visible:inline}\n@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active),print{:root:root[data-erlen-estilo]{--mey-vector-visible:none;--mey-pixel-visible:inline}}\n@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root:root[data-erlen-estilo]{--mey-vector-visible:none;--mey-pixel-visible:inline}}\n\n/* Erlen Suite · paquete de diseño 2.2.0 · marco común de las apps (docs/COHERENCIA-APPS.md §4).\n   Estructura compartida de mountMarco (suite-marco.mjs): cabecera, cinta, cuerpo con navegación,\n   trabajo y detalles, y pie. Solo cromo: el área de trabajo del usuario se queda opaca\n   (var(--erlen-superficie) / var(--erlen-papel)), nunca con vidrio. Ningún color literal aquí:\n   todo es var(--erlen-*) de tokens.css, que ya trae los respaldos de accesibilidad del material\n   (prefers-reduced-transparency, prefers-contrast:more, forced-colors,\n   [data-erlen-material=\"solido\"] e impresión). Licencia: licencias/MIT.txt */\n.erlen-marco{position:relative;display:flex;flex-direction:column;min-height:0;height:100dvh;overflow:hidden;background:var(--erlen-papel);color:var(--erlen-tinta)}\n/* Solo el área de trabajo cede espacio: cabecera, cinta y pie nunca se comprimen ni solapan. */\n.erlen-marco>.erlen-app-header,.erlen-marco>.erlen-marco-cinta,.erlen-marco>.erlen-app-footer{flex:none}\n.erlen-marco :focus-visible{outline:3px solid var(--erlen-foco);outline-offset:3px}\n/* Cabecera: marca, nombre, menú de suite, título, estado y acciones. El desenfoque vive en el\n   ::before, nunca en la cabecera: un backdrop-filter en un antepasado recoloca el menú fijo de\n   <erlen-suite-nav> (docs/COHERENCIA-APPS.md §0.1). */\n.erlen-marco>.erlen-app-header{position:relative;z-index:2;display:flex;align-items:center;flex-wrap:wrap;gap:var(--erlen-esp-3) var(--erlen-esp-4);min-height:60px;padding:var(--erlen-esp-2) var(--erlen-esp-5);border-bottom:1px solid var(--erlen-vidrio-contorno)}\n.erlen-marco>.erlen-app-header::before{content:\"\";position:absolute;inset:0;z-index:-1;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro);pointer-events:none}\n.erlen-marco-marca{display:inline-flex;align-items:center;gap:var(--erlen-esp-2);min-height:44px;padding:var(--erlen-esp-1) var(--erlen-esp-2);border:1px solid transparent;border-radius:var(--erlen-radio-capsula);background:transparent;color:var(--erlen-tinta);font:700 var(--erlen-texto-ui)/1.2 var(--erlen-font-ui);cursor:pointer}\n.erlen-marco-marca:hover{background:var(--erlen-vidrio-tinte)}\n.erlen-marco-marca svg{width:26px;height:26px;flex:none}\n.erlen-marco-marca .erlen-marco-marca-nombre{font-family:var(--erlen-font-titulo);font-size:var(--erlen-texto-lg);letter-spacing:-.3px}\n.erlen-marco-nombre{font-family:var(--erlen-font-titulo);font-size:var(--erlen-h1-app);font-weight:400;line-height:1.12;letter-spacing:-.4px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}\n/* El nombre de la app ocupa lo que mide su texto. base.css da a todo h1 de cabecera «flex:1 1 0%» y, sin esto, el nombre se\n   repartía a partes iguales el espacio libre con la tira de controles: a 1440 px el nombre era una caja de 631 px con 263 px\n   de texto y la tira (título, estado, acciones) se quedaba en 630 px y desbordaba (FEM, auditoría ux-simulacion E3). */\n.erlen-marco>.erlen-app-header .erlen-marco-nombre{flex:0 1 auto}\n.erlen-marco-suite{margin-left:auto;display:flex;align-items:center}\n/* Sin filas de más en escritorio: si no cabe, el desborde lo absorbe el título (elipsis) o la\n   tira gana scroll con degradado en el borde (data-desborde, lo vigila suite-marco.mjs).\n   Base 0 en la tira: con base auto su contenido decidía el salto de línea de la cabecera y la\n   tiraba a una segunda fila a 1024 px (analyze, data, projects, release, dft, spreadsheets). */\n.erlen-marco-controles{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--erlen-esp-3);flex:1 1 0%;min-width:0;overflow-x:auto;scrollbar-width:none;padding-block:var(--erlen-esp-1);margin-block:calc(var(--erlen-esp-1)*-1)}\n.erlen-marco-controles::-webkit-scrollbar{display:none}\n/* El nombre del documento no se reduce a 80 px, pero cuando falta ancho es el primero en ceder\n   (ver el bloque de escritorio más abajo). */\n.erlen-marco-titulo{flex:0 0 auto;max-width:clamp(160px,45%,28rem);display:flex;align-items:center;gap:var(--erlen-esp-2)}\n/* Estado: en móvil y tableta (≤ 920 px) no cede y la tira se desplaza con degradado en el borde\n   (data-desborde). En escritorio ver el bloque siguiente. */\n.erlen-marco-estado{flex:none;margin-inline-start:auto;display:flex;align-items:center;justify-content:flex-end;gap:var(--erlen-esp-2);font-size:var(--erlen-texto-sm);color:var(--erlen-tinta-suave);white-space:nowrap}\n.erlen-marco-acciones,.erlen-marco-utilidades{display:flex;align-items:center;flex:none;gap:var(--erlen-esp-2)}\n/* Escritorio (> 920 px, una sola fila): lo que cede cuando falta ancho son el nombre y el estado,\n   nunca las acciones. Con un proyecto abierto el nombre y el mensaje de estado medían lo que mide su\n   texto y empujaban fuera de la tira el botón principal (Guardar, Calcular, Descargar…). El nombre\n   cede primero (3 veces más rápido que el estado) y lleva elipsis con el nombre completo en el\n   tooltip; el estado se parte en las líneas que haga falta, sin recorte (WCAG 1.4.12): si el mensaje\n   es largo y el ancho escaso la cabecera crece en vez de cortar el texto. Los mensajes deben ser\n   cortos; el estado de la cabecera es un resumen y un aviso que importa (por ejemplo «ejemplo\n   simulado, no citable») debe vivir también en el cuerpo de la app. */\n@media (min-width:921px){\n .erlen-marco-titulo{flex:0 3 auto;min-width:min(6rem,100%)}\n .erlen-marco-titulo>*{min-width:0}\n .erlen-marco-estado{flex:0 1 auto;min-width:min(9rem,100%);white-space:normal}\n .erlen-marco-estado #status{min-width:0;white-space:normal}\n}\n.erlen-marco-acciones>*,.erlen-marco-utilidades>*{flex:none;white-space:nowrap}\n[data-desborde=\"fin\"]{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}\n[data-desborde=\"inicio\"]{-webkit-mask-image:linear-gradient(90deg,transparent,#000 28px);mask-image:linear-gradient(90deg,transparent,#000 28px)}\n[data-desborde=\"ambos\"]{-webkit-mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent)}\n@media (forced-colors:active),print{[data-desborde]{-webkit-mask-image:none;mask-image:none}}\n.erlen-marco-mey{flex:none}\n/* Variante decorativa (apps sin panel de ayuda): Mey solo mira, no recibe clics. */\nspan.erlen-marco-mey{pointer-events:none}\n/* Variante botón (con config.ayuda): abre el panel de Mey; objetivo táctil completo. */\nbutton.erlen-marco-mey{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 var(--erlen-esp-2);font:500 var(--erlen-texto-xs)/1.4 var(--erlen-font-ui);white-space:nowrap;border:1px solid transparent;border-radius:var(--erlen-radio-capsula);background:transparent;cursor:pointer}\nbutton.erlen-marco-mey:hover{background:var(--erlen-vidrio-tinte)}\n/* Cinta de herramientas a todo el ancho, debajo de la cabecera; su aspecto lo pone cinta.css. */\n.erlen-marco-cinta{flex:none;position:relative;z-index:1}\n.erlen-marco-sin-cinta>.erlen-marco-cinta{display:none}\n/* Cuerpo: 200 px de navegación · trabajo elástico · 310 px de detalles. La ausencia de un slot\n   elimina su columna (sin hueco). Solo los paneles se desplazan, no la ventana. */\n.erlen-marco-cuerpo{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);overflow:hidden}\n.erlen-marco-cuerpo.con-navegacion{grid-template-columns:200px minmax(0,1fr)}\n.erlen-marco-cuerpo.con-detalles{grid-template-columns:minmax(0,1fr) 310px}\n.erlen-marco-cuerpo.con-navegacion.con-detalles{grid-template-columns:200px minmax(0,1fr) 310px}\n.erlen-marco-navegacion{min-width:0;overflow:auto;background:var(--erlen-superficie-2);border-right:1px solid var(--erlen-linea)}\n.erlen-marco-cuerpo:not(.con-navegacion)>.erlen-marco-navegacion{display:none}\n.erlen-marco-trabajo{min-width:0;min-height:0;overflow:auto;background:var(--erlen-papel)}\n.erlen-marco-detalles{min-width:0;overflow:auto;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border-left:1px solid var(--erlen-linea)}\n.erlen-marco-cuerpo:not(.con-detalles)>.erlen-marco-detalles{display:none}\n.erlen-marco-suite:empty,.erlen-marco-titulo:empty,.erlen-marco-estado:empty,.erlen-marco-mey:empty,.erlen-marco-acciones:empty,.erlen-marco-utilidades:empty,.erlen-marco-navegacion:empty,.erlen-marco-detalles:empty{display:none}\n/* Pie: estado a la izquierda y enlaces de la suite a la derecha. */\n.erlen-marco>.erlen-app-footer{position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--erlen-esp-3);padding:var(--erlen-esp-4) var(--erlen-esp-5);border-top:1px solid var(--erlen-linea);background:var(--erlen-superficie);font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-marco>.erlen-app-footer:empty{display:none}\n/* Cajón accesible (navegación en móvil, detalles a ≤ 920 px): diálogo con máscara, foco atrapado,\n   Escape y restauración de foco; el resto queda inert mientras está abierto. */\n.erlen-marco-mascara{position:fixed;inset:0;z-index:40;background:color-mix(in srgb,var(--erlen-tinta) 22%,transparent)}\n.erlen-marco-cajon{position:fixed;z-index:41;top:0;bottom:0;right:0;width:min(340px,92vw);display:flex;flex-direction:column;gap:var(--erlen-esp-3);padding:var(--erlen-esp-4);overflow:auto;background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border-left:1px solid var(--erlen-vidrio-contorno);box-shadow:var(--erlen-vidrio-relieve),var(--erlen-sombra-panel);-webkit-backdrop-filter:var(--erlen-vidrio-filtro);backdrop-filter:var(--erlen-vidrio-filtro)}\n.erlen-marco-cajon[hidden]{display:none}\n.erlen-marco-cajon-izq{right:auto;left:0;border-left:0;border-right:1px solid var(--erlen-vidrio-contorno)}\n.erlen-marco-cajon-cabecera{display:flex;align-items:center;justify-content:space-between;gap:var(--erlen-esp-3)}\n.erlen-marco-cajon-titulo{min-width:0;overflow-wrap:anywhere;font:700 var(--erlen-texto-sm)/1.2 var(--erlen-font-ui);letter-spacing:.13em;text-transform:uppercase;color:var(--erlen-tinta-suave)}\n.erlen-marco-cajon-cerrar{min-height:44px;min-width:44px;padding:var(--erlen-esp-2);border:1px solid var(--erlen-linea-fuerte);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie);color:var(--erlen-tinta);cursor:pointer}\n.erlen-marco-cajon-cerrar:hover{background:var(--erlen-verde-suave)}\n.erlen-marco-cajon-cuerpo{min-height:0;overflow:auto}\n/* Panel de ayuda de Mey (suite-mey-ayuda.mjs, dentro del cajón): guía con comandos reales de\n   la cinta y los ejecuta solo al pulsar «Hazlo». Solo tokens --erlen-*. */\n.erlen-ayuda{display:flex;flex-direction:column;gap:var(--erlen-esp-3);font-family:var(--erlen-font-ui);color:var(--erlen-tinta)}\n.erlen-ayuda-cabecera{display:flex;align-items:flex-start;gap:var(--erlen-esp-3)}\n.erlen-ayuda-mascota{flex:none;width:48px}\n.erlen-ayuda-mascota svg{display:block;width:100%;height:auto}\n.erlen-ayuda-titulo{margin:0;font:700 var(--erlen-texto-ui)/1.2 var(--erlen-font-ui)}\n.erlen-ayuda-intro{margin:var(--erlen-esp-1) 0 0;font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-ayuda-buscar{display:flex;flex-direction:column;gap:var(--erlen-esp-1)}\n.erlen-ayuda-buscar-rotulo{font-size:var(--erlen-texto-xs);font-weight:600}\n.erlen-ayuda-entrada{min-height:44px;padding:0 var(--erlen-esp-3);border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie);color:inherit;font:inherit}\n.erlen-ayuda-estado{margin:0;min-height:1.2em;font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-ayuda-sincinta{margin:0;padding:var(--erlen-esp-2) var(--erlen-esp-3);border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-pequeno);background:var(--erlen-superficie-2);font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-ayuda-empieza{margin:0;font-size:var(--erlen-texto-xs);letter-spacing:.06em;text-transform:uppercase;color:var(--erlen-tinta-suave)}\n.erlen-ayuda-lista{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}\n.erlen-ayuda-fila{display:flex;flex-wrap:wrap;align-items:center;gap:var(--erlen-esp-1) var(--erlen-esp-2);padding:var(--erlen-esp-2) 0;border-top:1px solid var(--erlen-linea)}\n.erlen-ayuda-etiqueta{flex:1 1 auto;min-width:0;font-size:var(--erlen-texto-sm)}\n.erlen-ayuda-ruta,.erlen-ayuda-texto{flex-basis:100%;font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-ayuda-no{font-size:var(--erlen-texto-xs);color:var(--erlen-tinta-suave)}\n.erlen-ayuda-acciones{display:flex;gap:var(--erlen-esp-1);margin-inline-start:auto}\n.erlen-ayuda-acciones button{min-height:32px;padding:0 var(--erlen-esp-3);border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-capsula);background:var(--erlen-superficie);color:inherit;font:600 var(--erlen-texto-xs)/1.2 var(--erlen-font-ui);cursor:pointer}\n.erlen-ayuda-acciones button:hover{background:var(--erlen-verde-suave)}\n.erlen-ayuda-acciones .erlen-ayuda-hazlo{border-color:var(--erlen-verde);color:var(--erlen-verde)}\n.erlen-ayuda-acciones button:disabled{opacity:.5;cursor:default}\n@media (any-pointer:coarse),(max-width:920px){.erlen-ayuda-acciones button{min-height:var(--erlen-alto-control);min-width:var(--erlen-alto-control)}}\n/* Botón de cajón de navegación: solo en estrecho (≤ 920 px). */\n.erlen-marco-abrir-cajon{display:none;min-height:44px;min-width:44px;padding:var(--erlen-esp-2);border:1px solid var(--erlen-linea-fuerte);border-radius:var(--erlen-radio-campo);background:var(--erlen-superficie);color:var(--erlen-tinta);cursor:pointer}\n.erlen-marco-abrir-cajon:hover{background:var(--erlen-verde-suave)}\n/* 921–1180 px: columnas estrechas. */\n@media (max-width:1180px){\n .erlen-marco-cuerpo.con-navegacion{grid-template-columns:176px minmax(0,1fr)}\n .erlen-marco-cuerpo.con-detalles{grid-template-columns:minmax(0,1fr) 280px}\n .erlen-marco-cuerpo.con-navegacion.con-detalles{grid-template-columns:176px minmax(0,1fr) 280px}\n .erlen-marco>.erlen-app-header{padding:var(--erlen-esp-2) var(--erlen-esp-4)}\n .erlen-marco>.erlen-app-footer{padding:var(--erlen-esp-4)}\n}\n/* ≤ 920 px: una columna; navegación y detalles pasan a cajón. El trabajo conserva su scroll. */\n@media (max-width:920px){\n .erlen-marco-cuerpo,.erlen-marco-cuerpo.con-navegacion,.erlen-marco-cuerpo.con-detalles,.erlen-marco-cuerpo.con-navegacion.con-detalles{grid-template-columns:minmax(0,1fr)}\n .erlen-marco-cuerpo.con-navegacion>.erlen-marco-navegacion{display:none}\n .erlen-marco-cuerpo>.erlen-marco-detalles{display:none}\n .erlen-marco-abrir-cajon{display:inline-flex;align-items:center;justify-content:center}\n .erlen-marco>.erlen-app-header .erlen-marco-nombre{font-size:var(--erlen-texto-lg);font-family:var(--erlen-font-ui);font-weight:700;letter-spacing:0}\n /* Dos filas: identidad arriba; título, estado y controles en una tira que se desplaza.\n    El padding evita que el overflow-x recorte el anillo de foco de 3 px (aquí sin margen\n    negativo: la cabecera de dos filas necesita sus 121 px). */\n .erlen-marco-controles{flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;gap:var(--erlen-esp-2);padding:var(--erlen-esp-1);margin-block:0}\n .erlen-marco-titulo{flex:0 0 auto;min-width:120px;max-width:min(60vw,20rem)}\n}\n/* ≤ 600 px: la tira de controles sigue en una fila con scroll, sin filas de más; 44 px en todo.\n   El nombre (h1, única de la vista) se oculta visualmente pero sigue en el árbol de accesibilidad:\n   la marca ya identifica la app y así la fila de identidad tiene aire para los controles reales. */\n@media (max-width:600px){\n .erlen-marco>.erlen-app-header{gap:var(--erlen-esp-2);padding:var(--erlen-esp-2) var(--erlen-esp-3)}\n .erlen-marco-controles{gap:var(--erlen-esp-2)}\n .erlen-marco-utilidades>*,.erlen-marco-acciones>*,.erlen-marco-marca,.erlen-marco-abrir-cajon,.erlen-marco-cajon-cerrar{min-height:44px}\n .erlen-marco-nombre{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n /* Pie compacto: misma mecánica de tira que los controles, sin segundas filas. El bloque queda\n    en 4 px para que con enlaces de 44 px (puntero táctil) el pie no pase de 56 px. */\n .erlen-marco>.erlen-app-footer{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;padding-block:var(--erlen-esp-1)}\n}\n/* El mismo mínimo en estrecho y cuando hay cualquier entrada táctil, también en equipos\n   híbridos. Los paneles usan la misma zona de toque en columna y dentro del cajón. */\n@media (max-width:920px),(any-pointer:coarse){\n .erlen-app-header :is(button,a,select,summary,input:not([type=checkbox]):not([type=radio])),\n :is(.erlen-marco-cajon,.erlen-marco-navegacion,.erlen-marco-detalles,dialog) :is(button,a,select,input:not([type=checkbox]):not([type=radio])),\n .erlen-app-footer :is(a,button){min-height:var(--erlen-alto-control);min-width:var(--erlen-alto-control)}\n :is(.erlen-marco-cajon,.erlen-marco-navegacion,.erlen-marco-detalles,dialog) a{display:inline-flex;align-items:center}\n .erlen-marco>.erlen-app-footer :is(a,button){display:inline-flex;align-items:center;justify-content:center}\n}\n@media (max-width:400px){\n .erlen-marco-marca .erlen-marco-marca-nombre{display:none}\n /* El bloque de la cabecera vuelve a 8 px: la tira de controles lleva 4 px propios (anillo de\n    foco sin recortar) y la cabecera de dos filas debe seguir midiendo 121 px. El pie compacto\n    queda en 4 px para no pasar de 56 px con enlaces de 44 px. */\n .erlen-marco>.erlen-app-header{padding:var(--erlen-esp-2) var(--erlen-esp-3)}\n .erlen-marco>.erlen-app-footer{padding:var(--erlen-esp-1) var(--erlen-esp-3)}\n}\n/* En paisaje corto, identidad y controles comparten una fila desplazable. El pie compacto\n   reserva espacio para editar sin reducir las zonas de toque ni ocultar sus acciones. */\n@media (max-width:920px) and (max-height:500px){\n .erlen-marco>.erlen-app-header{flex-wrap:nowrap}\n .erlen-marco-controles{flex:1 1 0%}\n .erlen-marco>.erlen-app-footer{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;padding-block:var(--erlen-esp-1)}\n}\n/* Impresión y material sólido: cromo sin desenfoque; el material opaco ya lo fijan los tokens. */\n@media print{\n .erlen-marco{height:auto;overflow:visible}\n .erlen-marco>.erlen-app-header::before{-webkit-backdrop-filter:none;backdrop-filter:none}\n .erlen-marco-cinta,.erlen-marco-navegacion,.erlen-marco-detalles,.erlen-marco-cajon,.erlen-marco-mascara{display:none!important}\n /* Sin columnas de cromo: el documento se imprime a todo el ancho. */\n .erlen-marco-cuerpo,.erlen-marco-cuerpo.con-navegacion,.erlen-marco-cuerpo.con-detalles,.erlen-marco-cuerpo.con-navegacion.con-detalles{grid-template-columns:minmax(0,1fr)}\n .erlen-marco-cuerpo{overflow:visible}\n .erlen-marco-trabajo{overflow:visible}\n}\n/* Cromo mineral: marca y título compactos; la cinta conserva la memoria muscular. */\n.erlen-marco-nombre{font-weight:600;letter-spacing:-.035em}\n.erlen-marco-marca{border-radius:var(--erlen-radio-campo)}\n/* Apariencia opcional del marco: una sola superficie de cristal en la cabecera.\n   La navegación y los detalles siguen el material elegido; el trabajo permanece\n   opaco. Las sombras de borde quedan dentro, sin invadir controles ni documentos. */\n:root[data-erlen-estilo] .erlen-marco>.erlen-app-header{background:transparent;box-shadow:none}\n:root[data-erlen-estilo] .erlen-marco>.erlen-app-header::before{box-shadow:inset 0 -2px 0 var(--erlen-vidrio-contorno)}\n:root[data-erlen-estilo] .erlen-marco :is(.erlen-marco-navegacion,.erlen-marco-detalles){background:var(--erlen-vidrio-reflejo),var(--erlen-vidrio-fuerte);border-color:var(--erlen-vidrio-contorno);box-shadow:inset 1px 0 0 var(--erlen-vidrio-contorno),inset -1px 0 0 var(--erlen-vidrio-contorno)}\n\n/* La atmósfera elegida llega al marco sin pintar el área de trabajo. */\n:root[data-erlen-estilo] .erlen-marco{background:var(--erlen-cromo-fondo)}\n:root[data-erlen-estilo] .erlen-marco>.erlen-app-header::before,:root[data-erlen-estilo] .erlen-marco :is(.erlen-marco-navegacion,.erlen-marco-detalles){background:var(--erlen-vidrio-reflejo),var(--erlen-cromo-trama),var(--erlen-vidrio-fuerte)}\n",
  "src/diseno/mey-recorrido.css": "/* Mey vive encima de la página, sin reservar huecos ni interceptar controles ajenos. */\n.mey-libre{position:fixed;left:0;top:0;z-index:501;display:block;width:auto;height:auto;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:var(--erlen-radio-pequeno);background:transparent;color:var(--erlen-tinta);box-shadow:none;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;will-change:transform;transition:none;line-height:0}\n.mey-libre:hover{background:transparent}.mey-libre[data-arrastrando]{cursor:grabbing}.mey-libre svg{display:block;pointer-events:none;max-width:none}.mey-libre:focus-visible,.mey-libre-pausa:focus-visible{outline:3px solid var(--erlen-foco);outline-offset:3px}\n.mey-libre-pausa{position:fixed;right:16px;bottom:12px;z-index:501;min-height:44px;padding:8px 14px;border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-campo);background:var(--erlen-vidrio-fuerte);color:var(--erlen-tinta-suave);font:500 var(--erlen-texto-xs)/1.4 var(--erlen-font-ui);cursor:pointer}\n.mey-libre-pausa--integrada{position:static;flex:0 0 auto;white-space:nowrap;z-index:auto}\n@media print{.mey-libre,.mey-libre-pausa{display:none}}\n\n/* Las ilustraciones de estados vacíos ceden ante la presencia compartida. */\nhtml[data-erlen-mey-presencia] .recientes-vacio .mey{display:none}\n\n/* Arte elegido para Mey: cambia el material, no sus poses, atuendo ni movimiento.\n   Los pigmentos conservan la paleta personal. Los ojos siguen planos y nítidos.\n   El tile de marca y el favicon de 16 × 16 quedan fuera de estos tratamientos. */\n:root[data-erlen-estilo]{--mey-arte-filtro:none;--mey-arte-render:auto;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-contorno:var(--erlen-tinta);--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"glassmorfismo\"]{--mey-arte-filtro:drop-shadow(0 -1px 0 var(--erlen-superficie)) drop-shadow(0 2px 2px var(--erlen-linea-fuerte));--mey-arte-radio:.12px;--mey-arte-trazo:.07px;--mey-arte-contorno:var(--erlen-superficie);--mey-arte-vidrio:.78;--mey-arte-banda:.9}\n:root[data-erlen-estilo=\"neumorfismo\"]{--mey-arte-filtro:drop-shadow(-2px -2px 1px var(--erlen-superficie)) drop-shadow(2px 2px 1px var(--erlen-linea-fuerte));--mey-arte-radio:.08px;--mey-arte-trazo:.035px;--mey-arte-contorno:var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"neobrutalismo\"]{--mey-arte-filtro:drop-shadow(3px 3px 0 var(--erlen-tinta));--mey-arte-render:crispEdges;--mey-arte-trazo:.16px}\n:root[data-erlen-estilo=\"minimalismo\"]{--mey-arte-render:crispEdges;--mey-arte-trazo:.05px;--mey-arte-contorno:var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"art-deco\"]{--mey-arte-filtro:drop-shadow(1px 1px 0 var(--erlen-ambar));--mey-arte-render:crispEdges;--mey-arte-trazo:.10px;--mey-arte-contorno:var(--erlen-ambar);--mey-arte-banda:.94}\n:root[data-erlen-estilo=\"claymorfismo\"]{--mey-arte-filtro:drop-shadow(-1px -1px 1px var(--erlen-superficie)) drop-shadow(0 3px 2px var(--erlen-linea-fuerte));--mey-arte-radio:.24px;--mey-arte-trazo:.025px;--mey-arte-contorno:var(--erlen-superficie)}\n:root[data-erlen-estilo=\"bauhaus\"]{--mey-arte-filtro:drop-shadow(3px 0 0 var(--erlen-cromo-luz)) drop-shadow(0 3px 0 var(--erlen-verde));--mey-arte-render:crispEdges;--mey-arte-trazo:.20px}\n:root[data-erlen-estilo=\"frutiger-aero\"]{--mey-arte-filtro:drop-shadow(0 -2px 0 var(--erlen-superficie)) drop-shadow(0 2px 1px var(--erlen-verde-suave));--mey-arte-radio:.16px;--mey-arte-trazo:.10px;--mey-arte-contorno:var(--erlen-superficie);--mey-arte-vidrio:.9;--mey-arte-banda:1}\n:root[data-erlen-estilo=\"esqueuomorfismo\"]{--mey-arte-filtro:drop-shadow(-1px -1px 0 var(--erlen-superficie)) drop-shadow(1.5px 1.5px .6px var(--erlen-linea-fuerte));--mey-arte-radio:.045px;--mey-arte-trazo:.10px;--mey-arte-contorno:var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"retro-digital\"]{--mey-arte-filtro:drop-shadow(-1px -1px 0 var(--erlen-superficie)) drop-shadow(2px 2px 0 var(--erlen-linea-fuerte));--mey-arte-render:crispEdges;--mey-arte-trazo:.08px}\n:root[data-erlen-estilo=\"y2k\"]{--mey-arte-filtro:drop-shadow(-1px -1px 0 var(--erlen-superficie)) drop-shadow(2px 1px 1px var(--erlen-linea-fuerte));--mey-arte-radio:.15px;--mey-arte-trazo:.085px;--mey-arte-contorno:var(--erlen-superficie);--mey-arte-vidrio:.95;--mey-arte-banda:.75}\n:root[data-erlen-estilo=\"cyberpunk\"]{--mey-arte-filtro:drop-shadow(0 0 3px var(--erlen-verde)) drop-shadow(0 0 6px var(--erlen-verde-suave));--mey-arte-render:crispEdges;--mey-arte-trazo:.13px;--mey-arte-contorno:var(--erlen-verde);--mey-arte-vidrio:.8;--mey-arte-banda:.9}\n:root[data-erlen-estilo=\"blueprint\"]{--mey-arte-render:crispEdges;--mey-arte-trazo:.075px;--mey-arte-contorno:var(--erlen-verde);--mey-arte-vidrio:.18;--mey-arte-banda:.18;--mey-arte-guion:.45 .15;--mey-arte-ojos:var(--erlen-tinta)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]){filter:var(--mey-arte-filtro);shape-rendering:var(--mey-arte-render)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) :is([data-mey-pigmento=\"g\"],[data-mey-pigmento=\"w\"]){rx:var(--mey-arte-radio);ry:var(--mey-arte-radio);stroke:var(--mey-arte-contorno);stroke-width:var(--mey-arte-trazo);stroke-dasharray:var(--mey-arte-guion);stroke-linejoin:round;paint-order:stroke fill}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) [data-mey-pigmento=\"g\"]{fill-opacity:var(--mey-arte-vidrio)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) [data-mey-pigmento=\"g\"]:nth-of-type(3n){fill-opacity:var(--mey-arte-banda)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) [data-mey-pigmento=\"e\"]{fill:var(--mey-arte-ojos);fill-opacity:1;stroke:none;rx:0;ry:0;shape-rendering:crispEdges}\n/* Un acabado quieto no añade relojes, flashes ni desplazamientos. Los respaldos\n   de legibilidad devuelven los pigmentos planos y los píxeles originales. */\n:root:root[data-erlen-estilo][data-erlen-material=\"solido\"]{--mey-arte-filtro:none;--mey-arte-render:crispEdges;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}\n@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active),print{:root:root[data-erlen-estilo]{--mey-arte-filtro:none;--mey-arte-render:crispEdges;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}}\n@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root:root[data-erlen-estilo]{--mey-arte-filtro:none;--mey-arte-render:crispEdges;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}}\n\n/* Sprites artísticos: contornos conectados, vidrio/líquido completos y ojos planos.\n   No son filtros sobre la cuadrícula: Original y los respaldos usan los píxeles. */\n:root[data-erlen-estilo]{--mey-vector-visible:inline;--mey-pixel-visible:none;--mey-vector-angular:inline;--mey-vector-suave:none;--mey-vector-trazo:.16;--mey-vector-borde:var(--erlen-mey-ojos);--mey-vector-ojos:var(--erlen-mey-ojos)}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"neumorfismo\"],[data-erlen-estilo=\"minimalismo\"],[data-erlen-estilo=\"claymorfismo\"],[data-erlen-estilo=\"frutiger-aero\"],[data-erlen-estilo=\"esqueuomorfismo\"],[data-erlen-estilo=\"y2k\"]){--mey-vector-angular:none;--mey-vector-suave:inline}\n:root[data-erlen-estilo=\"glassmorfismo\"]{--mey-vector-trazo:.35;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"neumorfismo\"]{--mey-vector-trazo:.2;--mey-vector-borde:var(--erlen-superficie)}\n:root[data-erlen-estilo=\"neobrutalismo\"]{--mey-vector-trazo:.8;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"minimalismo\"]{--mey-vector-trazo:.3;--mey-vector-borde:var(--erlen-tinta);--mey-vector-ojos:var(--erlen-tinta);--mey-arte-render:auto}\n:root[data-erlen-estilo=\"art-deco\"]{--mey-vector-trazo:.5;--mey-vector-borde:var(--erlen-ambar)}\n:root[data-erlen-estilo=\"claymorfismo\"]{--mey-vector-trazo:.15;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"bauhaus\"]{--mey-vector-trazo:.6;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"frutiger-aero\"]{--mey-vector-trazo:.3;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"esqueuomorfismo\"]{--mey-vector-trazo:.4;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"retro-digital\"]{--mey-vector-trazo:.4;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"y2k\"]{--mey-vector-trazo:.45;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"cyberpunk\"]{--mey-vector-trazo:.4;--mey-vector-borde:var(--erlen-verde);--mey-vector-ojos:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"blueprint\"]{--mey-vector-trazo:.3;--mey-vector-borde:var(--erlen-verde);--mey-vector-ojos:var(--erlen-tinta)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) .mey-ilustracion{display:var(--mey-vector-visible)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) rect[data-mey-pigmento]{display:var(--mey-pixel-visible)}\n:root[data-erlen-estilo] .mey-vector[data-mey-vector=\"angular\"]{display:var(--mey-vector-angular)}\n:root[data-erlen-estilo] .mey-vector[data-mey-vector=\"suave\"]{display:var(--mey-vector-suave)}\n:root[data-erlen-estilo] .mey-vector-contorno{stroke:var(--mey-vector-borde);stroke-width:var(--mey-vector-trazo);stroke-linejoin:round;fill:none}\n:root[data-erlen-estilo] .mey-vector [data-mey-material]{stroke:var(--mey-vector-borde);stroke-width:calc(var(--mey-vector-trazo)*.55);stroke-linejoin:round;paint-order:stroke fill}\n:root[data-erlen-estilo] .mey-vector [data-mey-material=\"e\"]{fill:var(--mey-vector-ojos);stroke:none;opacity:1}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"neumorfismo\"],[data-erlen-estilo=\"claymorfismo\"],[data-erlen-estilo=\"frutiger-aero\"],[data-erlen-estilo=\"esqueuomorfismo\"],[data-erlen-estilo=\"y2k\"]) .mey-material-luz{stop-color:var(--erlen-mey-reflejo)}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"neumorfismo\"],[data-erlen-estilo=\"claymorfismo\"],[data-erlen-estilo=\"frutiger-aero\"],[data-erlen-estilo=\"esqueuomorfismo\"],[data-erlen-estilo=\"y2k\"]) .mey-material-sombra{stop-color:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"minimalismo\"] .mey-vector [data-mey-material=\"g\"]{fill:var(--erlen-superficie)}\n:root[data-erlen-estilo=\"cyberpunk\"] .mey-vector [data-mey-material=\"g\"]{fill:var(--erlen-espacio-fondo)}\n:root[data-erlen-estilo=\"cyberpunk\"] .mey-vector [data-mey-material=\"w\"]{fill:var(--erlen-espacio-fondo);stroke:var(--erlen-verde);stroke-width:.35}\n:root[data-erlen-estilo=\"blueprint\"] .mey-vector :is([data-mey-material=\"g\"],[data-mey-material=\"w\"]){fill:none;stroke:var(--erlen-verde);stroke-width:.25;stroke-dasharray:none}\n:root[data-erlen-estilo=\"neobrutalismo\"] .mey-vector :is([data-mey-material],.mey-vector-contorno){stroke-linejoin:miter}\n:root[data-erlen-estilo] [data-mey-decoracion]{pointer-events:none;fill:none;stroke:none}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"frutiger-aero\"]) [data-mey-decoracion=\"cristal\"]{display:inline;fill:var(--erlen-mey-reflejo);opacity:.75}\n:root[data-erlen-estilo=\"frutiger-aero\"] [data-mey-decoracion=\"aero\"]{display:inline;stroke:var(--erlen-mey-reflejo);stroke-width:.35;fill:none}\n:root[data-erlen-estilo=\"art-deco\"] [data-mey-decoracion=\"deco\"]{display:inline;stroke:var(--erlen-ambar);stroke-width:.25}\n:root[data-erlen-estilo=\"bauhaus\"] [data-mey-decoracion=\"bauhaus\"]{display:inline;fill:var(--erlen-ambar);stroke:var(--erlen-mey-ojos);stroke-width:.25}\n:root[data-erlen-estilo=\"bauhaus\"] [data-mey-decoracion=\"bauhaus\"] path:first-of-type{fill:var(--erlen-cromo-luz)}\n:root[data-erlen-estilo=\"y2k\"] [data-mey-decoracion=\"metal\"]{display:inline;fill:var(--erlen-mey-reflejo);opacity:.85}\n:root[data-erlen-estilo=\"cyberpunk\"] [data-mey-decoracion=\"circuito\"]{display:inline;stroke:var(--erlen-verde);stroke-width:.35}\n:root[data-erlen-estilo=\"blueprint\"] [data-mey-decoracion=\"plano\"]{display:inline;stroke:var(--erlen-verde);stroke-width:.15;opacity:.7}\n:root[data-erlen-estilo=\"retro-digital\"] [data-mey-decoracion=\"retro\"]{display:inline;stroke:var(--erlen-mey-ojos);stroke-width:.35;opacity:.4}\n:root:root[data-erlen-estilo][data-erlen-material=\"solido\"]{--mey-vector-visible:none;--mey-pixel-visible:inline}\n@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active),print{:root:root[data-erlen-estilo]{--mey-vector-visible:none;--mey-pixel-visible:inline}}\n@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root:root[data-erlen-estilo]{--mey-vector-visible:none;--mey-pixel-visible:inline}}\n",
  "src/diseno/mey.js": "/* erlen-diseno 2.11.8 · generado por @erlen/design/tools/generate; no editar a mano */\nconst erlenMey=(()=>{\n// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n/* Mey, la mascota de Erlen (docs/MARCA.md del portal), en pixel art. Fuente única de sus\n   poses: el portal genera con ella web/recursos/mey/*.svg y el favicon (herramientas/mey.mjs)\n   y las apps la usan para pintar a Mey en su interfaz (por ejemplo, en los estados vacíos de\n   diseno/suite-inicio.mjs). No importa nada: también se sirve como IIFE (const erlenMey).\n\n   mey('hola')                    → '<svg class=\"erlen-mey\" …>' decorativo (aria-hidden)\n   mey('pensando', {titulo:'…'})  → con role=\"img\" y <title>, si la pose informa por sí sola\n   mey('hola', {tile:true})       → el ícono: 16×16 sobre el tile violeta\n   mey.poses                      → ['hola', 'pensando', …]\n\n   Cada pose es una cuadrícula de 16×14 celdas. Leyenda: g vidrio · w líquido, brazos y patas\n   · e ojos y trazos en tinta · x acento · p papel · . vacío. El líquido sube por los\n   bordes del matraz como agua por capilaridad y se divide abajo en dos perneras: no es una boca.\n   Los colores son los de la marca, fijos en claro y en oscuro para distinguir el líquido\n   del vidrio. Se muestra en múltiplos de\n   16 px de ancho para que los píxeles salgan parejos. */\nconst COLOR_MEY={g:'#83d4ad',w:'#177451',e:'#18171b',x:'#59368b',p:'#fdfdfd',r:'#e4007c',n:'#f29d0a',a:'#94621e'};\n// Autorizado por el usuario el 2026-10-04: más colores para Mey, independientes del portal.\nconst PALETAS_MEY=Object.freeze({\n verde:Object.freeze({g:'#83d4ad',w:'#177451'}),\n violeta:Object.freeze({g:'#d9c8ef',w:'#59368b'}),\n azul:Object.freeze({g:'#b9dff5',w:'#205e94'}),\n cobre:Object.freeze({g:'#f2d0b9',w:'#864522'}),\n rosa:Object.freeze({g:'#f8bddc',w:'#a7005a'}),\n cempasuchil:Object.freeze({g:'#ffe0a3',w:'#9c5800'})\n});\nfunction coloresMey(color='verde'){\n if(!Object.hasOwn(PALETAS_MEY,color))throw new Error('mey: color desconocido: '+color);\n return {...COLOR_MEY,...PALETAS_MEY[color]};\n}\nconst TILE_MEY='#59368b';\nconst POSES_MEY={\n hola: `\n................\n................\n.....gggggg.....\n......gggg......\n......gggg......\n.....gggggg.....\n....gggggggg....\n....geggggeg.ww.\n...ggeggggeggw..\n...ggggggggggw..\n.wwwwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n pensando: `\n.............g..\n...........g....\n.....gggggg.....\n......gggg......\n......gggg......\n.....gggggg.....\n....ggeggge.....\n....ggegggeg....\n...gggggggggg...\n...ggggggggggw..\n.wwwwwwggwwwwww.\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n exito: `\n..............x.\n.x...gggggg..xxx\nxxx...gggg....x.\n.x....gggg......\n.....gggggg.....\n.w..gggggggg..w.\n..w.geggggeg.w..\n..wgegeggegegw..\n...gggggggggg...\n...wwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n.....w....w.....\n................`,\n aviso: `\n................\n..............w.\n.....gggggg..ww.\n......gggg......\n......gggg......\n.....geggeg.....\n....gggggggg....\n.w..geggggeg..w.\n.wwggeggggeggww.\n...gggggggggg...\n...wwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n dormido: `\n............xxx.\n.............x..\n.....gggggg.xxx.\n......gggg......\n......gggg......\n.....gggggg.....\n....gggggggg....\n....gggggggg....\n...geeggggeeg...\n...gggggggggg...\n...gggggggggg...\n.wwwwwwggwwwwww.\n...wwww..wwww...\n...www....www...`,\n\n leyendo: `\n................\n................\n.....gggggg.....\n......gggg......\n......gggg......\n.....gggggg.....\n....gggggggg....\n....gggggggg....\n...ggeggggegg...\n...ggeggggegg...\n.wxppppxxppppxw.\n..xxxxxxxxxxxx..\n...wwww..wwww...\n....ww....ww....`,\n midiendo: `\n............xxx.\n............xpx.\n.....gggggg.xpx.\n......gggg..xpx.\n......gggg..xpx.\n.....gggggg.xxx.\n....ggegggeg.x..\n....ggegggeg.w..\n...ggggggggggw..\n...gggggggggg...\n.wwwwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n graficando: `\n................\n...........e....\n.....gggggge.x..\n......gggg.e.x..\n......gggg.ewxw.\n.....ggggggewxw.\n....gggggggeeeee\n....geggggeg..w.\n...ggeggggeggw..\n...gggggggggg...\n.wwwwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`\n};\n\n/* La cuadrícula de trabajo lleva ALTO_MEY filas libres encima de la pose (16×18): ahí caben el\n   sombrero de charro, el papel picado y las burbujas. Si nada las ocupa, el SVG sale a 16×14 y\n   es idéntico al de siempre. */\nconst ALTO_MEY=4;\nconst vacia=()=>Array(16).fill('.');\n\nfunction filasMey(pose){\n const arte=POSES_MEY[pose];\n if(arte===undefined)throw new Error('mey: pose desconocida: '+pose);\n return arte.trim().split('\\n').map(f=>f.split(''));\n}\n\nfunction celdasMey(filas,dy,colores=COLOR_MEY,material=false){\n let r='';\n filas.forEach((fila,y)=>{\n  if(fila.length!==16)throw new Error('mey: la fila '+y+' mide '+fila.length+', no 16');\n  for(let x=0;x<16;){\n   const c=fila[x];\n   if(c==='.'){x++;continue;}\n   if(!colores[c])throw new Error('mey: celda desconocida «'+c+'» en ('+x+','+y+')');\n   let n=1;\n   while(x+n<16&&colores[fila[x+n]]===colores[c])n++;\n   r+='<rect x=\"'+x+'\" y=\"'+(y+dy)+'\" width=\"'+n+'\" height=\"1\" fill=\"'+colores[c]+'\"'+(material?' data-mey-pigmento=\"'+c+'\"':'')+'/>';\n   x+=n;\n  }\n });\n return r;\n}\n\n// El contorno gana pasos conectados de 1/2 y 1/4 de celda en tamaños grandes.\n// El favicon de 16 px conserva la cuadrícula simple para no emborronarse.\nfunction detallesMey(filas,dy,colores=COLOR_MEY,material=false){\n let r='';\n const punto=(x,y,c,t=.5)=>{r+='<rect x=\"'+x+'\" y=\"'+(y+dy)+'\" width=\"'+t+'\" height=\"'+t+'\" fill=\"'+colores[c]+'\"'+(material?' data-mey-pigmento=\"'+c+'\"':'')+'/>';};\n // Capilaridad en tres alturas: junto al vidrio, en el cuerpo y en el centro.\n // No hay línea de tinta ni rasgos faciales nuevos.\n for(let y=ALTO_MEY+8;y<filas.length-2;y++){\n  if(filas[y].slice(3,13).join('')==='wwwwggwwww'&&filas[y+1].slice(3,13).every(c=>c==='w')){\n   for(const x of [3,3.5,12,12.5])if(filas[y-1][Math.floor(x)]==='g')punto(x,y-.5,'w');\n   for(const x of [7,7.5,8,8.5])punto(x,y+.5,'w');\n  }\n }\n // Transiciones de vidrio: cada escalón toca la fila anterior y la siguiente.\n // No se añaden reflejos en la cabeza ni fragmentos flotantes fuera de los brazos.\n for(let y=ALTO_MEY+2;y<ALTO_MEY+9;y++){\n  const bordes=f=>[f.findIndex(c=>c==='g'),f.lastIndexOf('g')];\n  const [izq,der]=bordes(filas[y]),[sigIzq,sigDer]=bordes(filas[y+1]);\n  if(izq>=3&&izq<=6&&sigIzq>=3&&sigIzq<=6){\n   if(sigIzq===izq-1){punto(izq-.25,y+.25,'g',.25);punto(izq-.5,y+.5,'g');}\n   if(sigIzq===izq+1){punto(sigIzq-.5,y+1,'g');punto(sigIzq-.25,y+1.5,'g',.25);}\n  }\n  if(der>=9&&der<=12&&sigDer>=9&&sigDer<=12){\n   if(sigDer===der+1){punto(der+1,y+.25,'g',.25);punto(der+1,y+.5,'g');}\n   if(sigDer===der-1){punto(sigDer+1,y+1,'g');punto(sigDer+1,y+1.5,'g',.25);}\n  }\n }\n return r;\n}\n\n// Contornos de regiones conectadas: elimina las divisiones entre píxeles y conserva\n// los huecos. Cada arte puede elegir una silueta angular o curvas continuas.\nfunction contornoMey(filas,acepta,dy=0,suave=false){\n const bordes=new Map(),clave=p=>p.join(','),hay=(x,y)=>!!filas[y]?.[x]&&acepta(filas[y][x],x,y);\n const agrega=(a,b)=>{const k=clave(a);if(!bordes.has(k))bordes.set(k,[]);bordes.get(k).push(b);};\n filas.forEach((fila,y)=>fila.forEach((c,x)=>{if(!acepta(c,x,y))return;\n  if(!hay(x,y-1))agrega([x,y],[x+1,y]);if(!hay(x+1,y))agrega([x+1,y],[x+1,y+1]);\n  if(!hay(x,y+1))agrega([x+1,y+1],[x,y+1]);if(!hay(x-1,y))agrega([x,y+1],[x,y]);\n }));\n const punto=p=>Number(p[0].toFixed(2))+','+Number((p[1]+dy).toFixed(2)),rutas=[];\n while(bordes.size){\n  const inicio=bordes.keys().next().value.split(',').map(Number),poligono=[inicio];let actual=inicio,previa=[inicio[0]-1,inicio[1]];\n  do{\n   const k=clave(actual),opciones=bordes.get(k);if(!opciones?.length)break;\n   const dx=actual[0]-previa[0],dy0=actual[1]-previa[1],prioridad=b=>{const ex=b[0]-actual[0],ey=b[1]-actual[1];return dx*ey-dy0*ex===1?3:dx*ex+dy0*ey===1?2:dx*ey-dy0*ex===-1?1:0;};\n   opciones.sort((a,b)=>prioridad(b)-prioridad(a));const siguiente=opciones.shift();if(!opciones.length)bordes.delete(k);\n   previa=actual;actual=siguiente;if(clave(actual)!==clave(inicio))poligono.push(actual);\n  }while(clave(actual)!==clave(inicio));\n  const vertices=poligono.filter((p,i)=>{const a=poligono[(i+poligono.length-1)%poligono.length],b=poligono[(i+1)%poligono.length];return(p[0]-a[0])*(b[1]-p[1])!==(p[1]-a[1])*(b[0]-p[0]);});\n  if(vertices.length<3)continue;\n  if(!suave){rutas.push('M'+vertices.map(punto).join('L')+'Z');continue;}\n  const esquinas=vertices.map((p,i)=>{const a=vertices[(i+vertices.length-1)%vertices.length],b=vertices[(i+1)%vertices.length],interp=q=>{const d=Math.hypot(q[0]-p[0],q[1]-p[1]),r=Math.min(.48,d/2);return[p[0]+(q[0]-p[0])*r/d,p[1]+(q[1]-p[1])*r/d];};return{antes:interp(a),p,despues:interp(b)};});\n  let d='M'+punto(esquinas[0].despues);for(let i=1;i<=esquinas.length;i++){const e=esquinas[i%esquinas.length];d+='L'+punto(e.antes)+'Q'+punto(e.p)+' '+punto(e.despues);}rutas.push(d+'Z');\n }\n return rutas.join('');\n}\n\nfunction ilustracionMey(filas,dy,colores){\n const texto=filas.map(f=>f.join('')).join('|')+Object.values(colores).join('|');let h=2166136261,k=5381;\n for(const c of texto){h=Math.imul(h^c.charCodeAt(0),16777619);k=Math.imul(k,33)^c.charCodeAt(0);}\n const id='mey-v'+(h>>>0).toString(36)+(k>>>0).toString(36),pigmentos=[...new Set(filas.flat().filter(c=>c!=='.'&&c!=='e'))];\n const cara=(c,x,y)=>c==='e'&&filas[y].slice(0,x).includes('g')&&filas[y].slice(x+1).includes('g');\n const cuerpo=(c,x,y)=>c==='g'||c==='w'||cara(c,x,y),contorno=contornoMey(filas,cuerpo,dy,true);\n let defs='<clipPath id=\"'+id+'-clip\"><path d=\"'+contorno+'\"/></clipPath>';\n for(const c of pigmentos)defs+='<linearGradient id=\"'+id+'-'+c+'\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\"><stop class=\"mey-material-luz\" offset=\"0\" stop-color=\"'+colores[c]+'\"/><stop offset=\".3\" stop-color=\"'+colores[c]+'\"/><stop offset=\".65\" stop-color=\"'+colores[c]+'\"/><stop class=\"mey-material-sombra\" offset=\"1\" stop-color=\"'+colores[c]+'\"/></linearGradient>';\n const adorno='<g class=\"mey-decoraciones\" clip-path=\"url(#'+id+'-clip)\">'+\n  '<g data-mey-decoracion=\"cristal\" display=\"none\"><path d=\"M2,-2L7,-2L0,16L-5,16ZM10,-2L11,-2L4,16L3,16Z\"/></g>'+\n  '<g data-mey-decoracion=\"aero\" display=\"none\"><circle cx=\"5.6\" cy=\"6.3\" r=\"1\"/><circle cx=\"10.9\" cy=\"9.7\" r=\".55\"/><path d=\"M4,4Q7,2 11,4\"/></g>'+\n  '<g data-mey-decoracion=\"deco\" display=\"none\"><path d=\"M8,14L2,5M8,14L5,3M8,14L8,2M8,14L11,3M8,14L14,5M2,12L8,5L14,12M3,13L8,7L13,13\"/></g>'+\n  '<g data-mey-decoracion=\"bauhaus\" display=\"none\"><circle cx=\"5\" cy=\"6\" r=\"1.8\"/><path d=\"M9,3L13,7L9,7Z\"/><path d=\"M3,11H13V13H3Z\"/></g>'+\n  '<g data-mey-decoracion=\"metal\" display=\"none\"><path d=\"M0,3L16,1V2L0,4ZM0,8L16,5V6L0,9ZM0,13L16,10V11L0,14Z\"/></g>'+\n  '<g data-mey-decoracion=\"circuito\" display=\"none\"><path d=\"M3,4H6V6H13M3,11H10V13H13M10,3V4H13M2,8H4M12,8H14\"/><circle cx=\"6\" cy=\"4\" r=\".35\"/><circle cx=\"10\" cy=\"11\" r=\".35\"/></g>'+\n  '<g data-mey-decoracion=\"plano\" display=\"none\"><path d=\"M0,3H16M0,6H16M0,9H16M0,12H16M4,-4V16M8,-4V16M12,-4V16M0,14L16,-2\"/></g>'+\n  '<g data-mey-decoracion=\"retro\" display=\"none\"><path d=\"M0,3H16M0,5H16M0,7H16M0,9H16M0,11H16M0,13H16\"/></g></g>';\n let variantes='';for(const suave of [false,true]){\n  let formas='<path class=\"mey-vector-contorno\" d=\"'+contornoMey(filas,cuerpo,dy,suave)+'\" fill=\"none\"/>';\n  for(const c of pigmentos){const region=(v,x,y)=>v===c||(c==='g'&&cara(v,x,y));formas+='<path data-mey-material=\"'+c+'\" d=\"'+contornoMey(filas,region,dy,suave)+'\" fill=\"url(#'+id+'-'+c+')\"/>';}\n  const ojos=contornoMey(filas,c=>c==='e',dy,suave);\n  variantes+='<g class=\"mey-vector\" data-mey-vector=\"'+(suave?'suave':'angular')+'\" display=\"none\">'+formas+adorno+'<path data-mey-material=\"e\" d=\"'+ojos+'\" fill=\"'+colores.e+'\"/></g>';\n }\n // Las referencias locales son deterministas por dibujo y paleta; nunca un contador global.\n return '<!--mey-arte-inicio--><g class=\"mey-ilustracion\" display=\"none\"><defs>'+defs+'</defs>'+variantes+'</g><!--mey-arte-fin-->';\n}\n\nfunction accesibleMey(opciones){\n const titulo=opciones.titulo?String(opciones.titulo).replace(/[&<>\"]/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;'}[c])):'';\n return titulo?'role=\"img\" aria-label=\"'+titulo+'\"><title>'+titulo+'</title>':'aria-hidden=\"true\" focusable=\"false\">';\n}\n\n/* filas: cuadrícula de trabajo de 18 filas. alto: true fuerza el lienzo de 16×18 (Mey viva, para\n   que no salte de tamaño cuando aparece el papel picado). */\nfunction svgMey(filas,pose,atuendo,opciones,alto){\n const color=opciones.color||'verde',colores=coloresMey(color);\n const arriba=alto||filas.slice(0,ALTO_MEY).some(f=>f.some(c=>c!=='.'));\n const vista=arriba?'0 -'+ALTO_MEY+' 16 '+(14+ALTO_MEY):'0 0 16 14';\n // Con opciones.celda, tamaño en píxeles enteros por celda (el pixel art no se emborrona).\n const tam=(opciones.celda?' width=\"'+16*opciones.celda+'\" height=\"'+(arriba?14+ALTO_MEY:14)*opciones.celda+'\"':'')+(opciones.estilo?' style=\"'+opciones.estilo+'\"':'');\n const celdas=arriba?celdasMey(filas,-ALTO_MEY,colores,true):celdasMey(filas.slice(ALTO_MEY),0,colores,true);\n const arte=ilustracionMey(arriba?filas:filas.slice(ALTO_MEY),arriba?-ALTO_MEY:0,colores);\n return '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"'+vista+'\"'+tam+' shape-rendering=\"crispEdges\" class=\"erlen-mey\" data-pose=\"'+pose+'\"'+(atuendo!=='ninguno'?' data-atuendo=\"'+atuendo+'\"':'')+(color!=='verde'?' data-color=\"'+color+'\"':'')+' '+accesibleMey(opciones)+celdas+(opciones.detalle!==false&&(!opciones.celda||opciones.celda>=2)?detallesMey(filas,arriba?-ALTO_MEY:0,colores,true):'')+arte+'</svg>';\n}\n\n/* ---------- Atuendos ----------\n   Mey se viste con un toque mexicano. Parte sin atuendo; los demás son\n   disfraces para ocasiones. Cada prenda se coloca buscando en la pose el tapón (corrida de 6\n   celdas de vidrio sobre un cuello de 4), el paso del cuello al cuerpo y los ojos, así sirve\n   para todas las poses. Solo pinta sobre vidrio o vacío: nunca tapa ojos ni utilería. */\nconst ATUENDOS_MEY=['rebozo','gala','charro','luchador','astronauta','cientifica','exploradora','artista','invierno','ninguno'];\nconst PAPEL_PICADO_MEY=['eeeeeeeeeeeeeeee','rrr.nnn.xxx.rrr.','r.r.n.n.x.x.r.r.','.r...n...x...r..'];\n\nfunction corridaMey(fila,patron=/g+/){const m=fila.join('').match(patron);return m?{a:m.index,b:m.index+m[0].length-1,n:m[0].length}:null;}\nfunction tapaMey(f){\n for(let y=0;y<f.length-1;y++){const c=corridaMey(f[y]),d=corridaMey(f[y+1]);if(c&&d&&c.n===6&&d.n===4&&d.a===c.a+1)return {y,a:c.a,b:c.b};}\n return null;\n}\nfunction cuelloMey(f,t){\n for(let y=t.y+1;y<f.length-1;y++){const c=corridaMey(f[y]),d=corridaMey(f[y+1],/[ge]+/);if(c&&d&&c.n===4&&d.n>=6&&d.a<c.a)return {y:y+1,a:c.a-1};}\n return null;\n}\n\n// Ojos «de cara»: tinta con vidrio a ambos lados en su fila (así los ejes del gráfico no cuentan).\nfunction caraMey(f,y0,y1){\n const celdas=[];\n for(let y=Math.max(0,y0);y<=Math.min(f.length-1,y1);y++){const s=f[y].join('');for(let x=0;x<16;x++)if(s[x]==='e'&&s.slice(0,x).includes('g')&&s.slice(x+1).includes('g'))celdas.push({x,y});}\n return celdas;\n}\n\nfunction vestirMey(f,atuendo,e,ojos){\n if(!atuendo||atuendo==='ninguno')return;\n if(!ATUENDOS_MEY.includes(atuendo))throw new Error('mey: atuendo desconocido: '+atuendo);\n const t=tapaMey(f);if(!t)return;\n const k=cuelloMey(f,t);\n const pon=(x,y,c,sobre)=>{if(f[y]&&x>=0&&x<16&&sobre.includes(f[y][x]))f[y][x]=c;};\n if((atuendo==='rebozo'||atuendo==='gala')&&k){\n  ['r','n','p','x','n','r'].forEach((c,i)=>pon(k.a+i,k.y,c,'g'));\n  pon(k.a+5,k.y+1,'r','g.');\n  pon(k.a+6,e.salto>0||e.saludo?k.y+1:k.y+2,'n','.');\n }\n if(atuendo==='gala'){\n  const cx=t.b+1,cy=t.y-1;\n  for(const [x,y] of [[cx,cy-1],[cx-1,cy],[cx+1,cy],[cx,cy+1]])pon(x,y,'n','.');\n  pon(cx,cy,'a','.');\n }\n if(atuendo==='charro'){\n  for(let x=t.a-3;x<=t.b+3;x++)pon(x,t.y-1,'e','.');\n  pon(t.a-1,t.y-1,'n','e');pon(t.b+1,t.y-1,'n','e');\n  pon(t.a-3,t.y-2,'e','.');pon(t.b+3,t.y-2,'e','.');\n  for(let x=t.a;x<=t.b;x++)pon(x,t.y-2,'n','.');\n  for(let x=t.a;x<=t.b;x++)pon(x,t.y-3,'e','.');\n  for(let x=t.a+1;x<=t.b-1;x++)pon(x,t.y-4,'e','.');\n  for(let x=t.a+2;x<=t.b-2;x++)pon(x,t.y-5,'e','.');\n  if(k){['r','r','n','n','r','r'].forEach((c,i)=>pon(k.a+i,k.y,c,'g'));pon(k.a,k.y+1,'r','g');pon(k.a+5,k.y+1,'r','g');}\n }\n if(atuendo==='luchador'&&k){\n  // Máscara de luchador: rosa mexicano del cuello a debajo de los ojos, ribete cempasúchil\n  // alrededor de cada ojo y franja blanca al centro de la frente.\n  const cara=caraMey(f,k.y,k.y+5);\n  const yb=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4,arriba=cara.length?Math.min(...cara.map(o=>o.y)):k.y+2;\n  const cercaDeOjo=(x,y)=>cara.some(o=>Math.abs(o.x-x)+Math.abs(o.y-y)===1);\n  for(let y=k.y;y<=yb;y++)for(let x=0;x<16;x++)if(f[y][x]==='g')f[y][x]=cercaDeOjo(x,y)?'n':(y<arriba&&(x===k.a+2||x===k.a+3)?'p':'r');\n }\n if(atuendo==='astronauta'){\n  // Aro de escafandra con borde violeta visible también sobre papel claro.\n  for(let x=t.a-1;x<=t.b+1;x++)pon(x,t.y-1,'x','.');\n  for(let y=t.y;y<=t.y+2;y++){\n   pon(t.a-2,y,'x','.');pon(t.b+2,y,'x','.');\n  }\n  if(k){pon(k.a,k.y,'p','g');pon(k.a+5,k.y,'p','g');pon(k.a-1,k.y+1,'x','g.');pon(k.a+6,k.y+1,'x','g.');}\n }\n if(atuendo==='cientifica'&&k){\n  pon(k.a,k.y,'x','g');pon(k.a+5,k.y,'x','g');\n  const cara=caraMey(f,k.y,k.y+5);\n  const debajo=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4;\n  for(let y=debajo;y<=debajo+2;y++){\n   for(let x=k.a-1;x<=k.a+1;x++)pon(x,y,'p','g');\n   for(let x=k.a+4;x<=k.a+6;x++)pon(x,y,'p','g');\n   pon(k.a-2,y,'x','g.');pon(k.a+7,y,'x','g.');\n  }\n  pon(k.a+2,debajo,'x','g');\n }\n if(atuendo==='exploradora'){\n  // Sombrero de campo de ala ancha, galón dorado y chaleco claro con bolsillos.\n  for(let x=t.a-2;x<=t.b+2;x++)pon(x,t.y-1,'x','.');\n  for(let x=t.a;x<=t.b;x++){pon(x,t.y-2,'n','.');pon(x,t.y-3,'x','.');}\n  if(k){\n   const cara=caraMey(f,k.y,k.y+5),debajo=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4;\n   for(let y=debajo;y<=debajo+1;y++)for(const x of [k.a-1,k.a,k.a+5,k.a+6])pon(x,y,'p','g');\n   pon(k.a,debajo+1,'n','p');pon(k.a+5,debajo+1,'n','p');\n  }\n }\n if(atuendo==='artista'){\n  // Boina ladeada, delantal violeta: la cara y el nivel del líquido quedan a la vista.\n  for(let x=t.a-1;x<=t.b+1;x++)pon(x,t.y-1,'r','.');\n  for(let x=t.a-2;x<=t.b;x++)pon(x,t.y-2,'r','.');\n  pon(t.a,t.y-3,'r','.');\n  if(k){\n   const cara=caraMey(f,k.y,k.y+5),debajo=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4;\n   for(let y=debajo-3;y<debajo;y++){pon(k.a-1,y,'x','g');pon(k.a+6,y,'x','g');}\n   for(let y=debajo;y<=debajo+2;y++)for(let x=k.a;x<=k.a+5;x++)pon(x,y,'x','g');\n   pon(k.a+1,debajo,'p','x');pon(k.a+4,debajo,'p','x');\n   pon(k.a+2,debajo+1,'n','x');pon(k.a+3,debajo+1,'r','x');\n  }\n }\n if(atuendo==='invierno'){\n  // Gorro de punto con pompón y bufanda al cuello, sin cubrir los ojos.\n  for(let x=t.a-1;x<=t.b+1;x++)pon(x,t.y-1,x%2?'r':'x','.');\n  for(let x=t.a;x<=t.b;x++)pon(x,t.y-2,'x','.');\n  pon(t.a+2,t.y-3,'r','.');pon(t.a+3,t.y-3,'r','.');\n  if(k){\n   for(let x=k.a;x<=k.a+5;x++)pon(x,k.y,'p','g');\n   pon(k.a+1,k.y,'n','p');pon(k.a+4,k.y,'n','p');\n   for(let y=k.y+1;y<=k.y+3;y++)pon(k.a-1,y,'p','g.');\n   pon(k.a-1,k.y+4,'n','g.');\n  }\n }\n}\n\nfunction papelPicadoMey(f){PAPEL_PICADO_MEY.forEach((fila,y)=>{for(let x=0;x<16;x++)if(fila[x]!=='.'&&f[y][x]==='.')f[y][x]=fila[x];});}\n\nfunction mey(pose='hola',opciones={}){\n if(opciones.tile)return '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" class=\"erlen-mey\" data-pose=\"'+pose+'\" '+accesibleMey(opciones)+'<rect width=\"16\" height=\"16\" rx=\"3.5\" fill=\"'+TILE_MEY+'\"/><g shape-rendering=\"crispEdges\">'+celdasMey(filasMey(pose),1)+'</g></svg>';\n const atuendo=opciones.atuendo||'ninguno';\n const fiesta=pose==='exito'&&opciones.papelPicado!==false;\n return svgMey(cuadroMey(pose,{},atuendo,fiesta),pose,atuendo,opciones,false);\n}\nmey.poses=Object.keys(POSES_MEY);\nmey.atuendos=ATUENDOS_MEY;\nmey.colores=Object.freeze(Object.keys(PALETAS_MEY));\n/* El vestidor solo guarda el atuendo. No altera el favicon ni las poses semánticas de las apps.\n   Si localStorage está bloqueado, la elección dura hasta salir de esta página. */\nconst aparienciasEnMemoria=new WeakMap();\nmey.aparienciaLocal=function(ventana){\n const clave='erlen-mey-apariencia';\n return {\n  leer(){\n   try{const almacen=ventana?.localStorage;if(almacen){const valor=almacen.getItem(clave);return ATUENDOS_MEY.includes(valor)?valor:'ninguno';}}catch{}\n   return aparienciasEnMemoria.get(ventana)||'ninguno';\n  },\n  guardar(atuendo){\n   if(!ATUENDOS_MEY.includes(atuendo))throw new Error('mey: atuendo desconocido: '+atuendo);\n   aparienciasEnMemoria.set(ventana,atuendo);\n   try{ventana?.localStorage?.setItem(clave,atuendo);}catch{}\n   ventana?.dispatchEvent?.(new ventana.Event('erlen-mey-apariencia'));\n  }\n };\n};\n\n/* Color local independiente: conserva erlen-mey-apariencia como cadena de atuendo. */\nconst coloresEnMemoria=new WeakMap();\nmey.colorLocal=function(ventana){\n const clave='erlen-mey-color';\n return {\n  leer(){\n   try{const valor=ventana?.localStorage?.getItem(clave);if(valor!==null&&valor!==undefined)return mey.colores.includes(valor)?valor:'verde';}catch{}\n   return ventana?coloresEnMemoria.get(ventana)||'verde':'verde';\n  },\n  guardar(color){\n   coloresMey(color);\n   if(ventana)coloresEnMemoria.set(ventana,color);\n   try{ventana?.localStorage?.setItem(clave,color);}catch{}\n   if(ventana?.Event)ventana.dispatchEvent?.(new ventana.Event('erlen-mey-color'));\n  }\n };\n};\n\n/* Personalidad del movimiento, independiente del modelo de conversación y del atuendo.\n   Los perfiles sesgan decisiones; conservan el mazo completo y las pausas de accesibilidad. */\nconst PERSONALIDADES_MEY=Object.freeze({\n tranquila:Object.freeze({pausa:2.4,gesto:16000,pesos:Object.freeze({quieta:1.8,pensar:1.6,travesura:.4,jugar:.6,bailar:.5,pasear:.7}),preferidos:Object.freeze(['siesta','lectura','burbuja','idea','estatuas'])}),\n traviesa:Object.freeze({pausa:1,gesto:9000,pesos:Object.freeze({}),preferidos:Object.freeze(['inocente','confeti','escondidillas','pasolunar','rebeldia'])}),\n dramatica:Object.freeze({pausa:.85,gesto:6500,pesos:Object.freeze({travesura:1.5,bailar:1.5,jugar:1.3,pensar:.7}),preferidos:Object.freeze(['huelga','aplausos','berrinche','reverencia','teletransporte'])})\n});\nfunction perfilPersonalidadMey(nombre='traviesa'){\n if(!Object.hasOwn(PERSONALIDADES_MEY,nombre))throw new Error('mey: personalidad desconocida: '+nombre);\n return PERSONALIDADES_MEY[nombre];\n}\nmey.personalidades=Object.freeze(Object.keys(PERSONALIDADES_MEY));\nconst personalidadesEnMemoria=new WeakMap();\nconst personalidadesSinGuardar=new WeakSet();\nmey.personalidadLocal=function(ventana){\n const clave='erlen-mey-personalidad';\n return {\n  leer(){\n   if(ventana&&personalidadesSinGuardar.has(ventana))return personalidadesEnMemoria.get(ventana)||'traviesa';\n   try{const valor=ventana?.localStorage?.getItem(clave);if(valor!==null&&valor!==undefined)return mey.personalidades.includes(valor)?valor:'traviesa';}catch{}\n   return ventana?personalidadesEnMemoria.get(ventana)||'traviesa':'traviesa';\n  },\n  guardar(nombre){\n   perfilPersonalidadMey(nombre);\n   if(ventana)personalidadesEnMemoria.set(ventana,nombre);\n   try{ventana?.localStorage?.setItem(clave,nombre);if(ventana)personalidadesSinGuardar.delete(ventana);}\n   catch{if(ventana)personalidadesSinGuardar.add(ventana);}\n   if(ventana?.Event)ventana.dispatchEvent?.(new ventana.Event(clave));\n  }\n };\n};\n\n/* ---------- Mey viva ----------\n   Cada cuadro sale de la pose por transformaciones de la cuadrícula, no de dibujos aparte:\n   mirar (los ojos de 1×2 se mueven una celda dentro del vidrio), parpadear o guiñar (el ojo\n   pierde su celda de arriba), saltar (todo sube una fila), chapotear (se mueven las perneras),\n   saludar (la mano sube), soltar una burbuja por el cuello y, al celebrar, papel picado.\n   Pixel art de verdad: cambios de cuadro, sin interpolar. Filas en coordenadas de la pose. */\nconst CUADRO_MS=83;\nconst enCuadros=n=>n*CUADRO_MS;\nconst CHAPOTEO_MEY={hola:{izq:{12:'...wwwww.wwww...'},der:{12:'...wwww.wwwww...'}}};\nconst SALUDO_MEY={hola:{1:[[14,7,'.'],[14,6,'w']],2:[[14,7,'.'],[14,6,'w'],[14,5,'w']]}};\n\nfunction neutro(){\n return {\n  mirada:{dx:0,dy:0},parpadeo:false,salto:0,chapoteo:null,burbuja:null,saludo:false,\n  fiesta:false,caminando:0,sentada:false,ojos:null,inclinar:0,burbujas:null,\n  destello:null,seca:0,flotar:0,deCabeza:false,brazoIzq:0,brazoDer:1,agachar:0,estirar:0,cartel:false,confeti:0\n };\n}\n\nfunction ojosMey(filas){\n const ojos=[];\n for(let y=1;y<filas.length-1;y++)for(let x=0;x<16;x++)if(filas[y][x]==='e'&&filas[y+1][x]==='e'&&filas[y-1][x]!=='e')ojos.push({x,y});\n return ojos;\n}\n\nfunction ojosDeCara(filas){\n return ojosMey(filas).filter(({x,y})=>\n  filas[y].slice(0,x).includes('g')&&filas[y].slice(x+1).includes('g')\n );\n}\n\nfunction cuadroMey(pose,e={},atuendo,fiesta){\n const f=[...Array.from({length:ALTO_MEY},vacia),...filasMey(pose)];\n if(pose==='hola'){\n  if(e.brazoIzq===1){\n   f[10+ALTO_MEY][1]='.';f[10+ALTO_MEY][2]='.';\n   for(const [x,y] of [[2,9],[2,8],[2,7],[1,7]])f[y+ALTO_MEY][x]='w';\n  }else if(e.brazoIzq===2){\n   f[10+ALTO_MEY][1]='.';f[10+ALTO_MEY][2]='.';\n   for(const [x,y] of [[2,9],[2,8],[2,7],[1,6],[1,5]])f[y+ALTO_MEY][x]='w';\n  }\n  const der=e.saludo?1:(e.brazoDer??1);\n  if(der===0){\n   f[7+ALTO_MEY][13]='.';f[7+ALTO_MEY][14]='.';f[8+ALTO_MEY][13]='.';f[9+ALTO_MEY][13]='.';\n   f[10+ALTO_MEY][13]='w';f[10+ALTO_MEY][14]='w';\n  }\n }\n if(e.saludo)for(const [x,y,c] of SALUDO_MEY[pose]?.[e.saludo===true?1:e.saludo]||[])f[y+ALTO_MEY][x]=c;\n const ch=e.chapoteo&&CHAPOTEO_MEY[pose]?.[e.chapoteo];\n if(ch)for(const [y,fila] of Object.entries(ch))f[+y+ALTO_MEY]=fila.split('');\n // Evaporarse: las filas de líquido del cuerpo (6 celdas o más, sin las patas) se vuelven vidrio\n // de arriba abajo. El borde del líquido desaparece sin modificar la cara.\n if(e.seca){\n  // Solo dentro del cuerpo (el ancho de la fila de encima de las patas): los brazos no se evaporan.\n  const base=f[f.length-2],a=base.findIndex(c=>c!=='.'),b=15-[...base].reverse().findIndex(c=>c!=='.');\n  const filas=[];for(let y=ALTO_MEY;y<f.length-1;y++)if(f[y].filter(c=>c==='w').length>=6)filas.push(y);\n  for(const y of filas.slice(0,e.seca))for(let x=a;x<=b;x++)if(f[y][x]==='w')f[y][x]='g';\n }\n const ojos=ojosDeCara(f);\n if(e.mirada&&(e.mirada.dx||e.mirada.dy)){\n  const {dx,dy}=e.mirada;\n  const cabe=ojos.every(({x,y})=>[y+dy,y+dy+1].every(yy=>{const c=f[yy]?.[x+dx];return c==='g'||c==='e';}));\n  if(cabe){\n   for(const {x,y} of ojos){f[y][x]='g';f[y+1][x]='g';}\n   for(const o of ojos){o.x+=dx;o.y+=dy;f[o.y][o.x]='e';f[o.y+1][o.x]='e';}\n  }\n }\n if(e.parpadeo){\n  const orden=[...ojos].sort((a,b)=>a.x-b.x);\n  for(const [i,o] of orden.entries())if(e.parpadeo==='ambos'||(e.parpadeo==='guino'&&i===orden.length-1))f[o.y][o.x]='g';\n }else if(e.ojos==='grandes'){\n  // Sorpresa: cada ojo crece a 2×2 hacia el centro de la cara (sin comerse la pared del vidrio).\n  const centro=ojos.reduce((s,o)=>s+o.x,0)/(ojos.length||1);\n  for(const o of ojos){const lado=o.x<centro?1:-1;for(const y of [o.y,o.y+1])if(f[y][o.x+lado]==='g')f[y][o.x+lado]='e';}\n }else if(e.ojos&&['cerrados','felices','guino'].includes(e.ojos)){\n  const cara=ojosDeCara(f);\n  if(cara.length){\n   const centro=cara.reduce((s,o)=>s+o.x,0)/cara.length;\n   const lista=e.ojos==='guino'?[[...cara].sort((a,b)=>b.x-a.x)[0]]:cara;\n   for(const {x,y} of lista){\n    const lado=x<centro?1:-1;\n    if(e.ojos==='felices'){\n     f[y+1][x]='g';f[y][x]='e';if(f[y][x+lado]==='g')f[y][x+lado]='e';\n    }else{\n     f[y][x]='g';f[y+1][x]='e';if(f[y+1][x+lado]==='g')f[y+1][x+lado]='e';\n    }\n   }\n  }\n }\n vestirMey(f,atuendo,e,ojos);\n const t=tapaMey(f);\n let nSalto=0;\n if(t){\n  const y=t.y+1;\n  const cuelloLimpio=f[y].every((c,x)=>x>=t.a+1&&x<=t.b-1?c==='g':c==='.');\n  if(cuelloLimpio){\n   if(e.agachar){f.splice(y,1);f.unshift(vacia());}\n   else if(e.estirar&&f[0].every(c=>c==='.')){f.splice(y,0,[...f[y]]);f.shift();}\n  }\n }\n const salto=e.salto===true?1:Math.min(3,Math.max(0,+e.salto||0));\n const libres=f.findIndex(fila=>fila.some(c=>c!=='.'));\n nSalto=Math.min(salto,libres<0?0:libres);\n // Inclinarse (tropiezo, mareo, estornudo): la cabeza y los hombros se corren una celda.\n if(e.inclinar){const n=Math.sign(e.inclinar);for(let y=0;y<ALTO_MEY+6;y++)f[y]=n>0?['.',...f[y].slice(0,15)]:[...f[y].slice(1),'.'];}\n if(fiesta||e.fiesta)papelPicadoMey(f);\n if(e.burbuja!==null&&e.burbuja!==undefined){\n  const y=ALTO_MEY+1-e.burbuja;\n  if(y>=0&&f[y][9]==='.')f[y][9]='g';\n }\n // Burbujas sueltas en coordenadas del lienzo de 16×18 y un destello (idea, burbuja que revienta).\n for(const [x,y] of e.burbujas||[])if(f[y]?.[x]==='.')f[y][x]='g';\n if(e.destello){const [x,y]=e.destello;for(const [dx,dy,c] of [[0,0,'p'],[1,0,'x'],[-1,0,'x'],[0,1,'x'],[0,-1,'x']])if(f[y+dy]?.[x+dx]==='.')f[y+dy][x+dx]=c;}\n // Caminar: una pata se levanta en cada paso (se borra de la fila de abajo). Sentarse: patas\n // recogidas, el cuerpo baja una fila.\n if(e.caminando||e.sentada){\n  const y=f.map(fila=>fila.some(c=>c!=='.')).lastIndexOf(true);\n  if(y>=0){\n   // La fila de abajo son siempre las patas.\n   if(e.sentada){f.splice(y,1);f.unshift(vacia());}\n   else for(let x=0;x<16;x++)if(f[y][x]==='w'&&([1,3].includes(e.caminando)?x<8:x>=8))f[y][x]='.';\n   if(!e.sentada&&e.caminando>=3){const z=e.caminando===3?5:10;if(f[y-1][z]==='w')f[y][z]='w';}\n  }\n }\n if(nSalto>0){\n  f.splice(0,nSalto);\n  for(let i=0;i<nSalto;i++)f.push(vacia());\n }\n // Flotar: sube hasta ALTO_MEY filas (se le olvidó la gravedad).\n if(e.flotar){const n=Math.min(ALTO_MEY,e.flotar);f.splice(0,n);for(let i=0;i<n;i++)f.push(vacia());}\n // Utilería en la misma cuadrícula: el cartel queda encima de la cara, nunca sobre los ojos.\n if(e.cartel){\n  const no=['e..epeeee','ee.epe..e','e.eepe..e','e..epeeee'];\n  // Compensar el espejo del actor para que el texto siga diciendo NO hacia la izquierda.\n  for(let y=0;y<4;y++)for(let x=6;x<15;x++)f[y][x]=no[y][e.cartel==='espejo'?14-x:x-6]==='e'?'e':'p';\n  for(let y=4;y<12;y++)if(f[y][13]==='.')f[y][13]='a';\n }\n if(e.confeti){\n  const piezas=[[1,0,'r'],[4,1,'n'],[11,0,'x'],[14,2,'r'],[0,4,'x'],[15,5,'n']];\n  for(const [x,y,c] of piezas){const yy=y+e.confeti-1;if(f[yy]?.[x]==='.')f[yy][x]=c;}\n }\n return f;\n}\nmey.cuadro=(pose,estado={},atuendo='ninguno')=>cuadroMey(pose,{...neutro(),...estado},atuendo,false).map(f=>f.join('')).join('\\n');\n\n/* ---------- Mey en cada app: lugares y perfiles ----------\n   Un «lugar» es el tipo de espacio que la app le da a Mey. Fija la pose por defecto, cuánto se\n   mueve y entre qué tamaños elige (en píxeles por celda: el ancho es 16 celdas). El perfil de la\n   app pone la pose de «trabajo» (Notes lee, Spreadsheets mide, Figures grafica…). Así cada app\n   solo dice dónde va Mey y ella decide el resto; las mejoras de aquí llegan a todas. */\nconst LUGARES_MEY={\n bienvenida:{pose:'hola',energia:'completa',min:3,max:12,defecto:8},\n vacio:{pose:'dormido',energia:'completa',min:3,max:8,defecto:6},\n trabajo:{pose:null,energia:'calma',min:2,max:6,defecto:4},\n carga:{pose:'pensando',energia:'calma',min:2,max:6,defecto:4},\n exito:{pose:'exito',energia:'calma',min:2,max:8,defecto:4},\n error:{pose:'aviso',energia:'calma',min:2,max:8,defecto:4},\n barra:{pose:'hola',energia:'calma',min:1,max:3,defecto:2,eje:'alto'},\n // Recreo: un escenario ancho donde Mey juega (la portada del portal). Ver «Juegos» abajo.\n recreo:{pose:'hola',energia:'completa',min:3,max:5,defecto:4,juegos:true}\n};\nconst PERFILES_MEY={\n slides:{trabajo:'hola'},notes:{trabajo:'leyendo'},documents:{trabajo:'leyendo'},lens:{trabajo:'leyendo'},\n methods:{trabajo:'leyendo'},learn:{trabajo:'leyendo'},research:{trabajo:'leyendo'},novelty:{trabajo:'leyendo'},\n spreadsheets:{trabajo:'midiendo'},doe:{trabajo:'midiendo'},\n figures:{trabajo:'graficando'},ftir:{trabajo:'graficando'},xrd:{trabajo:'graficando'},xps:{trabajo:'graficando'},dft:{trabajo:'graficando'},fem:{trabajo:'graficando'},\n thermal:{trabajo:'midiendo'},\n rmn:{trabajo:'graficando'},\n pentagrama:{trabajo:'hola'},\n analyze:{trabajo:'graficando'},data:{trabajo:'midiendo'},projects:{trabajo:'leyendo'},release:{trabajo:'leyendo'},burocracy:{trabajo:'leyendo'},\n 'legacy-editor':{trabajo:'hola'},tunning:{trabajo:'midiendo'}\n};\n\n/* Resuelve qué Mey toca: {pose, atuendo, energia, min, max, defecto, eje}. Lo explícito gana a\n   lo del lugar, y lo del lugar a lo del perfil de la app. */\nmey.resolver=function({lugar='bienvenida',app,pose,atuendo}={}){\n const l=LUGARES_MEY[lugar];\n if(!l)throw new Error('mey: lugar desconocido: '+lugar);\n const perfil=PERFILES_MEY[app]||{};\n const final=pose||l.pose||perfil.trabajo||'hola';\n filasMey(final);\n return {lugar,pose:final,atuendo:atuendo||perfil.atuendo||'ninguno',energia:l.energia,min:l.min,max:l.max,defecto:l.defecto,eje:l.eje||'ancho',juegos:!!l.juegos};\n};\nmey.lugares=Object.keys(LUGARES_MEY);\nmey.perfiles=Object.keys(PERFILES_MEY);\n\n/* Píxeles por celda que caben en el espacio: el entero más grande dentro de [min, max]; sin\n   medida (0), el tamaño por defecto del lugar. */\nfunction celdaMey(espacio,filas,r){\n const c=Math.floor(espacio/(r.eje==='alto'?filas:16));\n return c>0?Math.max(r.min,Math.min(r.max,c)):r.defecto;\n}\n\n/* ---------- Juegos (lugar «recreo») ----------\n   En el recreo Mey no repite travesuras: juega. Cada juego es una escena cómica corta (una\n   siesta con ronquidos, las escondidillas, el hipo…) con lado, velocidad, disfraz y tiempos al\n   azar, así que ni el mismo juego sale igual dos veces. El orden sale de un mazo por persona:\n   mey.siguienteJuego no repite un juego hasta haberlos jugado todos, ni empieza una vuelta con\n   el último de la anterior. La memoria es {leer(), guardar(dato)}; mey.memoriaLocal(ventana) la\n   guarda en localStorage y, si no se puede, en memoria (nunca falla). */\nconst JUEGOS_MEY=['siesta','escondidillas','burbuja','probador','baile','hipo','mareo','carrera','estornudo','lectura','idea','estatuas','gransalto','resbalon','perseguida','gravedad','evaporacion','techo','pasolunar','berrinche','inocente','teletransporte','reverencia','rebeldia','huelga','aplausos','confeti'];\n\nfunction barajarMey(lista,azar){const a=[...lista];for(let i=a.length-1;i>0;i--){const j=Math.floor(azar()*(i+1));[a[i],a[j]]=[a[j],a[i]];}return a;}\n\nmey.siguienteJuego=function(memoria,azar=Math.random,nombres=JUEGOS_MEY,personalidad='traviesa'){\n const perfil=perfilPersonalidadMey(personalidad);\n let dato=null;try{dato=memoria?.leer?.();}catch{}\n const ultimo=nombres.includes(dato?.ultimo)?dato.ultimo:null;\n let vistos=Array.isArray(dato?.vistos)?dato.vistos.filter(n=>nombres.includes(n)):[];\n let quedan=nombres.filter(n=>!vistos.includes(n));\n if(!quedan.length){vistos=[];quedan=nombres.filter(n=>n!==ultimo||nombres.length===1);}\n const preferidos=quedan.filter(n=>perfil.preferidos.includes(n));\n const juego=barajarMey(preferidos.length&&azar()<.7?preferidos:quedan,azar)[0];\n try{memoria?.guardar?.({vistos:[...vistos,juego],ultimo:juego});}catch{}\n return juego;\n};\n\nmey.memoriaLocal=function(ventana,clave='erlen-mey-recreo'){\n let respaldo=null;\n return {\n  leer(){try{const v=ventana?.localStorage?.getItem(clave);if(v)return JSON.parse(v);}catch{}return respaldo;},\n  guardar(dato){respaldo=dato;try{ventana?.localStorage?.setItem(clave,JSON.stringify(dato));}catch{}}\n };\n};\n\n/* mey.mente: modelo puro de conducta (en segundos, sin DOM, reloj ni mutación). */\nconst clampMey=function(valor,min=0,max=1){\n const n=Number(valor);\n if(Number.isNaN(n))return min;\n return n<min?min:(n>max?max:n);\n};\n\nconst ENFRIAMIENTO_MENTE=Object.freeze({\n pasear:6,acercarse:15,curiosear:8,travesura:12,jugar:4,bostezar:60,dormir:90,estirarse:60,pensar:30,bailar:45,quieta:0\n});\n\nmey.mente={\n enfriamiento:ENFRIAMIENTO_MENTE,\n inicial(memoria={},hora=12){\n  const afectoVal=typeof memoria?.afecto==='number'?memoria.afecto:0.3;\n  const esNoche=hora<6||hora>=23;\n  return {\n   energia:0.8,\n   curiosidad:0.4,\n   aburrimiento:0.2,\n   afecto:clampMey(afectoVal,0,1),\n   sueno:clampMey(esNoche?0.5:0,0,1)\n  };\n },\n actualizar(imp={},s={},dt=0){\n  const inactividad=Number(s.inactividad)||0;\n  const cerca=!!s.cerca;\n  const estimulo=Number(s.estimulo)||0;\n  const caricia=!!s.caricia;\n  const durmiendo=!!s.durmiendo;\n  const hora=typeof s.hora==='number'?s.hora:12;\n\n  let aburrimiento=Number(imp.aburrimiento)||0;\n  aburrimiento+=inactividad>10?(dt/45):(-dt/20);\n\n  let curiosidad=Number(imp.curiosidad)||0;\n  if(estimulo>0){\n   curiosidad+=estimulo*0.3;\n  }else{\n   const paso=dt/30;\n   if(curiosidad<0.4)curiosidad=Math.min(0.4,curiosidad+paso);\n   else if(curiosidad>0.4)curiosidad=Math.max(0.4,curiosidad-paso);\n  }\n\n  let sueno=Number(imp.sueno)||0;\n  if(durmiendo){\n   sueno+=-dt/120;\n  }else{\n   if(inactividad>60)sueno+=dt/240;\n   else if(inactividad<5)sueno+=-dt/60;\n   if(hora<6||hora>=23)sueno+=dt/600;\n  }\n\n  let afecto=Number(imp.afecto)||0;\n  afecto+=(caricia?0.12:0)+(cerca?dt/40:0)-(dt/900);\n\n  sueno=clampMey(sueno,0,1);\n  const energia=clampMey(1-0.6*sueno,0,1);\n\n  return {\n   energia,\n   curiosidad:clampMey(curiosidad,0,1),\n   aburrimiento:clampMey(aburrimiento,0,1),\n   afecto:clampMey(afecto,0,1),\n   sueno\n  };\n },\n utilidad(nombre,imp={},s={}){\n  const energia=clampMey(imp.energia??0.8,0,1);\n  const curiosidad=clampMey(imp.curiosidad??0.4,0,1);\n  const aburrimiento=clampMey(imp.aburrimiento??0.2,0,1);\n  const afecto=clampMey(imp.afecto??0.3,0,1);\n  const sueno=clampMey(imp.sueno??0,0,1);\n\n  const paseo=!!s.paseo;\n  const juegos=!!s.juegos;\n  const punteroVisto=!!s.punteroVisto;\n  const distancia=Number(s.distancia)||0;\n  const novedad=!!s.novedad;\n  const quietaMucho=!!s.quietaMucho;\n  const escribiendo=!!s.escribiendo;\n  const inactividad=Number(s.inactividad)||0;\n\n  if(escribiendo&&['pasear','acercarse','travesura','jugar','bailar','estirarse'].includes(nombre)){\n   return 0;\n  }\n\n  let u=0;\n  switch(nombre){\n   case 'quieta':\n    u=0.35;\n    break;\n   case 'pasear':\n    u=paseo?(0.3+0.4*energia+0.3*curiosidad)*(1-sueno):0;\n    break;\n   case 'acercarse':\n    u=(paseo&&punteroVisto&&distancia>4)?(0.2+0.8*afecto+0.3*curiosidad):0;\n    break;\n   case 'curiosear':\n    u=novedad?(0.3+0.6*curiosidad):0;\n    break;\n   case 'travesura':\n    u=0.2+0.6*aburrimiento;\n    break;\n   case 'jugar':\n    u=juegos?(0.5+0.8*aburrimiento):0;\n    break;\n   case 'bostezar':\n    u=sueno>0.35?(0.9*sueno):0;\n    break;\n   case 'dormir':\n    u=(sueno>0.6&&inactividad>30)?((sueno-0.6)*3):0;\n    break;\n   case 'estirarse':\n    u=quietaMucho?(0.15+0.5*aburrimiento):0;\n    break;\n   case 'pensar':\n    u=0.15+0.3*curiosidad;\n    break;\n   case 'bailar':\n    u=(afecto>0.5&&energia>0.6)?(0.1+0.5*afecto):0;\n    break;\n   default:\n    u=0;\n  }\n  return u*(perfilPersonalidadMey(s.personalidad).pesos[nombre]??1);\n },\n elegir(nombres=[],imp={},s={},ultimaVez={},ahora=0,azar){\n  const candidatos=[];\n  for(const n of nombres){\n   const u=mey.mente.utilidad(n,imp,s);\n   const cd=ENFRIAMIENTO_MENTE[n]??0;\n   const tUltima=typeof ultimaVez?.[n]==='number'?ultimaVez[n]:-Infinity;\n   const transcurrido=ahora-tUltima;\n   const fraccion=cd>0?Math.max(0,1-(transcurrido/cd)):0;\n   const puntaje=u*(1-fraccion);\n   if(puntaje>0.05){\n    candidatos.push({nombre:n,puntaje,peso:puntaje*puntaje});\n   }\n  }\n  if(!candidatos.length)return 'quieta';\n  const r=Number(azar());\n  if(r<=0)return candidatos[0].nombre;\n  const suma=candidatos.reduce((acc,c)=>acc+c.peso,0);\n  if(suma<=0)return candidatos[0].nombre;\n  let objetivo=r*suma;\n  for(const c of candidatos){\n   objetivo-=c.peso;\n   if(objetivo<=0)return c.nombre;\n  }\n  return candidatos[candidatos.length-1].nombre;\n }\n};\n\nmey.memoriaConducta=function(ventana,clave='erlen-mey-conducta'){\n const POR_DEFECTO={visitas:0,ultima:0,afecto:0.3};\n let respaldo=null;\n return {\n  leer(){\n   try{\n    const v=ventana?.localStorage?.getItem(clave);\n    if(v){\n     const parseado=JSON.parse(v);\n     if(parseado&&typeof parseado==='object')return parseado;\n    }\n   }catch{}\n   return respaldo||{...POR_DEFECTO};\n  },\n  guardar(dato){\n   respaldo=dato;\n   try{\n    ventana?.localStorage?.setItem(clave,JSON.stringify(dato));\n   }catch{}\n  }\n };\n};\n\n/* mey.montar(host, {lugar, app, pose, atuendo, energia, celda, vivo, ventana, reloj, aleatorio,\n   fecha, memoria, memoriaConducta, personalidad})\n   pinta a Mey dentro de host (lienzo fijo de 16×18) y la anima según su energía:\n   - completa: latido de conducta, percepción de la página, paseos, juegos y reacciones al clic.\n   - calma: animación vital discreta; sin sensores de página, salvo eventos de la app.\n   - quieta: no se mueve.\n   Sin celda fija mide el host (ResizeObserver); por debajo de 3 px por celda baja a calma.\n   Con movimiento reducido, fuera de la vista, pestaña oculta o saveData no se mueve.\n   Los eventos de guardado se ignoran dormida y se limitan a uno por minuto; otros se deduplican en 3 s.\n   En «recreo», opciones.memoria recuerda los juegos vistos; opciones.juego fuerza el primero.\n   opciones.memoriaConducta conserva visitas y afecto; personalidad fija el carácter visual.\n   Devuelve pose(), atuendo(), reaccionar(), personalidad,\n   evento(), ajustar(), cuadro(), impulsos, conducta, memoria, celda, activa, juego y detener(). */\nmey.montar=function(host,opciones={}){\n const ventana=opciones.ventana||host.ownerDocument.defaultView;\n const doc=host.ownerDocument;\n const reloj=opciones.reloj||ventana;\n const azar=opciones.aleatorio||Math.random;\n const fecha=opciones.fecha||(()=>Date.now());\n const ahora=()=>+fecha();\n const memoriaConducta=opciones.memoriaConducta||mey.memoriaConducta(ventana);\n let memConducta=null;\n try{memConducta=memoriaConducta?.leer?.();}catch{}\n memConducta=memConducta&&typeof memConducta==='object'?{visitas:0,ultima:0,afecto:0.3,...memConducta}:{visitas:0,ultima:0,afecto:0.3};\n const visitasGuardadas=Number(memConducta.visitas),ultimaGuardada=Number(memConducta.ultima),afectoGuardado=Number(memConducta.afecto);\n const tFecha=fecha();\n const ultima=Number.isFinite(ultimaGuardada)&&ultimaGuardada>0?ultimaGuardada:0;\n const visitasPrevias=Number.isFinite(visitasGuardadas)?Math.max(0,Math.floor(visitasGuardadas)):0;\n const primeraVisita=visitasPrevias===0;\n const dias=ultima===0?0:Math.max(0,(tFecha-ultima)/86400000);\n const afectoInicial=clampMey((Number.isFinite(afectoGuardado)?afectoGuardado:0.3)-(ultima===0?0:dias*0.05),0.1,1);\n let visitas=visitasPrevias;\n if(ultima===0||tFecha-ultima>30*60*1000)visitas++;\n let memGuardada={visitas,ultima:tFecha,afecto:afectoInicial};\n try{memoriaConducta?.guardar?.({...memGuardada});}catch{}\n let imp=mey.mente.inicial({afecto:afectoInicial},new Date(tFecha).getHours());\n let ultimoAfectoPersistido=afectoInicial;\n let ultimaPersistencia=ahora();\n const apariencia=mey.aparienciaLocal(ventana);\n const colorLocal=mey.colorLocal(ventana);\n const personalidadLocal=mey.personalidadLocal(ventana);\n let personalidad=opciones.personalidad||personalidadLocal.leer();\n const perfil=()=>perfilPersonalidadMey(personalidad);\n perfil();\n const r=mey.resolver({...opciones,atuendo:opciones.atuendo||apariencia.leer()});\n const poseVigilia=r.pose==='dormido'?'hola':r.pose;\n const energiaPedida=opciones.energia||r.energia;\n if(!['completa','calma','quieta'].includes(energiaPedida))throw new Error('mey: energía desconocida: '+energiaPedida);\n const medir=()=>opciones.celda||celdaMey(r.eje==='alto'?host.clientHeight:host.clientWidth,14+ALTO_MEY,r);\n let celda=medir();\n const energia=()=>energiaPedida==='completa'&&celda<3?'calma':energiaPedida;\n const empiezaDurmiendo=r.lugar==='vacio'&&r.pose==='dormido'&&energia()==='completa';\n let durmiendo=empiezaDurmiendo;\n if(durmiendo)imp.sueno=Math.max(imp.sueno,0.7);\n let pose=r.pose,atuendo=r.atuendo;\n vestirMey(Array.from({length:18},vacia),atuendo,{},[]);\n // Paseo: con energía completa y un espacio más ancho que ella, Mey camina por él. x en píxeles\n // (múltiplo de la celda), rumbo 1 a la derecha y -1 a la izquierda (se voltea en espejo).\n let x=0,rumbo=1,punteroX=null;\n const holgura=()=>Math.max(0,Math.floor((host.clientWidth-16*celda)/celda))*celda;\n const conPaseo=()=>opciones.paseo!==false&&energia()==='completa'&&holgura()>=8*celda;\n let e=durmiendo?{...neutro(),sentada:true}:neutro();\n let pintado='',fijos=new Set(),escena=new Set(),activo=false,ultimoPuntero=-Infinity,ocupada=false,visible=true;\n const recreo=opciones.juegos??r.juegos;\n // La memoria de la persona y, si no guarda nada (bloqueada o de prueba), la de esta visita.\n const guardada=opciones.memoria||(recreo?mey.memoriaLocal(ventana):null);\n let deLaVisita=null;\n const memoria={leer(){let d=null;try{d=guardada?.leer?.();}catch{}return d||deLaVisita;},guardar(d){deLaVisita=d;try{guardada?.guardar?.(d);}catch{}}};\n let jugando=null,pendiente=null,jugados=0,ultimaReaccion=null,ultimoJuego=null,ultimoFinJuego=ahora(),finJuegoActual=null;\n let tPunteroPrev=0,distMeyPrev=0,distanciaPuntero=Infinity,velPuntero=0,dentroDesde=null,tienePunteroPrevio=false;\n let ultimaActividad=ahora(),ultimaCercana=-Infinity,ultimoSusto=-Infinity,ultimaTecla=-Infinity;\n let novedad=null,ultimaConductaMovimiento=ahora(),ultimaTravesura=null,conductaActual=durmiendo?'dormir':null,noAntesDe=0,ultimaVezConducta={};\n let saludoPresenciaRealizado=false,cariciaPendiente=false,historialClics=[],afectoAlIniciarRafaga=null,finMolesta=0,ultimoClic=-Infinity,finDormir=null;\n let guardadoEn=-Infinity,ultimoEvento={tipo:null,t:-Infinity};\n let ocultoDesde=null,enCarga=false,bienvenidaProgramada=false;\n // De cabeza (camina por el techo) es un espejo vertical del mismo dibujo.\n const estilo=()=>{const t=[];if(conPaseo())t.push('translateX('+x+'px)'+(rumbo<0?' scaleX(-1)':''));if(e.deCabeza)t.push('scaleY(-1)');return t.length?'display:block;transform:'+t.join(' '):'';};\n const pintar=()=>{\n  if(conPaseo()){if(!host.style.position)host.style.position='relative';host.style.overflow='hidden';}\n  const dibujo=e.cartel&&conPaseo()&&rumbo<0?{...e,cartel:'espejo'}:e;\n  const svg=svgMey(cuadroMey(pose,dibujo,atuendo,false),pose,atuendo,{...opciones,color:opciones.color||colorLocal.leer(),celda,detalle:true,estilo:estilo()},true);if(svg!==pintado){host.innerHTML=svg;pintado=svg;}\n };\n const poner=cambios=>{e={...e,...cambios};pintar();};\n const despues=(ms,fn,fijo=false)=>{\n  const conjunto=fijo?fijos:escena;\n  const id=reloj.setTimeout(()=>{\n   conjunto.delete(id);\n   if(activo)fn();\n  },ms);\n  conjunto.add(id);\n  return id;\n };\n const entre=(a,b)=>a+Math.floor(azar()*(b-a));\n // Un paso es [cuadros, cambios] o [cuadros, función] (cambia pose, lugar o disfraz entre cuadros).\n const secuencia=(pasos,fin)=>{\n  ocupada=true;let t=0;\n  for(const [c,cambios] of pasos){\n   t+=c;\n   despues(enCuadros(t),()=>typeof cambios==='function'?cambios():poner(cambios));\n  }\n  despues(enCuadros(t),()=>{ocupada=false;fin&&fin();});\n };\n const interrumpir=()=>{\n  for(const id of escena)reloj.clearTimeout(id);\n  escena.clear();\n  ocupada=false;\n  durmiendo=false;\n  jugando=null;\n  pendiente=null;\n  enCarga=false;\n  finDormir=null;\n  ultimoFinJuego=ahora();\n  e=neutro();\n  pose=poseVigilia;\n  finJuegoActual=null;\n  conductaActual=null;\n  pintar();\n };\n const brinco=(h=2)=>[\n  [0,{agachar:1}],\n  [2,{agachar:0,estirar:1,salto:Math.ceil(h/2)}],\n  [1,{estirar:0,salto:h}],\n  [3,{estirar:1,salto:Math.ceil(h/2)}],\n  [1,{estirar:0,salto:0,agachar:1}],\n  [2,{agachar:0}]\n ];\n const sentarse=()=>[[0,{agachar:1}],[2,{agachar:0,sentada:true}]];\n const levantarse=()=>[[0,{agachar:1,sentada:false}],[2,{agachar:0}]];\n const girar=nuevoRumbo=>[[0,{agachar:1}],[1,()=>{rumbo=typeof nuevoRumbo==='function'?nuevoRumbo():nuevoRumbo;pintar();}],[1,{agachar:0}]];\n const tropezar=()=>[\n  [0,{inclinar:1,ojos:'grandes',caminando:1}],\n  [1,{caminando:3,estirar:1}],\n  [1,{estirar:0,caminando:0,agachar:1}],\n  [1,{inclinar:0,agachar:0,sentada:true}],\n  [4,{ojos:null,mirada:{dx:-1,dy:0}}],\n  [3,{mirada:{dx:1,dy:0}}],\n  [3,{mirada:{dx:0,dy:0}}]\n ];\n const APLAUSO_ARRIBA={brazoIzq:2,brazoDer:1,saludo:2,estirar:1,agachar:0,ojos:'felices'};\n const APLAUSO_ABAJO={brazoIzq:0,brazoDer:0,saludo:false,estirar:0,agachar:1};\n const TRAVESURAS={\n  guino:[\n   [0,{parpadeo:'guino'}],\n   [1,{parpadeo:false,ojos:'guino'}],\n   [1,{inclinar:-1}],\n   [1,{brazoIzq:1}],\n   [2,{agachar:1}],\n   [1,{agachar:0,estirar:1,salto:1}],\n   [1,{estirar:0,brazoIzq:2}],\n   [2,{salto:0,agachar:1}],\n   [1,{agachar:0,brazoIzq:1}],\n   [2,{brazoIzq:0,inclinar:0}],\n   [1,{ojos:null,parpadeo:'guino'}],\n   [1,{parpadeo:false}]\n  ],\n  chapoteo:[\n   [0,{chapoteo:'izq'}],\n   [1,{chapoteo:null,agachar:1}],\n   [1,{chapoteo:'der',agachar:0}],\n   [1,{chapoteo:null,estirar:1}],\n   [1,{chapoteo:'izq',estirar:0}],\n   [1,{chapoteo:'der',ojos:'felices'}],\n   [1,{chapoteo:null,agachar:1}],\n   [1,{chapoteo:'izq',agachar:0}],\n   [1,{chapoteo:'der',estirar:1}],\n   [1,{chapoteo:null,estirar:0}],\n   [1,{chapoteo:'izq',brazoIzq:1}],\n   [1,{chapoteo:'der',brazoIzq:0,ojos:null}],\n   [1,{chapoteo:null}]\n  ],\n  burbuja:[\n   [0,{mirada:{dx:0,dy:-1}}],\n   [1,{estirar:1}],\n   [1,{estirar:0,burbuja:0}],\n   [2,{burbuja:1}],\n   [2,{burbuja:2}],\n   [2,{burbuja:3,ojos:'grandes'}],\n   [2,{burbuja:4}],\n   [2,{burbuja:5,ojos:null}],\n   [2,{burbuja:null,destello:[9,1]}],\n   [1,{destello:null,parpadeo:'ambos'}],\n   [1,{parpadeo:false,mirada:{dx:0,dy:0}}]\n  ],\n  saludo:[\n   [0,{ojos:'grandes',estirar:1}],\n   [2,{estirar:0,ojos:null,saludo:1}],\n   [1,{saludo:2,ojos:'felices'}],\n   [2,{saludo:1}],\n   [2,{saludo:2}],\n   [2,{saludo:1}],\n   [2,{saludo:2,inclinar:1}],\n   [2,{saludo:1,inclinar:0}],\n   [2,{saludo:2}],\n   [2,{saludo:false,agachar:1}],\n   [2,{agachar:0,ojos:null}]\n  ],\n  celebrar:[\n   ...brinco(2),\n   [0,()=>{pose='exito';poner({fiesta:true,ojos:'felices'});}],\n   [4,{salto:1}],\n   [2,{salto:0}],\n   [2,{salto:1}],\n   [2,{salto:0}],\n   [4,()=>{pose=poseVigilia;poner({fiesta:false,ojos:null});}]\n  ],\n  risa:[\n   [0,{ojos:'felices',agachar:1}],\n   [1,{agachar:0,estirar:1,chapoteo:'izq'}],\n   [1,{estirar:0,agachar:1,chapoteo:'der'}],\n   [1,{agachar:0,estirar:1,chapoteo:null}],\n   [1,{estirar:0,agachar:1,chapoteo:'izq'}],\n   [1,{agachar:0,estirar:1,chapoteo:'der'}],\n   [1,{estirar:0,agachar:1,chapoteo:null}],\n   [1,{agachar:0,estirar:1,chapoteo:'izq'}],\n   [1,{estirar:0,brazoIzq:1,chapoteo:null}],\n   [3,{brazoIzq:0,ojos:null}]\n  ],\n  sorpresa:[\n   [0,{ojos:'grandes',estirar:1,salto:1}],\n   [1,{salto:2}],\n   [1,{salto:1}],\n   [1,{salto:0,estirar:0,agachar:1}],\n   [2,{agachar:0}],\n   [5,{ojos:null}]\n  ],\n  cosquillas:[\n   [0,{ojos:'felices',inclinar:-1}],\n   [1,{inclinar:1,brazoIzq:1}],\n   [1,{inclinar:-1,brazoIzq:0,saludo:1}],\n   [1,{inclinar:1,saludo:false,brazoIzq:1}],\n   [1,{inclinar:-1,brazoIzq:2}],\n   [1,{inclinar:1,brazoIzq:0,saludo:2}],\n   [1,{inclinar:-1,saludo:false}],\n   [1,{inclinar:1,agachar:1}],\n   [1,{inclinar:-1,agachar:0,estirar:1}],\n   [1,{inclinar:1,estirar:0}],\n   [1,{inclinar:0,ojos:null}]\n  ],\n  bostezo:[\n   [0,{parpadeo:'ambos'}],\n   [2,{parpadeo:false,ojos:'cerrados'}],\n   [1,{estirar:1}],\n   [3,{brazoIzq:1}],\n   [3,{brazoIzq:2}],\n   [2,{brazoIzq:1,estirar:0,agachar:1}],\n   [2,{agachar:0,brazoIzq:0}],\n   [2,{ojos:null,parpadeo:'ambos'}],\n   [1,{parpadeo:false}],\n   [2,{parpadeo:'ambos'}],\n   [1,{parpadeo:false}]\n  ],\n  estirarse:[\n   [0,{agachar:1}],\n   [2,{agachar:0,estirar:1,ojos:'cerrados'}],\n   [1,{brazoIzq:1,saludo:1}],\n   [2,{brazoIzq:2,saludo:2}],\n   [4,{estirar:0,brazoIzq:1,saludo:1}],\n   [1,{agachar:1,brazoIzq:0,saludo:false}],\n   [2,{agachar:0,ojos:null}],\n   [2,{parpadeo:'ambos'}],\n   [1,{parpadeo:false}]\n  ],\n  aplauso:[\n   [0,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [2,{brazoIzq:0,brazoDer:1,saludo:false,estirar:0,agachar:0,ojos:null}]\n  ],\n  pensar:[\n   [0,()=>{pose='pensando';pintar();}],\n   [3,{mirada:{dx:0,dy:-1}}],\n   [4,{mirada:{dx:1,dy:-1}}],\n   [4,{mirada:{dx:-1,dy:-1}}],\n   [3,{mirada:{dx:0,dy:-1},inclinar:1}],\n   [3,{inclinar:0,mirada:{dx:0,dy:0}}],\n   [2,{parpadeo:'ambos'}],\n   [1,{parpadeo:false}],\n   [2,()=>{pose=poseVigilia;pintar();}]\n  ],\n  preocupacion:[\n   [0,()=>{pose='aviso';pintar();}],\n   [1,{ojos:'grandes'}],\n   [1,{inclinar:-1}],\n   [1,{inclinar:1}],\n   [1,{inclinar:-1}],\n   [1,{inclinar:1}],\n   [2,{inclinar:0,mirada:{dx:-1,dy:0}}],\n   [2,{mirada:{dx:1,dy:0}}],\n   [2,{mirada:{dx:0,dy:0},ojos:null}],\n   [2,{agachar:1}],\n   [2,{agachar:0}],\n   [2,()=>{pose=poseVigilia;pintar();}]\n  ],\n  asentir:[\n   [0,{agachar:1}],\n   [1,{agachar:0,estirar:1}],\n   [1,{estirar:0,ojos:'felices'}],\n   [1,{agachar:1}],\n   [2,{agachar:0}],\n   [2,{ojos:null}]\n  ],\n  enojo:[\n   [0,()=>{pose='aviso';pintar();}],\n   [0,{ojos:'grandes',inclinar:-1}],\n   [1,{inclinar:1}],\n   [1,{inclinar:-1}],\n   [1,{inclinar:1}],\n   [1,{inclinar:-1}],\n   [2,{inclinar:0,ojos:null}],\n   [4,{agachar:1}],\n   [3,{agachar:0}],\n   [2,()=>{pose=poseVigilia;pintar();}]\n  ]\n };\n const despertar=fin=>{\n  if(!durmiendo){fin&&fin();return;}\n  const alDespertar=fin||finDormir;\n  interrumpir();\n  finDormir=null;\n  durmiendo=false;\n  pose=poseVigilia;\n  e=neutro();\n  pintar();\n  conductaActual='despertar';\n  secuencia(TRAVESURAS.sorpresa,()=>secuencia(TRAVESURAS.estirarse,()=>secuencia(TRAVESURAS.saludo,()=>{\n   conductaActual=null;\n   ultimaConductaMovimiento=ahora();\n   noAntesDe=ahora()+enCuadros(entre(24,72))*(2-imp.energia)*perfil().pausa;\n   alDespertar&&alDespertar();\n  })));\n };\n const alPuntero=ev=>{\n  const b=host.getBoundingClientRect();if(!b.width)return;\n  const tAhora=ahora(),estabaDormida=durmiendo;\n  ultimaActividad=tAhora;\n  const dentro=ev.clientY>=b.top&&ev.clientY<=b.bottom&&ev.clientX>=b.left&&ev.clientX<=b.right;\n  if(dentro){\n   if(dentroDesde===null)dentroDesde=tAhora;\n   punteroX=ev.clientX-b.left;\n  }else dentroDesde=null;\n  ultimoPuntero=tAhora;\n  const cx=b.left+(conPaseo()?x+8*celda:b.width/2),cy=b.top+b.height/2;\n  const distMey=Math.hypot(ev.clientX-cx,ev.clientY-cy);\n  distanciaPuntero=distMey;\n  if(distMey<=12*celda)ultimaCercana=tAhora;\n  if(!tienePunteroPrevio){\n   tienePunteroPrevio=true;tPunteroPrev=tAhora;distMeyPrev=distMey;\n  }else{\n   const dt=tAhora-tPunteroPrev;\n   if(dt>=8){\n    const instVel=((distMeyPrev-distMey)/dt)*1000;\n    velPuntero=velPuntero===0?instVel:0.5*velPuntero+0.5*instVel;\n    tPunteroPrev=tAhora;distMeyPrev=distMey;\n   }\n  }\n  if(distMey<=12*celda&&velPuntero>=1200&&imp.afecto<.6&&!estabaDormida&&!jugando&&tAhora-ultimoSusto>10000){\n   ultimoSusto=tAhora;\n   interrumpir();\n   conductaActual='susto';\n   const dir=ev.clientX>cx?-1:1,destRetiro=x+dir*entre(4,8)*celda;\n   secuencia(TRAVESURAS.sorpresa,()=>{\n    if(conPaseo())caminar(destRetiro,()=>{conductaActual=null;},{cuadros:1});\n    else conductaActual=null;\n   });\n   return;\n  }\n  if(estabaDormida&&distMey<=12*celda)despertar();\n  if(ocupada)return;\n  const dx=ev.clientX<cx-b.width*.6?-1:ev.clientX>cx+b.width*.6?1:0;\n  const dy=ev.clientY<cy-b.height*.6?-1:(ev.clientY>cy+b.height*.6?1:0);\n  const dxv=conPaseo()&&rumbo<0?-dx:dx;\n  if(dxv!==e.mirada.dx||dy!==e.mirada.dy)poner({mirada:{dx:dxv,dy}});\n };\n const celebrar=()=>{\n  if(!activo||ocupada)return;\n  ultimaReaccion='celebrar';\n  secuencia(TRAVESURAS.celebrar);\n };\n /* Camina hasta destino (px) alternando las patas. cuadros por paso, zancada en celdas, brinco (salta\n    a cada paso), libre (puede salir del escenario: se esconde tras el borde), sigilo (sin mover brazos)\n    y pausa() → cuadros que se queda congelada antes del siguiente paso (0 sigue). En el recreo es torpe:\n    a veces se tropieza a medio camino (y a veces hasta se cae sentada). Sin paseo llega en el acto. */\n const caminar=(destino,alLlegar,opts={})=>{\n  if(!conPaseo()){alLlegar&&alLlegar();return;}\n  const {\n   cuadros=2,\n   zancada=1,brinco=false,libre=false,sigilo=false,pausa=null,torpe=recreo,atras=false\n  } = opts;\n  const borde=libre?17*celda:0;\n  const meta=Math.max(-borde,Math.min(holgura()+borde,Math.round(destino/celda)*celda));\n  if(meta===x){alLlegar&&alLlegar();return;}\n  ocupada=true;\n  const nuevoRumbo=meta>x?1:-1;\n  const andar=()=>{\n   if(!activo)return;\n   ocupada=true;\n   const total=Math.ceil(Math.abs(meta-x)/(zancada*celda));\n   let tropiezo=torpe&&total>3&&azar()<.18?1+Math.floor(azar()*(total-2)):-1;\n   const paso=n=>{\n    if(!activo)return;\n    if(n===tropiezo){\n     tropiezo=-1;\n     secuencia(tropezar(),()=>{\n      ocupada=true;\n      if(azar()<.35){\n       secuencia(sentarse(),()=>{\n        ocupada=true;\n        despues(enCuadros(entre(7,12)),()=>secuencia(levantarse(),()=>paso(n)));\n       });\n      }else{\n       secuencia(levantarse(),()=>paso(n));\n      }\n     });\n     return;\n    }\n    const espera=pausa?pausa():0;\n    if(espera){\n     despues(enCuadros(espera),()=>paso(n));\n     return;\n    }\n    const dur=cuadros+(n===0||n>=total-2?1:0);\n    const A=Math.max(1,Math.floor(dur/2));\n    const B=dur-A;\n    poner({\n     caminando:n%2?3:4,\n     agachar:0,\n     brazoIzq:sigilo?0:(n%2?1:0),\n     sentada:false,\n     salto:brinco&&n%2===0?1:0,\n     estirar:brinco&&n%2===0?1:0\n    });\n    despues(enCuadros(A),()=>{\n     x=nuevoRumbo>0?Math.min(meta,x+zancada*celda):Math.max(meta,x-zancada*celda);\n     poner({\n      caminando:n%2?1:2,\n      agachar:brinco?1:0,\n      salto:0,\n      estirar:0\n     });\n     if(x!==meta){\n      despues(enCuadros(B),()=>paso(n+1));\n     }else{\n      despues(enCuadros(B),()=>{\n       poner({caminando:0,agachar:0,brazoIzq:0,salto:0,estirar:0});\n       ocupada=false;\n       alLlegar&&alLlegar();\n      });\n     }\n    });\n   };\n   paso(0);\n  };\n  const frente=atras?-nuevoRumbo:nuevoRumbo;\n  if(frente!==rumbo){\n   secuencia(girar(frente),andar);\n  }else{\n   andar();\n  }\n };\n /* ---------- Recreo: los juegos ----------\n    Cada juego tiene foto (cómo se ve quieta), inicio opcional (dónde y cómo la encuentras;\n    primero = la persona recién llega) y correr(fin). Las direcciones de la mirada y de inclinarse\n    son de Mey: al voltearse en espejo, el navegador las voltea con ella. */\n const uno=lista=>lista[Math.floor(azar()*lista.length)];\n const lado=()=>azar()<.5?-1:1;\n const fuera=s=>s<0?-17*celda:holgura()+17*celda;\n const asomo=s=>s<0?-9*celda:holgura()+9*celda;\n const alAzar=()=>Math.floor(azar()*(holgura()/celda+1))*celda;\n const aDistancia=n=>{const h=holgura(),d=n*celda,ops=[x+d,x-d].filter(v=>v>=0&&v<=h);return ops.length?uno(ops):(x>h/2?0:h);};\n const ponerX=(px,r)=>{x=px;if(r)rumbo=r;pintar();};\n const risa=()=>TRAVESURAS.risa;\n // Saluda; a veces con tanto entusiasmo que se va de lado y se cae sentada.\n const saludo=()=>[...TRAVESURAS.saludo,...(azar()<.2?tropezar():[])];\n const hipido=(t=0)=>[\n  [t,{agachar:1}],\n  [1,{agachar:0,estirar:1,salto:1,ojos:'grandes',burbujas:[[9,3]]}],\n  [1,{salto:0,estirar:0}],\n  [2,{ojos:null,burbujas:[[9,2]]}],\n  [2,{burbujas:[[9,1]]}],\n  [2,{burbujas:[[9,0]]}],\n  [2,{burbujas:null}]\n ];\n const fiesta=()=>[[0,()=>{pose='exito';poner({fiesta:true});}],[14,()=>{pose=poseVigilia;poner({fiesta:false});}]];\n // Sale corriendo por el borde más cercano (o aparece ya escondida al llegar).\n const esconderse=(primero,s,listo)=>{\n  if(!conPaseo())return listo();\n  if(primero){ponerX(fuera(s),-s);return listo();}\n  caminar(fuera(s),()=>secuencia(girar(-rumbo),listo),{cuadros:1,zancada:2,libre:true});\n };\n const cerca=()=>x>holgura()/2?1:-1;\n let lado0=1;\n const JUEGOS={\n  // La encuentras dormida y roncando burbujas; la despiertas acercándote (o se despierta sola).\n  siesta:{\n   foto:()=>({pose:'dormido',e:{sentada:true}}),\n   inicio(primero,listo){pose='dormido';if(primero&&conPaseo())x=alAzar();poner({sentada:true});listo();},\n   correr(fin){\n    const ronquidos=2+Math.floor(azar()*3);\n    const despertar=()=>{pose=poseVigilia;secuencia([[0,{burbuja:null,ojos:'grandes'}],...levantarse(),...brinco(2),[0,{mirada:{dx:-1,dy:0}}],[6,{mirada:{dx:1,dy:0}}],[5,{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}],...saludo()],fin);};\n    const roncar=k=>{\n     if(k>=ronquidos||ahora()-ultimoPuntero<1200)return despertar();\n     secuencia([[0,{burbuja:0}],[4,{burbuja:1}],[4,{burbuja:2}],[4,{burbuja:3}],[4,{burbuja:4}],[4,{burbuja:null}]],()=>despues(enCuadros(entre(4,11)),()=>roncar(k+1)));\n    };\n    roncar(0);\n   }\n  },\n  // Escondidillas: se asoma por un borde, se esconde y reaparece por el otro.\n  escondidillas:{\n   foto:()=>({pose:'hola',e:{mirada:{dx:1,dy:0}}}),\n   inicio(primero,listo){lado0=primero?lado():cerca();esconderse(primero,lado0,listo);},\n   correr(fin){\n    // Sin espacio para esconderse: juega «¿dónde está Mey?… ¡bu!» en su lugar.\n    if(!conPaseo()){\n     const pasos=[];for(let i=0,n=2+Math.floor(azar()*2);i<n;i++)pasos.push([i?entre(4,7):0,{parpadeo:'ambos',mirada:{dx:0,dy:0}}],[entre(8,16),{parpadeo:false,ojos:'grandes'}],...brinco(2),[5,{ojos:null,mirada:{dx:i%2?1:-1,dy:0}}],[4,{mirada:{dx:0,dy:0}}]);\n     return secuencia([...pasos,...saludo(),...risa()],fin);\n    }\n    const s=lado0,o=azar()<.7?-s:s;\n    secuencia([[0,()=>ponerX(asomo(s),-s)],[0,{mirada:{dx:1,dy:0}}],[entre(7,12),{mirada:{dx:0,dy:0},ojos:'grandes'}],[5,()=>{ponerX(fuera(s));poner({ojos:null});}],[entre(8,18),()=>ponerX(asomo(o),-o)],[0,{mirada:{dx:1,dy:-1}}],[entre(7,11),{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}]],\n     ()=>caminar(o<0?entre(4,24)*celda:holgura()-entre(4,24)*celda,()=>secuencia([...saludo(),...risa()],fin),{cuadros:1,zancada:2,libre:true,brinco:true}));\n   }\n  },\n  // Persigue una burbuja que suelta, la burbuja revienta y ella se queda chiquita.\n  burbuja:{\n   foto:()=>({pose:'hola',e:{burbujas:[[11,2],[13,0]],mirada:{dx:1,dy:0}}}),\n   correr(fin){\n    const volar=[[0,{mirada:{dx:0,dy:-1},burbujas:[[9,4]]}],[3,{burbujas:[[10,3]]}],[3,{burbujas:[[12,2]],mirada:{dx:1,dy:-1}}],[3,{burbujas:[[13,1]]}],[3,{burbujas:[[14,1]],mirada:{dx:1,dy:0}}]];\n    const reventar=[[0,{burbujas:[[14,0]]}],[3,{burbujas:null,destello:[14,1],ojos:'grandes',mirada:{dx:0,dy:0}}],[3,{destello:null}],[5,()=>{pose='aviso';poner({ojos:null});}],[11,()=>{pose=poseVigilia;pintar();}],...risa()];\n    secuencia(volar,()=>caminar(aDistancia(entre(8,24)),()=>secuencia(reventar,fin),{cuadros:entre(1,3),brinco:azar()<.5}));\n   }\n  },\n  // Probador: se cambia de disfraz de un brinco en otro y se queda con el que más le gusta.\n  probador:{\n   foto:()=>({pose:'hola',atuendo:uno(['gala','charro','luchador']),e:{parpadeo:'guino'}}),\n   correr(fin){\n    const lista=barajarMey(ATUENDOS_MEY.filter(a=>a!==atuendo&&a!=='ninguno'),azar);\n    const pasos=[];\n    for(const a of lista)pasos.push(...brinco(2),[0,()=>{atuendo=a;pintar();}],[entre(6,11),{mirada:{dx:uno([-1,1]),dy:0}}],[entre(4,7),{mirada:{dx:0,dy:0}}]);\n    const final=uno([...lista,'rebozo']);\n    pasos.push(...brinco(2),[0,()=>{atuendo=final;poner({parpadeo:'guino'});}],[4,{parpadeo:false}],...saludo());\n    secuencia(pasos,fin);\n   }\n  },\n  // Baile: pasos al azar sin repetir el anterior y papel picado al final.\n  baile:{\n   foto:()=>({pose:'exito',e:{fiesta:true}}),\n   correr(fin){\n    const movs=[()=>[[0,{chapoteo:'izq'}],[2,{chapoteo:'der'}],[2,{chapoteo:null}]],()=>brinco(2),()=>girar(()=>-rumbo),()=>[[0,{inclinar:1}],[2,{inclinar:-1}],[2,{inclinar:0}]],()=>saludo(),()=>[...brinco(2),[0,{parpadeo:'guino'}],[2,{parpadeo:false}]]];\n    const pasos=[],n=6+Math.floor(azar()*6);let previo=-1;\n    for(let i=0;i<n;i++){let k=Math.floor(azar()*movs.length);if(k===previo)k=(k+1)%movs.length;previo=k;const m=movs[k]();m[0][0]=i?entre(2,4):0;pasos.push(...m);}\n    secuencia([...pasos,...sentarse(),[0,{parpadeo:'ambos'}],...levantarse(),[0,{parpadeo:false,ojos:'grandes'}],[2,{ojos:null}],...saludo(),...fiesta()],fin);\n   }\n  },\n  // Hipo: brinquitos con burbuja y cara de «perdón».\n  hipo:{\n   foto:()=>({pose:'hola',e:{burbujas:[[9,2]],ojos:'grandes'}}),\n   correr(fin){\n    const pasos=[],n=3+Math.floor(azar()*3);\n    for(let i=0;i<n;i++)pasos.push(...hipido(i?entre(8,19):4),[0,{mirada:{dx:uno([-1,0,1]),dy:0}}]);\n    secuencia([...pasos,[6,{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}],...risa()],fin);\n   }\n  },\n  // Da vueltas cada vez más rápido, se marea, se sienta y sacude la cabeza.\n  mareo:{\n   foto:()=>({pose:'hola',e:{sentada:true,inclinar:uno([-1,1]),mirada:{dx:1,dy:-1}}}),\n   correr(fin){\n    const vueltas=6+Math.floor(azar()*5);\n    const marear=i=>{\n     if(i>=vueltas){\n      const circulo=[{dx:1,dy:0},{dx:1,dy:-1},{dx:0,dy:-1},{dx:-1,dy:-1},{dx:-1,dy:0},{dx:0,dy:0}],pasos=[];\n      for(let k=0;k<12;k++)pasos.push([2,{mirada:circulo[k%6],inclinar:k%4<2?1:-1}]);\n      return secuencia([...pasos,...sentarse(),[0,{inclinar:0,mirada:{dx:0,dy:0}}],[entre(14,24),{mirada:{dx:-1,dy:0}}],[2,{mirada:{dx:1,dy:0}}],[2,{mirada:{dx:-1,dy:0}}],[2,{mirada:{dx:0,dy:0}}],...levantarse(),[4,{parpadeo:'guino'}],[4,{parpadeo:false}]],fin);\n     }\n     const intervalo=Math.max(2,4-Math.floor(2*i/vueltas));\n     secuencia(girar(()=>-rumbo),()=>despues(enCuadros(intervalo-2),()=>marear(i+1)));\n    };\n    marear(0);\n   }\n  },\n  // Llega corriendo, se tropieza, se ríe de sí misma y saluda.\n  carrera:{\n   foto:()=>({pose:'hola',e:{sentada:true,ojos:'grandes'}}),\n   inicio(primero,listo){lado0=primero?lado():cerca();esconderse(primero,lado0,listo);},\n   correr(fin){\n    const tropiezo=[...tropezar(),...risa(),...levantarse(),...saludo()];\n    caminar(lado0<0?entre(6,30)*celda:holgura()-entre(6,30)*celda,()=>secuencia(tropiezo,fin),{cuadros:1,zancada:2,libre:true});\n   }\n  },\n  // Estornudo (a veces falsa alarma primero): ¡achú! de burbujas.\n  estornudo:{\n   foto:()=>({pose:'hola',e:{parpadeo:'ambos',inclinar:-1}}),\n   correr(fin){\n    const nube=()=>Array.from({length:5+Math.floor(azar()*4)},()=>[entre(1,15),entre(0,6)]);\n    const aguantar=[[0,{parpadeo:'ambos',inclinar:-1}],[entre(5,8),{inclinar:0}],[3,{inclinar:-1}]];\n    const falsa=azar()<.5?[[entre(6,10),{inclinar:0,parpadeo:false,ojos:'grandes'}],[entre(7,13),{ojos:null,mirada:{dx:0,dy:-1}}],[entre(6,11),{mirada:{dx:0,dy:0}}],[entre(4,8),{inclinar:-1,parpadeo:'ambos'}]]:[];\n    secuencia([...aguantar,...falsa],()=>despues(enCuadros(entre(4,7)),()=>{\n     const salto=brinco(2);\n     salto[0]=[0,{...salto[0][1],inclinar:1,parpadeo:false,ojos:'grandes',burbujas:nube()}];\n     secuencia(salto,()=>secuencia([[3,{burbujas:nube()}],[3,{burbujas:nube()}],[4,{burbujas:null,inclinar:0,ojos:null}],[4,{mirada:{dx:-1,dy:0}}],[4,{mirada:{dx:1,dy:0}}],[4,{mirada:{dx:0,dy:0}}],...risa()],fin));\n    }));\n   }\n  },\n  // Lee mientras camina, choca con algo invisible, se voltea y sigue leyendo.\n  lectura:{\n   foto:()=>({pose:'leyendo'}),\n   inicio(primero,listo){pose='leyendo';pintar();listo();},\n   correr(fin){\n    const leer=[];for(let i=0,n=2+Math.floor(azar()*3);i<n;i++)leer.push([i?4:0,{mirada:{dx:-1,dy:0}}],[entre(6,10),{mirada:{dx:0,dy:0}}],[entre(5,8),{mirada:{dx:1,dy:0}}]);\n    if(!conPaseo())return secuencia([...leer,[5,{mirada:{dx:0,dy:0},parpadeo:'ambos'}],[7,{inclinar:1}],[entre(8,14),{inclinar:0,parpadeo:false,ojos:'grandes'}],...brinco(2),[5,()=>{pose=poseVigilia;poner({ojos:null});}],...risa()],fin);\n    const choque=[[0,()=>{pose=poseVigilia;poner({ojos:'grandes',inclinar:-1});}],...brinco(2),[6,{inclinar:0,ojos:null,mirada:{dx:-1,dy:0}}],[5,{mirada:{dx:0,dy:0}}],...girar(()=>-rumbo),[0,()=>{pose='leyendo';pintar();}],[entre(6,12),()=>{}]];\n    secuencia([...leer,[4,{mirada:{dx:0,dy:0}}]],()=>caminar(aDistancia(entre(8,20)),()=>secuencia(choque,()=>caminar(aDistancia(entre(5,14)),()=>{pose=poseVigilia;pintar();fin();},{cuadros:3}),{cuadros:3})));\n   }\n  },\n  // Piensa con la mirada arriba, se le prende el foco, corre brincando y celebra.\n  idea:{\n   foto:()=>({pose:'pensando'}),\n   inicio(primero,listo){pose='pensando';pintar();listo();},\n   correr(fin){\n    secuencia([[0,{mirada:{dx:0,dy:-1}}],[entre(11,18),{mirada:{dx:1,dy:-1}}],[entre(8,14),{mirada:{dx:-1,dy:-1}}]],()=>{\n     pose=poseVigilia;\n     const salto=brinco(2);\n     salto[0]=[0,{...salto[0][1],destello:[13,1],ojos:'grandes',mirada:{dx:0,dy:0}}];\n     secuencia(salto,()=>secuencia([[5,{destello:null,ojos:null}]],()=>caminar(aDistancia(entre(6,20)),()=>secuencia([...brinco(2),[0,{parpadeo:'guino'}],[2,{parpadeo:false}],...saludo(),...fiesta()],fin),{cuadros:entre(1,3),brinco:true})));\n    });\n   }\n  },\n  // El gran salto (ironía): se prepara muchísimo, tiembla de concentración… y el salto es de una\n  // celda. Aterriza orgullosa y saluda como si nada.\n  gransalto:{\n   foto:()=>({pose:'hola',e:{sentada:true,parpadeo:'ambos'}}),\n   correr(fin){\n    const temblor=[];for(let i=0,n=6+Math.floor(azar()*6);i<n;i++)temblor.push([i?1:entre(6,11),{inclinar:i%2?1:-1}]);\n    secuencia([...sentarse(),[0,{parpadeo:'ambos'}],...temblor,[2,{inclinar:0,parpadeo:false,ojos:'grandes'}]],()=>despues(enCuadros(6),()=>secuencia([...levantarse(),...brinco(1),[entre(6,11),{mirada:{dx:-1,dy:0}}],[5,{mirada:{dx:1,dy:0}}],[5,{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}],...saludo()],fin)));\n   }\n  },\n  // Resbalón: de tanto jugar le escurre una gota de sudor, la gota llega al piso y ella la pisa.\n  // Después mira a los lados: «¿nadie vio?».\n  resbalon:{\n   foto:()=>({pose:'hola',e:{sentada:true,inclinar:-1,ojos:'grandes'}}),\n   correr(fin){\n    const gota=[[14,8],[14,9],[14,11],[14,13],[14,15],[14,17]];\n    secuencia([...gota.map(([x,y],i)=>[i?entre(2,3):0,{burbujas:[[x,y]]}]),[entre(6,11),{mirada:{dx:1,dy:0}}],[5,{mirada:{dx:0,dy:0},caminando:2}],[2,{caminando:1,burbujas:null,inclinar:-1,ojos:'grandes'}]],()=>secuencia([...brinco(2),[0,{caminando:0}]],()=>secuencia([...sentarse(),[0,{inclinar:0}],[8,{mirada:{dx:-1,dy:0}}],[3,{mirada:{dx:1,dy:0}}],[3,{mirada:{dx:-1,dy:0}}],[3,{mirada:{dx:0,dy:0},ojos:null}],...levantarse(),[4,{parpadeo:'guino'}],[4,{parpadeo:false}],...saludo()],fin)));\n   }\n  },\n  // La burbuja la persigue a ella: huye mirando atrás y la burbuja le revienta en la cara.\n  perseguida:{\n   foto:()=>({pose:'hola',e:{burbujas:[[1,5]],ojos:'grandes',mirada:{dx:-1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,{burbujas:[[9,4]],mirada:{dx:0,dy:-1}}],[4,{burbujas:[[7,3]]}],[4,{burbujas:[[4,3]],mirada:{dx:-1,dy:0}}],[4,{burbujas:[[2,5]],ojos:'grandes'}]],\n     ()=>despues(enCuadros(5),()=>caminar(aDistancia(entre(10,26)),()=>secuencia([[0,{burbujas:[[3,4]],mirada:{dx:0,dy:0}}],[2,{burbujas:[[5,5]]}],[2,{burbujas:null,destello:[6,4],parpadeo:'ambos',ojos:null}],[4,{destello:null}],[5,{parpadeo:false}],...risa()],fin),{cuadros:1})));\n   }\n  },\n  // Se le olvida la gravedad: flota, patalea en el aire, se acuerda… y cae de sentón.\n  gravedad:{\n   foto:()=>({pose:'hola',e:{flotar:2,ojos:'grandes',caminando:1}}),\n   correr(fin){\n    const pasos=[[0,{ojos:'grandes'}]];\n    for(let k=1;k<=4;k++)pasos.push([entre(4,7),{flotar:k,caminando:k%2?1:2}]);\n    for(let i=0,n=3+Math.floor(azar()*4);i<n;i++)pasos.push([2,{caminando:i%2?1:2,mirada:{dx:i%2?1:-1,dy:0}}]);\n    secuencia([...pasos,[entre(6,11),{caminando:0,mirada:{dx:0,dy:0},ojos:null,parpadeo:'guino'}],[4,{parpadeo:false,ojos:'grandes'}],[1,{flotar:2}],[1,{flotar:0,inclinar:1}],...sentarse(),[0,{inclinar:0}],[7,{ojos:null,mirada:{dx:-1,dy:0}}],[4,{mirada:{dx:1,dy:0}}],[4,{mirada:{dx:0,dy:0}}],...levantarse(),...risa()],fin);\n   }\n  },\n  // Se evapora (química pura): pierde el líquido de las perneras fila por fila, se preocupa,\n  // se junta una nube arriba y le llueve adentro hasta quedar llena otra vez.\n  evaporacion:{\n   foto:()=>({pose:'hola',e:{seca:2,mirada:{dx:0,dy:-1},burbujas:[[5,1],[10,0]]}}),\n   correr(fin){\n    const vapor=k=>[entre(6,10),{seca:k,burbujas:[[entre(3,13),entre(0,3)],[entre(3,13),entre(0,3)]]}];\n    const nube=[[6,0],[7,0],[8,0],[9,0],[5,1],[10,1]];\n    secuencia([[0,{mirada:{dx:0,dy:-1}}],vapor(1),vapor(2),vapor(3),[6,{ojos:'grandes',burbujas:null}],[8,{ojos:null,mirada:{dx:-1,dy:0}}],[6,{mirada:{dx:1,dy:0}}],[6,{mirada:{dx:0,dy:-1},burbujas:nube}],[7,{burbujas:[...nube,[7,2],[9,1]]}],[3,{burbujas:[...nube,[7,3],[9,2],[6,1]],seca:2}],[3,{burbujas:[...nube,[9,3],[6,2],[8,1]],seca:1}],[3,{burbujas:[...nube,[6,3],[8,2]],seca:0}],[4,{burbujas:null,mirada:{dx:0,dy:0}}],...risa()],fin);\n   }\n  },\n  // Camina por el techo: de un brinco queda de cabeza, pasea así tan campante y se cae.\n  techo:{\n   foto:()=>({pose:'hola',e:{deCabeza:true}}),\n   correr(fin){\n    const caida=[[4,{mirada:{dx:0,dy:-1}}],[7,{ojos:'grandes'}],[4,{deCabeza:false,inclinar:1}],...sentarse(),[0,{inclinar:0}],[7,{ojos:null,mirada:{dx:-1,dy:-1}}],[2,{mirada:{dx:1,dy:-1}}],[2,{mirada:{dx:0,dy:0}}],...levantarse(),...risa()];\n    secuencia([...brinco(2),...brinco(2),[0,{deCabeza:true,ojos:'grandes'}],[7,{ojos:null}]],\n     ()=>caminar(aDistancia(entre(5,14)),()=>secuencia(caida,fin),{cuadros:2,torpe:false}));\n   }\n  },\n  // Paso lunar: las patas avanzan, pero Mey se desliza mirando al lado contrario.\n  pasolunar:{\n   foto:()=>({pose:'hola',e:{caminando:3,brazoIzq:1,parpadeo:'guino'}}),\n   correr(fin){\n    const terminar=()=>secuencia([[0,{caminando:0,parpadeo:'guino'}],[6,{parpadeo:false}],...saludo()],fin);\n    if(conPaseo())caminar(aDistancia(entre(8,18)),terminar,{cuadros:3,atras:true,torpe:false});\n    else secuencia([[0,{caminando:1,inclinar:1}],[3,{caminando:3,inclinar:0}],[3,{caminando:2,inclinar:-1}],[3,{caminando:4,inclinar:0}],[3,{caminando:0}]],terminar);\n   }\n  },\n  // Protesta por nada, patalea... y termina celebrando su propia protesta.\n  berrinche:{\n   foto:()=>({pose:'hola',e:{brazoIzq:2,brazoDer:2,agachar:1}}),\n   correr(fin){\n    const pasos=[[0,{brazoIzq:2,brazoDer:2}]];\n    for(let i=0,n=entre(3,6);i<n;i++)pasos.push([3,{chapoteo:'izq',agachar:1,inclinar:-1}],[3,{chapoteo:'der',agachar:0,inclinar:1}]);\n    secuencia([...pasos,[3,{chapoteo:null,inclinar:0,brazoIzq:0,brazoDer:1}],...risa(),...fiesta()],fin);\n   }\n  },\n  // Suelta una burbuja, mira a los lados y se hace la que estaba leyendo.\n  inocente:{\n   foto:()=>({pose:'leyendo',e:{mirada:{dx:1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,()=>{pose='hola';pintar();}],...TRAVESURAS.burbuja,[4,{mirada:{dx:-1,dy:0}}],[5,{mirada:{dx:1,dy:0}}],[4,()=>{pose='leyendo';poner({mirada:{dx:0,dy:0}});}],[16,()=>{pose=poseVigilia;poner({parpadeo:'guino'});}],[4,{parpadeo:false}]],fin);\n   }\n  },\n  // Mucho esfuerzo para teletransportarse: sigue exactamente en el mismo sitio.\n  teletransporte:{\n   foto:()=>({pose:'pensando',e:{agachar:1,destello:[12,1]}}),\n   correr(fin){\n    const pasos=[];\n    for(let i=0,n=entre(3,5);i<n;i++)pasos.push([3,{agachar:1,parpadeo:'ambos',inclinar:-1}],[3,{inclinar:1,destello:[12,1]}]);\n    secuencia([...pasos,[2,{inclinar:0,agachar:0,parpadeo:false,destello:null}],...brinco(2),[0,{ojos:'grandes',mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0}}],[8,{ojos:null,mirada:{dx:0,dy:0}}],...risa()],fin);\n   }\n  },\n  // Saluda a su público imaginario; la reverencia se convierte en un sentón.\n  reverencia:{\n   foto:()=>({pose:'hola',e:{inclinar:1,brazoIzq:1}}),\n   correr(fin){\n    secuencia([...saludo(),[3,{inclinar:1,agachar:1}],[4,{inclinar:1,ojos:'grandes'}],...tropezar(),...levantarse(),[0,{inclinar:0,ojos:null}],...risa()],fin);\n   }\n  },\n  // Se niega con la cabeza, se sienta de espaldas... y vuelve a asomarse por curiosidad.\n  rebeldia:{\n   foto:()=>({pose:'hola',e:{sentada:true,mirada:{dx:-1,dy:0},brazoDer:0}}),\n   correr(fin){\n    secuencia([[0,{mirada:{dx:-1,dy:0},brazoDer:0}],[4,{mirada:{dx:1,dy:0}}],[4,{mirada:{dx:-1,dy:0}}],...girar(()=>-rumbo),...sentarse(),[12,{mirada:{dx:1,dy:-1}}],[8,{parpadeo:'guino'}],[3,{parpadeo:false}],...levantarse(),...girar(()=>-rumbo),...saludo()],fin);\n   }\n  },\n  // Huelga de unos segundos: dice NO con su cartel, revisa si la vieron y se despide feliz.\n  huelga:{\n   foto:()=>({pose:'hola',e:{cartel:true,brazoDer:1,mirada:{dx:-1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,{cartel:true,brazoDer:1}],[10,{mirada:{dx:-1,dy:0}}],[10,{mirada:{dx:1,dy:0}}],[8,{mirada:{dx:0,dy:0},agachar:1}],[6,{agachar:0}],[10,{parpadeo:'guino'}],[4,{parpadeo:false,cartel:false}],...saludo()],fin);\n   }\n  },\n  // Exige atención con las manos, espera... y se concede su propia ovación.\n  aplausos:{\n   foto:()=>({pose:'hola',e:{brazoIzq:2,saludo:2,ojos:'grandes'}}),\n   correr(fin){\n    secuencia([[0,{brazoIzq:2,saludo:2,ojos:'grandes'}],[8,{mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0}}],[10,{mirada:{dx:0,dy:0},ojos:null}],[8,{agachar:1}],[4,{agachar:0,brazoIzq:0,saludo:false}],...TRAVESURAS.aplauso,[6,{brazoIzq:0,brazoDer:0,saludo:false,agachar:0,estirar:0}],[5,{inclinar:1}],[5,{inclinar:0,parpadeo:'guino'}],[4,{parpadeo:false}]],fin);\n   }\n  },\n  // Confeti sin culpable: lo avienta, señala fuera del escenario y abre su libro.\n  confeti:{\n   foto:()=>({pose:'leyendo',e:{confeti:2,mirada:{dx:1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,{brazoIzq:2,saludo:2,confeti:1,ojos:'felices'}],[4,{confeti:2}],[4,{confeti:3,brazoIzq:0,saludo:false}],[4,{confeti:4,ojos:null}],[4,{confeti:5}],[4,{confeti:0,mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0},brazoDer:1}],[8,()=>{pose='leyendo';poner({brazoDer:0,mirada:{dx:0,dy:0}});}],[18,{parpadeo:'guino'}],[4,{parpadeo:false}]],fin);\n   }\n  },\n  // Estatuas de marfil: avanza de puntitas y se congela si mueves el puntero (o cuando se le antoja).\n  estatuas:{\n   foto:()=>({pose:'hola',e:{caminando:1,ojos:'grandes'}}),\n   correr(fin){\n    let congelada=0;\n    const pausa=()=>{\n     if(congelada<25&&(ahora()-ultimoPuntero<700||azar()<.08)){congelada++;if(!e.ojos)poner({ojos:'grandes'});return 5;}\n     if(e.ojos)poner({ojos:null});return 0;\n    };\n    // Sin espacio: baila en su lugar y se congela en poses chistosas, con ojos de «¿me viste?».\n    if(!conPaseo()){\n     const quieta={chapoteo:null,saludo:false,inclinar:0,salto:0};\n     const poses=[()=>[[0,{...quieta,chapoteo:'izq'}]],()=>[[0,{...quieta,chapoteo:'der'}]],()=>[...saludo(),[0,quieta]],()=>[[0,{...quieta,inclinar:1}]],()=>[[0,{...quieta,inclinar:-1}]],()=>[...brinco(2),[0,quieta]]];\n     const pasos=[];for(let i=0,n=8+Math.floor(azar()*5);i<n;i++){const gesto=uno(poses)();if(i)gesto[0][0]=entre(3,5);pasos.push(...gesto);if(azar()<.3)pasos.push([0,{ojos:'grandes'}],[entre(8,13),{ojos:null}]);}\n     return secuencia([...pasos,[3,quieta],...risa()],fin);\n    }\n    const tramos=2+Math.floor(azar()*2);\n    const tramo=k=>{\n     if(k>=tramos)return secuencia([[0,{ojos:null,caminando:0,parpadeo:'guino'}],[4,{parpadeo:false}],...risa()],fin);\n     caminar(aDistancia(entre(5,14)),()=>despues(enCuadros(entre(4,8)),()=>tramo(k+1)),{cuadros:3,sigilo:true,pausa});\n    };\n    tramo(0);\n   }\n  }\n };\n const empezar=(nombre,fin)=>{\n  let n=nombre||pendiente||mey.siguienteJuego(memoria,azar,JUEGOS_MEY,personalidad);\n  // Nunca el mismo juego dos veces seguidas, aunque el primero haya venido forzado.\n  if(!nombre&&!pendiente&&n===ultimoJuego&&JUEGOS_MEY.length>1)n=mey.siguienteJuego(memoria,azar,JUEGOS_MEY,personalidad);\n  pendiente=null;jugando=n;ultimoJuego=n;finJuegoActual=fin||null;\n  const primero=!jugados++;\n  pose=poseVigilia;atuendo=opciones.atuendo||apariencia.leer();e=neutro();\n  if(primero&&conPaseo()){x=alAzar();rumbo=lado();}\n  pintar();\n  const listo=()=>despues(enCuadros(primero?entre(6,14):entre(4,8)),()=>JUEGOS[n].correr(terminar));\n  JUEGOS[n].inicio?JUEGOS[n].inicio(primero,listo):listo();\n };\n const terminar=()=>{\n  const fin=finJuegoActual;\n  finJuegoActual=null;\n  jugando=null;\n  ultimoFinJuego=ahora();\n  pose=poseVigilia;\n  atuendo=opciones.atuendo||apariencia.leer();\n  e=neutro();\n  pintar();\n  fin&&fin();\n };\n const foto=n=>{const f=JUEGOS[n].foto();pose=f.pose;if(f.atuendo)atuendo=f.atuendo;e={...neutro(),...f.e};if(conPaseo()){x=alAzar();rumbo=lado();}};\n // Al clic, en el recreo reacciona distinto cada vez (nunca dos veces seguidas lo mismo).\n const REACCIONES={celebrar:null,risa,tropiezo:()=>tropezar(),guino:()=>TRAVESURAS.guino,hipo:()=>hipido(),sorpresa:()=>TRAVESURAS.sorpresa};\n const completarConducta=nombre=>{\n  if(conductaActual!==nombre)return;\n  conductaActual=null;\n  ultimaConductaMovimiento=ahora();\n  noAntesDe=ahora()+enCuadros(entre(24,72))*(2-imp.energia)*perfil().pausa;\n };\n const roncada=()=>{\n  if(!durmiendo||!activo)return;\n  const pasos=[[0,{burbuja:0}],[2,{burbuja:1}],[2,{burbuja:2}],[2,{burbuja:3}],[2,{burbuja:4}],[2,{burbuja:5}],[2,{burbuja:null}]];\n  secuencia(pasos,()=>{if(durmiendo){ocupada=true;despues(enCuadros(entre(4,10)),roncada);}});\n };\n const COMPORTAMIENTOS={\n  quieta:fin=>fin(),\n  pasear:fin=>{\n   if(!conPaseo())return fin();\n   caminar(alAzar(),()=>{\n    if(azar()<.3){\n     secuencia(sentarse(),()=>{ocupada=true;despues(enCuadros(entre(24,48)),()=>secuencia(levantarse(),fin));});\n    }else fin();\n   });\n  },\n  acercarse:fin=>{\n   if(!conPaseo()||punteroX===null)return fin();\n   caminar(punteroX-8*celda,()=>{\n    const dx=punteroX<x+8*celda?-1:punteroX>x+8*celda?1:0;\n    const mirada={dx:rumbo<0?-dx:dx,dy:0};\n    poner({mirada,ojos:imp.afecto>.6?'felices':null});\n    ocupada=true;\n    despues(enCuadros(entre(36,72)),()=>{poner({mirada:{dx:0,dy:0},ojos:null});fin();});\n   });\n  },\n  curiosear:fin=>{\n   if(!novedad)return fin();\n   const m={dx:novedad.dx,dy:novedad.dy};\n   secuencia([[0,{mirada:m,inclinar:m.dx}],[24,{mirada:{dx:0,dy:0},inclinar:0}]],()=>{novedad=null;fin();});\n  },\n  travesura:fin=>{\n   const lista=mey.travesuras.filter(n=>n!=='celebrar'&&n!=='enojo'&&n!==ultimaTravesura);\n   const n=uno(lista);ultimaTravesura=n;\n   secuencia(TRAVESURAS[n],fin);\n  },\n  jugar:fin=>empezar(undefined,fin),\n  bostezar:fin=>secuencia(TRAVESURAS.bostezo,fin),\n  estirarse:fin=>secuencia(TRAVESURAS.estirarse,fin),\n  pensar:fin=>secuencia(TRAVESURAS.pensar,fin),\n  bailar:fin=>JUEGOS.baile.correr(fin),\n  dormir:fin=>{\n   secuencia(TRAVESURAS.bostezo,()=>secuencia(sentarse(),()=>{\n    durmiendo=true;pose='dormido';poner({burbuja:null,sentada:true});finDormir=fin;roncada();\n   }));\n  }\n };\n const correrConducta=nombre=>{\n  const comportamiento=COMPORTAMIENTOS[nombre]||COMPORTAMIENTOS.quieta;\n  conductaActual=nombre;\n  ultimaConductaMovimiento=ahora();\n  comportamiento(()=>completarConducta(nombre));\n };\n const estadoSensorial=()=>{\n  const t=ahora();\n  return {\n   inactividad:Math.max(0,(t-ultimaActividad)/1000),\n   cerca:t-ultimaCercana<2000,\n   estimulo:novedad?1:(t-ultimoPuntero<500?.25:0),\n   caricia:cariciaPendiente,\n   durmiendo,\n   hora:new Date(fecha()).getHours(),\n   paseo:conPaseo(),\n   juegos:recreo,\n   punteroVisto:Number.isFinite(ultimoPuntero)&&t-ultimoPuntero<5000,\n   distancia:distanciaPuntero,\n   novedad,\n   quietaMucho:t-ultimaConductaMovimiento>30000,\n   escribiendo:t-ultimaTecla<4000,\n   personalidad\n  };\n };\n const persistirConducta=(forzar=false)=>{\n  const afecto=clampMey(imp.afecto,0,1);\n  if(!forzar&&Math.abs(afecto-ultimoAfectoPersistido)<=.02)return;\n  memGuardada={visitas,ultima:fecha(),afecto};\n  try{memoriaConducta.guardar({...memGuardada});}catch{}\n  ultimoAfectoPersistido=afecto;\n  ultimaPersistencia=ahora();\n };\n const latido=()=>{\n  if(!activo||energia()!=='completa')return;\n  const s=estadoSensorial();\n  imp=mey.mente.actualizar(imp,s,.5);\n  cariciaPendiente=false;\n  if(!saludoPresenciaRealizado&&dentroDesde!==null&&ahora()-dentroDesde>=enCuadros(18)&&ultimoClic<dentroDesde){\n   saludoPresenciaRealizado=true;\n   imp.afecto=clampMey(imp.afecto+.04,0,1);\n   if(!durmiendo&&!ocupada&&!jugando)ejecutarReaccion('saludo');\n  }\n  if(durmiendo){\n   if(ahora()-ultimaCercana<2000||imp.sueno<.2)despertar();\n  }else if(!ocupada&&!jugando&&ahora()>=noAntesDe){\n   const nombre=recreo&&!s.escribiendo&&ahora()-ultimoFinJuego>enCuadros(96)*perfil().pausa?'jugar':\n    mey.mente.elegir(['quieta','pasear','acercarse','curiosear','travesura','jugar','bostezar','estirarse','pensar','bailar','dormir'],imp,s,ultimaVezConducta,ahora()/1000,azar);\n   ultimaVezConducta[nombre]=ahora()/1000;\n   correrConducta(nombre);\n  }\n  if(ahora()-ultimaPersistencia>=30000&&Math.abs(imp.afecto-ultimoAfectoPersistido)>.02)persistirConducta();\n  despues(enCuadros(6),latido,true);\n };\n const vida=()=>{\n  if(!activo)return;\n  if(!ocupada&&!durmiendo){\n   const fotoDormida=pose==='dormido';\n   if(fotoDormida||azar()<.7){\n    const pasos=[[0,{ojos:'cerrados'}],[imp.sueno>.5?4:1,{ojos:null}]];\n    if(azar()<.3)pasos.push([2,{ojos:'cerrados'}],[1,{ojos:null}]);\n    secuencia(pasos);\n   }else secuencia([[0,{estirar:1}],[2,{estirar:0}]]);\n  }\n  despues(enCuadros(entre(22,50))*perfil().pausa,vida,true);\n };\n const ejecutarReaccion=(nombre,fin)=>{\n  const funcion=REACCIONES[nombre];\n  const pasos=nombre==='celebrar'?TRAVESURAS.celebrar:(typeof funcion==='function'?funcion():TRAVESURAS[nombre]);\n  if(!pasos){fin&&fin();return;}\n  conductaActual='reaccion';\n  secuencia(pasos,()=>{conductaActual=null;noAntesDe=ahora()+enCuadros(24);fin&&fin();});\n };\n const alClic=()=>{\n  const t=ahora();\n  ultimaActividad=t;\n  if(energia()!=='completa'||!activo)return;\n  ultimaCercana=t;\n  const reinicia=ultimoClic===-Infinity||t-ultimoClic>=4000;\n  if(reinicia){historialClics=[];afectoAlIniciarRafaga=imp.afecto;}\n  historialClics=historialClics.filter(x=>t-x<=6000);\n  historialClics.push(t);ultimoClic=t;\n  if(durmiendo){despertar();return;}\n  if(jugando)return;\n  const n=historialClics.length;\n  if(n>1)cariciaPendiente=false;\n  if(n>=8){\n   interrumpir();jugando='mareo';conductaActual='mareo';\n   JUEGOS.mareo.correr(()=>{\n    jugando=null;conductaActual=null;ultimoFinJuego=ahora();pose=poseVigilia;e=neutro();pintar();\n    noAntesDe=ahora()+enCuadros(24);\n   });\n   return;\n  }\n  if(t<finMolesta){interrumpir();ultimaReaccion='sorpresa';ejecutarReaccion('sorpresa');return;}\n  if(n>=4){\n   imp.afecto=clampMey(Math.min(imp.afecto,afectoAlIniciarRafaga??imp.afecto)-.1,0,1);finMolesta=t+8000;\n   interrumpir();ultimaReaccion='enojo';ejecutarReaccion('enojo');return;\n  }\n  if(n>=2&&n<=3&&t-historialClics[0]<=2500){\n   interrumpir();ultimaReaccion='cosquillas';ejecutarReaccion('cosquillas');return;\n  }\n  if(n===1){\n   cariciaPendiente=true;\n   const nombre=recreo?uno(['celebrar','risa','tropiezo','guino','hipo','sorpresa','cosquillas'].filter(x=>x!==ultimaReaccion)):'celebrar';\n   ultimaReaccion=nombre;interrumpir();ejecutarReaccion(nombre);\n  }\n };\n const alTecla=()=>{ultimaActividad=ahora();ultimaTecla=ahora();};\n const alClicPagina=()=>{ultimaActividad=ahora();};\n let ultimaPosicionScroll=Number(ventana.scrollY)||0;\n const alScroll=()=>{\n  ultimaActividad=ahora();\n  const y=Number(ventana.scrollY)||0,dy=y>=ultimaPosicionScroll?1:-1;\n  ultimaPosicionScroll=y;\n  if(ahora()-ultimoPuntero<1000||durmiendo)return;\n  const antes=e.mirada;\n  poner({mirada:{dx:antes.dx,dy}});\n  despues(enCuadros(12),()=>{if(e.mirada.dy===dy)poner({mirada:{dx:antes.dx,dy:antes.dy}});});\n };\n const alFocus=ev=>{\n  ultimaActividad=ahora();\n  const b=host.getBoundingClientRect(),objetivo=ev.target?.getBoundingClientRect?.();\n  if(!objetivo)return;\n  const cx=b.left+(conPaseo()?x+8*celda:b.width/2),cy=b.top+b.height/2;\n  const fx=objetivo.left+objetivo.width/2,fy=objetivo.top+objetivo.height/2;\n  const dxDist=fx-cx,dyDist=fy-cy,cerca=Math.hypot(dxDist,dyDist)<4*celda;\n  const dx=cerca?0:Math.sign(dxDist),dy=cerca?0:Math.sign(dyDist);\n  novedad=dx||dy?{dx,dy}:null;\n  if(durmiendo)return;\n  const anterior=e.mirada;poner({mirada:{dx,dy}});\n  despues(enCuadros(12),()=>{if(e.mirada.dx===dx&&e.mirada.dy===dy)poner({mirada:anterior});});\n };\n const aplicarEvento=tipo=>{\n  if(tipo==='exito')return ejecutarReaccion('celebrar');\n  if(tipo==='guardado')return ejecutarReaccion('asentir');\n  if(tipo==='error'||tipo==='aviso')return ejecutarReaccion('preocupacion');\n  if(tipo==='listo')return ejecutarReaccion('sorpresa',()=>ejecutarReaccion('saludo'));\n  if(tipo==='carga'){\n   enCarga=true;conductaActual='carga';const inicio=ahora();\n   const pensar=()=>{\n    if(!enCarga)return;\n    if(ahora()-inicio>=30000){enCarga=false;conductaActual=null;return;}\n    secuencia(TRAVESURAS.pensar,()=>{if(enCarga){ocupada=true;despues(enCuadros(1),pensar);}else conductaActual=null;});\n   };\n   pensar();\n   despues(30000,()=>{enCarga=false;if(!ocupada)conductaActual=null;});\n  }\n };\n const lanzarEvento=(tipo,desdeControl=false)=>{\n  if(!mey.eventos.includes(tipo)){\n   if(desdeControl)throw new Error('mey: evento desconocido: '+tipo);\n   return;\n  }\n  if(!activo)return;\n  const t=ahora();\n  if(tipo==='guardado'){if(durmiendo||conductaActual==='dormir'||t-guardadoEn<60000)return;guardadoEn=t;}\n  else if(ultimoEvento.tipo===tipo&&t-ultimoEvento.t<3000)return;\n  ultimoEvento={tipo,t};\n  ultimaActividad=t;\n  const dormida=durmiendo;\n  interrumpir();\n  if(dormida){durmiendo=true;pose='dormido';e={...neutro(),sentada:true};pintar();despertar(()=>aplicarEvento(tipo));}\n  else aplicarEvento(tipo);\n };\n const alEventoVentana=ev=>lanzarEvento(ev.detail?.tipo,false);\n const reducido=ventana.matchMedia?ventana.matchMedia('(prefers-reduced-motion: reduce)'):null;\n const puedeMoverse=()=>opciones.vivo!==false&&energia()!=='quieta'&&!(reducido&&reducido.matches)&&!ventana.navigator?.connection?.saveData&&visible&&!doc.hidden;\n const quitarSensores=()=>{\n  ventana.removeEventListener('pointermove',alPuntero);\n  ventana.removeEventListener('click',alClicPagina,true);\n  ventana.removeEventListener('keydown',alTecla);\n  ventana.removeEventListener('scroll',alScroll,true);\n  doc.removeEventListener('focusin',alFocus);\n  ventana.removeEventListener('erlen-mey-evento',alEventoVentana);\n };\n const agregarSensores=()=>{\n  if(energia()==='completa'){\n   ventana.addEventListener('pointermove',alPuntero,{passive:true});\n   ventana.addEventListener('click',alClicPagina,true);\n   ventana.addEventListener('keydown',alTecla);\n   ventana.addEventListener('scroll',alScroll,true);\n   doc.addEventListener('focusin',alFocus);\n  }\n  if(energia()==='completa'||energia()==='calma')ventana.addEventListener('erlen-mey-evento',alEventoVentana);\n };\n const parar=()=>{\n  const estaba=activo;\n  activo=false;ocupada=false;\n  for(const id of escena)reloj.clearTimeout(id);\n  for(const id of fijos)reloj.clearTimeout(id);\n  escena.clear();fijos.clear();quitarSensores();\n  if(!recreo||estaba)e=durmiendo?{...neutro(),sentada:true}:neutro();\n  if(recreo){if(jugando){pendiente=jugando;jugados=0;jugando=null;finJuegoActual=null;pose=poseVigilia;}x=Math.max(0,Math.min(holgura(),x));}\n  if(!durmiendo)conductaActual=null;\n  pintar();\n };\n const arrancar=()=>{\n  if(activo||!puedeMoverse())return;\n  activo=true;\n  agregarSensores();\n  despues(enCuadros(entre(14,32)),vida,true);\n  if(energia()!=='completa')return;\n  despues(enCuadros(6),latido,true);\n  if(durmiendo){conductaActual='dormir';roncada();return;}\n  if(recreo){empezar();return;}\n  if(!bienvenidaProgramada&&(r.lugar==='bienvenida'||r.lugar==='vacio')){\n   bienvenidaProgramada=true;\n   const espera=entre(12,24),hora=new Date(fecha()).getHours();\n   noAntesDe=ahora()+enCuadros(espera+24);\n   despues(enCuadros(espera),()=>{\n    const saludar=()=>{\n     if(primeraVisita){\n      secuencia([[0,{mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0}}],[8,{mirada:{dx:0,dy:0}}],[8,()=>ejecutarReaccion('saludo')]]);\n     }else if(dias>=3){\n      ejecutarReaccion('saludo',()=>ejecutarReaccion('risa'));\n     }\n    };\n    if(hora<6)secuencia(TRAVESURAS.bostezo,saludar);else saludar();\n   });\n  }\n };\n const revisar=()=>puedeMoverse()?arrancar():parar();\n const alCambiarVisibilidad=()=>{\n  if(doc.hidden){\n   if(ocultoDesde===null)ocultoDesde=fecha();\n   parar();\n   return;\n  }\n  const ausente=ocultoDesde===null?0:fecha()-ocultoDesde;\n  ocultoDesde=null;\n  revisar();\n  if(activo&&energia()==='completa'&&ausente>=30000){\n   const regreso=()=>ausente>=600000?ejecutarReaccion('bostezo',()=>ejecutarReaccion('saludo')):ejecutarReaccion('saludo');\n   if(durmiendo)despertar(regreso);else regreso();\n  }\n };\n const ajustar=()=>{const nueva=medir();if(nueva!==celda){const antes=energia();celda=nueva;x=Math.round(x/celda)*celda;if(energia()!==antes){parar();revisar();return;}}x=Math.min(x,holgura());pintar();};\n const alCambiarApariencia=()=>{if(!opciones.atuendo&&jugando!=='probador'){atuendo=apariencia.leer();pintar();}};\n host.addEventListener('click',alClic);\n doc.addEventListener('visibilitychange',alCambiarVisibilidad);\n reducido?.addEventListener?.('change',revisar);\n const alCambiarPersonalidad=ev=>{\n  if(ev?.type==='storage'&&ev.key!==null&&ev.key!==undefined&&ev.key!=='erlen-mey-personalidad')return;\n  if(!opciones.personalidad)personalidad=personalidadLocal.leer();\n  host.dataset.meyPersonalidad=personalidad;\n  // Acaba la escena en curso; aplica la nueva cadencia en la siguiente decisión.\n  noAntesDe=ahora()+enCuadros(24)*perfil().pausa;\n };\n alCambiarPersonalidad();\n ventana.addEventListener('erlen-mey-personalidad',alCambiarPersonalidad);\n ventana.addEventListener('storage',alCambiarPersonalidad);\n const alCambiarColor=()=>pintar();\n ventana.addEventListener('erlen-mey-color',alCambiarColor);\n ventana.addEventListener('storage',alCambiarColor);\n ventana.addEventListener('erlen-mey-apariencia',alCambiarApariencia);\n ventana.addEventListener('storage',alCambiarApariencia);\n let observador=null,medidor=null;\n if(ventana.IntersectionObserver){observador=new ventana.IntersectionObserver(entradas=>{visible=entradas.some(x=>x.isIntersecting);revisar();});observador.observe(host);}\n // Con celda fija también observa: el hueco para pasear cambia con el ancho.\n if(ventana.ResizeObserver){medidor=new ventana.ResizeObserver(()=>ajustar());medidor.observe(r.eje==='alto'?host:(host.parentElement||host));}\n host.dataset.meyViva='';\n if(recreo){\n  if(opciones.juego&&!JUEGOS[opciones.juego])throw new Error('mey: juego desconocido: '+opciones.juego);\n  pendiente=opciones.juego||mey.siguienteJuego(memoria,azar,JUEGOS_MEY,personalidad);\n  if(!puedeMoverse()||energia()!=='completa')foto(pendiente);\n }\n pintar();arrancar();\n return {\n  pose(nombre){filasMey(nombre);pose=nombre;pintar();},\n  atuendo(nombre){vestirMey(Array.from({length:18},vacia),nombre,{},[]);atuendo=nombre;pintar();},\n  jugar(nombre){\n   if(!recreo)throw new Error('mey: jugar requiere lugar recreo');\n   if(!Object.hasOwn(JUEGOS,nombre))throw new Error('mey: juego desconocido: '+nombre);\n   interrumpir();\n   if(activo&&energia()==='completa')empezar(nombre);\n   else{pendiente=nombre;foto(nombre);pintar();}\n  },\n  reaccionar(nombre){if(nombre==='celebrar')return celebrar();if(!TRAVESURAS[nombre])throw new Error('mey: travesura desconocida: '+nombre);if(activo&&!ocupada)secuencia(TRAVESURAS[nombre]);},\n  ajustar,\n  cuadro(){return cuadroMey(pose,e,atuendo,false).map(f=>f.join('')).join('\\n');},\n  get celda(){return celda;},\n  get paseo(){return {activo:conPaseo(),x,rumbo,holgura:holgura(),sentada:!!e.sentada};},\n  caminar(destino,alLlegar,opts){if(activo&&!ocupada&&conPaseo())caminar(destino,alLlegar,opts);},\n  get energia(){return energia();},\n  get activa(){return activo;},\n  get personalidad(){return personalidad;},\n  get juego(){return jugando||pendiente;},\n  get reaccion(){return ultimaReaccion;},\n  get impulsos(){return {...imp};},\n  get conducta(){return conductaActual||'quieta';},\n  evento(tipo){return lanzarEvento(tipo,true);},\n  get memoria(){return {...memGuardada};},\n  detener(){persistirConducta(true);parar();host.removeEventListener('click',alClic);doc.removeEventListener('visibilitychange',alCambiarVisibilidad);reducido?.removeEventListener?.('change',revisar);ventana.removeEventListener('erlen-mey-apariencia',alCambiarApariencia);ventana.removeEventListener('storage',alCambiarApariencia);ventana.removeEventListener('erlen-mey-color',alCambiarColor);ventana.removeEventListener('storage',alCambiarColor);ventana.removeEventListener('erlen-mey-personalidad',alCambiarPersonalidad);ventana.removeEventListener('storage',alCambiarPersonalidad);observador?.disconnect();medidor?.disconnect();delete host.dataset.meyViva;delete host.dataset.meyPersonalidad;}\n };\n};\nmey.travesuras=['guino','chapoteo','burbuja','saludo','celebrar','risa','sorpresa','cosquillas','bostezo','estirarse','aplauso','pensar','preocupacion','asentir','enojo'];\nmey.eventos=['exito','guardado','error','aviso','carga','listo'];\nmey.juegos=JUEGOS_MEY;\n\n/* ---------- <erlen-mey> ----------\n   La forma más simple de poner a Mey en una app: <erlen-mey lugar=\"vacio\"></erlen-mey>.\n   Atributos: lugar, app, pose, atuendo, energia, titulo y vivo=\"false\". Mide el espacio que le\n   da su contenedor, se monta al entrar en el documento y se detiene al salir; cambiar un\n   atributo la repinta. el.reaccionar('celebrar') y compañía pasan al motor. mey.definir(window)\n   registra la etiqueta (una vez por ventana); al cargar este módulo en un navegador se registra\n   sola. */\nmey.definir=function(ventana){\n if(!ventana||!ventana.customElements||!ventana.HTMLElement)return false;\n if(ventana.customElements.get('erlen-mey'))return true;\n const ATRIBUTOS=['lugar','app','pose','atuendo','energia','titulo','vivo','paseo','celda','color','juego','personalidad'];\n class ErlenMey extends ventana.HTMLElement{\n  static get observedAttributes(){return ATRIBUTOS;}\n  connectedCallback(){this.montar();}\n  disconnectedCallback(){this._control?.detener();this._control=null;}\n  attributeChangedCallback(){if(this._control)this.montar();}\n  montar(){\n   this._control?.detener();\n   if(!this.style.display)this.style.display='block';\n   const o={ventana};for(const a of ATRIBUTOS){const v=this.getAttribute(a);if(v!==null)o[a]=v;}\n   if(!o.app)o.app=this.ownerDocument.documentElement.dataset.erlenApp;\n   if(o.vivo==='false')o.vivo=false;else delete o.vivo;\n   if(o.paseo==='false')o.paseo=false;else delete o.paseo;\n   if(o.celda){const c=parseInt(o.celda,10);if(c>0)o.celda=c;else delete o.celda;}\n   this.setAttribute('aria-hidden',o.titulo?'false':'true');\n   try{this._control=mey.montar(this,o);}catch(error){this._control=null;this.textContent='';throw error;}\n  }\n  reaccionar(nombre){this._control?.reaccionar(nombre);}\n  jugar(nombre){this._control?.jugar(nombre);}\n  get control(){return this._control;}\n }\n ventana.customElements.define('erlen-mey',ErlenMey);\n return true;\n};\nif(typeof window!=='undefined')mey.definir(window);\n\n/* Física de Mey: paso fijo con acumulador (G. Fiedler, «Fix Your Timestep!»), péndulo Verlet con restricción de distancia (T. Jakobsen; verlet-js, MIT), llegada con frenado (C. Reynolds) y resorte crítico (wobble, MIT). Ideas, sin código copiado. Unidades: px, s, rad; y crece hacia abajo; rotación positiva = horaria (CSS). */\nconst FISICA_MEY=Object.freeze({G:2200,H:1/240,SUBPASOS:12,VMAX:76,A_ARRANQUE:260,A_LLEGADA:220,A_FRENO:420,FRICCION:1400,\n AMORT_PENDULO:2.4,ARRASTRE_AIRE:.15,ARRASTRE_GIRO:.8,REST_PARED:.45,REST_SUELO:.35,REBOTE_MIN:520,V_CAIDA_MAX:2600,\n V_LANZAR:2400,GIRO_MAX:12,SALTO:240,EMPUJON:180,SALTO_EMPUJON:200,V_PUNTERO:900,PAUSA_EMPUJON:1500,ENDEREZAR:14});\nconst penduloMey=(s,px,py,h)=>{\n const k=Math.exp(-FISICA_MEY.AMORT_PENDULO*h);\n let nx=s.cx+(s.cx-s.qx)*k,ny=s.cy+(s.cy-s.qy)*k+FISICA_MEY.G*h*h;\n s.qx=s.cx;s.qy=s.cy;\n let dx=nx-px,dy=ny-py,d=Math.hypot(dx,dy);\n if(d<1e-9){dx=0;dy=s.L;d=s.L;}\n s.cx=px+dx*s.L/d;s.cy=py+dy*s.L/d;\n return s;\n};\nconst anguloMey=(s,px,py)=>Math.atan2(s.cx-px,s.cy-py);\nconst llegadaMey=(dx,dy,o)=>{\n const d=Math.hypot(dx,dy);\n if(d<1e-6){o.x=0;o.y=0;return o;}\n const v=Math.min(FISICA_MEY.VMAX,Math.sqrt(2*FISICA_MEY.A_LLEGADA*d));\n o.x=dx/d*v;o.y=dy/d*v;\n return o;\n};\nconst marchaMey=(v,o,h)=>{\n const vel=Math.hypot(v.x,v.y),obj=Math.hypot(o.x,o.y);\n const lim=vel>FISICA_MEY.VMAX+1?FISICA_MEY.FRICCION:obj>vel&&v.x*o.x+v.y*o.y>=0?FISICA_MEY.A_ARRANQUE:FISICA_MEY.A_FRENO;\n const ex=o.x-v.x,ey=o.y-v.y,en=Math.hypot(ex,ey),max=lim*h;\n if(en<=max){v.x=o.x;v.y=o.y;}\n else {v.x+=ex*max/en;v.y+=ey*max/en;}\n return v;\n};\nconst vueloMey=(c,h,lim)=>{\n c.vy=Math.min(c.vy+FISICA_MEY.G*h,FISICA_MEY.V_CAIDA_MAX);\n const k=Math.exp(-FISICA_MEY.ARRASTRE_AIRE*h);\n c.vx*=k;c.vy*=k;\n const y0=c.y;\n c.x+=c.vx*h;c.y+=c.vy*h;c.rot+=c.giro*h;c.giro*=Math.exp(-FISICA_MEY.ARRASTRE_GIRO*h);\n if(c.x<lim.izq){c.x=lim.izq;c.vx=-c.vx*FISICA_MEY.REST_PARED;c.giro*=-.6;}\n if(c.x>lim.der){c.x=lim.der;c.vx=-c.vx*FISICA_MEY.REST_PARED;c.giro*=-.6;}\n if(c.y<lim.techo){c.y=lim.techo;c.vy=-c.vy*FISICA_MEY.REST_PARED;}\n if(c.vy>0){\n  let piso=lim.suelo;\n  for(const p of lim.plataformas){\n   const tope=p.top-lim.alto;\n   if(y0<=tope&&c.y>=tope&&c.x+lim.ancho/2>=p.left&&c.x+lim.ancho/2<=p.right&&tope<piso)piso=tope;\n  }\n  if(c.y>=piso){\n   c.y=piso;\n   const imp=c.vy;\n   if(imp>FISICA_MEY.REBOTE_MIN){c.vy=-imp*FISICA_MEY.REST_SUELO;c.giro*=.6;return -imp;}\n   c.vy=0;return imp;\n  }\n }\n return 0;\n};\nconst enderezarMey=(c,h)=>{\n const a=-(FISICA_MEY.ENDEREZAR**2)*c.rot-2*FISICA_MEY.ENDEREZAR*c.giro;\n c.giro+=a*h;c.rot+=c.giro*h;\n if(Math.abs(c.rot)<.002&&Math.abs(c.giro)<.05)c.rot=c.giro=0;\n return c;\n};\nmey.fisica={c:FISICA_MEY,pendulo:penduloMey,angulo:anguloMey,llegada:llegadaMey,marcha:marchaMey,vuelo:vueloMey,enderezar:enderezarMey};\n\n/* Una presencia por documento. Posición y velocidad continuas; los gestos de pixel art\n   no cambian su trayectoria. El puntero solicita destinos, nunca recoloca al personaje. */\nconst claveRecorridoMey=Symbol.for('erlen.mey.recorrido');\nmey.recorridoActual=documento=>{const c=documento?.[claveRecorridoMey];if(c&&!c.elemento.isConnected){c.detener();return null;}return c||null;};\nmey.recorrerPagina=function(opciones={}){\n const doc=opciones.documento||(typeof document!=='undefined'?document:null);\n if(!doc?.body||!doc.defaultView?.requestAnimationFrame)return null;\n const existente=mey.recorridoActual(doc);if(existente){existente.actualizar?.(opciones);return existente;}\n const win=doc.defaultView,mq=win.matchMedia?.('(prefers-reduced-motion:reduce)');\n const personalidadLocal=mey.personalidadLocal(win);\n let personalidad=opciones.personalidad||personalidadLocal.leer();\n perfilPersonalidadMey(personalidad);\n const ingles=(opciones.idioma||doc.documentElement.lang||'es').startsWith('en');\n const textos={actor:ingles?'Mey: play or move me':'Mey: jugar o arrastrar a otro lugar',titulo:ingles?'Mey · you can take me with you':'Mey · puedes llevarme contigo',pausa:ingles?\"Pause Mey's walk\":'Pausar el paseo de Mey',seguir:ingles?\"Resume Mey's walk\":'Reanudar el paseo de Mey',pausaCorta:ingles?'Mey · pause':'Mey · pausa',seguirCorta:ingles?'Mey · resume':'Mey · seguir'};\n const actor=doc.createElement('button');actor.type='button';actor.className='mey-libre';\n const sincronizarAccion=()=>{actor.setAttribute('aria-label',typeof opciones.accion==='function'?(ingles?'Mey: help or move me':'Mey: ayuda o arrastrar a otro lugar'):textos.actor);actor.title=textos.titulo;};\n sincronizarAccion();\n const pausa=doc.createElement('button');pausa.type='button';pausa.className='mey-libre-pausa';\n pausa.setAttribute('aria-label',textos.pausa);pausa.setAttribute('aria-pressed','false');pausa.textContent=textos.pausaCorta;\n doc.body.append(actor,pausa);doc.documentElement.dataset.erlenMeyPresencia='';\n const celda=win.innerWidth<700?3:4,w=16*celda,h=18*celda,O={x:w/2,y:.55*h};\n actor.style.transformOrigin=`${O.x}px ${O.y.toFixed(2)}px`;\n const limitar=(n,a,b)=>Math.min(Math.max(n,a),Math.max(a,b));\n const suelo=()=>Math.max(8,win.innerHeight-h-70),derecha=()=>Math.max(8,win.innerWidth-w-8);\n const selectorAnclas=()=>opciones.anclas||'.hero-strip,.grupo-herramientas>h3,.workspace-note,.erlen-inicio-meta';\n let x=limitar(win.innerWidth-w-32,8,derecha()),y=suelo(),vx=0,velY=0,vy=0,elevacion=0,modo='camina',rot=0,giro=0,acumulado=0;\n let ultimo=0,raf=0,muerta=false,manual=false,arrastre=null,foco=false,rumbo=-1,distancia=0,pend=null,pivote=null,pivoteAntes=null,vPivote=0,plataformas=[],punteroAnt=null,ultimoEmpujon=-Infinity,vxFrame=0,rotAntes=0;\n let prox=0,sonda=-Infinity,obstaculos=[],ruta=[],puntero=null,seguido=0,gestoHasta=0,ultimoSalto=-Infinity,ultimoDibujo=-Infinity,cuadro='',replanear=true,ignorarClic=false,ocultaAntes=false,metaPuntero=null,sobreMey=false;\n const objetivo={x:0,y:0},vel={x:0,y:0},cuerpo={x:0,y:0,vx:0,vy:0,rot:0,giro:0},cuerpoLim={izq:8,der:8,techo:8,suelo:8,ancho:w,alto:h,plataformas},pivotePaso={x:0,y:0};\n const gestos={agacharHasta:0,estirarHasta:0,grandesHasta:0,inclinar:0,inclinarHasta:0},punteroV={x:0,y:0};\n const apariencia=mey.aparienciaLocal(win);\n const colorLocal=mey.colorLocal(win);\n const reducida=()=>!!mq?.matches||!!win.navigator.connection?.saveData;\n const quieta=()=>manual||reducida()||foco||doc.hidden||!!actor.closest('[inert]');\n const posicionar=()=>{\n  const py=modo==='camina'?limitar(y+elevacion,8,suelo()):y;\n  actor.style.transform=`translate3d(${x.toFixed(2)}px,${py.toFixed(2)}px,0)${Math.abs(rot)>1e-4?` rotate(${rot.toFixed(4)}rad)`:''}`;\n  actor.dataset.x=x.toFixed(2);actor.dataset.y=py.toFixed(2);\n };\n const direccion=(v,margen)=>v < -margen?-1:v > margen?1:0;\n const dibujar=t=>{\n  const aire=modo==='vuela',colgada=modo==='colgada',agitada=colgada&&(Math.abs(giro)>4||vPivote>250);\n  const marcha=modo==='camina'&&Math.hypot(vx,velY)>8&&!quieta()&&!arrastre;\n  const estado=quieta()?'quieta':arrastre||colgada?'juega':aire?velY<0?'salta':'cae':elevacion<-.5?(vy<0?'salta':'cae'):marcha?'camina':'observa';\n  actor.dataset.estado=estado;\n  actor.dataset.meyPersonalidad=personalidad;\n  const perfil=perfilPersonalidadMey(personalidad),fase=t%perfil.gesto;\n  const expresiva=!quieta()&&!arrastre&&!aire&&!colgada&&fase<900;\n  const e={...neutro(),caminando:marcha?1+Math.floor(distancia/(celda*2))%4:0,\n   mirada:{dx:puntero?direccion(puntero.x-x-w/2,24):rumbo,dy:puntero?direccion(puntero.y-y-h/2,28):0},\n   parpadeo:!quieta()&&Math.floor(t/140)%31===30,\n   chapoteo:aire||agitada?(Math.floor(t/166)%2?'der':'izq'):null,\n   ojos:t<gestos.grandesHasta||aire&&Math.hypot(vx,velY)>900||colgada&&Math.abs(giro)>6?'grandes':gestoHasta>t?'felices':null,\n   agachar:t<gestos.agacharHasta?1:0,\n   estirar:t>=gestos.agacharHasta&&t<gestos.estirarHasta?1:0,\n   inclinar:!aire&&!colgada&&t<gestos.inclinarHasta?gestos.inclinar:0};\n  const atuendo=apariencia.leer(),color=colorLocal.leer();\n  if(expresiva){\n   if(personalidad==='tranquila')e.parpadeo=fase<250?'ambos':false;\n   else if(personalidad==='traviesa'){e.parpadeo=fase<250?'guino':false;e.brazoIzq=fase<450?1:0;}\n   else{e.brazoIzq=2;e.saludo=2;e.ojos='felices';e.inclinar=fase<450?-1:1;}\n  }\n  const dibujo=JSON.stringify([e,atuendo,color]);\n  if(dibujo===cuadro||(t-ultimoDibujo<90&&!quieta()))return;\n  cuadro=dibujo;ultimoDibujo=t;\n  actor.innerHTML=svgMey(cuadroMey('hola',e,atuendo,false),'hola',atuendo,{celda,color},true);\n };\n const sondear=()=>{\n  const extra=typeof opciones.evitar==='function'?opciones.evitar():opciones.evitar||[];\n  obstaculos=[...doc.querySelectorAll('a,button,summary,erlen-suite-nav,input,select,textarea,[contenteditable=\"true\"],iframe,canvas,[role=\"dialog\"],[role=\"button\"],[role=\"option\"],[role=\"tab\"],[data-mey-evitar]'),...extra]\n   .filter(e=>e?.getBoundingClientRect&&e!==actor&&e!==pausa&&!e.closest('.mey-libre,[inert]'))\n   .map(e=>e.getBoundingClientRect()).filter(r=>r.width&&r.height&&r.bottom>0&&r.top<win.innerHeight);\n  plataformas=[...doc.querySelectorAll(selectorAnclas())].map(e=>e.getBoundingClientRect()).filter(r=>r.width&&r.bottom>0&&r.top<win.innerHeight).map(r=>({left:r.left,right:r.right,top:r.top}));\n };\n const colision=(nx,ny)=>obstaculos.some(r=>nx+w>r.left-6&&nx<r.right+6&&ny+h>r.top-6&&ny<r.bottom+6);\n const pasoLibre=(a,b)=>{\n  const n=Math.max(1,Math.ceil(Math.hypot(b.x-a.x,b.y-a.y)/12));\n  for(let i=1;i<=n;i++)if(colision(a.x+(b.x-a.x)*i/n,a.y+(b.y-a.y)*i/n))return false;\n  return true;\n };\n const proteger=()=>{\n  if(modo==='vuela'){actor.style.visibility='';actor.style.pointerEvents=colision(x,y)?'none':'';return;}\n  // Si un control aparece o se desplaza debajo de ella, cede el clic inmediatamente.\n  // Sigue desde la misma posición hasta salir; jamás se teletransporta a un borde.\n  const oculta=colision(x,y+elevacion);\n  actor.style.visibility=oculta?'hidden':'';\n  actor.style.pointerEvents='';\n  if(oculta&&!ocultaAntes)replanear=true;ocultaAntes=oculta;\n };\n const planear=(meta,t)=>{\n  // Rejilla de pasos y búsqueda de rutas dentro del espacio visible. Incluye ambos\n  // márgenes incluso en móvil; cada tramo completo se comprueba, no solo su extremo.\n  const xs=[8],ys=[8];\n  for(let n=72;n<derecha();n+=64)xs.push(n);if(derecha()>8)xs.push(derecha());\n  for(let n=72;n<suelo();n+=64)ys.push(n);if(suelo()>8)ys.push(suelo());\n  const nodos=[];\n  for(let j=0;j<ys.length;j++)for(let i=0;i<xs.length;i++)if(!colision(xs[i],ys[j]))nodos.push({x:xs[i],y:ys[j],i,j});\n  const actual={x,y},oculta=colision(x,y);\n  const inicio=nodos.toSorted((a,b)=>Math.hypot(a.x-x,a.y-y)-Math.hypot(b.x-x,b.y-y)).find(n=>oculta||pasoLibre(actual,n));\n  if(!inicio){ruta=[];prox=t+900;replanear=false;return;}\n  const porCelda=new Map(nodos.map(n=>[`${n.i},${n.j}`,n])),padres=new Map([[inicio,null]]),cola=[inicio];\n  for(let k=0;k<cola.length;k++){\n   const a=cola[k];\n   for(const [i,j] of [[a.i-1,a.j],[a.i+1,a.j],[a.i,a.j-1],[a.i,a.j+1]]){\n    const b=porCelda.get(`${i},${j}`);\n    if(b&&!padres.has(b)&&pasoLibre(a,b)){padres.set(b,a);cola.push(b);}\n   }\n  }\n  const fin=cola.toSorted((a,b)=>Math.hypot(a.x-meta.x,a.y-meta.y)-Math.hypot(b.x-meta.x,b.y-meta.y))[0];\n  const camino=[];for(let n=fin;n;n=padres.get(n))camino.unshift({x:n.x,y:n.y});\n  // Suprime esquinas innecesarias sin atajar a través de un control.\n  ruta=[];let desde=actual;\n  while(camino.length){let i=camino.length-1;while(i>0&&!pasoLibre(desde,camino[i]))i--;const siguiente=camino[i];ruta.push(siguiente);desde=siguiente;camino.splice(0,i+1);}\n  prox=t+5500;replanear=false;\n };\n const destino=t=>{\n  const siguiendo=puntero&&t-puntero.t<1800&&Math.hypot(puntero.x-x-w/2,puntero.y-y-h/2)<260;\n  if(siguiendo){\n   const lado=puntero.x>x+w/2?-1:1;\n   return {x:limitar(puntero.x-w/2+lado*64,8,derecha()),y:limitar(puntero.y-h/2+70,8,suelo())};\n  }\n  const anclas=[...doc.querySelectorAll(selectorAnclas())].map(e=>e.getBoundingClientRect()).filter(r=>r.width&&r.top>h+60&&r.top<win.innerHeight-80);\n  const fase=Math.floor(t/5500),ancla=anclas[fase%Math.max(1,anclas.length)];\n  return {x:limitar(win.innerWidth*(.12+((fase*.37)%.7)),8,derecha()),y:ancla?limitar(ancla.top-h-12,8,suelo()):suelo()};\n };\n const aterrizar=(imp,t)=>{\n  modo='camina';velY=0;vy=0;elevacion=0;objetivo.x=objetivo.y=0;rot=Math.atan2(Math.sin(rot),Math.cos(rot));actor.style.pointerEvents='';ruta=[];replanear=false;prox=t+600;\n  if(imp>900){gestos.agacharHasta=t+300;gestos.estirarHasta=t+400;}\n  else if(imp>300){gestos.agacharHasta=t+200;gestos.estirarHasta=t+300;}\n  else {gestos.agacharHasta=t+100;gestos.estirarHasta=t+100;}\n  if(imp>1200)gestos.grandesHasta=t+600;\n };\n const salto=t=>{if(t-ultimoSalto<1000||quieta()||modo!=='camina'||elevacion!==0||vy!==0)return;ultimoSalto=t;vy=-FISICA_MEY.SALTO;gestoHasta=t+900;};\n const paso=t=>{\n  raf=0;if(muerta)return;if(!actor.isConnected){control.detener();return;}\n  if(quieta()){\n   ultimo=0;\n   // Un modal con foco en un botón puede cerrar sin focusout: solo vigila el inert.\n   if(!manual&&!reducida()&&!foco&&!doc.hidden)raf=win.requestAnimationFrame(paso);\n   return;\n  }\n  const dt=ultimo?Math.min(.05,(t-ultimo)/1000):0;ultimo=t;\n  if(t-sonda>250){sondear();sonda=t;}\n  acumulado+=dt;\n  let n=Math.min(FISICA_MEY.SUBPASOS,Math.floor(acumulado/FISICA_MEY.H));\n  acumulado-=n*FISICA_MEY.H;if(acumulado>FISICA_MEY.H)acumulado=0;\n  if(arrastre){\n   if(modo==='colgada'){\n    for(let i=0;i<n;i++){\n     if(i===n-1)rotAntes=rot;\n     pivotePaso.x=pivoteAntes.x+(pivote.x-pivoteAntes.x)*(i+1)/n;\n     pivotePaso.y=pivoteAntes.y+(pivote.y-pivoteAntes.y)*(i+1)/n;\n     penduloMey(pend,pivotePaso.x,pivotePaso.y,FISICA_MEY.H);\n     rot=pend.phi0-anguloMey(pend,pivotePaso.x,pivotePaso.y);\n     const c=Math.cos(rot),s=Math.sin(rot);\n     x=pivotePaso.x-O.x-(arrastre.gx*c-arrastre.gy*s);\n     y=pivotePaso.y-O.y-(arrastre.gx*s+arrastre.gy*c);\n    }\n    vPivote=dt?Math.hypot(pivote.x-pivoteAntes.x,pivote.y-pivoteAntes.y)/dt:0;\n    pivoteAntes={x:pivote.x,y:pivote.y};\n   }else vPivote=0;\n   dibujar(t);posicionar();raf=win.requestAnimationFrame(paso);return;\n  }\n  proteger();\n  if(puntero&&t-puntero.t<1800&&t-seguido>240&&Math.hypot(puntero.x-x-w/2,puntero.y-y-h/2)<260){\n   const metaPaseo=destino(t);if(!metaPuntero||Math.hypot(metaPaseo.x-metaPuntero.x,metaPaseo.y-metaPuntero.y)>24){replanear=true;metaPuntero=metaPaseo;}seguido=t;\n  }else metaPuntero=null;\n  if(replanear||t>prox)planear(destino(t),t);\n  while(ruta.length&&Math.hypot(ruta[0].x-x,ruta[0].y-y)<2)ruta.shift();\n  const meta=sobreMey?{x,y}:ruta[0]||{x,y},dx=meta.x-x,dy=meta.y-y,d=Math.hypot(dx,dy);\n  llegadaMey(dx,dy,objetivo);\n  cuerpoLim.der=derecha();cuerpoLim.suelo=suelo();\n  let distanciaPaso=0;\n  for(let i=0;i<n;i++){\n   if(modo==='vuela'){\n    cuerpo.x=x;cuerpo.y=y;cuerpo.vx=vx;cuerpo.vy=velY;cuerpo.rot=rot;cuerpo.giro=giro;\n    const r=vueloMey(cuerpo,FISICA_MEY.H,cuerpoLim);\n    x=cuerpo.x;y=cuerpo.y;vx=cuerpo.vx;velY=cuerpo.vy;rot=cuerpo.rot;giro=cuerpo.giro;\n    if(r<0)gestos.agacharHasta=t+100;\n    else if(r>0)aterrizar(r,t);\n   }\n   if(modo==='camina'){\n    if(elevacion===0&&vy===0){\n     vel.x=vx;vel.y=velY;marchaMey(vel,objetivo,FISICA_MEY.H);vx=vel.x;velY=vel.y;\n    }\n    const nx=limitar(x+vx*FISICA_MEY.H,8,derecha()),ny=limitar(y+velY*FISICA_MEY.H,8,suelo());\n    if(colision(x,y)||pasoLibre({x,y},{x:nx,y:ny})){\n     distanciaPaso+=Math.hypot(nx-x,ny-y);x=nx;y=ny;\n    }else {vx=velY=0;ruta=[];replanear=true;}\n    if(elevacion<0||vy<0){\n     vy+=FISICA_MEY.G*FISICA_MEY.H;elevacion+=vy*FISICA_MEY.H;\n     if(elevacion>=0){elevacion=0;vy=0;gestos.agacharHasta=t+100;}\n    }\n    if(rot||giro){\n     cuerpo.rot=rot;cuerpo.giro=giro;enderezarMey(cuerpo,FISICA_MEY.H);rot=cuerpo.rot;giro=cuerpo.giro;\n    }\n   }\n  }\n  distancia+=distanciaPaso;\n  if(modo==='camina'){\n   if(Math.abs(vx)>8)rumbo=vx<0?-1:1;\n   const ax=dt?(vx-vxFrame)/dt:0;vxFrame=vx;\n   if(elevacion===0&&vy===0&&Math.abs(ax)>150){gestos.inclinar=Math.sign(ax);gestos.inclinarHasta=t+170;}\n   if(!arrastre&&!quieta()&&elevacion===0&&vy===0&&puntero&&t-puntero.t<120&&Math.hypot(punteroV.x,punteroV.y)>=FISICA_MEY.V_PUNTERO&&Math.hypot(puntero.x-x-w/2,puntero.y-y-h/2)<=1.5*w&&\n      (puntero.x<x-8||puntero.x>x+w+8||puntero.y<y-8||puntero.y>y+h+8)&&t-ultimoEmpujon>=FISICA_MEY.PAUSA_EMPUJON){\n    const s=Math.sign(punteroV.x)||1;\n    vx=s*FISICA_MEY.EMPUJON;velY=0;vy=-FISICA_MEY.SALTO_EMPUJON;\n    gestos.grandesHasta=t+500;gestos.inclinar=-s;gestos.inclinarHasta=t+170;\n    ultimoEmpujon=t;ruta=[];replanear=true;\n   }\n  }\n  if(!ruta.length&&d<2)prox=Math.min(prox,t+750);\n  proteger();dibujar(t);posicionar();raf=win.requestAnimationFrame(paso);\n };\n const arrancar=()=>{\n  if(muerta)return;if(!actor.isConnected){control.detener();return;}\n  win.cancelAnimationFrame(raf);raf=0;ultimo=0;acumulado=0;sondear();proteger();\n  if(quieta()){vx=velY=0;cuadro='';dibujar(0);posicionar();}\n  else raf=win.requestAnimationFrame(paso);\n };\n const fisicaLibre=()=>!quieta();\n const colgar=()=>{\n  modo='colgada';elevacion=0;vy=0;\n  let L=Math.hypot(arrastre.gx,arrastre.gy),phi0=Math.atan2(-arrastre.gx,-arrastre.gy);\n  if(L<2*celda){L=2*celda;phi0=0;}\n  const phi=phi0-rot;\n  pend={L,phi0,cx:pivote.x+L*Math.sin(phi),cy:pivote.y+L*Math.cos(phi)};\n  pend.qx=pend.cx-vx*FISICA_MEY.H;pend.qy=pend.cy-velY*FISICA_MEY.H;\n  rotAntes=rot;pivoteAntes={x:pivote.x,y:pivote.y};\n };\n const mover=e=>{\n  if(arrastre&&arrastre.id===e.pointerId){\n   if(Math.hypot(e.clientX-arrastre.inicioX,e.clientY-arrastre.inicioY)>4)arrastre.movida=true;\n   if(!fisicaLibre()||!arrastre.movida){\n    x=limitar(arrastre.x0+e.clientX-arrastre.inicioX,8,derecha());y=limitar(arrastre.y0+e.clientY-arrastre.inicioY,8,suelo());\n    vx=velY=vy=elevacion=0;posicionar();\n   }else {\n    pivote={x:limitar(e.clientX,0,win.innerWidth),y:limitar(e.clientY,0,win.innerHeight)};\n    if(modo!=='colgada')colgar();\n   }\n  }else if(e.pointerType!=='touch'){\n   const ahora=win.performance.now();\n   puntero={x:e.clientX,y:e.clientY,t:ahora};\n   if(punteroAnt){\n    const transcurrido=ahora-punteroAnt.t;\n    if(transcurrido>=8){\n     const escala=1000/transcurrido;\n     punteroV.x=punteroV.x*.5+(e.clientX-punteroAnt.x)*escala*.5;\n     punteroV.y=punteroV.y*.5+(e.clientY-punteroAnt.y)*escala*.5;\n     punteroAnt={x:e.clientX,y:e.clientY,t:ahora};\n    }\n   }else punteroAnt={x:e.clientX,y:e.clientY,t:ahora};\n  }\n };\n const bajar=e=>{\n  if(e.button!==0)return;e.preventDefault();ignorarClic=false;\n  const qx=e.clientX-(x+O.x),qy=e.clientY-(y+O.y),c=Math.cos(rot),s=Math.sin(rot);\n  arrastre={id:e.pointerId,x0:x,y0:y,inicioX:e.clientX,inicioY:e.clientY,movida:false,gx:qx*c+qy*s,gy:-qx*s+qy*c};\n  actor.setPointerCapture?.(e.pointerId);actor.dataset.arrastrando='';\n };\n const subir=()=>{\n  if(!arrastre)return;\n  const a=arrastre;ignorarClic=a.movida;arrastre=null;delete actor.dataset.arrastrando;\n  if(modo==='colgada'){\n   if(quieta()){\n    modo='camina';rot=giro=0;x=limitar(x,8,derecha());y=limitar(y,8,suelo());pend=null;\n   }else {\n    vx=(pend.cx-pend.qx)/FISICA_MEY.H;velY=(pend.cy-pend.qy)/FISICA_MEY.H;\n    const rapidez=Math.hypot(vx,velY);\n    if(rapidez>FISICA_MEY.V_LANZAR){const k=FISICA_MEY.V_LANZAR/rapidez;vx*=k;velY*=k;}\n    giro=limitar((rot-rotAntes)/FISICA_MEY.H,-FISICA_MEY.GIRO_MAX,FISICA_MEY.GIRO_MAX);\n    modo='vuela';pend=null;\n   }\n  }else if(modo==='vuela'){vx=velY=giro=0;}\n  ruta=[];replanear=true;puntero=null;sondear();proteger();\n };\n const jugar=()=>{\n  if(ignorarClic){ignorarClic=false;return;}\n  if(quieta())return;\n  if(typeof opciones.accion==='function')opciones.accion();else salto(win.performance.now());\n };\n const desplazar=()=>{\n  replanear=true;sonda=-Infinity;\n  if(!quieta()&&modo==='camina'&&!arrastre)salto(win.performance.now());\n  // Pausada permanece exactamente donde estaba; solo cede si un control ocupa su lugar.\n  if(quieta()){sondear();proteger();}\n };\n const cambiarPausa=()=>{manual=!manual;pausa.setAttribute('aria-pressed',String(manual));pausa.setAttribute('aria-label',manual?textos.seguir:textos.pausa);pausa.textContent=manual?textos.seguirCorta:textos.pausaCorta;arrancar();};\n const observarFoco=win.MutationObserver?new win.MutationObserver(()=>alFoco()):null;\n const alFoco=()=>{\n  let activo=doc.activeElement;while(activo?.shadowRoot?.activeElement)activo=activo.shadowRoot.activeElement;\n  const nueva=!!activo?.matches('input,textarea,select,[contenteditable=\"true\"]');\n  if(nueva===foco)return;foco=nueva;\n  if(foco)observarFoco?.observe(doc.body,{subtree:true,childList:true});else observarFoco?.disconnect();arrancar();\n };\n const alSalirDelFoco=()=>win.queueMicrotask(alFoco);\n const tecla=e=>{if(e.key==='Escape'&&!manual){subir();cambiarPausa();}};\n const redimensionar=()=>{if(modo==='camina'){x=limitar(x,8,derecha());y=limitar(y,8,suelo());}ruta=[];replanear=true;arrancar();};\n const aparienciaCambiada=()=>{cuadro='';ultimoDibujo=-Infinity;dibujar(win.performance.now());};\n const personalidadCambiada=ev=>{\n  if(ev?.type==='storage'&&ev.key!==null&&ev.key!==undefined&&ev.key!=='erlen-mey-personalidad')return;\n  personalidad=opciones.personalidad||personalidadLocal.leer();\n  aparienciaCambiada();\n };\n const atender=()=>{sobreMey=true;gestoHasta=win.performance.now()+600;};\n const dejar=()=>{sobreMey=false;};\n const eventos=[[actor,'pointerenter',atender],[actor,'pointerleave',dejar],[actor,'dragstart',e=>e.preventDefault()],[win,'pointermove',mover],[win,'resize',redimensionar],[doc,'visibilitychange',arrancar],[doc,'focusin',alFoco],[doc,'focusout',alSalirDelFoco],[doc,'keydown',tecla],[actor,'pointerdown',bajar],[actor,'pointerup',subir],[actor,'pointercancel',subir],[actor,'lostpointercapture',subir],[actor,'click',jugar],[pausa,'click',cambiarPausa],[win,'erlen-mey-color',aparienciaCambiada],[win,'erlen-mey-apariencia',aparienciaCambiada],[win,'storage',aparienciaCambiada],[win,'erlen-mey-personalidad',personalidadCambiada],[win,'storage',personalidadCambiada]];\n for(const [el,n,fn] of eventos)el.addEventListener(n,fn,{passive:n==='pointermove'});\n doc.addEventListener('scroll',desplazar,{capture:true,passive:true});mq?.addEventListener?.('change',arrancar);\n const control={elemento:actor,pausa,\n  actualizar(nuevas={}){if(nuevas.personalidad)perfilPersonalidadMey(nuevas.personalidad);opciones={...opciones,...nuevas};personalidadCambiada();sincronizarAccion();replanear=true;if(nuevas.pausaEn)control.ubicarPausa(nuevas.pausaEn);},\n  ubicarPausa(contenedor){pausa.classList.toggle('mey-libre-pausa--integrada',!!contenedor);(contenedor||doc.body).append(pausa);},\n  estado:()=>({x,y:modo==='camina'?y+elevacion:y,tx:ruta.at(-1)?.x??x,ty:ruta.at(-1)?.y??y,vx,velY,vy,modo,rot,estado:actor.dataset.estado,quieta:quieta(),personalidad}),\n  detener(){muerta=true;win.cancelAnimationFrame(raf);for(const [el,n,fn] of eventos)el.removeEventListener(n,fn);doc.removeEventListener('scroll',desplazar,true);mq?.removeEventListener?.('change',arrancar);observarFoco?.disconnect();actor.remove();pausa.remove();if(doc[claveRecorridoMey]===control){delete doc[claveRecorridoMey];delete doc.documentElement.dataset.erlenMeyPresencia;}}\n };\n actor.control=control;doc[claveRecorridoMey]=control;\n if(opciones.pausaEn)control.ubicarPausa(opciones.pausaEn);\n sondear();proteger();dibujar(0);posicionar();arrancar();return control;\n};\n\nreturn mey;})();\n",
  "src/diseno/mey.mjs": "// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n/* Mey, la mascota de Erlen (docs/MARCA.md del portal), en pixel art. Fuente única de sus\n   poses: el portal genera con ella web/recursos/mey/*.svg y el favicon (herramientas/mey.mjs)\n   y las apps la usan para pintar a Mey en su interfaz (por ejemplo, en los estados vacíos de\n   diseno/suite-inicio.mjs). No importa nada: también se sirve como IIFE (const erlenMey).\n\n   mey('hola')                    → '<svg class=\"erlen-mey\" …>' decorativo (aria-hidden)\n   mey('pensando', {titulo:'…'})  → con role=\"img\" y <title>, si la pose informa por sí sola\n   mey('hola', {tile:true})       → el ícono: 16×16 sobre el tile violeta\n   mey.poses                      → ['hola', 'pensando', …]\n\n   Cada pose es una cuadrícula de 16×14 celdas. Leyenda: g vidrio · w líquido, brazos y patas\n   · e ojos y trazos en tinta · x acento · p papel · . vacío. El líquido sube por los\n   bordes del matraz como agua por capilaridad y se divide abajo en dos perneras: no es una boca.\n   Los colores son los de la marca, fijos en claro y en oscuro para distinguir el líquido\n   del vidrio. Se muestra en múltiplos de\n   16 px de ancho para que los píxeles salgan parejos. */\nconst COLOR_MEY={g:'#83d4ad',w:'#177451',e:'#18171b',x:'#59368b',p:'#fdfdfd',r:'#e4007c',n:'#f29d0a',a:'#94621e'};\n// Autorizado por el usuario el 2026-10-04: más colores para Mey, independientes del portal.\nconst PALETAS_MEY=Object.freeze({\n verde:Object.freeze({g:'#83d4ad',w:'#177451'}),\n violeta:Object.freeze({g:'#d9c8ef',w:'#59368b'}),\n azul:Object.freeze({g:'#b9dff5',w:'#205e94'}),\n cobre:Object.freeze({g:'#f2d0b9',w:'#864522'}),\n rosa:Object.freeze({g:'#f8bddc',w:'#a7005a'}),\n cempasuchil:Object.freeze({g:'#ffe0a3',w:'#9c5800'})\n});\nfunction coloresMey(color='verde'){\n if(!Object.hasOwn(PALETAS_MEY,color))throw new Error('mey: color desconocido: '+color);\n return {...COLOR_MEY,...PALETAS_MEY[color]};\n}\nconst TILE_MEY='#59368b';\nconst POSES_MEY={\n hola: `\n................\n................\n.....gggggg.....\n......gggg......\n......gggg......\n.....gggggg.....\n....gggggggg....\n....geggggeg.ww.\n...ggeggggeggw..\n...ggggggggggw..\n.wwwwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n pensando: `\n.............g..\n...........g....\n.....gggggg.....\n......gggg......\n......gggg......\n.....gggggg.....\n....ggeggge.....\n....ggegggeg....\n...gggggggggg...\n...ggggggggggw..\n.wwwwwwggwwwwww.\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n exito: `\n..............x.\n.x...gggggg..xxx\nxxx...gggg....x.\n.x....gggg......\n.....gggggg.....\n.w..gggggggg..w.\n..w.geggggeg.w..\n..wgegeggegegw..\n...gggggggggg...\n...wwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n.....w....w.....\n................`,\n aviso: `\n................\n..............w.\n.....gggggg..ww.\n......gggg......\n......gggg......\n.....geggeg.....\n....gggggggg....\n.w..geggggeg..w.\n.wwggeggggeggww.\n...gggggggggg...\n...wwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n dormido: `\n............xxx.\n.............x..\n.....gggggg.xxx.\n......gggg......\n......gggg......\n.....gggggg.....\n....gggggggg....\n....gggggggg....\n...geeggggeeg...\n...gggggggggg...\n...gggggggggg...\n.wwwwwwggwwwwww.\n...wwww..wwww...\n...www....www...`,\n\n leyendo: `\n................\n................\n.....gggggg.....\n......gggg......\n......gggg......\n.....gggggg.....\n....gggggggg....\n....gggggggg....\n...ggeggggegg...\n...ggeggggegg...\n.wxppppxxppppxw.\n..xxxxxxxxxxxx..\n...wwww..wwww...\n....ww....ww....`,\n midiendo: `\n............xxx.\n............xpx.\n.....gggggg.xpx.\n......gggg..xpx.\n......gggg..xpx.\n.....gggggg.xxx.\n....ggegggeg.x..\n....ggegggeg.w..\n...ggggggggggw..\n...gggggggggg...\n.wwwwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n graficando: `\n................\n...........e....\n.....gggggge.x..\n......gggg.e.x..\n......gggg.ewxw.\n.....ggggggewxw.\n....gggggggeeeee\n....geggggeg..w.\n...ggeggggeggw..\n...gggggggggg...\n.wwwwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`\n};\n\n/* La cuadrícula de trabajo lleva ALTO_MEY filas libres encima de la pose (16×18): ahí caben el\n   sombrero de charro, el papel picado y las burbujas. Si nada las ocupa, el SVG sale a 16×14 y\n   es idéntico al de siempre. */\nconst ALTO_MEY=4;\nconst vacia=()=>Array(16).fill('.');\n\nfunction filasMey(pose){\n const arte=POSES_MEY[pose];\n if(arte===undefined)throw new Error('mey: pose desconocida: '+pose);\n return arte.trim().split('\\n').map(f=>f.split(''));\n}\n\nfunction celdasMey(filas,dy,colores=COLOR_MEY,material=false){\n let r='';\n filas.forEach((fila,y)=>{\n  if(fila.length!==16)throw new Error('mey: la fila '+y+' mide '+fila.length+', no 16');\n  for(let x=0;x<16;){\n   const c=fila[x];\n   if(c==='.'){x++;continue;}\n   if(!colores[c])throw new Error('mey: celda desconocida «'+c+'» en ('+x+','+y+')');\n   let n=1;\n   while(x+n<16&&colores[fila[x+n]]===colores[c])n++;\n   r+='<rect x=\"'+x+'\" y=\"'+(y+dy)+'\" width=\"'+n+'\" height=\"1\" fill=\"'+colores[c]+'\"'+(material?' data-mey-pigmento=\"'+c+'\"':'')+'/>';\n   x+=n;\n  }\n });\n return r;\n}\n\n// El contorno gana pasos conectados de 1/2 y 1/4 de celda en tamaños grandes.\n// El favicon de 16 px conserva la cuadrícula simple para no emborronarse.\nfunction detallesMey(filas,dy,colores=COLOR_MEY,material=false){\n let r='';\n const punto=(x,y,c,t=.5)=>{r+='<rect x=\"'+x+'\" y=\"'+(y+dy)+'\" width=\"'+t+'\" height=\"'+t+'\" fill=\"'+colores[c]+'\"'+(material?' data-mey-pigmento=\"'+c+'\"':'')+'/>';};\n // Capilaridad en tres alturas: junto al vidrio, en el cuerpo y en el centro.\n // No hay línea de tinta ni rasgos faciales nuevos.\n for(let y=ALTO_MEY+8;y<filas.length-2;y++){\n  if(filas[y].slice(3,13).join('')==='wwwwggwwww'&&filas[y+1].slice(3,13).every(c=>c==='w')){\n   for(const x of [3,3.5,12,12.5])if(filas[y-1][Math.floor(x)]==='g')punto(x,y-.5,'w');\n   for(const x of [7,7.5,8,8.5])punto(x,y+.5,'w');\n  }\n }\n // Transiciones de vidrio: cada escalón toca la fila anterior y la siguiente.\n // No se añaden reflejos en la cabeza ni fragmentos flotantes fuera de los brazos.\n for(let y=ALTO_MEY+2;y<ALTO_MEY+9;y++){\n  const bordes=f=>[f.findIndex(c=>c==='g'),f.lastIndexOf('g')];\n  const [izq,der]=bordes(filas[y]),[sigIzq,sigDer]=bordes(filas[y+1]);\n  if(izq>=3&&izq<=6&&sigIzq>=3&&sigIzq<=6){\n   if(sigIzq===izq-1){punto(izq-.25,y+.25,'g',.25);punto(izq-.5,y+.5,'g');}\n   if(sigIzq===izq+1){punto(sigIzq-.5,y+1,'g');punto(sigIzq-.25,y+1.5,'g',.25);}\n  }\n  if(der>=9&&der<=12&&sigDer>=9&&sigDer<=12){\n   if(sigDer===der+1){punto(der+1,y+.25,'g',.25);punto(der+1,y+.5,'g');}\n   if(sigDer===der-1){punto(sigDer+1,y+1,'g');punto(sigDer+1,y+1.5,'g',.25);}\n  }\n }\n return r;\n}\n\n// Contornos de regiones conectadas: elimina las divisiones entre píxeles y conserva\n// los huecos. Cada arte puede elegir una silueta angular o curvas continuas.\nfunction contornoMey(filas,acepta,dy=0,suave=false){\n const bordes=new Map(),clave=p=>p.join(','),hay=(x,y)=>!!filas[y]?.[x]&&acepta(filas[y][x],x,y);\n const agrega=(a,b)=>{const k=clave(a);if(!bordes.has(k))bordes.set(k,[]);bordes.get(k).push(b);};\n filas.forEach((fila,y)=>fila.forEach((c,x)=>{if(!acepta(c,x,y))return;\n  if(!hay(x,y-1))agrega([x,y],[x+1,y]);if(!hay(x+1,y))agrega([x+1,y],[x+1,y+1]);\n  if(!hay(x,y+1))agrega([x+1,y+1],[x,y+1]);if(!hay(x-1,y))agrega([x,y+1],[x,y]);\n }));\n const punto=p=>Number(p[0].toFixed(2))+','+Number((p[1]+dy).toFixed(2)),rutas=[];\n while(bordes.size){\n  const inicio=bordes.keys().next().value.split(',').map(Number),poligono=[inicio];let actual=inicio,previa=[inicio[0]-1,inicio[1]];\n  do{\n   const k=clave(actual),opciones=bordes.get(k);if(!opciones?.length)break;\n   const dx=actual[0]-previa[0],dy0=actual[1]-previa[1],prioridad=b=>{const ex=b[0]-actual[0],ey=b[1]-actual[1];return dx*ey-dy0*ex===1?3:dx*ex+dy0*ey===1?2:dx*ey-dy0*ex===-1?1:0;};\n   opciones.sort((a,b)=>prioridad(b)-prioridad(a));const siguiente=opciones.shift();if(!opciones.length)bordes.delete(k);\n   previa=actual;actual=siguiente;if(clave(actual)!==clave(inicio))poligono.push(actual);\n  }while(clave(actual)!==clave(inicio));\n  const vertices=poligono.filter((p,i)=>{const a=poligono[(i+poligono.length-1)%poligono.length],b=poligono[(i+1)%poligono.length];return(p[0]-a[0])*(b[1]-p[1])!==(p[1]-a[1])*(b[0]-p[0]);});\n  if(vertices.length<3)continue;\n  if(!suave){rutas.push('M'+vertices.map(punto).join('L')+'Z');continue;}\n  const esquinas=vertices.map((p,i)=>{const a=vertices[(i+vertices.length-1)%vertices.length],b=vertices[(i+1)%vertices.length],interp=q=>{const d=Math.hypot(q[0]-p[0],q[1]-p[1]),r=Math.min(.48,d/2);return[p[0]+(q[0]-p[0])*r/d,p[1]+(q[1]-p[1])*r/d];};return{antes:interp(a),p,despues:interp(b)};});\n  let d='M'+punto(esquinas[0].despues);for(let i=1;i<=esquinas.length;i++){const e=esquinas[i%esquinas.length];d+='L'+punto(e.antes)+'Q'+punto(e.p)+' '+punto(e.despues);}rutas.push(d+'Z');\n }\n return rutas.join('');\n}\n\nfunction ilustracionMey(filas,dy,colores){\n const texto=filas.map(f=>f.join('')).join('|')+Object.values(colores).join('|');let h=2166136261,k=5381;\n for(const c of texto){h=Math.imul(h^c.charCodeAt(0),16777619);k=Math.imul(k,33)^c.charCodeAt(0);}\n const id='mey-v'+(h>>>0).toString(36)+(k>>>0).toString(36),pigmentos=[...new Set(filas.flat().filter(c=>c!=='.'&&c!=='e'))];\n const cara=(c,x,y)=>c==='e'&&filas[y].slice(0,x).includes('g')&&filas[y].slice(x+1).includes('g');\n const cuerpo=(c,x,y)=>c==='g'||c==='w'||cara(c,x,y),contorno=contornoMey(filas,cuerpo,dy,true);\n let defs='<clipPath id=\"'+id+'-clip\"><path d=\"'+contorno+'\"/></clipPath>';\n for(const c of pigmentos)defs+='<linearGradient id=\"'+id+'-'+c+'\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\"><stop class=\"mey-material-luz\" offset=\"0\" stop-color=\"'+colores[c]+'\"/><stop offset=\".3\" stop-color=\"'+colores[c]+'\"/><stop offset=\".65\" stop-color=\"'+colores[c]+'\"/><stop class=\"mey-material-sombra\" offset=\"1\" stop-color=\"'+colores[c]+'\"/></linearGradient>';\n const adorno='<g class=\"mey-decoraciones\" clip-path=\"url(#'+id+'-clip)\">'+\n  '<g data-mey-decoracion=\"cristal\" display=\"none\"><path d=\"M2,-2L7,-2L0,16L-5,16ZM10,-2L11,-2L4,16L3,16Z\"/></g>'+\n  '<g data-mey-decoracion=\"aero\" display=\"none\"><circle cx=\"5.6\" cy=\"6.3\" r=\"1\"/><circle cx=\"10.9\" cy=\"9.7\" r=\".55\"/><path d=\"M4,4Q7,2 11,4\"/></g>'+\n  '<g data-mey-decoracion=\"deco\" display=\"none\"><path d=\"M8,14L2,5M8,14L5,3M8,14L8,2M8,14L11,3M8,14L14,5M2,12L8,5L14,12M3,13L8,7L13,13\"/></g>'+\n  '<g data-mey-decoracion=\"bauhaus\" display=\"none\"><circle cx=\"5\" cy=\"6\" r=\"1.8\"/><path d=\"M9,3L13,7L9,7Z\"/><path d=\"M3,11H13V13H3Z\"/></g>'+\n  '<g data-mey-decoracion=\"metal\" display=\"none\"><path d=\"M0,3L16,1V2L0,4ZM0,8L16,5V6L0,9ZM0,13L16,10V11L0,14Z\"/></g>'+\n  '<g data-mey-decoracion=\"circuito\" display=\"none\"><path d=\"M3,4H6V6H13M3,11H10V13H13M10,3V4H13M2,8H4M12,8H14\"/><circle cx=\"6\" cy=\"4\" r=\".35\"/><circle cx=\"10\" cy=\"11\" r=\".35\"/></g>'+\n  '<g data-mey-decoracion=\"plano\" display=\"none\"><path d=\"M0,3H16M0,6H16M0,9H16M0,12H16M4,-4V16M8,-4V16M12,-4V16M0,14L16,-2\"/></g>'+\n  '<g data-mey-decoracion=\"retro\" display=\"none\"><path d=\"M0,3H16M0,5H16M0,7H16M0,9H16M0,11H16M0,13H16\"/></g></g>';\n let variantes='';for(const suave of [false,true]){\n  let formas='<path class=\"mey-vector-contorno\" d=\"'+contornoMey(filas,cuerpo,dy,suave)+'\" fill=\"none\"/>';\n  for(const c of pigmentos){const region=(v,x,y)=>v===c||(c==='g'&&cara(v,x,y));formas+='<path data-mey-material=\"'+c+'\" d=\"'+contornoMey(filas,region,dy,suave)+'\" fill=\"url(#'+id+'-'+c+')\"/>';}\n  const ojos=contornoMey(filas,c=>c==='e',dy,suave);\n  variantes+='<g class=\"mey-vector\" data-mey-vector=\"'+(suave?'suave':'angular')+'\" display=\"none\">'+formas+adorno+'<path data-mey-material=\"e\" d=\"'+ojos+'\" fill=\"'+colores.e+'\"/></g>';\n }\n // Las referencias locales son deterministas por dibujo y paleta; nunca un contador global.\n return '<!--mey-arte-inicio--><g class=\"mey-ilustracion\" display=\"none\"><defs>'+defs+'</defs>'+variantes+'</g><!--mey-arte-fin-->';\n}\n\nfunction accesibleMey(opciones){\n const titulo=opciones.titulo?String(opciones.titulo).replace(/[&<>\"]/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;'}[c])):'';\n return titulo?'role=\"img\" aria-label=\"'+titulo+'\"><title>'+titulo+'</title>':'aria-hidden=\"true\" focusable=\"false\">';\n}\n\n/* filas: cuadrícula de trabajo de 18 filas. alto: true fuerza el lienzo de 16×18 (Mey viva, para\n   que no salte de tamaño cuando aparece el papel picado). */\nfunction svgMey(filas,pose,atuendo,opciones,alto){\n const color=opciones.color||'verde',colores=coloresMey(color);\n const arriba=alto||filas.slice(0,ALTO_MEY).some(f=>f.some(c=>c!=='.'));\n const vista=arriba?'0 -'+ALTO_MEY+' 16 '+(14+ALTO_MEY):'0 0 16 14';\n // Con opciones.celda, tamaño en píxeles enteros por celda (el pixel art no se emborrona).\n const tam=(opciones.celda?' width=\"'+16*opciones.celda+'\" height=\"'+(arriba?14+ALTO_MEY:14)*opciones.celda+'\"':'')+(opciones.estilo?' style=\"'+opciones.estilo+'\"':'');\n const celdas=arriba?celdasMey(filas,-ALTO_MEY,colores,true):celdasMey(filas.slice(ALTO_MEY),0,colores,true);\n const arte=ilustracionMey(arriba?filas:filas.slice(ALTO_MEY),arriba?-ALTO_MEY:0,colores);\n return '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"'+vista+'\"'+tam+' shape-rendering=\"crispEdges\" class=\"erlen-mey\" data-pose=\"'+pose+'\"'+(atuendo!=='ninguno'?' data-atuendo=\"'+atuendo+'\"':'')+(color!=='verde'?' data-color=\"'+color+'\"':'')+' '+accesibleMey(opciones)+celdas+(opciones.detalle!==false&&(!opciones.celda||opciones.celda>=2)?detallesMey(filas,arriba?-ALTO_MEY:0,colores,true):'')+arte+'</svg>';\n}\n\n/* ---------- Atuendos ----------\n   Mey se viste con un toque mexicano. Parte sin atuendo; los demás son\n   disfraces para ocasiones. Cada prenda se coloca buscando en la pose el tapón (corrida de 6\n   celdas de vidrio sobre un cuello de 4), el paso del cuello al cuerpo y los ojos, así sirve\n   para todas las poses. Solo pinta sobre vidrio o vacío: nunca tapa ojos ni utilería. */\nconst ATUENDOS_MEY=['rebozo','gala','charro','luchador','astronauta','cientifica','exploradora','artista','invierno','ninguno'];\nconst PAPEL_PICADO_MEY=['eeeeeeeeeeeeeeee','rrr.nnn.xxx.rrr.','r.r.n.n.x.x.r.r.','.r...n...x...r..'];\n\nfunction corridaMey(fila,patron=/g+/){const m=fila.join('').match(patron);return m?{a:m.index,b:m.index+m[0].length-1,n:m[0].length}:null;}\nfunction tapaMey(f){\n for(let y=0;y<f.length-1;y++){const c=corridaMey(f[y]),d=corridaMey(f[y+1]);if(c&&d&&c.n===6&&d.n===4&&d.a===c.a+1)return {y,a:c.a,b:c.b};}\n return null;\n}\nfunction cuelloMey(f,t){\n for(let y=t.y+1;y<f.length-1;y++){const c=corridaMey(f[y]),d=corridaMey(f[y+1],/[ge]+/);if(c&&d&&c.n===4&&d.n>=6&&d.a<c.a)return {y:y+1,a:c.a-1};}\n return null;\n}\n\n// Ojos «de cara»: tinta con vidrio a ambos lados en su fila (así los ejes del gráfico no cuentan).\nfunction caraMey(f,y0,y1){\n const celdas=[];\n for(let y=Math.max(0,y0);y<=Math.min(f.length-1,y1);y++){const s=f[y].join('');for(let x=0;x<16;x++)if(s[x]==='e'&&s.slice(0,x).includes('g')&&s.slice(x+1).includes('g'))celdas.push({x,y});}\n return celdas;\n}\n\nfunction vestirMey(f,atuendo,e,ojos){\n if(!atuendo||atuendo==='ninguno')return;\n if(!ATUENDOS_MEY.includes(atuendo))throw new Error('mey: atuendo desconocido: '+atuendo);\n const t=tapaMey(f);if(!t)return;\n const k=cuelloMey(f,t);\n const pon=(x,y,c,sobre)=>{if(f[y]&&x>=0&&x<16&&sobre.includes(f[y][x]))f[y][x]=c;};\n if((atuendo==='rebozo'||atuendo==='gala')&&k){\n  ['r','n','p','x','n','r'].forEach((c,i)=>pon(k.a+i,k.y,c,'g'));\n  pon(k.a+5,k.y+1,'r','g.');\n  pon(k.a+6,e.salto>0||e.saludo?k.y+1:k.y+2,'n','.');\n }\n if(atuendo==='gala'){\n  const cx=t.b+1,cy=t.y-1;\n  for(const [x,y] of [[cx,cy-1],[cx-1,cy],[cx+1,cy],[cx,cy+1]])pon(x,y,'n','.');\n  pon(cx,cy,'a','.');\n }\n if(atuendo==='charro'){\n  for(let x=t.a-3;x<=t.b+3;x++)pon(x,t.y-1,'e','.');\n  pon(t.a-1,t.y-1,'n','e');pon(t.b+1,t.y-1,'n','e');\n  pon(t.a-3,t.y-2,'e','.');pon(t.b+3,t.y-2,'e','.');\n  for(let x=t.a;x<=t.b;x++)pon(x,t.y-2,'n','.');\n  for(let x=t.a;x<=t.b;x++)pon(x,t.y-3,'e','.');\n  for(let x=t.a+1;x<=t.b-1;x++)pon(x,t.y-4,'e','.');\n  for(let x=t.a+2;x<=t.b-2;x++)pon(x,t.y-5,'e','.');\n  if(k){['r','r','n','n','r','r'].forEach((c,i)=>pon(k.a+i,k.y,c,'g'));pon(k.a,k.y+1,'r','g');pon(k.a+5,k.y+1,'r','g');}\n }\n if(atuendo==='luchador'&&k){\n  // Máscara de luchador: rosa mexicano del cuello a debajo de los ojos, ribete cempasúchil\n  // alrededor de cada ojo y franja blanca al centro de la frente.\n  const cara=caraMey(f,k.y,k.y+5);\n  const yb=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4,arriba=cara.length?Math.min(...cara.map(o=>o.y)):k.y+2;\n  const cercaDeOjo=(x,y)=>cara.some(o=>Math.abs(o.x-x)+Math.abs(o.y-y)===1);\n  for(let y=k.y;y<=yb;y++)for(let x=0;x<16;x++)if(f[y][x]==='g')f[y][x]=cercaDeOjo(x,y)?'n':(y<arriba&&(x===k.a+2||x===k.a+3)?'p':'r');\n }\n if(atuendo==='astronauta'){\n  // Aro de escafandra con borde violeta visible también sobre papel claro.\n  for(let x=t.a-1;x<=t.b+1;x++)pon(x,t.y-1,'x','.');\n  for(let y=t.y;y<=t.y+2;y++){\n   pon(t.a-2,y,'x','.');pon(t.b+2,y,'x','.');\n  }\n  if(k){pon(k.a,k.y,'p','g');pon(k.a+5,k.y,'p','g');pon(k.a-1,k.y+1,'x','g.');pon(k.a+6,k.y+1,'x','g.');}\n }\n if(atuendo==='cientifica'&&k){\n  pon(k.a,k.y,'x','g');pon(k.a+5,k.y,'x','g');\n  const cara=caraMey(f,k.y,k.y+5);\n  const debajo=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4;\n  for(let y=debajo;y<=debajo+2;y++){\n   for(let x=k.a-1;x<=k.a+1;x++)pon(x,y,'p','g');\n   for(let x=k.a+4;x<=k.a+6;x++)pon(x,y,'p','g');\n   pon(k.a-2,y,'x','g.');pon(k.a+7,y,'x','g.');\n  }\n  pon(k.a+2,debajo,'x','g');\n }\n if(atuendo==='exploradora'){\n  // Sombrero de campo de ala ancha, galón dorado y chaleco claro con bolsillos.\n  for(let x=t.a-2;x<=t.b+2;x++)pon(x,t.y-1,'x','.');\n  for(let x=t.a;x<=t.b;x++){pon(x,t.y-2,'n','.');pon(x,t.y-3,'x','.');}\n  if(k){\n   const cara=caraMey(f,k.y,k.y+5),debajo=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4;\n   for(let y=debajo;y<=debajo+1;y++)for(const x of [k.a-1,k.a,k.a+5,k.a+6])pon(x,y,'p','g');\n   pon(k.a,debajo+1,'n','p');pon(k.a+5,debajo+1,'n','p');\n  }\n }\n if(atuendo==='artista'){\n  // Boina ladeada, delantal violeta: la cara y el nivel del líquido quedan a la vista.\n  for(let x=t.a-1;x<=t.b+1;x++)pon(x,t.y-1,'r','.');\n  for(let x=t.a-2;x<=t.b;x++)pon(x,t.y-2,'r','.');\n  pon(t.a,t.y-3,'r','.');\n  if(k){\n   const cara=caraMey(f,k.y,k.y+5),debajo=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4;\n   for(let y=debajo-3;y<debajo;y++){pon(k.a-1,y,'x','g');pon(k.a+6,y,'x','g');}\n   for(let y=debajo;y<=debajo+2;y++)for(let x=k.a;x<=k.a+5;x++)pon(x,y,'x','g');\n   pon(k.a+1,debajo,'p','x');pon(k.a+4,debajo,'p','x');\n   pon(k.a+2,debajo+1,'n','x');pon(k.a+3,debajo+1,'r','x');\n  }\n }\n if(atuendo==='invierno'){\n  // Gorro de punto con pompón y bufanda al cuello, sin cubrir los ojos.\n  for(let x=t.a-1;x<=t.b+1;x++)pon(x,t.y-1,x%2?'r':'x','.');\n  for(let x=t.a;x<=t.b;x++)pon(x,t.y-2,'x','.');\n  pon(t.a+2,t.y-3,'r','.');pon(t.a+3,t.y-3,'r','.');\n  if(k){\n   for(let x=k.a;x<=k.a+5;x++)pon(x,k.y,'p','g');\n   pon(k.a+1,k.y,'n','p');pon(k.a+4,k.y,'n','p');\n   for(let y=k.y+1;y<=k.y+3;y++)pon(k.a-1,y,'p','g.');\n   pon(k.a-1,k.y+4,'n','g.');\n  }\n }\n}\n\nfunction papelPicadoMey(f){PAPEL_PICADO_MEY.forEach((fila,y)=>{for(let x=0;x<16;x++)if(fila[x]!=='.'&&f[y][x]==='.')f[y][x]=fila[x];});}\n\nexport function mey(pose='hola',opciones={}){\n if(opciones.tile)return '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" class=\"erlen-mey\" data-pose=\"'+pose+'\" '+accesibleMey(opciones)+'<rect width=\"16\" height=\"16\" rx=\"3.5\" fill=\"'+TILE_MEY+'\"/><g shape-rendering=\"crispEdges\">'+celdasMey(filasMey(pose),1)+'</g></svg>';\n const atuendo=opciones.atuendo||'ninguno';\n const fiesta=pose==='exito'&&opciones.papelPicado!==false;\n return svgMey(cuadroMey(pose,{},atuendo,fiesta),pose,atuendo,opciones,false);\n}\nmey.poses=Object.keys(POSES_MEY);\nmey.atuendos=ATUENDOS_MEY;\nmey.colores=Object.freeze(Object.keys(PALETAS_MEY));\n/* El vestidor solo guarda el atuendo. No altera el favicon ni las poses semánticas de las apps.\n   Si localStorage está bloqueado, la elección dura hasta salir de esta página. */\nconst aparienciasEnMemoria=new WeakMap();\nmey.aparienciaLocal=function(ventana){\n const clave='erlen-mey-apariencia';\n return {\n  leer(){\n   try{const almacen=ventana?.localStorage;if(almacen){const valor=almacen.getItem(clave);return ATUENDOS_MEY.includes(valor)?valor:'ninguno';}}catch{}\n   return aparienciasEnMemoria.get(ventana)||'ninguno';\n  },\n  guardar(atuendo){\n   if(!ATUENDOS_MEY.includes(atuendo))throw new Error('mey: atuendo desconocido: '+atuendo);\n   aparienciasEnMemoria.set(ventana,atuendo);\n   try{ventana?.localStorage?.setItem(clave,atuendo);}catch{}\n   ventana?.dispatchEvent?.(new ventana.Event('erlen-mey-apariencia'));\n  }\n };\n};\n\n/* Color local independiente: conserva erlen-mey-apariencia como cadena de atuendo. */\nconst coloresEnMemoria=new WeakMap();\nmey.colorLocal=function(ventana){\n const clave='erlen-mey-color';\n return {\n  leer(){\n   try{const valor=ventana?.localStorage?.getItem(clave);if(valor!==null&&valor!==undefined)return mey.colores.includes(valor)?valor:'verde';}catch{}\n   return ventana?coloresEnMemoria.get(ventana)||'verde':'verde';\n  },\n  guardar(color){\n   coloresMey(color);\n   if(ventana)coloresEnMemoria.set(ventana,color);\n   try{ventana?.localStorage?.setItem(clave,color);}catch{}\n   if(ventana?.Event)ventana.dispatchEvent?.(new ventana.Event('erlen-mey-color'));\n  }\n };\n};\n\n/* Personalidad del movimiento, independiente del modelo de conversación y del atuendo.\n   Los perfiles sesgan decisiones; conservan el mazo completo y las pausas de accesibilidad. */\nconst PERSONALIDADES_MEY=Object.freeze({\n tranquila:Object.freeze({pausa:2.4,gesto:16000,pesos:Object.freeze({quieta:1.8,pensar:1.6,travesura:.4,jugar:.6,bailar:.5,pasear:.7}),preferidos:Object.freeze(['siesta','lectura','burbuja','idea','estatuas'])}),\n traviesa:Object.freeze({pausa:1,gesto:9000,pesos:Object.freeze({}),preferidos:Object.freeze(['inocente','confeti','escondidillas','pasolunar','rebeldia'])}),\n dramatica:Object.freeze({pausa:.85,gesto:6500,pesos:Object.freeze({travesura:1.5,bailar:1.5,jugar:1.3,pensar:.7}),preferidos:Object.freeze(['huelga','aplausos','berrinche','reverencia','teletransporte'])})\n});\nfunction perfilPersonalidadMey(nombre='traviesa'){\n if(!Object.hasOwn(PERSONALIDADES_MEY,nombre))throw new Error('mey: personalidad desconocida: '+nombre);\n return PERSONALIDADES_MEY[nombre];\n}\nmey.personalidades=Object.freeze(Object.keys(PERSONALIDADES_MEY));\nconst personalidadesEnMemoria=new WeakMap();\nconst personalidadesSinGuardar=new WeakSet();\nmey.personalidadLocal=function(ventana){\n const clave='erlen-mey-personalidad';\n return {\n  leer(){\n   if(ventana&&personalidadesSinGuardar.has(ventana))return personalidadesEnMemoria.get(ventana)||'traviesa';\n   try{const valor=ventana?.localStorage?.getItem(clave);if(valor!==null&&valor!==undefined)return mey.personalidades.includes(valor)?valor:'traviesa';}catch{}\n   return ventana?personalidadesEnMemoria.get(ventana)||'traviesa':'traviesa';\n  },\n  guardar(nombre){\n   perfilPersonalidadMey(nombre);\n   if(ventana)personalidadesEnMemoria.set(ventana,nombre);\n   try{ventana?.localStorage?.setItem(clave,nombre);if(ventana)personalidadesSinGuardar.delete(ventana);}\n   catch{if(ventana)personalidadesSinGuardar.add(ventana);}\n   if(ventana?.Event)ventana.dispatchEvent?.(new ventana.Event(clave));\n  }\n };\n};\n\n/* ---------- Mey viva ----------\n   Cada cuadro sale de la pose por transformaciones de la cuadrícula, no de dibujos aparte:\n   mirar (los ojos de 1×2 se mueven una celda dentro del vidrio), parpadear o guiñar (el ojo\n   pierde su celda de arriba), saltar (todo sube una fila), chapotear (se mueven las perneras),\n   saludar (la mano sube), soltar una burbuja por el cuello y, al celebrar, papel picado.\n   Pixel art de verdad: cambios de cuadro, sin interpolar. Filas en coordenadas de la pose. */\nconst CUADRO_MS=83;\nconst enCuadros=n=>n*CUADRO_MS;\nconst CHAPOTEO_MEY={hola:{izq:{12:'...wwwww.wwww...'},der:{12:'...wwww.wwwww...'}}};\nconst SALUDO_MEY={hola:{1:[[14,7,'.'],[14,6,'w']],2:[[14,7,'.'],[14,6,'w'],[14,5,'w']]}};\n\nfunction neutro(){\n return {\n  mirada:{dx:0,dy:0},parpadeo:false,salto:0,chapoteo:null,burbuja:null,saludo:false,\n  fiesta:false,caminando:0,sentada:false,ojos:null,inclinar:0,burbujas:null,\n  destello:null,seca:0,flotar:0,deCabeza:false,brazoIzq:0,brazoDer:1,agachar:0,estirar:0,cartel:false,confeti:0\n };\n}\n\nfunction ojosMey(filas){\n const ojos=[];\n for(let y=1;y<filas.length-1;y++)for(let x=0;x<16;x++)if(filas[y][x]==='e'&&filas[y+1][x]==='e'&&filas[y-1][x]!=='e')ojos.push({x,y});\n return ojos;\n}\n\nfunction ojosDeCara(filas){\n return ojosMey(filas).filter(({x,y})=>\n  filas[y].slice(0,x).includes('g')&&filas[y].slice(x+1).includes('g')\n );\n}\n\nfunction cuadroMey(pose,e={},atuendo,fiesta){\n const f=[...Array.from({length:ALTO_MEY},vacia),...filasMey(pose)];\n if(pose==='hola'){\n  if(e.brazoIzq===1){\n   f[10+ALTO_MEY][1]='.';f[10+ALTO_MEY][2]='.';\n   for(const [x,y] of [[2,9],[2,8],[2,7],[1,7]])f[y+ALTO_MEY][x]='w';\n  }else if(e.brazoIzq===2){\n   f[10+ALTO_MEY][1]='.';f[10+ALTO_MEY][2]='.';\n   for(const [x,y] of [[2,9],[2,8],[2,7],[1,6],[1,5]])f[y+ALTO_MEY][x]='w';\n  }\n  const der=e.saludo?1:(e.brazoDer??1);\n  if(der===0){\n   f[7+ALTO_MEY][13]='.';f[7+ALTO_MEY][14]='.';f[8+ALTO_MEY][13]='.';f[9+ALTO_MEY][13]='.';\n   f[10+ALTO_MEY][13]='w';f[10+ALTO_MEY][14]='w';\n  }\n }\n if(e.saludo)for(const [x,y,c] of SALUDO_MEY[pose]?.[e.saludo===true?1:e.saludo]||[])f[y+ALTO_MEY][x]=c;\n const ch=e.chapoteo&&CHAPOTEO_MEY[pose]?.[e.chapoteo];\n if(ch)for(const [y,fila] of Object.entries(ch))f[+y+ALTO_MEY]=fila.split('');\n // Evaporarse: las filas de líquido del cuerpo (6 celdas o más, sin las patas) se vuelven vidrio\n // de arriba abajo. El borde del líquido desaparece sin modificar la cara.\n if(e.seca){\n  // Solo dentro del cuerpo (el ancho de la fila de encima de las patas): los brazos no se evaporan.\n  const base=f[f.length-2],a=base.findIndex(c=>c!=='.'),b=15-[...base].reverse().findIndex(c=>c!=='.');\n  const filas=[];for(let y=ALTO_MEY;y<f.length-1;y++)if(f[y].filter(c=>c==='w').length>=6)filas.push(y);\n  for(const y of filas.slice(0,e.seca))for(let x=a;x<=b;x++)if(f[y][x]==='w')f[y][x]='g';\n }\n const ojos=ojosDeCara(f);\n if(e.mirada&&(e.mirada.dx||e.mirada.dy)){\n  const {dx,dy}=e.mirada;\n  const cabe=ojos.every(({x,y})=>[y+dy,y+dy+1].every(yy=>{const c=f[yy]?.[x+dx];return c==='g'||c==='e';}));\n  if(cabe){\n   for(const {x,y} of ojos){f[y][x]='g';f[y+1][x]='g';}\n   for(const o of ojos){o.x+=dx;o.y+=dy;f[o.y][o.x]='e';f[o.y+1][o.x]='e';}\n  }\n }\n if(e.parpadeo){\n  const orden=[...ojos].sort((a,b)=>a.x-b.x);\n  for(const [i,o] of orden.entries())if(e.parpadeo==='ambos'||(e.parpadeo==='guino'&&i===orden.length-1))f[o.y][o.x]='g';\n }else if(e.ojos==='grandes'){\n  // Sorpresa: cada ojo crece a 2×2 hacia el centro de la cara (sin comerse la pared del vidrio).\n  const centro=ojos.reduce((s,o)=>s+o.x,0)/(ojos.length||1);\n  for(const o of ojos){const lado=o.x<centro?1:-1;for(const y of [o.y,o.y+1])if(f[y][o.x+lado]==='g')f[y][o.x+lado]='e';}\n }else if(e.ojos&&['cerrados','felices','guino'].includes(e.ojos)){\n  const cara=ojosDeCara(f);\n  if(cara.length){\n   const centro=cara.reduce((s,o)=>s+o.x,0)/cara.length;\n   const lista=e.ojos==='guino'?[[...cara].sort((a,b)=>b.x-a.x)[0]]:cara;\n   for(const {x,y} of lista){\n    const lado=x<centro?1:-1;\n    if(e.ojos==='felices'){\n     f[y+1][x]='g';f[y][x]='e';if(f[y][x+lado]==='g')f[y][x+lado]='e';\n    }else{\n     f[y][x]='g';f[y+1][x]='e';if(f[y+1][x+lado]==='g')f[y+1][x+lado]='e';\n    }\n   }\n  }\n }\n vestirMey(f,atuendo,e,ojos);\n const t=tapaMey(f);\n let nSalto=0;\n if(t){\n  const y=t.y+1;\n  const cuelloLimpio=f[y].every((c,x)=>x>=t.a+1&&x<=t.b-1?c==='g':c==='.');\n  if(cuelloLimpio){\n   if(e.agachar){f.splice(y,1);f.unshift(vacia());}\n   else if(e.estirar&&f[0].every(c=>c==='.')){f.splice(y,0,[...f[y]]);f.shift();}\n  }\n }\n const salto=e.salto===true?1:Math.min(3,Math.max(0,+e.salto||0));\n const libres=f.findIndex(fila=>fila.some(c=>c!=='.'));\n nSalto=Math.min(salto,libres<0?0:libres);\n // Inclinarse (tropiezo, mareo, estornudo): la cabeza y los hombros se corren una celda.\n if(e.inclinar){const n=Math.sign(e.inclinar);for(let y=0;y<ALTO_MEY+6;y++)f[y]=n>0?['.',...f[y].slice(0,15)]:[...f[y].slice(1),'.'];}\n if(fiesta||e.fiesta)papelPicadoMey(f);\n if(e.burbuja!==null&&e.burbuja!==undefined){\n  const y=ALTO_MEY+1-e.burbuja;\n  if(y>=0&&f[y][9]==='.')f[y][9]='g';\n }\n // Burbujas sueltas en coordenadas del lienzo de 16×18 y un destello (idea, burbuja que revienta).\n for(const [x,y] of e.burbujas||[])if(f[y]?.[x]==='.')f[y][x]='g';\n if(e.destello){const [x,y]=e.destello;for(const [dx,dy,c] of [[0,0,'p'],[1,0,'x'],[-1,0,'x'],[0,1,'x'],[0,-1,'x']])if(f[y+dy]?.[x+dx]==='.')f[y+dy][x+dx]=c;}\n // Caminar: una pata se levanta en cada paso (se borra de la fila de abajo). Sentarse: patas\n // recogidas, el cuerpo baja una fila.\n if(e.caminando||e.sentada){\n  const y=f.map(fila=>fila.some(c=>c!=='.')).lastIndexOf(true);\n  if(y>=0){\n   // La fila de abajo son siempre las patas.\n   if(e.sentada){f.splice(y,1);f.unshift(vacia());}\n   else for(let x=0;x<16;x++)if(f[y][x]==='w'&&([1,3].includes(e.caminando)?x<8:x>=8))f[y][x]='.';\n   if(!e.sentada&&e.caminando>=3){const z=e.caminando===3?5:10;if(f[y-1][z]==='w')f[y][z]='w';}\n  }\n }\n if(nSalto>0){\n  f.splice(0,nSalto);\n  for(let i=0;i<nSalto;i++)f.push(vacia());\n }\n // Flotar: sube hasta ALTO_MEY filas (se le olvidó la gravedad).\n if(e.flotar){const n=Math.min(ALTO_MEY,e.flotar);f.splice(0,n);for(let i=0;i<n;i++)f.push(vacia());}\n // Utilería en la misma cuadrícula: el cartel queda encima de la cara, nunca sobre los ojos.\n if(e.cartel){\n  const no=['e..epeeee','ee.epe..e','e.eepe..e','e..epeeee'];\n  // Compensar el espejo del actor para que el texto siga diciendo NO hacia la izquierda.\n  for(let y=0;y<4;y++)for(let x=6;x<15;x++)f[y][x]=no[y][e.cartel==='espejo'?14-x:x-6]==='e'?'e':'p';\n  for(let y=4;y<12;y++)if(f[y][13]==='.')f[y][13]='a';\n }\n if(e.confeti){\n  const piezas=[[1,0,'r'],[4,1,'n'],[11,0,'x'],[14,2,'r'],[0,4,'x'],[15,5,'n']];\n  for(const [x,y,c] of piezas){const yy=y+e.confeti-1;if(f[yy]?.[x]==='.')f[yy][x]=c;}\n }\n return f;\n}\nmey.cuadro=(pose,estado={},atuendo='ninguno')=>cuadroMey(pose,{...neutro(),...estado},atuendo,false).map(f=>f.join('')).join('\\n');\n\n/* ---------- Mey en cada app: lugares y perfiles ----------\n   Un «lugar» es el tipo de espacio que la app le da a Mey. Fija la pose por defecto, cuánto se\n   mueve y entre qué tamaños elige (en píxeles por celda: el ancho es 16 celdas). El perfil de la\n   app pone la pose de «trabajo» (Notes lee, Spreadsheets mide, Figures grafica…). Así cada app\n   solo dice dónde va Mey y ella decide el resto; las mejoras de aquí llegan a todas. */\nconst LUGARES_MEY={\n bienvenida:{pose:'hola',energia:'completa',min:3,max:12,defecto:8},\n vacio:{pose:'dormido',energia:'completa',min:3,max:8,defecto:6},\n trabajo:{pose:null,energia:'calma',min:2,max:6,defecto:4},\n carga:{pose:'pensando',energia:'calma',min:2,max:6,defecto:4},\n exito:{pose:'exito',energia:'calma',min:2,max:8,defecto:4},\n error:{pose:'aviso',energia:'calma',min:2,max:8,defecto:4},\n barra:{pose:'hola',energia:'calma',min:1,max:3,defecto:2,eje:'alto'},\n // Recreo: un escenario ancho donde Mey juega (la portada del portal). Ver «Juegos» abajo.\n recreo:{pose:'hola',energia:'completa',min:3,max:5,defecto:4,juegos:true}\n};\nconst PERFILES_MEY={\n slides:{trabajo:'hola'},notes:{trabajo:'leyendo'},documents:{trabajo:'leyendo'},lens:{trabajo:'leyendo'},\n methods:{trabajo:'leyendo'},learn:{trabajo:'leyendo'},research:{trabajo:'leyendo'},novelty:{trabajo:'leyendo'},\n spreadsheets:{trabajo:'midiendo'},doe:{trabajo:'midiendo'},\n figures:{trabajo:'graficando'},ftir:{trabajo:'graficando'},xrd:{trabajo:'graficando'},xps:{trabajo:'graficando'},dft:{trabajo:'graficando'},fem:{trabajo:'graficando'},\n thermal:{trabajo:'midiendo'},\n rmn:{trabajo:'graficando'},\n pentagrama:{trabajo:'hola'},\n analyze:{trabajo:'graficando'},data:{trabajo:'midiendo'},projects:{trabajo:'leyendo'},release:{trabajo:'leyendo'},burocracy:{trabajo:'leyendo'},\n 'legacy-editor':{trabajo:'hola'},tunning:{trabajo:'midiendo'}\n};\n\n/* Resuelve qué Mey toca: {pose, atuendo, energia, min, max, defecto, eje}. Lo explícito gana a\n   lo del lugar, y lo del lugar a lo del perfil de la app. */\nmey.resolver=function({lugar='bienvenida',app,pose,atuendo}={}){\n const l=LUGARES_MEY[lugar];\n if(!l)throw new Error('mey: lugar desconocido: '+lugar);\n const perfil=PERFILES_MEY[app]||{};\n const final=pose||l.pose||perfil.trabajo||'hola';\n filasMey(final);\n return {lugar,pose:final,atuendo:atuendo||perfil.atuendo||'ninguno',energia:l.energia,min:l.min,max:l.max,defecto:l.defecto,eje:l.eje||'ancho',juegos:!!l.juegos};\n};\nmey.lugares=Object.keys(LUGARES_MEY);\nmey.perfiles=Object.keys(PERFILES_MEY);\n\n/* Píxeles por celda que caben en el espacio: el entero más grande dentro de [min, max]; sin\n   medida (0), el tamaño por defecto del lugar. */\nfunction celdaMey(espacio,filas,r){\n const c=Math.floor(espacio/(r.eje==='alto'?filas:16));\n return c>0?Math.max(r.min,Math.min(r.max,c)):r.defecto;\n}\n\n/* ---------- Juegos (lugar «recreo») ----------\n   En el recreo Mey no repite travesuras: juega. Cada juego es una escena cómica corta (una\n   siesta con ronquidos, las escondidillas, el hipo…) con lado, velocidad, disfraz y tiempos al\n   azar, así que ni el mismo juego sale igual dos veces. El orden sale de un mazo por persona:\n   mey.siguienteJuego no repite un juego hasta haberlos jugado todos, ni empieza una vuelta con\n   el último de la anterior. La memoria es {leer(), guardar(dato)}; mey.memoriaLocal(ventana) la\n   guarda en localStorage y, si no se puede, en memoria (nunca falla). */\nconst JUEGOS_MEY=['siesta','escondidillas','burbuja','probador','baile','hipo','mareo','carrera','estornudo','lectura','idea','estatuas','gransalto','resbalon','perseguida','gravedad','evaporacion','techo','pasolunar','berrinche','inocente','teletransporte','reverencia','rebeldia','huelga','aplausos','confeti'];\n\nfunction barajarMey(lista,azar){const a=[...lista];for(let i=a.length-1;i>0;i--){const j=Math.floor(azar()*(i+1));[a[i],a[j]]=[a[j],a[i]];}return a;}\n\nmey.siguienteJuego=function(memoria,azar=Math.random,nombres=JUEGOS_MEY,personalidad='traviesa'){\n const perfil=perfilPersonalidadMey(personalidad);\n let dato=null;try{dato=memoria?.leer?.();}catch{}\n const ultimo=nombres.includes(dato?.ultimo)?dato.ultimo:null;\n let vistos=Array.isArray(dato?.vistos)?dato.vistos.filter(n=>nombres.includes(n)):[];\n let quedan=nombres.filter(n=>!vistos.includes(n));\n if(!quedan.length){vistos=[];quedan=nombres.filter(n=>n!==ultimo||nombres.length===1);}\n const preferidos=quedan.filter(n=>perfil.preferidos.includes(n));\n const juego=barajarMey(preferidos.length&&azar()<.7?preferidos:quedan,azar)[0];\n try{memoria?.guardar?.({vistos:[...vistos,juego],ultimo:juego});}catch{}\n return juego;\n};\n\nmey.memoriaLocal=function(ventana,clave='erlen-mey-recreo'){\n let respaldo=null;\n return {\n  leer(){try{const v=ventana?.localStorage?.getItem(clave);if(v)return JSON.parse(v);}catch{}return respaldo;},\n  guardar(dato){respaldo=dato;try{ventana?.localStorage?.setItem(clave,JSON.stringify(dato));}catch{}}\n };\n};\n\n/* mey.mente: modelo puro de conducta (en segundos, sin DOM, reloj ni mutación). */\nconst clampMey=function(valor,min=0,max=1){\n const n=Number(valor);\n if(Number.isNaN(n))return min;\n return n<min?min:(n>max?max:n);\n};\n\nconst ENFRIAMIENTO_MENTE=Object.freeze({\n pasear:6,acercarse:15,curiosear:8,travesura:12,jugar:4,bostezar:60,dormir:90,estirarse:60,pensar:30,bailar:45,quieta:0\n});\n\nmey.mente={\n enfriamiento:ENFRIAMIENTO_MENTE,\n inicial(memoria={},hora=12){\n  const afectoVal=typeof memoria?.afecto==='number'?memoria.afecto:0.3;\n  const esNoche=hora<6||hora>=23;\n  return {\n   energia:0.8,\n   curiosidad:0.4,\n   aburrimiento:0.2,\n   afecto:clampMey(afectoVal,0,1),\n   sueno:clampMey(esNoche?0.5:0,0,1)\n  };\n },\n actualizar(imp={},s={},dt=0){\n  const inactividad=Number(s.inactividad)||0;\n  const cerca=!!s.cerca;\n  const estimulo=Number(s.estimulo)||0;\n  const caricia=!!s.caricia;\n  const durmiendo=!!s.durmiendo;\n  const hora=typeof s.hora==='number'?s.hora:12;\n\n  let aburrimiento=Number(imp.aburrimiento)||0;\n  aburrimiento+=inactividad>10?(dt/45):(-dt/20);\n\n  let curiosidad=Number(imp.curiosidad)||0;\n  if(estimulo>0){\n   curiosidad+=estimulo*0.3;\n  }else{\n   const paso=dt/30;\n   if(curiosidad<0.4)curiosidad=Math.min(0.4,curiosidad+paso);\n   else if(curiosidad>0.4)curiosidad=Math.max(0.4,curiosidad-paso);\n  }\n\n  let sueno=Number(imp.sueno)||0;\n  if(durmiendo){\n   sueno+=-dt/120;\n  }else{\n   if(inactividad>60)sueno+=dt/240;\n   else if(inactividad<5)sueno+=-dt/60;\n   if(hora<6||hora>=23)sueno+=dt/600;\n  }\n\n  let afecto=Number(imp.afecto)||0;\n  afecto+=(caricia?0.12:0)+(cerca?dt/40:0)-(dt/900);\n\n  sueno=clampMey(sueno,0,1);\n  const energia=clampMey(1-0.6*sueno,0,1);\n\n  return {\n   energia,\n   curiosidad:clampMey(curiosidad,0,1),\n   aburrimiento:clampMey(aburrimiento,0,1),\n   afecto:clampMey(afecto,0,1),\n   sueno\n  };\n },\n utilidad(nombre,imp={},s={}){\n  const energia=clampMey(imp.energia??0.8,0,1);\n  const curiosidad=clampMey(imp.curiosidad??0.4,0,1);\n  const aburrimiento=clampMey(imp.aburrimiento??0.2,0,1);\n  const afecto=clampMey(imp.afecto??0.3,0,1);\n  const sueno=clampMey(imp.sueno??0,0,1);\n\n  const paseo=!!s.paseo;\n  const juegos=!!s.juegos;\n  const punteroVisto=!!s.punteroVisto;\n  const distancia=Number(s.distancia)||0;\n  const novedad=!!s.novedad;\n  const quietaMucho=!!s.quietaMucho;\n  const escribiendo=!!s.escribiendo;\n  const inactividad=Number(s.inactividad)||0;\n\n  if(escribiendo&&['pasear','acercarse','travesura','jugar','bailar','estirarse'].includes(nombre)){\n   return 0;\n  }\n\n  let u=0;\n  switch(nombre){\n   case 'quieta':\n    u=0.35;\n    break;\n   case 'pasear':\n    u=paseo?(0.3+0.4*energia+0.3*curiosidad)*(1-sueno):0;\n    break;\n   case 'acercarse':\n    u=(paseo&&punteroVisto&&distancia>4)?(0.2+0.8*afecto+0.3*curiosidad):0;\n    break;\n   case 'curiosear':\n    u=novedad?(0.3+0.6*curiosidad):0;\n    break;\n   case 'travesura':\n    u=0.2+0.6*aburrimiento;\n    break;\n   case 'jugar':\n    u=juegos?(0.5+0.8*aburrimiento):0;\n    break;\n   case 'bostezar':\n    u=sueno>0.35?(0.9*sueno):0;\n    break;\n   case 'dormir':\n    u=(sueno>0.6&&inactividad>30)?((sueno-0.6)*3):0;\n    break;\n   case 'estirarse':\n    u=quietaMucho?(0.15+0.5*aburrimiento):0;\n    break;\n   case 'pensar':\n    u=0.15+0.3*curiosidad;\n    break;\n   case 'bailar':\n    u=(afecto>0.5&&energia>0.6)?(0.1+0.5*afecto):0;\n    break;\n   default:\n    u=0;\n  }\n  return u*(perfilPersonalidadMey(s.personalidad).pesos[nombre]??1);\n },\n elegir(nombres=[],imp={},s={},ultimaVez={},ahora=0,azar){\n  const candidatos=[];\n  for(const n of nombres){\n   const u=mey.mente.utilidad(n,imp,s);\n   const cd=ENFRIAMIENTO_MENTE[n]??0;\n   const tUltima=typeof ultimaVez?.[n]==='number'?ultimaVez[n]:-Infinity;\n   const transcurrido=ahora-tUltima;\n   const fraccion=cd>0?Math.max(0,1-(transcurrido/cd)):0;\n   const puntaje=u*(1-fraccion);\n   if(puntaje>0.05){\n    candidatos.push({nombre:n,puntaje,peso:puntaje*puntaje});\n   }\n  }\n  if(!candidatos.length)return 'quieta';\n  const r=Number(azar());\n  if(r<=0)return candidatos[0].nombre;\n  const suma=candidatos.reduce((acc,c)=>acc+c.peso,0);\n  if(suma<=0)return candidatos[0].nombre;\n  let objetivo=r*suma;\n  for(const c of candidatos){\n   objetivo-=c.peso;\n   if(objetivo<=0)return c.nombre;\n  }\n  return candidatos[candidatos.length-1].nombre;\n }\n};\n\nmey.memoriaConducta=function(ventana,clave='erlen-mey-conducta'){\n const POR_DEFECTO={visitas:0,ultima:0,afecto:0.3};\n let respaldo=null;\n return {\n  leer(){\n   try{\n    const v=ventana?.localStorage?.getItem(clave);\n    if(v){\n     const parseado=JSON.parse(v);\n     if(parseado&&typeof parseado==='object')return parseado;\n    }\n   }catch{}\n   return respaldo||{...POR_DEFECTO};\n  },\n  guardar(dato){\n   respaldo=dato;\n   try{\n    ventana?.localStorage?.setItem(clave,JSON.stringify(dato));\n   }catch{}\n  }\n };\n};\n\n/* mey.montar(host, {lugar, app, pose, atuendo, energia, celda, vivo, ventana, reloj, aleatorio,\n   fecha, memoria, memoriaConducta, personalidad})\n   pinta a Mey dentro de host (lienzo fijo de 16×18) y la anima según su energía:\n   - completa: latido de conducta, percepción de la página, paseos, juegos y reacciones al clic.\n   - calma: animación vital discreta; sin sensores de página, salvo eventos de la app.\n   - quieta: no se mueve.\n   Sin celda fija mide el host (ResizeObserver); por debajo de 3 px por celda baja a calma.\n   Con movimiento reducido, fuera de la vista, pestaña oculta o saveData no se mueve.\n   Los eventos de guardado se ignoran dormida y se limitan a uno por minuto; otros se deduplican en 3 s.\n   En «recreo», opciones.memoria recuerda los juegos vistos; opciones.juego fuerza el primero.\n   opciones.memoriaConducta conserva visitas y afecto; personalidad fija el carácter visual.\n   Devuelve pose(), atuendo(), reaccionar(), personalidad,\n   evento(), ajustar(), cuadro(), impulsos, conducta, memoria, celda, activa, juego y detener(). */\nmey.montar=function(host,opciones={}){\n const ventana=opciones.ventana||host.ownerDocument.defaultView;\n const doc=host.ownerDocument;\n const reloj=opciones.reloj||ventana;\n const azar=opciones.aleatorio||Math.random;\n const fecha=opciones.fecha||(()=>Date.now());\n const ahora=()=>+fecha();\n const memoriaConducta=opciones.memoriaConducta||mey.memoriaConducta(ventana);\n let memConducta=null;\n try{memConducta=memoriaConducta?.leer?.();}catch{}\n memConducta=memConducta&&typeof memConducta==='object'?{visitas:0,ultima:0,afecto:0.3,...memConducta}:{visitas:0,ultima:0,afecto:0.3};\n const visitasGuardadas=Number(memConducta.visitas),ultimaGuardada=Number(memConducta.ultima),afectoGuardado=Number(memConducta.afecto);\n const tFecha=fecha();\n const ultima=Number.isFinite(ultimaGuardada)&&ultimaGuardada>0?ultimaGuardada:0;\n const visitasPrevias=Number.isFinite(visitasGuardadas)?Math.max(0,Math.floor(visitasGuardadas)):0;\n const primeraVisita=visitasPrevias===0;\n const dias=ultima===0?0:Math.max(0,(tFecha-ultima)/86400000);\n const afectoInicial=clampMey((Number.isFinite(afectoGuardado)?afectoGuardado:0.3)-(ultima===0?0:dias*0.05),0.1,1);\n let visitas=visitasPrevias;\n if(ultima===0||tFecha-ultima>30*60*1000)visitas++;\n let memGuardada={visitas,ultima:tFecha,afecto:afectoInicial};\n try{memoriaConducta?.guardar?.({...memGuardada});}catch{}\n let imp=mey.mente.inicial({afecto:afectoInicial},new Date(tFecha).getHours());\n let ultimoAfectoPersistido=afectoInicial;\n let ultimaPersistencia=ahora();\n const apariencia=mey.aparienciaLocal(ventana);\n const colorLocal=mey.colorLocal(ventana);\n const personalidadLocal=mey.personalidadLocal(ventana);\n let personalidad=opciones.personalidad||personalidadLocal.leer();\n const perfil=()=>perfilPersonalidadMey(personalidad);\n perfil();\n const r=mey.resolver({...opciones,atuendo:opciones.atuendo||apariencia.leer()});\n const poseVigilia=r.pose==='dormido'?'hola':r.pose;\n const energiaPedida=opciones.energia||r.energia;\n if(!['completa','calma','quieta'].includes(energiaPedida))throw new Error('mey: energía desconocida: '+energiaPedida);\n const medir=()=>opciones.celda||celdaMey(r.eje==='alto'?host.clientHeight:host.clientWidth,14+ALTO_MEY,r);\n let celda=medir();\n const energia=()=>energiaPedida==='completa'&&celda<3?'calma':energiaPedida;\n const empiezaDurmiendo=r.lugar==='vacio'&&r.pose==='dormido'&&energia()==='completa';\n let durmiendo=empiezaDurmiendo;\n if(durmiendo)imp.sueno=Math.max(imp.sueno,0.7);\n let pose=r.pose,atuendo=r.atuendo;\n vestirMey(Array.from({length:18},vacia),atuendo,{},[]);\n // Paseo: con energía completa y un espacio más ancho que ella, Mey camina por él. x en píxeles\n // (múltiplo de la celda), rumbo 1 a la derecha y -1 a la izquierda (se voltea en espejo).\n let x=0,rumbo=1,punteroX=null;\n const holgura=()=>Math.max(0,Math.floor((host.clientWidth-16*celda)/celda))*celda;\n const conPaseo=()=>opciones.paseo!==false&&energia()==='completa'&&holgura()>=8*celda;\n let e=durmiendo?{...neutro(),sentada:true}:neutro();\n let pintado='',fijos=new Set(),escena=new Set(),activo=false,ultimoPuntero=-Infinity,ocupada=false,visible=true;\n const recreo=opciones.juegos??r.juegos;\n // La memoria de la persona y, si no guarda nada (bloqueada o de prueba), la de esta visita.\n const guardada=opciones.memoria||(recreo?mey.memoriaLocal(ventana):null);\n let deLaVisita=null;\n const memoria={leer(){let d=null;try{d=guardada?.leer?.();}catch{}return d||deLaVisita;},guardar(d){deLaVisita=d;try{guardada?.guardar?.(d);}catch{}}};\n let jugando=null,pendiente=null,jugados=0,ultimaReaccion=null,ultimoJuego=null,ultimoFinJuego=ahora(),finJuegoActual=null;\n let tPunteroPrev=0,distMeyPrev=0,distanciaPuntero=Infinity,velPuntero=0,dentroDesde=null,tienePunteroPrevio=false;\n let ultimaActividad=ahora(),ultimaCercana=-Infinity,ultimoSusto=-Infinity,ultimaTecla=-Infinity;\n let novedad=null,ultimaConductaMovimiento=ahora(),ultimaTravesura=null,conductaActual=durmiendo?'dormir':null,noAntesDe=0,ultimaVezConducta={};\n let saludoPresenciaRealizado=false,cariciaPendiente=false,historialClics=[],afectoAlIniciarRafaga=null,finMolesta=0,ultimoClic=-Infinity,finDormir=null;\n let guardadoEn=-Infinity,ultimoEvento={tipo:null,t:-Infinity};\n let ocultoDesde=null,enCarga=false,bienvenidaProgramada=false;\n // De cabeza (camina por el techo) es un espejo vertical del mismo dibujo.\n const estilo=()=>{const t=[];if(conPaseo())t.push('translateX('+x+'px)'+(rumbo<0?' scaleX(-1)':''));if(e.deCabeza)t.push('scaleY(-1)');return t.length?'display:block;transform:'+t.join(' '):'';};\n const pintar=()=>{\n  if(conPaseo()){if(!host.style.position)host.style.position='relative';host.style.overflow='hidden';}\n  const dibujo=e.cartel&&conPaseo()&&rumbo<0?{...e,cartel:'espejo'}:e;\n  const svg=svgMey(cuadroMey(pose,dibujo,atuendo,false),pose,atuendo,{...opciones,color:opciones.color||colorLocal.leer(),celda,detalle:true,estilo:estilo()},true);if(svg!==pintado){host.innerHTML=svg;pintado=svg;}\n };\n const poner=cambios=>{e={...e,...cambios};pintar();};\n const despues=(ms,fn,fijo=false)=>{\n  const conjunto=fijo?fijos:escena;\n  const id=reloj.setTimeout(()=>{\n   conjunto.delete(id);\n   if(activo)fn();\n  },ms);\n  conjunto.add(id);\n  return id;\n };\n const entre=(a,b)=>a+Math.floor(azar()*(b-a));\n // Un paso es [cuadros, cambios] o [cuadros, función] (cambia pose, lugar o disfraz entre cuadros).\n const secuencia=(pasos,fin)=>{\n  ocupada=true;let t=0;\n  for(const [c,cambios] of pasos){\n   t+=c;\n   despues(enCuadros(t),()=>typeof cambios==='function'?cambios():poner(cambios));\n  }\n  despues(enCuadros(t),()=>{ocupada=false;fin&&fin();});\n };\n const interrumpir=()=>{\n  for(const id of escena)reloj.clearTimeout(id);\n  escena.clear();\n  ocupada=false;\n  durmiendo=false;\n  jugando=null;\n  pendiente=null;\n  enCarga=false;\n  finDormir=null;\n  ultimoFinJuego=ahora();\n  e=neutro();\n  pose=poseVigilia;\n  finJuegoActual=null;\n  conductaActual=null;\n  pintar();\n };\n const brinco=(h=2)=>[\n  [0,{agachar:1}],\n  [2,{agachar:0,estirar:1,salto:Math.ceil(h/2)}],\n  [1,{estirar:0,salto:h}],\n  [3,{estirar:1,salto:Math.ceil(h/2)}],\n  [1,{estirar:0,salto:0,agachar:1}],\n  [2,{agachar:0}]\n ];\n const sentarse=()=>[[0,{agachar:1}],[2,{agachar:0,sentada:true}]];\n const levantarse=()=>[[0,{agachar:1,sentada:false}],[2,{agachar:0}]];\n const girar=nuevoRumbo=>[[0,{agachar:1}],[1,()=>{rumbo=typeof nuevoRumbo==='function'?nuevoRumbo():nuevoRumbo;pintar();}],[1,{agachar:0}]];\n const tropezar=()=>[\n  [0,{inclinar:1,ojos:'grandes',caminando:1}],\n  [1,{caminando:3,estirar:1}],\n  [1,{estirar:0,caminando:0,agachar:1}],\n  [1,{inclinar:0,agachar:0,sentada:true}],\n  [4,{ojos:null,mirada:{dx:-1,dy:0}}],\n  [3,{mirada:{dx:1,dy:0}}],\n  [3,{mirada:{dx:0,dy:0}}]\n ];\n const APLAUSO_ARRIBA={brazoIzq:2,brazoDer:1,saludo:2,estirar:1,agachar:0,ojos:'felices'};\n const APLAUSO_ABAJO={brazoIzq:0,brazoDer:0,saludo:false,estirar:0,agachar:1};\n const TRAVESURAS={\n  guino:[\n   [0,{parpadeo:'guino'}],\n   [1,{parpadeo:false,ojos:'guino'}],\n   [1,{inclinar:-1}],\n   [1,{brazoIzq:1}],\n   [2,{agachar:1}],\n   [1,{agachar:0,estirar:1,salto:1}],\n   [1,{estirar:0,brazoIzq:2}],\n   [2,{salto:0,agachar:1}],\n   [1,{agachar:0,brazoIzq:1}],\n   [2,{brazoIzq:0,inclinar:0}],\n   [1,{ojos:null,parpadeo:'guino'}],\n   [1,{parpadeo:false}]\n  ],\n  chapoteo:[\n   [0,{chapoteo:'izq'}],\n   [1,{chapoteo:null,agachar:1}],\n   [1,{chapoteo:'der',agachar:0}],\n   [1,{chapoteo:null,estirar:1}],\n   [1,{chapoteo:'izq',estirar:0}],\n   [1,{chapoteo:'der',ojos:'felices'}],\n   [1,{chapoteo:null,agachar:1}],\n   [1,{chapoteo:'izq',agachar:0}],\n   [1,{chapoteo:'der',estirar:1}],\n   [1,{chapoteo:null,estirar:0}],\n   [1,{chapoteo:'izq',brazoIzq:1}],\n   [1,{chapoteo:'der',brazoIzq:0,ojos:null}],\n   [1,{chapoteo:null}]\n  ],\n  burbuja:[\n   [0,{mirada:{dx:0,dy:-1}}],\n   [1,{estirar:1}],\n   [1,{estirar:0,burbuja:0}],\n   [2,{burbuja:1}],\n   [2,{burbuja:2}],\n   [2,{burbuja:3,ojos:'grandes'}],\n   [2,{burbuja:4}],\n   [2,{burbuja:5,ojos:null}],\n   [2,{burbuja:null,destello:[9,1]}],\n   [1,{destello:null,parpadeo:'ambos'}],\n   [1,{parpadeo:false,mirada:{dx:0,dy:0}}]\n  ],\n  saludo:[\n   [0,{ojos:'grandes',estirar:1}],\n   [2,{estirar:0,ojos:null,saludo:1}],\n   [1,{saludo:2,ojos:'felices'}],\n   [2,{saludo:1}],\n   [2,{saludo:2}],\n   [2,{saludo:1}],\n   [2,{saludo:2,inclinar:1}],\n   [2,{saludo:1,inclinar:0}],\n   [2,{saludo:2}],\n   [2,{saludo:false,agachar:1}],\n   [2,{agachar:0,ojos:null}]\n  ],\n  celebrar:[\n   ...brinco(2),\n   [0,()=>{pose='exito';poner({fiesta:true,ojos:'felices'});}],\n   [4,{salto:1}],\n   [2,{salto:0}],\n   [2,{salto:1}],\n   [2,{salto:0}],\n   [4,()=>{pose=poseVigilia;poner({fiesta:false,ojos:null});}]\n  ],\n  risa:[\n   [0,{ojos:'felices',agachar:1}],\n   [1,{agachar:0,estirar:1,chapoteo:'izq'}],\n   [1,{estirar:0,agachar:1,chapoteo:'der'}],\n   [1,{agachar:0,estirar:1,chapoteo:null}],\n   [1,{estirar:0,agachar:1,chapoteo:'izq'}],\n   [1,{agachar:0,estirar:1,chapoteo:'der'}],\n   [1,{estirar:0,agachar:1,chapoteo:null}],\n   [1,{agachar:0,estirar:1,chapoteo:'izq'}],\n   [1,{estirar:0,brazoIzq:1,chapoteo:null}],\n   [3,{brazoIzq:0,ojos:null}]\n  ],\n  sorpresa:[\n   [0,{ojos:'grandes',estirar:1,salto:1}],\n   [1,{salto:2}],\n   [1,{salto:1}],\n   [1,{salto:0,estirar:0,agachar:1}],\n   [2,{agachar:0}],\n   [5,{ojos:null}]\n  ],\n  cosquillas:[\n   [0,{ojos:'felices',inclinar:-1}],\n   [1,{inclinar:1,brazoIzq:1}],\n   [1,{inclinar:-1,brazoIzq:0,saludo:1}],\n   [1,{inclinar:1,saludo:false,brazoIzq:1}],\n   [1,{inclinar:-1,brazoIzq:2}],\n   [1,{inclinar:1,brazoIzq:0,saludo:2}],\n   [1,{inclinar:-1,saludo:false}],\n   [1,{inclinar:1,agachar:1}],\n   [1,{inclinar:-1,agachar:0,estirar:1}],\n   [1,{inclinar:1,estirar:0}],\n   [1,{inclinar:0,ojos:null}]\n  ],\n  bostezo:[\n   [0,{parpadeo:'ambos'}],\n   [2,{parpadeo:false,ojos:'cerrados'}],\n   [1,{estirar:1}],\n   [3,{brazoIzq:1}],\n   [3,{brazoIzq:2}],\n   [2,{brazoIzq:1,estirar:0,agachar:1}],\n   [2,{agachar:0,brazoIzq:0}],\n   [2,{ojos:null,parpadeo:'ambos'}],\n   [1,{parpadeo:false}],\n   [2,{parpadeo:'ambos'}],\n   [1,{parpadeo:false}]\n  ],\n  estirarse:[\n   [0,{agachar:1}],\n   [2,{agachar:0,estirar:1,ojos:'cerrados'}],\n   [1,{brazoIzq:1,saludo:1}],\n   [2,{brazoIzq:2,saludo:2}],\n   [4,{estirar:0,brazoIzq:1,saludo:1}],\n   [1,{agachar:1,brazoIzq:0,saludo:false}],\n   [2,{agachar:0,ojos:null}],\n   [2,{parpadeo:'ambos'}],\n   [1,{parpadeo:false}]\n  ],\n  aplauso:[\n   [0,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [2,{brazoIzq:0,brazoDer:1,saludo:false,estirar:0,agachar:0,ojos:null}]\n  ],\n  pensar:[\n   [0,()=>{pose='pensando';pintar();}],\n   [3,{mirada:{dx:0,dy:-1}}],\n   [4,{mirada:{dx:1,dy:-1}}],\n   [4,{mirada:{dx:-1,dy:-1}}],\n   [3,{mirada:{dx:0,dy:-1},inclinar:1}],\n   [3,{inclinar:0,mirada:{dx:0,dy:0}}],\n   [2,{parpadeo:'ambos'}],\n   [1,{parpadeo:false}],\n   [2,()=>{pose=poseVigilia;pintar();}]\n  ],\n  preocupacion:[\n   [0,()=>{pose='aviso';pintar();}],\n   [1,{ojos:'grandes'}],\n   [1,{inclinar:-1}],\n   [1,{inclinar:1}],\n   [1,{inclinar:-1}],\n   [1,{inclinar:1}],\n   [2,{inclinar:0,mirada:{dx:-1,dy:0}}],\n   [2,{mirada:{dx:1,dy:0}}],\n   [2,{mirada:{dx:0,dy:0},ojos:null}],\n   [2,{agachar:1}],\n   [2,{agachar:0}],\n   [2,()=>{pose=poseVigilia;pintar();}]\n  ],\n  asentir:[\n   [0,{agachar:1}],\n   [1,{agachar:0,estirar:1}],\n   [1,{estirar:0,ojos:'felices'}],\n   [1,{agachar:1}],\n   [2,{agachar:0}],\n   [2,{ojos:null}]\n  ],\n  enojo:[\n   [0,()=>{pose='aviso';pintar();}],\n   [0,{ojos:'grandes',inclinar:-1}],\n   [1,{inclinar:1}],\n   [1,{inclinar:-1}],\n   [1,{inclinar:1}],\n   [1,{inclinar:-1}],\n   [2,{inclinar:0,ojos:null}],\n   [4,{agachar:1}],\n   [3,{agachar:0}],\n   [2,()=>{pose=poseVigilia;pintar();}]\n  ]\n };\n const despertar=fin=>{\n  if(!durmiendo){fin&&fin();return;}\n  const alDespertar=fin||finDormir;\n  interrumpir();\n  finDormir=null;\n  durmiendo=false;\n  pose=poseVigilia;\n  e=neutro();\n  pintar();\n  conductaActual='despertar';\n  secuencia(TRAVESURAS.sorpresa,()=>secuencia(TRAVESURAS.estirarse,()=>secuencia(TRAVESURAS.saludo,()=>{\n   conductaActual=null;\n   ultimaConductaMovimiento=ahora();\n   noAntesDe=ahora()+enCuadros(entre(24,72))*(2-imp.energia)*perfil().pausa;\n   alDespertar&&alDespertar();\n  })));\n };\n const alPuntero=ev=>{\n  const b=host.getBoundingClientRect();if(!b.width)return;\n  const tAhora=ahora(),estabaDormida=durmiendo;\n  ultimaActividad=tAhora;\n  const dentro=ev.clientY>=b.top&&ev.clientY<=b.bottom&&ev.clientX>=b.left&&ev.clientX<=b.right;\n  if(dentro){\n   if(dentroDesde===null)dentroDesde=tAhora;\n   punteroX=ev.clientX-b.left;\n  }else dentroDesde=null;\n  ultimoPuntero=tAhora;\n  const cx=b.left+(conPaseo()?x+8*celda:b.width/2),cy=b.top+b.height/2;\n  const distMey=Math.hypot(ev.clientX-cx,ev.clientY-cy);\n  distanciaPuntero=distMey;\n  if(distMey<=12*celda)ultimaCercana=tAhora;\n  if(!tienePunteroPrevio){\n   tienePunteroPrevio=true;tPunteroPrev=tAhora;distMeyPrev=distMey;\n  }else{\n   const dt=tAhora-tPunteroPrev;\n   if(dt>=8){\n    const instVel=((distMeyPrev-distMey)/dt)*1000;\n    velPuntero=velPuntero===0?instVel:0.5*velPuntero+0.5*instVel;\n    tPunteroPrev=tAhora;distMeyPrev=distMey;\n   }\n  }\n  if(distMey<=12*celda&&velPuntero>=1200&&imp.afecto<.6&&!estabaDormida&&!jugando&&tAhora-ultimoSusto>10000){\n   ultimoSusto=tAhora;\n   interrumpir();\n   conductaActual='susto';\n   const dir=ev.clientX>cx?-1:1,destRetiro=x+dir*entre(4,8)*celda;\n   secuencia(TRAVESURAS.sorpresa,()=>{\n    if(conPaseo())caminar(destRetiro,()=>{conductaActual=null;},{cuadros:1});\n    else conductaActual=null;\n   });\n   return;\n  }\n  if(estabaDormida&&distMey<=12*celda)despertar();\n  if(ocupada)return;\n  const dx=ev.clientX<cx-b.width*.6?-1:ev.clientX>cx+b.width*.6?1:0;\n  const dy=ev.clientY<cy-b.height*.6?-1:(ev.clientY>cy+b.height*.6?1:0);\n  const dxv=conPaseo()&&rumbo<0?-dx:dx;\n  if(dxv!==e.mirada.dx||dy!==e.mirada.dy)poner({mirada:{dx:dxv,dy}});\n };\n const celebrar=()=>{\n  if(!activo||ocupada)return;\n  ultimaReaccion='celebrar';\n  secuencia(TRAVESURAS.celebrar);\n };\n /* Camina hasta destino (px) alternando las patas. cuadros por paso, zancada en celdas, brinco (salta\n    a cada paso), libre (puede salir del escenario: se esconde tras el borde), sigilo (sin mover brazos)\n    y pausa() → cuadros que se queda congelada antes del siguiente paso (0 sigue). En el recreo es torpe:\n    a veces se tropieza a medio camino (y a veces hasta se cae sentada). Sin paseo llega en el acto. */\n const caminar=(destino,alLlegar,opts={})=>{\n  if(!conPaseo()){alLlegar&&alLlegar();return;}\n  const {\n   cuadros=2,\n   zancada=1,brinco=false,libre=false,sigilo=false,pausa=null,torpe=recreo,atras=false\n  } = opts;\n  const borde=libre?17*celda:0;\n  const meta=Math.max(-borde,Math.min(holgura()+borde,Math.round(destino/celda)*celda));\n  if(meta===x){alLlegar&&alLlegar();return;}\n  ocupada=true;\n  const nuevoRumbo=meta>x?1:-1;\n  const andar=()=>{\n   if(!activo)return;\n   ocupada=true;\n   const total=Math.ceil(Math.abs(meta-x)/(zancada*celda));\n   let tropiezo=torpe&&total>3&&azar()<.18?1+Math.floor(azar()*(total-2)):-1;\n   const paso=n=>{\n    if(!activo)return;\n    if(n===tropiezo){\n     tropiezo=-1;\n     secuencia(tropezar(),()=>{\n      ocupada=true;\n      if(azar()<.35){\n       secuencia(sentarse(),()=>{\n        ocupada=true;\n        despues(enCuadros(entre(7,12)),()=>secuencia(levantarse(),()=>paso(n)));\n       });\n      }else{\n       secuencia(levantarse(),()=>paso(n));\n      }\n     });\n     return;\n    }\n    const espera=pausa?pausa():0;\n    if(espera){\n     despues(enCuadros(espera),()=>paso(n));\n     return;\n    }\n    const dur=cuadros+(n===0||n>=total-2?1:0);\n    const A=Math.max(1,Math.floor(dur/2));\n    const B=dur-A;\n    poner({\n     caminando:n%2?3:4,\n     agachar:0,\n     brazoIzq:sigilo?0:(n%2?1:0),\n     sentada:false,\n     salto:brinco&&n%2===0?1:0,\n     estirar:brinco&&n%2===0?1:0\n    });\n    despues(enCuadros(A),()=>{\n     x=nuevoRumbo>0?Math.min(meta,x+zancada*celda):Math.max(meta,x-zancada*celda);\n     poner({\n      caminando:n%2?1:2,\n      agachar:brinco?1:0,\n      salto:0,\n      estirar:0\n     });\n     if(x!==meta){\n      despues(enCuadros(B),()=>paso(n+1));\n     }else{\n      despues(enCuadros(B),()=>{\n       poner({caminando:0,agachar:0,brazoIzq:0,salto:0,estirar:0});\n       ocupada=false;\n       alLlegar&&alLlegar();\n      });\n     }\n    });\n   };\n   paso(0);\n  };\n  const frente=atras?-nuevoRumbo:nuevoRumbo;\n  if(frente!==rumbo){\n   secuencia(girar(frente),andar);\n  }else{\n   andar();\n  }\n };\n /* ---------- Recreo: los juegos ----------\n    Cada juego tiene foto (cómo se ve quieta), inicio opcional (dónde y cómo la encuentras;\n    primero = la persona recién llega) y correr(fin). Las direcciones de la mirada y de inclinarse\n    son de Mey: al voltearse en espejo, el navegador las voltea con ella. */\n const uno=lista=>lista[Math.floor(azar()*lista.length)];\n const lado=()=>azar()<.5?-1:1;\n const fuera=s=>s<0?-17*celda:holgura()+17*celda;\n const asomo=s=>s<0?-9*celda:holgura()+9*celda;\n const alAzar=()=>Math.floor(azar()*(holgura()/celda+1))*celda;\n const aDistancia=n=>{const h=holgura(),d=n*celda,ops=[x+d,x-d].filter(v=>v>=0&&v<=h);return ops.length?uno(ops):(x>h/2?0:h);};\n const ponerX=(px,r)=>{x=px;if(r)rumbo=r;pintar();};\n const risa=()=>TRAVESURAS.risa;\n // Saluda; a veces con tanto entusiasmo que se va de lado y se cae sentada.\n const saludo=()=>[...TRAVESURAS.saludo,...(azar()<.2?tropezar():[])];\n const hipido=(t=0)=>[\n  [t,{agachar:1}],\n  [1,{agachar:0,estirar:1,salto:1,ojos:'grandes',burbujas:[[9,3]]}],\n  [1,{salto:0,estirar:0}],\n  [2,{ojos:null,burbujas:[[9,2]]}],\n  [2,{burbujas:[[9,1]]}],\n  [2,{burbujas:[[9,0]]}],\n  [2,{burbujas:null}]\n ];\n const fiesta=()=>[[0,()=>{pose='exito';poner({fiesta:true});}],[14,()=>{pose=poseVigilia;poner({fiesta:false});}]];\n // Sale corriendo por el borde más cercano (o aparece ya escondida al llegar).\n const esconderse=(primero,s,listo)=>{\n  if(!conPaseo())return listo();\n  if(primero){ponerX(fuera(s),-s);return listo();}\n  caminar(fuera(s),()=>secuencia(girar(-rumbo),listo),{cuadros:1,zancada:2,libre:true});\n };\n const cerca=()=>x>holgura()/2?1:-1;\n let lado0=1;\n const JUEGOS={\n  // La encuentras dormida y roncando burbujas; la despiertas acercándote (o se despierta sola).\n  siesta:{\n   foto:()=>({pose:'dormido',e:{sentada:true}}),\n   inicio(primero,listo){pose='dormido';if(primero&&conPaseo())x=alAzar();poner({sentada:true});listo();},\n   correr(fin){\n    const ronquidos=2+Math.floor(azar()*3);\n    const despertar=()=>{pose=poseVigilia;secuencia([[0,{burbuja:null,ojos:'grandes'}],...levantarse(),...brinco(2),[0,{mirada:{dx:-1,dy:0}}],[6,{mirada:{dx:1,dy:0}}],[5,{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}],...saludo()],fin);};\n    const roncar=k=>{\n     if(k>=ronquidos||ahora()-ultimoPuntero<1200)return despertar();\n     secuencia([[0,{burbuja:0}],[4,{burbuja:1}],[4,{burbuja:2}],[4,{burbuja:3}],[4,{burbuja:4}],[4,{burbuja:null}]],()=>despues(enCuadros(entre(4,11)),()=>roncar(k+1)));\n    };\n    roncar(0);\n   }\n  },\n  // Escondidillas: se asoma por un borde, se esconde y reaparece por el otro.\n  escondidillas:{\n   foto:()=>({pose:'hola',e:{mirada:{dx:1,dy:0}}}),\n   inicio(primero,listo){lado0=primero?lado():cerca();esconderse(primero,lado0,listo);},\n   correr(fin){\n    // Sin espacio para esconderse: juega «¿dónde está Mey?… ¡bu!» en su lugar.\n    if(!conPaseo()){\n     const pasos=[];for(let i=0,n=2+Math.floor(azar()*2);i<n;i++)pasos.push([i?entre(4,7):0,{parpadeo:'ambos',mirada:{dx:0,dy:0}}],[entre(8,16),{parpadeo:false,ojos:'grandes'}],...brinco(2),[5,{ojos:null,mirada:{dx:i%2?1:-1,dy:0}}],[4,{mirada:{dx:0,dy:0}}]);\n     return secuencia([...pasos,...saludo(),...risa()],fin);\n    }\n    const s=lado0,o=azar()<.7?-s:s;\n    secuencia([[0,()=>ponerX(asomo(s),-s)],[0,{mirada:{dx:1,dy:0}}],[entre(7,12),{mirada:{dx:0,dy:0},ojos:'grandes'}],[5,()=>{ponerX(fuera(s));poner({ojos:null});}],[entre(8,18),()=>ponerX(asomo(o),-o)],[0,{mirada:{dx:1,dy:-1}}],[entre(7,11),{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}]],\n     ()=>caminar(o<0?entre(4,24)*celda:holgura()-entre(4,24)*celda,()=>secuencia([...saludo(),...risa()],fin),{cuadros:1,zancada:2,libre:true,brinco:true}));\n   }\n  },\n  // Persigue una burbuja que suelta, la burbuja revienta y ella se queda chiquita.\n  burbuja:{\n   foto:()=>({pose:'hola',e:{burbujas:[[11,2],[13,0]],mirada:{dx:1,dy:0}}}),\n   correr(fin){\n    const volar=[[0,{mirada:{dx:0,dy:-1},burbujas:[[9,4]]}],[3,{burbujas:[[10,3]]}],[3,{burbujas:[[12,2]],mirada:{dx:1,dy:-1}}],[3,{burbujas:[[13,1]]}],[3,{burbujas:[[14,1]],mirada:{dx:1,dy:0}}]];\n    const reventar=[[0,{burbujas:[[14,0]]}],[3,{burbujas:null,destello:[14,1],ojos:'grandes',mirada:{dx:0,dy:0}}],[3,{destello:null}],[5,()=>{pose='aviso';poner({ojos:null});}],[11,()=>{pose=poseVigilia;pintar();}],...risa()];\n    secuencia(volar,()=>caminar(aDistancia(entre(8,24)),()=>secuencia(reventar,fin),{cuadros:entre(1,3),brinco:azar()<.5}));\n   }\n  },\n  // Probador: se cambia de disfraz de un brinco en otro y se queda con el que más le gusta.\n  probador:{\n   foto:()=>({pose:'hola',atuendo:uno(['gala','charro','luchador']),e:{parpadeo:'guino'}}),\n   correr(fin){\n    const lista=barajarMey(ATUENDOS_MEY.filter(a=>a!==atuendo&&a!=='ninguno'),azar);\n    const pasos=[];\n    for(const a of lista)pasos.push(...brinco(2),[0,()=>{atuendo=a;pintar();}],[entre(6,11),{mirada:{dx:uno([-1,1]),dy:0}}],[entre(4,7),{mirada:{dx:0,dy:0}}]);\n    const final=uno([...lista,'rebozo']);\n    pasos.push(...brinco(2),[0,()=>{atuendo=final;poner({parpadeo:'guino'});}],[4,{parpadeo:false}],...saludo());\n    secuencia(pasos,fin);\n   }\n  },\n  // Baile: pasos al azar sin repetir el anterior y papel picado al final.\n  baile:{\n   foto:()=>({pose:'exito',e:{fiesta:true}}),\n   correr(fin){\n    const movs=[()=>[[0,{chapoteo:'izq'}],[2,{chapoteo:'der'}],[2,{chapoteo:null}]],()=>brinco(2),()=>girar(()=>-rumbo),()=>[[0,{inclinar:1}],[2,{inclinar:-1}],[2,{inclinar:0}]],()=>saludo(),()=>[...brinco(2),[0,{parpadeo:'guino'}],[2,{parpadeo:false}]]];\n    const pasos=[],n=6+Math.floor(azar()*6);let previo=-1;\n    for(let i=0;i<n;i++){let k=Math.floor(azar()*movs.length);if(k===previo)k=(k+1)%movs.length;previo=k;const m=movs[k]();m[0][0]=i?entre(2,4):0;pasos.push(...m);}\n    secuencia([...pasos,...sentarse(),[0,{parpadeo:'ambos'}],...levantarse(),[0,{parpadeo:false,ojos:'grandes'}],[2,{ojos:null}],...saludo(),...fiesta()],fin);\n   }\n  },\n  // Hipo: brinquitos con burbuja y cara de «perdón».\n  hipo:{\n   foto:()=>({pose:'hola',e:{burbujas:[[9,2]],ojos:'grandes'}}),\n   correr(fin){\n    const pasos=[],n=3+Math.floor(azar()*3);\n    for(let i=0;i<n;i++)pasos.push(...hipido(i?entre(8,19):4),[0,{mirada:{dx:uno([-1,0,1]),dy:0}}]);\n    secuencia([...pasos,[6,{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}],...risa()],fin);\n   }\n  },\n  // Da vueltas cada vez más rápido, se marea, se sienta y sacude la cabeza.\n  mareo:{\n   foto:()=>({pose:'hola',e:{sentada:true,inclinar:uno([-1,1]),mirada:{dx:1,dy:-1}}}),\n   correr(fin){\n    const vueltas=6+Math.floor(azar()*5);\n    const marear=i=>{\n     if(i>=vueltas){\n      const circulo=[{dx:1,dy:0},{dx:1,dy:-1},{dx:0,dy:-1},{dx:-1,dy:-1},{dx:-1,dy:0},{dx:0,dy:0}],pasos=[];\n      for(let k=0;k<12;k++)pasos.push([2,{mirada:circulo[k%6],inclinar:k%4<2?1:-1}]);\n      return secuencia([...pasos,...sentarse(),[0,{inclinar:0,mirada:{dx:0,dy:0}}],[entre(14,24),{mirada:{dx:-1,dy:0}}],[2,{mirada:{dx:1,dy:0}}],[2,{mirada:{dx:-1,dy:0}}],[2,{mirada:{dx:0,dy:0}}],...levantarse(),[4,{parpadeo:'guino'}],[4,{parpadeo:false}]],fin);\n     }\n     const intervalo=Math.max(2,4-Math.floor(2*i/vueltas));\n     secuencia(girar(()=>-rumbo),()=>despues(enCuadros(intervalo-2),()=>marear(i+1)));\n    };\n    marear(0);\n   }\n  },\n  // Llega corriendo, se tropieza, se ríe de sí misma y saluda.\n  carrera:{\n   foto:()=>({pose:'hola',e:{sentada:true,ojos:'grandes'}}),\n   inicio(primero,listo){lado0=primero?lado():cerca();esconderse(primero,lado0,listo);},\n   correr(fin){\n    const tropiezo=[...tropezar(),...risa(),...levantarse(),...saludo()];\n    caminar(lado0<0?entre(6,30)*celda:holgura()-entre(6,30)*celda,()=>secuencia(tropiezo,fin),{cuadros:1,zancada:2,libre:true});\n   }\n  },\n  // Estornudo (a veces falsa alarma primero): ¡achú! de burbujas.\n  estornudo:{\n   foto:()=>({pose:'hola',e:{parpadeo:'ambos',inclinar:-1}}),\n   correr(fin){\n    const nube=()=>Array.from({length:5+Math.floor(azar()*4)},()=>[entre(1,15),entre(0,6)]);\n    const aguantar=[[0,{parpadeo:'ambos',inclinar:-1}],[entre(5,8),{inclinar:0}],[3,{inclinar:-1}]];\n    const falsa=azar()<.5?[[entre(6,10),{inclinar:0,parpadeo:false,ojos:'grandes'}],[entre(7,13),{ojos:null,mirada:{dx:0,dy:-1}}],[entre(6,11),{mirada:{dx:0,dy:0}}],[entre(4,8),{inclinar:-1,parpadeo:'ambos'}]]:[];\n    secuencia([...aguantar,...falsa],()=>despues(enCuadros(entre(4,7)),()=>{\n     const salto=brinco(2);\n     salto[0]=[0,{...salto[0][1],inclinar:1,parpadeo:false,ojos:'grandes',burbujas:nube()}];\n     secuencia(salto,()=>secuencia([[3,{burbujas:nube()}],[3,{burbujas:nube()}],[4,{burbujas:null,inclinar:0,ojos:null}],[4,{mirada:{dx:-1,dy:0}}],[4,{mirada:{dx:1,dy:0}}],[4,{mirada:{dx:0,dy:0}}],...risa()],fin));\n    }));\n   }\n  },\n  // Lee mientras camina, choca con algo invisible, se voltea y sigue leyendo.\n  lectura:{\n   foto:()=>({pose:'leyendo'}),\n   inicio(primero,listo){pose='leyendo';pintar();listo();},\n   correr(fin){\n    const leer=[];for(let i=0,n=2+Math.floor(azar()*3);i<n;i++)leer.push([i?4:0,{mirada:{dx:-1,dy:0}}],[entre(6,10),{mirada:{dx:0,dy:0}}],[entre(5,8),{mirada:{dx:1,dy:0}}]);\n    if(!conPaseo())return secuencia([...leer,[5,{mirada:{dx:0,dy:0},parpadeo:'ambos'}],[7,{inclinar:1}],[entre(8,14),{inclinar:0,parpadeo:false,ojos:'grandes'}],...brinco(2),[5,()=>{pose=poseVigilia;poner({ojos:null});}],...risa()],fin);\n    const choque=[[0,()=>{pose=poseVigilia;poner({ojos:'grandes',inclinar:-1});}],...brinco(2),[6,{inclinar:0,ojos:null,mirada:{dx:-1,dy:0}}],[5,{mirada:{dx:0,dy:0}}],...girar(()=>-rumbo),[0,()=>{pose='leyendo';pintar();}],[entre(6,12),()=>{}]];\n    secuencia([...leer,[4,{mirada:{dx:0,dy:0}}]],()=>caminar(aDistancia(entre(8,20)),()=>secuencia(choque,()=>caminar(aDistancia(entre(5,14)),()=>{pose=poseVigilia;pintar();fin();},{cuadros:3}),{cuadros:3})));\n   }\n  },\n  // Piensa con la mirada arriba, se le prende el foco, corre brincando y celebra.\n  idea:{\n   foto:()=>({pose:'pensando'}),\n   inicio(primero,listo){pose='pensando';pintar();listo();},\n   correr(fin){\n    secuencia([[0,{mirada:{dx:0,dy:-1}}],[entre(11,18),{mirada:{dx:1,dy:-1}}],[entre(8,14),{mirada:{dx:-1,dy:-1}}]],()=>{\n     pose=poseVigilia;\n     const salto=brinco(2);\n     salto[0]=[0,{...salto[0][1],destello:[13,1],ojos:'grandes',mirada:{dx:0,dy:0}}];\n     secuencia(salto,()=>secuencia([[5,{destello:null,ojos:null}]],()=>caminar(aDistancia(entre(6,20)),()=>secuencia([...brinco(2),[0,{parpadeo:'guino'}],[2,{parpadeo:false}],...saludo(),...fiesta()],fin),{cuadros:entre(1,3),brinco:true})));\n    });\n   }\n  },\n  // El gran salto (ironía): se prepara muchísimo, tiembla de concentración… y el salto es de una\n  // celda. Aterriza orgullosa y saluda como si nada.\n  gransalto:{\n   foto:()=>({pose:'hola',e:{sentada:true,parpadeo:'ambos'}}),\n   correr(fin){\n    const temblor=[];for(let i=0,n=6+Math.floor(azar()*6);i<n;i++)temblor.push([i?1:entre(6,11),{inclinar:i%2?1:-1}]);\n    secuencia([...sentarse(),[0,{parpadeo:'ambos'}],...temblor,[2,{inclinar:0,parpadeo:false,ojos:'grandes'}]],()=>despues(enCuadros(6),()=>secuencia([...levantarse(),...brinco(1),[entre(6,11),{mirada:{dx:-1,dy:0}}],[5,{mirada:{dx:1,dy:0}}],[5,{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}],...saludo()],fin)));\n   }\n  },\n  // Resbalón: de tanto jugar le escurre una gota de sudor, la gota llega al piso y ella la pisa.\n  // Después mira a los lados: «¿nadie vio?».\n  resbalon:{\n   foto:()=>({pose:'hola',e:{sentada:true,inclinar:-1,ojos:'grandes'}}),\n   correr(fin){\n    const gota=[[14,8],[14,9],[14,11],[14,13],[14,15],[14,17]];\n    secuencia([...gota.map(([x,y],i)=>[i?entre(2,3):0,{burbujas:[[x,y]]}]),[entre(6,11),{mirada:{dx:1,dy:0}}],[5,{mirada:{dx:0,dy:0},caminando:2}],[2,{caminando:1,burbujas:null,inclinar:-1,ojos:'grandes'}]],()=>secuencia([...brinco(2),[0,{caminando:0}]],()=>secuencia([...sentarse(),[0,{inclinar:0}],[8,{mirada:{dx:-1,dy:0}}],[3,{mirada:{dx:1,dy:0}}],[3,{mirada:{dx:-1,dy:0}}],[3,{mirada:{dx:0,dy:0},ojos:null}],...levantarse(),[4,{parpadeo:'guino'}],[4,{parpadeo:false}],...saludo()],fin)));\n   }\n  },\n  // La burbuja la persigue a ella: huye mirando atrás y la burbuja le revienta en la cara.\n  perseguida:{\n   foto:()=>({pose:'hola',e:{burbujas:[[1,5]],ojos:'grandes',mirada:{dx:-1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,{burbujas:[[9,4]],mirada:{dx:0,dy:-1}}],[4,{burbujas:[[7,3]]}],[4,{burbujas:[[4,3]],mirada:{dx:-1,dy:0}}],[4,{burbujas:[[2,5]],ojos:'grandes'}]],\n     ()=>despues(enCuadros(5),()=>caminar(aDistancia(entre(10,26)),()=>secuencia([[0,{burbujas:[[3,4]],mirada:{dx:0,dy:0}}],[2,{burbujas:[[5,5]]}],[2,{burbujas:null,destello:[6,4],parpadeo:'ambos',ojos:null}],[4,{destello:null}],[5,{parpadeo:false}],...risa()],fin),{cuadros:1})));\n   }\n  },\n  // Se le olvida la gravedad: flota, patalea en el aire, se acuerda… y cae de sentón.\n  gravedad:{\n   foto:()=>({pose:'hola',e:{flotar:2,ojos:'grandes',caminando:1}}),\n   correr(fin){\n    const pasos=[[0,{ojos:'grandes'}]];\n    for(let k=1;k<=4;k++)pasos.push([entre(4,7),{flotar:k,caminando:k%2?1:2}]);\n    for(let i=0,n=3+Math.floor(azar()*4);i<n;i++)pasos.push([2,{caminando:i%2?1:2,mirada:{dx:i%2?1:-1,dy:0}}]);\n    secuencia([...pasos,[entre(6,11),{caminando:0,mirada:{dx:0,dy:0},ojos:null,parpadeo:'guino'}],[4,{parpadeo:false,ojos:'grandes'}],[1,{flotar:2}],[1,{flotar:0,inclinar:1}],...sentarse(),[0,{inclinar:0}],[7,{ojos:null,mirada:{dx:-1,dy:0}}],[4,{mirada:{dx:1,dy:0}}],[4,{mirada:{dx:0,dy:0}}],...levantarse(),...risa()],fin);\n   }\n  },\n  // Se evapora (química pura): pierde el líquido de las perneras fila por fila, se preocupa,\n  // se junta una nube arriba y le llueve adentro hasta quedar llena otra vez.\n  evaporacion:{\n   foto:()=>({pose:'hola',e:{seca:2,mirada:{dx:0,dy:-1},burbujas:[[5,1],[10,0]]}}),\n   correr(fin){\n    const vapor=k=>[entre(6,10),{seca:k,burbujas:[[entre(3,13),entre(0,3)],[entre(3,13),entre(0,3)]]}];\n    const nube=[[6,0],[7,0],[8,0],[9,0],[5,1],[10,1]];\n    secuencia([[0,{mirada:{dx:0,dy:-1}}],vapor(1),vapor(2),vapor(3),[6,{ojos:'grandes',burbujas:null}],[8,{ojos:null,mirada:{dx:-1,dy:0}}],[6,{mirada:{dx:1,dy:0}}],[6,{mirada:{dx:0,dy:-1},burbujas:nube}],[7,{burbujas:[...nube,[7,2],[9,1]]}],[3,{burbujas:[...nube,[7,3],[9,2],[6,1]],seca:2}],[3,{burbujas:[...nube,[9,3],[6,2],[8,1]],seca:1}],[3,{burbujas:[...nube,[6,3],[8,2]],seca:0}],[4,{burbujas:null,mirada:{dx:0,dy:0}}],...risa()],fin);\n   }\n  },\n  // Camina por el techo: de un brinco queda de cabeza, pasea así tan campante y se cae.\n  techo:{\n   foto:()=>({pose:'hola',e:{deCabeza:true}}),\n   correr(fin){\n    const caida=[[4,{mirada:{dx:0,dy:-1}}],[7,{ojos:'grandes'}],[4,{deCabeza:false,inclinar:1}],...sentarse(),[0,{inclinar:0}],[7,{ojos:null,mirada:{dx:-1,dy:-1}}],[2,{mirada:{dx:1,dy:-1}}],[2,{mirada:{dx:0,dy:0}}],...levantarse(),...risa()];\n    secuencia([...brinco(2),...brinco(2),[0,{deCabeza:true,ojos:'grandes'}],[7,{ojos:null}]],\n     ()=>caminar(aDistancia(entre(5,14)),()=>secuencia(caida,fin),{cuadros:2,torpe:false}));\n   }\n  },\n  // Paso lunar: las patas avanzan, pero Mey se desliza mirando al lado contrario.\n  pasolunar:{\n   foto:()=>({pose:'hola',e:{caminando:3,brazoIzq:1,parpadeo:'guino'}}),\n   correr(fin){\n    const terminar=()=>secuencia([[0,{caminando:0,parpadeo:'guino'}],[6,{parpadeo:false}],...saludo()],fin);\n    if(conPaseo())caminar(aDistancia(entre(8,18)),terminar,{cuadros:3,atras:true,torpe:false});\n    else secuencia([[0,{caminando:1,inclinar:1}],[3,{caminando:3,inclinar:0}],[3,{caminando:2,inclinar:-1}],[3,{caminando:4,inclinar:0}],[3,{caminando:0}]],terminar);\n   }\n  },\n  // Protesta por nada, patalea... y termina celebrando su propia protesta.\n  berrinche:{\n   foto:()=>({pose:'hola',e:{brazoIzq:2,brazoDer:2,agachar:1}}),\n   correr(fin){\n    const pasos=[[0,{brazoIzq:2,brazoDer:2}]];\n    for(let i=0,n=entre(3,6);i<n;i++)pasos.push([3,{chapoteo:'izq',agachar:1,inclinar:-1}],[3,{chapoteo:'der',agachar:0,inclinar:1}]);\n    secuencia([...pasos,[3,{chapoteo:null,inclinar:0,brazoIzq:0,brazoDer:1}],...risa(),...fiesta()],fin);\n   }\n  },\n  // Suelta una burbuja, mira a los lados y se hace la que estaba leyendo.\n  inocente:{\n   foto:()=>({pose:'leyendo',e:{mirada:{dx:1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,()=>{pose='hola';pintar();}],...TRAVESURAS.burbuja,[4,{mirada:{dx:-1,dy:0}}],[5,{mirada:{dx:1,dy:0}}],[4,()=>{pose='leyendo';poner({mirada:{dx:0,dy:0}});}],[16,()=>{pose=poseVigilia;poner({parpadeo:'guino'});}],[4,{parpadeo:false}]],fin);\n   }\n  },\n  // Mucho esfuerzo para teletransportarse: sigue exactamente en el mismo sitio.\n  teletransporte:{\n   foto:()=>({pose:'pensando',e:{agachar:1,destello:[12,1]}}),\n   correr(fin){\n    const pasos=[];\n    for(let i=0,n=entre(3,5);i<n;i++)pasos.push([3,{agachar:1,parpadeo:'ambos',inclinar:-1}],[3,{inclinar:1,destello:[12,1]}]);\n    secuencia([...pasos,[2,{inclinar:0,agachar:0,parpadeo:false,destello:null}],...brinco(2),[0,{ojos:'grandes',mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0}}],[8,{ojos:null,mirada:{dx:0,dy:0}}],...risa()],fin);\n   }\n  },\n  // Saluda a su público imaginario; la reverencia se convierte en un sentón.\n  reverencia:{\n   foto:()=>({pose:'hola',e:{inclinar:1,brazoIzq:1}}),\n   correr(fin){\n    secuencia([...saludo(),[3,{inclinar:1,agachar:1}],[4,{inclinar:1,ojos:'grandes'}],...tropezar(),...levantarse(),[0,{inclinar:0,ojos:null}],...risa()],fin);\n   }\n  },\n  // Se niega con la cabeza, se sienta de espaldas... y vuelve a asomarse por curiosidad.\n  rebeldia:{\n   foto:()=>({pose:'hola',e:{sentada:true,mirada:{dx:-1,dy:0},brazoDer:0}}),\n   correr(fin){\n    secuencia([[0,{mirada:{dx:-1,dy:0},brazoDer:0}],[4,{mirada:{dx:1,dy:0}}],[4,{mirada:{dx:-1,dy:0}}],...girar(()=>-rumbo),...sentarse(),[12,{mirada:{dx:1,dy:-1}}],[8,{parpadeo:'guino'}],[3,{parpadeo:false}],...levantarse(),...girar(()=>-rumbo),...saludo()],fin);\n   }\n  },\n  // Huelga de unos segundos: dice NO con su cartel, revisa si la vieron y se despide feliz.\n  huelga:{\n   foto:()=>({pose:'hola',e:{cartel:true,brazoDer:1,mirada:{dx:-1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,{cartel:true,brazoDer:1}],[10,{mirada:{dx:-1,dy:0}}],[10,{mirada:{dx:1,dy:0}}],[8,{mirada:{dx:0,dy:0},agachar:1}],[6,{agachar:0}],[10,{parpadeo:'guino'}],[4,{parpadeo:false,cartel:false}],...saludo()],fin);\n   }\n  },\n  // Exige atención con las manos, espera... y se concede su propia ovación.\n  aplausos:{\n   foto:()=>({pose:'hola',e:{brazoIzq:2,saludo:2,ojos:'grandes'}}),\n   correr(fin){\n    secuencia([[0,{brazoIzq:2,saludo:2,ojos:'grandes'}],[8,{mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0}}],[10,{mirada:{dx:0,dy:0},ojos:null}],[8,{agachar:1}],[4,{agachar:0,brazoIzq:0,saludo:false}],...TRAVESURAS.aplauso,[6,{brazoIzq:0,brazoDer:0,saludo:false,agachar:0,estirar:0}],[5,{inclinar:1}],[5,{inclinar:0,parpadeo:'guino'}],[4,{parpadeo:false}]],fin);\n   }\n  },\n  // Confeti sin culpable: lo avienta, señala fuera del escenario y abre su libro.\n  confeti:{\n   foto:()=>({pose:'leyendo',e:{confeti:2,mirada:{dx:1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,{brazoIzq:2,saludo:2,confeti:1,ojos:'felices'}],[4,{confeti:2}],[4,{confeti:3,brazoIzq:0,saludo:false}],[4,{confeti:4,ojos:null}],[4,{confeti:5}],[4,{confeti:0,mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0},brazoDer:1}],[8,()=>{pose='leyendo';poner({brazoDer:0,mirada:{dx:0,dy:0}});}],[18,{parpadeo:'guino'}],[4,{parpadeo:false}]],fin);\n   }\n  },\n  // Estatuas de marfil: avanza de puntitas y se congela si mueves el puntero (o cuando se le antoja).\n  estatuas:{\n   foto:()=>({pose:'hola',e:{caminando:1,ojos:'grandes'}}),\n   correr(fin){\n    let congelada=0;\n    const pausa=()=>{\n     if(congelada<25&&(ahora()-ultimoPuntero<700||azar()<.08)){congelada++;if(!e.ojos)poner({ojos:'grandes'});return 5;}\n     if(e.ojos)poner({ojos:null});return 0;\n    };\n    // Sin espacio: baila en su lugar y se congela en poses chistosas, con ojos de «¿me viste?».\n    if(!conPaseo()){\n     const quieta={chapoteo:null,saludo:false,inclinar:0,salto:0};\n     const poses=[()=>[[0,{...quieta,chapoteo:'izq'}]],()=>[[0,{...quieta,chapoteo:'der'}]],()=>[...saludo(),[0,quieta]],()=>[[0,{...quieta,inclinar:1}]],()=>[[0,{...quieta,inclinar:-1}]],()=>[...brinco(2),[0,quieta]]];\n     const pasos=[];for(let i=0,n=8+Math.floor(azar()*5);i<n;i++){const gesto=uno(poses)();if(i)gesto[0][0]=entre(3,5);pasos.push(...gesto);if(azar()<.3)pasos.push([0,{ojos:'grandes'}],[entre(8,13),{ojos:null}]);}\n     return secuencia([...pasos,[3,quieta],...risa()],fin);\n    }\n    const tramos=2+Math.floor(azar()*2);\n    const tramo=k=>{\n     if(k>=tramos)return secuencia([[0,{ojos:null,caminando:0,parpadeo:'guino'}],[4,{parpadeo:false}],...risa()],fin);\n     caminar(aDistancia(entre(5,14)),()=>despues(enCuadros(entre(4,8)),()=>tramo(k+1)),{cuadros:3,sigilo:true,pausa});\n    };\n    tramo(0);\n   }\n  }\n };\n const empezar=(nombre,fin)=>{\n  let n=nombre||pendiente||mey.siguienteJuego(memoria,azar,JUEGOS_MEY,personalidad);\n  // Nunca el mismo juego dos veces seguidas, aunque el primero haya venido forzado.\n  if(!nombre&&!pendiente&&n===ultimoJuego&&JUEGOS_MEY.length>1)n=mey.siguienteJuego(memoria,azar,JUEGOS_MEY,personalidad);\n  pendiente=null;jugando=n;ultimoJuego=n;finJuegoActual=fin||null;\n  const primero=!jugados++;\n  pose=poseVigilia;atuendo=opciones.atuendo||apariencia.leer();e=neutro();\n  if(primero&&conPaseo()){x=alAzar();rumbo=lado();}\n  pintar();\n  const listo=()=>despues(enCuadros(primero?entre(6,14):entre(4,8)),()=>JUEGOS[n].correr(terminar));\n  JUEGOS[n].inicio?JUEGOS[n].inicio(primero,listo):listo();\n };\n const terminar=()=>{\n  const fin=finJuegoActual;\n  finJuegoActual=null;\n  jugando=null;\n  ultimoFinJuego=ahora();\n  pose=poseVigilia;\n  atuendo=opciones.atuendo||apariencia.leer();\n  e=neutro();\n  pintar();\n  fin&&fin();\n };\n const foto=n=>{const f=JUEGOS[n].foto();pose=f.pose;if(f.atuendo)atuendo=f.atuendo;e={...neutro(),...f.e};if(conPaseo()){x=alAzar();rumbo=lado();}};\n // Al clic, en el recreo reacciona distinto cada vez (nunca dos veces seguidas lo mismo).\n const REACCIONES={celebrar:null,risa,tropiezo:()=>tropezar(),guino:()=>TRAVESURAS.guino,hipo:()=>hipido(),sorpresa:()=>TRAVESURAS.sorpresa};\n const completarConducta=nombre=>{\n  if(conductaActual!==nombre)return;\n  conductaActual=null;\n  ultimaConductaMovimiento=ahora();\n  noAntesDe=ahora()+enCuadros(entre(24,72))*(2-imp.energia)*perfil().pausa;\n };\n const roncada=()=>{\n  if(!durmiendo||!activo)return;\n  const pasos=[[0,{burbuja:0}],[2,{burbuja:1}],[2,{burbuja:2}],[2,{burbuja:3}],[2,{burbuja:4}],[2,{burbuja:5}],[2,{burbuja:null}]];\n  secuencia(pasos,()=>{if(durmiendo){ocupada=true;despues(enCuadros(entre(4,10)),roncada);}});\n };\n const COMPORTAMIENTOS={\n  quieta:fin=>fin(),\n  pasear:fin=>{\n   if(!conPaseo())return fin();\n   caminar(alAzar(),()=>{\n    if(azar()<.3){\n     secuencia(sentarse(),()=>{ocupada=true;despues(enCuadros(entre(24,48)),()=>secuencia(levantarse(),fin));});\n    }else fin();\n   });\n  },\n  acercarse:fin=>{\n   if(!conPaseo()||punteroX===null)return fin();\n   caminar(punteroX-8*celda,()=>{\n    const dx=punteroX<x+8*celda?-1:punteroX>x+8*celda?1:0;\n    const mirada={dx:rumbo<0?-dx:dx,dy:0};\n    poner({mirada,ojos:imp.afecto>.6?'felices':null});\n    ocupada=true;\n    despues(enCuadros(entre(36,72)),()=>{poner({mirada:{dx:0,dy:0},ojos:null});fin();});\n   });\n  },\n  curiosear:fin=>{\n   if(!novedad)return fin();\n   const m={dx:novedad.dx,dy:novedad.dy};\n   secuencia([[0,{mirada:m,inclinar:m.dx}],[24,{mirada:{dx:0,dy:0},inclinar:0}]],()=>{novedad=null;fin();});\n  },\n  travesura:fin=>{\n   const lista=mey.travesuras.filter(n=>n!=='celebrar'&&n!=='enojo'&&n!==ultimaTravesura);\n   const n=uno(lista);ultimaTravesura=n;\n   secuencia(TRAVESURAS[n],fin);\n  },\n  jugar:fin=>empezar(undefined,fin),\n  bostezar:fin=>secuencia(TRAVESURAS.bostezo,fin),\n  estirarse:fin=>secuencia(TRAVESURAS.estirarse,fin),\n  pensar:fin=>secuencia(TRAVESURAS.pensar,fin),\n  bailar:fin=>JUEGOS.baile.correr(fin),\n  dormir:fin=>{\n   secuencia(TRAVESURAS.bostezo,()=>secuencia(sentarse(),()=>{\n    durmiendo=true;pose='dormido';poner({burbuja:null,sentada:true});finDormir=fin;roncada();\n   }));\n  }\n };\n const correrConducta=nombre=>{\n  const comportamiento=COMPORTAMIENTOS[nombre]||COMPORTAMIENTOS.quieta;\n  conductaActual=nombre;\n  ultimaConductaMovimiento=ahora();\n  comportamiento(()=>completarConducta(nombre));\n };\n const estadoSensorial=()=>{\n  const t=ahora();\n  return {\n   inactividad:Math.max(0,(t-ultimaActividad)/1000),\n   cerca:t-ultimaCercana<2000,\n   estimulo:novedad?1:(t-ultimoPuntero<500?.25:0),\n   caricia:cariciaPendiente,\n   durmiendo,\n   hora:new Date(fecha()).getHours(),\n   paseo:conPaseo(),\n   juegos:recreo,\n   punteroVisto:Number.isFinite(ultimoPuntero)&&t-ultimoPuntero<5000,\n   distancia:distanciaPuntero,\n   novedad,\n   quietaMucho:t-ultimaConductaMovimiento>30000,\n   escribiendo:t-ultimaTecla<4000,\n   personalidad\n  };\n };\n const persistirConducta=(forzar=false)=>{\n  const afecto=clampMey(imp.afecto,0,1);\n  if(!forzar&&Math.abs(afecto-ultimoAfectoPersistido)<=.02)return;\n  memGuardada={visitas,ultima:fecha(),afecto};\n  try{memoriaConducta.guardar({...memGuardada});}catch{}\n  ultimoAfectoPersistido=afecto;\n  ultimaPersistencia=ahora();\n };\n const latido=()=>{\n  if(!activo||energia()!=='completa')return;\n  const s=estadoSensorial();\n  imp=mey.mente.actualizar(imp,s,.5);\n  cariciaPendiente=false;\n  if(!saludoPresenciaRealizado&&dentroDesde!==null&&ahora()-dentroDesde>=enCuadros(18)&&ultimoClic<dentroDesde){\n   saludoPresenciaRealizado=true;\n   imp.afecto=clampMey(imp.afecto+.04,0,1);\n   if(!durmiendo&&!ocupada&&!jugando)ejecutarReaccion('saludo');\n  }\n  if(durmiendo){\n   if(ahora()-ultimaCercana<2000||imp.sueno<.2)despertar();\n  }else if(!ocupada&&!jugando&&ahora()>=noAntesDe){\n   const nombre=recreo&&!s.escribiendo&&ahora()-ultimoFinJuego>enCuadros(96)*perfil().pausa?'jugar':\n    mey.mente.elegir(['quieta','pasear','acercarse','curiosear','travesura','jugar','bostezar','estirarse','pensar','bailar','dormir'],imp,s,ultimaVezConducta,ahora()/1000,azar);\n   ultimaVezConducta[nombre]=ahora()/1000;\n   correrConducta(nombre);\n  }\n  if(ahora()-ultimaPersistencia>=30000&&Math.abs(imp.afecto-ultimoAfectoPersistido)>.02)persistirConducta();\n  despues(enCuadros(6),latido,true);\n };\n const vida=()=>{\n  if(!activo)return;\n  if(!ocupada&&!durmiendo){\n   const fotoDormida=pose==='dormido';\n   if(fotoDormida||azar()<.7){\n    const pasos=[[0,{ojos:'cerrados'}],[imp.sueno>.5?4:1,{ojos:null}]];\n    if(azar()<.3)pasos.push([2,{ojos:'cerrados'}],[1,{ojos:null}]);\n    secuencia(pasos);\n   }else secuencia([[0,{estirar:1}],[2,{estirar:0}]]);\n  }\n  despues(enCuadros(entre(22,50))*perfil().pausa,vida,true);\n };\n const ejecutarReaccion=(nombre,fin)=>{\n  const funcion=REACCIONES[nombre];\n  const pasos=nombre==='celebrar'?TRAVESURAS.celebrar:(typeof funcion==='function'?funcion():TRAVESURAS[nombre]);\n  if(!pasos){fin&&fin();return;}\n  conductaActual='reaccion';\n  secuencia(pasos,()=>{conductaActual=null;noAntesDe=ahora()+enCuadros(24);fin&&fin();});\n };\n const alClic=()=>{\n  const t=ahora();\n  ultimaActividad=t;\n  if(energia()!=='completa'||!activo)return;\n  ultimaCercana=t;\n  const reinicia=ultimoClic===-Infinity||t-ultimoClic>=4000;\n  if(reinicia){historialClics=[];afectoAlIniciarRafaga=imp.afecto;}\n  historialClics=historialClics.filter(x=>t-x<=6000);\n  historialClics.push(t);ultimoClic=t;\n  if(durmiendo){despertar();return;}\n  if(jugando)return;\n  const n=historialClics.length;\n  if(n>1)cariciaPendiente=false;\n  if(n>=8){\n   interrumpir();jugando='mareo';conductaActual='mareo';\n   JUEGOS.mareo.correr(()=>{\n    jugando=null;conductaActual=null;ultimoFinJuego=ahora();pose=poseVigilia;e=neutro();pintar();\n    noAntesDe=ahora()+enCuadros(24);\n   });\n   return;\n  }\n  if(t<finMolesta){interrumpir();ultimaReaccion='sorpresa';ejecutarReaccion('sorpresa');return;}\n  if(n>=4){\n   imp.afecto=clampMey(Math.min(imp.afecto,afectoAlIniciarRafaga??imp.afecto)-.1,0,1);finMolesta=t+8000;\n   interrumpir();ultimaReaccion='enojo';ejecutarReaccion('enojo');return;\n  }\n  if(n>=2&&n<=3&&t-historialClics[0]<=2500){\n   interrumpir();ultimaReaccion='cosquillas';ejecutarReaccion('cosquillas');return;\n  }\n  if(n===1){\n   cariciaPendiente=true;\n   const nombre=recreo?uno(['celebrar','risa','tropiezo','guino','hipo','sorpresa','cosquillas'].filter(x=>x!==ultimaReaccion)):'celebrar';\n   ultimaReaccion=nombre;interrumpir();ejecutarReaccion(nombre);\n  }\n };\n const alTecla=()=>{ultimaActividad=ahora();ultimaTecla=ahora();};\n const alClicPagina=()=>{ultimaActividad=ahora();};\n let ultimaPosicionScroll=Number(ventana.scrollY)||0;\n const alScroll=()=>{\n  ultimaActividad=ahora();\n  const y=Number(ventana.scrollY)||0,dy=y>=ultimaPosicionScroll?1:-1;\n  ultimaPosicionScroll=y;\n  if(ahora()-ultimoPuntero<1000||durmiendo)return;\n  const antes=e.mirada;\n  poner({mirada:{dx:antes.dx,dy}});\n  despues(enCuadros(12),()=>{if(e.mirada.dy===dy)poner({mirada:{dx:antes.dx,dy:antes.dy}});});\n };\n const alFocus=ev=>{\n  ultimaActividad=ahora();\n  const b=host.getBoundingClientRect(),objetivo=ev.target?.getBoundingClientRect?.();\n  if(!objetivo)return;\n  const cx=b.left+(conPaseo()?x+8*celda:b.width/2),cy=b.top+b.height/2;\n  const fx=objetivo.left+objetivo.width/2,fy=objetivo.top+objetivo.height/2;\n  const dxDist=fx-cx,dyDist=fy-cy,cerca=Math.hypot(dxDist,dyDist)<4*celda;\n  const dx=cerca?0:Math.sign(dxDist),dy=cerca?0:Math.sign(dyDist);\n  novedad=dx||dy?{dx,dy}:null;\n  if(durmiendo)return;\n  const anterior=e.mirada;poner({mirada:{dx,dy}});\n  despues(enCuadros(12),()=>{if(e.mirada.dx===dx&&e.mirada.dy===dy)poner({mirada:anterior});});\n };\n const aplicarEvento=tipo=>{\n  if(tipo==='exito')return ejecutarReaccion('celebrar');\n  if(tipo==='guardado')return ejecutarReaccion('asentir');\n  if(tipo==='error'||tipo==='aviso')return ejecutarReaccion('preocupacion');\n  if(tipo==='listo')return ejecutarReaccion('sorpresa',()=>ejecutarReaccion('saludo'));\n  if(tipo==='carga'){\n   enCarga=true;conductaActual='carga';const inicio=ahora();\n   const pensar=()=>{\n    if(!enCarga)return;\n    if(ahora()-inicio>=30000){enCarga=false;conductaActual=null;return;}\n    secuencia(TRAVESURAS.pensar,()=>{if(enCarga){ocupada=true;despues(enCuadros(1),pensar);}else conductaActual=null;});\n   };\n   pensar();\n   despues(30000,()=>{enCarga=false;if(!ocupada)conductaActual=null;});\n  }\n };\n const lanzarEvento=(tipo,desdeControl=false)=>{\n  if(!mey.eventos.includes(tipo)){\n   if(desdeControl)throw new Error('mey: evento desconocido: '+tipo);\n   return;\n  }\n  if(!activo)return;\n  const t=ahora();\n  if(tipo==='guardado'){if(durmiendo||conductaActual==='dormir'||t-guardadoEn<60000)return;guardadoEn=t;}\n  else if(ultimoEvento.tipo===tipo&&t-ultimoEvento.t<3000)return;\n  ultimoEvento={tipo,t};\n  ultimaActividad=t;\n  const dormida=durmiendo;\n  interrumpir();\n  if(dormida){durmiendo=true;pose='dormido';e={...neutro(),sentada:true};pintar();despertar(()=>aplicarEvento(tipo));}\n  else aplicarEvento(tipo);\n };\n const alEventoVentana=ev=>lanzarEvento(ev.detail?.tipo,false);\n const reducido=ventana.matchMedia?ventana.matchMedia('(prefers-reduced-motion: reduce)'):null;\n const puedeMoverse=()=>opciones.vivo!==false&&energia()!=='quieta'&&!(reducido&&reducido.matches)&&!ventana.navigator?.connection?.saveData&&visible&&!doc.hidden;\n const quitarSensores=()=>{\n  ventana.removeEventListener('pointermove',alPuntero);\n  ventana.removeEventListener('click',alClicPagina,true);\n  ventana.removeEventListener('keydown',alTecla);\n  ventana.removeEventListener('scroll',alScroll,true);\n  doc.removeEventListener('focusin',alFocus);\n  ventana.removeEventListener('erlen-mey-evento',alEventoVentana);\n };\n const agregarSensores=()=>{\n  if(energia()==='completa'){\n   ventana.addEventListener('pointermove',alPuntero,{passive:true});\n   ventana.addEventListener('click',alClicPagina,true);\n   ventana.addEventListener('keydown',alTecla);\n   ventana.addEventListener('scroll',alScroll,true);\n   doc.addEventListener('focusin',alFocus);\n  }\n  if(energia()==='completa'||energia()==='calma')ventana.addEventListener('erlen-mey-evento',alEventoVentana);\n };\n const parar=()=>{\n  const estaba=activo;\n  activo=false;ocupada=false;\n  for(const id of escena)reloj.clearTimeout(id);\n  for(const id of fijos)reloj.clearTimeout(id);\n  escena.clear();fijos.clear();quitarSensores();\n  if(!recreo||estaba)e=durmiendo?{...neutro(),sentada:true}:neutro();\n  if(recreo){if(jugando){pendiente=jugando;jugados=0;jugando=null;finJuegoActual=null;pose=poseVigilia;}x=Math.max(0,Math.min(holgura(),x));}\n  if(!durmiendo)conductaActual=null;\n  pintar();\n };\n const arrancar=()=>{\n  if(activo||!puedeMoverse())return;\n  activo=true;\n  agregarSensores();\n  despues(enCuadros(entre(14,32)),vida,true);\n  if(energia()!=='completa')return;\n  despues(enCuadros(6),latido,true);\n  if(durmiendo){conductaActual='dormir';roncada();return;}\n  if(recreo){empezar();return;}\n  if(!bienvenidaProgramada&&(r.lugar==='bienvenida'||r.lugar==='vacio')){\n   bienvenidaProgramada=true;\n   const espera=entre(12,24),hora=new Date(fecha()).getHours();\n   noAntesDe=ahora()+enCuadros(espera+24);\n   despues(enCuadros(espera),()=>{\n    const saludar=()=>{\n     if(primeraVisita){\n      secuencia([[0,{mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0}}],[8,{mirada:{dx:0,dy:0}}],[8,()=>ejecutarReaccion('saludo')]]);\n     }else if(dias>=3){\n      ejecutarReaccion('saludo',()=>ejecutarReaccion('risa'));\n     }\n    };\n    if(hora<6)secuencia(TRAVESURAS.bostezo,saludar);else saludar();\n   });\n  }\n };\n const revisar=()=>puedeMoverse()?arrancar():parar();\n const alCambiarVisibilidad=()=>{\n  if(doc.hidden){\n   if(ocultoDesde===null)ocultoDesde=fecha();\n   parar();\n   return;\n  }\n  const ausente=ocultoDesde===null?0:fecha()-ocultoDesde;\n  ocultoDesde=null;\n  revisar();\n  if(activo&&energia()==='completa'&&ausente>=30000){\n   const regreso=()=>ausente>=600000?ejecutarReaccion('bostezo',()=>ejecutarReaccion('saludo')):ejecutarReaccion('saludo');\n   if(durmiendo)despertar(regreso);else regreso();\n  }\n };\n const ajustar=()=>{const nueva=medir();if(nueva!==celda){const antes=energia();celda=nueva;x=Math.round(x/celda)*celda;if(energia()!==antes){parar();revisar();return;}}x=Math.min(x,holgura());pintar();};\n const alCambiarApariencia=()=>{if(!opciones.atuendo&&jugando!=='probador'){atuendo=apariencia.leer();pintar();}};\n host.addEventListener('click',alClic);\n doc.addEventListener('visibilitychange',alCambiarVisibilidad);\n reducido?.addEventListener?.('change',revisar);\n const alCambiarPersonalidad=ev=>{\n  if(ev?.type==='storage'&&ev.key!==null&&ev.key!==undefined&&ev.key!=='erlen-mey-personalidad')return;\n  if(!opciones.personalidad)personalidad=personalidadLocal.leer();\n  host.dataset.meyPersonalidad=personalidad;\n  // Acaba la escena en curso; aplica la nueva cadencia en la siguiente decisión.\n  noAntesDe=ahora()+enCuadros(24)*perfil().pausa;\n };\n alCambiarPersonalidad();\n ventana.addEventListener('erlen-mey-personalidad',alCambiarPersonalidad);\n ventana.addEventListener('storage',alCambiarPersonalidad);\n const alCambiarColor=()=>pintar();\n ventana.addEventListener('erlen-mey-color',alCambiarColor);\n ventana.addEventListener('storage',alCambiarColor);\n ventana.addEventListener('erlen-mey-apariencia',alCambiarApariencia);\n ventana.addEventListener('storage',alCambiarApariencia);\n let observador=null,medidor=null;\n if(ventana.IntersectionObserver){observador=new ventana.IntersectionObserver(entradas=>{visible=entradas.some(x=>x.isIntersecting);revisar();});observador.observe(host);}\n // Con celda fija también observa: el hueco para pasear cambia con el ancho.\n if(ventana.ResizeObserver){medidor=new ventana.ResizeObserver(()=>ajustar());medidor.observe(r.eje==='alto'?host:(host.parentElement||host));}\n host.dataset.meyViva='';\n if(recreo){\n  if(opciones.juego&&!JUEGOS[opciones.juego])throw new Error('mey: juego desconocido: '+opciones.juego);\n  pendiente=opciones.juego||mey.siguienteJuego(memoria,azar,JUEGOS_MEY,personalidad);\n  if(!puedeMoverse()||energia()!=='completa')foto(pendiente);\n }\n pintar();arrancar();\n return {\n  pose(nombre){filasMey(nombre);pose=nombre;pintar();},\n  atuendo(nombre){vestirMey(Array.from({length:18},vacia),nombre,{},[]);atuendo=nombre;pintar();},\n  jugar(nombre){\n   if(!recreo)throw new Error('mey: jugar requiere lugar recreo');\n   if(!Object.hasOwn(JUEGOS,nombre))throw new Error('mey: juego desconocido: '+nombre);\n   interrumpir();\n   if(activo&&energia()==='completa')empezar(nombre);\n   else{pendiente=nombre;foto(nombre);pintar();}\n  },\n  reaccionar(nombre){if(nombre==='celebrar')return celebrar();if(!TRAVESURAS[nombre])throw new Error('mey: travesura desconocida: '+nombre);if(activo&&!ocupada)secuencia(TRAVESURAS[nombre]);},\n  ajustar,\n  cuadro(){return cuadroMey(pose,e,atuendo,false).map(f=>f.join('')).join('\\n');},\n  get celda(){return celda;},\n  get paseo(){return {activo:conPaseo(),x,rumbo,holgura:holgura(),sentada:!!e.sentada};},\n  caminar(destino,alLlegar,opts){if(activo&&!ocupada&&conPaseo())caminar(destino,alLlegar,opts);},\n  get energia(){return energia();},\n  get activa(){return activo;},\n  get personalidad(){return personalidad;},\n  get juego(){return jugando||pendiente;},\n  get reaccion(){return ultimaReaccion;},\n  get impulsos(){return {...imp};},\n  get conducta(){return conductaActual||'quieta';},\n  evento(tipo){return lanzarEvento(tipo,true);},\n  get memoria(){return {...memGuardada};},\n  detener(){persistirConducta(true);parar();host.removeEventListener('click',alClic);doc.removeEventListener('visibilitychange',alCambiarVisibilidad);reducido?.removeEventListener?.('change',revisar);ventana.removeEventListener('erlen-mey-apariencia',alCambiarApariencia);ventana.removeEventListener('storage',alCambiarApariencia);ventana.removeEventListener('erlen-mey-color',alCambiarColor);ventana.removeEventListener('storage',alCambiarColor);ventana.removeEventListener('erlen-mey-personalidad',alCambiarPersonalidad);ventana.removeEventListener('storage',alCambiarPersonalidad);observador?.disconnect();medidor?.disconnect();delete host.dataset.meyViva;delete host.dataset.meyPersonalidad;}\n };\n};\nmey.travesuras=['guino','chapoteo','burbuja','saludo','celebrar','risa','sorpresa','cosquillas','bostezo','estirarse','aplauso','pensar','preocupacion','asentir','enojo'];\nmey.eventos=['exito','guardado','error','aviso','carga','listo'];\nmey.juegos=JUEGOS_MEY;\n\n/* ---------- <erlen-mey> ----------\n   La forma más simple de poner a Mey en una app: <erlen-mey lugar=\"vacio\"></erlen-mey>.\n   Atributos: lugar, app, pose, atuendo, energia, titulo y vivo=\"false\". Mide el espacio que le\n   da su contenedor, se monta al entrar en el documento y se detiene al salir; cambiar un\n   atributo la repinta. el.reaccionar('celebrar') y compañía pasan al motor. mey.definir(window)\n   registra la etiqueta (una vez por ventana); al cargar este módulo en un navegador se registra\n   sola. */\nmey.definir=function(ventana){\n if(!ventana||!ventana.customElements||!ventana.HTMLElement)return false;\n if(ventana.customElements.get('erlen-mey'))return true;\n const ATRIBUTOS=['lugar','app','pose','atuendo','energia','titulo','vivo','paseo','celda','color','juego','personalidad'];\n class ErlenMey extends ventana.HTMLElement{\n  static get observedAttributes(){return ATRIBUTOS;}\n  connectedCallback(){this.montar();}\n  disconnectedCallback(){this._control?.detener();this._control=null;}\n  attributeChangedCallback(){if(this._control)this.montar();}\n  montar(){\n   this._control?.detener();\n   if(!this.style.display)this.style.display='block';\n   const o={ventana};for(const a of ATRIBUTOS){const v=this.getAttribute(a);if(v!==null)o[a]=v;}\n   if(!o.app)o.app=this.ownerDocument.documentElement.dataset.erlenApp;\n   if(o.vivo==='false')o.vivo=false;else delete o.vivo;\n   if(o.paseo==='false')o.paseo=false;else delete o.paseo;\n   if(o.celda){const c=parseInt(o.celda,10);if(c>0)o.celda=c;else delete o.celda;}\n   this.setAttribute('aria-hidden',o.titulo?'false':'true');\n   try{this._control=mey.montar(this,o);}catch(error){this._control=null;this.textContent='';throw error;}\n  }\n  reaccionar(nombre){this._control?.reaccionar(nombre);}\n  jugar(nombre){this._control?.jugar(nombre);}\n  get control(){return this._control;}\n }\n ventana.customElements.define('erlen-mey',ErlenMey);\n return true;\n};\nif(typeof window!=='undefined')mey.definir(window);\n\n/* Física de Mey: paso fijo con acumulador (G. Fiedler, «Fix Your Timestep!»), péndulo Verlet con restricción de distancia (T. Jakobsen; verlet-js, MIT), llegada con frenado (C. Reynolds) y resorte crítico (wobble, MIT). Ideas, sin código copiado. Unidades: px, s, rad; y crece hacia abajo; rotación positiva = horaria (CSS). */\nconst FISICA_MEY=Object.freeze({G:2200,H:1/240,SUBPASOS:12,VMAX:76,A_ARRANQUE:260,A_LLEGADA:220,A_FRENO:420,FRICCION:1400,\n AMORT_PENDULO:2.4,ARRASTRE_AIRE:.15,ARRASTRE_GIRO:.8,REST_PARED:.45,REST_SUELO:.35,REBOTE_MIN:520,V_CAIDA_MAX:2600,\n V_LANZAR:2400,GIRO_MAX:12,SALTO:240,EMPUJON:180,SALTO_EMPUJON:200,V_PUNTERO:900,PAUSA_EMPUJON:1500,ENDEREZAR:14});\nconst penduloMey=(s,px,py,h)=>{\n const k=Math.exp(-FISICA_MEY.AMORT_PENDULO*h);\n let nx=s.cx+(s.cx-s.qx)*k,ny=s.cy+(s.cy-s.qy)*k+FISICA_MEY.G*h*h;\n s.qx=s.cx;s.qy=s.cy;\n let dx=nx-px,dy=ny-py,d=Math.hypot(dx,dy);\n if(d<1e-9){dx=0;dy=s.L;d=s.L;}\n s.cx=px+dx*s.L/d;s.cy=py+dy*s.L/d;\n return s;\n};\nconst anguloMey=(s,px,py)=>Math.atan2(s.cx-px,s.cy-py);\nconst llegadaMey=(dx,dy,o)=>{\n const d=Math.hypot(dx,dy);\n if(d<1e-6){o.x=0;o.y=0;return o;}\n const v=Math.min(FISICA_MEY.VMAX,Math.sqrt(2*FISICA_MEY.A_LLEGADA*d));\n o.x=dx/d*v;o.y=dy/d*v;\n return o;\n};\nconst marchaMey=(v,o,h)=>{\n const vel=Math.hypot(v.x,v.y),obj=Math.hypot(o.x,o.y);\n const lim=vel>FISICA_MEY.VMAX+1?FISICA_MEY.FRICCION:obj>vel&&v.x*o.x+v.y*o.y>=0?FISICA_MEY.A_ARRANQUE:FISICA_MEY.A_FRENO;\n const ex=o.x-v.x,ey=o.y-v.y,en=Math.hypot(ex,ey),max=lim*h;\n if(en<=max){v.x=o.x;v.y=o.y;}\n else {v.x+=ex*max/en;v.y+=ey*max/en;}\n return v;\n};\nconst vueloMey=(c,h,lim)=>{\n c.vy=Math.min(c.vy+FISICA_MEY.G*h,FISICA_MEY.V_CAIDA_MAX);\n const k=Math.exp(-FISICA_MEY.ARRASTRE_AIRE*h);\n c.vx*=k;c.vy*=k;\n const y0=c.y;\n c.x+=c.vx*h;c.y+=c.vy*h;c.rot+=c.giro*h;c.giro*=Math.exp(-FISICA_MEY.ARRASTRE_GIRO*h);\n if(c.x<lim.izq){c.x=lim.izq;c.vx=-c.vx*FISICA_MEY.REST_PARED;c.giro*=-.6;}\n if(c.x>lim.der){c.x=lim.der;c.vx=-c.vx*FISICA_MEY.REST_PARED;c.giro*=-.6;}\n if(c.y<lim.techo){c.y=lim.techo;c.vy=-c.vy*FISICA_MEY.REST_PARED;}\n if(c.vy>0){\n  let piso=lim.suelo;\n  for(const p of lim.plataformas){\n   const tope=p.top-lim.alto;\n   if(y0<=tope&&c.y>=tope&&c.x+lim.ancho/2>=p.left&&c.x+lim.ancho/2<=p.right&&tope<piso)piso=tope;\n  }\n  if(c.y>=piso){\n   c.y=piso;\n   const imp=c.vy;\n   if(imp>FISICA_MEY.REBOTE_MIN){c.vy=-imp*FISICA_MEY.REST_SUELO;c.giro*=.6;return -imp;}\n   c.vy=0;return imp;\n  }\n }\n return 0;\n};\nconst enderezarMey=(c,h)=>{\n const a=-(FISICA_MEY.ENDEREZAR**2)*c.rot-2*FISICA_MEY.ENDEREZAR*c.giro;\n c.giro+=a*h;c.rot+=c.giro*h;\n if(Math.abs(c.rot)<.002&&Math.abs(c.giro)<.05)c.rot=c.giro=0;\n return c;\n};\nmey.fisica={c:FISICA_MEY,pendulo:penduloMey,angulo:anguloMey,llegada:llegadaMey,marcha:marchaMey,vuelo:vueloMey,enderezar:enderezarMey};\n\n/* Una presencia por documento. Posición y velocidad continuas; los gestos de pixel art\n   no cambian su trayectoria. El puntero solicita destinos, nunca recoloca al personaje. */\nconst claveRecorridoMey=Symbol.for('erlen.mey.recorrido');\nmey.recorridoActual=documento=>{const c=documento?.[claveRecorridoMey];if(c&&!c.elemento.isConnected){c.detener();return null;}return c||null;};\nmey.recorrerPagina=function(opciones={}){\n const doc=opciones.documento||(typeof document!=='undefined'?document:null);\n if(!doc?.body||!doc.defaultView?.requestAnimationFrame)return null;\n const existente=mey.recorridoActual(doc);if(existente){existente.actualizar?.(opciones);return existente;}\n const win=doc.defaultView,mq=win.matchMedia?.('(prefers-reduced-motion:reduce)');\n const personalidadLocal=mey.personalidadLocal(win);\n let personalidad=opciones.personalidad||personalidadLocal.leer();\n perfilPersonalidadMey(personalidad);\n const ingles=(opciones.idioma||doc.documentElement.lang||'es').startsWith('en');\n const textos={actor:ingles?'Mey: play or move me':'Mey: jugar o arrastrar a otro lugar',titulo:ingles?'Mey · you can take me with you':'Mey · puedes llevarme contigo',pausa:ingles?\"Pause Mey's walk\":'Pausar el paseo de Mey',seguir:ingles?\"Resume Mey's walk\":'Reanudar el paseo de Mey',pausaCorta:ingles?'Mey · pause':'Mey · pausa',seguirCorta:ingles?'Mey · resume':'Mey · seguir'};\n const actor=doc.createElement('button');actor.type='button';actor.className='mey-libre';\n const sincronizarAccion=()=>{actor.setAttribute('aria-label',typeof opciones.accion==='function'?(ingles?'Mey: help or move me':'Mey: ayuda o arrastrar a otro lugar'):textos.actor);actor.title=textos.titulo;};\n sincronizarAccion();\n const pausa=doc.createElement('button');pausa.type='button';pausa.className='mey-libre-pausa';\n pausa.setAttribute('aria-label',textos.pausa);pausa.setAttribute('aria-pressed','false');pausa.textContent=textos.pausaCorta;\n doc.body.append(actor,pausa);doc.documentElement.dataset.erlenMeyPresencia='';\n const celda=win.innerWidth<700?3:4,w=16*celda,h=18*celda,O={x:w/2,y:.55*h};\n actor.style.transformOrigin=`${O.x}px ${O.y.toFixed(2)}px`;\n const limitar=(n,a,b)=>Math.min(Math.max(n,a),Math.max(a,b));\n const suelo=()=>Math.max(8,win.innerHeight-h-70),derecha=()=>Math.max(8,win.innerWidth-w-8);\n const selectorAnclas=()=>opciones.anclas||'.hero-strip,.grupo-herramientas>h3,.workspace-note,.erlen-inicio-meta';\n let x=limitar(win.innerWidth-w-32,8,derecha()),y=suelo(),vx=0,velY=0,vy=0,elevacion=0,modo='camina',rot=0,giro=0,acumulado=0;\n let ultimo=0,raf=0,muerta=false,manual=false,arrastre=null,foco=false,rumbo=-1,distancia=0,pend=null,pivote=null,pivoteAntes=null,vPivote=0,plataformas=[],punteroAnt=null,ultimoEmpujon=-Infinity,vxFrame=0,rotAntes=0;\n let prox=0,sonda=-Infinity,obstaculos=[],ruta=[],puntero=null,seguido=0,gestoHasta=0,ultimoSalto=-Infinity,ultimoDibujo=-Infinity,cuadro='',replanear=true,ignorarClic=false,ocultaAntes=false,metaPuntero=null,sobreMey=false;\n const objetivo={x:0,y:0},vel={x:0,y:0},cuerpo={x:0,y:0,vx:0,vy:0,rot:0,giro:0},cuerpoLim={izq:8,der:8,techo:8,suelo:8,ancho:w,alto:h,plataformas},pivotePaso={x:0,y:0};\n const gestos={agacharHasta:0,estirarHasta:0,grandesHasta:0,inclinar:0,inclinarHasta:0},punteroV={x:0,y:0};\n const apariencia=mey.aparienciaLocal(win);\n const colorLocal=mey.colorLocal(win);\n const reducida=()=>!!mq?.matches||!!win.navigator.connection?.saveData;\n const quieta=()=>manual||reducida()||foco||doc.hidden||!!actor.closest('[inert]');\n const posicionar=()=>{\n  const py=modo==='camina'?limitar(y+elevacion,8,suelo()):y;\n  actor.style.transform=`translate3d(${x.toFixed(2)}px,${py.toFixed(2)}px,0)${Math.abs(rot)>1e-4?` rotate(${rot.toFixed(4)}rad)`:''}`;\n  actor.dataset.x=x.toFixed(2);actor.dataset.y=py.toFixed(2);\n };\n const direccion=(v,margen)=>v < -margen?-1:v > margen?1:0;\n const dibujar=t=>{\n  const aire=modo==='vuela',colgada=modo==='colgada',agitada=colgada&&(Math.abs(giro)>4||vPivote>250);\n  const marcha=modo==='camina'&&Math.hypot(vx,velY)>8&&!quieta()&&!arrastre;\n  const estado=quieta()?'quieta':arrastre||colgada?'juega':aire?velY<0?'salta':'cae':elevacion<-.5?(vy<0?'salta':'cae'):marcha?'camina':'observa';\n  actor.dataset.estado=estado;\n  actor.dataset.meyPersonalidad=personalidad;\n  const perfil=perfilPersonalidadMey(personalidad),fase=t%perfil.gesto;\n  const expresiva=!quieta()&&!arrastre&&!aire&&!colgada&&fase<900;\n  const e={...neutro(),caminando:marcha?1+Math.floor(distancia/(celda*2))%4:0,\n   mirada:{dx:puntero?direccion(puntero.x-x-w/2,24):rumbo,dy:puntero?direccion(puntero.y-y-h/2,28):0},\n   parpadeo:!quieta()&&Math.floor(t/140)%31===30,\n   chapoteo:aire||agitada?(Math.floor(t/166)%2?'der':'izq'):null,\n   ojos:t<gestos.grandesHasta||aire&&Math.hypot(vx,velY)>900||colgada&&Math.abs(giro)>6?'grandes':gestoHasta>t?'felices':null,\n   agachar:t<gestos.agacharHasta?1:0,\n   estirar:t>=gestos.agacharHasta&&t<gestos.estirarHasta?1:0,\n   inclinar:!aire&&!colgada&&t<gestos.inclinarHasta?gestos.inclinar:0};\n  const atuendo=apariencia.leer(),color=colorLocal.leer();\n  if(expresiva){\n   if(personalidad==='tranquila')e.parpadeo=fase<250?'ambos':false;\n   else if(personalidad==='traviesa'){e.parpadeo=fase<250?'guino':false;e.brazoIzq=fase<450?1:0;}\n   else{e.brazoIzq=2;e.saludo=2;e.ojos='felices';e.inclinar=fase<450?-1:1;}\n  }\n  const dibujo=JSON.stringify([e,atuendo,color]);\n  if(dibujo===cuadro||(t-ultimoDibujo<90&&!quieta()))return;\n  cuadro=dibujo;ultimoDibujo=t;\n  actor.innerHTML=svgMey(cuadroMey('hola',e,atuendo,false),'hola',atuendo,{celda,color},true);\n };\n const sondear=()=>{\n  const extra=typeof opciones.evitar==='function'?opciones.evitar():opciones.evitar||[];\n  obstaculos=[...doc.querySelectorAll('a,button,summary,erlen-suite-nav,input,select,textarea,[contenteditable=\"true\"],iframe,canvas,[role=\"dialog\"],[role=\"button\"],[role=\"option\"],[role=\"tab\"],[data-mey-evitar]'),...extra]\n   .filter(e=>e?.getBoundingClientRect&&e!==actor&&e!==pausa&&!e.closest('.mey-libre,[inert]'))\n   .map(e=>e.getBoundingClientRect()).filter(r=>r.width&&r.height&&r.bottom>0&&r.top<win.innerHeight);\n  plataformas=[...doc.querySelectorAll(selectorAnclas())].map(e=>e.getBoundingClientRect()).filter(r=>r.width&&r.bottom>0&&r.top<win.innerHeight).map(r=>({left:r.left,right:r.right,top:r.top}));\n };\n const colision=(nx,ny)=>obstaculos.some(r=>nx+w>r.left-6&&nx<r.right+6&&ny+h>r.top-6&&ny<r.bottom+6);\n const pasoLibre=(a,b)=>{\n  const n=Math.max(1,Math.ceil(Math.hypot(b.x-a.x,b.y-a.y)/12));\n  for(let i=1;i<=n;i++)if(colision(a.x+(b.x-a.x)*i/n,a.y+(b.y-a.y)*i/n))return false;\n  return true;\n };\n const proteger=()=>{\n  if(modo==='vuela'){actor.style.visibility='';actor.style.pointerEvents=colision(x,y)?'none':'';return;}\n  // Si un control aparece o se desplaza debajo de ella, cede el clic inmediatamente.\n  // Sigue desde la misma posición hasta salir; jamás se teletransporta a un borde.\n  const oculta=colision(x,y+elevacion);\n  actor.style.visibility=oculta?'hidden':'';\n  actor.style.pointerEvents='';\n  if(oculta&&!ocultaAntes)replanear=true;ocultaAntes=oculta;\n };\n const planear=(meta,t)=>{\n  // Rejilla de pasos y búsqueda de rutas dentro del espacio visible. Incluye ambos\n  // márgenes incluso en móvil; cada tramo completo se comprueba, no solo su extremo.\n  const xs=[8],ys=[8];\n  for(let n=72;n<derecha();n+=64)xs.push(n);if(derecha()>8)xs.push(derecha());\n  for(let n=72;n<suelo();n+=64)ys.push(n);if(suelo()>8)ys.push(suelo());\n  const nodos=[];\n  for(let j=0;j<ys.length;j++)for(let i=0;i<xs.length;i++)if(!colision(xs[i],ys[j]))nodos.push({x:xs[i],y:ys[j],i,j});\n  const actual={x,y},oculta=colision(x,y);\n  const inicio=nodos.toSorted((a,b)=>Math.hypot(a.x-x,a.y-y)-Math.hypot(b.x-x,b.y-y)).find(n=>oculta||pasoLibre(actual,n));\n  if(!inicio){ruta=[];prox=t+900;replanear=false;return;}\n  const porCelda=new Map(nodos.map(n=>[`${n.i},${n.j}`,n])),padres=new Map([[inicio,null]]),cola=[inicio];\n  for(let k=0;k<cola.length;k++){\n   const a=cola[k];\n   for(const [i,j] of [[a.i-1,a.j],[a.i+1,a.j],[a.i,a.j-1],[a.i,a.j+1]]){\n    const b=porCelda.get(`${i},${j}`);\n    if(b&&!padres.has(b)&&pasoLibre(a,b)){padres.set(b,a);cola.push(b);}\n   }\n  }\n  const fin=cola.toSorted((a,b)=>Math.hypot(a.x-meta.x,a.y-meta.y)-Math.hypot(b.x-meta.x,b.y-meta.y))[0];\n  const camino=[];for(let n=fin;n;n=padres.get(n))camino.unshift({x:n.x,y:n.y});\n  // Suprime esquinas innecesarias sin atajar a través de un control.\n  ruta=[];let desde=actual;\n  while(camino.length){let i=camino.length-1;while(i>0&&!pasoLibre(desde,camino[i]))i--;const siguiente=camino[i];ruta.push(siguiente);desde=siguiente;camino.splice(0,i+1);}\n  prox=t+5500;replanear=false;\n };\n const destino=t=>{\n  const siguiendo=puntero&&t-puntero.t<1800&&Math.hypot(puntero.x-x-w/2,puntero.y-y-h/2)<260;\n  if(siguiendo){\n   const lado=puntero.x>x+w/2?-1:1;\n   return {x:limitar(puntero.x-w/2+lado*64,8,derecha()),y:limitar(puntero.y-h/2+70,8,suelo())};\n  }\n  const anclas=[...doc.querySelectorAll(selectorAnclas())].map(e=>e.getBoundingClientRect()).filter(r=>r.width&&r.top>h+60&&r.top<win.innerHeight-80);\n  const fase=Math.floor(t/5500),ancla=anclas[fase%Math.max(1,anclas.length)];\n  return {x:limitar(win.innerWidth*(.12+((fase*.37)%.7)),8,derecha()),y:ancla?limitar(ancla.top-h-12,8,suelo()):suelo()};\n };\n const aterrizar=(imp,t)=>{\n  modo='camina';velY=0;vy=0;elevacion=0;objetivo.x=objetivo.y=0;rot=Math.atan2(Math.sin(rot),Math.cos(rot));actor.style.pointerEvents='';ruta=[];replanear=false;prox=t+600;\n  if(imp>900){gestos.agacharHasta=t+300;gestos.estirarHasta=t+400;}\n  else if(imp>300){gestos.agacharHasta=t+200;gestos.estirarHasta=t+300;}\n  else {gestos.agacharHasta=t+100;gestos.estirarHasta=t+100;}\n  if(imp>1200)gestos.grandesHasta=t+600;\n };\n const salto=t=>{if(t-ultimoSalto<1000||quieta()||modo!=='camina'||elevacion!==0||vy!==0)return;ultimoSalto=t;vy=-FISICA_MEY.SALTO;gestoHasta=t+900;};\n const paso=t=>{\n  raf=0;if(muerta)return;if(!actor.isConnected){control.detener();return;}\n  if(quieta()){\n   ultimo=0;\n   // Un modal con foco en un botón puede cerrar sin focusout: solo vigila el inert.\n   if(!manual&&!reducida()&&!foco&&!doc.hidden)raf=win.requestAnimationFrame(paso);\n   return;\n  }\n  const dt=ultimo?Math.min(.05,(t-ultimo)/1000):0;ultimo=t;\n  if(t-sonda>250){sondear();sonda=t;}\n  acumulado+=dt;\n  let n=Math.min(FISICA_MEY.SUBPASOS,Math.floor(acumulado/FISICA_MEY.H));\n  acumulado-=n*FISICA_MEY.H;if(acumulado>FISICA_MEY.H)acumulado=0;\n  if(arrastre){\n   if(modo==='colgada'){\n    for(let i=0;i<n;i++){\n     if(i===n-1)rotAntes=rot;\n     pivotePaso.x=pivoteAntes.x+(pivote.x-pivoteAntes.x)*(i+1)/n;\n     pivotePaso.y=pivoteAntes.y+(pivote.y-pivoteAntes.y)*(i+1)/n;\n     penduloMey(pend,pivotePaso.x,pivotePaso.y,FISICA_MEY.H);\n     rot=pend.phi0-anguloMey(pend,pivotePaso.x,pivotePaso.y);\n     const c=Math.cos(rot),s=Math.sin(rot);\n     x=pivotePaso.x-O.x-(arrastre.gx*c-arrastre.gy*s);\n     y=pivotePaso.y-O.y-(arrastre.gx*s+arrastre.gy*c);\n    }\n    vPivote=dt?Math.hypot(pivote.x-pivoteAntes.x,pivote.y-pivoteAntes.y)/dt:0;\n    pivoteAntes={x:pivote.x,y:pivote.y};\n   }else vPivote=0;\n   dibujar(t);posicionar();raf=win.requestAnimationFrame(paso);return;\n  }\n  proteger();\n  if(puntero&&t-puntero.t<1800&&t-seguido>240&&Math.hypot(puntero.x-x-w/2,puntero.y-y-h/2)<260){\n   const metaPaseo=destino(t);if(!metaPuntero||Math.hypot(metaPaseo.x-metaPuntero.x,metaPaseo.y-metaPuntero.y)>24){replanear=true;metaPuntero=metaPaseo;}seguido=t;\n  }else metaPuntero=null;\n  if(replanear||t>prox)planear(destino(t),t);\n  while(ruta.length&&Math.hypot(ruta[0].x-x,ruta[0].y-y)<2)ruta.shift();\n  const meta=sobreMey?{x,y}:ruta[0]||{x,y},dx=meta.x-x,dy=meta.y-y,d=Math.hypot(dx,dy);\n  llegadaMey(dx,dy,objetivo);\n  cuerpoLim.der=derecha();cuerpoLim.suelo=suelo();\n  let distanciaPaso=0;\n  for(let i=0;i<n;i++){\n   if(modo==='vuela'){\n    cuerpo.x=x;cuerpo.y=y;cuerpo.vx=vx;cuerpo.vy=velY;cuerpo.rot=rot;cuerpo.giro=giro;\n    const r=vueloMey(cuerpo,FISICA_MEY.H,cuerpoLim);\n    x=cuerpo.x;y=cuerpo.y;vx=cuerpo.vx;velY=cuerpo.vy;rot=cuerpo.rot;giro=cuerpo.giro;\n    if(r<0)gestos.agacharHasta=t+100;\n    else if(r>0)aterrizar(r,t);\n   }\n   if(modo==='camina'){\n    if(elevacion===0&&vy===0){\n     vel.x=vx;vel.y=velY;marchaMey(vel,objetivo,FISICA_MEY.H);vx=vel.x;velY=vel.y;\n    }\n    const nx=limitar(x+vx*FISICA_MEY.H,8,derecha()),ny=limitar(y+velY*FISICA_MEY.H,8,suelo());\n    if(colision(x,y)||pasoLibre({x,y},{x:nx,y:ny})){\n     distanciaPaso+=Math.hypot(nx-x,ny-y);x=nx;y=ny;\n    }else {vx=velY=0;ruta=[];replanear=true;}\n    if(elevacion<0||vy<0){\n     vy+=FISICA_MEY.G*FISICA_MEY.H;elevacion+=vy*FISICA_MEY.H;\n     if(elevacion>=0){elevacion=0;vy=0;gestos.agacharHasta=t+100;}\n    }\n    if(rot||giro){\n     cuerpo.rot=rot;cuerpo.giro=giro;enderezarMey(cuerpo,FISICA_MEY.H);rot=cuerpo.rot;giro=cuerpo.giro;\n    }\n   }\n  }\n  distancia+=distanciaPaso;\n  if(modo==='camina'){\n   if(Math.abs(vx)>8)rumbo=vx<0?-1:1;\n   const ax=dt?(vx-vxFrame)/dt:0;vxFrame=vx;\n   if(elevacion===0&&vy===0&&Math.abs(ax)>150){gestos.inclinar=Math.sign(ax);gestos.inclinarHasta=t+170;}\n   if(!arrastre&&!quieta()&&elevacion===0&&vy===0&&puntero&&t-puntero.t<120&&Math.hypot(punteroV.x,punteroV.y)>=FISICA_MEY.V_PUNTERO&&Math.hypot(puntero.x-x-w/2,puntero.y-y-h/2)<=1.5*w&&\n      (puntero.x<x-8||puntero.x>x+w+8||puntero.y<y-8||puntero.y>y+h+8)&&t-ultimoEmpujon>=FISICA_MEY.PAUSA_EMPUJON){\n    const s=Math.sign(punteroV.x)||1;\n    vx=s*FISICA_MEY.EMPUJON;velY=0;vy=-FISICA_MEY.SALTO_EMPUJON;\n    gestos.grandesHasta=t+500;gestos.inclinar=-s;gestos.inclinarHasta=t+170;\n    ultimoEmpujon=t;ruta=[];replanear=true;\n   }\n  }\n  if(!ruta.length&&d<2)prox=Math.min(prox,t+750);\n  proteger();dibujar(t);posicionar();raf=win.requestAnimationFrame(paso);\n };\n const arrancar=()=>{\n  if(muerta)return;if(!actor.isConnected){control.detener();return;}\n  win.cancelAnimationFrame(raf);raf=0;ultimo=0;acumulado=0;sondear();proteger();\n  if(quieta()){vx=velY=0;cuadro='';dibujar(0);posicionar();}\n  else raf=win.requestAnimationFrame(paso);\n };\n const fisicaLibre=()=>!quieta();\n const colgar=()=>{\n  modo='colgada';elevacion=0;vy=0;\n  let L=Math.hypot(arrastre.gx,arrastre.gy),phi0=Math.atan2(-arrastre.gx,-arrastre.gy);\n  if(L<2*celda){L=2*celda;phi0=0;}\n  const phi=phi0-rot;\n  pend={L,phi0,cx:pivote.x+L*Math.sin(phi),cy:pivote.y+L*Math.cos(phi)};\n  pend.qx=pend.cx-vx*FISICA_MEY.H;pend.qy=pend.cy-velY*FISICA_MEY.H;\n  rotAntes=rot;pivoteAntes={x:pivote.x,y:pivote.y};\n };\n const mover=e=>{\n  if(arrastre&&arrastre.id===e.pointerId){\n   if(Math.hypot(e.clientX-arrastre.inicioX,e.clientY-arrastre.inicioY)>4)arrastre.movida=true;\n   if(!fisicaLibre()||!arrastre.movida){\n    x=limitar(arrastre.x0+e.clientX-arrastre.inicioX,8,derecha());y=limitar(arrastre.y0+e.clientY-arrastre.inicioY,8,suelo());\n    vx=velY=vy=elevacion=0;posicionar();\n   }else {\n    pivote={x:limitar(e.clientX,0,win.innerWidth),y:limitar(e.clientY,0,win.innerHeight)};\n    if(modo!=='colgada')colgar();\n   }\n  }else if(e.pointerType!=='touch'){\n   const ahora=win.performance.now();\n   puntero={x:e.clientX,y:e.clientY,t:ahora};\n   if(punteroAnt){\n    const transcurrido=ahora-punteroAnt.t;\n    if(transcurrido>=8){\n     const escala=1000/transcurrido;\n     punteroV.x=punteroV.x*.5+(e.clientX-punteroAnt.x)*escala*.5;\n     punteroV.y=punteroV.y*.5+(e.clientY-punteroAnt.y)*escala*.5;\n     punteroAnt={x:e.clientX,y:e.clientY,t:ahora};\n    }\n   }else punteroAnt={x:e.clientX,y:e.clientY,t:ahora};\n  }\n };\n const bajar=e=>{\n  if(e.button!==0)return;e.preventDefault();ignorarClic=false;\n  const qx=e.clientX-(x+O.x),qy=e.clientY-(y+O.y),c=Math.cos(rot),s=Math.sin(rot);\n  arrastre={id:e.pointerId,x0:x,y0:y,inicioX:e.clientX,inicioY:e.clientY,movida:false,gx:qx*c+qy*s,gy:-qx*s+qy*c};\n  actor.setPointerCapture?.(e.pointerId);actor.dataset.arrastrando='';\n };\n const subir=()=>{\n  if(!arrastre)return;\n  const a=arrastre;ignorarClic=a.movida;arrastre=null;delete actor.dataset.arrastrando;\n  if(modo==='colgada'){\n   if(quieta()){\n    modo='camina';rot=giro=0;x=limitar(x,8,derecha());y=limitar(y,8,suelo());pend=null;\n   }else {\n    vx=(pend.cx-pend.qx)/FISICA_MEY.H;velY=(pend.cy-pend.qy)/FISICA_MEY.H;\n    const rapidez=Math.hypot(vx,velY);\n    if(rapidez>FISICA_MEY.V_LANZAR){const k=FISICA_MEY.V_LANZAR/rapidez;vx*=k;velY*=k;}\n    giro=limitar((rot-rotAntes)/FISICA_MEY.H,-FISICA_MEY.GIRO_MAX,FISICA_MEY.GIRO_MAX);\n    modo='vuela';pend=null;\n   }\n  }else if(modo==='vuela'){vx=velY=giro=0;}\n  ruta=[];replanear=true;puntero=null;sondear();proteger();\n };\n const jugar=()=>{\n  if(ignorarClic){ignorarClic=false;return;}\n  if(quieta())return;\n  if(typeof opciones.accion==='function')opciones.accion();else salto(win.performance.now());\n };\n const desplazar=()=>{\n  replanear=true;sonda=-Infinity;\n  if(!quieta()&&modo==='camina'&&!arrastre)salto(win.performance.now());\n  // Pausada permanece exactamente donde estaba; solo cede si un control ocupa su lugar.\n  if(quieta()){sondear();proteger();}\n };\n const cambiarPausa=()=>{manual=!manual;pausa.setAttribute('aria-pressed',String(manual));pausa.setAttribute('aria-label',manual?textos.seguir:textos.pausa);pausa.textContent=manual?textos.seguirCorta:textos.pausaCorta;arrancar();};\n const observarFoco=win.MutationObserver?new win.MutationObserver(()=>alFoco()):null;\n const alFoco=()=>{\n  let activo=doc.activeElement;while(activo?.shadowRoot?.activeElement)activo=activo.shadowRoot.activeElement;\n  const nueva=!!activo?.matches('input,textarea,select,[contenteditable=\"true\"]');\n  if(nueva===foco)return;foco=nueva;\n  if(foco)observarFoco?.observe(doc.body,{subtree:true,childList:true});else observarFoco?.disconnect();arrancar();\n };\n const alSalirDelFoco=()=>win.queueMicrotask(alFoco);\n const tecla=e=>{if(e.key==='Escape'&&!manual){subir();cambiarPausa();}};\n const redimensionar=()=>{if(modo==='camina'){x=limitar(x,8,derecha());y=limitar(y,8,suelo());}ruta=[];replanear=true;arrancar();};\n const aparienciaCambiada=()=>{cuadro='';ultimoDibujo=-Infinity;dibujar(win.performance.now());};\n const personalidadCambiada=ev=>{\n  if(ev?.type==='storage'&&ev.key!==null&&ev.key!==undefined&&ev.key!=='erlen-mey-personalidad')return;\n  personalidad=opciones.personalidad||personalidadLocal.leer();\n  aparienciaCambiada();\n };\n const atender=()=>{sobreMey=true;gestoHasta=win.performance.now()+600;};\n const dejar=()=>{sobreMey=false;};\n const eventos=[[actor,'pointerenter',atender],[actor,'pointerleave',dejar],[actor,'dragstart',e=>e.preventDefault()],[win,'pointermove',mover],[win,'resize',redimensionar],[doc,'visibilitychange',arrancar],[doc,'focusin',alFoco],[doc,'focusout',alSalirDelFoco],[doc,'keydown',tecla],[actor,'pointerdown',bajar],[actor,'pointerup',subir],[actor,'pointercancel',subir],[actor,'lostpointercapture',subir],[actor,'click',jugar],[pausa,'click',cambiarPausa],[win,'erlen-mey-color',aparienciaCambiada],[win,'erlen-mey-apariencia',aparienciaCambiada],[win,'storage',aparienciaCambiada],[win,'erlen-mey-personalidad',personalidadCambiada],[win,'storage',personalidadCambiada]];\n for(const [el,n,fn] of eventos)el.addEventListener(n,fn,{passive:n==='pointermove'});\n doc.addEventListener('scroll',desplazar,{capture:true,passive:true});mq?.addEventListener?.('change',arrancar);\n const control={elemento:actor,pausa,\n  actualizar(nuevas={}){if(nuevas.personalidad)perfilPersonalidadMey(nuevas.personalidad);opciones={...opciones,...nuevas};personalidadCambiada();sincronizarAccion();replanear=true;if(nuevas.pausaEn)control.ubicarPausa(nuevas.pausaEn);},\n  ubicarPausa(contenedor){pausa.classList.toggle('mey-libre-pausa--integrada',!!contenedor);(contenedor||doc.body).append(pausa);},\n  estado:()=>({x,y:modo==='camina'?y+elevacion:y,tx:ruta.at(-1)?.x??x,ty:ruta.at(-1)?.y??y,vx,velY,vy,modo,rot,estado:actor.dataset.estado,quieta:quieta(),personalidad}),\n  detener(){muerta=true;win.cancelAnimationFrame(raf);for(const [el,n,fn] of eventos)el.removeEventListener(n,fn);doc.removeEventListener('scroll',desplazar,true);mq?.removeEventListener?.('change',arrancar);observarFoco?.disconnect();actor.remove();pausa.remove();if(doc[claveRecorridoMey]===control){delete doc[claveRecorridoMey];delete doc.documentElement.dataset.erlenMeyPresencia;}}\n };\n actor.control=control;doc[claveRecorridoMey]=control;\n if(opciones.pausaEn)control.ubicarPausa(opciones.pausaEn);\n sondear();proteger();dibujar(0);posicionar();arrancar();return control;\n};\n",
  "src/diseno/motion.css": "/* Mey vive encima de la página, sin reservar huecos ni interceptar controles ajenos. */\n.mey-libre{position:fixed;left:0;top:0;z-index:501;display:block;width:auto;height:auto;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:var(--erlen-radio-pequeno);background:transparent;color:var(--erlen-tinta);box-shadow:none;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;will-change:transform;transition:none;line-height:0}\n.mey-libre:hover{background:transparent}.mey-libre[data-arrastrando]{cursor:grabbing}.mey-libre svg{display:block;pointer-events:none;max-width:none}.mey-libre:focus-visible,.mey-libre-pausa:focus-visible{outline:3px solid var(--erlen-foco);outline-offset:3px}\n.mey-libre-pausa{position:fixed;right:16px;bottom:12px;z-index:501;min-height:44px;padding:8px 14px;border:1px solid var(--erlen-linea);border-radius:var(--erlen-radio-campo);background:var(--erlen-vidrio-fuerte);color:var(--erlen-tinta-suave);font:500 var(--erlen-texto-xs)/1.4 var(--erlen-font-ui);cursor:pointer}\n.mey-libre-pausa--integrada{position:static;flex:0 0 auto;white-space:nowrap;z-index:auto}\n@media print{.mey-libre,.mey-libre-pausa{display:none}}\n\n/* Las ilustraciones de estados vacíos ceden ante la presencia compartida. */\nhtml[data-erlen-mey-presencia] .recientes-vacio .mey{display:none}\n\n/* Arte elegido para Mey: cambia el material, no sus poses, atuendo ni movimiento.\n   Los pigmentos conservan la paleta personal. Los ojos siguen planos y nítidos.\n   El tile de marca y el favicon de 16 × 16 quedan fuera de estos tratamientos. */\n:root[data-erlen-estilo]{--mey-arte-filtro:none;--mey-arte-render:auto;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-contorno:var(--erlen-tinta);--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"glassmorfismo\"]{--mey-arte-filtro:drop-shadow(0 -1px 0 var(--erlen-superficie)) drop-shadow(0 2px 2px var(--erlen-linea-fuerte));--mey-arte-radio:.12px;--mey-arte-trazo:.07px;--mey-arte-contorno:var(--erlen-superficie);--mey-arte-vidrio:.78;--mey-arte-banda:.9}\n:root[data-erlen-estilo=\"neumorfismo\"]{--mey-arte-filtro:drop-shadow(-2px -2px 1px var(--erlen-superficie)) drop-shadow(2px 2px 1px var(--erlen-linea-fuerte));--mey-arte-radio:.08px;--mey-arte-trazo:.035px;--mey-arte-contorno:var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"neobrutalismo\"]{--mey-arte-filtro:drop-shadow(3px 3px 0 var(--erlen-tinta));--mey-arte-render:crispEdges;--mey-arte-trazo:.16px}\n:root[data-erlen-estilo=\"minimalismo\"]{--mey-arte-render:crispEdges;--mey-arte-trazo:.05px;--mey-arte-contorno:var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"art-deco\"]{--mey-arte-filtro:drop-shadow(1px 1px 0 var(--erlen-ambar));--mey-arte-render:crispEdges;--mey-arte-trazo:.10px;--mey-arte-contorno:var(--erlen-ambar);--mey-arte-banda:.94}\n:root[data-erlen-estilo=\"claymorfismo\"]{--mey-arte-filtro:drop-shadow(-1px -1px 1px var(--erlen-superficie)) drop-shadow(0 3px 2px var(--erlen-linea-fuerte));--mey-arte-radio:.24px;--mey-arte-trazo:.025px;--mey-arte-contorno:var(--erlen-superficie)}\n:root[data-erlen-estilo=\"bauhaus\"]{--mey-arte-filtro:drop-shadow(3px 0 0 var(--erlen-cromo-luz)) drop-shadow(0 3px 0 var(--erlen-verde));--mey-arte-render:crispEdges;--mey-arte-trazo:.20px}\n:root[data-erlen-estilo=\"frutiger-aero\"]{--mey-arte-filtro:drop-shadow(0 -2px 0 var(--erlen-superficie)) drop-shadow(0 2px 1px var(--erlen-verde-suave));--mey-arte-radio:.16px;--mey-arte-trazo:.10px;--mey-arte-contorno:var(--erlen-superficie);--mey-arte-vidrio:.9;--mey-arte-banda:1}\n:root[data-erlen-estilo=\"esqueuomorfismo\"]{--mey-arte-filtro:drop-shadow(-1px -1px 0 var(--erlen-superficie)) drop-shadow(1.5px 1.5px .6px var(--erlen-linea-fuerte));--mey-arte-radio:.045px;--mey-arte-trazo:.10px;--mey-arte-contorno:var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"retro-digital\"]{--mey-arte-filtro:drop-shadow(-1px -1px 0 var(--erlen-superficie)) drop-shadow(2px 2px 0 var(--erlen-linea-fuerte));--mey-arte-render:crispEdges;--mey-arte-trazo:.08px}\n:root[data-erlen-estilo=\"y2k\"]{--mey-arte-filtro:drop-shadow(-1px -1px 0 var(--erlen-superficie)) drop-shadow(2px 1px 1px var(--erlen-linea-fuerte));--mey-arte-radio:.15px;--mey-arte-trazo:.085px;--mey-arte-contorno:var(--erlen-superficie);--mey-arte-vidrio:.95;--mey-arte-banda:.75}\n:root[data-erlen-estilo=\"cyberpunk\"]{--mey-arte-filtro:drop-shadow(0 0 3px var(--erlen-verde)) drop-shadow(0 0 6px var(--erlen-verde-suave));--mey-arte-render:crispEdges;--mey-arte-trazo:.13px;--mey-arte-contorno:var(--erlen-verde);--mey-arte-vidrio:.8;--mey-arte-banda:.9}\n:root[data-erlen-estilo=\"blueprint\"]{--mey-arte-render:crispEdges;--mey-arte-trazo:.075px;--mey-arte-contorno:var(--erlen-verde);--mey-arte-vidrio:.18;--mey-arte-banda:.18;--mey-arte-guion:.45 .15;--mey-arte-ojos:var(--erlen-tinta)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]){filter:var(--mey-arte-filtro);shape-rendering:var(--mey-arte-render)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) :is([data-mey-pigmento=\"g\"],[data-mey-pigmento=\"w\"]){rx:var(--mey-arte-radio);ry:var(--mey-arte-radio);stroke:var(--mey-arte-contorno);stroke-width:var(--mey-arte-trazo);stroke-dasharray:var(--mey-arte-guion);stroke-linejoin:round;paint-order:stroke fill}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) [data-mey-pigmento=\"g\"]{fill-opacity:var(--mey-arte-vidrio)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) [data-mey-pigmento=\"g\"]:nth-of-type(3n){fill-opacity:var(--mey-arte-banda)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) [data-mey-pigmento=\"e\"]{fill:var(--mey-arte-ojos);fill-opacity:1;stroke:none;rx:0;ry:0;shape-rendering:crispEdges}\n/* Un acabado quieto no añade relojes, flashes ni desplazamientos. Los respaldos\n   de legibilidad devuelven los pigmentos planos y los píxeles originales. */\n:root:root[data-erlen-estilo][data-erlen-material=\"solido\"]{--mey-arte-filtro:none;--mey-arte-render:crispEdges;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}\n@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active),print{:root:root[data-erlen-estilo]{--mey-arte-filtro:none;--mey-arte-render:crispEdges;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}}\n@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root:root[data-erlen-estilo]{--mey-arte-filtro:none;--mey-arte-render:crispEdges;--mey-arte-radio:0px;--mey-arte-trazo:0px;--mey-arte-vidrio:1;--mey-arte-banda:1;--mey-arte-guion:none;--mey-arte-ojos:var(--erlen-mey-ojos)}}\n\n/* Sprites artísticos: contornos conectados, vidrio/líquido completos y ojos planos.\n   No son filtros sobre la cuadrícula: Original y los respaldos usan los píxeles. */\n:root[data-erlen-estilo]{--mey-vector-visible:inline;--mey-pixel-visible:none;--mey-vector-angular:inline;--mey-vector-suave:none;--mey-vector-trazo:.16;--mey-vector-borde:var(--erlen-mey-ojos);--mey-vector-ojos:var(--erlen-mey-ojos)}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"neumorfismo\"],[data-erlen-estilo=\"minimalismo\"],[data-erlen-estilo=\"claymorfismo\"],[data-erlen-estilo=\"frutiger-aero\"],[data-erlen-estilo=\"esqueuomorfismo\"],[data-erlen-estilo=\"y2k\"]){--mey-vector-angular:none;--mey-vector-suave:inline}\n:root[data-erlen-estilo=\"glassmorfismo\"]{--mey-vector-trazo:.35;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"neumorfismo\"]{--mey-vector-trazo:.2;--mey-vector-borde:var(--erlen-superficie)}\n:root[data-erlen-estilo=\"neobrutalismo\"]{--mey-vector-trazo:.8;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"minimalismo\"]{--mey-vector-trazo:.3;--mey-vector-borde:var(--erlen-tinta);--mey-vector-ojos:var(--erlen-tinta);--mey-arte-render:auto}\n:root[data-erlen-estilo=\"art-deco\"]{--mey-vector-trazo:.5;--mey-vector-borde:var(--erlen-ambar)}\n:root[data-erlen-estilo=\"claymorfismo\"]{--mey-vector-trazo:.15;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"bauhaus\"]{--mey-vector-trazo:.6;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"frutiger-aero\"]{--mey-vector-trazo:.3;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"esqueuomorfismo\"]{--mey-vector-trazo:.4;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"retro-digital\"]{--mey-vector-trazo:.4;--mey-vector-borde:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"y2k\"]{--mey-vector-trazo:.45;--mey-vector-borde:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"cyberpunk\"]{--mey-vector-trazo:.4;--mey-vector-borde:var(--erlen-verde);--mey-vector-ojos:var(--erlen-mey-reflejo)}\n:root[data-erlen-estilo=\"blueprint\"]{--mey-vector-trazo:.3;--mey-vector-borde:var(--erlen-verde);--mey-vector-ojos:var(--erlen-tinta)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) .mey-ilustracion{display:var(--mey-vector-visible)}\n:root[data-erlen-estilo] svg.erlen-mey:not([viewBox=\"0 0 16 16\"]) rect[data-mey-pigmento]{display:var(--mey-pixel-visible)}\n:root[data-erlen-estilo] .mey-vector[data-mey-vector=\"angular\"]{display:var(--mey-vector-angular)}\n:root[data-erlen-estilo] .mey-vector[data-mey-vector=\"suave\"]{display:var(--mey-vector-suave)}\n:root[data-erlen-estilo] .mey-vector-contorno{stroke:var(--mey-vector-borde);stroke-width:var(--mey-vector-trazo);stroke-linejoin:round;fill:none}\n:root[data-erlen-estilo] .mey-vector [data-mey-material]{stroke:var(--mey-vector-borde);stroke-width:calc(var(--mey-vector-trazo)*.55);stroke-linejoin:round;paint-order:stroke fill}\n:root[data-erlen-estilo] .mey-vector [data-mey-material=\"e\"]{fill:var(--mey-vector-ojos);stroke:none;opacity:1}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"neumorfismo\"],[data-erlen-estilo=\"claymorfismo\"],[data-erlen-estilo=\"frutiger-aero\"],[data-erlen-estilo=\"esqueuomorfismo\"],[data-erlen-estilo=\"y2k\"]) .mey-material-luz{stop-color:var(--erlen-mey-reflejo)}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"neumorfismo\"],[data-erlen-estilo=\"claymorfismo\"],[data-erlen-estilo=\"frutiger-aero\"],[data-erlen-estilo=\"esqueuomorfismo\"],[data-erlen-estilo=\"y2k\"]) .mey-material-sombra{stop-color:var(--erlen-mey-ojos)}\n:root[data-erlen-estilo=\"minimalismo\"] .mey-vector [data-mey-material=\"g\"]{fill:var(--erlen-superficie)}\n:root[data-erlen-estilo=\"cyberpunk\"] .mey-vector [data-mey-material=\"g\"]{fill:var(--erlen-espacio-fondo)}\n:root[data-erlen-estilo=\"cyberpunk\"] .mey-vector [data-mey-material=\"w\"]{fill:var(--erlen-espacio-fondo);stroke:var(--erlen-verde);stroke-width:.35}\n:root[data-erlen-estilo=\"blueprint\"] .mey-vector :is([data-mey-material=\"g\"],[data-mey-material=\"w\"]){fill:none;stroke:var(--erlen-verde);stroke-width:.25;stroke-dasharray:none}\n:root[data-erlen-estilo=\"neobrutalismo\"] .mey-vector :is([data-mey-material],.mey-vector-contorno){stroke-linejoin:miter}\n:root[data-erlen-estilo] [data-mey-decoracion]{pointer-events:none;fill:none;stroke:none}\n:root:is([data-erlen-estilo=\"glassmorfismo\"],[data-erlen-estilo=\"frutiger-aero\"]) [data-mey-decoracion=\"cristal\"]{display:inline;fill:var(--erlen-mey-reflejo);opacity:.75}\n:root[data-erlen-estilo=\"frutiger-aero\"] [data-mey-decoracion=\"aero\"]{display:inline;stroke:var(--erlen-mey-reflejo);stroke-width:.35;fill:none}\n:root[data-erlen-estilo=\"art-deco\"] [data-mey-decoracion=\"deco\"]{display:inline;stroke:var(--erlen-ambar);stroke-width:.25}\n:root[data-erlen-estilo=\"bauhaus\"] [data-mey-decoracion=\"bauhaus\"]{display:inline;fill:var(--erlen-ambar);stroke:var(--erlen-mey-ojos);stroke-width:.25}\n:root[data-erlen-estilo=\"bauhaus\"] [data-mey-decoracion=\"bauhaus\"] path:first-of-type{fill:var(--erlen-cromo-luz)}\n:root[data-erlen-estilo=\"y2k\"] [data-mey-decoracion=\"metal\"]{display:inline;fill:var(--erlen-mey-reflejo);opacity:.85}\n:root[data-erlen-estilo=\"cyberpunk\"] [data-mey-decoracion=\"circuito\"]{display:inline;stroke:var(--erlen-verde);stroke-width:.35}\n:root[data-erlen-estilo=\"blueprint\"] [data-mey-decoracion=\"plano\"]{display:inline;stroke:var(--erlen-verde);stroke-width:.15;opacity:.7}\n:root[data-erlen-estilo=\"retro-digital\"] [data-mey-decoracion=\"retro\"]{display:inline;stroke:var(--erlen-mey-ojos);stroke-width:.35;opacity:.4}\n:root:root[data-erlen-estilo][data-erlen-material=\"solido\"]{--mey-vector-visible:none;--mey-pixel-visible:inline}\n@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active),print{:root:root[data-erlen-estilo]{--mey-vector-visible:none;--mey-pixel-visible:inline}}\n@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root:root[data-erlen-estilo]{--mey-vector-visible:none;--mey-pixel-visible:inline}}\n\n/* Erlen Suite · paquete de diseño 1.0.0 · movimiento (docs/GUIA-DISENO.md §6).\n   Se anima lo que orienta: entrada suave del contenido y estados de hover/foco. Nada de texto de lectura ni controles de formulario.\n   Todo se apaga con prefers-reduced-motion. Licencia: licencias/MIT.txt */\n@keyframes erlen-aparecer{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}\n.erlen-enter{animation:erlen-aparecer var(--erlen-dur-entrada,.3s) var(--erlen-ease,cubic-bezier(.2,.7,.2,1)) both}\nbutton,.erlen-boton,.badge,.erlen-badge,.erlen-panel{transition:background-color var(--erlen-dur,.18s) var(--erlen-ease,ease),border-color var(--erlen-dur,.18s) var(--erlen-ease,ease),color var(--erlen-dur,.18s) var(--erlen-ease,ease),box-shadow var(--erlen-dur,.18s) var(--erlen-ease,ease),transform var(--erlen-dur,.18s) var(--erlen-ease,ease)}\nbutton.primary:hover,.erlen-boton.primary:hover{transform:translateY(-1px)}\n@media(prefers-reduced-motion:reduce){*,::before,::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.erlen-enter{opacity:1;transform:none}}\n/* Pasarelas entre páginas del mismo origen; mejora progresiva nativa. */\n@view-transition{navigation:auto}\n::view-transition-old(root),::view-transition-new(root){animation-duration:var(--erlen-dur);animation-timing-function:var(--erlen-ease)}\n@media(prefers-reduced-motion:reduce){@view-transition{navigation:none}}\n",
  "src/diseno/productos.mjs": "/* Familia propia de iconos de Erlen Suite. Fuente única del markup congelado\n   (plan erlen-iconos): cada glifo es el contenido interno de UNA línea, sin\n   <svg> envolvente; glifo(id) lo envuelve con la gramática fija del portal.\n   La marca (favicon/og) vive en web/recursos/favicon.svg, no aquí. */\nexport const glifosProducto={\n slides:'<rect x=\"3\" y=\"4\" width=\"18\" height=\"12\" rx=\"2\"/><path d=\"M6.8 8.4h5.2M6.8 11.4h3.4\"/><rect x=\"14\" y=\"7.8\" width=\"3.8\" height=\"3.8\" rx=\"0.8\"/><path d=\"M12 16v4M8.5 20h7\"/>',\n notes:'<rect x=\"6\" y=\"3\" width=\"13\" height=\"18\" rx=\"2\"/><path d=\"M4.2 7.5h3.6M4.2 12h3.6M4.2 16.5h3.6\"/><path d=\"M11 8.5h5M11 12h5\"/><circle cx=\"15.5\" cy=\"16.2\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/>',\n lens:'<circle cx=\"10\" cy=\"10\" r=\"5.5\"/><path d=\"m14 14 5 5\"/><path d=\"M7.5 8.5h5M7.5 11.5h3.5\"/>',\n pentagrama:'<path d=\"M4 5h16M4 9h16M4 13h16M4 17h16\"/><circle cx=\"9\" cy=\"15\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M10.4 15V7.5\"/>',\n documents:'<path d=\"M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z\"/><path d=\"M14 3v6h6\"/><path d=\"M9.5 13h5\"/><circle cx=\"12\" cy=\"10\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"16\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M8.5 18.8h7\"/>',\n spreadsheets:'<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"M3 9h18M12 9v11\"/><circle cx=\"7\" cy=\"12.6\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"8.6\" cy=\"15.6\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M16.5 11.5v6M15.2 11.5h2.6M15.2 17.5h2.6\"/>',\n figures:'<rect x=\"3\" y=\"4\" width=\"10\" height=\"10\" rx=\"1.5\"/><circle cx=\"8\" cy=\"9\" r=\"2.4\"/><rect x=\"16\" y=\"4\" width=\"5\" height=\"4.5\" rx=\"1\"/><rect x=\"16\" y=\"11.5\" width=\"5\" height=\"4.5\" rx=\"1\"/><path d=\"M3 19.5h6.5M3 18.2v2.6M9.5 18.2v2.6\"/>',\n ftir:'<path d=\"M3 5v14h18\"/><path d=\"M5.5 8h2.2l1.5 7L10.7 8h3.6l1.5 7L17.3 8h1.2\"/>',\n doe:'<rect x=\"6\" y=\"6\" width=\"12\" height=\"12\" rx=\"1.5\"/><path d=\"M12 2.5V6M12 18v3.5M2.5 12H6M18 12h3.5\"/><circle cx=\"12\" cy=\"12\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/>',\n xrd:'<path d=\"M3 5v14h18\"/><path d=\"M5 17h2l1.2-10 1.2 10h2.4l1-6 1 6h2.2l.8-3.5.8 3.5H20\"/>',\n xps:'<circle cx=\"9\" cy=\"14\" r=\"5\"/><circle cx=\"9\" cy=\"14\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><path d=\"m13 10 6.5-6.5\"/><path d=\"M15.5 3.5h4v4\"/>',\n thermal:'<path d=\"M10 4.5a2 2 0 0 1 4 0v9.2a4 4 0 1 1-4 0z\"/><path d=\"M12 9v7.5\"/><circle cx=\"12\" cy=\"17\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M16.5 6h3M16.5 9.5h2\"/>',\n rmn:'<path d=\"M3 5v14h18\"/><path d=\"M5 17h2l.8-5 .8 5H11l1-11 1 11h3l.8-7 .8 7H20\"/><path d=\"M7 21h11\"/>',\n methods:'<rect x=\"5\" y=\"4\" width=\"14\" height=\"17\" rx=\"2\"/><path d=\"M9 4V2.8h6V4\"/><path d=\"m8.3 10 1.2 1.2 2-2M8.3 15l1.2 1.2 2-2\"/><path d=\"M13.8 10.4h2.7M13.8 15.4h2.7\"/>',\n dft:'<path d=\"M3 5v14h18\"/><path d=\"M5.5 16.5Q9 10.5 12.5 16.5\"/><path d=\"M11.5 6.5Q15 12.5 18.5 6.5\"/>',\n fem:'<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"1\"/><path d=\"M3 4 12 12 21 4M3 20 12 12 21 20M12 4v16M3 12h18\"/>',\n learn:'<path d=\"M3 5.5c3-1.2 6-1.2 9 .6 3-1.8 6-1.8 9-.6V19c-3-1.2-6-1.2-9 .6-3-1.8-6-1.8-9-.6z\"/><path d=\"M12 6.1v13.5\"/><circle cx=\"17\" cy=\"10\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/>',\n analyze:'<path d=\"M3 5v14h18\"/><path d=\"M5.5 15.5 18.5 7.5\"/><circle cx=\"8.5\" cy=\"12.4\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"15.5\" cy=\"9.2\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M4.5 18.5h2.6M9.5 18.5h2.6M14.5 18.5h2.6\"/>',\n data:'<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"M3 9h18M9 9v11M15 9v11\"/><circle cx=\"6\" cy=\"13\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18\" cy=\"15.5\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/>',\n projects:'<rect x=\"3\" y=\"5\" width=\"9\" height=\"7\" rx=\"1.5\"/><rect x=\"12\" y=\"12\" width=\"9\" height=\"7\" rx=\"1.5\"/><path d=\"M7.5 12v3.5a2 2 0 0 0 2 2H12\"/><circle cx=\"7.5\" cy=\"8.5\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/>',\n release:'<path d=\"M4 8.5 12 5l8 3.5V16l-8 4-8-4z\"/><path d=\"M4 8.5 12 12.5l8-4M12 12.5V20\"/>',\n burocracy:'<path d=\"M3 8a2 2 0 0 1 2-2h5l2 2h7a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"/><path d=\"M3.5 11h17\"/><path d=\"m8.5 15 2 2 4-4\"/>',\n novelty:'<path d=\"M10 3h7a2 2 0 0 1 2 2v9\"/><circle cx=\"9.5\" cy=\"14.5\" r=\"5.5\"/><path d=\"m13.6 18.6 4.4 4.4\"/><path d=\"m7.2 14.6 1.7 1.7 3.2-3.2\"/>',\n research:'<path d=\"M10 3v6L5.6 17a3.4 3.4 0 0 0 3 5h6.8a3.4 3.4 0 0 0 3-5L14 9V3\"/><path d=\"M8.5 3h7\"/><path d=\"M8.2 15h7.6\"/><ellipse cx=\"12\" cy=\"12\" rx=\"10\" ry=\"3.8\" transform=\"rotate(-16 12 12)\"/>'\n};\nexport function glifo(id){\n const inner=glifosProducto[id];\n if(inner===undefined)throw new Error(`glifo: id de icono desconocido: ${id}`);\n return `<svg class=\"icon\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" data-icono=\"${id}\">${inner}</svg>`;\n}\n\nexport function iconoAplicacion(id){const inner=glifosProducto[id];if(!inner)throw new Error(\"Aplicación desconocida: \"+id);return `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\"><defs><linearGradient id=\"mineral\" x2=\"1\" y2=\"1\"><stop stop-color=\"#fdfdfb\"/><stop offset=\"1\" stop-color=\"#dce7df\"/></linearGradient></defs><rect x=\"3\" y=\"3\" width=\"122\" height=\"122\" rx=\"30\" fill=\"url(#mineral)\" stroke=\"#bdcec3\"/><path d=\"M30 4h68c14 0 26 12 26 26v7\" fill=\"none\" stroke=\"#fff\" stroke-width=\"2\"/><g transform=\"translate(28 28) scale(3)\" fill=\"none\" stroke=\"#225747\" stroke-width=\"1.35\" stroke-linecap=\"round\" stroke-linejoin=\"round\">${inner}</g></svg>`;}\n\n// El SVG es local y conserva su significado en una pestaña o acceso instalado.\nexport function aplicarIconoAplicacion(doc,id){\n if(!doc?.head||!glifosProducto[id])return;\n let enlace=doc.querySelector('link[rel=\"icon\"]');\n if(!enlace){enlace=doc.createElement('link');enlace.rel='icon';doc.head.append(enlace);}\n enlace.type='image/svg+xml';enlace.href='data:image/svg+xml,'+encodeURIComponent(iconoAplicacion(id));\n}\n",
  "src/diseno/suite-cinta.js": "/* erlen-diseno 2.11.8 · generado por @erlen/design/tools/generate; no editar a mano */\nconst erlenCinta=(()=>{\n// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n/* Cinta de herramientas común de Erlen Suite (docs/COHERENCIA-APPS.md §5 del portal).\n   Declarativa: la app describe pestañas, grupos y controles; este módulo pinta la\n   cinta al estilo de las apps de oficina, con el patrón ARIA de pestañas y barra de\n   herramientas, teclado completo, menús, pestañas contextuales y plegado. No importa\n   nada y no toca el DOM fuera de su anfitrión (salvo el menú abierto, en <body>).\n   Estilos en diseno/cinta.css, solo con tokens --erlen-*.\n\n   mountCinta(host, {\n     app: 'notes',                        // clave de preferencias (plegado)\n     etiqueta: 'Herramientas de Notes',   // nombre accesible de la cinta\n     archivo: {etiqueta:'Archivo', accion},  // opcional: botón «Archivo» a la izquierda\n     pestanas: [{id, etiqueta, grupos:[{etiqueta, controles:[control…]}]}],\n     contextuales: () => [pestaña…],      // opcional: pestañas según la selección\n     inicial: 'inicio',\n     alCambiar: id => {}                  // opcional\n   })\n   control = {tipo:'grande'|'pequeno'|'interruptor'|'menu', id?, etiqueta, icono?,\n              atajo?, titulo?, accion?, activo?:()=>bool, deshabilitado?:()=>bool,\n              oculto?:()=>bool, opciones?: [opción…] | ()=>[opción…]}\n   opción  = {etiqueta, icono?, descripcion?, atajo?, accion, marcado?:()=>bool,\n              deshabilitado?:()=>bool} | {separador:true}\n   icono: texto (un glifo), un nodo, o una cadena SVG escrita por la propia app.\n   Devuelve {elemento, actualizar(), seleccionar(id), plegar(bool), comandos(), enfocar(clave,pestana?), destruir()}.\n   comandos() lista los comandos ejecutables del estado actual (fuente única para ayudas como Mey);\n   enfocar(clave,pestana?) lleva el foco al botón del comando y lo resalta unos segundos. */\nconst TIPOS=['grande','pequeno','interruptor','menu'];\nlet contador=0;\n\nfunction mountCinta(host,config){\n if(!host||!host.ownerDocument)throw Error('mountCinta necesita un elemento anfitrión.');\n if(!config||!Array.isArray(config.pestanas)||!config.pestanas.length)throw Error('mountCinta necesita al menos una pestaña.');\n for(const p of config.pestanas)validarPestana(p);\n const doc=host.ownerDocument,win=doc.defaultView,uid='erlen-cinta-'+(++contador);\n const clave='erlen.cinta.'+(config.app||'app')+'.plegada';\n const leer=()=>{try{return win.localStorage.getItem(clave)==='1';}catch{return false;}};\n const guardar=v=>{try{win.localStorage.setItem(clave,v?'1':'0');}catch{}};\n // Paisaje corto (teléfono girado, mismo criterio que marco.css): sin preferencia guardada la cinta arranca plegada para\n // dejar sitio al trabajo. Es un plegado automático: no se guarda y se deshace al tocar una pestaña.\n const mqBaja=win.matchMedia?win.matchMedia('(max-width:920px) and (max-height:500px)'):null;\n const sinPreferencia=()=>{try{return win.localStorage.getItem(clave)===null;}catch{return true;}};\n let plegadoAuto=!!(mqBaja&&mqBaja.matches&&sinPreferencia());\n let activa=config.inicial||config.pestanas[0].id,plegada=plegadoAuto||leer(),menu=null,firmaPestanas='',firmaPanel='';\n const vivos=new Map();   // botón → control, para refrescar estados sin repintar\n\n const raiz=el('div',{class:'erlen-cinta'});\n // La fila de pestañas lleva «Archivo» y «Plegar» fuera del tablist: un tablist solo puede\n // contener pestañas (ARIA aria-required-children).\n const fila=el('div',{class:'erlen-cinta-pestanas'});\n const lista=el('div',{class:'erlen-cinta-lista',role:'tablist','aria-label':config.etiqueta||'Herramientas'});\n const panel=el('div',{class:'erlen-cinta-panel',role:'tabpanel',id:uid+'-panel',tabindex:'-1'});\n raiz.append(fila,panel);\n host.append(raiz);\n\n function el(tag,attrs={},...hijos){\n  const n=doc.createElement(tag);\n  for(const [k,v] of Object.entries(attrs||{}))if(v!==null&&v!==undefined&&v!==false)n.setAttribute(k,v===true?'':String(v));\n  n.append(...hijos.filter(h=>h!==null&&h!==undefined));\n  return n;\n }\n function icono(i){\n  if(i===undefined||i===null||i==='')return null;\n  const s=el('span',{class:'erlen-cinta-icono','aria-hidden':'true'});\n  if(typeof i==='string'&&i.trim().startsWith('<svg'))s.innerHTML=i;\n  else if(typeof i==='string')s.textContent=i;\n  else s.append(i.cloneNode(true));\n  return s;\n }\n const todas=()=>[...config.pestanas,...(typeof config.contextuales==='function'?(config.contextuales()||[]).map(p=>(validarPestana(p),{...p,contextual:true})):[])];\n\n function pintarPestanas(ps){\n  fila.replaceChildren();lista.replaceChildren();\n  if(config.archivo){\n   const b=el('button',{type:'button',class:'erlen-cinta-archivo','data-control':'archivo'},config.archivo.etiqueta||'Archivo');\n   b.addEventListener('click',()=>config.archivo.accion&&config.archivo.accion(b));\n   fila.append(b);\n  }\n  fila.append(lista);\n  for(const p of ps){\n   const b=el('button',{type:'button',role:'tab',class:'erlen-cinta-pestana',id:uid+'-tab-'+p.id,'aria-controls':uid+'-panel','aria-selected':'false',tabindex:'-1','data-pestana':p.id,'data-contextual':p.contextual?'true':null},p.etiqueta);\n   b.addEventListener('click',()=>{if(plegada)fijarPlegado(false,!plegadoAuto);seleccionar(p.id,true);});\n   b.addEventListener('dblclick',()=>fijarPlegado(!plegada));\n   lista.append(b);\n  }\n  fila.append(el('span',{class:'erlen-cinta-hueco'}));\n  const pl=el('button',{type:'button',class:'erlen-cinta-plegar','aria-expanded':String(!plegada),'aria-controls':uid+'-panel',title:'Plegar o desplegar la cinta (Ctrl+F1)'},el('span',{'aria-hidden':'true'},plegada?'⌄':'⌃'),el('span',{class:'erlen-cinta-oculto'},plegada?'Desplegar la cinta':'Plegar la cinta'));\n  pl.addEventListener('click',()=>fijarPlegado(!plegada));\n  fila.append(pl);\n }\n\n function pintarPanel(p){\n  const foco=doc.activeElement&&panel.contains(doc.activeElement)?doc.activeElement.dataset.control:null;\n  vivos.clear();\n  panel.replaceChildren();\n  panel.setAttribute('aria-labelledby',uid+'-tab-'+p.id);\n  const barra=el('div',{class:'erlen-cinta-fila',role:'toolbar','aria-label':p.etiqueta});\n  for(const g of p.grupos){\n   const grupo=el('div',{class:'erlen-cinta-grupo',role:'group','aria-label':g.etiqueta});\n   const controles=el('div',{class:'erlen-cinta-controles'});\n   const grandes=g.controles.filter(c=>c.tipo==='grande'),resto=g.controles.filter(c=>c.tipo!=='grande');\n   for(const c of grandes)controles.append(boton(c));\n   for(let i=0;i<resto.length;i+=3){const col=el('div',{class:'erlen-cinta-columna'});for(const c of resto.slice(i,i+3))col.append(boton(c));controles.append(col);}\n   grupo.append(controles,el('span',{class:'erlen-cinta-rotulo','aria-hidden':'true'},g.etiqueta));\n   barra.append(grupo);\n  }\n  barra.addEventListener('keydown',moverEnBarra);\n  panel.append(barra);\n  refrescar();\n  const botones=enfocables(barra);\n  const destino=(foco&&botones.find(b=>b.dataset.control===foco))||botones[0];\n  for(const b of vivos.keys())b.tabIndex=b===destino?0:-1;\n  if(foco&&destino)destino.focus();\n }\n\n function boton(c){\n  const nombre=c.etiqueta+(c.atajo?' ('+c.atajo+')':'');\n  const b=el('button',{type:'button',class:'erlen-cinta-boton','data-tipo':c.tipo,'data-control':c.id||c.etiqueta,title:c.titulo||nombre,'aria-haspopup':c.tipo==='menu'?'menu':null,'aria-expanded':c.tipo==='menu'?'false':null},icono(c.icono),el('span',{class:'erlen-cinta-texto'},c.etiqueta),c.tipo==='menu'?el('span',{class:'erlen-cinta-flecha','aria-hidden':'true'},'▾'):null);\n  b.addEventListener('click',()=>{\n   if(b.disabled)return;\n   if(c.tipo==='menu'){abrirMenu(c,b);return;}\n   if(c.accion)c.accion(b);\n   actualizar();\n  });\n  vivos.set(b,c);\n  return b;\n }\n\n function refrescar(){\n  for(const [b,c] of vivos){\n   b.hidden=!!(c.oculto&&c.oculto());\n   b.disabled=!!(c.deshabilitado&&c.deshabilitado());\n   if(c.tipo==='interruptor')b.setAttribute('aria-pressed',String(!!(c.activo&&c.activo())));\n  }\n  for(const col of panel.querySelectorAll('.erlen-cinta-columna,.erlen-cinta-grupo'))col.hidden=![...col.querySelectorAll('.erlen-cinta-boton')].some(b=>!b.hidden);\n  // La barra conserva siempre un único punto de tabulación, aunque el control que lo tenía\n  // se haya deshabilitado u ocultado (p. ej. Deshacer cuando se acaba el historial).\n  const bs=[...vivos.keys()],usables=bs.filter(b=>!b.hidden&&!b.disabled);\n  for(const b of bs)if(b.hidden||b.disabled)b.tabIndex=-1;\n  if(usables.length&&!usables.some(b=>b.tabIndex===0))usables[0].tabIndex=0;\n }\n\n const enfocables=barra=>[...barra.querySelectorAll('.erlen-cinta-boton')].filter(b=>!b.hidden&&!b.disabled);\n function moverEnBarra(e){\n  const bs=enfocables(e.currentTarget),i=bs.indexOf(doc.activeElement);\n  if(i<0)return;\n  let j=null;\n  if(e.key==='ArrowRight')j=(i+1)%bs.length;\n  else if(e.key==='ArrowLeft')j=(i-1+bs.length)%bs.length;\n  else if(e.key==='Home')j=0;\n  else if(e.key==='End')j=bs.length-1;\n  else if(e.key==='ArrowDown'&&bs[i].dataset.tipo==='menu'){e.preventDefault();bs[i].click();return;}\n  if(j===null)return;\n  e.preventDefault();\n  bs.forEach((b,k)=>b.tabIndex=k===j?0:-1);\n  bs[j].focus();\n }\n lista.addEventListener('keydown',e=>{\n  const ts=[...lista.querySelectorAll('[role=tab]')],i=ts.indexOf(doc.activeElement);\n  if(i<0)return;\n  let j=null;\n  if(e.key==='ArrowRight')j=(i+1)%ts.length;\n  else if(e.key==='ArrowLeft')j=(i-1+ts.length)%ts.length;\n  else if(e.key==='Home')j=0;\n  else if(e.key==='End')j=ts.length-1;\n  else if(e.key==='ArrowDown'&&!plegada){e.preventDefault();const b=enfocables(panel)[0];if(b)b.focus();return;}\n  if(j===null)return;\n  e.preventDefault();\n  seleccionar(ts[j].dataset.pestana,true);\n  ts[j].focus();\n });\n\n function abrirMenu(c,ancla){\n  cerrarMenu();\n  const opciones=typeof c.opciones==='function'?c.opciones():(c.opciones||[]);\n  const m=el('div',{class:'erlen-cinta-menu',role:'menu','aria-label':c.etiqueta});\n  for(const o of opciones){\n   if(o.separador){m.append(el('div',{class:'erlen-cinta-separador',role:'separator'}));continue;}\n   const conMarca=typeof o.marcado==='function';\n   const it=el('button',{type:'button',role:conMarca?'menuitemcheckbox':'menuitem','aria-checked':conMarca?String(!!o.marcado()):null,class:'erlen-cinta-opcion',tabindex:'-1',disabled:o.deshabilitado&&o.deshabilitado()?true:null},\n    icono(o.icono)||el('span',{class:'erlen-cinta-icono','aria-hidden':'true'}),\n    el('span',{class:'erlen-cinta-opcion-texto'},o.etiqueta,o.descripcion?el('small',null,o.descripcion):null),\n    o.atajo?el('kbd',null,o.atajo):null);\n   it.addEventListener('click',()=>{cerrarMenu(true);if(o.accion)o.accion(ancla);actualizar();});\n   m.append(it);\n  }\n  m.addEventListener('keydown',e=>{\n   const its=[...m.querySelectorAll('.erlen-cinta-opcion:not([disabled])')],i=its.indexOf(doc.activeElement);\n   if(e.key==='Escape'){e.preventDefault();e.stopPropagation();cerrarMenu(true);return;}\n   if(e.key==='Tab'){cerrarMenu(true);return;}\n   let j=null;\n   if(e.key==='ArrowDown')j=(i+1)%its.length;\n   else if(e.key==='ArrowUp')j=(i-1+its.length)%its.length;\n   else if(e.key==='Home')j=0;\n   else if(e.key==='End')j=its.length-1;\n   if(j!==null&&its.length){e.preventDefault();its[j].focus();}\n  });\n  doc.body.append(m);\n  ancla.setAttribute('aria-expanded','true');\n  const r=ancla.getBoundingClientRect(),w=m.offsetWidth||240,h=m.offsetHeight||0;\n  const vw=win.innerWidth||doc.documentElement.clientWidth,vh=win.innerHeight||doc.documentElement.clientHeight;\n  m.style.left=Math.max(8,Math.min(r.left,vw-w-8))+'px';\n  m.style.top=(r.bottom+4+h>vh-8&&r.top-4-h>8?r.top-4-h:r.bottom+4)+'px';\n  const fuera=e=>{if(!m.contains(e.target)&&e.target!==ancla&&!ancla.contains(e.target))cerrarMenu();};\n  // El listener de «fuera» espera al mismo tick para no tragarse el clic que abre: si el menú se\n  // cierra o la cinta se destruye antes, se cancela el temporizador y no queda ningún listener tardío.\n  const temporizador=win.setTimeout(()=>doc.addEventListener('pointerdown',fuera),0);\n  menu={m,ancla,fuera,temporizador};\n  const primero=m.querySelector('.erlen-cinta-opcion:not([disabled])');\n  if(primero)primero.focus();\n }\n function cerrarMenu(devolverFoco){\n  if(!menu)return;\n  win.clearTimeout(menu.temporizador);\n  doc.removeEventListener('pointerdown',menu.fuera);\n  menu.m.remove();\n  menu.ancla.setAttribute('aria-expanded','false');\n  if(devolverFoco&&menu.ancla.isConnected)menu.ancla.focus();\n  menu=null;\n }\n\n function fijarPlegado(v,persistir=true){\n  plegada=!!v;if(persistir){guardar(plegada);plegadoAuto=false;}\n  raiz.toggleAttribute('data-plegada',plegada);\n  panel.hidden=plegada;\n  firmaPestanas='';actualizar();\n }\n const atajo=e=>{if(e.key==='F1'&&(e.ctrlKey||e.metaKey)&&raiz.isConnected&&!raiz.closest('[inert]')){e.preventDefault();fijarPlegado(!plegada);}};\n doc.addEventListener('keydown',atajo);\n // Al girar el teléfono con la app abierta: plegar al pasar a horizontal bajo y desplegar al volver,\n // solo mientras la persona no haya elegido (plegado automático, nunca guardado).\n const alGirar=()=>{\n  if(mqBaja.matches){if(!plegada&&sinPreferencia()){plegadoAuto=true;fijarPlegado(true,false);}}\n  else if(plegadoAuto){plegadoAuto=false;fijarPlegado(false,false);}\n };\n if(mqBaja&&mqBaja.addEventListener)mqBaja.addEventListener('change',alGirar);\n\n function actualizar(){\n  const ps=todas();\n  if(!ps.some(p=>p.id===activa))activa=config.pestanas[0].id;\n  const firma=ps.map(p=>p.id+(p.contextual?'*':'')+':'+p.etiqueta).join('|')+'|'+plegada;\n  if(firma!==firmaPestanas){\n   const teniaFoco=lista.contains(doc.activeElement)&&doc.activeElement.getAttribute('role')==='tab';\n   firmaPestanas=firma;pintarPestanas(ps);\n   if(teniaFoco)lista.querySelector('[aria-selected=true]')?.focus();\n  }\n  for(const t of lista.querySelectorAll('[role=tab]')){const on=t.dataset.pestana===activa;t.setAttribute('aria-selected',String(on));t.tabIndex=on?0:-1;}\n  const p=ps.find(x=>x.id===activa);\n  const firmaP=p.id+':'+p.grupos.map(g=>g.etiqueta+'='+g.controles.map(c=>c.id||c.etiqueta).join(',')).join(';');\n  if(firmaP!==firmaPanel){firmaPanel=firmaP;pintarPanel(p);}\n  else refrescar();\n }\n function seleccionar(id,delUsuario){\n  if(!todas().some(p=>p.id===id))return;\n  const cambia=id!==activa;\n  activa=id;actualizar();\n  if(cambia&&delUsuario&&config.alCambiar)config.alCambiar(id);\n }\n\n // Comandos ejecutables del estado actual: la misma identidad que data-control, sin duplicar\n // declaraciones. Se recalcula en cada llamada porque las pestañas contextuales y los estados\n // oculto/deshabilitado cambian. listarComandos() añade a cada entrada el botón padre (la clave\n // del control) para que enfocar pueda localizarlo cuando el comando es una opción de menú.\n function ancla(clave){\n  return [...raiz.querySelectorAll('[data-control]')].find(b=>b.dataset.control===clave)||raiz;\n }\n function listarComandos(){\n  const lista=[];\n  for(const p of todas())for(const g of p.grupos)for(const c of g.controles){\n   if(c.oculto&&c.oculto())continue;\n   const clave=c.id||c.etiqueta,habilitado=!(c.deshabilitado&&c.deshabilitado());\n   if(c.tipo==='menu'){\n    const opciones=typeof c.opciones==='function'?c.opciones():(c.opciones||[]);\n    for(const o of opciones){\n     if(o.separador)continue;\n     lista.push({comando:{\n      clave:clave+' › '+o.etiqueta,pestana:p.id,etiqueta:c.etiqueta+' › '+o.etiqueta,\n      ruta:[p.etiqueta,g.etiqueta],atajo:o.atajo,titulo:o.descripcion,\n      habilitado:habilitado&&!(o.deshabilitado&&o.deshabilitado()),\n      ejecutar:()=>{o.accion&&o.accion(ancla(clave));actualizar();}\n     },padre:clave});\n    }\n   }else{\n    lista.push({comando:{\n     clave,pestana:p.id,etiqueta:c.etiqueta,ruta:[p.etiqueta,g.etiqueta],\n     atajo:c.atajo,titulo:c.titulo,habilitado,\n     ejecutar:()=>{c.accion&&c.accion(ancla(clave));actualizar();}\n    },padre:clave});\n   }\n  }\n  if(config.archivo)lista.push({comando:{\n   clave:'archivo',pestana:'',etiqueta:config.archivo.etiqueta||'Archivo',ruta:[],habilitado:true,\n   ejecutar:()=>config.archivo.accion&&config.archivo.accion(ancla('archivo'))\n  }});\n  return lista;\n }\n let resalte=null,resaltado=null;\n function resaltar(b){\n  if(resalte)win.clearTimeout(resalte);\n  if(resaltado&&resaltado.isConnected)resaltado.removeAttribute('data-erlen-mey-resalta');\n  resaltado=b;\n  b.setAttribute('data-erlen-mey-resalta','');\n  resalte=win.setTimeout(()=>{resalte=null;resaltado=null;b.removeAttribute('data-erlen-mey-resalta');},2400);\n }\n function enfocar(clave,pestana){\n  const hallado=listarComandos().find(x=>x.comando.clave===clave&&(!pestana||x.comando.pestana===pestana));\n  if(!hallado)return false;\n  const comando=hallado.comando;\n  if(plegada)fijarPlegado(false,!plegadoAuto);\n  if(comando.pestana)seleccionar(comando.pestana,false);\n  const b=ancla(comando.pestana===''?'archivo':(hallado.padre||comando.clave));\n  b.focus({preventScroll:false});\n  resaltar(b);\n  return true;\n }\n\n raiz.toggleAttribute('data-plegada',plegada);\n panel.hidden=plegada;\n // Indicador de desborde en la tira de pestañas: el mismo atributo data-desborde que el marco\n // vigila para controles y pie; marco.css pinta el degradado del borde. Un MutationObserver\n // vuelve a medir cuando las pestañas se repintan (la caja no cambia de tamaño). Se libera en\n // destruir().\n let pendienteFila=false;\n const medirFila=()=>{\n  pendienteFila=false;\n  const inicio=fila.scrollLeft>1,fin=fila.scrollLeft+fila.clientWidth<fila.scrollWidth-1;\n  fila.dataset.desborde=inicio&&fin?'ambos':inicio?'inicio':fin?'fin':'';\n };\n const programaFila=()=>{\n  if(pendienteFila)return;\n  pendienteFila=true;\n  if(win.requestAnimationFrame)win.requestAnimationFrame(medirFila);else medirFila();\n };\n programaFila();\n fila.addEventListener('scroll',programaFila,{passive:true});\n win.addEventListener('resize',programaFila);\n let observadorFila=null,mutadorFila=null;\n if(win.ResizeObserver){observadorFila=new win.ResizeObserver(programaFila);observadorFila.observe(fila);}\n if(win.MutationObserver){mutadorFila=new win.MutationObserver(programaFila);mutadorFila.observe(fila,{childList:true,subtree:true});}\n actualizar();\n return {\n  elemento:raiz,\n  actualizar,\n  seleccionar:id=>seleccionar(id,false),\n  plegar:v=>fijarPlegado(v),\n  comandos:()=>listarComandos().map(x=>x.comando),\n  enfocar,\n  get activa(){return activa;},\n  destruir(){\n   cerrarMenu();\n   if(resalte)win.clearTimeout(resalte);\n   resaltado=null;\n   fila.removeEventListener('scroll',programaFila);\n   win.removeEventListener('resize',programaFila);\n   if(observadorFila)observadorFila.disconnect();\n   if(mutadorFila)mutadorFila.disconnect();\n   doc.removeEventListener('keydown',atajo);\n   if(mqBaja&&mqBaja.removeEventListener)mqBaja.removeEventListener('change',alGirar);\n   raiz.remove();\n  }\n };\n}\n\nfunction validarPestana(p){\n if(!p||typeof p.id!=='string'||!p.id||typeof p.etiqueta!=='string'||!Array.isArray(p.grupos))throw Error('Pestaña de cinta inválida: necesita id, etiqueta y grupos.');\n for(const g of p.grupos){\n  if(!g||typeof g.etiqueta!=='string'||!Array.isArray(g.controles))throw Error('Grupo de cinta inválido en «'+p.etiqueta+'».');\n  for(const c of g.controles)if(!c||!TIPOS.includes(c.tipo)||typeof c.etiqueta!=='string'||!c.etiqueta)throw Error('Control de cinta inválido en «'+g.etiqueta+'»: tipo '+(c&&c.tipo));\n }\n}\n\nreturn mountCinta;})();\n",
  "src/diseno/suite-cinta.mjs": "// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n/* Cinta de herramientas común de Erlen Suite (docs/COHERENCIA-APPS.md §5 del portal).\n   Declarativa: la app describe pestañas, grupos y controles; este módulo pinta la\n   cinta al estilo de las apps de oficina, con el patrón ARIA de pestañas y barra de\n   herramientas, teclado completo, menús, pestañas contextuales y plegado. No importa\n   nada y no toca el DOM fuera de su anfitrión (salvo el menú abierto, en <body>).\n   Estilos en diseno/cinta.css, solo con tokens --erlen-*.\n\n   mountCinta(host, {\n     app: 'notes',                        // clave de preferencias (plegado)\n     etiqueta: 'Herramientas de Notes',   // nombre accesible de la cinta\n     archivo: {etiqueta:'Archivo', accion},  // opcional: botón «Archivo» a la izquierda\n     pestanas: [{id, etiqueta, grupos:[{etiqueta, controles:[control…]}]}],\n     contextuales: () => [pestaña…],      // opcional: pestañas según la selección\n     inicial: 'inicio',\n     alCambiar: id => {}                  // opcional\n   })\n   control = {tipo:'grande'|'pequeno'|'interruptor'|'menu', id?, etiqueta, icono?,\n              atajo?, titulo?, accion?, activo?:()=>bool, deshabilitado?:()=>bool,\n              oculto?:()=>bool, opciones?: [opción…] | ()=>[opción…]}\n   opción  = {etiqueta, icono?, descripcion?, atajo?, accion, marcado?:()=>bool,\n              deshabilitado?:()=>bool} | {separador:true}\n   icono: texto (un glifo), un nodo, o una cadena SVG escrita por la propia app.\n   Devuelve {elemento, actualizar(), seleccionar(id), plegar(bool), comandos(), enfocar(clave,pestana?), destruir()}.\n   comandos() lista los comandos ejecutables del estado actual (fuente única para ayudas como Mey);\n   enfocar(clave,pestana?) lleva el foco al botón del comando y lo resalta unos segundos. */\nconst TIPOS=['grande','pequeno','interruptor','menu'];\nlet contador=0;\n\nexport function mountCinta(host,config){\n if(!host||!host.ownerDocument)throw Error('mountCinta necesita un elemento anfitrión.');\n if(!config||!Array.isArray(config.pestanas)||!config.pestanas.length)throw Error('mountCinta necesita al menos una pestaña.');\n for(const p of config.pestanas)validarPestana(p);\n const doc=host.ownerDocument,win=doc.defaultView,uid='erlen-cinta-'+(++contador);\n const clave='erlen.cinta.'+(config.app||'app')+'.plegada';\n const leer=()=>{try{return win.localStorage.getItem(clave)==='1';}catch{return false;}};\n const guardar=v=>{try{win.localStorage.setItem(clave,v?'1':'0');}catch{}};\n // Paisaje corto (teléfono girado, mismo criterio que marco.css): sin preferencia guardada la cinta arranca plegada para\n // dejar sitio al trabajo. Es un plegado automático: no se guarda y se deshace al tocar una pestaña.\n const mqBaja=win.matchMedia?win.matchMedia('(max-width:920px) and (max-height:500px)'):null;\n const sinPreferencia=()=>{try{return win.localStorage.getItem(clave)===null;}catch{return true;}};\n let plegadoAuto=!!(mqBaja&&mqBaja.matches&&sinPreferencia());\n let activa=config.inicial||config.pestanas[0].id,plegada=plegadoAuto||leer(),menu=null,firmaPestanas='',firmaPanel='';\n const vivos=new Map();   // botón → control, para refrescar estados sin repintar\n\n const raiz=el('div',{class:'erlen-cinta'});\n // La fila de pestañas lleva «Archivo» y «Plegar» fuera del tablist: un tablist solo puede\n // contener pestañas (ARIA aria-required-children).\n const fila=el('div',{class:'erlen-cinta-pestanas'});\n const lista=el('div',{class:'erlen-cinta-lista',role:'tablist','aria-label':config.etiqueta||'Herramientas'});\n const panel=el('div',{class:'erlen-cinta-panel',role:'tabpanel',id:uid+'-panel',tabindex:'-1'});\n raiz.append(fila,panel);\n host.append(raiz);\n\n function el(tag,attrs={},...hijos){\n  const n=doc.createElement(tag);\n  for(const [k,v] of Object.entries(attrs||{}))if(v!==null&&v!==undefined&&v!==false)n.setAttribute(k,v===true?'':String(v));\n  n.append(...hijos.filter(h=>h!==null&&h!==undefined));\n  return n;\n }\n function icono(i){\n  if(i===undefined||i===null||i==='')return null;\n  const s=el('span',{class:'erlen-cinta-icono','aria-hidden':'true'});\n  if(typeof i==='string'&&i.trim().startsWith('<svg'))s.innerHTML=i;\n  else if(typeof i==='string')s.textContent=i;\n  else s.append(i.cloneNode(true));\n  return s;\n }\n const todas=()=>[...config.pestanas,...(typeof config.contextuales==='function'?(config.contextuales()||[]).map(p=>(validarPestana(p),{...p,contextual:true})):[])];\n\n function pintarPestanas(ps){\n  fila.replaceChildren();lista.replaceChildren();\n  if(config.archivo){\n   const b=el('button',{type:'button',class:'erlen-cinta-archivo','data-control':'archivo'},config.archivo.etiqueta||'Archivo');\n   b.addEventListener('click',()=>config.archivo.accion&&config.archivo.accion(b));\n   fila.append(b);\n  }\n  fila.append(lista);\n  for(const p of ps){\n   const b=el('button',{type:'button',role:'tab',class:'erlen-cinta-pestana',id:uid+'-tab-'+p.id,'aria-controls':uid+'-panel','aria-selected':'false',tabindex:'-1','data-pestana':p.id,'data-contextual':p.contextual?'true':null},p.etiqueta);\n   b.addEventListener('click',()=>{if(plegada)fijarPlegado(false,!plegadoAuto);seleccionar(p.id,true);});\n   b.addEventListener('dblclick',()=>fijarPlegado(!plegada));\n   lista.append(b);\n  }\n  fila.append(el('span',{class:'erlen-cinta-hueco'}));\n  const pl=el('button',{type:'button',class:'erlen-cinta-plegar','aria-expanded':String(!plegada),'aria-controls':uid+'-panel',title:'Plegar o desplegar la cinta (Ctrl+F1)'},el('span',{'aria-hidden':'true'},plegada?'⌄':'⌃'),el('span',{class:'erlen-cinta-oculto'},plegada?'Desplegar la cinta':'Plegar la cinta'));\n  pl.addEventListener('click',()=>fijarPlegado(!plegada));\n  fila.append(pl);\n }\n\n function pintarPanel(p){\n  const foco=doc.activeElement&&panel.contains(doc.activeElement)?doc.activeElement.dataset.control:null;\n  vivos.clear();\n  panel.replaceChildren();\n  panel.setAttribute('aria-labelledby',uid+'-tab-'+p.id);\n  const barra=el('div',{class:'erlen-cinta-fila',role:'toolbar','aria-label':p.etiqueta});\n  for(const g of p.grupos){\n   const grupo=el('div',{class:'erlen-cinta-grupo',role:'group','aria-label':g.etiqueta});\n   const controles=el('div',{class:'erlen-cinta-controles'});\n   const grandes=g.controles.filter(c=>c.tipo==='grande'),resto=g.controles.filter(c=>c.tipo!=='grande');\n   for(const c of grandes)controles.append(boton(c));\n   for(let i=0;i<resto.length;i+=3){const col=el('div',{class:'erlen-cinta-columna'});for(const c of resto.slice(i,i+3))col.append(boton(c));controles.append(col);}\n   grupo.append(controles,el('span',{class:'erlen-cinta-rotulo','aria-hidden':'true'},g.etiqueta));\n   barra.append(grupo);\n  }\n  barra.addEventListener('keydown',moverEnBarra);\n  panel.append(barra);\n  refrescar();\n  const botones=enfocables(barra);\n  const destino=(foco&&botones.find(b=>b.dataset.control===foco))||botones[0];\n  for(const b of vivos.keys())b.tabIndex=b===destino?0:-1;\n  if(foco&&destino)destino.focus();\n }\n\n function boton(c){\n  const nombre=c.etiqueta+(c.atajo?' ('+c.atajo+')':'');\n  const b=el('button',{type:'button',class:'erlen-cinta-boton','data-tipo':c.tipo,'data-control':c.id||c.etiqueta,title:c.titulo||nombre,'aria-haspopup':c.tipo==='menu'?'menu':null,'aria-expanded':c.tipo==='menu'?'false':null},icono(c.icono),el('span',{class:'erlen-cinta-texto'},c.etiqueta),c.tipo==='menu'?el('span',{class:'erlen-cinta-flecha','aria-hidden':'true'},'▾'):null);\n  b.addEventListener('click',()=>{\n   if(b.disabled)return;\n   if(c.tipo==='menu'){abrirMenu(c,b);return;}\n   if(c.accion)c.accion(b);\n   actualizar();\n  });\n  vivos.set(b,c);\n  return b;\n }\n\n function refrescar(){\n  for(const [b,c] of vivos){\n   b.hidden=!!(c.oculto&&c.oculto());\n   b.disabled=!!(c.deshabilitado&&c.deshabilitado());\n   if(c.tipo==='interruptor')b.setAttribute('aria-pressed',String(!!(c.activo&&c.activo())));\n  }\n  for(const col of panel.querySelectorAll('.erlen-cinta-columna,.erlen-cinta-grupo'))col.hidden=![...col.querySelectorAll('.erlen-cinta-boton')].some(b=>!b.hidden);\n  // La barra conserva siempre un único punto de tabulación, aunque el control que lo tenía\n  // se haya deshabilitado u ocultado (p. ej. Deshacer cuando se acaba el historial).\n  const bs=[...vivos.keys()],usables=bs.filter(b=>!b.hidden&&!b.disabled);\n  for(const b of bs)if(b.hidden||b.disabled)b.tabIndex=-1;\n  if(usables.length&&!usables.some(b=>b.tabIndex===0))usables[0].tabIndex=0;\n }\n\n const enfocables=barra=>[...barra.querySelectorAll('.erlen-cinta-boton')].filter(b=>!b.hidden&&!b.disabled);\n function moverEnBarra(e){\n  const bs=enfocables(e.currentTarget),i=bs.indexOf(doc.activeElement);\n  if(i<0)return;\n  let j=null;\n  if(e.key==='ArrowRight')j=(i+1)%bs.length;\n  else if(e.key==='ArrowLeft')j=(i-1+bs.length)%bs.length;\n  else if(e.key==='Home')j=0;\n  else if(e.key==='End')j=bs.length-1;\n  else if(e.key==='ArrowDown'&&bs[i].dataset.tipo==='menu'){e.preventDefault();bs[i].click();return;}\n  if(j===null)return;\n  e.preventDefault();\n  bs.forEach((b,k)=>b.tabIndex=k===j?0:-1);\n  bs[j].focus();\n }\n lista.addEventListener('keydown',e=>{\n  const ts=[...lista.querySelectorAll('[role=tab]')],i=ts.indexOf(doc.activeElement);\n  if(i<0)return;\n  let j=null;\n  if(e.key==='ArrowRight')j=(i+1)%ts.length;\n  else if(e.key==='ArrowLeft')j=(i-1+ts.length)%ts.length;\n  else if(e.key==='Home')j=0;\n  else if(e.key==='End')j=ts.length-1;\n  else if(e.key==='ArrowDown'&&!plegada){e.preventDefault();const b=enfocables(panel)[0];if(b)b.focus();return;}\n  if(j===null)return;\n  e.preventDefault();\n  seleccionar(ts[j].dataset.pestana,true);\n  ts[j].focus();\n });\n\n function abrirMenu(c,ancla){\n  cerrarMenu();\n  const opciones=typeof c.opciones==='function'?c.opciones():(c.opciones||[]);\n  const m=el('div',{class:'erlen-cinta-menu',role:'menu','aria-label':c.etiqueta});\n  for(const o of opciones){\n   if(o.separador){m.append(el('div',{class:'erlen-cinta-separador',role:'separator'}));continue;}\n   const conMarca=typeof o.marcado==='function';\n   const it=el('button',{type:'button',role:conMarca?'menuitemcheckbox':'menuitem','aria-checked':conMarca?String(!!o.marcado()):null,class:'erlen-cinta-opcion',tabindex:'-1',disabled:o.deshabilitado&&o.deshabilitado()?true:null},\n    icono(o.icono)||el('span',{class:'erlen-cinta-icono','aria-hidden':'true'}),\n    el('span',{class:'erlen-cinta-opcion-texto'},o.etiqueta,o.descripcion?el('small',null,o.descripcion):null),\n    o.atajo?el('kbd',null,o.atajo):null);\n   it.addEventListener('click',()=>{cerrarMenu(true);if(o.accion)o.accion(ancla);actualizar();});\n   m.append(it);\n  }\n  m.addEventListener('keydown',e=>{\n   const its=[...m.querySelectorAll('.erlen-cinta-opcion:not([disabled])')],i=its.indexOf(doc.activeElement);\n   if(e.key==='Escape'){e.preventDefault();e.stopPropagation();cerrarMenu(true);return;}\n   if(e.key==='Tab'){cerrarMenu(true);return;}\n   let j=null;\n   if(e.key==='ArrowDown')j=(i+1)%its.length;\n   else if(e.key==='ArrowUp')j=(i-1+its.length)%its.length;\n   else if(e.key==='Home')j=0;\n   else if(e.key==='End')j=its.length-1;\n   if(j!==null&&its.length){e.preventDefault();its[j].focus();}\n  });\n  doc.body.append(m);\n  ancla.setAttribute('aria-expanded','true');\n  const r=ancla.getBoundingClientRect(),w=m.offsetWidth||240,h=m.offsetHeight||0;\n  const vw=win.innerWidth||doc.documentElement.clientWidth,vh=win.innerHeight||doc.documentElement.clientHeight;\n  m.style.left=Math.max(8,Math.min(r.left,vw-w-8))+'px';\n  m.style.top=(r.bottom+4+h>vh-8&&r.top-4-h>8?r.top-4-h:r.bottom+4)+'px';\n  const fuera=e=>{if(!m.contains(e.target)&&e.target!==ancla&&!ancla.contains(e.target))cerrarMenu();};\n  // El listener de «fuera» espera al mismo tick para no tragarse el clic que abre: si el menú se\n  // cierra o la cinta se destruye antes, se cancela el temporizador y no queda ningún listener tardío.\n  const temporizador=win.setTimeout(()=>doc.addEventListener('pointerdown',fuera),0);\n  menu={m,ancla,fuera,temporizador};\n  const primero=m.querySelector('.erlen-cinta-opcion:not([disabled])');\n  if(primero)primero.focus();\n }\n function cerrarMenu(devolverFoco){\n  if(!menu)return;\n  win.clearTimeout(menu.temporizador);\n  doc.removeEventListener('pointerdown',menu.fuera);\n  menu.m.remove();\n  menu.ancla.setAttribute('aria-expanded','false');\n  if(devolverFoco&&menu.ancla.isConnected)menu.ancla.focus();\n  menu=null;\n }\n\n function fijarPlegado(v,persistir=true){\n  plegada=!!v;if(persistir){guardar(plegada);plegadoAuto=false;}\n  raiz.toggleAttribute('data-plegada',plegada);\n  panel.hidden=plegada;\n  firmaPestanas='';actualizar();\n }\n const atajo=e=>{if(e.key==='F1'&&(e.ctrlKey||e.metaKey)&&raiz.isConnected&&!raiz.closest('[inert]')){e.preventDefault();fijarPlegado(!plegada);}};\n doc.addEventListener('keydown',atajo);\n // Al girar el teléfono con la app abierta: plegar al pasar a horizontal bajo y desplegar al volver,\n // solo mientras la persona no haya elegido (plegado automático, nunca guardado).\n const alGirar=()=>{\n  if(mqBaja.matches){if(!plegada&&sinPreferencia()){plegadoAuto=true;fijarPlegado(true,false);}}\n  else if(plegadoAuto){plegadoAuto=false;fijarPlegado(false,false);}\n };\n if(mqBaja&&mqBaja.addEventListener)mqBaja.addEventListener('change',alGirar);\n\n function actualizar(){\n  const ps=todas();\n  if(!ps.some(p=>p.id===activa))activa=config.pestanas[0].id;\n  const firma=ps.map(p=>p.id+(p.contextual?'*':'')+':'+p.etiqueta).join('|')+'|'+plegada;\n  if(firma!==firmaPestanas){\n   const teniaFoco=lista.contains(doc.activeElement)&&doc.activeElement.getAttribute('role')==='tab';\n   firmaPestanas=firma;pintarPestanas(ps);\n   if(teniaFoco)lista.querySelector('[aria-selected=true]')?.focus();\n  }\n  for(const t of lista.querySelectorAll('[role=tab]')){const on=t.dataset.pestana===activa;t.setAttribute('aria-selected',String(on));t.tabIndex=on?0:-1;}\n  const p=ps.find(x=>x.id===activa);\n  const firmaP=p.id+':'+p.grupos.map(g=>g.etiqueta+'='+g.controles.map(c=>c.id||c.etiqueta).join(',')).join(';');\n  if(firmaP!==firmaPanel){firmaPanel=firmaP;pintarPanel(p);}\n  else refrescar();\n }\n function seleccionar(id,delUsuario){\n  if(!todas().some(p=>p.id===id))return;\n  const cambia=id!==activa;\n  activa=id;actualizar();\n  if(cambia&&delUsuario&&config.alCambiar)config.alCambiar(id);\n }\n\n // Comandos ejecutables del estado actual: la misma identidad que data-control, sin duplicar\n // declaraciones. Se recalcula en cada llamada porque las pestañas contextuales y los estados\n // oculto/deshabilitado cambian. listarComandos() añade a cada entrada el botón padre (la clave\n // del control) para que enfocar pueda localizarlo cuando el comando es una opción de menú.\n function ancla(clave){\n  return [...raiz.querySelectorAll('[data-control]')].find(b=>b.dataset.control===clave)||raiz;\n }\n function listarComandos(){\n  const lista=[];\n  for(const p of todas())for(const g of p.grupos)for(const c of g.controles){\n   if(c.oculto&&c.oculto())continue;\n   const clave=c.id||c.etiqueta,habilitado=!(c.deshabilitado&&c.deshabilitado());\n   if(c.tipo==='menu'){\n    const opciones=typeof c.opciones==='function'?c.opciones():(c.opciones||[]);\n    for(const o of opciones){\n     if(o.separador)continue;\n     lista.push({comando:{\n      clave:clave+' › '+o.etiqueta,pestana:p.id,etiqueta:c.etiqueta+' › '+o.etiqueta,\n      ruta:[p.etiqueta,g.etiqueta],atajo:o.atajo,titulo:o.descripcion,\n      habilitado:habilitado&&!(o.deshabilitado&&o.deshabilitado()),\n      ejecutar:()=>{o.accion&&o.accion(ancla(clave));actualizar();}\n     },padre:clave});\n    }\n   }else{\n    lista.push({comando:{\n     clave,pestana:p.id,etiqueta:c.etiqueta,ruta:[p.etiqueta,g.etiqueta],\n     atajo:c.atajo,titulo:c.titulo,habilitado,\n     ejecutar:()=>{c.accion&&c.accion(ancla(clave));actualizar();}\n    },padre:clave});\n   }\n  }\n  if(config.archivo)lista.push({comando:{\n   clave:'archivo',pestana:'',etiqueta:config.archivo.etiqueta||'Archivo',ruta:[],habilitado:true,\n   ejecutar:()=>config.archivo.accion&&config.archivo.accion(ancla('archivo'))\n  }});\n  return lista;\n }\n let resalte=null,resaltado=null;\n function resaltar(b){\n  if(resalte)win.clearTimeout(resalte);\n  if(resaltado&&resaltado.isConnected)resaltado.removeAttribute('data-erlen-mey-resalta');\n  resaltado=b;\n  b.setAttribute('data-erlen-mey-resalta','');\n  resalte=win.setTimeout(()=>{resalte=null;resaltado=null;b.removeAttribute('data-erlen-mey-resalta');},2400);\n }\n function enfocar(clave,pestana){\n  const hallado=listarComandos().find(x=>x.comando.clave===clave&&(!pestana||x.comando.pestana===pestana));\n  if(!hallado)return false;\n  const comando=hallado.comando;\n  if(plegada)fijarPlegado(false,!plegadoAuto);\n  if(comando.pestana)seleccionar(comando.pestana,false);\n  const b=ancla(comando.pestana===''?'archivo':(hallado.padre||comando.clave));\n  b.focus({preventScroll:false});\n  resaltar(b);\n  return true;\n }\n\n raiz.toggleAttribute('data-plegada',plegada);\n panel.hidden=plegada;\n // Indicador de desborde en la tira de pestañas: el mismo atributo data-desborde que el marco\n // vigila para controles y pie; marco.css pinta el degradado del borde. Un MutationObserver\n // vuelve a medir cuando las pestañas se repintan (la caja no cambia de tamaño). Se libera en\n // destruir().\n let pendienteFila=false;\n const medirFila=()=>{\n  pendienteFila=false;\n  const inicio=fila.scrollLeft>1,fin=fila.scrollLeft+fila.clientWidth<fila.scrollWidth-1;\n  fila.dataset.desborde=inicio&&fin?'ambos':inicio?'inicio':fin?'fin':'';\n };\n const programaFila=()=>{\n  if(pendienteFila)return;\n  pendienteFila=true;\n  if(win.requestAnimationFrame)win.requestAnimationFrame(medirFila);else medirFila();\n };\n programaFila();\n fila.addEventListener('scroll',programaFila,{passive:true});\n win.addEventListener('resize',programaFila);\n let observadorFila=null,mutadorFila=null;\n if(win.ResizeObserver){observadorFila=new win.ResizeObserver(programaFila);observadorFila.observe(fila);}\n if(win.MutationObserver){mutadorFila=new win.MutationObserver(programaFila);mutadorFila.observe(fila,{childList:true,subtree:true});}\n actualizar();\n return {\n  elemento:raiz,\n  actualizar,\n  seleccionar:id=>seleccionar(id,false),\n  plegar:v=>fijarPlegado(v),\n  comandos:()=>listarComandos().map(x=>x.comando),\n  enfocar,\n  get activa(){return activa;},\n  destruir(){\n   cerrarMenu();\n   if(resalte)win.clearTimeout(resalte);\n   resaltado=null;\n   fila.removeEventListener('scroll',programaFila);\n   win.removeEventListener('resize',programaFila);\n   if(observadorFila)observadorFila.disconnect();\n   if(mutadorFila)mutadorFila.disconnect();\n   doc.removeEventListener('keydown',atajo);\n   if(mqBaja&&mqBaja.removeEventListener)mqBaja.removeEventListener('change',alGirar);\n   raiz.remove();\n  }\n };\n}\n\nfunction validarPestana(p){\n if(!p||typeof p.id!=='string'||!p.id||typeof p.etiqueta!=='string'||!Array.isArray(p.grupos))throw Error('Pestaña de cinta inválida: necesita id, etiqueta y grupos.');\n for(const g of p.grupos){\n  if(!g||typeof g.etiqueta!=='string'||!Array.isArray(g.controles))throw Error('Grupo de cinta inválido en «'+p.etiqueta+'».');\n  for(const c of g.controles)if(!c||!TIPOS.includes(c.tipo)||typeof c.etiqueta!=='string'||!c.etiqueta)throw Error('Control de cinta inválido en «'+g.etiqueta+'»: tipo '+(c&&c.tipo));\n }\n}\n",
  "src/diseno/suite-color.js": "/* erlen-diseno 2.11.8 · generado por @erlen/design/tools/generate; no editar a mano */\nconst erlenColor=(()=>{\n// Acento personal de Erlen y tema claro/oscuro/sistema. El CSS del portal y el paquete comparten\n// estos nombres; cada uno fija colores legibles en claro y oscuro sin recolorear a Mey ni los\n// documentos. Importarlo una vez desde la app junto a tokens.css: aplica las preferencias al\n// cargar y las sincroniza entre pestañas del mismo origen. Claves de almacenamiento y respaldo en\n// memoria cuando el almacenamiento está bloqueado: nunca falla ni pide permisos. El tema escribe\n// data-theme en <html> y lo resuelven los tokens existentes (tokens.css); no se crea ningún\n// almacenamiento sincronizado entre orígenes. La clave del tema es opt-in: mientras la app no\n// guarde una preferencia con guardarTema, este módulo no toca data-theme y el tema sigue siendo\n// de la app (muchas ya escriben data-theme desde su propio almacén).\nconst coloresErlen=['verde','violeta','azul','cobre','platino'];\nconst temasErlen=['sistema','claro','oscuro'];\n// Materiales opcionales del cromo. Original no añade ningún atributo ni cambia el tema,\n// la paleta o el contenido. Los nombres son también el catálogo de los controles.\nconst estilosErlen=[\n {id:'original',nombre:'Original'},\n {id:'glassmorfismo',nombre:'Glassmorfismo'},\n {id:'neumorfismo',nombre:'Neumorfismo'},\n {id:'neobrutalismo',nombre:'Neobrutalismo'},\n {id:'minimalismo',nombre:'Minimalismo'},\n {id:'art-deco',nombre:'Art déco'},\n {id:'claymorfismo',nombre:'Claymorfismo'},\n {id:'bauhaus',nombre:'Bauhaus'},\n {id:'frutiger-aero',nombre:'Frutiger Aero'},\n {id:'esqueuomorfismo',nombre:'Esqueuomorfismo'},\n {id:'retro-digital',nombre:'Retro digital'},\n {id:'y2k',nombre:'Y2K'},\n {id:'cyberpunk',nombre:'Cyberpunk'},\n {id:'blueprint',nombre:'Blueprint'}\n];\nconst clave='erlen-color';\nconst claveTema='erlen-tema';\nconst claveEstilo='erlen-estilo';\n// Los IIFE de menú, marco y color pueden coexistir: comparten el respaldo y un solo\n// listener por ventana, incluso con localStorage bloqueado.\nconst memoriaEstilo=Symbol.for('erlen.estilo.memoria');\nconst escuchaColor=Symbol.for('erlen.color.escucha');\nconst respaldo=Symbol.for('erlen.color.memoria');\nconst respaldoTema=Symbol.for('erlen.tema.memoria');\n\nconst erlenColor={\n estilos:estilosErlen,\n leer(ventana){\n  if(ventana?.[respaldo])return ventana[respaldo];\n  try{\n   const almacen=ventana?.localStorage;\n   if(almacen){const valor=almacen.getItem(clave);return coloresErlen.includes(valor)?valor:'verde';}\n  }catch{}\n  return 'verde';\n },\n aplicar(ventana){\n  const color=this.leer(ventana);\n  if(color==='verde')delete ventana.document.documentElement.dataset.erlenColor;\n  else ventana.document.documentElement.dataset.erlenColor=color;\n  return color;\n },\n guardar(ventana,color){\n  if(!coloresErlen.includes(color))throw new Error('erlen: color desconocido: '+color);\n  try{ventana.localStorage.setItem(clave,color);delete ventana[respaldo];}\n  catch{ventana[respaldo]=color;}\n  this.aplicar(ventana);\n  ventana.dispatchEvent(new ventana.Event('erlen-color'));\n },\n leerTema(ventana){\n  // Preferencia compartida guardada, o null si la app aún no usa esta clave: en ese caso el\n  // tema lo sigue resolviendo la propia app y este módulo no toca data-theme.\n  if(ventana?.[respaldoTema])return ventana[respaldoTema];\n  try{\n   const almacen=ventana?.localStorage;\n   if(almacen){const valor=almacen.getItem(claveTema);return valor===null?null:(temasErlen.includes(valor)?valor:null);}\n  }catch{}\n  return null;\n },\n aplicarTema(ventana){\n  const tema=this.leerTema(ventana);\n  if(tema===null)return null;\n  if(tema==='sistema')delete ventana.document.documentElement.dataset.theme;\n  else ventana.document.documentElement.dataset.theme=tema==='claro'?'light':'dark';\n  return tema;\n },\n guardarTema(ventana,tema){\n  if(!temasErlen.includes(tema))throw new Error('erlen: tema desconocido: '+tema);\n  try{ventana.localStorage.setItem(claveTema,tema);delete ventana[respaldoTema];}\n  catch{ventana[respaldoTema]=tema;}\n  this.aplicarTema(ventana);\n  ventana.dispatchEvent(new ventana.Event('erlen-tema'));\n },\n leerEstilo(ventana){\n  let valor;\n  try{valor=ventana?.localStorage?.getItem(claveEstilo);}catch{}\n  valor=ventana?.[memoriaEstilo]??valor;\n  return estilosErlen.some(estilo=>estilo.id===valor)?valor:'original';\n },\n aplicarEstilo(ventana){\n  const estilo=this.leerEstilo(ventana);\n  const raiz=ventana?.document?.documentElement;\n  if(raiz){\n   if(estilo==='original')delete raiz.dataset.erlenEstilo;\n   else raiz.dataset.erlenEstilo=estilo;\n  }\n  return estilo;\n },\n guardarEstilo(ventana,estilo){\n  if(!estilosErlen.some(opcion=>opcion.id===estilo))throw new Error('erlen: estilo desconocido: '+estilo);\n  try{ventana.localStorage.setItem(claveEstilo,estilo);delete ventana[memoriaEstilo];}\n  catch{ventana[memoriaEstilo]=estilo;}\n  this.aplicarEstilo(ventana);\n  ventana.dispatchEvent(new ventana.Event('erlen-estilo'));\n }\n};\n\nif(typeof window!=='undefined'){\n erlenColor.aplicar(window);\n erlenColor.aplicarTema(window);\n erlenColor.aplicarEstilo(window);\n if(!window[escuchaColor]){\n window[escuchaColor]=true;\n window.addEventListener('storage',evento=>{\n  if(evento.key===clave||evento.key===null){delete window[respaldo];erlenColor.aplicar(window);window.dispatchEvent(new Event('erlen-color'));}\n  if(evento.key===claveTema||evento.key===null){delete window[respaldoTema];erlenColor.aplicarTema(window);window.dispatchEvent(new Event('erlen-tema'));}\n  if(evento.key===claveEstilo||evento.key===null){\n   delete window[memoriaEstilo];\n   erlenColor.aplicarEstilo(window);window.dispatchEvent(new Event('erlen-estilo'));\n  }\n });\n }\n}\n\nreturn erlenColor;})();\n",
  "src/diseno/suite-color.mjs": "// Acento personal de Erlen y tema claro/oscuro/sistema. El CSS del portal y el paquete comparten\n// estos nombres; cada uno fija colores legibles en claro y oscuro sin recolorear a Mey ni los\n// documentos. Importarlo una vez desde la app junto a tokens.css: aplica las preferencias al\n// cargar y las sincroniza entre pestañas del mismo origen. Claves de almacenamiento y respaldo en\n// memoria cuando el almacenamiento está bloqueado: nunca falla ni pide permisos. El tema escribe\n// data-theme en <html> y lo resuelven los tokens existentes (tokens.css); no se crea ningún\n// almacenamiento sincronizado entre orígenes. La clave del tema es opt-in: mientras la app no\n// guarde una preferencia con guardarTema, este módulo no toca data-theme y el tema sigue siendo\n// de la app (muchas ya escriben data-theme desde su propio almacén).\nexport const coloresErlen=['verde','violeta','azul','cobre','platino'];\nexport const temasErlen=['sistema','claro','oscuro'];\n// Materiales opcionales del cromo. Original no añade ningún atributo ni cambia el tema,\n// la paleta o el contenido. Los nombres son también el catálogo de los controles.\nexport const estilosErlen=[\n {id:'original',nombre:'Original'},\n {id:'glassmorfismo',nombre:'Glassmorfismo'},\n {id:'neumorfismo',nombre:'Neumorfismo'},\n {id:'neobrutalismo',nombre:'Neobrutalismo'},\n {id:'minimalismo',nombre:'Minimalismo'},\n {id:'art-deco',nombre:'Art déco'},\n {id:'claymorfismo',nombre:'Claymorfismo'},\n {id:'bauhaus',nombre:'Bauhaus'},\n {id:'frutiger-aero',nombre:'Frutiger Aero'},\n {id:'esqueuomorfismo',nombre:'Esqueuomorfismo'},\n {id:'retro-digital',nombre:'Retro digital'},\n {id:'y2k',nombre:'Y2K'},\n {id:'cyberpunk',nombre:'Cyberpunk'},\n {id:'blueprint',nombre:'Blueprint'}\n];\nconst clave='erlen-color';\nconst claveTema='erlen-tema';\nconst claveEstilo='erlen-estilo';\n// Los IIFE de menú, marco y color pueden coexistir: comparten el respaldo y un solo\n// listener por ventana, incluso con localStorage bloqueado.\nconst memoriaEstilo=Symbol.for('erlen.estilo.memoria');\nconst escuchaColor=Symbol.for('erlen.color.escucha');\nconst respaldo=Symbol.for('erlen.color.memoria');\nconst respaldoTema=Symbol.for('erlen.tema.memoria');\n\nexport const erlenColor={\n estilos:estilosErlen,\n leer(ventana){\n  if(ventana?.[respaldo])return ventana[respaldo];\n  try{\n   const almacen=ventana?.localStorage;\n   if(almacen){const valor=almacen.getItem(clave);return coloresErlen.includes(valor)?valor:'verde';}\n  }catch{}\n  return 'verde';\n },\n aplicar(ventana){\n  const color=this.leer(ventana);\n  if(color==='verde')delete ventana.document.documentElement.dataset.erlenColor;\n  else ventana.document.documentElement.dataset.erlenColor=color;\n  return color;\n },\n guardar(ventana,color){\n  if(!coloresErlen.includes(color))throw new Error('erlen: color desconocido: '+color);\n  try{ventana.localStorage.setItem(clave,color);delete ventana[respaldo];}\n  catch{ventana[respaldo]=color;}\n  this.aplicar(ventana);\n  ventana.dispatchEvent(new ventana.Event('erlen-color'));\n },\n leerTema(ventana){\n  // Preferencia compartida guardada, o null si la app aún no usa esta clave: en ese caso el\n  // tema lo sigue resolviendo la propia app y este módulo no toca data-theme.\n  if(ventana?.[respaldoTema])return ventana[respaldoTema];\n  try{\n   const almacen=ventana?.localStorage;\n   if(almacen){const valor=almacen.getItem(claveTema);return valor===null?null:(temasErlen.includes(valor)?valor:null);}\n  }catch{}\n  return null;\n },\n aplicarTema(ventana){\n  const tema=this.leerTema(ventana);\n  if(tema===null)return null;\n  if(tema==='sistema')delete ventana.document.documentElement.dataset.theme;\n  else ventana.document.documentElement.dataset.theme=tema==='claro'?'light':'dark';\n  return tema;\n },\n guardarTema(ventana,tema){\n  if(!temasErlen.includes(tema))throw new Error('erlen: tema desconocido: '+tema);\n  try{ventana.localStorage.setItem(claveTema,tema);delete ventana[respaldoTema];}\n  catch{ventana[respaldoTema]=tema;}\n  this.aplicarTema(ventana);\n  ventana.dispatchEvent(new ventana.Event('erlen-tema'));\n },\n leerEstilo(ventana){\n  let valor;\n  try{valor=ventana?.localStorage?.getItem(claveEstilo);}catch{}\n  valor=ventana?.[memoriaEstilo]??valor;\n  return estilosErlen.some(estilo=>estilo.id===valor)?valor:'original';\n },\n aplicarEstilo(ventana){\n  const estilo=this.leerEstilo(ventana);\n  const raiz=ventana?.document?.documentElement;\n  if(raiz){\n   if(estilo==='original')delete raiz.dataset.erlenEstilo;\n   else raiz.dataset.erlenEstilo=estilo;\n  }\n  return estilo;\n },\n guardarEstilo(ventana,estilo){\n  if(!estilosErlen.some(opcion=>opcion.id===estilo))throw new Error('erlen: estilo desconocido: '+estilo);\n  try{ventana.localStorage.setItem(claveEstilo,estilo);delete ventana[memoriaEstilo];}\n  catch{ventana[memoriaEstilo]=estilo;}\n  this.aplicarEstilo(ventana);\n  ventana.dispatchEvent(new ventana.Event('erlen-estilo'));\n }\n};\n\nif(typeof window!=='undefined'){\n erlenColor.aplicar(window);\n erlenColor.aplicarTema(window);\n erlenColor.aplicarEstilo(window);\n if(!window[escuchaColor]){\n window[escuchaColor]=true;\n window.addEventListener('storage',evento=>{\n  if(evento.key===clave||evento.key===null){delete window[respaldo];erlenColor.aplicar(window);window.dispatchEvent(new Event('erlen-color'));}\n  if(evento.key===claveTema||evento.key===null){delete window[respaldoTema];erlenColor.aplicarTema(window);window.dispatchEvent(new Event('erlen-tema'));}\n  if(evento.key===claveEstilo||evento.key===null){\n   delete window[memoriaEstilo];\n   erlenColor.aplicarEstilo(window);window.dispatchEvent(new Event('erlen-estilo'));\n  }\n });\n }\n}\n",
  "src/diseno/suite-iconos.js": "/* erlen-diseno 2.11.8 · generado por @erlen/design/tools/generate; no editar a mano */\nconst erlenIconos=(()=>{\n// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n/* Iconos de herramientas de Erlen Suite (docs/COHERENCIA-APPS.md §7 del portal).\n   Familia propia, dibujada a mano para la cinta y los menús de las apps: rejilla de\n   24×24 con margen de 3–3,5, trazo 1,6 redondeado, esquinas de 1,5–2 en los\n   contenedores y detalles macizos con círculos de r=1,2 en currentColor. Un\n   significado, un icono. Sin dependencias; no toca el DOM.\n\n   iconos[id]        contenido interno del <svg> (sin envoltorio), una línea por icono.\n   nombresIconos     lista de ids en el orden del catálogo (docs/iconos.html).\n   icono(id,{titulo}) <svg> completo con la gramática fija: viewBox 0 0 24 24,\n                     fill=\"none\", stroke=\"currentColor\", stroke-width=\"1.6\", extremos\n                     y uniones redondeados, class=\"erlen-icono\", data-icono,\n                     aria-hidden=\"true\" y focusable=\"false\". Con titulo añade <title>\n                     (tooltip); el icono sigue oculto a los lectores: el nombre\n                     accesible lo lleva siempre el control que lo contiene.\n   Uso en la cinta: {tipo:'grande', etiqueta:'Guardar', icono:icono('guardar'), accion}. */\nconst iconos={\n // Archivo\n inicio:'<path d=\"M4 10.5 12 4l8 6.5\"/><path d=\"M6 9v9.5A1.5 1.5 0 0 0 7.5 20h9a1.5 1.5 0 0 0 1.5-1.5V9\"/><path d=\"M10 20v-5h4v5\"/>',\n archivo:'<path d=\"M13.5 3.5H7A1.5 1.5 0 0 0 5.5 5v14A1.5 1.5 0 0 0 7 20.5h10a1.5 1.5 0 0 0 1.5-1.5V8.5z\"/><path d=\"M13.5 3.5v5h5\"/><path d=\"M8.8 13h6.4M8.8 16.5h4.4\"/>',\n nuevo:'<path d=\"M13.5 3.5H7A1.5 1.5 0 0 0 5.5 5v14A1.5 1.5 0 0 0 7 20.5h10a1.5 1.5 0 0 0 1.5-1.5V8.5z\"/><path d=\"M13.5 3.5v5h5\"/><path d=\"M12 11.5v6M9 14.5h6\"/>',\n abrir:'<path d=\"M3.5 17.5V6A1.5 1.5 0 0 1 5 4.5h3.8l2 2.3H17a1.5 1.5 0 0 1 1.5 1.5v1.9\"/><path d=\"M3.5 17.5l2.3-6.3a1.5 1.5 0 0 1 1.4-1h12.4a1 1 0 0 1 .95 1.3l-2 6.3a1.5 1.5 0 0 1-1.43 1.1H4.5a1 1 0 0 1-1-1.4z\"/>',\n guardar:'<path d=\"M4 5.5A1.5 1.5 0 0 1 5.5 4h10.2L20 8.3v10.2a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 18.5z\"/><path d=\"M8 4v4h7V4\"/><path d=\"M7.5 20v-5.5a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1V20\"/>',\n 'guardar-como':'<path d=\"M12 20H5.5A1.5 1.5 0 0 1 4 18.5v-13A1.5 1.5 0 0 1 5.5 4h10.2L20 8.3v2\"/><path d=\"M8 4v4h7V4\"/><path d=\"M7.5 20v-5.5a1 1 0 0 1 1-1H12\"/><path d=\"m14.5 20.5.5-2.5 4-4a1.4 1.4 0 0 1 2 2l-4 4z\"/>',\n importar:'<path d=\"M13.5 4.5h4A1.5 1.5 0 0 1 19 6v12a1.5 1.5 0 0 1-1.5 1.5h-4\"/><path d=\"M4 12h10M10.5 8.5 14 12l-3.5 3.5\"/>',\n exportar:'<path d=\"M10.5 4.5h-4A1.5 1.5 0 0 0 5 6v12a1.5 1.5 0 0 0 1.5 1.5h4\"/><path d=\"M10 12h10M16.5 8.5 20 12l-3.5 3.5\"/>',\n descargar:'<path d=\"M12 3.5v11M7.5 10.5 12 15l4.5-4.5\"/><path d=\"M4.5 15.5v3a1.5 1.5 0 0 0 1.5 1.5h12a1.5 1.5 0 0 0 1.5-1.5v-3\"/>',\n cargar:'<path d=\"M12 15V4M7.5 8 12 3.5 16.5 8\"/><path d=\"M4.5 15.5v3a1.5 1.5 0 0 0 1.5 1.5h12a1.5 1.5 0 0 0 1.5-1.5v-3\"/>',\n imprimir:'<path d=\"M7 8.5v-5h10v5\"/><path d=\"M7 16.5H5.5A1.5 1.5 0 0 1 4 15v-5a1.5 1.5 0 0 1 1.5-1.5h13A1.5 1.5 0 0 1 20 10v5a1.5 1.5 0 0 1-1.5 1.5H17\"/><path d=\"M7 13.5h10v7H7z\"/><circle cx=\"16.5\" cy=\"11\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/>',\n compartir:'<circle cx=\"17.5\" cy=\"5.5\" r=\"2.5\"/><circle cx=\"6.5\" cy=\"12\" r=\"2.5\"/><circle cx=\"17.5\" cy=\"18.5\" r=\"2.5\"/><path d=\"m8.7 10.7 6.6-3.9M8.7 13.3l6.6 3.9\"/>',\n paquete:'<path d=\"M12 3.5 19.5 7.5v9L12 20.5l-7.5-4v-9z\"/><path d=\"M4.5 7.5 12 11.5l7.5-4M12 11.5v9\"/><path d=\"m8.2 5.5 7.5 4v3.2\"/>',\n informe:'<path d=\"M15.5 5H17a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 17 20H7a1.5 1.5 0 0 1-1.5-1.5v-12A1.5 1.5 0 0 1 7 5h1.5\"/><rect x=\"8.5\" y=\"3.5\" width=\"7\" height=\"3.5\" rx=\"1\"/><path d=\"M9 16.5v-2.5M12 16.5v-5.5M15 16.5v-4\"/>',\n respaldo:'<rect x=\"3.5\" y=\"4\" width=\"17\" height=\"5\" rx=\"1.2\"/><path d=\"M5 9v9.5A1.5 1.5 0 0 0 6.5 20h11a1.5 1.5 0 0 0 1.5-1.5V9\"/><path d=\"M10 13h4\"/>',\n historial:'<path d=\"M4.8 13a7.5 7.5 0 1 0 1.9-6.3L4.5 9\"/><path d=\"M4.5 4.5V9H9\"/><path d=\"M12 8v4.5l3 2\"/>',\n plantilla:'<rect x=\"4\" y=\"3.5\" width=\"16\" height=\"6\" rx=\"1.5\"/><rect x=\"4\" y=\"12.5\" width=\"7\" height=\"8\" rx=\"1.5\"/><rect x=\"14\" y=\"12.5\" width=\"6\" height=\"8\" rx=\"1.5\"/>',\n ejemplo:'<path d=\"M13.5 3.5H7A1.5 1.5 0 0 0 5.5 5v14A1.5 1.5 0 0 0 7 20.5h10a1.5 1.5 0 0 0 1.5-1.5V8.5z\"/><path d=\"M13.5 3.5v5h5\"/><path d=\"M12 10.5c.35 2.3 1.2 3.15 3.5 3.5-2.3.35-3.15 1.2-3.5 3.5-.35-2.3-1.2-3.15-3.5-3.5 2.3-.35 3.15-1.2 3.5-3.5z\"/>',\n biblioteca:'<path d=\"M4.5 4.5h3v15h-3zM9.5 4.5h3v15h-3z\"/><path d=\"m14.3 5.4 2.9-.8 3.9 14.5-2.9.8z\"/>',\n libro:'<path d=\"M12 6.5c-1.8-1.6-4.3-2.3-8-2v13.5c3.7-.3 6.2.4 8 2 1.8-1.6 4.3-2.3 8-2V4.5c-3.7-.3-6.2.4-8 2z\"/><path d=\"M12 6.5v13.5\"/>',\n catalogo:'<rect x=\"3.5\" y=\"9.5\" width=\"17\" height=\"10.5\" rx=\"1.5\"/><path d=\"M5.5 6.5h13M7.5 3.8h9\"/><path d=\"M9.5 14.8h5\"/>',\n cuenta:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><circle cx=\"12\" cy=\"10\" r=\"3\"/><path d=\"M6.6 18.1a6 6 0 0 1 10.8 0\"/>',\n buzon:'<path d=\"M3.5 13.5h5l1.5 2.5h4l1.5-2.5h5\"/><path d=\"M5.7 5.6a1.5 1.5 0 0 1 1.4-1.1h9.8a1.5 1.5 0 0 1 1.4 1.1l2.2 7.9v5a1.5 1.5 0 0 1-1.5 1.5h-14a1.5 1.5 0 0 1-1.5-1.5v-5z\"/>',\n informacion:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><path d=\"M12 11v5.5\"/><circle cx=\"12\" cy=\"7.8\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n ayuda:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><path d=\"M9.5 9.5a2.5 2.5 0 1 1 3.6 2.2c-.7.4-1.1 1-1.1 1.8v.5\"/><circle cx=\"12\" cy=\"16.8\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n cerrar:'<path d=\"M6 6l12 12M18 6 6 18\"/>',\n // Edición\n deshacer:'<path d=\"M8.5 13.5 4 9l4.5-4.5\"/><path d=\"M4 9h10a5.5 5.5 0 0 1 0 11h-3.5\"/>',\n rehacer:'<path d=\"M15.5 13.5 20 9l-4.5-4.5\"/><path d=\"M20 9H10a5.5 5.5 0 0 0 0 11h3.5\"/>',\n cortar:'<circle cx=\"6.5\" cy=\"17\" r=\"2.8\"/><circle cx=\"17.5\" cy=\"17\" r=\"2.8\"/><path d=\"M8.2 14.8 17 3.5M15.8 14.8 7 3.5\"/>',\n copiar:'<rect x=\"8.5\" y=\"8.5\" width=\"11.5\" height=\"11.5\" rx=\"1.8\"/><path d=\"M15.5 8.5v-3A1.5 1.5 0 0 0 14 4H5.5A1.5 1.5 0 0 0 4 5.5V14a1.5 1.5 0 0 0 1.5 1.5h3\"/>',\n pegar:'<path d=\"M15.5 5H17a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 17 20H7a1.5 1.5 0 0 1-1.5-1.5v-12A1.5 1.5 0 0 1 7 5h1.5\"/><rect x=\"8.5\" y=\"3.5\" width=\"7\" height=\"3.5\" rx=\"1\"/><path d=\"M9 11.5h6M9 15h4\"/>',\n duplicar:'<rect x=\"8.5\" y=\"8.5\" width=\"11.5\" height=\"11.5\" rx=\"1.8\"/><path d=\"M15.5 8.5v-3A1.5 1.5 0 0 0 14 4H5.5A1.5 1.5 0 0 0 4 5.5V14a1.5 1.5 0 0 0 1.5 1.5h3\"/><path d=\"M14.25 11.5v5.5M11.5 14.25H17\"/>',\n eliminar:'<path d=\"M4.5 6.5h15M9.5 6.5v-2h5v2\"/><path d=\"m6.5 6.5.9 12.1a1.5 1.5 0 0 0 1.5 1.4h6.2a1.5 1.5 0 0 0 1.5-1.4l.9-12.1\"/><path d=\"M10.2 10.5v6M13.8 10.5v6\"/>',\n editar:'<path d=\"M14.5 5.5 18.5 9.5\"/><path d=\"M16 4a2 2 0 0 1 2.9 0l1.1 1.1a2 2 0 0 1 0 2.9L9.5 18.5 4.5 19.5l1-5z\"/>',\n buscar:'<circle cx=\"10.5\" cy=\"10.5\" r=\"6\"/><path d=\"m15 15 5 5\"/>',\n reemplazar:'<circle cx=\"9.5\" cy=\"9.5\" r=\"5\"/><path d=\"m13.2 13.2 2.3 2.3\"/><path d=\"M13 19h6.5M17 16.5l2.5 2.5-2.5 2.5\"/>',\n comando:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2\"/><path d=\"m7.5 9.5 3 2.5-3 2.5M12.5 15h4\"/>',\n seleccionar:'<path d=\"M5 4l12.5 6.2-5.3 1.6-2 5.2z\"/><path d=\"m12.4 12 5.6 7\"/>',\n 'seleccionar-todo':'<rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"2\" stroke-dasharray=\"2.6 2.7\"/><path d=\"m8.5 12.2 2.4 2.4 4.6-5\"/>',\n deseleccionar:'<rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"2\" stroke-dasharray=\"2.6 2.7\"/><path d=\"m9 9 6 6M15 9l-6 6\"/>',\n casilla:'<rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"2.5\"/><path d=\"m8 12.3 2.8 2.8L16.2 9\"/>',\n revisar:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><path d=\"m8.3 12.3 2.6 2.6 5-5.2\"/>',\n mas:'<path d=\"M12 5v14M5 12h14\"/>',\n menos:'<path d=\"M5 12h14\"/>',\n 'mas-opciones':'<circle cx=\"5.5\" cy=\"12\" r=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"12\" r=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18.5\" cy=\"12\" r=\"1.5\" fill=\"currentColor\" stroke=\"none\"/>',\n ordenar:'<path d=\"M7.5 20V4M4.5 7l3-3 3 3M16.5 4v16M13.5 17l3 3 3-3\"/>',\n izquierda:'<path d=\"m14.5 6-6 6 6 6\"/>',\n derecha:'<path d=\"m9.5 6 6 6-6 6\"/>',\n arriba:'<path d=\"m6 14.5 6-6 6 6\"/>',\n abajo:'<path d=\"m6 9.5 6 6 6-6\"/>',\n // Vista\n acercar:'<circle cx=\"10.5\" cy=\"10.5\" r=\"6\"/><path d=\"m15 15 5 5M10.5 8v5M8 10.5h5\"/>',\n alejar:'<circle cx=\"10.5\" cy=\"10.5\" r=\"6\"/><path d=\"m15 15 5 5M8 10.5h5\"/>',\n ajustar:'<path d=\"M9 4v3.5A1.5 1.5 0 0 1 7.5 9H4M15 4v3.5A1.5 1.5 0 0 0 16.5 9H20M20 15h-3.5a1.5 1.5 0 0 0-1.5 1.5V20M4 15h3.5A1.5 1.5 0 0 1 9 16.5V20\"/>',\n 'pantalla-completa':'<path d=\"M4 9V5.5A1.5 1.5 0 0 1 5.5 4H9M15 4h3.5A1.5 1.5 0 0 1 20 5.5V9M20 15v3.5a1.5 1.5 0 0 1-1.5 1.5H15M9 20H5.5A1.5 1.5 0 0 1 4 18.5V15\"/>',\n enfoque:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><circle cx=\"12\" cy=\"12\" r=\"4.3\"/><circle cx=\"12\" cy=\"12\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n mosaico:'<rect x=\"3.5\" y=\"5\" width=\"7.5\" height=\"6\" rx=\"1.2\"/><rect x=\"13\" y=\"5\" width=\"7.5\" height=\"6\" rx=\"1.2\"/><rect x=\"3.5\" y=\"13\" width=\"7.5\" height=\"6\" rx=\"1.2\"/><rect x=\"13\" y=\"13\" width=\"7.5\" height=\"6\" rx=\"1.2\"/>',\n tema:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><path d=\"M12 3.5a8.5 8.5 0 0 1 0 17z\" fill=\"currentColor\" stroke=\"none\"/>',\n panel:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2\"/><path d=\"M14.5 4.5v15\"/><path d=\"M16.8 8.5h1.5M16.8 11.5h1.5\"/>',\n 'panel-izquierdo':'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2\"/><path d=\"M9.5 4.5v15\"/><path d=\"M5.7 8.5h1.5M5.7 11.5h1.5\"/>',\n propiedades:'<path d=\"M4 7h9M17 7h3M4 17h3M11 17h9\"/><circle cx=\"15\" cy=\"7\" r=\"2\"/><circle cx=\"9\" cy=\"17\" r=\"2\"/>',\n cuadricula:'<rect x=\"3.5\" y=\"3.5\" width=\"17\" height=\"17\" rx=\"2\"/><path d=\"M9.2 3.5v17M14.8 3.5v17M3.5 9.2h17M3.5 14.8h17\"/>',\n regla:'<rect x=\"2.9\" y=\"8.2\" width=\"18.2\" height=\"7.6\" rx=\"1.4\" transform=\"rotate(-45 12 12)\"/><path d=\"m8.8 9.4 1.6 1.6M11.3 6.9l1.1 1.1M13.8 4.4l1.6 1.6M6.3 11.9l1.1 1.1\"/>',\n visible:'<path d=\"M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/>',\n apilar:'<path d=\"M3.5 7c2.5 0 3-3 4.5-3s2 3 4 3 2.5-1.5 4-1.5 2 1.5 4.5 1.5\"/><path d=\"M3.5 13c2.5 0 3-3 4.5-3s2 3 4 3 2.5-1.5 4-1.5 2 1.5 4.5 1.5\"/><path d=\"M3.5 19c2.5 0 3-3 4.5-3s2 3 4 3 2.5-1.5 4-1.5 2 1.5 4.5 1.5\"/>',\n idioma:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><path d=\"M3.5 12h17\"/><path d=\"M12 3.5c2.3 2.4 3.5 5.2 3.5 8.5s-1.2 6.1-3.5 8.5c-2.3-2.4-3.5-5.2-3.5-8.5S9.7 5.9 12 3.5z\"/>',\n teclado:'<rect x=\"2.5\" y=\"6\" width=\"19\" height=\"12\" rx=\"2\"/><circle cx=\"6.5\" cy=\"10\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"10.2\" cy=\"10\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"13.8\" cy=\"10\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"17.5\" cy=\"10\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M8 14.3h8\"/>',\n codigo:'<path d=\"M8.5 7 3.5 12l5 5M15.5 7l5 5-5 5\"/><path d=\"m13.5 4.5-3 15\"/>',\n asistente:'<path d=\"M10.5 4c.7 4.6 2.4 6.3 7 7-4.6.7-6.3 2.4-7 7-.7-4.6-2.4-6.3-7-7 4.6-.7 6.3-2.4 7-7z\"/><path d=\"M18 3v4M16 5h4\"/>',\n ideas:'<path d=\"M9 17.5v-1.3c0-1-.5-1.8-1.3-2.6A6 6 0 1 1 16.3 13.6c-.8.8-1.3 1.6-1.3 2.6v1.3z\"/><path d=\"M9.5 20.5h5\"/>',\n // Texto\n negrita:'<path d=\"M7 4.5h5.8a3.6 3.6 0 0 1 0 7.2H7zM7 11.7h6.8a3.9 3.9 0 0 1 0 7.8H7z\"/>',\n cursiva:'<path d=\"M10.5 4.5h7M6.5 19.5h7M14 4.5l-4 15\"/>',\n subrayado:'<path d=\"M7 4v7a5 5 0 0 0 10 0V4\"/><path d=\"M5 20h14\"/>',\n tachado:'<path d=\"M4.5 12h15\"/><path d=\"M16 6.8C15.4 5.2 13.9 4.5 12 4.5c-2.4 0-4 1.3-4 3.2 0 1.2.7 2.1 2 2.8\"/><path d=\"M8 17.2c.6 1.6 2.1 2.3 4 2.3 2.5 0 4.2-1.3 4.2-3.3 0-.7-.2-1.3-.6-1.8\"/>',\n resaltar:'<path d=\"m9 14 7.3-7.3a1.9 1.9 0 0 1 2.7 2.7L11.7 16.7\"/><path d=\"m9 14-1.8 1.8L8 19.2l2.4-1.2 1.3-1.3z\"/><path d=\"M4 20.5h3\"/>',\n fuente:'<path d=\"M3.5 18 8 6l4.5 12M5.2 13.5h5.6\"/><circle cx=\"17\" cy=\"15.2\" r=\"2.8\"/><path d=\"M19.8 11.8V18\"/>',\n 'color-texto':'<path d=\"M6.5 15.5 12 3.5l5.5 12M8.4 11.3h7.2\"/><rect x=\"4\" y=\"18.2\" width=\"16\" height=\"2.6\" rx=\".8\" fill=\"currentColor\" stroke=\"none\"/>',\n subindice:'<path d=\"m4 6 8 10M12 6l-8 10\"/><path d=\"M15.4 16.1a1.7 1.7 0 1 1 2.9 1.3L15.4 20.5h3.9\"/>',\n superindice:'<path d=\"m4 8 8 10M12 8l-8 10\"/><path d=\"M15.4 5.1a1.7 1.7 0 1 1 2.9 1.3L15.4 9.5h3.9\"/>',\n encabezado:'<path d=\"M5.5 4.5v15M14.5 4.5v15M5.5 12h9\"/><path d=\"M17.5 12.5l2-1.5v8.5\"/>',\n parrafo:'<path d=\"M13.5 4.5v15M17.5 4.5v15M19.5 4.5H10a4.2 4.2 0 0 0 0 8.4h3.5\"/>',\n lista:'<circle cx=\"5\" cy=\"6.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"5\" cy=\"12\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"5\" cy=\"17.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M9 6.5h11M9 12h11M9 17.5h11\"/>',\n 'lista-numerada':'<path d=\"M4.3 5.3 5.8 4.3v5\"/><path d=\"M4.1 14.7a1.4 1.4 0 1 1 2.5.9L4.1 19h2.8\"/><path d=\"M10 6.8h10M10 16.8h10\"/>',\n tareas:'<rect x=\"3.5\" y=\"4\" width=\"6.5\" height=\"6.5\" rx=\"1.3\"/><path d=\"m5.3 7.3 1.2 1.2 2-2.3\"/><rect x=\"3.5\" y=\"13.5\" width=\"6.5\" height=\"6.5\" rx=\"1.3\"/><path d=\"M13.5 7.2h7M13.5 16.8h7\"/>',\n esquema:'<circle cx=\"5\" cy=\"5.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M8.5 5.5H20\"/><path d=\"M5 9v7.5a2 2 0 0 0 2 2h2M5 12.5h4\"/><path d=\"M12.5 12.5H20M12.5 18.5H20\"/>',\n sangria:'<path d=\"M11 5.5h9M11 10h9M11 14.5h9M4 19h16\"/><path d=\"m4 8.3 3 2.2-3 2.2\"/>',\n 'texto-izquierda':'<path d=\"M4 5.5h16M4 10h10M4 14.5h16M4 19h10\"/>',\n 'texto-centro':'<path d=\"M4 5.5h16M7 10h10M4 14.5h16M7 19h10\"/>',\n 'texto-derecha':'<path d=\"M4 5.5h16M10 10h10M4 14.5h16M10 19h10\"/>',\n justificar:'<path d=\"M4 5.5h16M4 10h16M4 14.5h16M4 19h16\"/>',\n cita:'<path d=\"M5 18c2.6-1 4.2-3.3 4.2-6.8V6.5H5v4.7h4.2\"/><path d=\"M14.8 18c2.6-1 4.2-3.3 4.2-6.8V6.5h-4.2v4.7H19\"/>',\n separador:'<path d=\"M3.5 12h17\"/><path d=\"M4 6h16M4 18h16\" stroke-dasharray=\"0 3\"/>',\n 'salto-pagina':'<path d=\"M6 3.5V8a1.5 1.5 0 0 0 1.5 1.5h9A1.5 1.5 0 0 0 18 8V3.5\"/><path d=\"M6 20.5V16a1.5 1.5 0 0 1 1.5-1.5h9A1.5 1.5 0 0 1 18 16v4.5\"/><path d=\"M3.5 12h2M8.5 12h2M13.5 12h2M18.5 12h2\"/>',\n pagina:'<rect x=\"5\" y=\"3.5\" width=\"14\" height=\"17\" rx=\"1.5\"/><rect x=\"8\" y=\"7\" width=\"8\" height=\"10\" rx=\".5\" stroke-dasharray=\"1.6 2.2\"/>',\n 'nota-pie':'<path d=\"M4 5h9M4 9.5h9M4 14h16\"/><path d=\"M16.5 5.3 18.3 4v6\"/><path d=\"M4 17.8h4M4 20.5h12\"/>',\n // Insertar\n texto:'<path d=\"M5 7V4.5h14V7M12 4.5v15M9 19.5h6\"/>',\n tabla:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"1.8\"/><path d=\"M3.5 9.5h17M3.5 14.5h17M9.2 9.5v10M14.8 9.5v10\"/>',\n imagen:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2\"/><circle cx=\"9\" cy=\"9.5\" r=\"1.7\"/><path d=\"m4 17.5 4.8-4.8 4.2 4.2 2.5-2.5 4.5 4.5\"/>',\n ecuacion:'<path d=\"M3.5 13h2.3l2.9 6.5L12.4 4.5h8.1\"/><path d=\"m14.2 10.5 5 6M19.2 10.5l-5 6\"/>',\n formula:'<path d=\"M11 4.5h-1A2.5 2.5 0 0 0 7.5 7v12.5M4.5 10h6\"/><path d=\"m13.5 11 6 7.5M19.5 11l-6 7.5\"/>',\n grafica:'<path d=\"M4 4v16h16\"/><rect x=\"7.5\" y=\"12\" width=\"3\" height=\"5\" rx=\".5\"/><rect x=\"12.5\" y=\"8\" width=\"3\" height=\"9\" rx=\".5\"/><path d=\"M17.5 17V5.5\"/>',\n enlace:'<path d=\"M10.2 13.8a3.8 3.8 0 0 0 5.4 0l3-3a3.8 3.8 0 0 0-5.4-5.4l-1.2 1.2\"/><path d=\"M13.8 10.2a3.8 3.8 0 0 0-5.4 0l-3 3a3.8 3.8 0 0 0 5.4 5.4l1.2-1.2\"/>',\n referencias:'<path d=\"M7.5 4.5h-3v15h3M16.5 4.5h3v15h-3\"/><path d=\"M10.3 8.8 12.6 7v10\"/>',\n adjunto:'<path d=\"m17 8-7.1 7.1a1.7 1.7 0 0 1-2.4-2.4l7.5-7.5a3.4 3.4 0 0 1 4.8 4.8l-7.6 7.6a5.1 5.1 0 0 1-7.2-7.2l6.6-6.6\"/>',\n comentario:'<path d=\"M5.5 4.5h13A1.5 1.5 0 0 1 20 6v9a1.5 1.5 0 0 1-1.5 1.5H10l-4.5 3.5v-3.5A1.5 1.5 0 0 1 4 15V6a1.5 1.5 0 0 1 1.5-1.5z\"/><path d=\"M8 9h8M8 12h5\"/>',\n pregunta:'<path d=\"M5.5 4.5h13A1.5 1.5 0 0 1 20 6v9a1.5 1.5 0 0 1-1.5 1.5H10l-4.5 3.5v-3.5A1.5 1.5 0 0 1 4 15V6a1.5 1.5 0 0 1 1.5-1.5z\"/><path d=\"M10 8.6a2 2 0 1 1 2.8 1.8c-.5.3-.8.7-.8 1.3\"/><circle cx=\"12\" cy=\"14\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/>',\n notas:'<rect x=\"3.5\" y=\"3.5\" width=\"17\" height=\"9.5\" rx=\"1.5\"/><path d=\"M4 16.5h16M4 20h10\"/>',\n anotar:'<path d=\"M4.5 5.5A1.5 1.5 0 0 1 6 4h12a1.5 1.5 0 0 1 1.5 1.5V14L14 19.5H6a1.5 1.5 0 0 1-1.5-1.5z\"/><path d=\"M19.5 14h-4A1.5 1.5 0 0 0 14 15.5v4\"/><path d=\"M8 8.5h8M8 12h4.5\"/>',\n pendientes:'<path d=\"M5.5 20.5V4\"/><path d=\"M5.5 4.5h11.8l-2.6 4.3 2.6 4.2H5.5\"/>',\n tiempo:'<circle cx=\"12\" cy=\"13.5\" r=\"7\"/><path d=\"M12 13.5V10M10 3.5h4M12 3.5v3M17.3 7.6l1.3-1.3\"/>',\n microfono:'<rect x=\"9\" y=\"3.5\" width=\"6\" height=\"10.5\" rx=\"3\"/><path d=\"M5.5 11.5a6.5 6.5 0 0 0 13 0M12 18v2.5M9 20.5h6\"/>',\n // Objetos\n forma:'<circle cx=\"8.5\" cy=\"8.5\" r=\"4.5\"/><rect x=\"11.5\" y=\"11.5\" width=\"9\" height=\"9\" rx=\"1.2\"/>',\n flecha:'<path d=\"M4 12h15.5M14 6.5l5.5 5.5-5.5 5.5\"/>',\n linea:'<path d=\"M6.2 17.8 17.8 6.2\"/><circle cx=\"5\" cy=\"19\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"19\" cy=\"5\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/>',\n grosor:'<path d=\"M4 5.5h16\"/><rect x=\"4\" y=\"10\" width=\"16\" height=\"2.4\" rx=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><rect x=\"4\" y=\"16\" width=\"16\" height=\"3.8\" rx=\"1.6\" fill=\"currentColor\" stroke=\"none\"/>',\n color:'<path d=\"M12 3.5c3.3 4 5.5 7.2 5.5 10a5.5 5.5 0 0 1-11 0c0-2.8 2.2-6 5.5-10z\"/><path d=\"M9.3 14a2.8 2.8 0 0 0 2.2 2.8\"/>',\n paleta:'<path d=\"M12 3.5a8.5 8.5 0 0 0 0 17c1.2 0 1.8-.7 1.8-1.6 0-.5-.2-.9-.5-1.3s-.5-.8-.5-1.3c0-.9.7-1.6 1.6-1.6h1.9a4.2 4.2 0 0 0 4.2-4.2c0-3.9-3.8-7-8.5-7z\"/><circle cx=\"7.8\" cy=\"11.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"9.8\" cy=\"7.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"14.5\" cy=\"7.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n pincel:'<path d=\"m20 4-8.3 8.9\"/><path d=\"M11.5 12.6a2.8 2.8 0 0 0-4 0c-1.2 1.2-.5 3.4-3.5 4.6 2 1.9 5.8 2.1 7.4.5a2.8 2.8 0 0 0 .1-5.1z\"/>',\n recortar:'<path d=\"M7 3.5v12a1.5 1.5 0 0 0 1.5 1.5h12\"/><path d=\"M3.5 7h12A1.5 1.5 0 0 1 17 8.5v12\"/>',\n agrupar:'<rect x=\"7\" y=\"7\" width=\"5\" height=\"5\" rx=\"1\"/><rect x=\"12\" y=\"12\" width=\"5\" height=\"5\" rx=\"1\"/><path d=\"M3.5 6.5v-2a1 1 0 0 1 1-1h2M17.5 3.5h2a1 1 0 0 1 1 1v2M20.5 17.5v2a1 1 0 0 1-1 1h-2M6.5 20.5h-2a1 1 0 0 1-1-1v-2\"/>',\n desagrupar:'<rect x=\"3.5\" y=\"3.5\" width=\"8\" height=\"8\" rx=\"1.5\"/><rect x=\"12.5\" y=\"12.5\" width=\"8\" height=\"8\" rx=\"1.5\"/>',\n girar:'<rect x=\"4\" y=\"10\" width=\"9.5\" height=\"10\" rx=\"1.5\"/><path d=\"M7.5 6.3A8.5 8.5 0 0 1 19 12.8\"/><path d=\"m15.9 11.2 3.1 1.6 1.5-3.1\"/>',\n subir:'<path d=\"M12 20V8M6.5 13.5 12 8l5.5 5.5M5 4h14\"/>',\n bajar:'<path d=\"M12 4v12M6.5 10.5 12 16l5.5-5.5M5 20h14\"/>',\n 'traer-al-frente':'<path d=\"M7.5 15.5H5A1.5 1.5 0 0 1 3.5 14V5A1.5 1.5 0 0 1 5 3.5h9A1.5 1.5 0 0 1 15.5 5v2.5\"/><rect x=\"9\" y=\"9\" width=\"11.5\" height=\"11.5\" rx=\"1.5\" fill=\"currentColor\" stroke=\"none\"/>',\n 'enviar-al-fondo':'<path d=\"M5 3.5h9A1.5 1.5 0 0 1 15.5 5v2H8.5A1.5 1.5 0 0 0 7 8.5v7H5A1.5 1.5 0 0 1 3.5 14V5A1.5 1.5 0 0 1 5 3.5z\" fill=\"currentColor\" stroke=\"none\"/><rect x=\"9\" y=\"9\" width=\"11.5\" height=\"11.5\" rx=\"1.5\"/>',\n 'alinear-izquierda':'<path d=\"M4 3.5v17\"/><rect x=\"7\" y=\"6\" width=\"12.5\" height=\"4.5\" rx=\"1.2\"/><rect x=\"7\" y=\"13.5\" width=\"7.5\" height=\"4.5\" rx=\"1.2\"/>',\n 'alinear-centro':'<path d=\"M12 3.5v2.5M12 10.5v3M12 18v2.5\"/><rect x=\"5\" y=\"6\" width=\"14\" height=\"4.5\" rx=\"1.2\"/><rect x=\"7.5\" y=\"13.5\" width=\"9\" height=\"4.5\" rx=\"1.2\"/>',\n 'alinear-derecha':'<path d=\"M20 3.5v17\"/><rect x=\"4.5\" y=\"6\" width=\"12.5\" height=\"4.5\" rx=\"1.2\"/><rect x=\"9.5\" y=\"13.5\" width=\"7.5\" height=\"4.5\" rx=\"1.2\"/>',\n 'alinear-arriba':'<path d=\"M3.5 4h17\"/><rect x=\"6\" y=\"7\" width=\"4.5\" height=\"12.5\" rx=\"1.2\"/><rect x=\"13.5\" y=\"7\" width=\"4.5\" height=\"7.5\" rx=\"1.2\"/>',\n 'alinear-medio':'<path d=\"M3.5 12h2.5M10.5 12h3M18 12h2.5\"/><rect x=\"6\" y=\"5\" width=\"4.5\" height=\"14\" rx=\"1.2\"/><rect x=\"13.5\" y=\"7.5\" width=\"4.5\" height=\"9\" rx=\"1.2\"/>',\n 'alinear-abajo':'<path d=\"M3.5 20h17\"/><rect x=\"6\" y=\"4.5\" width=\"4.5\" height=\"12.5\" rx=\"1.2\"/><rect x=\"13.5\" y=\"9.5\" width=\"4.5\" height=\"7.5\" rx=\"1.2\"/>',\n 'distribuir-horizontal':'<path d=\"M4 3.5v17M20 3.5v17\"/><rect x=\"9.5\" y=\"7\" width=\"5\" height=\"10\" rx=\"1.2\"/>',\n 'distribuir-vertical':'<path d=\"M3.5 4h17M3.5 20h17\"/><rect x=\"7\" y=\"9.5\" width=\"10\" height=\"5\" rx=\"1.2\"/>',\n // Presentar\n presentar:'<path d=\"M7 5v14a1 1 0 0 0 1.5.9l11-7a1 1 0 0 0 0-1.8l-11-7A1 1 0 0 0 7 5z\"/>',\n 'presentar-desde-aqui':'<path d=\"M4.5 5v14\"/><path d=\"M9 5.8v12.4a.9.9 0 0 0 1.4.8l9.3-6.2a.9.9 0 0 0 0-1.6L10.4 5a.9.9 0 0 0-1.4.8z\"/>',\n presentador:'<rect x=\"3.5\" y=\"4\" width=\"17\" height=\"12.5\" rx=\"1.5\"/><rect x=\"6\" y=\"6.5\" width=\"7\" height=\"5\" rx=\".6\"/><path d=\"M15.5 7h2.5M15.5 10h2.5M6 14h12\"/><path d=\"M12 16.5v3.5M8.5 20h7\"/>',\n transicion:'<rect x=\"9.5\" y=\"5.5\" width=\"11\" height=\"13\" rx=\"1.5\"/><path d=\"M6.5 8v8M3.5 10v4\"/>',\n efecto:'<path d=\"m4 20 11-11\"/><path d=\"m13 7 4 4\"/><path d=\"M18 3v3M16.5 4.5h3M20 10v3M18.5 11.5h3M9 3.5v3M7.5 5h3\"/>',\n accesibilidad:'<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><circle cx=\"12\" cy=\"7.6\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"m7.8 10.3 4.2.9 4.2-.9M12 11.2v2.8l-2.3 3.8M12 14l2.3 3.8\"/>',\n publico:'<circle cx=\"9\" cy=\"8\" r=\"3\"/><path d=\"M3.5 19.5a5.5 5.5 0 0 1 11 0\"/><path d=\"M15.5 5.3a3 3 0 0 1 0 5.4M17.5 14.3a5.5 5.5 0 0 1 3 5.2\"/>',\n ramas:'<circle cx=\"6.5\" cy=\"5.5\" r=\"2\"/><circle cx=\"6.5\" cy=\"18.5\" r=\"2\"/><circle cx=\"17.5\" cy=\"7.5\" r=\"2\"/><path d=\"M6.5 7.5v9\"/><path d=\"M17.5 9.5c0 3.8-3 4.5-6.5 5.2-2 .4-3.5 1-4.2 2\"/>',\n // Ciencia y datos\n experimento:'<path d=\"M9.5 3.5h5M10.5 3.5V9l-5.4 9.3a1.4 1.4 0 0 0 1.2 2.2h11.4a1.4 1.4 0 0 0 1.2-2.2L13.5 9V3.5\"/><path d=\"M7.3 14.5h9.4\"/>',\n molecula:'<circle cx=\"6.5\" cy=\"7\" r=\"2.5\"/><circle cx=\"17.5\" cy=\"8\" r=\"2.5\"/><circle cx=\"11\" cy=\"17.5\" r=\"2.5\"/><path d=\"M9 7.2l6 .6M16.1 10.1l-3.8 5.3M7.4 9.3l2.7 5.9\"/>',\n reaccion:'<path d=\"M4 9h15.5M16 5.5 19.5 9\"/><path d=\"M20 15H4.5M8 18.5 4.5 15\"/>',\n cristal:'<path d=\"M12 3.5 19.5 7.7v8.6L12 20.5l-7.5-4.2V7.7z\"/><path d=\"M4.5 7.7 12 12l7.5-4.3M12 12v8.5\"/><circle cx=\"12\" cy=\"12\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"3.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"4.5\" cy=\"16.3\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"19.5\" cy=\"16.3\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n microscopio:'<path d=\"m9.6 3.2 3.5 2-3.6 6.2-3.5-2z\"/><path d=\"m7.8 11.2-.9 1.5\"/><path d=\"M13.6 8.2a5.8 5.8 0 0 1 .9 10.3\"/><path d=\"M8.5 15.5h4\"/><path d=\"M5 20.5h14\"/>',\n espectro:'<path d=\"M3.5 4v16.5H20\"/><path d=\"M6.5 15.5c1.5 0 2-8.5 3.5-8.5s1.8 6 3.2 6 1.4-3 2.8-3 1.4 5.5 3.5 5.5\"/>',\n picos:'<path d=\"M3.5 4v16.5H20\"/><path d=\"M6.5 17.5 9 9.5l2.5 8 2.5-5 2.5 5\"/><circle cx=\"9\" cy=\"5.8\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"14\" cy=\"8.8\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n 'linea-base':'<path d=\"M3.5 4v16.5H20\"/><path d=\"M6.5 13c2-.3 2.5-5.5 4-5.5s1.8 4 3.2 4 1.5-2 2.8-2 1.3 2 3 1.9\"/><path d=\"M6.5 16.5h13\" stroke-dasharray=\"1.6 2.4\"/>',\n bandas:'<path d=\"M3.5 4v16.5H20\"/><path d=\"M5.5 17.5c2.2 0 2.6-7.5 4.5-7.5s2.3 7.5 4.5 7.5\"/><path d=\"M9.5 17.5c2.2 0 2.6-11 4.5-11s2.3 11 4.5 11\"/>',\n area:'<path d=\"M3.5 4v16.5H20\"/><path d=\"M6 17.5c2.5 0 3.5-10 6-10s3.5 10 6 10\"/><path d=\"M9.6 17.5c.9-2.6 1.4-6.2 2.4-6.2s1.5 3.6 2.4 6.2z\" fill=\"currentColor\" stroke=\"none\"/>',\n suavizado:'<path d=\"m3.5 9 2-3.5 2 5 2-5.5 2 5 2-4 2 4.5 2-3.5 2.5 2\"/><path d=\"M3.5 17.5c2.5 0 3.5-3.5 6-3.5s3.5 3.5 6 3.5c2 0 3.2-1.5 5-1.5\"/>',\n normalizar:'<path d=\"M3.5 5h17\" stroke-dasharray=\"0 3\"/><path d=\"M3.5 19.5h17\"/><path d=\"M5 19.5c1.5 0 2-14.5 3.5-14.5S10.5 19.5 12 19.5c1.5 0 2-14.5 3.5-14.5s2 14.5 3.5 14.5\"/>',\n serie:'<path d=\"M3.5 4v16.5H20\"/><path d=\"m7 15 3.5-4 3 2.5L18 7\"/><circle cx=\"7\" cy=\"15\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"10.5\" cy=\"11\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"13.5\" cy=\"13.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18\" cy=\"7\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n modelo:'<path d=\"M3.5 4v16.5H20\"/><path d=\"M6.5 16.5c4 0 6.5-1.5 8.5-4.5s3-5 4.5-6\"/><circle cx=\"8\" cy=\"14\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"15\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"14\" cy=\"10\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18.5\" cy=\"8.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/>',\n mapa:'<rect x=\"3.75\" y=\"3.75\" width=\"4.5\" height=\"4.5\" rx=\".8\" fill=\"currentColor\" stroke=\"none\"/><rect x=\"9.75\" y=\"3.75\" width=\"4.5\" height=\"4.5\" rx=\".8\"/><rect x=\"15.75\" y=\"3.75\" width=\"4.5\" height=\"4.5\" rx=\".8\"/><rect x=\"3.75\" y=\"9.75\" width=\"4.5\" height=\"4.5\" rx=\".8\"/><rect x=\"9.75\" y=\"9.75\" width=\"4.5\" height=\"4.5\" rx=\".8\" fill=\"currentColor\" stroke=\"none\"/><rect x=\"15.75\" y=\"9.75\" width=\"4.5\" height=\"4.5\" rx=\".8\"/><rect x=\"3.75\" y=\"15.75\" width=\"4.5\" height=\"4.5\" rx=\".8\"/><rect x=\"9.75\" y=\"15.75\" width=\"4.5\" height=\"4.5\" rx=\".8\"/><rect x=\"15.75\" y=\"15.75\" width=\"4.5\" height=\"4.5\" rx=\".8\" fill=\"currentColor\" stroke=\"none\"/>',\n corridas:'<circle cx=\"6\" cy=\"6\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"6\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18\" cy=\"6\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"6\" cy=\"12\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"12\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18\" cy=\"12\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"6\" cy=\"18\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"18\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18\" cy=\"18\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/>',\n analizar:'<path d=\"M4 20V13M8.5 20V9M13 20v-3\"/><circle cx=\"15.5\" cy=\"9\" r=\"4\"/><path d=\"m18.5 12 2.5 2.5\"/>',\n comparar:'<path d=\"M12 3.5v17\"/><rect x=\"3.5\" y=\"6\" width=\"6\" height=\"12\" rx=\"1.5\"/><rect x=\"14.5\" y=\"6\" width=\"6\" height=\"12\" rx=\"1.5\"/>',\n datos:'<ellipse cx=\"12\" cy=\"6\" rx=\"7.5\" ry=\"2.5\"/><path d=\"M4.5 6v12c0 1.4 3.4 2.5 7.5 2.5s7.5-1.1 7.5-2.5V6\"/><path d=\"M4.5 12c0 1.4 3.4 2.5 7.5 2.5s7.5-1.1 7.5-2.5\"/>',\n unidades:'<path d=\"M4 7.5h16M4 16.5h16\"/><path d=\"M7 5v5M11 6v3M15 6v3M19 5v5M7 14v5M11 15v3M15 15v3M19 14v5\"/>',\n leyenda:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2\"/><circle cx=\"7.5\" cy=\"9.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"7.5\" cy=\"14.5\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M10.5 9.5h6M10.5 14.5h6\"/>',\n celda:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"1.8\"/><path d=\"M3.5 9.5h17M3.5 14.5h17M9.2 4.5v15M14.8 4.5v15\"/><rect x=\"9.2\" y=\"9.5\" width=\"5.6\" height=\"5\" fill=\"currentColor\" stroke=\"none\"/>',\n filas:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"1.8\"/><path d=\"M9.2 4.5v5M14.8 4.5v5M9.2 14.5v5M14.8 14.5v5\"/><rect x=\"3.5\" y=\"9.5\" width=\"17\" height=\"5\" fill=\"currentColor\" stroke=\"none\"/>',\n columnas:'<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"1.8\"/><path d=\"M3.5 9.5h5.7M3.5 14.5h5.7M14.8 9.5h5.7M14.8 14.5h5.7\"/><rect x=\"9.2\" y=\"4.5\" width=\"5.6\" height=\"15\" fill=\"currentColor\" stroke=\"none\"/>'\n};\n\nconst nombresIconos=Object.freeze(Object.keys(iconos));\n\nconst escapar=s=>String(s).replace(/[&<>\"]/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;'}[c]));\n\nfunction icono(id,{titulo}={}){\n const interior=Object.prototype.hasOwnProperty.call(iconos,id)?iconos[id]:undefined;\n if(interior===undefined)throw new Error(`icono: id de icono desconocido: ${id}`);\n const t=titulo?`<title>${escapar(titulo)}</title>`:'';\n return `<svg class=\"erlen-icono\" data-icono=\"${id}\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\">${t}${interior}</svg>`;\n}\n\nreturn {icono,iconos,nombresIconos};})();\n",
  "src/diseno/suite-inicio.js": "/* erlen-diseno 2.11.8 · generado por @erlen/design/tools/generate; no editar a mano */\nconst erlenInicio=(()=>{\n/* Familia propia de iconos de Erlen Suite. Fuente única del markup congelado\n   (plan erlen-iconos): cada glifo es el contenido interno de UNA línea, sin\n   <svg> envolvente; glifo(id) lo envuelve con la gramática fija del portal.\n   La marca (favicon/og) vive en web/recursos/favicon.svg, no aquí. */\nconst glifosProducto={\n slides:'<rect x=\"3\" y=\"4\" width=\"18\" height=\"12\" rx=\"2\"/><path d=\"M6.8 8.4h5.2M6.8 11.4h3.4\"/><rect x=\"14\" y=\"7.8\" width=\"3.8\" height=\"3.8\" rx=\"0.8\"/><path d=\"M12 16v4M8.5 20h7\"/>',\n notes:'<rect x=\"6\" y=\"3\" width=\"13\" height=\"18\" rx=\"2\"/><path d=\"M4.2 7.5h3.6M4.2 12h3.6M4.2 16.5h3.6\"/><path d=\"M11 8.5h5M11 12h5\"/><circle cx=\"15.5\" cy=\"16.2\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/>',\n lens:'<circle cx=\"10\" cy=\"10\" r=\"5.5\"/><path d=\"m14 14 5 5\"/><path d=\"M7.5 8.5h5M7.5 11.5h3.5\"/>',\n pentagrama:'<path d=\"M4 5h16M4 9h16M4 13h16M4 17h16\"/><circle cx=\"9\" cy=\"15\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M10.4 15V7.5\"/>',\n documents:'<path d=\"M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z\"/><path d=\"M14 3v6h6\"/><path d=\"M9.5 13h5\"/><circle cx=\"12\" cy=\"10\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"16\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M8.5 18.8h7\"/>',\n spreadsheets:'<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"M3 9h18M12 9v11\"/><circle cx=\"7\" cy=\"12.6\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"8.6\" cy=\"15.6\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M16.5 11.5v6M15.2 11.5h2.6M15.2 17.5h2.6\"/>',\n figures:'<rect x=\"3\" y=\"4\" width=\"10\" height=\"10\" rx=\"1.5\"/><circle cx=\"8\" cy=\"9\" r=\"2.4\"/><rect x=\"16\" y=\"4\" width=\"5\" height=\"4.5\" rx=\"1\"/><rect x=\"16\" y=\"11.5\" width=\"5\" height=\"4.5\" rx=\"1\"/><path d=\"M3 19.5h6.5M3 18.2v2.6M9.5 18.2v2.6\"/>',\n ftir:'<path d=\"M3 5v14h18\"/><path d=\"M5.5 8h2.2l1.5 7L10.7 8h3.6l1.5 7L17.3 8h1.2\"/>',\n doe:'<rect x=\"6\" y=\"6\" width=\"12\" height=\"12\" rx=\"1.5\"/><path d=\"M12 2.5V6M12 18v3.5M2.5 12H6M18 12h3.5\"/><circle cx=\"12\" cy=\"12\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/>',\n xrd:'<path d=\"M3 5v14h18\"/><path d=\"M5 17h2l1.2-10 1.2 10h2.4l1-6 1 6h2.2l.8-3.5.8 3.5H20\"/>',\n xps:'<circle cx=\"9\" cy=\"14\" r=\"5\"/><circle cx=\"9\" cy=\"14\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><path d=\"m13 10 6.5-6.5\"/><path d=\"M15.5 3.5h4v4\"/>',\n thermal:'<path d=\"M10 4.5a2 2 0 0 1 4 0v9.2a4 4 0 1 1-4 0z\"/><path d=\"M12 9v7.5\"/><circle cx=\"12\" cy=\"17\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M16.5 6h3M16.5 9.5h2\"/>',\n rmn:'<path d=\"M3 5v14h18\"/><path d=\"M5 17h2l.8-5 .8 5H11l1-11 1 11h3l.8-7 .8 7H20\"/><path d=\"M7 21h11\"/>',\n methods:'<rect x=\"5\" y=\"4\" width=\"14\" height=\"17\" rx=\"2\"/><path d=\"M9 4V2.8h6V4\"/><path d=\"m8.3 10 1.2 1.2 2-2M8.3 15l1.2 1.2 2-2\"/><path d=\"M13.8 10.4h2.7M13.8 15.4h2.7\"/>',\n dft:'<path d=\"M3 5v14h18\"/><path d=\"M5.5 16.5Q9 10.5 12.5 16.5\"/><path d=\"M11.5 6.5Q15 12.5 18.5 6.5\"/>',\n fem:'<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"1\"/><path d=\"M3 4 12 12 21 4M3 20 12 12 21 20M12 4v16M3 12h18\"/>',\n learn:'<path d=\"M3 5.5c3-1.2 6-1.2 9 .6 3-1.8 6-1.8 9-.6V19c-3-1.2-6-1.2-9 .6-3-1.8-6-1.8-9-.6z\"/><path d=\"M12 6.1v13.5\"/><circle cx=\"17\" cy=\"10\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/>',\n analyze:'<path d=\"M3 5v14h18\"/><path d=\"M5.5 15.5 18.5 7.5\"/><circle cx=\"8.5\" cy=\"12.4\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"15.5\" cy=\"9.2\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M4.5 18.5h2.6M9.5 18.5h2.6M14.5 18.5h2.6\"/>',\n data:'<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"M3 9h18M9 9v11M15 9v11\"/><circle cx=\"6\" cy=\"13\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18\" cy=\"15.5\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/>',\n projects:'<rect x=\"3\" y=\"5\" width=\"9\" height=\"7\" rx=\"1.5\"/><rect x=\"12\" y=\"12\" width=\"9\" height=\"7\" rx=\"1.5\"/><path d=\"M7.5 12v3.5a2 2 0 0 0 2 2H12\"/><circle cx=\"7.5\" cy=\"8.5\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/>',\n release:'<path d=\"M4 8.5 12 5l8 3.5V16l-8 4-8-4z\"/><path d=\"M4 8.5 12 12.5l8-4M12 12.5V20\"/>',\n burocracy:'<path d=\"M3 8a2 2 0 0 1 2-2h5l2 2h7a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"/><path d=\"M3.5 11h17\"/><path d=\"m8.5 15 2 2 4-4\"/>',\n novelty:'<path d=\"M10 3h7a2 2 0 0 1 2 2v9\"/><circle cx=\"9.5\" cy=\"14.5\" r=\"5.5\"/><path d=\"m13.6 18.6 4.4 4.4\"/><path d=\"m7.2 14.6 1.7 1.7 3.2-3.2\"/>',\n research:'<path d=\"M10 3v6L5.6 17a3.4 3.4 0 0 0 3 5h6.8a3.4 3.4 0 0 0 3-5L14 9V3\"/><path d=\"M8.5 3h7\"/><path d=\"M8.2 15h7.6\"/><ellipse cx=\"12\" cy=\"12\" rx=\"10\" ry=\"3.8\" transform=\"rotate(-16 12 12)\"/>'\n};\nfunction glifo(id){\n const inner=glifosProducto[id];\n if(inner===undefined)throw new Error(`glifo: id de icono desconocido: ${id}`);\n return `<svg class=\"icon\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" data-icono=\"${id}\">${inner}</svg>`;\n}\n\nfunction iconoAplicacion(id){const inner=glifosProducto[id];if(!inner)throw new Error(\"Aplicación desconocida: \"+id);return `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\"><defs><linearGradient id=\"mineral\" x2=\"1\" y2=\"1\"><stop stop-color=\"#fdfdfb\"/><stop offset=\"1\" stop-color=\"#dce7df\"/></linearGradient></defs><rect x=\"3\" y=\"3\" width=\"122\" height=\"122\" rx=\"30\" fill=\"url(#mineral)\" stroke=\"#bdcec3\"/><path d=\"M30 4h68c14 0 26 12 26 26v7\" fill=\"none\" stroke=\"#fff\" stroke-width=\"2\"/><g transform=\"translate(28 28) scale(3)\" fill=\"none\" stroke=\"#225747\" stroke-width=\"1.35\" stroke-linecap=\"round\" stroke-linejoin=\"round\">${inner}</g></svg>`;}\n\n// El SVG es local y conserva su significado en una pestaña o acceso instalado.\nfunction aplicarIconoAplicacion(doc,id){\n if(!doc?.head||!glifosProducto[id])return;\n let enlace=doc.querySelector('link[rel=\"icon\"]');\n if(!enlace){enlace=doc.createElement('link');enlace.rel='icon';doc.head.append(enlace);}\n enlace.type='image/svg+xml';enlace.href='data:image/svg+xml,'+encodeURIComponent(iconoAplicacion(id));\n}\n\n// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n/* Mey, la mascota de Erlen (docs/MARCA.md del portal), en pixel art. Fuente única de sus\n   poses: el portal genera con ella web/recursos/mey/*.svg y el favicon (herramientas/mey.mjs)\n   y las apps la usan para pintar a Mey en su interfaz (por ejemplo, en los estados vacíos de\n   diseno/suite-inicio.mjs). No importa nada: también se sirve como IIFE (const erlenMey).\n\n   mey('hola')                    → '<svg class=\"erlen-mey\" …>' decorativo (aria-hidden)\n   mey('pensando', {titulo:'…'})  → con role=\"img\" y <title>, si la pose informa por sí sola\n   mey('hola', {tile:true})       → el ícono: 16×16 sobre el tile violeta\n   mey.poses                      → ['hola', 'pensando', …]\n\n   Cada pose es una cuadrícula de 16×14 celdas. Leyenda: g vidrio · w líquido, brazos y patas\n   · e ojos y trazos en tinta · x acento · p papel · . vacío. El líquido sube por los\n   bordes del matraz como agua por capilaridad y se divide abajo en dos perneras: no es una boca.\n   Los colores son los de la marca, fijos en claro y en oscuro para distinguir el líquido\n   del vidrio. Se muestra en múltiplos de\n   16 px de ancho para que los píxeles salgan parejos. */\nconst COLOR_MEY={g:'#83d4ad',w:'#177451',e:'#18171b',x:'#59368b',p:'#fdfdfd',r:'#e4007c',n:'#f29d0a',a:'#94621e'};\n// Autorizado por el usuario el 2026-10-04: más colores para Mey, independientes del portal.\nconst PALETAS_MEY=Object.freeze({\n verde:Object.freeze({g:'#83d4ad',w:'#177451'}),\n violeta:Object.freeze({g:'#d9c8ef',w:'#59368b'}),\n azul:Object.freeze({g:'#b9dff5',w:'#205e94'}),\n cobre:Object.freeze({g:'#f2d0b9',w:'#864522'}),\n rosa:Object.freeze({g:'#f8bddc',w:'#a7005a'}),\n cempasuchil:Object.freeze({g:'#ffe0a3',w:'#9c5800'})\n});\nfunction coloresMey(color='verde'){\n if(!Object.hasOwn(PALETAS_MEY,color))throw new Error('mey: color desconocido: '+color);\n return {...COLOR_MEY,...PALETAS_MEY[color]};\n}\nconst TILE_MEY='#59368b';\nconst POSES_MEY={\n hola: `\n................\n................\n.....gggggg.....\n......gggg......\n......gggg......\n.....gggggg.....\n....gggggggg....\n....geggggeg.ww.\n...ggeggggeggw..\n...ggggggggggw..\n.wwwwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n pensando: `\n.............g..\n...........g....\n.....gggggg.....\n......gggg......\n......gggg......\n.....gggggg.....\n....ggeggge.....\n....ggegggeg....\n...gggggggggg...\n...ggggggggggw..\n.wwwwwwggwwwwww.\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n exito: `\n..............x.\n.x...gggggg..xxx\nxxx...gggg....x.\n.x....gggg......\n.....gggggg.....\n.w..gggggggg..w.\n..w.geggggeg.w..\n..wgegeggegegw..\n...gggggggggg...\n...wwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n.....w....w.....\n................`,\n aviso: `\n................\n..............w.\n.....gggggg..ww.\n......gggg......\n......gggg......\n.....geggeg.....\n....gggggggg....\n.w..geggggeg..w.\n.wwggeggggeggww.\n...gggggggggg...\n...wwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n dormido: `\n............xxx.\n.............x..\n.....gggggg.xxx.\n......gggg......\n......gggg......\n.....gggggg.....\n....gggggggg....\n....gggggggg....\n...geeggggeeg...\n...gggggggggg...\n...gggggggggg...\n.wwwwwwggwwwwww.\n...wwww..wwww...\n...www....www...`,\n\n leyendo: `\n................\n................\n.....gggggg.....\n......gggg......\n......gggg......\n.....gggggg.....\n....gggggggg....\n....gggggggg....\n...ggeggggegg...\n...ggeggggegg...\n.wxppppxxppppxw.\n..xxxxxxxxxxxx..\n...wwww..wwww...\n....ww....ww....`,\n midiendo: `\n............xxx.\n............xpx.\n.....gggggg.xpx.\n......gggg..xpx.\n......gggg..xpx.\n.....gggggg.xxx.\n....ggegggeg.x..\n....ggegggeg.w..\n...ggggggggggw..\n...gggggggggg...\n.wwwwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n graficando: `\n................\n...........e....\n.....gggggge.x..\n......gggg.e.x..\n......gggg.ewxw.\n.....ggggggewxw.\n....gggggggeeeee\n....geggggeg..w.\n...ggeggggeggw..\n...gggggggggg...\n.wwwwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`\n};\n\n/* La cuadrícula de trabajo lleva ALTO_MEY filas libres encima de la pose (16×18): ahí caben el\n   sombrero de charro, el papel picado y las burbujas. Si nada las ocupa, el SVG sale a 16×14 y\n   es idéntico al de siempre. */\nconst ALTO_MEY=4;\nconst vacia=()=>Array(16).fill('.');\n\nfunction filasMey(pose){\n const arte=POSES_MEY[pose];\n if(arte===undefined)throw new Error('mey: pose desconocida: '+pose);\n return arte.trim().split('\\n').map(f=>f.split(''));\n}\n\nfunction celdasMey(filas,dy,colores=COLOR_MEY,material=false){\n let r='';\n filas.forEach((fila,y)=>{\n  if(fila.length!==16)throw new Error('mey: la fila '+y+' mide '+fila.length+', no 16');\n  for(let x=0;x<16;){\n   const c=fila[x];\n   if(c==='.'){x++;continue;}\n   if(!colores[c])throw new Error('mey: celda desconocida «'+c+'» en ('+x+','+y+')');\n   let n=1;\n   while(x+n<16&&colores[fila[x+n]]===colores[c])n++;\n   r+='<rect x=\"'+x+'\" y=\"'+(y+dy)+'\" width=\"'+n+'\" height=\"1\" fill=\"'+colores[c]+'\"'+(material?' data-mey-pigmento=\"'+c+'\"':'')+'/>';\n   x+=n;\n  }\n });\n return r;\n}\n\n// El contorno gana pasos conectados de 1/2 y 1/4 de celda en tamaños grandes.\n// El favicon de 16 px conserva la cuadrícula simple para no emborronarse.\nfunction detallesMey(filas,dy,colores=COLOR_MEY,material=false){\n let r='';\n const punto=(x,y,c,t=.5)=>{r+='<rect x=\"'+x+'\" y=\"'+(y+dy)+'\" width=\"'+t+'\" height=\"'+t+'\" fill=\"'+colores[c]+'\"'+(material?' data-mey-pigmento=\"'+c+'\"':'')+'/>';};\n // Capilaridad en tres alturas: junto al vidrio, en el cuerpo y en el centro.\n // No hay línea de tinta ni rasgos faciales nuevos.\n for(let y=ALTO_MEY+8;y<filas.length-2;y++){\n  if(filas[y].slice(3,13).join('')==='wwwwggwwww'&&filas[y+1].slice(3,13).every(c=>c==='w')){\n   for(const x of [3,3.5,12,12.5])if(filas[y-1][Math.floor(x)]==='g')punto(x,y-.5,'w');\n   for(const x of [7,7.5,8,8.5])punto(x,y+.5,'w');\n  }\n }\n // Transiciones de vidrio: cada escalón toca la fila anterior y la siguiente.\n // No se añaden reflejos en la cabeza ni fragmentos flotantes fuera de los brazos.\n for(let y=ALTO_MEY+2;y<ALTO_MEY+9;y++){\n  const bordes=f=>[f.findIndex(c=>c==='g'),f.lastIndexOf('g')];\n  const [izq,der]=bordes(filas[y]),[sigIzq,sigDer]=bordes(filas[y+1]);\n  if(izq>=3&&izq<=6&&sigIzq>=3&&sigIzq<=6){\n   if(sigIzq===izq-1){punto(izq-.25,y+.25,'g',.25);punto(izq-.5,y+.5,'g');}\n   if(sigIzq===izq+1){punto(sigIzq-.5,y+1,'g');punto(sigIzq-.25,y+1.5,'g',.25);}\n  }\n  if(der>=9&&der<=12&&sigDer>=9&&sigDer<=12){\n   if(sigDer===der+1){punto(der+1,y+.25,'g',.25);punto(der+1,y+.5,'g');}\n   if(sigDer===der-1){punto(sigDer+1,y+1,'g');punto(sigDer+1,y+1.5,'g',.25);}\n  }\n }\n return r;\n}\n\n// Contornos de regiones conectadas: elimina las divisiones entre píxeles y conserva\n// los huecos. Cada arte puede elegir una silueta angular o curvas continuas.\nfunction contornoMey(filas,acepta,dy=0,suave=false){\n const bordes=new Map(),clave=p=>p.join(','),hay=(x,y)=>!!filas[y]?.[x]&&acepta(filas[y][x],x,y);\n const agrega=(a,b)=>{const k=clave(a);if(!bordes.has(k))bordes.set(k,[]);bordes.get(k).push(b);};\n filas.forEach((fila,y)=>fila.forEach((c,x)=>{if(!acepta(c,x,y))return;\n  if(!hay(x,y-1))agrega([x,y],[x+1,y]);if(!hay(x+1,y))agrega([x+1,y],[x+1,y+1]);\n  if(!hay(x,y+1))agrega([x+1,y+1],[x,y+1]);if(!hay(x-1,y))agrega([x,y+1],[x,y]);\n }));\n const punto=p=>Number(p[0].toFixed(2))+','+Number((p[1]+dy).toFixed(2)),rutas=[];\n while(bordes.size){\n  const inicio=bordes.keys().next().value.split(',').map(Number),poligono=[inicio];let actual=inicio,previa=[inicio[0]-1,inicio[1]];\n  do{\n   const k=clave(actual),opciones=bordes.get(k);if(!opciones?.length)break;\n   const dx=actual[0]-previa[0],dy0=actual[1]-previa[1],prioridad=b=>{const ex=b[0]-actual[0],ey=b[1]-actual[1];return dx*ey-dy0*ex===1?3:dx*ex+dy0*ey===1?2:dx*ey-dy0*ex===-1?1:0;};\n   opciones.sort((a,b)=>prioridad(b)-prioridad(a));const siguiente=opciones.shift();if(!opciones.length)bordes.delete(k);\n   previa=actual;actual=siguiente;if(clave(actual)!==clave(inicio))poligono.push(actual);\n  }while(clave(actual)!==clave(inicio));\n  const vertices=poligono.filter((p,i)=>{const a=poligono[(i+poligono.length-1)%poligono.length],b=poligono[(i+1)%poligono.length];return(p[0]-a[0])*(b[1]-p[1])!==(p[1]-a[1])*(b[0]-p[0]);});\n  if(vertices.length<3)continue;\n  if(!suave){rutas.push('M'+vertices.map(punto).join('L')+'Z');continue;}\n  const esquinas=vertices.map((p,i)=>{const a=vertices[(i+vertices.length-1)%vertices.length],b=vertices[(i+1)%vertices.length],interp=q=>{const d=Math.hypot(q[0]-p[0],q[1]-p[1]),r=Math.min(.48,d/2);return[p[0]+(q[0]-p[0])*r/d,p[1]+(q[1]-p[1])*r/d];};return{antes:interp(a),p,despues:interp(b)};});\n  let d='M'+punto(esquinas[0].despues);for(let i=1;i<=esquinas.length;i++){const e=esquinas[i%esquinas.length];d+='L'+punto(e.antes)+'Q'+punto(e.p)+' '+punto(e.despues);}rutas.push(d+'Z');\n }\n return rutas.join('');\n}\n\nfunction ilustracionMey(filas,dy,colores){\n const texto=filas.map(f=>f.join('')).join('|')+Object.values(colores).join('|');let h=2166136261,k=5381;\n for(const c of texto){h=Math.imul(h^c.charCodeAt(0),16777619);k=Math.imul(k,33)^c.charCodeAt(0);}\n const id='mey-v'+(h>>>0).toString(36)+(k>>>0).toString(36),pigmentos=[...new Set(filas.flat().filter(c=>c!=='.'&&c!=='e'))];\n const cara=(c,x,y)=>c==='e'&&filas[y].slice(0,x).includes('g')&&filas[y].slice(x+1).includes('g');\n const cuerpo=(c,x,y)=>c==='g'||c==='w'||cara(c,x,y),contorno=contornoMey(filas,cuerpo,dy,true);\n let defs='<clipPath id=\"'+id+'-clip\"><path d=\"'+contorno+'\"/></clipPath>';\n for(const c of pigmentos)defs+='<linearGradient id=\"'+id+'-'+c+'\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\"><stop class=\"mey-material-luz\" offset=\"0\" stop-color=\"'+colores[c]+'\"/><stop offset=\".3\" stop-color=\"'+colores[c]+'\"/><stop offset=\".65\" stop-color=\"'+colores[c]+'\"/><stop class=\"mey-material-sombra\" offset=\"1\" stop-color=\"'+colores[c]+'\"/></linearGradient>';\n const adorno='<g class=\"mey-decoraciones\" clip-path=\"url(#'+id+'-clip)\">'+\n  '<g data-mey-decoracion=\"cristal\" display=\"none\"><path d=\"M2,-2L7,-2L0,16L-5,16ZM10,-2L11,-2L4,16L3,16Z\"/></g>'+\n  '<g data-mey-decoracion=\"aero\" display=\"none\"><circle cx=\"5.6\" cy=\"6.3\" r=\"1\"/><circle cx=\"10.9\" cy=\"9.7\" r=\".55\"/><path d=\"M4,4Q7,2 11,4\"/></g>'+\n  '<g data-mey-decoracion=\"deco\" display=\"none\"><path d=\"M8,14L2,5M8,14L5,3M8,14L8,2M8,14L11,3M8,14L14,5M2,12L8,5L14,12M3,13L8,7L13,13\"/></g>'+\n  '<g data-mey-decoracion=\"bauhaus\" display=\"none\"><circle cx=\"5\" cy=\"6\" r=\"1.8\"/><path d=\"M9,3L13,7L9,7Z\"/><path d=\"M3,11H13V13H3Z\"/></g>'+\n  '<g data-mey-decoracion=\"metal\" display=\"none\"><path d=\"M0,3L16,1V2L0,4ZM0,8L16,5V6L0,9ZM0,13L16,10V11L0,14Z\"/></g>'+\n  '<g data-mey-decoracion=\"circuito\" display=\"none\"><path d=\"M3,4H6V6H13M3,11H10V13H13M10,3V4H13M2,8H4M12,8H14\"/><circle cx=\"6\" cy=\"4\" r=\".35\"/><circle cx=\"10\" cy=\"11\" r=\".35\"/></g>'+\n  '<g data-mey-decoracion=\"plano\" display=\"none\"><path d=\"M0,3H16M0,6H16M0,9H16M0,12H16M4,-4V16M8,-4V16M12,-4V16M0,14L16,-2\"/></g>'+\n  '<g data-mey-decoracion=\"retro\" display=\"none\"><path d=\"M0,3H16M0,5H16M0,7H16M0,9H16M0,11H16M0,13H16\"/></g></g>';\n let variantes='';for(const suave of [false,true]){\n  let formas='<path class=\"mey-vector-contorno\" d=\"'+contornoMey(filas,cuerpo,dy,suave)+'\" fill=\"none\"/>';\n  for(const c of pigmentos){const region=(v,x,y)=>v===c||(c==='g'&&cara(v,x,y));formas+='<path data-mey-material=\"'+c+'\" d=\"'+contornoMey(filas,region,dy,suave)+'\" fill=\"url(#'+id+'-'+c+')\"/>';}\n  const ojos=contornoMey(filas,c=>c==='e',dy,suave);\n  variantes+='<g class=\"mey-vector\" data-mey-vector=\"'+(suave?'suave':'angular')+'\" display=\"none\">'+formas+adorno+'<path data-mey-material=\"e\" d=\"'+ojos+'\" fill=\"'+colores.e+'\"/></g>';\n }\n // Las referencias locales son deterministas por dibujo y paleta; nunca un contador global.\n return '<!--mey-arte-inicio--><g class=\"mey-ilustracion\" display=\"none\"><defs>'+defs+'</defs>'+variantes+'</g><!--mey-arte-fin-->';\n}\n\nfunction accesibleMey(opciones){\n const titulo=opciones.titulo?String(opciones.titulo).replace(/[&<>\"]/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;'}[c])):'';\n return titulo?'role=\"img\" aria-label=\"'+titulo+'\"><title>'+titulo+'</title>':'aria-hidden=\"true\" focusable=\"false\">';\n}\n\n/* filas: cuadrícula de trabajo de 18 filas. alto: true fuerza el lienzo de 16×18 (Mey viva, para\n   que no salte de tamaño cuando aparece el papel picado). */\nfunction svgMey(filas,pose,atuendo,opciones,alto){\n const color=opciones.color||'verde',colores=coloresMey(color);\n const arriba=alto||filas.slice(0,ALTO_MEY).some(f=>f.some(c=>c!=='.'));\n const vista=arriba?'0 -'+ALTO_MEY+' 16 '+(14+ALTO_MEY):'0 0 16 14';\n // Con opciones.celda, tamaño en píxeles enteros por celda (el pixel art no se emborrona).\n const tam=(opciones.celda?' width=\"'+16*opciones.celda+'\" height=\"'+(arriba?14+ALTO_MEY:14)*opciones.celda+'\"':'')+(opciones.estilo?' style=\"'+opciones.estilo+'\"':'');\n const celdas=arriba?celdasMey(filas,-ALTO_MEY,colores,true):celdasMey(filas.slice(ALTO_MEY),0,colores,true);\n const arte=ilustracionMey(arriba?filas:filas.slice(ALTO_MEY),arriba?-ALTO_MEY:0,colores);\n return '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"'+vista+'\"'+tam+' shape-rendering=\"crispEdges\" class=\"erlen-mey\" data-pose=\"'+pose+'\"'+(atuendo!=='ninguno'?' data-atuendo=\"'+atuendo+'\"':'')+(color!=='verde'?' data-color=\"'+color+'\"':'')+' '+accesibleMey(opciones)+celdas+(opciones.detalle!==false&&(!opciones.celda||opciones.celda>=2)?detallesMey(filas,arriba?-ALTO_MEY:0,colores,true):'')+arte+'</svg>';\n}\n\n/* ---------- Atuendos ----------\n   Mey se viste con un toque mexicano. Parte sin atuendo; los demás son\n   disfraces para ocasiones. Cada prenda se coloca buscando en la pose el tapón (corrida de 6\n   celdas de vidrio sobre un cuello de 4), el paso del cuello al cuerpo y los ojos, así sirve\n   para todas las poses. Solo pinta sobre vidrio o vacío: nunca tapa ojos ni utilería. */\nconst ATUENDOS_MEY=['rebozo','gala','charro','luchador','astronauta','cientifica','exploradora','artista','invierno','ninguno'];\nconst PAPEL_PICADO_MEY=['eeeeeeeeeeeeeeee','rrr.nnn.xxx.rrr.','r.r.n.n.x.x.r.r.','.r...n...x...r..'];\n\nfunction corridaMey(fila,patron=/g+/){const m=fila.join('').match(patron);return m?{a:m.index,b:m.index+m[0].length-1,n:m[0].length}:null;}\nfunction tapaMey(f){\n for(let y=0;y<f.length-1;y++){const c=corridaMey(f[y]),d=corridaMey(f[y+1]);if(c&&d&&c.n===6&&d.n===4&&d.a===c.a+1)return {y,a:c.a,b:c.b};}\n return null;\n}\nfunction cuelloMey(f,t){\n for(let y=t.y+1;y<f.length-1;y++){const c=corridaMey(f[y]),d=corridaMey(f[y+1],/[ge]+/);if(c&&d&&c.n===4&&d.n>=6&&d.a<c.a)return {y:y+1,a:c.a-1};}\n return null;\n}\n\n// Ojos «de cara»: tinta con vidrio a ambos lados en su fila (así los ejes del gráfico no cuentan).\nfunction caraMey(f,y0,y1){\n const celdas=[];\n for(let y=Math.max(0,y0);y<=Math.min(f.length-1,y1);y++){const s=f[y].join('');for(let x=0;x<16;x++)if(s[x]==='e'&&s.slice(0,x).includes('g')&&s.slice(x+1).includes('g'))celdas.push({x,y});}\n return celdas;\n}\n\nfunction vestirMey(f,atuendo,e,ojos){\n if(!atuendo||atuendo==='ninguno')return;\n if(!ATUENDOS_MEY.includes(atuendo))throw new Error('mey: atuendo desconocido: '+atuendo);\n const t=tapaMey(f);if(!t)return;\n const k=cuelloMey(f,t);\n const pon=(x,y,c,sobre)=>{if(f[y]&&x>=0&&x<16&&sobre.includes(f[y][x]))f[y][x]=c;};\n if((atuendo==='rebozo'||atuendo==='gala')&&k){\n  ['r','n','p','x','n','r'].forEach((c,i)=>pon(k.a+i,k.y,c,'g'));\n  pon(k.a+5,k.y+1,'r','g.');\n  pon(k.a+6,e.salto>0||e.saludo?k.y+1:k.y+2,'n','.');\n }\n if(atuendo==='gala'){\n  const cx=t.b+1,cy=t.y-1;\n  for(const [x,y] of [[cx,cy-1],[cx-1,cy],[cx+1,cy],[cx,cy+1]])pon(x,y,'n','.');\n  pon(cx,cy,'a','.');\n }\n if(atuendo==='charro'){\n  for(let x=t.a-3;x<=t.b+3;x++)pon(x,t.y-1,'e','.');\n  pon(t.a-1,t.y-1,'n','e');pon(t.b+1,t.y-1,'n','e');\n  pon(t.a-3,t.y-2,'e','.');pon(t.b+3,t.y-2,'e','.');\n  for(let x=t.a;x<=t.b;x++)pon(x,t.y-2,'n','.');\n  for(let x=t.a;x<=t.b;x++)pon(x,t.y-3,'e','.');\n  for(let x=t.a+1;x<=t.b-1;x++)pon(x,t.y-4,'e','.');\n  for(let x=t.a+2;x<=t.b-2;x++)pon(x,t.y-5,'e','.');\n  if(k){['r','r','n','n','r','r'].forEach((c,i)=>pon(k.a+i,k.y,c,'g'));pon(k.a,k.y+1,'r','g');pon(k.a+5,k.y+1,'r','g');}\n }\n if(atuendo==='luchador'&&k){\n  // Máscara de luchador: rosa mexicano del cuello a debajo de los ojos, ribete cempasúchil\n  // alrededor de cada ojo y franja blanca al centro de la frente.\n  const cara=caraMey(f,k.y,k.y+5);\n  const yb=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4,arriba=cara.length?Math.min(...cara.map(o=>o.y)):k.y+2;\n  const cercaDeOjo=(x,y)=>cara.some(o=>Math.abs(o.x-x)+Math.abs(o.y-y)===1);\n  for(let y=k.y;y<=yb;y++)for(let x=0;x<16;x++)if(f[y][x]==='g')f[y][x]=cercaDeOjo(x,y)?'n':(y<arriba&&(x===k.a+2||x===k.a+3)?'p':'r');\n }\n if(atuendo==='astronauta'){\n  // Aro de escafandra con borde violeta visible también sobre papel claro.\n  for(let x=t.a-1;x<=t.b+1;x++)pon(x,t.y-1,'x','.');\n  for(let y=t.y;y<=t.y+2;y++){\n   pon(t.a-2,y,'x','.');pon(t.b+2,y,'x','.');\n  }\n  if(k){pon(k.a,k.y,'p','g');pon(k.a+5,k.y,'p','g');pon(k.a-1,k.y+1,'x','g.');pon(k.a+6,k.y+1,'x','g.');}\n }\n if(atuendo==='cientifica'&&k){\n  pon(k.a,k.y,'x','g');pon(k.a+5,k.y,'x','g');\n  const cara=caraMey(f,k.y,k.y+5);\n  const debajo=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4;\n  for(let y=debajo;y<=debajo+2;y++){\n   for(let x=k.a-1;x<=k.a+1;x++)pon(x,y,'p','g');\n   for(let x=k.a+4;x<=k.a+6;x++)pon(x,y,'p','g');\n   pon(k.a-2,y,'x','g.');pon(k.a+7,y,'x','g.');\n  }\n  pon(k.a+2,debajo,'x','g');\n }\n if(atuendo==='exploradora'){\n  // Sombrero de campo de ala ancha, galón dorado y chaleco claro con bolsillos.\n  for(let x=t.a-2;x<=t.b+2;x++)pon(x,t.y-1,'x','.');\n  for(let x=t.a;x<=t.b;x++){pon(x,t.y-2,'n','.');pon(x,t.y-3,'x','.');}\n  if(k){\n   const cara=caraMey(f,k.y,k.y+5),debajo=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4;\n   for(let y=debajo;y<=debajo+1;y++)for(const x of [k.a-1,k.a,k.a+5,k.a+6])pon(x,y,'p','g');\n   pon(k.a,debajo+1,'n','p');pon(k.a+5,debajo+1,'n','p');\n  }\n }\n if(atuendo==='artista'){\n  // Boina ladeada, delantal violeta: la cara y el nivel del líquido quedan a la vista.\n  for(let x=t.a-1;x<=t.b+1;x++)pon(x,t.y-1,'r','.');\n  for(let x=t.a-2;x<=t.b;x++)pon(x,t.y-2,'r','.');\n  pon(t.a,t.y-3,'r','.');\n  if(k){\n   const cara=caraMey(f,k.y,k.y+5),debajo=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4;\n   for(let y=debajo-3;y<debajo;y++){pon(k.a-1,y,'x','g');pon(k.a+6,y,'x','g');}\n   for(let y=debajo;y<=debajo+2;y++)for(let x=k.a;x<=k.a+5;x++)pon(x,y,'x','g');\n   pon(k.a+1,debajo,'p','x');pon(k.a+4,debajo,'p','x');\n   pon(k.a+2,debajo+1,'n','x');pon(k.a+3,debajo+1,'r','x');\n  }\n }\n if(atuendo==='invierno'){\n  // Gorro de punto con pompón y bufanda al cuello, sin cubrir los ojos.\n  for(let x=t.a-1;x<=t.b+1;x++)pon(x,t.y-1,x%2?'r':'x','.');\n  for(let x=t.a;x<=t.b;x++)pon(x,t.y-2,'x','.');\n  pon(t.a+2,t.y-3,'r','.');pon(t.a+3,t.y-3,'r','.');\n  if(k){\n   for(let x=k.a;x<=k.a+5;x++)pon(x,k.y,'p','g');\n   pon(k.a+1,k.y,'n','p');pon(k.a+4,k.y,'n','p');\n   for(let y=k.y+1;y<=k.y+3;y++)pon(k.a-1,y,'p','g.');\n   pon(k.a-1,k.y+4,'n','g.');\n  }\n }\n}\n\nfunction papelPicadoMey(f){PAPEL_PICADO_MEY.forEach((fila,y)=>{for(let x=0;x<16;x++)if(fila[x]!=='.'&&f[y][x]==='.')f[y][x]=fila[x];});}\n\nfunction mey(pose='hola',opciones={}){\n if(opciones.tile)return '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" class=\"erlen-mey\" data-pose=\"'+pose+'\" '+accesibleMey(opciones)+'<rect width=\"16\" height=\"16\" rx=\"3.5\" fill=\"'+TILE_MEY+'\"/><g shape-rendering=\"crispEdges\">'+celdasMey(filasMey(pose),1)+'</g></svg>';\n const atuendo=opciones.atuendo||'ninguno';\n const fiesta=pose==='exito'&&opciones.papelPicado!==false;\n return svgMey(cuadroMey(pose,{},atuendo,fiesta),pose,atuendo,opciones,false);\n}\nmey.poses=Object.keys(POSES_MEY);\nmey.atuendos=ATUENDOS_MEY;\nmey.colores=Object.freeze(Object.keys(PALETAS_MEY));\n/* El vestidor solo guarda el atuendo. No altera el favicon ni las poses semánticas de las apps.\n   Si localStorage está bloqueado, la elección dura hasta salir de esta página. */\nconst aparienciasEnMemoria=new WeakMap();\nmey.aparienciaLocal=function(ventana){\n const clave='erlen-mey-apariencia';\n return {\n  leer(){\n   try{const almacen=ventana?.localStorage;if(almacen){const valor=almacen.getItem(clave);return ATUENDOS_MEY.includes(valor)?valor:'ninguno';}}catch{}\n   return aparienciasEnMemoria.get(ventana)||'ninguno';\n  },\n  guardar(atuendo){\n   if(!ATUENDOS_MEY.includes(atuendo))throw new Error('mey: atuendo desconocido: '+atuendo);\n   aparienciasEnMemoria.set(ventana,atuendo);\n   try{ventana?.localStorage?.setItem(clave,atuendo);}catch{}\n   ventana?.dispatchEvent?.(new ventana.Event('erlen-mey-apariencia'));\n  }\n };\n};\n\n/* Color local independiente: conserva erlen-mey-apariencia como cadena de atuendo. */\nconst coloresEnMemoria=new WeakMap();\nmey.colorLocal=function(ventana){\n const clave='erlen-mey-color';\n return {\n  leer(){\n   try{const valor=ventana?.localStorage?.getItem(clave);if(valor!==null&&valor!==undefined)return mey.colores.includes(valor)?valor:'verde';}catch{}\n   return ventana?coloresEnMemoria.get(ventana)||'verde':'verde';\n  },\n  guardar(color){\n   coloresMey(color);\n   if(ventana)coloresEnMemoria.set(ventana,color);\n   try{ventana?.localStorage?.setItem(clave,color);}catch{}\n   if(ventana?.Event)ventana.dispatchEvent?.(new ventana.Event('erlen-mey-color'));\n  }\n };\n};\n\n/* Personalidad del movimiento, independiente del modelo de conversación y del atuendo.\n   Los perfiles sesgan decisiones; conservan el mazo completo y las pausas de accesibilidad. */\nconst PERSONALIDADES_MEY=Object.freeze({\n tranquila:Object.freeze({pausa:2.4,gesto:16000,pesos:Object.freeze({quieta:1.8,pensar:1.6,travesura:.4,jugar:.6,bailar:.5,pasear:.7}),preferidos:Object.freeze(['siesta','lectura','burbuja','idea','estatuas'])}),\n traviesa:Object.freeze({pausa:1,gesto:9000,pesos:Object.freeze({}),preferidos:Object.freeze(['inocente','confeti','escondidillas','pasolunar','rebeldia'])}),\n dramatica:Object.freeze({pausa:.85,gesto:6500,pesos:Object.freeze({travesura:1.5,bailar:1.5,jugar:1.3,pensar:.7}),preferidos:Object.freeze(['huelga','aplausos','berrinche','reverencia','teletransporte'])})\n});\nfunction perfilPersonalidadMey(nombre='traviesa'){\n if(!Object.hasOwn(PERSONALIDADES_MEY,nombre))throw new Error('mey: personalidad desconocida: '+nombre);\n return PERSONALIDADES_MEY[nombre];\n}\nmey.personalidades=Object.freeze(Object.keys(PERSONALIDADES_MEY));\nconst personalidadesEnMemoria=new WeakMap();\nconst personalidadesSinGuardar=new WeakSet();\nmey.personalidadLocal=function(ventana){\n const clave='erlen-mey-personalidad';\n return {\n  leer(){\n   if(ventana&&personalidadesSinGuardar.has(ventana))return personalidadesEnMemoria.get(ventana)||'traviesa';\n   try{const valor=ventana?.localStorage?.getItem(clave);if(valor!==null&&valor!==undefined)return mey.personalidades.includes(valor)?valor:'traviesa';}catch{}\n   return ventana?personalidadesEnMemoria.get(ventana)||'traviesa':'traviesa';\n  },\n  guardar(nombre){\n   perfilPersonalidadMey(nombre);\n   if(ventana)personalidadesEnMemoria.set(ventana,nombre);\n   try{ventana?.localStorage?.setItem(clave,nombre);if(ventana)personalidadesSinGuardar.delete(ventana);}\n   catch{if(ventana)personalidadesSinGuardar.add(ventana);}\n   if(ventana?.Event)ventana.dispatchEvent?.(new ventana.Event(clave));\n  }\n };\n};\n\n/* ---------- Mey viva ----------\n   Cada cuadro sale de la pose por transformaciones de la cuadrícula, no de dibujos aparte:\n   mirar (los ojos de 1×2 se mueven una celda dentro del vidrio), parpadear o guiñar (el ojo\n   pierde su celda de arriba), saltar (todo sube una fila), chapotear (se mueven las perneras),\n   saludar (la mano sube), soltar una burbuja por el cuello y, al celebrar, papel picado.\n   Pixel art de verdad: cambios de cuadro, sin interpolar. Filas en coordenadas de la pose. */\nconst CUADRO_MS=83;\nconst enCuadros=n=>n*CUADRO_MS;\nconst CHAPOTEO_MEY={hola:{izq:{12:'...wwwww.wwww...'},der:{12:'...wwww.wwwww...'}}};\nconst SALUDO_MEY={hola:{1:[[14,7,'.'],[14,6,'w']],2:[[14,7,'.'],[14,6,'w'],[14,5,'w']]}};\n\nfunction neutro(){\n return {\n  mirada:{dx:0,dy:0},parpadeo:false,salto:0,chapoteo:null,burbuja:null,saludo:false,\n  fiesta:false,caminando:0,sentada:false,ojos:null,inclinar:0,burbujas:null,\n  destello:null,seca:0,flotar:0,deCabeza:false,brazoIzq:0,brazoDer:1,agachar:0,estirar:0,cartel:false,confeti:0\n };\n}\n\nfunction ojosMey(filas){\n const ojos=[];\n for(let y=1;y<filas.length-1;y++)for(let x=0;x<16;x++)if(filas[y][x]==='e'&&filas[y+1][x]==='e'&&filas[y-1][x]!=='e')ojos.push({x,y});\n return ojos;\n}\n\nfunction ojosDeCara(filas){\n return ojosMey(filas).filter(({x,y})=>\n  filas[y].slice(0,x).includes('g')&&filas[y].slice(x+1).includes('g')\n );\n}\n\nfunction cuadroMey(pose,e={},atuendo,fiesta){\n const f=[...Array.from({length:ALTO_MEY},vacia),...filasMey(pose)];\n if(pose==='hola'){\n  if(e.brazoIzq===1){\n   f[10+ALTO_MEY][1]='.';f[10+ALTO_MEY][2]='.';\n   for(const [x,y] of [[2,9],[2,8],[2,7],[1,7]])f[y+ALTO_MEY][x]='w';\n  }else if(e.brazoIzq===2){\n   f[10+ALTO_MEY][1]='.';f[10+ALTO_MEY][2]='.';\n   for(const [x,y] of [[2,9],[2,8],[2,7],[1,6],[1,5]])f[y+ALTO_MEY][x]='w';\n  }\n  const der=e.saludo?1:(e.brazoDer??1);\n  if(der===0){\n   f[7+ALTO_MEY][13]='.';f[7+ALTO_MEY][14]='.';f[8+ALTO_MEY][13]='.';f[9+ALTO_MEY][13]='.';\n   f[10+ALTO_MEY][13]='w';f[10+ALTO_MEY][14]='w';\n  }\n }\n if(e.saludo)for(const [x,y,c] of SALUDO_MEY[pose]?.[e.saludo===true?1:e.saludo]||[])f[y+ALTO_MEY][x]=c;\n const ch=e.chapoteo&&CHAPOTEO_MEY[pose]?.[e.chapoteo];\n if(ch)for(const [y,fila] of Object.entries(ch))f[+y+ALTO_MEY]=fila.split('');\n // Evaporarse: las filas de líquido del cuerpo (6 celdas o más, sin las patas) se vuelven vidrio\n // de arriba abajo. El borde del líquido desaparece sin modificar la cara.\n if(e.seca){\n  // Solo dentro del cuerpo (el ancho de la fila de encima de las patas): los brazos no se evaporan.\n  const base=f[f.length-2],a=base.findIndex(c=>c!=='.'),b=15-[...base].reverse().findIndex(c=>c!=='.');\n  const filas=[];for(let y=ALTO_MEY;y<f.length-1;y++)if(f[y].filter(c=>c==='w').length>=6)filas.push(y);\n  for(const y of filas.slice(0,e.seca))for(let x=a;x<=b;x++)if(f[y][x]==='w')f[y][x]='g';\n }\n const ojos=ojosDeCara(f);\n if(e.mirada&&(e.mirada.dx||e.mirada.dy)){\n  const {dx,dy}=e.mirada;\n  const cabe=ojos.every(({x,y})=>[y+dy,y+dy+1].every(yy=>{const c=f[yy]?.[x+dx];return c==='g'||c==='e';}));\n  if(cabe){\n   for(const {x,y} of ojos){f[y][x]='g';f[y+1][x]='g';}\n   for(const o of ojos){o.x+=dx;o.y+=dy;f[o.y][o.x]='e';f[o.y+1][o.x]='e';}\n  }\n }\n if(e.parpadeo){\n  const orden=[...ojos].sort((a,b)=>a.x-b.x);\n  for(const [i,o] of orden.entries())if(e.parpadeo==='ambos'||(e.parpadeo==='guino'&&i===orden.length-1))f[o.y][o.x]='g';\n }else if(e.ojos==='grandes'){\n  // Sorpresa: cada ojo crece a 2×2 hacia el centro de la cara (sin comerse la pared del vidrio).\n  const centro=ojos.reduce((s,o)=>s+o.x,0)/(ojos.length||1);\n  for(const o of ojos){const lado=o.x<centro?1:-1;for(const y of [o.y,o.y+1])if(f[y][o.x+lado]==='g')f[y][o.x+lado]='e';}\n }else if(e.ojos&&['cerrados','felices','guino'].includes(e.ojos)){\n  const cara=ojosDeCara(f);\n  if(cara.length){\n   const centro=cara.reduce((s,o)=>s+o.x,0)/cara.length;\n   const lista=e.ojos==='guino'?[[...cara].sort((a,b)=>b.x-a.x)[0]]:cara;\n   for(const {x,y} of lista){\n    const lado=x<centro?1:-1;\n    if(e.ojos==='felices'){\n     f[y+1][x]='g';f[y][x]='e';if(f[y][x+lado]==='g')f[y][x+lado]='e';\n    }else{\n     f[y][x]='g';f[y+1][x]='e';if(f[y+1][x+lado]==='g')f[y+1][x+lado]='e';\n    }\n   }\n  }\n }\n vestirMey(f,atuendo,e,ojos);\n const t=tapaMey(f);\n let nSalto=0;\n if(t){\n  const y=t.y+1;\n  const cuelloLimpio=f[y].every((c,x)=>x>=t.a+1&&x<=t.b-1?c==='g':c==='.');\n  if(cuelloLimpio){\n   if(e.agachar){f.splice(y,1);f.unshift(vacia());}\n   else if(e.estirar&&f[0].every(c=>c==='.')){f.splice(y,0,[...f[y]]);f.shift();}\n  }\n }\n const salto=e.salto===true?1:Math.min(3,Math.max(0,+e.salto||0));\n const libres=f.findIndex(fila=>fila.some(c=>c!=='.'));\n nSalto=Math.min(salto,libres<0?0:libres);\n // Inclinarse (tropiezo, mareo, estornudo): la cabeza y los hombros se corren una celda.\n if(e.inclinar){const n=Math.sign(e.inclinar);for(let y=0;y<ALTO_MEY+6;y++)f[y]=n>0?['.',...f[y].slice(0,15)]:[...f[y].slice(1),'.'];}\n if(fiesta||e.fiesta)papelPicadoMey(f);\n if(e.burbuja!==null&&e.burbuja!==undefined){\n  const y=ALTO_MEY+1-e.burbuja;\n  if(y>=0&&f[y][9]==='.')f[y][9]='g';\n }\n // Burbujas sueltas en coordenadas del lienzo de 16×18 y un destello (idea, burbuja que revienta).\n for(const [x,y] of e.burbujas||[])if(f[y]?.[x]==='.')f[y][x]='g';\n if(e.destello){const [x,y]=e.destello;for(const [dx,dy,c] of [[0,0,'p'],[1,0,'x'],[-1,0,'x'],[0,1,'x'],[0,-1,'x']])if(f[y+dy]?.[x+dx]==='.')f[y+dy][x+dx]=c;}\n // Caminar: una pata se levanta en cada paso (se borra de la fila de abajo). Sentarse: patas\n // recogidas, el cuerpo baja una fila.\n if(e.caminando||e.sentada){\n  const y=f.map(fila=>fila.some(c=>c!=='.')).lastIndexOf(true);\n  if(y>=0){\n   // La fila de abajo son siempre las patas.\n   if(e.sentada){f.splice(y,1);f.unshift(vacia());}\n   else for(let x=0;x<16;x++)if(f[y][x]==='w'&&([1,3].includes(e.caminando)?x<8:x>=8))f[y][x]='.';\n   if(!e.sentada&&e.caminando>=3){const z=e.caminando===3?5:10;if(f[y-1][z]==='w')f[y][z]='w';}\n  }\n }\n if(nSalto>0){\n  f.splice(0,nSalto);\n  for(let i=0;i<nSalto;i++)f.push(vacia());\n }\n // Flotar: sube hasta ALTO_MEY filas (se le olvidó la gravedad).\n if(e.flotar){const n=Math.min(ALTO_MEY,e.flotar);f.splice(0,n);for(let i=0;i<n;i++)f.push(vacia());}\n // Utilería en la misma cuadrícula: el cartel queda encima de la cara, nunca sobre los ojos.\n if(e.cartel){\n  const no=['e..epeeee','ee.epe..e','e.eepe..e','e..epeeee'];\n  // Compensar el espejo del actor para que el texto siga diciendo NO hacia la izquierda.\n  for(let y=0;y<4;y++)for(let x=6;x<15;x++)f[y][x]=no[y][e.cartel==='espejo'?14-x:x-6]==='e'?'e':'p';\n  for(let y=4;y<12;y++)if(f[y][13]==='.')f[y][13]='a';\n }\n if(e.confeti){\n  const piezas=[[1,0,'r'],[4,1,'n'],[11,0,'x'],[14,2,'r'],[0,4,'x'],[15,5,'n']];\n  for(const [x,y,c] of piezas){const yy=y+e.confeti-1;if(f[yy]?.[x]==='.')f[yy][x]=c;}\n }\n return f;\n}\nmey.cuadro=(pose,estado={},atuendo='ninguno')=>cuadroMey(pose,{...neutro(),...estado},atuendo,false).map(f=>f.join('')).join('\\n');\n\n/* ---------- Mey en cada app: lugares y perfiles ----------\n   Un «lugar» es el tipo de espacio que la app le da a Mey. Fija la pose por defecto, cuánto se\n   mueve y entre qué tamaños elige (en píxeles por celda: el ancho es 16 celdas). El perfil de la\n   app pone la pose de «trabajo» (Notes lee, Spreadsheets mide, Figures grafica…). Así cada app\n   solo dice dónde va Mey y ella decide el resto; las mejoras de aquí llegan a todas. */\nconst LUGARES_MEY={\n bienvenida:{pose:'hola',energia:'completa',min:3,max:12,defecto:8},\n vacio:{pose:'dormido',energia:'completa',min:3,max:8,defecto:6},\n trabajo:{pose:null,energia:'calma',min:2,max:6,defecto:4},\n carga:{pose:'pensando',energia:'calma',min:2,max:6,defecto:4},\n exito:{pose:'exito',energia:'calma',min:2,max:8,defecto:4},\n error:{pose:'aviso',energia:'calma',min:2,max:8,defecto:4},\n barra:{pose:'hola',energia:'calma',min:1,max:3,defecto:2,eje:'alto'},\n // Recreo: un escenario ancho donde Mey juega (la portada del portal). Ver «Juegos» abajo.\n recreo:{pose:'hola',energia:'completa',min:3,max:5,defecto:4,juegos:true}\n};\nconst PERFILES_MEY={\n slides:{trabajo:'hola'},notes:{trabajo:'leyendo'},documents:{trabajo:'leyendo'},lens:{trabajo:'leyendo'},\n methods:{trabajo:'leyendo'},learn:{trabajo:'leyendo'},research:{trabajo:'leyendo'},novelty:{trabajo:'leyendo'},\n spreadsheets:{trabajo:'midiendo'},doe:{trabajo:'midiendo'},\n figures:{trabajo:'graficando'},ftir:{trabajo:'graficando'},xrd:{trabajo:'graficando'},xps:{trabajo:'graficando'},dft:{trabajo:'graficando'},fem:{trabajo:'graficando'},\n thermal:{trabajo:'midiendo'},\n rmn:{trabajo:'graficando'},\n pentagrama:{trabajo:'hola'},\n analyze:{trabajo:'graficando'},data:{trabajo:'midiendo'},projects:{trabajo:'leyendo'},release:{trabajo:'leyendo'},burocracy:{trabajo:'leyendo'},\n 'legacy-editor':{trabajo:'hola'},tunning:{trabajo:'midiendo'}\n};\n\n/* Resuelve qué Mey toca: {pose, atuendo, energia, min, max, defecto, eje}. Lo explícito gana a\n   lo del lugar, y lo del lugar a lo del perfil de la app. */\nmey.resolver=function({lugar='bienvenida',app,pose,atuendo}={}){\n const l=LUGARES_MEY[lugar];\n if(!l)throw new Error('mey: lugar desconocido: '+lugar);\n const perfil=PERFILES_MEY[app]||{};\n const final=pose||l.pose||perfil.trabajo||'hola';\n filasMey(final);\n return {lugar,pose:final,atuendo:atuendo||perfil.atuendo||'ninguno',energia:l.energia,min:l.min,max:l.max,defecto:l.defecto,eje:l.eje||'ancho',juegos:!!l.juegos};\n};\nmey.lugares=Object.keys(LUGARES_MEY);\nmey.perfiles=Object.keys(PERFILES_MEY);\n\n/* Píxeles por celda que caben en el espacio: el entero más grande dentro de [min, max]; sin\n   medida (0), el tamaño por defecto del lugar. */\nfunction celdaMey(espacio,filas,r){\n const c=Math.floor(espacio/(r.eje==='alto'?filas:16));\n return c>0?Math.max(r.min,Math.min(r.max,c)):r.defecto;\n}\n\n/* ---------- Juegos (lugar «recreo») ----------\n   En el recreo Mey no repite travesuras: juega. Cada juego es una escena cómica corta (una\n   siesta con ronquidos, las escondidillas, el hipo…) con lado, velocidad, disfraz y tiempos al\n   azar, así que ni el mismo juego sale igual dos veces. El orden sale de un mazo por persona:\n   mey.siguienteJuego no repite un juego hasta haberlos jugado todos, ni empieza una vuelta con\n   el último de la anterior. La memoria es {leer(), guardar(dato)}; mey.memoriaLocal(ventana) la\n   guarda en localStorage y, si no se puede, en memoria (nunca falla). */\nconst JUEGOS_MEY=['siesta','escondidillas','burbuja','probador','baile','hipo','mareo','carrera','estornudo','lectura','idea','estatuas','gransalto','resbalon','perseguida','gravedad','evaporacion','techo','pasolunar','berrinche','inocente','teletransporte','reverencia','rebeldia','huelga','aplausos','confeti'];\n\nfunction barajarMey(lista,azar){const a=[...lista];for(let i=a.length-1;i>0;i--){const j=Math.floor(azar()*(i+1));[a[i],a[j]]=[a[j],a[i]];}return a;}\n\nmey.siguienteJuego=function(memoria,azar=Math.random,nombres=JUEGOS_MEY,personalidad='traviesa'){\n const perfil=perfilPersonalidadMey(personalidad);\n let dato=null;try{dato=memoria?.leer?.();}catch{}\n const ultimo=nombres.includes(dato?.ultimo)?dato.ultimo:null;\n let vistos=Array.isArray(dato?.vistos)?dato.vistos.filter(n=>nombres.includes(n)):[];\n let quedan=nombres.filter(n=>!vistos.includes(n));\n if(!quedan.length){vistos=[];quedan=nombres.filter(n=>n!==ultimo||nombres.length===1);}\n const preferidos=quedan.filter(n=>perfil.preferidos.includes(n));\n const juego=barajarMey(preferidos.length&&azar()<.7?preferidos:quedan,azar)[0];\n try{memoria?.guardar?.({vistos:[...vistos,juego],ultimo:juego});}catch{}\n return juego;\n};\n\nmey.memoriaLocal=function(ventana,clave='erlen-mey-recreo'){\n let respaldo=null;\n return {\n  leer(){try{const v=ventana?.localStorage?.getItem(clave);if(v)return JSON.parse(v);}catch{}return respaldo;},\n  guardar(dato){respaldo=dato;try{ventana?.localStorage?.setItem(clave,JSON.stringify(dato));}catch{}}\n };\n};\n\n/* mey.mente: modelo puro de conducta (en segundos, sin DOM, reloj ni mutación). */\nconst clampMey=function(valor,min=0,max=1){\n const n=Number(valor);\n if(Number.isNaN(n))return min;\n return n<min?min:(n>max?max:n);\n};\n\nconst ENFRIAMIENTO_MENTE=Object.freeze({\n pasear:6,acercarse:15,curiosear:8,travesura:12,jugar:4,bostezar:60,dormir:90,estirarse:60,pensar:30,bailar:45,quieta:0\n});\n\nmey.mente={\n enfriamiento:ENFRIAMIENTO_MENTE,\n inicial(memoria={},hora=12){\n  const afectoVal=typeof memoria?.afecto==='number'?memoria.afecto:0.3;\n  const esNoche=hora<6||hora>=23;\n  return {\n   energia:0.8,\n   curiosidad:0.4,\n   aburrimiento:0.2,\n   afecto:clampMey(afectoVal,0,1),\n   sueno:clampMey(esNoche?0.5:0,0,1)\n  };\n },\n actualizar(imp={},s={},dt=0){\n  const inactividad=Number(s.inactividad)||0;\n  const cerca=!!s.cerca;\n  const estimulo=Number(s.estimulo)||0;\n  const caricia=!!s.caricia;\n  const durmiendo=!!s.durmiendo;\n  const hora=typeof s.hora==='number'?s.hora:12;\n\n  let aburrimiento=Number(imp.aburrimiento)||0;\n  aburrimiento+=inactividad>10?(dt/45):(-dt/20);\n\n  let curiosidad=Number(imp.curiosidad)||0;\n  if(estimulo>0){\n   curiosidad+=estimulo*0.3;\n  }else{\n   const paso=dt/30;\n   if(curiosidad<0.4)curiosidad=Math.min(0.4,curiosidad+paso);\n   else if(curiosidad>0.4)curiosidad=Math.max(0.4,curiosidad-paso);\n  }\n\n  let sueno=Number(imp.sueno)||0;\n  if(durmiendo){\n   sueno+=-dt/120;\n  }else{\n   if(inactividad>60)sueno+=dt/240;\n   else if(inactividad<5)sueno+=-dt/60;\n   if(hora<6||hora>=23)sueno+=dt/600;\n  }\n\n  let afecto=Number(imp.afecto)||0;\n  afecto+=(caricia?0.12:0)+(cerca?dt/40:0)-(dt/900);\n\n  sueno=clampMey(sueno,0,1);\n  const energia=clampMey(1-0.6*sueno,0,1);\n\n  return {\n   energia,\n   curiosidad:clampMey(curiosidad,0,1),\n   aburrimiento:clampMey(aburrimiento,0,1),\n   afecto:clampMey(afecto,0,1),\n   sueno\n  };\n },\n utilidad(nombre,imp={},s={}){\n  const energia=clampMey(imp.energia??0.8,0,1);\n  const curiosidad=clampMey(imp.curiosidad??0.4,0,1);\n  const aburrimiento=clampMey(imp.aburrimiento??0.2,0,1);\n  const afecto=clampMey(imp.afecto??0.3,0,1);\n  const sueno=clampMey(imp.sueno??0,0,1);\n\n  const paseo=!!s.paseo;\n  const juegos=!!s.juegos;\n  const punteroVisto=!!s.punteroVisto;\n  const distancia=Number(s.distancia)||0;\n  const novedad=!!s.novedad;\n  const quietaMucho=!!s.quietaMucho;\n  const escribiendo=!!s.escribiendo;\n  const inactividad=Number(s.inactividad)||0;\n\n  if(escribiendo&&['pasear','acercarse','travesura','jugar','bailar','estirarse'].includes(nombre)){\n   return 0;\n  }\n\n  let u=0;\n  switch(nombre){\n   case 'quieta':\n    u=0.35;\n    break;\n   case 'pasear':\n    u=paseo?(0.3+0.4*energia+0.3*curiosidad)*(1-sueno):0;\n    break;\n   case 'acercarse':\n    u=(paseo&&punteroVisto&&distancia>4)?(0.2+0.8*afecto+0.3*curiosidad):0;\n    break;\n   case 'curiosear':\n    u=novedad?(0.3+0.6*curiosidad):0;\n    break;\n   case 'travesura':\n    u=0.2+0.6*aburrimiento;\n    break;\n   case 'jugar':\n    u=juegos?(0.5+0.8*aburrimiento):0;\n    break;\n   case 'bostezar':\n    u=sueno>0.35?(0.9*sueno):0;\n    break;\n   case 'dormir':\n    u=(sueno>0.6&&inactividad>30)?((sueno-0.6)*3):0;\n    break;\n   case 'estirarse':\n    u=quietaMucho?(0.15+0.5*aburrimiento):0;\n    break;\n   case 'pensar':\n    u=0.15+0.3*curiosidad;\n    break;\n   case 'bailar':\n    u=(afecto>0.5&&energia>0.6)?(0.1+0.5*afecto):0;\n    break;\n   default:\n    u=0;\n  }\n  return u*(perfilPersonalidadMey(s.personalidad).pesos[nombre]??1);\n },\n elegir(nombres=[],imp={},s={},ultimaVez={},ahora=0,azar){\n  const candidatos=[];\n  for(const n of nombres){\n   const u=mey.mente.utilidad(n,imp,s);\n   const cd=ENFRIAMIENTO_MENTE[n]??0;\n   const tUltima=typeof ultimaVez?.[n]==='number'?ultimaVez[n]:-Infinity;\n   const transcurrido=ahora-tUltima;\n   const fraccion=cd>0?Math.max(0,1-(transcurrido/cd)):0;\n   const puntaje=u*(1-fraccion);\n   if(puntaje>0.05){\n    candidatos.push({nombre:n,puntaje,peso:puntaje*puntaje});\n   }\n  }\n  if(!candidatos.length)return 'quieta';\n  const r=Number(azar());\n  if(r<=0)return candidatos[0].nombre;\n  const suma=candidatos.reduce((acc,c)=>acc+c.peso,0);\n  if(suma<=0)return candidatos[0].nombre;\n  let objetivo=r*suma;\n  for(const c of candidatos){\n   objetivo-=c.peso;\n   if(objetivo<=0)return c.nombre;\n  }\n  return candidatos[candidatos.length-1].nombre;\n }\n};\n\nmey.memoriaConducta=function(ventana,clave='erlen-mey-conducta'){\n const POR_DEFECTO={visitas:0,ultima:0,afecto:0.3};\n let respaldo=null;\n return {\n  leer(){\n   try{\n    const v=ventana?.localStorage?.getItem(clave);\n    if(v){\n     const parseado=JSON.parse(v);\n     if(parseado&&typeof parseado==='object')return parseado;\n    }\n   }catch{}\n   return respaldo||{...POR_DEFECTO};\n  },\n  guardar(dato){\n   respaldo=dato;\n   try{\n    ventana?.localStorage?.setItem(clave,JSON.stringify(dato));\n   }catch{}\n  }\n };\n};\n\n/* mey.montar(host, {lugar, app, pose, atuendo, energia, celda, vivo, ventana, reloj, aleatorio,\n   fecha, memoria, memoriaConducta, personalidad})\n   pinta a Mey dentro de host (lienzo fijo de 16×18) y la anima según su energía:\n   - completa: latido de conducta, percepción de la página, paseos, juegos y reacciones al clic.\n   - calma: animación vital discreta; sin sensores de página, salvo eventos de la app.\n   - quieta: no se mueve.\n   Sin celda fija mide el host (ResizeObserver); por debajo de 3 px por celda baja a calma.\n   Con movimiento reducido, fuera de la vista, pestaña oculta o saveData no se mueve.\n   Los eventos de guardado se ignoran dormida y se limitan a uno por minuto; otros se deduplican en 3 s.\n   En «recreo», opciones.memoria recuerda los juegos vistos; opciones.juego fuerza el primero.\n   opciones.memoriaConducta conserva visitas y afecto; personalidad fija el carácter visual.\n   Devuelve pose(), atuendo(), reaccionar(), personalidad,\n   evento(), ajustar(), cuadro(), impulsos, conducta, memoria, celda, activa, juego y detener(). */\nmey.montar=function(host,opciones={}){\n const ventana=opciones.ventana||host.ownerDocument.defaultView;\n const doc=host.ownerDocument;\n const reloj=opciones.reloj||ventana;\n const azar=opciones.aleatorio||Math.random;\n const fecha=opciones.fecha||(()=>Date.now());\n const ahora=()=>+fecha();\n const memoriaConducta=opciones.memoriaConducta||mey.memoriaConducta(ventana);\n let memConducta=null;\n try{memConducta=memoriaConducta?.leer?.();}catch{}\n memConducta=memConducta&&typeof memConducta==='object'?{visitas:0,ultima:0,afecto:0.3,...memConducta}:{visitas:0,ultima:0,afecto:0.3};\n const visitasGuardadas=Number(memConducta.visitas),ultimaGuardada=Number(memConducta.ultima),afectoGuardado=Number(memConducta.afecto);\n const tFecha=fecha();\n const ultima=Number.isFinite(ultimaGuardada)&&ultimaGuardada>0?ultimaGuardada:0;\n const visitasPrevias=Number.isFinite(visitasGuardadas)?Math.max(0,Math.floor(visitasGuardadas)):0;\n const primeraVisita=visitasPrevias===0;\n const dias=ultima===0?0:Math.max(0,(tFecha-ultima)/86400000);\n const afectoInicial=clampMey((Number.isFinite(afectoGuardado)?afectoGuardado:0.3)-(ultima===0?0:dias*0.05),0.1,1);\n let visitas=visitasPrevias;\n if(ultima===0||tFecha-ultima>30*60*1000)visitas++;\n let memGuardada={visitas,ultima:tFecha,afecto:afectoInicial};\n try{memoriaConducta?.guardar?.({...memGuardada});}catch{}\n let imp=mey.mente.inicial({afecto:afectoInicial},new Date(tFecha).getHours());\n let ultimoAfectoPersistido=afectoInicial;\n let ultimaPersistencia=ahora();\n const apariencia=mey.aparienciaLocal(ventana);\n const colorLocal=mey.colorLocal(ventana);\n const personalidadLocal=mey.personalidadLocal(ventana);\n let personalidad=opciones.personalidad||personalidadLocal.leer();\n const perfil=()=>perfilPersonalidadMey(personalidad);\n perfil();\n const r=mey.resolver({...opciones,atuendo:opciones.atuendo||apariencia.leer()});\n const poseVigilia=r.pose==='dormido'?'hola':r.pose;\n const energiaPedida=opciones.energia||r.energia;\n if(!['completa','calma','quieta'].includes(energiaPedida))throw new Error('mey: energía desconocida: '+energiaPedida);\n const medir=()=>opciones.celda||celdaMey(r.eje==='alto'?host.clientHeight:host.clientWidth,14+ALTO_MEY,r);\n let celda=medir();\n const energia=()=>energiaPedida==='completa'&&celda<3?'calma':energiaPedida;\n const empiezaDurmiendo=r.lugar==='vacio'&&r.pose==='dormido'&&energia()==='completa';\n let durmiendo=empiezaDurmiendo;\n if(durmiendo)imp.sueno=Math.max(imp.sueno,0.7);\n let pose=r.pose,atuendo=r.atuendo;\n vestirMey(Array.from({length:18},vacia),atuendo,{},[]);\n // Paseo: con energía completa y un espacio más ancho que ella, Mey camina por él. x en píxeles\n // (múltiplo de la celda), rumbo 1 a la derecha y -1 a la izquierda (se voltea en espejo).\n let x=0,rumbo=1,punteroX=null;\n const holgura=()=>Math.max(0,Math.floor((host.clientWidth-16*celda)/celda))*celda;\n const conPaseo=()=>opciones.paseo!==false&&energia()==='completa'&&holgura()>=8*celda;\n let e=durmiendo?{...neutro(),sentada:true}:neutro();\n let pintado='',fijos=new Set(),escena=new Set(),activo=false,ultimoPuntero=-Infinity,ocupada=false,visible=true;\n const recreo=opciones.juegos??r.juegos;\n // La memoria de la persona y, si no guarda nada (bloqueada o de prueba), la de esta visita.\n const guardada=opciones.memoria||(recreo?mey.memoriaLocal(ventana):null);\n let deLaVisita=null;\n const memoria={leer(){let d=null;try{d=guardada?.leer?.();}catch{}return d||deLaVisita;},guardar(d){deLaVisita=d;try{guardada?.guardar?.(d);}catch{}}};\n let jugando=null,pendiente=null,jugados=0,ultimaReaccion=null,ultimoJuego=null,ultimoFinJuego=ahora(),finJuegoActual=null;\n let tPunteroPrev=0,distMeyPrev=0,distanciaPuntero=Infinity,velPuntero=0,dentroDesde=null,tienePunteroPrevio=false;\n let ultimaActividad=ahora(),ultimaCercana=-Infinity,ultimoSusto=-Infinity,ultimaTecla=-Infinity;\n let novedad=null,ultimaConductaMovimiento=ahora(),ultimaTravesura=null,conductaActual=durmiendo?'dormir':null,noAntesDe=0,ultimaVezConducta={};\n let saludoPresenciaRealizado=false,cariciaPendiente=false,historialClics=[],afectoAlIniciarRafaga=null,finMolesta=0,ultimoClic=-Infinity,finDormir=null;\n let guardadoEn=-Infinity,ultimoEvento={tipo:null,t:-Infinity};\n let ocultoDesde=null,enCarga=false,bienvenidaProgramada=false;\n // De cabeza (camina por el techo) es un espejo vertical del mismo dibujo.\n const estilo=()=>{const t=[];if(conPaseo())t.push('translateX('+x+'px)'+(rumbo<0?' scaleX(-1)':''));if(e.deCabeza)t.push('scaleY(-1)');return t.length?'display:block;transform:'+t.join(' '):'';};\n const pintar=()=>{\n  if(conPaseo()){if(!host.style.position)host.style.position='relative';host.style.overflow='hidden';}\n  const dibujo=e.cartel&&conPaseo()&&rumbo<0?{...e,cartel:'espejo'}:e;\n  const svg=svgMey(cuadroMey(pose,dibujo,atuendo,false),pose,atuendo,{...opciones,color:opciones.color||colorLocal.leer(),celda,detalle:true,estilo:estilo()},true);if(svg!==pintado){host.innerHTML=svg;pintado=svg;}\n };\n const poner=cambios=>{e={...e,...cambios};pintar();};\n const despues=(ms,fn,fijo=false)=>{\n  const conjunto=fijo?fijos:escena;\n  const id=reloj.setTimeout(()=>{\n   conjunto.delete(id);\n   if(activo)fn();\n  },ms);\n  conjunto.add(id);\n  return id;\n };\n const entre=(a,b)=>a+Math.floor(azar()*(b-a));\n // Un paso es [cuadros, cambios] o [cuadros, función] (cambia pose, lugar o disfraz entre cuadros).\n const secuencia=(pasos,fin)=>{\n  ocupada=true;let t=0;\n  for(const [c,cambios] of pasos){\n   t+=c;\n   despues(enCuadros(t),()=>typeof cambios==='function'?cambios():poner(cambios));\n  }\n  despues(enCuadros(t),()=>{ocupada=false;fin&&fin();});\n };\n const interrumpir=()=>{\n  for(const id of escena)reloj.clearTimeout(id);\n  escena.clear();\n  ocupada=false;\n  durmiendo=false;\n  jugando=null;\n  pendiente=null;\n  enCarga=false;\n  finDormir=null;\n  ultimoFinJuego=ahora();\n  e=neutro();\n  pose=poseVigilia;\n  finJuegoActual=null;\n  conductaActual=null;\n  pintar();\n };\n const brinco=(h=2)=>[\n  [0,{agachar:1}],\n  [2,{agachar:0,estirar:1,salto:Math.ceil(h/2)}],\n  [1,{estirar:0,salto:h}],\n  [3,{estirar:1,salto:Math.ceil(h/2)}],\n  [1,{estirar:0,salto:0,agachar:1}],\n  [2,{agachar:0}]\n ];\n const sentarse=()=>[[0,{agachar:1}],[2,{agachar:0,sentada:true}]];\n const levantarse=()=>[[0,{agachar:1,sentada:false}],[2,{agachar:0}]];\n const girar=nuevoRumbo=>[[0,{agachar:1}],[1,()=>{rumbo=typeof nuevoRumbo==='function'?nuevoRumbo():nuevoRumbo;pintar();}],[1,{agachar:0}]];\n const tropezar=()=>[\n  [0,{inclinar:1,ojos:'grandes',caminando:1}],\n  [1,{caminando:3,estirar:1}],\n  [1,{estirar:0,caminando:0,agachar:1}],\n  [1,{inclinar:0,agachar:0,sentada:true}],\n  [4,{ojos:null,mirada:{dx:-1,dy:0}}],\n  [3,{mirada:{dx:1,dy:0}}],\n  [3,{mirada:{dx:0,dy:0}}]\n ];\n const APLAUSO_ARRIBA={brazoIzq:2,brazoDer:1,saludo:2,estirar:1,agachar:0,ojos:'felices'};\n const APLAUSO_ABAJO={brazoIzq:0,brazoDer:0,saludo:false,estirar:0,agachar:1};\n const TRAVESURAS={\n  guino:[\n   [0,{parpadeo:'guino'}],\n   [1,{parpadeo:false,ojos:'guino'}],\n   [1,{inclinar:-1}],\n   [1,{brazoIzq:1}],\n   [2,{agachar:1}],\n   [1,{agachar:0,estirar:1,salto:1}],\n   [1,{estirar:0,brazoIzq:2}],\n   [2,{salto:0,agachar:1}],\n   [1,{agachar:0,brazoIzq:1}],\n   [2,{brazoIzq:0,inclinar:0}],\n   [1,{ojos:null,parpadeo:'guino'}],\n   [1,{parpadeo:false}]\n  ],\n  chapoteo:[\n   [0,{chapoteo:'izq'}],\n   [1,{chapoteo:null,agachar:1}],\n   [1,{chapoteo:'der',agachar:0}],\n   [1,{chapoteo:null,estirar:1}],\n   [1,{chapoteo:'izq',estirar:0}],\n   [1,{chapoteo:'der',ojos:'felices'}],\n   [1,{chapoteo:null,agachar:1}],\n   [1,{chapoteo:'izq',agachar:0}],\n   [1,{chapoteo:'der',estirar:1}],\n   [1,{chapoteo:null,estirar:0}],\n   [1,{chapoteo:'izq',brazoIzq:1}],\n   [1,{chapoteo:'der',brazoIzq:0,ojos:null}],\n   [1,{chapoteo:null}]\n  ],\n  burbuja:[\n   [0,{mirada:{dx:0,dy:-1}}],\n   [1,{estirar:1}],\n   [1,{estirar:0,burbuja:0}],\n   [2,{burbuja:1}],\n   [2,{burbuja:2}],\n   [2,{burbuja:3,ojos:'grandes'}],\n   [2,{burbuja:4}],\n   [2,{burbuja:5,ojos:null}],\n   [2,{burbuja:null,destello:[9,1]}],\n   [1,{destello:null,parpadeo:'ambos'}],\n   [1,{parpadeo:false,mirada:{dx:0,dy:0}}]\n  ],\n  saludo:[\n   [0,{ojos:'grandes',estirar:1}],\n   [2,{estirar:0,ojos:null,saludo:1}],\n   [1,{saludo:2,ojos:'felices'}],\n   [2,{saludo:1}],\n   [2,{saludo:2}],\n   [2,{saludo:1}],\n   [2,{saludo:2,inclinar:1}],\n   [2,{saludo:1,inclinar:0}],\n   [2,{saludo:2}],\n   [2,{saludo:false,agachar:1}],\n   [2,{agachar:0,ojos:null}]\n  ],\n  celebrar:[\n   ...brinco(2),\n   [0,()=>{pose='exito';poner({fiesta:true,ojos:'felices'});}],\n   [4,{salto:1}],\n   [2,{salto:0}],\n   [2,{salto:1}],\n   [2,{salto:0}],\n   [4,()=>{pose=poseVigilia;poner({fiesta:false,ojos:null});}]\n  ],\n  risa:[\n   [0,{ojos:'felices',agachar:1}],\n   [1,{agachar:0,estirar:1,chapoteo:'izq'}],\n   [1,{estirar:0,agachar:1,chapoteo:'der'}],\n   [1,{agachar:0,estirar:1,chapoteo:null}],\n   [1,{estirar:0,agachar:1,chapoteo:'izq'}],\n   [1,{agachar:0,estirar:1,chapoteo:'der'}],\n   [1,{estirar:0,agachar:1,chapoteo:null}],\n   [1,{agachar:0,estirar:1,chapoteo:'izq'}],\n   [1,{estirar:0,brazoIzq:1,chapoteo:null}],\n   [3,{brazoIzq:0,ojos:null}]\n  ],\n  sorpresa:[\n   [0,{ojos:'grandes',estirar:1,salto:1}],\n   [1,{salto:2}],\n   [1,{salto:1}],\n   [1,{salto:0,estirar:0,agachar:1}],\n   [2,{agachar:0}],\n   [5,{ojos:null}]\n  ],\n  cosquillas:[\n   [0,{ojos:'felices',inclinar:-1}],\n   [1,{inclinar:1,brazoIzq:1}],\n   [1,{inclinar:-1,brazoIzq:0,saludo:1}],\n   [1,{inclinar:1,saludo:false,brazoIzq:1}],\n   [1,{inclinar:-1,brazoIzq:2}],\n   [1,{inclinar:1,brazoIzq:0,saludo:2}],\n   [1,{inclinar:-1,saludo:false}],\n   [1,{inclinar:1,agachar:1}],\n   [1,{inclinar:-1,agachar:0,estirar:1}],\n   [1,{inclinar:1,estirar:0}],\n   [1,{inclinar:0,ojos:null}]\n  ],\n  bostezo:[\n   [0,{parpadeo:'ambos'}],\n   [2,{parpadeo:false,ojos:'cerrados'}],\n   [1,{estirar:1}],\n   [3,{brazoIzq:1}],\n   [3,{brazoIzq:2}],\n   [2,{brazoIzq:1,estirar:0,agachar:1}],\n   [2,{agachar:0,brazoIzq:0}],\n   [2,{ojos:null,parpadeo:'ambos'}],\n   [1,{parpadeo:false}],\n   [2,{parpadeo:'ambos'}],\n   [1,{parpadeo:false}]\n  ],\n  estirarse:[\n   [0,{agachar:1}],\n   [2,{agachar:0,estirar:1,ojos:'cerrados'}],\n   [1,{brazoIzq:1,saludo:1}],\n   [2,{brazoIzq:2,saludo:2}],\n   [4,{estirar:0,brazoIzq:1,saludo:1}],\n   [1,{agachar:1,brazoIzq:0,saludo:false}],\n   [2,{agachar:0,ojos:null}],\n   [2,{parpadeo:'ambos'}],\n   [1,{parpadeo:false}]\n  ],\n  aplauso:[\n   [0,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [2,{brazoIzq:0,brazoDer:1,saludo:false,estirar:0,agachar:0,ojos:null}]\n  ],\n  pensar:[\n   [0,()=>{pose='pensando';pintar();}],\n   [3,{mirada:{dx:0,dy:-1}}],\n   [4,{mirada:{dx:1,dy:-1}}],\n   [4,{mirada:{dx:-1,dy:-1}}],\n   [3,{mirada:{dx:0,dy:-1},inclinar:1}],\n   [3,{inclinar:0,mirada:{dx:0,dy:0}}],\n   [2,{parpadeo:'ambos'}],\n   [1,{parpadeo:false}],\n   [2,()=>{pose=poseVigilia;pintar();}]\n  ],\n  preocupacion:[\n   [0,()=>{pose='aviso';pintar();}],\n   [1,{ojos:'grandes'}],\n   [1,{inclinar:-1}],\n   [1,{inclinar:1}],\n   [1,{inclinar:-1}],\n   [1,{inclinar:1}],\n   [2,{inclinar:0,mirada:{dx:-1,dy:0}}],\n   [2,{mirada:{dx:1,dy:0}}],\n   [2,{mirada:{dx:0,dy:0},ojos:null}],\n   [2,{agachar:1}],\n   [2,{agachar:0}],\n   [2,()=>{pose=poseVigilia;pintar();}]\n  ],\n  asentir:[\n   [0,{agachar:1}],\n   [1,{agachar:0,estirar:1}],\n   [1,{estirar:0,ojos:'felices'}],\n   [1,{agachar:1}],\n   [2,{agachar:0}],\n   [2,{ojos:null}]\n  ],\n  enojo:[\n   [0,()=>{pose='aviso';pintar();}],\n   [0,{ojos:'grandes',inclinar:-1}],\n   [1,{inclinar:1}],\n   [1,{inclinar:-1}],\n   [1,{inclinar:1}],\n   [1,{inclinar:-1}],\n   [2,{inclinar:0,ojos:null}],\n   [4,{agachar:1}],\n   [3,{agachar:0}],\n   [2,()=>{pose=poseVigilia;pintar();}]\n  ]\n };\n const despertar=fin=>{\n  if(!durmiendo){fin&&fin();return;}\n  const alDespertar=fin||finDormir;\n  interrumpir();\n  finDormir=null;\n  durmiendo=false;\n  pose=poseVigilia;\n  e=neutro();\n  pintar();\n  conductaActual='despertar';\n  secuencia(TRAVESURAS.sorpresa,()=>secuencia(TRAVESURAS.estirarse,()=>secuencia(TRAVESURAS.saludo,()=>{\n   conductaActual=null;\n   ultimaConductaMovimiento=ahora();\n   noAntesDe=ahora()+enCuadros(entre(24,72))*(2-imp.energia)*perfil().pausa;\n   alDespertar&&alDespertar();\n  })));\n };\n const alPuntero=ev=>{\n  const b=host.getBoundingClientRect();if(!b.width)return;\n  const tAhora=ahora(),estabaDormida=durmiendo;\n  ultimaActividad=tAhora;\n  const dentro=ev.clientY>=b.top&&ev.clientY<=b.bottom&&ev.clientX>=b.left&&ev.clientX<=b.right;\n  if(dentro){\n   if(dentroDesde===null)dentroDesde=tAhora;\n   punteroX=ev.clientX-b.left;\n  }else dentroDesde=null;\n  ultimoPuntero=tAhora;\n  const cx=b.left+(conPaseo()?x+8*celda:b.width/2),cy=b.top+b.height/2;\n  const distMey=Math.hypot(ev.clientX-cx,ev.clientY-cy);\n  distanciaPuntero=distMey;\n  if(distMey<=12*celda)ultimaCercana=tAhora;\n  if(!tienePunteroPrevio){\n   tienePunteroPrevio=true;tPunteroPrev=tAhora;distMeyPrev=distMey;\n  }else{\n   const dt=tAhora-tPunteroPrev;\n   if(dt>=8){\n    const instVel=((distMeyPrev-distMey)/dt)*1000;\n    velPuntero=velPuntero===0?instVel:0.5*velPuntero+0.5*instVel;\n    tPunteroPrev=tAhora;distMeyPrev=distMey;\n   }\n  }\n  if(distMey<=12*celda&&velPuntero>=1200&&imp.afecto<.6&&!estabaDormida&&!jugando&&tAhora-ultimoSusto>10000){\n   ultimoSusto=tAhora;\n   interrumpir();\n   conductaActual='susto';\n   const dir=ev.clientX>cx?-1:1,destRetiro=x+dir*entre(4,8)*celda;\n   secuencia(TRAVESURAS.sorpresa,()=>{\n    if(conPaseo())caminar(destRetiro,()=>{conductaActual=null;},{cuadros:1});\n    else conductaActual=null;\n   });\n   return;\n  }\n  if(estabaDormida&&distMey<=12*celda)despertar();\n  if(ocupada)return;\n  const dx=ev.clientX<cx-b.width*.6?-1:ev.clientX>cx+b.width*.6?1:0;\n  const dy=ev.clientY<cy-b.height*.6?-1:(ev.clientY>cy+b.height*.6?1:0);\n  const dxv=conPaseo()&&rumbo<0?-dx:dx;\n  if(dxv!==e.mirada.dx||dy!==e.mirada.dy)poner({mirada:{dx:dxv,dy}});\n };\n const celebrar=()=>{\n  if(!activo||ocupada)return;\n  ultimaReaccion='celebrar';\n  secuencia(TRAVESURAS.celebrar);\n };\n /* Camina hasta destino (px) alternando las patas. cuadros por paso, zancada en celdas, brinco (salta\n    a cada paso), libre (puede salir del escenario: se esconde tras el borde), sigilo (sin mover brazos)\n    y pausa() → cuadros que se queda congelada antes del siguiente paso (0 sigue). En el recreo es torpe:\n    a veces se tropieza a medio camino (y a veces hasta se cae sentada). Sin paseo llega en el acto. */\n const caminar=(destino,alLlegar,opts={})=>{\n  if(!conPaseo()){alLlegar&&alLlegar();return;}\n  const {\n   cuadros=2,\n   zancada=1,brinco=false,libre=false,sigilo=false,pausa=null,torpe=recreo,atras=false\n  } = opts;\n  const borde=libre?17*celda:0;\n  const meta=Math.max(-borde,Math.min(holgura()+borde,Math.round(destino/celda)*celda));\n  if(meta===x){alLlegar&&alLlegar();return;}\n  ocupada=true;\n  const nuevoRumbo=meta>x?1:-1;\n  const andar=()=>{\n   if(!activo)return;\n   ocupada=true;\n   const total=Math.ceil(Math.abs(meta-x)/(zancada*celda));\n   let tropiezo=torpe&&total>3&&azar()<.18?1+Math.floor(azar()*(total-2)):-1;\n   const paso=n=>{\n    if(!activo)return;\n    if(n===tropiezo){\n     tropiezo=-1;\n     secuencia(tropezar(),()=>{\n      ocupada=true;\n      if(azar()<.35){\n       secuencia(sentarse(),()=>{\n        ocupada=true;\n        despues(enCuadros(entre(7,12)),()=>secuencia(levantarse(),()=>paso(n)));\n       });\n      }else{\n       secuencia(levantarse(),()=>paso(n));\n      }\n     });\n     return;\n    }\n    const espera=pausa?pausa():0;\n    if(espera){\n     despues(enCuadros(espera),()=>paso(n));\n     return;\n    }\n    const dur=cuadros+(n===0||n>=total-2?1:0);\n    const A=Math.max(1,Math.floor(dur/2));\n    const B=dur-A;\n    poner({\n     caminando:n%2?3:4,\n     agachar:0,\n     brazoIzq:sigilo?0:(n%2?1:0),\n     sentada:false,\n     salto:brinco&&n%2===0?1:0,\n     estirar:brinco&&n%2===0?1:0\n    });\n    despues(enCuadros(A),()=>{\n     x=nuevoRumbo>0?Math.min(meta,x+zancada*celda):Math.max(meta,x-zancada*celda);\n     poner({\n      caminando:n%2?1:2,\n      agachar:brinco?1:0,\n      salto:0,\n      estirar:0\n     });\n     if(x!==meta){\n      despues(enCuadros(B),()=>paso(n+1));\n     }else{\n      despues(enCuadros(B),()=>{\n       poner({caminando:0,agachar:0,brazoIzq:0,salto:0,estirar:0});\n       ocupada=false;\n       alLlegar&&alLlegar();\n      });\n     }\n    });\n   };\n   paso(0);\n  };\n  const frente=atras?-nuevoRumbo:nuevoRumbo;\n  if(frente!==rumbo){\n   secuencia(girar(frente),andar);\n  }else{\n   andar();\n  }\n };\n /* ---------- Recreo: los juegos ----------\n    Cada juego tiene foto (cómo se ve quieta), inicio opcional (dónde y cómo la encuentras;\n    primero = la persona recién llega) y correr(fin). Las direcciones de la mirada y de inclinarse\n    son de Mey: al voltearse en espejo, el navegador las voltea con ella. */\n const uno=lista=>lista[Math.floor(azar()*lista.length)];\n const lado=()=>azar()<.5?-1:1;\n const fuera=s=>s<0?-17*celda:holgura()+17*celda;\n const asomo=s=>s<0?-9*celda:holgura()+9*celda;\n const alAzar=()=>Math.floor(azar()*(holgura()/celda+1))*celda;\n const aDistancia=n=>{const h=holgura(),d=n*celda,ops=[x+d,x-d].filter(v=>v>=0&&v<=h);return ops.length?uno(ops):(x>h/2?0:h);};\n const ponerX=(px,r)=>{x=px;if(r)rumbo=r;pintar();};\n const risa=()=>TRAVESURAS.risa;\n // Saluda; a veces con tanto entusiasmo que se va de lado y se cae sentada.\n const saludo=()=>[...TRAVESURAS.saludo,...(azar()<.2?tropezar():[])];\n const hipido=(t=0)=>[\n  [t,{agachar:1}],\n  [1,{agachar:0,estirar:1,salto:1,ojos:'grandes',burbujas:[[9,3]]}],\n  [1,{salto:0,estirar:0}],\n  [2,{ojos:null,burbujas:[[9,2]]}],\n  [2,{burbujas:[[9,1]]}],\n  [2,{burbujas:[[9,0]]}],\n  [2,{burbujas:null}]\n ];\n const fiesta=()=>[[0,()=>{pose='exito';poner({fiesta:true});}],[14,()=>{pose=poseVigilia;poner({fiesta:false});}]];\n // Sale corriendo por el borde más cercano (o aparece ya escondida al llegar).\n const esconderse=(primero,s,listo)=>{\n  if(!conPaseo())return listo();\n  if(primero){ponerX(fuera(s),-s);return listo();}\n  caminar(fuera(s),()=>secuencia(girar(-rumbo),listo),{cuadros:1,zancada:2,libre:true});\n };\n const cerca=()=>x>holgura()/2?1:-1;\n let lado0=1;\n const JUEGOS={\n  // La encuentras dormida y roncando burbujas; la despiertas acercándote (o se despierta sola).\n  siesta:{\n   foto:()=>({pose:'dormido',e:{sentada:true}}),\n   inicio(primero,listo){pose='dormido';if(primero&&conPaseo())x=alAzar();poner({sentada:true});listo();},\n   correr(fin){\n    const ronquidos=2+Math.floor(azar()*3);\n    const despertar=()=>{pose=poseVigilia;secuencia([[0,{burbuja:null,ojos:'grandes'}],...levantarse(),...brinco(2),[0,{mirada:{dx:-1,dy:0}}],[6,{mirada:{dx:1,dy:0}}],[5,{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}],...saludo()],fin);};\n    const roncar=k=>{\n     if(k>=ronquidos||ahora()-ultimoPuntero<1200)return despertar();\n     secuencia([[0,{burbuja:0}],[4,{burbuja:1}],[4,{burbuja:2}],[4,{burbuja:3}],[4,{burbuja:4}],[4,{burbuja:null}]],()=>despues(enCuadros(entre(4,11)),()=>roncar(k+1)));\n    };\n    roncar(0);\n   }\n  },\n  // Escondidillas: se asoma por un borde, se esconde y reaparece por el otro.\n  escondidillas:{\n   foto:()=>({pose:'hola',e:{mirada:{dx:1,dy:0}}}),\n   inicio(primero,listo){lado0=primero?lado():cerca();esconderse(primero,lado0,listo);},\n   correr(fin){\n    // Sin espacio para esconderse: juega «¿dónde está Mey?… ¡bu!» en su lugar.\n    if(!conPaseo()){\n     const pasos=[];for(let i=0,n=2+Math.floor(azar()*2);i<n;i++)pasos.push([i?entre(4,7):0,{parpadeo:'ambos',mirada:{dx:0,dy:0}}],[entre(8,16),{parpadeo:false,ojos:'grandes'}],...brinco(2),[5,{ojos:null,mirada:{dx:i%2?1:-1,dy:0}}],[4,{mirada:{dx:0,dy:0}}]);\n     return secuencia([...pasos,...saludo(),...risa()],fin);\n    }\n    const s=lado0,o=azar()<.7?-s:s;\n    secuencia([[0,()=>ponerX(asomo(s),-s)],[0,{mirada:{dx:1,dy:0}}],[entre(7,12),{mirada:{dx:0,dy:0},ojos:'grandes'}],[5,()=>{ponerX(fuera(s));poner({ojos:null});}],[entre(8,18),()=>ponerX(asomo(o),-o)],[0,{mirada:{dx:1,dy:-1}}],[entre(7,11),{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}]],\n     ()=>caminar(o<0?entre(4,24)*celda:holgura()-entre(4,24)*celda,()=>secuencia([...saludo(),...risa()],fin),{cuadros:1,zancada:2,libre:true,brinco:true}));\n   }\n  },\n  // Persigue una burbuja que suelta, la burbuja revienta y ella se queda chiquita.\n  burbuja:{\n   foto:()=>({pose:'hola',e:{burbujas:[[11,2],[13,0]],mirada:{dx:1,dy:0}}}),\n   correr(fin){\n    const volar=[[0,{mirada:{dx:0,dy:-1},burbujas:[[9,4]]}],[3,{burbujas:[[10,3]]}],[3,{burbujas:[[12,2]],mirada:{dx:1,dy:-1}}],[3,{burbujas:[[13,1]]}],[3,{burbujas:[[14,1]],mirada:{dx:1,dy:0}}]];\n    const reventar=[[0,{burbujas:[[14,0]]}],[3,{burbujas:null,destello:[14,1],ojos:'grandes',mirada:{dx:0,dy:0}}],[3,{destello:null}],[5,()=>{pose='aviso';poner({ojos:null});}],[11,()=>{pose=poseVigilia;pintar();}],...risa()];\n    secuencia(volar,()=>caminar(aDistancia(entre(8,24)),()=>secuencia(reventar,fin),{cuadros:entre(1,3),brinco:azar()<.5}));\n   }\n  },\n  // Probador: se cambia de disfraz de un brinco en otro y se queda con el que más le gusta.\n  probador:{\n   foto:()=>({pose:'hola',atuendo:uno(['gala','charro','luchador']),e:{parpadeo:'guino'}}),\n   correr(fin){\n    const lista=barajarMey(ATUENDOS_MEY.filter(a=>a!==atuendo&&a!=='ninguno'),azar);\n    const pasos=[];\n    for(const a of lista)pasos.push(...brinco(2),[0,()=>{atuendo=a;pintar();}],[entre(6,11),{mirada:{dx:uno([-1,1]),dy:0}}],[entre(4,7),{mirada:{dx:0,dy:0}}]);\n    const final=uno([...lista,'rebozo']);\n    pasos.push(...brinco(2),[0,()=>{atuendo=final;poner({parpadeo:'guino'});}],[4,{parpadeo:false}],...saludo());\n    secuencia(pasos,fin);\n   }\n  },\n  // Baile: pasos al azar sin repetir el anterior y papel picado al final.\n  baile:{\n   foto:()=>({pose:'exito',e:{fiesta:true}}),\n   correr(fin){\n    const movs=[()=>[[0,{chapoteo:'izq'}],[2,{chapoteo:'der'}],[2,{chapoteo:null}]],()=>brinco(2),()=>girar(()=>-rumbo),()=>[[0,{inclinar:1}],[2,{inclinar:-1}],[2,{inclinar:0}]],()=>saludo(),()=>[...brinco(2),[0,{parpadeo:'guino'}],[2,{parpadeo:false}]]];\n    const pasos=[],n=6+Math.floor(azar()*6);let previo=-1;\n    for(let i=0;i<n;i++){let k=Math.floor(azar()*movs.length);if(k===previo)k=(k+1)%movs.length;previo=k;const m=movs[k]();m[0][0]=i?entre(2,4):0;pasos.push(...m);}\n    secuencia([...pasos,...sentarse(),[0,{parpadeo:'ambos'}],...levantarse(),[0,{parpadeo:false,ojos:'grandes'}],[2,{ojos:null}],...saludo(),...fiesta()],fin);\n   }\n  },\n  // Hipo: brinquitos con burbuja y cara de «perdón».\n  hipo:{\n   foto:()=>({pose:'hola',e:{burbujas:[[9,2]],ojos:'grandes'}}),\n   correr(fin){\n    const pasos=[],n=3+Math.floor(azar()*3);\n    for(let i=0;i<n;i++)pasos.push(...hipido(i?entre(8,19):4),[0,{mirada:{dx:uno([-1,0,1]),dy:0}}]);\n    secuencia([...pasos,[6,{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}],...risa()],fin);\n   }\n  },\n  // Da vueltas cada vez más rápido, se marea, se sienta y sacude la cabeza.\n  mareo:{\n   foto:()=>({pose:'hola',e:{sentada:true,inclinar:uno([-1,1]),mirada:{dx:1,dy:-1}}}),\n   correr(fin){\n    const vueltas=6+Math.floor(azar()*5);\n    const marear=i=>{\n     if(i>=vueltas){\n      const circulo=[{dx:1,dy:0},{dx:1,dy:-1},{dx:0,dy:-1},{dx:-1,dy:-1},{dx:-1,dy:0},{dx:0,dy:0}],pasos=[];\n      for(let k=0;k<12;k++)pasos.push([2,{mirada:circulo[k%6],inclinar:k%4<2?1:-1}]);\n      return secuencia([...pasos,...sentarse(),[0,{inclinar:0,mirada:{dx:0,dy:0}}],[entre(14,24),{mirada:{dx:-1,dy:0}}],[2,{mirada:{dx:1,dy:0}}],[2,{mirada:{dx:-1,dy:0}}],[2,{mirada:{dx:0,dy:0}}],...levantarse(),[4,{parpadeo:'guino'}],[4,{parpadeo:false}]],fin);\n     }\n     const intervalo=Math.max(2,4-Math.floor(2*i/vueltas));\n     secuencia(girar(()=>-rumbo),()=>despues(enCuadros(intervalo-2),()=>marear(i+1)));\n    };\n    marear(0);\n   }\n  },\n  // Llega corriendo, se tropieza, se ríe de sí misma y saluda.\n  carrera:{\n   foto:()=>({pose:'hola',e:{sentada:true,ojos:'grandes'}}),\n   inicio(primero,listo){lado0=primero?lado():cerca();esconderse(primero,lado0,listo);},\n   correr(fin){\n    const tropiezo=[...tropezar(),...risa(),...levantarse(),...saludo()];\n    caminar(lado0<0?entre(6,30)*celda:holgura()-entre(6,30)*celda,()=>secuencia(tropiezo,fin),{cuadros:1,zancada:2,libre:true});\n   }\n  },\n  // Estornudo (a veces falsa alarma primero): ¡achú! de burbujas.\n  estornudo:{\n   foto:()=>({pose:'hola',e:{parpadeo:'ambos',inclinar:-1}}),\n   correr(fin){\n    const nube=()=>Array.from({length:5+Math.floor(azar()*4)},()=>[entre(1,15),entre(0,6)]);\n    const aguantar=[[0,{parpadeo:'ambos',inclinar:-1}],[entre(5,8),{inclinar:0}],[3,{inclinar:-1}]];\n    const falsa=azar()<.5?[[entre(6,10),{inclinar:0,parpadeo:false,ojos:'grandes'}],[entre(7,13),{ojos:null,mirada:{dx:0,dy:-1}}],[entre(6,11),{mirada:{dx:0,dy:0}}],[entre(4,8),{inclinar:-1,parpadeo:'ambos'}]]:[];\n    secuencia([...aguantar,...falsa],()=>despues(enCuadros(entre(4,7)),()=>{\n     const salto=brinco(2);\n     salto[0]=[0,{...salto[0][1],inclinar:1,parpadeo:false,ojos:'grandes',burbujas:nube()}];\n     secuencia(salto,()=>secuencia([[3,{burbujas:nube()}],[3,{burbujas:nube()}],[4,{burbujas:null,inclinar:0,ojos:null}],[4,{mirada:{dx:-1,dy:0}}],[4,{mirada:{dx:1,dy:0}}],[4,{mirada:{dx:0,dy:0}}],...risa()],fin));\n    }));\n   }\n  },\n  // Lee mientras camina, choca con algo invisible, se voltea y sigue leyendo.\n  lectura:{\n   foto:()=>({pose:'leyendo'}),\n   inicio(primero,listo){pose='leyendo';pintar();listo();},\n   correr(fin){\n    const leer=[];for(let i=0,n=2+Math.floor(azar()*3);i<n;i++)leer.push([i?4:0,{mirada:{dx:-1,dy:0}}],[entre(6,10),{mirada:{dx:0,dy:0}}],[entre(5,8),{mirada:{dx:1,dy:0}}]);\n    if(!conPaseo())return secuencia([...leer,[5,{mirada:{dx:0,dy:0},parpadeo:'ambos'}],[7,{inclinar:1}],[entre(8,14),{inclinar:0,parpadeo:false,ojos:'grandes'}],...brinco(2),[5,()=>{pose=poseVigilia;poner({ojos:null});}],...risa()],fin);\n    const choque=[[0,()=>{pose=poseVigilia;poner({ojos:'grandes',inclinar:-1});}],...brinco(2),[6,{inclinar:0,ojos:null,mirada:{dx:-1,dy:0}}],[5,{mirada:{dx:0,dy:0}}],...girar(()=>-rumbo),[0,()=>{pose='leyendo';pintar();}],[entre(6,12),()=>{}]];\n    secuencia([...leer,[4,{mirada:{dx:0,dy:0}}]],()=>caminar(aDistancia(entre(8,20)),()=>secuencia(choque,()=>caminar(aDistancia(entre(5,14)),()=>{pose=poseVigilia;pintar();fin();},{cuadros:3}),{cuadros:3})));\n   }\n  },\n  // Piensa con la mirada arriba, se le prende el foco, corre brincando y celebra.\n  idea:{\n   foto:()=>({pose:'pensando'}),\n   inicio(primero,listo){pose='pensando';pintar();listo();},\n   correr(fin){\n    secuencia([[0,{mirada:{dx:0,dy:-1}}],[entre(11,18),{mirada:{dx:1,dy:-1}}],[entre(8,14),{mirada:{dx:-1,dy:-1}}]],()=>{\n     pose=poseVigilia;\n     const salto=brinco(2);\n     salto[0]=[0,{...salto[0][1],destello:[13,1],ojos:'grandes',mirada:{dx:0,dy:0}}];\n     secuencia(salto,()=>secuencia([[5,{destello:null,ojos:null}]],()=>caminar(aDistancia(entre(6,20)),()=>secuencia([...brinco(2),[0,{parpadeo:'guino'}],[2,{parpadeo:false}],...saludo(),...fiesta()],fin),{cuadros:entre(1,3),brinco:true})));\n    });\n   }\n  },\n  // El gran salto (ironía): se prepara muchísimo, tiembla de concentración… y el salto es de una\n  // celda. Aterriza orgullosa y saluda como si nada.\n  gransalto:{\n   foto:()=>({pose:'hola',e:{sentada:true,parpadeo:'ambos'}}),\n   correr(fin){\n    const temblor=[];for(let i=0,n=6+Math.floor(azar()*6);i<n;i++)temblor.push([i?1:entre(6,11),{inclinar:i%2?1:-1}]);\n    secuencia([...sentarse(),[0,{parpadeo:'ambos'}],...temblor,[2,{inclinar:0,parpadeo:false,ojos:'grandes'}]],()=>despues(enCuadros(6),()=>secuencia([...levantarse(),...brinco(1),[entre(6,11),{mirada:{dx:-1,dy:0}}],[5,{mirada:{dx:1,dy:0}}],[5,{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}],...saludo()],fin)));\n   }\n  },\n  // Resbalón: de tanto jugar le escurre una gota de sudor, la gota llega al piso y ella la pisa.\n  // Después mira a los lados: «¿nadie vio?».\n  resbalon:{\n   foto:()=>({pose:'hola',e:{sentada:true,inclinar:-1,ojos:'grandes'}}),\n   correr(fin){\n    const gota=[[14,8],[14,9],[14,11],[14,13],[14,15],[14,17]];\n    secuencia([...gota.map(([x,y],i)=>[i?entre(2,3):0,{burbujas:[[x,y]]}]),[entre(6,11),{mirada:{dx:1,dy:0}}],[5,{mirada:{dx:0,dy:0},caminando:2}],[2,{caminando:1,burbujas:null,inclinar:-1,ojos:'grandes'}]],()=>secuencia([...brinco(2),[0,{caminando:0}]],()=>secuencia([...sentarse(),[0,{inclinar:0}],[8,{mirada:{dx:-1,dy:0}}],[3,{mirada:{dx:1,dy:0}}],[3,{mirada:{dx:-1,dy:0}}],[3,{mirada:{dx:0,dy:0},ojos:null}],...levantarse(),[4,{parpadeo:'guino'}],[4,{parpadeo:false}],...saludo()],fin)));\n   }\n  },\n  // La burbuja la persigue a ella: huye mirando atrás y la burbuja le revienta en la cara.\n  perseguida:{\n   foto:()=>({pose:'hola',e:{burbujas:[[1,5]],ojos:'grandes',mirada:{dx:-1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,{burbujas:[[9,4]],mirada:{dx:0,dy:-1}}],[4,{burbujas:[[7,3]]}],[4,{burbujas:[[4,3]],mirada:{dx:-1,dy:0}}],[4,{burbujas:[[2,5]],ojos:'grandes'}]],\n     ()=>despues(enCuadros(5),()=>caminar(aDistancia(entre(10,26)),()=>secuencia([[0,{burbujas:[[3,4]],mirada:{dx:0,dy:0}}],[2,{burbujas:[[5,5]]}],[2,{burbujas:null,destello:[6,4],parpadeo:'ambos',ojos:null}],[4,{destello:null}],[5,{parpadeo:false}],...risa()],fin),{cuadros:1})));\n   }\n  },\n  // Se le olvida la gravedad: flota, patalea en el aire, se acuerda… y cae de sentón.\n  gravedad:{\n   foto:()=>({pose:'hola',e:{flotar:2,ojos:'grandes',caminando:1}}),\n   correr(fin){\n    const pasos=[[0,{ojos:'grandes'}]];\n    for(let k=1;k<=4;k++)pasos.push([entre(4,7),{flotar:k,caminando:k%2?1:2}]);\n    for(let i=0,n=3+Math.floor(azar()*4);i<n;i++)pasos.push([2,{caminando:i%2?1:2,mirada:{dx:i%2?1:-1,dy:0}}]);\n    secuencia([...pasos,[entre(6,11),{caminando:0,mirada:{dx:0,dy:0},ojos:null,parpadeo:'guino'}],[4,{parpadeo:false,ojos:'grandes'}],[1,{flotar:2}],[1,{flotar:0,inclinar:1}],...sentarse(),[0,{inclinar:0}],[7,{ojos:null,mirada:{dx:-1,dy:0}}],[4,{mirada:{dx:1,dy:0}}],[4,{mirada:{dx:0,dy:0}}],...levantarse(),...risa()],fin);\n   }\n  },\n  // Se evapora (química pura): pierde el líquido de las perneras fila por fila, se preocupa,\n  // se junta una nube arriba y le llueve adentro hasta quedar llena otra vez.\n  evaporacion:{\n   foto:()=>({pose:'hola',e:{seca:2,mirada:{dx:0,dy:-1},burbujas:[[5,1],[10,0]]}}),\n   correr(fin){\n    const vapor=k=>[entre(6,10),{seca:k,burbujas:[[entre(3,13),entre(0,3)],[entre(3,13),entre(0,3)]]}];\n    const nube=[[6,0],[7,0],[8,0],[9,0],[5,1],[10,1]];\n    secuencia([[0,{mirada:{dx:0,dy:-1}}],vapor(1),vapor(2),vapor(3),[6,{ojos:'grandes',burbujas:null}],[8,{ojos:null,mirada:{dx:-1,dy:0}}],[6,{mirada:{dx:1,dy:0}}],[6,{mirada:{dx:0,dy:-1},burbujas:nube}],[7,{burbujas:[...nube,[7,2],[9,1]]}],[3,{burbujas:[...nube,[7,3],[9,2],[6,1]],seca:2}],[3,{burbujas:[...nube,[9,3],[6,2],[8,1]],seca:1}],[3,{burbujas:[...nube,[6,3],[8,2]],seca:0}],[4,{burbujas:null,mirada:{dx:0,dy:0}}],...risa()],fin);\n   }\n  },\n  // Camina por el techo: de un brinco queda de cabeza, pasea así tan campante y se cae.\n  techo:{\n   foto:()=>({pose:'hola',e:{deCabeza:true}}),\n   correr(fin){\n    const caida=[[4,{mirada:{dx:0,dy:-1}}],[7,{ojos:'grandes'}],[4,{deCabeza:false,inclinar:1}],...sentarse(),[0,{inclinar:0}],[7,{ojos:null,mirada:{dx:-1,dy:-1}}],[2,{mirada:{dx:1,dy:-1}}],[2,{mirada:{dx:0,dy:0}}],...levantarse(),...risa()];\n    secuencia([...brinco(2),...brinco(2),[0,{deCabeza:true,ojos:'grandes'}],[7,{ojos:null}]],\n     ()=>caminar(aDistancia(entre(5,14)),()=>secuencia(caida,fin),{cuadros:2,torpe:false}));\n   }\n  },\n  // Paso lunar: las patas avanzan, pero Mey se desliza mirando al lado contrario.\n  pasolunar:{\n   foto:()=>({pose:'hola',e:{caminando:3,brazoIzq:1,parpadeo:'guino'}}),\n   correr(fin){\n    const terminar=()=>secuencia([[0,{caminando:0,parpadeo:'guino'}],[6,{parpadeo:false}],...saludo()],fin);\n    if(conPaseo())caminar(aDistancia(entre(8,18)),terminar,{cuadros:3,atras:true,torpe:false});\n    else secuencia([[0,{caminando:1,inclinar:1}],[3,{caminando:3,inclinar:0}],[3,{caminando:2,inclinar:-1}],[3,{caminando:4,inclinar:0}],[3,{caminando:0}]],terminar);\n   }\n  },\n  // Protesta por nada, patalea... y termina celebrando su propia protesta.\n  berrinche:{\n   foto:()=>({pose:'hola',e:{brazoIzq:2,brazoDer:2,agachar:1}}),\n   correr(fin){\n    const pasos=[[0,{brazoIzq:2,brazoDer:2}]];\n    for(let i=0,n=entre(3,6);i<n;i++)pasos.push([3,{chapoteo:'izq',agachar:1,inclinar:-1}],[3,{chapoteo:'der',agachar:0,inclinar:1}]);\n    secuencia([...pasos,[3,{chapoteo:null,inclinar:0,brazoIzq:0,brazoDer:1}],...risa(),...fiesta()],fin);\n   }\n  },\n  // Suelta una burbuja, mira a los lados y se hace la que estaba leyendo.\n  inocente:{\n   foto:()=>({pose:'leyendo',e:{mirada:{dx:1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,()=>{pose='hola';pintar();}],...TRAVESURAS.burbuja,[4,{mirada:{dx:-1,dy:0}}],[5,{mirada:{dx:1,dy:0}}],[4,()=>{pose='leyendo';poner({mirada:{dx:0,dy:0}});}],[16,()=>{pose=poseVigilia;poner({parpadeo:'guino'});}],[4,{parpadeo:false}]],fin);\n   }\n  },\n  // Mucho esfuerzo para teletransportarse: sigue exactamente en el mismo sitio.\n  teletransporte:{\n   foto:()=>({pose:'pensando',e:{agachar:1,destello:[12,1]}}),\n   correr(fin){\n    const pasos=[];\n    for(let i=0,n=entre(3,5);i<n;i++)pasos.push([3,{agachar:1,parpadeo:'ambos',inclinar:-1}],[3,{inclinar:1,destello:[12,1]}]);\n    secuencia([...pasos,[2,{inclinar:0,agachar:0,parpadeo:false,destello:null}],...brinco(2),[0,{ojos:'grandes',mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0}}],[8,{ojos:null,mirada:{dx:0,dy:0}}],...risa()],fin);\n   }\n  },\n  // Saluda a su público imaginario; la reverencia se convierte en un sentón.\n  reverencia:{\n   foto:()=>({pose:'hola',e:{inclinar:1,brazoIzq:1}}),\n   correr(fin){\n    secuencia([...saludo(),[3,{inclinar:1,agachar:1}],[4,{inclinar:1,ojos:'grandes'}],...tropezar(),...levantarse(),[0,{inclinar:0,ojos:null}],...risa()],fin);\n   }\n  },\n  // Se niega con la cabeza, se sienta de espaldas... y vuelve a asomarse por curiosidad.\n  rebeldia:{\n   foto:()=>({pose:'hola',e:{sentada:true,mirada:{dx:-1,dy:0},brazoDer:0}}),\n   correr(fin){\n    secuencia([[0,{mirada:{dx:-1,dy:0},brazoDer:0}],[4,{mirada:{dx:1,dy:0}}],[4,{mirada:{dx:-1,dy:0}}],...girar(()=>-rumbo),...sentarse(),[12,{mirada:{dx:1,dy:-1}}],[8,{parpadeo:'guino'}],[3,{parpadeo:false}],...levantarse(),...girar(()=>-rumbo),...saludo()],fin);\n   }\n  },\n  // Huelga de unos segundos: dice NO con su cartel, revisa si la vieron y se despide feliz.\n  huelga:{\n   foto:()=>({pose:'hola',e:{cartel:true,brazoDer:1,mirada:{dx:-1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,{cartel:true,brazoDer:1}],[10,{mirada:{dx:-1,dy:0}}],[10,{mirada:{dx:1,dy:0}}],[8,{mirada:{dx:0,dy:0},agachar:1}],[6,{agachar:0}],[10,{parpadeo:'guino'}],[4,{parpadeo:false,cartel:false}],...saludo()],fin);\n   }\n  },\n  // Exige atención con las manos, espera... y se concede su propia ovación.\n  aplausos:{\n   foto:()=>({pose:'hola',e:{brazoIzq:2,saludo:2,ojos:'grandes'}}),\n   correr(fin){\n    secuencia([[0,{brazoIzq:2,saludo:2,ojos:'grandes'}],[8,{mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0}}],[10,{mirada:{dx:0,dy:0},ojos:null}],[8,{agachar:1}],[4,{agachar:0,brazoIzq:0,saludo:false}],...TRAVESURAS.aplauso,[6,{brazoIzq:0,brazoDer:0,saludo:false,agachar:0,estirar:0}],[5,{inclinar:1}],[5,{inclinar:0,parpadeo:'guino'}],[4,{parpadeo:false}]],fin);\n   }\n  },\n  // Confeti sin culpable: lo avienta, señala fuera del escenario y abre su libro.\n  confeti:{\n   foto:()=>({pose:'leyendo',e:{confeti:2,mirada:{dx:1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,{brazoIzq:2,saludo:2,confeti:1,ojos:'felices'}],[4,{confeti:2}],[4,{confeti:3,brazoIzq:0,saludo:false}],[4,{confeti:4,ojos:null}],[4,{confeti:5}],[4,{confeti:0,mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0},brazoDer:1}],[8,()=>{pose='leyendo';poner({brazoDer:0,mirada:{dx:0,dy:0}});}],[18,{parpadeo:'guino'}],[4,{parpadeo:false}]],fin);\n   }\n  },\n  // Estatuas de marfil: avanza de puntitas y se congela si mueves el puntero (o cuando se le antoja).\n  estatuas:{\n   foto:()=>({pose:'hola',e:{caminando:1,ojos:'grandes'}}),\n   correr(fin){\n    let congelada=0;\n    const pausa=()=>{\n     if(congelada<25&&(ahora()-ultimoPuntero<700||azar()<.08)){congelada++;if(!e.ojos)poner({ojos:'grandes'});return 5;}\n     if(e.ojos)poner({ojos:null});return 0;\n    };\n    // Sin espacio: baila en su lugar y se congela en poses chistosas, con ojos de «¿me viste?».\n    if(!conPaseo()){\n     const quieta={chapoteo:null,saludo:false,inclinar:0,salto:0};\n     const poses=[()=>[[0,{...quieta,chapoteo:'izq'}]],()=>[[0,{...quieta,chapoteo:'der'}]],()=>[...saludo(),[0,quieta]],()=>[[0,{...quieta,inclinar:1}]],()=>[[0,{...quieta,inclinar:-1}]],()=>[...brinco(2),[0,quieta]]];\n     const pasos=[];for(let i=0,n=8+Math.floor(azar()*5);i<n;i++){const gesto=uno(poses)();if(i)gesto[0][0]=entre(3,5);pasos.push(...gesto);if(azar()<.3)pasos.push([0,{ojos:'grandes'}],[entre(8,13),{ojos:null}]);}\n     return secuencia([...pasos,[3,quieta],...risa()],fin);\n    }\n    const tramos=2+Math.floor(azar()*2);\n    const tramo=k=>{\n     if(k>=tramos)return secuencia([[0,{ojos:null,caminando:0,parpadeo:'guino'}],[4,{parpadeo:false}],...risa()],fin);\n     caminar(aDistancia(entre(5,14)),()=>despues(enCuadros(entre(4,8)),()=>tramo(k+1)),{cuadros:3,sigilo:true,pausa});\n    };\n    tramo(0);\n   }\n  }\n };\n const empezar=(nombre,fin)=>{\n  let n=nombre||pendiente||mey.siguienteJuego(memoria,azar,JUEGOS_MEY,personalidad);\n  // Nunca el mismo juego dos veces seguidas, aunque el primero haya venido forzado.\n  if(!nombre&&!pendiente&&n===ultimoJuego&&JUEGOS_MEY.length>1)n=mey.siguienteJuego(memoria,azar,JUEGOS_MEY,personalidad);\n  pendiente=null;jugando=n;ultimoJuego=n;finJuegoActual=fin||null;\n  const primero=!jugados++;\n  pose=poseVigilia;atuendo=opciones.atuendo||apariencia.leer();e=neutro();\n  if(primero&&conPaseo()){x=alAzar();rumbo=lado();}\n  pintar();\n  const listo=()=>despues(enCuadros(primero?entre(6,14):entre(4,8)),()=>JUEGOS[n].correr(terminar));\n  JUEGOS[n].inicio?JUEGOS[n].inicio(primero,listo):listo();\n };\n const terminar=()=>{\n  const fin=finJuegoActual;\n  finJuegoActual=null;\n  jugando=null;\n  ultimoFinJuego=ahora();\n  pose=poseVigilia;\n  atuendo=opciones.atuendo||apariencia.leer();\n  e=neutro();\n  pintar();\n  fin&&fin();\n };\n const foto=n=>{const f=JUEGOS[n].foto();pose=f.pose;if(f.atuendo)atuendo=f.atuendo;e={...neutro(),...f.e};if(conPaseo()){x=alAzar();rumbo=lado();}};\n // Al clic, en el recreo reacciona distinto cada vez (nunca dos veces seguidas lo mismo).\n const REACCIONES={celebrar:null,risa,tropiezo:()=>tropezar(),guino:()=>TRAVESURAS.guino,hipo:()=>hipido(),sorpresa:()=>TRAVESURAS.sorpresa};\n const completarConducta=nombre=>{\n  if(conductaActual!==nombre)return;\n  conductaActual=null;\n  ultimaConductaMovimiento=ahora();\n  noAntesDe=ahora()+enCuadros(entre(24,72))*(2-imp.energia)*perfil().pausa;\n };\n const roncada=()=>{\n  if(!durmiendo||!activo)return;\n  const pasos=[[0,{burbuja:0}],[2,{burbuja:1}],[2,{burbuja:2}],[2,{burbuja:3}],[2,{burbuja:4}],[2,{burbuja:5}],[2,{burbuja:null}]];\n  secuencia(pasos,()=>{if(durmiendo){ocupada=true;despues(enCuadros(entre(4,10)),roncada);}});\n };\n const COMPORTAMIENTOS={\n  quieta:fin=>fin(),\n  pasear:fin=>{\n   if(!conPaseo())return fin();\n   caminar(alAzar(),()=>{\n    if(azar()<.3){\n     secuencia(sentarse(),()=>{ocupada=true;despues(enCuadros(entre(24,48)),()=>secuencia(levantarse(),fin));});\n    }else fin();\n   });\n  },\n  acercarse:fin=>{\n   if(!conPaseo()||punteroX===null)return fin();\n   caminar(punteroX-8*celda,()=>{\n    const dx=punteroX<x+8*celda?-1:punteroX>x+8*celda?1:0;\n    const mirada={dx:rumbo<0?-dx:dx,dy:0};\n    poner({mirada,ojos:imp.afecto>.6?'felices':null});\n    ocupada=true;\n    despues(enCuadros(entre(36,72)),()=>{poner({mirada:{dx:0,dy:0},ojos:null});fin();});\n   });\n  },\n  curiosear:fin=>{\n   if(!novedad)return fin();\n   const m={dx:novedad.dx,dy:novedad.dy};\n   secuencia([[0,{mirada:m,inclinar:m.dx}],[24,{mirada:{dx:0,dy:0},inclinar:0}]],()=>{novedad=null;fin();});\n  },\n  travesura:fin=>{\n   const lista=mey.travesuras.filter(n=>n!=='celebrar'&&n!=='enojo'&&n!==ultimaTravesura);\n   const n=uno(lista);ultimaTravesura=n;\n   secuencia(TRAVESURAS[n],fin);\n  },\n  jugar:fin=>empezar(undefined,fin),\n  bostezar:fin=>secuencia(TRAVESURAS.bostezo,fin),\n  estirarse:fin=>secuencia(TRAVESURAS.estirarse,fin),\n  pensar:fin=>secuencia(TRAVESURAS.pensar,fin),\n  bailar:fin=>JUEGOS.baile.correr(fin),\n  dormir:fin=>{\n   secuencia(TRAVESURAS.bostezo,()=>secuencia(sentarse(),()=>{\n    durmiendo=true;pose='dormido';poner({burbuja:null,sentada:true});finDormir=fin;roncada();\n   }));\n  }\n };\n const correrConducta=nombre=>{\n  const comportamiento=COMPORTAMIENTOS[nombre]||COMPORTAMIENTOS.quieta;\n  conductaActual=nombre;\n  ultimaConductaMovimiento=ahora();\n  comportamiento(()=>completarConducta(nombre));\n };\n const estadoSensorial=()=>{\n  const t=ahora();\n  return {\n   inactividad:Math.max(0,(t-ultimaActividad)/1000),\n   cerca:t-ultimaCercana<2000,\n   estimulo:novedad?1:(t-ultimoPuntero<500?.25:0),\n   caricia:cariciaPendiente,\n   durmiendo,\n   hora:new Date(fecha()).getHours(),\n   paseo:conPaseo(),\n   juegos:recreo,\n   punteroVisto:Number.isFinite(ultimoPuntero)&&t-ultimoPuntero<5000,\n   distancia:distanciaPuntero,\n   novedad,\n   quietaMucho:t-ultimaConductaMovimiento>30000,\n   escribiendo:t-ultimaTecla<4000,\n   personalidad\n  };\n };\n const persistirConducta=(forzar=false)=>{\n  const afecto=clampMey(imp.afecto,0,1);\n  if(!forzar&&Math.abs(afecto-ultimoAfectoPersistido)<=.02)return;\n  memGuardada={visitas,ultima:fecha(),afecto};\n  try{memoriaConducta.guardar({...memGuardada});}catch{}\n  ultimoAfectoPersistido=afecto;\n  ultimaPersistencia=ahora();\n };\n const latido=()=>{\n  if(!activo||energia()!=='completa')return;\n  const s=estadoSensorial();\n  imp=mey.mente.actualizar(imp,s,.5);\n  cariciaPendiente=false;\n  if(!saludoPresenciaRealizado&&dentroDesde!==null&&ahora()-dentroDesde>=enCuadros(18)&&ultimoClic<dentroDesde){\n   saludoPresenciaRealizado=true;\n   imp.afecto=clampMey(imp.afecto+.04,0,1);\n   if(!durmiendo&&!ocupada&&!jugando)ejecutarReaccion('saludo');\n  }\n  if(durmiendo){\n   if(ahora()-ultimaCercana<2000||imp.sueno<.2)despertar();\n  }else if(!ocupada&&!jugando&&ahora()>=noAntesDe){\n   const nombre=recreo&&!s.escribiendo&&ahora()-ultimoFinJuego>enCuadros(96)*perfil().pausa?'jugar':\n    mey.mente.elegir(['quieta','pasear','acercarse','curiosear','travesura','jugar','bostezar','estirarse','pensar','bailar','dormir'],imp,s,ultimaVezConducta,ahora()/1000,azar);\n   ultimaVezConducta[nombre]=ahora()/1000;\n   correrConducta(nombre);\n  }\n  if(ahora()-ultimaPersistencia>=30000&&Math.abs(imp.afecto-ultimoAfectoPersistido)>.02)persistirConducta();\n  despues(enCuadros(6),latido,true);\n };\n const vida=()=>{\n  if(!activo)return;\n  if(!ocupada&&!durmiendo){\n   const fotoDormida=pose==='dormido';\n   if(fotoDormida||azar()<.7){\n    const pasos=[[0,{ojos:'cerrados'}],[imp.sueno>.5?4:1,{ojos:null}]];\n    if(azar()<.3)pasos.push([2,{ojos:'cerrados'}],[1,{ojos:null}]);\n    secuencia(pasos);\n   }else secuencia([[0,{estirar:1}],[2,{estirar:0}]]);\n  }\n  despues(enCuadros(entre(22,50))*perfil().pausa,vida,true);\n };\n const ejecutarReaccion=(nombre,fin)=>{\n  const funcion=REACCIONES[nombre];\n  const pasos=nombre==='celebrar'?TRAVESURAS.celebrar:(typeof funcion==='function'?funcion():TRAVESURAS[nombre]);\n  if(!pasos){fin&&fin();return;}\n  conductaActual='reaccion';\n  secuencia(pasos,()=>{conductaActual=null;noAntesDe=ahora()+enCuadros(24);fin&&fin();});\n };\n const alClic=()=>{\n  const t=ahora();\n  ultimaActividad=t;\n  if(energia()!=='completa'||!activo)return;\n  ultimaCercana=t;\n  const reinicia=ultimoClic===-Infinity||t-ultimoClic>=4000;\n  if(reinicia){historialClics=[];afectoAlIniciarRafaga=imp.afecto;}\n  historialClics=historialClics.filter(x=>t-x<=6000);\n  historialClics.push(t);ultimoClic=t;\n  if(durmiendo){despertar();return;}\n  if(jugando)return;\n  const n=historialClics.length;\n  if(n>1)cariciaPendiente=false;\n  if(n>=8){\n   interrumpir();jugando='mareo';conductaActual='mareo';\n   JUEGOS.mareo.correr(()=>{\n    jugando=null;conductaActual=null;ultimoFinJuego=ahora();pose=poseVigilia;e=neutro();pintar();\n    noAntesDe=ahora()+enCuadros(24);\n   });\n   return;\n  }\n  if(t<finMolesta){interrumpir();ultimaReaccion='sorpresa';ejecutarReaccion('sorpresa');return;}\n  if(n>=4){\n   imp.afecto=clampMey(Math.min(imp.afecto,afectoAlIniciarRafaga??imp.afecto)-.1,0,1);finMolesta=t+8000;\n   interrumpir();ultimaReaccion='enojo';ejecutarReaccion('enojo');return;\n  }\n  if(n>=2&&n<=3&&t-historialClics[0]<=2500){\n   interrumpir();ultimaReaccion='cosquillas';ejecutarReaccion('cosquillas');return;\n  }\n  if(n===1){\n   cariciaPendiente=true;\n   const nombre=recreo?uno(['celebrar','risa','tropiezo','guino','hipo','sorpresa','cosquillas'].filter(x=>x!==ultimaReaccion)):'celebrar';\n   ultimaReaccion=nombre;interrumpir();ejecutarReaccion(nombre);\n  }\n };\n const alTecla=()=>{ultimaActividad=ahora();ultimaTecla=ahora();};\n const alClicPagina=()=>{ultimaActividad=ahora();};\n let ultimaPosicionScroll=Number(ventana.scrollY)||0;\n const alScroll=()=>{\n  ultimaActividad=ahora();\n  const y=Number(ventana.scrollY)||0,dy=y>=ultimaPosicionScroll?1:-1;\n  ultimaPosicionScroll=y;\n  if(ahora()-ultimoPuntero<1000||durmiendo)return;\n  const antes=e.mirada;\n  poner({mirada:{dx:antes.dx,dy}});\n  despues(enCuadros(12),()=>{if(e.mirada.dy===dy)poner({mirada:{dx:antes.dx,dy:antes.dy}});});\n };\n const alFocus=ev=>{\n  ultimaActividad=ahora();\n  const b=host.getBoundingClientRect(),objetivo=ev.target?.getBoundingClientRect?.();\n  if(!objetivo)return;\n  const cx=b.left+(conPaseo()?x+8*celda:b.width/2),cy=b.top+b.height/2;\n  const fx=objetivo.left+objetivo.width/2,fy=objetivo.top+objetivo.height/2;\n  const dxDist=fx-cx,dyDist=fy-cy,cerca=Math.hypot(dxDist,dyDist)<4*celda;\n  const dx=cerca?0:Math.sign(dxDist),dy=cerca?0:Math.sign(dyDist);\n  novedad=dx||dy?{dx,dy}:null;\n  if(durmiendo)return;\n  const anterior=e.mirada;poner({mirada:{dx,dy}});\n  despues(enCuadros(12),()=>{if(e.mirada.dx===dx&&e.mirada.dy===dy)poner({mirada:anterior});});\n };\n const aplicarEvento=tipo=>{\n  if(tipo==='exito')return ejecutarReaccion('celebrar');\n  if(tipo==='guardado')return ejecutarReaccion('asentir');\n  if(tipo==='error'||tipo==='aviso')return ejecutarReaccion('preocupacion');\n  if(tipo==='listo')return ejecutarReaccion('sorpresa',()=>ejecutarReaccion('saludo'));\n  if(tipo==='carga'){\n   enCarga=true;conductaActual='carga';const inicio=ahora();\n   const pensar=()=>{\n    if(!enCarga)return;\n    if(ahora()-inicio>=30000){enCarga=false;conductaActual=null;return;}\n    secuencia(TRAVESURAS.pensar,()=>{if(enCarga){ocupada=true;despues(enCuadros(1),pensar);}else conductaActual=null;});\n   };\n   pensar();\n   despues(30000,()=>{enCarga=false;if(!ocupada)conductaActual=null;});\n  }\n };\n const lanzarEvento=(tipo,desdeControl=false)=>{\n  if(!mey.eventos.includes(tipo)){\n   if(desdeControl)throw new Error('mey: evento desconocido: '+tipo);\n   return;\n  }\n  if(!activo)return;\n  const t=ahora();\n  if(tipo==='guardado'){if(durmiendo||conductaActual==='dormir'||t-guardadoEn<60000)return;guardadoEn=t;}\n  else if(ultimoEvento.tipo===tipo&&t-ultimoEvento.t<3000)return;\n  ultimoEvento={tipo,t};\n  ultimaActividad=t;\n  const dormida=durmiendo;\n  interrumpir();\n  if(dormida){durmiendo=true;pose='dormido';e={...neutro(),sentada:true};pintar();despertar(()=>aplicarEvento(tipo));}\n  else aplicarEvento(tipo);\n };\n const alEventoVentana=ev=>lanzarEvento(ev.detail?.tipo,false);\n const reducido=ventana.matchMedia?ventana.matchMedia('(prefers-reduced-motion: reduce)'):null;\n const puedeMoverse=()=>opciones.vivo!==false&&energia()!=='quieta'&&!(reducido&&reducido.matches)&&!ventana.navigator?.connection?.saveData&&visible&&!doc.hidden;\n const quitarSensores=()=>{\n  ventana.removeEventListener('pointermove',alPuntero);\n  ventana.removeEventListener('click',alClicPagina,true);\n  ventana.removeEventListener('keydown',alTecla);\n  ventana.removeEventListener('scroll',alScroll,true);\n  doc.removeEventListener('focusin',alFocus);\n  ventana.removeEventListener('erlen-mey-evento',alEventoVentana);\n };\n const agregarSensores=()=>{\n  if(energia()==='completa'){\n   ventana.addEventListener('pointermove',alPuntero,{passive:true});\n   ventana.addEventListener('click',alClicPagina,true);\n   ventana.addEventListener('keydown',alTecla);\n   ventana.addEventListener('scroll',alScroll,true);\n   doc.addEventListener('focusin',alFocus);\n  }\n  if(energia()==='completa'||energia()==='calma')ventana.addEventListener('erlen-mey-evento',alEventoVentana);\n };\n const parar=()=>{\n  const estaba=activo;\n  activo=false;ocupada=false;\n  for(const id of escena)reloj.clearTimeout(id);\n  for(const id of fijos)reloj.clearTimeout(id);\n  escena.clear();fijos.clear();quitarSensores();\n  if(!recreo||estaba)e=durmiendo?{...neutro(),sentada:true}:neutro();\n  if(recreo){if(jugando){pendiente=jugando;jugados=0;jugando=null;finJuegoActual=null;pose=poseVigilia;}x=Math.max(0,Math.min(holgura(),x));}\n  if(!durmiendo)conductaActual=null;\n  pintar();\n };\n const arrancar=()=>{\n  if(activo||!puedeMoverse())return;\n  activo=true;\n  agregarSensores();\n  despues(enCuadros(entre(14,32)),vida,true);\n  if(energia()!=='completa')return;\n  despues(enCuadros(6),latido,true);\n  if(durmiendo){conductaActual='dormir';roncada();return;}\n  if(recreo){empezar();return;}\n  if(!bienvenidaProgramada&&(r.lugar==='bienvenida'||r.lugar==='vacio')){\n   bienvenidaProgramada=true;\n   const espera=entre(12,24),hora=new Date(fecha()).getHours();\n   noAntesDe=ahora()+enCuadros(espera+24);\n   despues(enCuadros(espera),()=>{\n    const saludar=()=>{\n     if(primeraVisita){\n      secuencia([[0,{mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0}}],[8,{mirada:{dx:0,dy:0}}],[8,()=>ejecutarReaccion('saludo')]]);\n     }else if(dias>=3){\n      ejecutarReaccion('saludo',()=>ejecutarReaccion('risa'));\n     }\n    };\n    if(hora<6)secuencia(TRAVESURAS.bostezo,saludar);else saludar();\n   });\n  }\n };\n const revisar=()=>puedeMoverse()?arrancar():parar();\n const alCambiarVisibilidad=()=>{\n  if(doc.hidden){\n   if(ocultoDesde===null)ocultoDesde=fecha();\n   parar();\n   return;\n  }\n  const ausente=ocultoDesde===null?0:fecha()-ocultoDesde;\n  ocultoDesde=null;\n  revisar();\n  if(activo&&energia()==='completa'&&ausente>=30000){\n   const regreso=()=>ausente>=600000?ejecutarReaccion('bostezo',()=>ejecutarReaccion('saludo')):ejecutarReaccion('saludo');\n   if(durmiendo)despertar(regreso);else regreso();\n  }\n };\n const ajustar=()=>{const nueva=medir();if(nueva!==celda){const antes=energia();celda=nueva;x=Math.round(x/celda)*celda;if(energia()!==antes){parar();revisar();return;}}x=Math.min(x,holgura());pintar();};\n const alCambiarApariencia=()=>{if(!opciones.atuendo&&jugando!=='probador'){atuendo=apariencia.leer();pintar();}};\n host.addEventListener('click',alClic);\n doc.addEventListener('visibilitychange',alCambiarVisibilidad);\n reducido?.addEventListener?.('change',revisar);\n const alCambiarPersonalidad=ev=>{\n  if(ev?.type==='storage'&&ev.key!==null&&ev.key!==undefined&&ev.key!=='erlen-mey-personalidad')return;\n  if(!opciones.personalidad)personalidad=personalidadLocal.leer();\n  host.dataset.meyPersonalidad=personalidad;\n  // Acaba la escena en curso; aplica la nueva cadencia en la siguiente decisión.\n  noAntesDe=ahora()+enCuadros(24)*perfil().pausa;\n };\n alCambiarPersonalidad();\n ventana.addEventListener('erlen-mey-personalidad',alCambiarPersonalidad);\n ventana.addEventListener('storage',alCambiarPersonalidad);\n const alCambiarColor=()=>pintar();\n ventana.addEventListener('erlen-mey-color',alCambiarColor);\n ventana.addEventListener('storage',alCambiarColor);\n ventana.addEventListener('erlen-mey-apariencia',alCambiarApariencia);\n ventana.addEventListener('storage',alCambiarApariencia);\n let observador=null,medidor=null;\n if(ventana.IntersectionObserver){observador=new ventana.IntersectionObserver(entradas=>{visible=entradas.some(x=>x.isIntersecting);revisar();});observador.observe(host);}\n // Con celda fija también observa: el hueco para pasear cambia con el ancho.\n if(ventana.ResizeObserver){medidor=new ventana.ResizeObserver(()=>ajustar());medidor.observe(r.eje==='alto'?host:(host.parentElement||host));}\n host.dataset.meyViva='';\n if(recreo){\n  if(opciones.juego&&!JUEGOS[opciones.juego])throw new Error('mey: juego desconocido: '+opciones.juego);\n  pendiente=opciones.juego||mey.siguienteJuego(memoria,azar,JUEGOS_MEY,personalidad);\n  if(!puedeMoverse()||energia()!=='completa')foto(pendiente);\n }\n pintar();arrancar();\n return {\n  pose(nombre){filasMey(nombre);pose=nombre;pintar();},\n  atuendo(nombre){vestirMey(Array.from({length:18},vacia),nombre,{},[]);atuendo=nombre;pintar();},\n  jugar(nombre){\n   if(!recreo)throw new Error('mey: jugar requiere lugar recreo');\n   if(!Object.hasOwn(JUEGOS,nombre))throw new Error('mey: juego desconocido: '+nombre);\n   interrumpir();\n   if(activo&&energia()==='completa')empezar(nombre);\n   else{pendiente=nombre;foto(nombre);pintar();}\n  },\n  reaccionar(nombre){if(nombre==='celebrar')return celebrar();if(!TRAVESURAS[nombre])throw new Error('mey: travesura desconocida: '+nombre);if(activo&&!ocupada)secuencia(TRAVESURAS[nombre]);},\n  ajustar,\n  cuadro(){return cuadroMey(pose,e,atuendo,false).map(f=>f.join('')).join('\\n');},\n  get celda(){return celda;},\n  get paseo(){return {activo:conPaseo(),x,rumbo,holgura:holgura(),sentada:!!e.sentada};},\n  caminar(destino,alLlegar,opts){if(activo&&!ocupada&&conPaseo())caminar(destino,alLlegar,opts);},\n  get energia(){return energia();},\n  get activa(){return activo;},\n  get personalidad(){return personalidad;},\n  get juego(){return jugando||pendiente;},\n  get reaccion(){return ultimaReaccion;},\n  get impulsos(){return {...imp};},\n  get conducta(){return conductaActual||'quieta';},\n  evento(tipo){return lanzarEvento(tipo,true);},\n  get memoria(){return {...memGuardada};},\n  detener(){persistirConducta(true);parar();host.removeEventListener('click',alClic);doc.removeEventListener('visibilitychange',alCambiarVisibilidad);reducido?.removeEventListener?.('change',revisar);ventana.removeEventListener('erlen-mey-apariencia',alCambiarApariencia);ventana.removeEventListener('storage',alCambiarApariencia);ventana.removeEventListener('erlen-mey-color',alCambiarColor);ventana.removeEventListener('storage',alCambiarColor);ventana.removeEventListener('erlen-mey-personalidad',alCambiarPersonalidad);ventana.removeEventListener('storage',alCambiarPersonalidad);observador?.disconnect();medidor?.disconnect();delete host.dataset.meyViva;delete host.dataset.meyPersonalidad;}\n };\n};\nmey.travesuras=['guino','chapoteo','burbuja','saludo','celebrar','risa','sorpresa','cosquillas','bostezo','estirarse','aplauso','pensar','preocupacion','asentir','enojo'];\nmey.eventos=['exito','guardado','error','aviso','carga','listo'];\nmey.juegos=JUEGOS_MEY;\n\n/* ---------- <erlen-mey> ----------\n   La forma más simple de poner a Mey en una app: <erlen-mey lugar=\"vacio\"></erlen-mey>.\n   Atributos: lugar, app, pose, atuendo, energia, titulo y vivo=\"false\". Mide el espacio que le\n   da su contenedor, se monta al entrar en el documento y se detiene al salir; cambiar un\n   atributo la repinta. el.reaccionar('celebrar') y compañía pasan al motor. mey.definir(window)\n   registra la etiqueta (una vez por ventana); al cargar este módulo en un navegador se registra\n   sola. */\nmey.definir=function(ventana){\n if(!ventana||!ventana.customElements||!ventana.HTMLElement)return false;\n if(ventana.customElements.get('erlen-mey'))return true;\n const ATRIBUTOS=['lugar','app','pose','atuendo','energia','titulo','vivo','paseo','celda','color','juego','personalidad'];\n class ErlenMey extends ventana.HTMLElement{\n  static get observedAttributes(){return ATRIBUTOS;}\n  connectedCallback(){this.montar();}\n  disconnectedCallback(){this._control?.detener();this._control=null;}\n  attributeChangedCallback(){if(this._control)this.montar();}\n  montar(){\n   this._control?.detener();\n   if(!this.style.display)this.style.display='block';\n   const o={ventana};for(const a of ATRIBUTOS){const v=this.getAttribute(a);if(v!==null)o[a]=v;}\n   if(!o.app)o.app=this.ownerDocument.documentElement.dataset.erlenApp;\n   if(o.vivo==='false')o.vivo=false;else delete o.vivo;\n   if(o.paseo==='false')o.paseo=false;else delete o.paseo;\n   if(o.celda){const c=parseInt(o.celda,10);if(c>0)o.celda=c;else delete o.celda;}\n   this.setAttribute('aria-hidden',o.titulo?'false':'true');\n   try{this._control=mey.montar(this,o);}catch(error){this._control=null;this.textContent='';throw error;}\n  }\n  reaccionar(nombre){this._control?.reaccionar(nombre);}\n  jugar(nombre){this._control?.jugar(nombre);}\n  get control(){return this._control;}\n }\n ventana.customElements.define('erlen-mey',ErlenMey);\n return true;\n};\nif(typeof window!=='undefined')mey.definir(window);\n\n/* Física de Mey: paso fijo con acumulador (G. Fiedler, «Fix Your Timestep!»), péndulo Verlet con restricción de distancia (T. Jakobsen; verlet-js, MIT), llegada con frenado (C. Reynolds) y resorte crítico (wobble, MIT). Ideas, sin código copiado. Unidades: px, s, rad; y crece hacia abajo; rotación positiva = horaria (CSS). */\nconst FISICA_MEY=Object.freeze({G:2200,H:1/240,SUBPASOS:12,VMAX:76,A_ARRANQUE:260,A_LLEGADA:220,A_FRENO:420,FRICCION:1400,\n AMORT_PENDULO:2.4,ARRASTRE_AIRE:.15,ARRASTRE_GIRO:.8,REST_PARED:.45,REST_SUELO:.35,REBOTE_MIN:520,V_CAIDA_MAX:2600,\n V_LANZAR:2400,GIRO_MAX:12,SALTO:240,EMPUJON:180,SALTO_EMPUJON:200,V_PUNTERO:900,PAUSA_EMPUJON:1500,ENDEREZAR:14});\nconst penduloMey=(s,px,py,h)=>{\n const k=Math.exp(-FISICA_MEY.AMORT_PENDULO*h);\n let nx=s.cx+(s.cx-s.qx)*k,ny=s.cy+(s.cy-s.qy)*k+FISICA_MEY.G*h*h;\n s.qx=s.cx;s.qy=s.cy;\n let dx=nx-px,dy=ny-py,d=Math.hypot(dx,dy);\n if(d<1e-9){dx=0;dy=s.L;d=s.L;}\n s.cx=px+dx*s.L/d;s.cy=py+dy*s.L/d;\n return s;\n};\nconst anguloMey=(s,px,py)=>Math.atan2(s.cx-px,s.cy-py);\nconst llegadaMey=(dx,dy,o)=>{\n const d=Math.hypot(dx,dy);\n if(d<1e-6){o.x=0;o.y=0;return o;}\n const v=Math.min(FISICA_MEY.VMAX,Math.sqrt(2*FISICA_MEY.A_LLEGADA*d));\n o.x=dx/d*v;o.y=dy/d*v;\n return o;\n};\nconst marchaMey=(v,o,h)=>{\n const vel=Math.hypot(v.x,v.y),obj=Math.hypot(o.x,o.y);\n const lim=vel>FISICA_MEY.VMAX+1?FISICA_MEY.FRICCION:obj>vel&&v.x*o.x+v.y*o.y>=0?FISICA_MEY.A_ARRANQUE:FISICA_MEY.A_FRENO;\n const ex=o.x-v.x,ey=o.y-v.y,en=Math.hypot(ex,ey),max=lim*h;\n if(en<=max){v.x=o.x;v.y=o.y;}\n else {v.x+=ex*max/en;v.y+=ey*max/en;}\n return v;\n};\nconst vueloMey=(c,h,lim)=>{\n c.vy=Math.min(c.vy+FISICA_MEY.G*h,FISICA_MEY.V_CAIDA_MAX);\n const k=Math.exp(-FISICA_MEY.ARRASTRE_AIRE*h);\n c.vx*=k;c.vy*=k;\n const y0=c.y;\n c.x+=c.vx*h;c.y+=c.vy*h;c.rot+=c.giro*h;c.giro*=Math.exp(-FISICA_MEY.ARRASTRE_GIRO*h);\n if(c.x<lim.izq){c.x=lim.izq;c.vx=-c.vx*FISICA_MEY.REST_PARED;c.giro*=-.6;}\n if(c.x>lim.der){c.x=lim.der;c.vx=-c.vx*FISICA_MEY.REST_PARED;c.giro*=-.6;}\n if(c.y<lim.techo){c.y=lim.techo;c.vy=-c.vy*FISICA_MEY.REST_PARED;}\n if(c.vy>0){\n  let piso=lim.suelo;\n  for(const p of lim.plataformas){\n   const tope=p.top-lim.alto;\n   if(y0<=tope&&c.y>=tope&&c.x+lim.ancho/2>=p.left&&c.x+lim.ancho/2<=p.right&&tope<piso)piso=tope;\n  }\n  if(c.y>=piso){\n   c.y=piso;\n   const imp=c.vy;\n   if(imp>FISICA_MEY.REBOTE_MIN){c.vy=-imp*FISICA_MEY.REST_SUELO;c.giro*=.6;return -imp;}\n   c.vy=0;return imp;\n  }\n }\n return 0;\n};\nconst enderezarMey=(c,h)=>{\n const a=-(FISICA_MEY.ENDEREZAR**2)*c.rot-2*FISICA_MEY.ENDEREZAR*c.giro;\n c.giro+=a*h;c.rot+=c.giro*h;\n if(Math.abs(c.rot)<.002&&Math.abs(c.giro)<.05)c.rot=c.giro=0;\n return c;\n};\nmey.fisica={c:FISICA_MEY,pendulo:penduloMey,angulo:anguloMey,llegada:llegadaMey,marcha:marchaMey,vuelo:vueloMey,enderezar:enderezarMey};\n\n/* Una presencia por documento. Posición y velocidad continuas; los gestos de pixel art\n   no cambian su trayectoria. El puntero solicita destinos, nunca recoloca al personaje. */\nconst claveRecorridoMey=Symbol.for('erlen.mey.recorrido');\nmey.recorridoActual=documento=>{const c=documento?.[claveRecorridoMey];if(c&&!c.elemento.isConnected){c.detener();return null;}return c||null;};\nmey.recorrerPagina=function(opciones={}){\n const doc=opciones.documento||(typeof document!=='undefined'?document:null);\n if(!doc?.body||!doc.defaultView?.requestAnimationFrame)return null;\n const existente=mey.recorridoActual(doc);if(existente){existente.actualizar?.(opciones);return existente;}\n const win=doc.defaultView,mq=win.matchMedia?.('(prefers-reduced-motion:reduce)');\n const personalidadLocal=mey.personalidadLocal(win);\n let personalidad=opciones.personalidad||personalidadLocal.leer();\n perfilPersonalidadMey(personalidad);\n const ingles=(opciones.idioma||doc.documentElement.lang||'es').startsWith('en');\n const textos={actor:ingles?'Mey: play or move me':'Mey: jugar o arrastrar a otro lugar',titulo:ingles?'Mey · you can take me with you':'Mey · puedes llevarme contigo',pausa:ingles?\"Pause Mey's walk\":'Pausar el paseo de Mey',seguir:ingles?\"Resume Mey's walk\":'Reanudar el paseo de Mey',pausaCorta:ingles?'Mey · pause':'Mey · pausa',seguirCorta:ingles?'Mey · resume':'Mey · seguir'};\n const actor=doc.createElement('button');actor.type='button';actor.className='mey-libre';\n const sincronizarAccion=()=>{actor.setAttribute('aria-label',typeof opciones.accion==='function'?(ingles?'Mey: help or move me':'Mey: ayuda o arrastrar a otro lugar'):textos.actor);actor.title=textos.titulo;};\n sincronizarAccion();\n const pausa=doc.createElement('button');pausa.type='button';pausa.className='mey-libre-pausa';\n pausa.setAttribute('aria-label',textos.pausa);pausa.setAttribute('aria-pressed','false');pausa.textContent=textos.pausaCorta;\n doc.body.append(actor,pausa);doc.documentElement.dataset.erlenMeyPresencia='';\n const celda=win.innerWidth<700?3:4,w=16*celda,h=18*celda,O={x:w/2,y:.55*h};\n actor.style.transformOrigin=`${O.x}px ${O.y.toFixed(2)}px`;\n const limitar=(n,a,b)=>Math.min(Math.max(n,a),Math.max(a,b));\n const suelo=()=>Math.max(8,win.innerHeight-h-70),derecha=()=>Math.max(8,win.innerWidth-w-8);\n const selectorAnclas=()=>opciones.anclas||'.hero-strip,.grupo-herramientas>h3,.workspace-note,.erlen-inicio-meta';\n let x=limitar(win.innerWidth-w-32,8,derecha()),y=suelo(),vx=0,velY=0,vy=0,elevacion=0,modo='camina',rot=0,giro=0,acumulado=0;\n let ultimo=0,raf=0,muerta=false,manual=false,arrastre=null,foco=false,rumbo=-1,distancia=0,pend=null,pivote=null,pivoteAntes=null,vPivote=0,plataformas=[],punteroAnt=null,ultimoEmpujon=-Infinity,vxFrame=0,rotAntes=0;\n let prox=0,sonda=-Infinity,obstaculos=[],ruta=[],puntero=null,seguido=0,gestoHasta=0,ultimoSalto=-Infinity,ultimoDibujo=-Infinity,cuadro='',replanear=true,ignorarClic=false,ocultaAntes=false,metaPuntero=null,sobreMey=false;\n const objetivo={x:0,y:0},vel={x:0,y:0},cuerpo={x:0,y:0,vx:0,vy:0,rot:0,giro:0},cuerpoLim={izq:8,der:8,techo:8,suelo:8,ancho:w,alto:h,plataformas},pivotePaso={x:0,y:0};\n const gestos={agacharHasta:0,estirarHasta:0,grandesHasta:0,inclinar:0,inclinarHasta:0},punteroV={x:0,y:0};\n const apariencia=mey.aparienciaLocal(win);\n const colorLocal=mey.colorLocal(win);\n const reducida=()=>!!mq?.matches||!!win.navigator.connection?.saveData;\n const quieta=()=>manual||reducida()||foco||doc.hidden||!!actor.closest('[inert]');\n const posicionar=()=>{\n  const py=modo==='camina'?limitar(y+elevacion,8,suelo()):y;\n  actor.style.transform=`translate3d(${x.toFixed(2)}px,${py.toFixed(2)}px,0)${Math.abs(rot)>1e-4?` rotate(${rot.toFixed(4)}rad)`:''}`;\n  actor.dataset.x=x.toFixed(2);actor.dataset.y=py.toFixed(2);\n };\n const direccion=(v,margen)=>v < -margen?-1:v > margen?1:0;\n const dibujar=t=>{\n  const aire=modo==='vuela',colgada=modo==='colgada',agitada=colgada&&(Math.abs(giro)>4||vPivote>250);\n  const marcha=modo==='camina'&&Math.hypot(vx,velY)>8&&!quieta()&&!arrastre;\n  const estado=quieta()?'quieta':arrastre||colgada?'juega':aire?velY<0?'salta':'cae':elevacion<-.5?(vy<0?'salta':'cae'):marcha?'camina':'observa';\n  actor.dataset.estado=estado;\n  actor.dataset.meyPersonalidad=personalidad;\n  const perfil=perfilPersonalidadMey(personalidad),fase=t%perfil.gesto;\n  const expresiva=!quieta()&&!arrastre&&!aire&&!colgada&&fase<900;\n  const e={...neutro(),caminando:marcha?1+Math.floor(distancia/(celda*2))%4:0,\n   mirada:{dx:puntero?direccion(puntero.x-x-w/2,24):rumbo,dy:puntero?direccion(puntero.y-y-h/2,28):0},\n   parpadeo:!quieta()&&Math.floor(t/140)%31===30,\n   chapoteo:aire||agitada?(Math.floor(t/166)%2?'der':'izq'):null,\n   ojos:t<gestos.grandesHasta||aire&&Math.hypot(vx,velY)>900||colgada&&Math.abs(giro)>6?'grandes':gestoHasta>t?'felices':null,\n   agachar:t<gestos.agacharHasta?1:0,\n   estirar:t>=gestos.agacharHasta&&t<gestos.estirarHasta?1:0,\n   inclinar:!aire&&!colgada&&t<gestos.inclinarHasta?gestos.inclinar:0};\n  const atuendo=apariencia.leer(),color=colorLocal.leer();\n  if(expresiva){\n   if(personalidad==='tranquila')e.parpadeo=fase<250?'ambos':false;\n   else if(personalidad==='traviesa'){e.parpadeo=fase<250?'guino':false;e.brazoIzq=fase<450?1:0;}\n   else{e.brazoIzq=2;e.saludo=2;e.ojos='felices';e.inclinar=fase<450?-1:1;}\n  }\n  const dibujo=JSON.stringify([e,atuendo,color]);\n  if(dibujo===cuadro||(t-ultimoDibujo<90&&!quieta()))return;\n  cuadro=dibujo;ultimoDibujo=t;\n  actor.innerHTML=svgMey(cuadroMey('hola',e,atuendo,false),'hola',atuendo,{celda,color},true);\n };\n const sondear=()=>{\n  const extra=typeof opciones.evitar==='function'?opciones.evitar():opciones.evitar||[];\n  obstaculos=[...doc.querySelectorAll('a,button,summary,erlen-suite-nav,input,select,textarea,[contenteditable=\"true\"],iframe,canvas,[role=\"dialog\"],[role=\"button\"],[role=\"option\"],[role=\"tab\"],[data-mey-evitar]'),...extra]\n   .filter(e=>e?.getBoundingClientRect&&e!==actor&&e!==pausa&&!e.closest('.mey-libre,[inert]'))\n   .map(e=>e.getBoundingClientRect()).filter(r=>r.width&&r.height&&r.bottom>0&&r.top<win.innerHeight);\n  plataformas=[...doc.querySelectorAll(selectorAnclas())].map(e=>e.getBoundingClientRect()).filter(r=>r.width&&r.bottom>0&&r.top<win.innerHeight).map(r=>({left:r.left,right:r.right,top:r.top}));\n };\n const colision=(nx,ny)=>obstaculos.some(r=>nx+w>r.left-6&&nx<r.right+6&&ny+h>r.top-6&&ny<r.bottom+6);\n const pasoLibre=(a,b)=>{\n  const n=Math.max(1,Math.ceil(Math.hypot(b.x-a.x,b.y-a.y)/12));\n  for(let i=1;i<=n;i++)if(colision(a.x+(b.x-a.x)*i/n,a.y+(b.y-a.y)*i/n))return false;\n  return true;\n };\n const proteger=()=>{\n  if(modo==='vuela'){actor.style.visibility='';actor.style.pointerEvents=colision(x,y)?'none':'';return;}\n  // Si un control aparece o se desplaza debajo de ella, cede el clic inmediatamente.\n  // Sigue desde la misma posición hasta salir; jamás se teletransporta a un borde.\n  const oculta=colision(x,y+elevacion);\n  actor.style.visibility=oculta?'hidden':'';\n  actor.style.pointerEvents='';\n  if(oculta&&!ocultaAntes)replanear=true;ocultaAntes=oculta;\n };\n const planear=(meta,t)=>{\n  // Rejilla de pasos y búsqueda de rutas dentro del espacio visible. Incluye ambos\n  // márgenes incluso en móvil; cada tramo completo se comprueba, no solo su extremo.\n  const xs=[8],ys=[8];\n  for(let n=72;n<derecha();n+=64)xs.push(n);if(derecha()>8)xs.push(derecha());\n  for(let n=72;n<suelo();n+=64)ys.push(n);if(suelo()>8)ys.push(suelo());\n  const nodos=[];\n  for(let j=0;j<ys.length;j++)for(let i=0;i<xs.length;i++)if(!colision(xs[i],ys[j]))nodos.push({x:xs[i],y:ys[j],i,j});\n  const actual={x,y},oculta=colision(x,y);\n  const inicio=nodos.toSorted((a,b)=>Math.hypot(a.x-x,a.y-y)-Math.hypot(b.x-x,b.y-y)).find(n=>oculta||pasoLibre(actual,n));\n  if(!inicio){ruta=[];prox=t+900;replanear=false;return;}\n  const porCelda=new Map(nodos.map(n=>[`${n.i},${n.j}`,n])),padres=new Map([[inicio,null]]),cola=[inicio];\n  for(let k=0;k<cola.length;k++){\n   const a=cola[k];\n   for(const [i,j] of [[a.i-1,a.j],[a.i+1,a.j],[a.i,a.j-1],[a.i,a.j+1]]){\n    const b=porCelda.get(`${i},${j}`);\n    if(b&&!padres.has(b)&&pasoLibre(a,b)){padres.set(b,a);cola.push(b);}\n   }\n  }\n  const fin=cola.toSorted((a,b)=>Math.hypot(a.x-meta.x,a.y-meta.y)-Math.hypot(b.x-meta.x,b.y-meta.y))[0];\n  const camino=[];for(let n=fin;n;n=padres.get(n))camino.unshift({x:n.x,y:n.y});\n  // Suprime esquinas innecesarias sin atajar a través de un control.\n  ruta=[];let desde=actual;\n  while(camino.length){let i=camino.length-1;while(i>0&&!pasoLibre(desde,camino[i]))i--;const siguiente=camino[i];ruta.push(siguiente);desde=siguiente;camino.splice(0,i+1);}\n  prox=t+5500;replanear=false;\n };\n const destino=t=>{\n  const siguiendo=puntero&&t-puntero.t<1800&&Math.hypot(puntero.x-x-w/2,puntero.y-y-h/2)<260;\n  if(siguiendo){\n   const lado=puntero.x>x+w/2?-1:1;\n   return {x:limitar(puntero.x-w/2+lado*64,8,derecha()),y:limitar(puntero.y-h/2+70,8,suelo())};\n  }\n  const anclas=[...doc.querySelectorAll(selectorAnclas())].map(e=>e.getBoundingClientRect()).filter(r=>r.width&&r.top>h+60&&r.top<win.innerHeight-80);\n  const fase=Math.floor(t/5500),ancla=anclas[fase%Math.max(1,anclas.length)];\n  return {x:limitar(win.innerWidth*(.12+((fase*.37)%.7)),8,derecha()),y:ancla?limitar(ancla.top-h-12,8,suelo()):suelo()};\n };\n const aterrizar=(imp,t)=>{\n  modo='camina';velY=0;vy=0;elevacion=0;objetivo.x=objetivo.y=0;rot=Math.atan2(Math.sin(rot),Math.cos(rot));actor.style.pointerEvents='';ruta=[];replanear=false;prox=t+600;\n  if(imp>900){gestos.agacharHasta=t+300;gestos.estirarHasta=t+400;}\n  else if(imp>300){gestos.agacharHasta=t+200;gestos.estirarHasta=t+300;}\n  else {gestos.agacharHasta=t+100;gestos.estirarHasta=t+100;}\n  if(imp>1200)gestos.grandesHasta=t+600;\n };\n const salto=t=>{if(t-ultimoSalto<1000||quieta()||modo!=='camina'||elevacion!==0||vy!==0)return;ultimoSalto=t;vy=-FISICA_MEY.SALTO;gestoHasta=t+900;};\n const paso=t=>{\n  raf=0;if(muerta)return;if(!actor.isConnected){control.detener();return;}\n  if(quieta()){\n   ultimo=0;\n   // Un modal con foco en un botón puede cerrar sin focusout: solo vigila el inert.\n   if(!manual&&!reducida()&&!foco&&!doc.hidden)raf=win.requestAnimationFrame(paso);\n   return;\n  }\n  const dt=ultimo?Math.min(.05,(t-ultimo)/1000):0;ultimo=t;\n  if(t-sonda>250){sondear();sonda=t;}\n  acumulado+=dt;\n  let n=Math.min(FISICA_MEY.SUBPASOS,Math.floor(acumulado/FISICA_MEY.H));\n  acumulado-=n*FISICA_MEY.H;if(acumulado>FISICA_MEY.H)acumulado=0;\n  if(arrastre){\n   if(modo==='colgada'){\n    for(let i=0;i<n;i++){\n     if(i===n-1)rotAntes=rot;\n     pivotePaso.x=pivoteAntes.x+(pivote.x-pivoteAntes.x)*(i+1)/n;\n     pivotePaso.y=pivoteAntes.y+(pivote.y-pivoteAntes.y)*(i+1)/n;\n     penduloMey(pend,pivotePaso.x,pivotePaso.y,FISICA_MEY.H);\n     rot=pend.phi0-anguloMey(pend,pivotePaso.x,pivotePaso.y);\n     const c=Math.cos(rot),s=Math.sin(rot);\n     x=pivotePaso.x-O.x-(arrastre.gx*c-arrastre.gy*s);\n     y=pivotePaso.y-O.y-(arrastre.gx*s+arrastre.gy*c);\n    }\n    vPivote=dt?Math.hypot(pivote.x-pivoteAntes.x,pivote.y-pivoteAntes.y)/dt:0;\n    pivoteAntes={x:pivote.x,y:pivote.y};\n   }else vPivote=0;\n   dibujar(t);posicionar();raf=win.requestAnimationFrame(paso);return;\n  }\n  proteger();\n  if(puntero&&t-puntero.t<1800&&t-seguido>240&&Math.hypot(puntero.x-x-w/2,puntero.y-y-h/2)<260){\n   const metaPaseo=destino(t);if(!metaPuntero||Math.hypot(metaPaseo.x-metaPuntero.x,metaPaseo.y-metaPuntero.y)>24){replanear=true;metaPuntero=metaPaseo;}seguido=t;\n  }else metaPuntero=null;\n  if(replanear||t>prox)planear(destino(t),t);\n  while(ruta.length&&Math.hypot(ruta[0].x-x,ruta[0].y-y)<2)ruta.shift();\n  const meta=sobreMey?{x,y}:ruta[0]||{x,y},dx=meta.x-x,dy=meta.y-y,d=Math.hypot(dx,dy);\n  llegadaMey(dx,dy,objetivo);\n  cuerpoLim.der=derecha();cuerpoLim.suelo=suelo();\n  let distanciaPaso=0;\n  for(let i=0;i<n;i++){\n   if(modo==='vuela'){\n    cuerpo.x=x;cuerpo.y=y;cuerpo.vx=vx;cuerpo.vy=velY;cuerpo.rot=rot;cuerpo.giro=giro;\n    const r=vueloMey(cuerpo,FISICA_MEY.H,cuerpoLim);\n    x=cuerpo.x;y=cuerpo.y;vx=cuerpo.vx;velY=cuerpo.vy;rot=cuerpo.rot;giro=cuerpo.giro;\n    if(r<0)gestos.agacharHasta=t+100;\n    else if(r>0)aterrizar(r,t);\n   }\n   if(modo==='camina'){\n    if(elevacion===0&&vy===0){\n     vel.x=vx;vel.y=velY;marchaMey(vel,objetivo,FISICA_MEY.H);vx=vel.x;velY=vel.y;\n    }\n    const nx=limitar(x+vx*FISICA_MEY.H,8,derecha()),ny=limitar(y+velY*FISICA_MEY.H,8,suelo());\n    if(colision(x,y)||pasoLibre({x,y},{x:nx,y:ny})){\n     distanciaPaso+=Math.hypot(nx-x,ny-y);x=nx;y=ny;\n    }else {vx=velY=0;ruta=[];replanear=true;}\n    if(elevacion<0||vy<0){\n     vy+=FISICA_MEY.G*FISICA_MEY.H;elevacion+=vy*FISICA_MEY.H;\n     if(elevacion>=0){elevacion=0;vy=0;gestos.agacharHasta=t+100;}\n    }\n    if(rot||giro){\n     cuerpo.rot=rot;cuerpo.giro=giro;enderezarMey(cuerpo,FISICA_MEY.H);rot=cuerpo.rot;giro=cuerpo.giro;\n    }\n   }\n  }\n  distancia+=distanciaPaso;\n  if(modo==='camina'){\n   if(Math.abs(vx)>8)rumbo=vx<0?-1:1;\n   const ax=dt?(vx-vxFrame)/dt:0;vxFrame=vx;\n   if(elevacion===0&&vy===0&&Math.abs(ax)>150){gestos.inclinar=Math.sign(ax);gestos.inclinarHasta=t+170;}\n   if(!arrastre&&!quieta()&&elevacion===0&&vy===0&&puntero&&t-puntero.t<120&&Math.hypot(punteroV.x,punteroV.y)>=FISICA_MEY.V_PUNTERO&&Math.hypot(puntero.x-x-w/2,puntero.y-y-h/2)<=1.5*w&&\n      (puntero.x<x-8||puntero.x>x+w+8||puntero.y<y-8||puntero.y>y+h+8)&&t-ultimoEmpujon>=FISICA_MEY.PAUSA_EMPUJON){\n    const s=Math.sign(punteroV.x)||1;\n    vx=s*FISICA_MEY.EMPUJON;velY=0;vy=-FISICA_MEY.SALTO_EMPUJON;\n    gestos.grandesHasta=t+500;gestos.inclinar=-s;gestos.inclinarHasta=t+170;\n    ultimoEmpujon=t;ruta=[];replanear=true;\n   }\n  }\n  if(!ruta.length&&d<2)prox=Math.min(prox,t+750);\n  proteger();dibujar(t);posicionar();raf=win.requestAnimationFrame(paso);\n };\n const arrancar=()=>{\n  if(muerta)return;if(!actor.isConnected){control.detener();return;}\n  win.cancelAnimationFrame(raf);raf=0;ultimo=0;acumulado=0;sondear();proteger();\n  if(quieta()){vx=velY=0;cuadro='';dibujar(0);posicionar();}\n  else raf=win.requestAnimationFrame(paso);\n };\n const fisicaLibre=()=>!quieta();\n const colgar=()=>{\n  modo='colgada';elevacion=0;vy=0;\n  let L=Math.hypot(arrastre.gx,arrastre.gy),phi0=Math.atan2(-arrastre.gx,-arrastre.gy);\n  if(L<2*celda){L=2*celda;phi0=0;}\n  const phi=phi0-rot;\n  pend={L,phi0,cx:pivote.x+L*Math.sin(phi),cy:pivote.y+L*Math.cos(phi)};\n  pend.qx=pend.cx-vx*FISICA_MEY.H;pend.qy=pend.cy-velY*FISICA_MEY.H;\n  rotAntes=rot;pivoteAntes={x:pivote.x,y:pivote.y};\n };\n const mover=e=>{\n  if(arrastre&&arrastre.id===e.pointerId){\n   if(Math.hypot(e.clientX-arrastre.inicioX,e.clientY-arrastre.inicioY)>4)arrastre.movida=true;\n   if(!fisicaLibre()||!arrastre.movida){\n    x=limitar(arrastre.x0+e.clientX-arrastre.inicioX,8,derecha());y=limitar(arrastre.y0+e.clientY-arrastre.inicioY,8,suelo());\n    vx=velY=vy=elevacion=0;posicionar();\n   }else {\n    pivote={x:limitar(e.clientX,0,win.innerWidth),y:limitar(e.clientY,0,win.innerHeight)};\n    if(modo!=='colgada')colgar();\n   }\n  }else if(e.pointerType!=='touch'){\n   const ahora=win.performance.now();\n   puntero={x:e.clientX,y:e.clientY,t:ahora};\n   if(punteroAnt){\n    const transcurrido=ahora-punteroAnt.t;\n    if(transcurrido>=8){\n     const escala=1000/transcurrido;\n     punteroV.x=punteroV.x*.5+(e.clientX-punteroAnt.x)*escala*.5;\n     punteroV.y=punteroV.y*.5+(e.clientY-punteroAnt.y)*escala*.5;\n     punteroAnt={x:e.clientX,y:e.clientY,t:ahora};\n    }\n   }else punteroAnt={x:e.clientX,y:e.clientY,t:ahora};\n  }\n };\n const bajar=e=>{\n  if(e.button!==0)return;e.preventDefault();ignorarClic=false;\n  const qx=e.clientX-(x+O.x),qy=e.clientY-(y+O.y),c=Math.cos(rot),s=Math.sin(rot);\n  arrastre={id:e.pointerId,x0:x,y0:y,inicioX:e.clientX,inicioY:e.clientY,movida:false,gx:qx*c+qy*s,gy:-qx*s+qy*c};\n  actor.setPointerCapture?.(e.pointerId);actor.dataset.arrastrando='';\n };\n const subir=()=>{\n  if(!arrastre)return;\n  const a=arrastre;ignorarClic=a.movida;arrastre=null;delete actor.dataset.arrastrando;\n  if(modo==='colgada'){\n   if(quieta()){\n    modo='camina';rot=giro=0;x=limitar(x,8,derecha());y=limitar(y,8,suelo());pend=null;\n   }else {\n    vx=(pend.cx-pend.qx)/FISICA_MEY.H;velY=(pend.cy-pend.qy)/FISICA_MEY.H;\n    const rapidez=Math.hypot(vx,velY);\n    if(rapidez>FISICA_MEY.V_LANZAR){const k=FISICA_MEY.V_LANZAR/rapidez;vx*=k;velY*=k;}\n    giro=limitar((rot-rotAntes)/FISICA_MEY.H,-FISICA_MEY.GIRO_MAX,FISICA_MEY.GIRO_MAX);\n    modo='vuela';pend=null;\n   }\n  }else if(modo==='vuela'){vx=velY=giro=0;}\n  ruta=[];replanear=true;puntero=null;sondear();proteger();\n };\n const jugar=()=>{\n  if(ignorarClic){ignorarClic=false;return;}\n  if(quieta())return;\n  if(typeof opciones.accion==='function')opciones.accion();else salto(win.performance.now());\n };\n const desplazar=()=>{\n  replanear=true;sonda=-Infinity;\n  if(!quieta()&&modo==='camina'&&!arrastre)salto(win.performance.now());\n  // Pausada permanece exactamente donde estaba; solo cede si un control ocupa su lugar.\n  if(quieta()){sondear();proteger();}\n };\n const cambiarPausa=()=>{manual=!manual;pausa.setAttribute('aria-pressed',String(manual));pausa.setAttribute('aria-label',manual?textos.seguir:textos.pausa);pausa.textContent=manual?textos.seguirCorta:textos.pausaCorta;arrancar();};\n const observarFoco=win.MutationObserver?new win.MutationObserver(()=>alFoco()):null;\n const alFoco=()=>{\n  let activo=doc.activeElement;while(activo?.shadowRoot?.activeElement)activo=activo.shadowRoot.activeElement;\n  const nueva=!!activo?.matches('input,textarea,select,[contenteditable=\"true\"]');\n  if(nueva===foco)return;foco=nueva;\n  if(foco)observarFoco?.observe(doc.body,{subtree:true,childList:true});else observarFoco?.disconnect();arrancar();\n };\n const alSalirDelFoco=()=>win.queueMicrotask(alFoco);\n const tecla=e=>{if(e.key==='Escape'&&!manual){subir();cambiarPausa();}};\n const redimensionar=()=>{if(modo==='camina'){x=limitar(x,8,derecha());y=limitar(y,8,suelo());}ruta=[];replanear=true;arrancar();};\n const aparienciaCambiada=()=>{cuadro='';ultimoDibujo=-Infinity;dibujar(win.performance.now());};\n const personalidadCambiada=ev=>{\n  if(ev?.type==='storage'&&ev.key!==null&&ev.key!==undefined&&ev.key!=='erlen-mey-personalidad')return;\n  personalidad=opciones.personalidad||personalidadLocal.leer();\n  aparienciaCambiada();\n };\n const atender=()=>{sobreMey=true;gestoHasta=win.performance.now()+600;};\n const dejar=()=>{sobreMey=false;};\n const eventos=[[actor,'pointerenter',atender],[actor,'pointerleave',dejar],[actor,'dragstart',e=>e.preventDefault()],[win,'pointermove',mover],[win,'resize',redimensionar],[doc,'visibilitychange',arrancar],[doc,'focusin',alFoco],[doc,'focusout',alSalirDelFoco],[doc,'keydown',tecla],[actor,'pointerdown',bajar],[actor,'pointerup',subir],[actor,'pointercancel',subir],[actor,'lostpointercapture',subir],[actor,'click',jugar],[pausa,'click',cambiarPausa],[win,'erlen-mey-color',aparienciaCambiada],[win,'erlen-mey-apariencia',aparienciaCambiada],[win,'storage',aparienciaCambiada],[win,'erlen-mey-personalidad',personalidadCambiada],[win,'storage',personalidadCambiada]];\n for(const [el,n,fn] of eventos)el.addEventListener(n,fn,{passive:n==='pointermove'});\n doc.addEventListener('scroll',desplazar,{capture:true,passive:true});mq?.addEventListener?.('change',arrancar);\n const control={elemento:actor,pausa,\n  actualizar(nuevas={}){if(nuevas.personalidad)perfilPersonalidadMey(nuevas.personalidad);opciones={...opciones,...nuevas};personalidadCambiada();sincronizarAccion();replanear=true;if(nuevas.pausaEn)control.ubicarPausa(nuevas.pausaEn);},\n  ubicarPausa(contenedor){pausa.classList.toggle('mey-libre-pausa--integrada',!!contenedor);(contenedor||doc.body).append(pausa);},\n  estado:()=>({x,y:modo==='camina'?y+elevacion:y,tx:ruta.at(-1)?.x??x,ty:ruta.at(-1)?.y??y,vx,velY,vy,modo,rot,estado:actor.dataset.estado,quieta:quieta(),personalidad}),\n  detener(){muerta=true;win.cancelAnimationFrame(raf);for(const [el,n,fn] of eventos)el.removeEventListener(n,fn);doc.removeEventListener('scroll',desplazar,true);mq?.removeEventListener?.('change',arrancar);observarFoco?.disconnect();actor.remove();pausa.remove();if(doc[claveRecorridoMey]===control){delete doc[claveRecorridoMey];delete doc.documentElement.dataset.erlenMeyPresencia;}}\n };\n actor.control=control;doc[claveRecorridoMey]=control;\n if(opciones.pausaEn)control.ubicarPausa(opciones.pausaEn);\n sondear();proteger();dibujar(0);posicionar();arrancar();return control;\n};\n\n// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n/* Pantalla de inicio común de Erlen Suite (docs/COHERENCIA-APPS.md §3 del portal), el\n   patrón de Erlen Slides convertido en componente. La app declara textos, «Nuevo…»,\n   ejemplos, su biblioteca y recursos; este módulo pinta la barra lateral, la colección de\n   inicio y las vistas, filtra, deja el editor inerte y lleva el foco y el título de la\n   pestaña. Solo importa a Mey (diseno/mey.mjs; en el IIFE va incrustada) y no guarda datos:\n   la biblioteca la da la app.\n   Estilos en diseno/inicio.css, solo con tokens --erlen-*.\n\n   mountInicio(host, {\n     nombre: 'Erlen Notes', corto: 'NOTES', objetos: 'páginas',      // «Mis páginas»\n     marca?: '<svg…>', estado: 'Versión alfa', subtitulo: 'Cuadernos de investigación',\n     eyebrow: 'CUADERNO CIENTÍFICO · ERLEN NOTES', titulo: ['Cuadernos ', 'científicos'],\n     lead: 'Frase de una o dos líneas.',\n     nuevo: {etiqueta:'Nueva página', detalle:'Página en blanco', accion},\n     importar?: {etiqueta:'Importar…', accion},\n     continuar?: () => ({etiqueta:'Seguir con «X»', accion}) | null,\n     objetivos?: [{id, titulo, descripcion?, etiqueta?, accion}], // tareas con datos propios; no ejemplos\n     guardado?: 'sesion' | 'explicito', // sin él, la app guarda sola y el inicio lo afirma («Guardado local activo»).\n                                   // 'sesion': no guarda nada; vive en la pestaña. 'explicito': guarda solo si la persona lo pide.\n                                   // En ambos el inicio no afirma «Guardado local activo» ni «tu trabajo se queda en este navegador»\n     ejemplos?: [{id, disciplina, arte?, imagen?, titulo, descripcion?, accion, etiqueta?}],\n     // arte: SVG del contenido o texto; imagen: archivo local relativo a la raíz de la app\n     // (p. ej. 'ejemplos/muestra.webp'). Nunca URLs externas, absolutas ni data:.\n     biblioteca?: {listar: () => [{id, titulo, detalle?, fecha?, miniatura?, abrir, duplicar?, descargar?,\n                                    renombrar?: (nuevoTitulo) => void | Promise<void>,\n                                    eliminar?: () => void | Promise<void>}],\n                   vacio?: {titulo, texto}},\n     recursos?: [{titulo, texto, etiqueta, accion}],\n     acerca?: {texto, enlaces:[{etiqueta, url}]},\n     fuente?: {url, licencia:'AGPLv3'},\n     editor?: Element,            // se vuelve inert mientras el inicio está abierto\n     menuSuite?: contenedor => {}, // monta <erlen-suite-nav> en la cabecera\n     app?: 'notes',                // perfil de Mey; por defecto, corto en minúsculas\n     mey?: false | pose => '<svg…>', // una presencia compartida entre inicio y editor; false la quita.\n                                   // La función SVG solo se usa como respaldo sin animación disponible.\n     alAbrir?, alCerrar?\n   })\n   Devuelve {elemento, abrir(vista), cerrar(), actualizar(), avisar(texto,{error}), abierta, vista, destruir()}.\n   avisar() muestra un aviso persistente (role=status, o alert si es error) arriba del contenido\n   hasta que cambia la vista; menuSuite se llama una sola vez y su nodo se conserva.\n   Vistas: 'inicio', 'biblioteca', 'ejemplos', 'recursos', 'acerca'. */\nconst VISTAS=['inicio','biblioteca','ejemplos','recursos','acerca'];\n\nfunction mountInicio(host,config){\n if(!host||!host.ownerDocument)throw Error('mountInicio necesita un elemento anfitrión.');\n if(!config||typeof config.nombre!=='string'||!config.nuevo||typeof config.nuevo.accion!=='function')throw Error('mountInicio necesita nombre y nuevo.accion.');\n const doc=host.ownerDocument;\n aplicarIconoAplicacion(doc,(config.app||config.corto||'').toLowerCase());\n const objetos=config.objetos||'documentos';\n const nombres={inicio:'Inicio',biblioteca:'Mis '+objetos,ejemplos:'Ejemplos editables',recursos:'Recursos y respaldos',acerca:'Acerca de'};\n const disponibles=VISTAS.filter(v=>v==='inicio'||v==='acerca'||(v==='biblioteca'&&config.biblioteca)||(v==='ejemplos'&&config.ejemplos&&config.ejemplos.length)||(v==='recursos'&&config.recursos&&config.recursos.length));\n let vista='inicio',abierta=false,tituloPrevio=null,busqueda='',orden='recientes',aviso=null,hueco=null;\n\n const el=(tag,attrs,...hijos)=>{\n  const n=doc.createElement(tag);\n  for(const [k,v] of Object.entries(attrs||{}))if(v!==null&&v!==undefined&&v!==false)n.setAttribute(k,v===true?'':String(v));\n  n.append(...hijos.flat().filter(h=>h!==null&&h!==undefined&&h!==false));\n  return n;\n };\n const boton=(texto,accion,clase='',attrs={})=>{const b=el('button',{type:'button',class:('erlen-inicio-boton '+clase).trim(),...attrs},typeof texto==='string'?el('span',{class:'erlen-inicio-boton-texto'},texto):texto);if(typeof texto==='string'&&!attrs.title)b.title=texto;b.addEventListener('click',accion);return b;};\n const marca=()=>{const s=el('span',{class:'erlen-inicio-marca-icono','aria-hidden':'true'});if(config.marca)s.innerHTML=config.marca;return s;};\n // El recorrido compartido es la única presencia; el SVG es un respaldo sin RAF.\n const ilustracion=pose=>{\n  if(config.mey===false||doc.defaultView?.requestAnimationFrame)return null;\n  const s=el('span',{class:'erlen-inicio-mey','aria-hidden':'true'});\n  if(typeof config.mey==='function'){s.innerHTML=config.mey(pose);return s;}\n  // Mey viva del paquete: se adapta sola al hueco y al perfil de la app, y toma cada mejora de diseno/mey.mjs.\n  if(mey.definir(doc.defaultView))s.append(el('erlen-mey',{lugar:'vacio',pose,app:config.app||(config.corto||'').toLowerCase()||null}));\n  else s.innerHTML=mey(pose);\n  return s;\n };\n const alEditor=fn=>()=>{cerrar();fn();};\n\n const raiz=el('main',{class:'erlen-inicio',hidden:true,'aria-label':config.nombre});\n host.append(raiz);\n\n // Clave estable del control enfocado, para devolverle el foco tras repintar.\n const claveFoco=n=>n&&n!==doc.body&&raiz.contains(n)?n.tagName+'|'+(n.getAttribute('aria-label')||n.textContent.trim()):null;\n function pintar(){\n  const foco=claveFoco(doc.activeElement);\n  raiz.replaceChildren();\n  const nav=el('nav',{class:'erlen-inicio-nav','aria-label':'Navegación del inicio'},\n   disponibles.filter(v=>v!=='acerca').map(v=>{const a=el('a',{href:'#',class:'erlen-inicio-enlace','aria-current':v===vista?'page':null},nombres[v]);a.addEventListener('click',e=>{e.preventDefault();abrir(v);});return a;}));\n  const acerca=el('a',{href:'#',class:'erlen-inicio-enlace','aria-current':vista==='acerca'?'page':null},'Acerca de');\n  acerca.addEventListener('click',e=>{e.preventDefault();abrir('acerca');});\n  const lateral=el('aside',{class:'erlen-inicio-lateral'},\n   el('div',{class:'erlen-inicio-marca'},marca(),el('span',null,'Erlen'),config.corto?el('small',null,config.corto):null),\n   nav,\n   el('div',{class:'erlen-inicio-lateral-pie'},acerca,\n    config.fuente?el('a',{class:'erlen-inicio-fuente',href:config.fuente.url,target:'_blank',rel:'noopener'},'Código fuente · '+(config.fuente.licencia||'')):null,\n    config.estado?el('p',{class:'erlen-inicio-estado'},config.estado,el('span',null,{sesion:'Sin cuenta · lo que cargues vive solo en esta pestaña.',explicito:'Sin cuenta · se guarda en este navegador solo si pulsas Guardar.'}[config.guardado]||'Sin cuenta · tu trabajo se queda en este navegador.')):null));\n  const acciones=el('div',{class:'erlen-inicio-cabecera-acciones'},el('span',{class:'erlen-inicio-local'},'En este navegador'));\n  const cont=config.continuar&&config.continuar();\n  if(cont)acciones.append(boton(cont.etiqueta,alEditor(cont.accion),'secundario'));\n  if(config.menuSuite){if(!hueco){hueco=el('span',{class:'erlen-inicio-suite'});config.menuSuite(hueco);}acciones.append(hueco);}\n  const cabecera=el('header',{class:'erlen-inicio-cabecera'},el('span',null,config.subtitulo||config.nombre),acciones);\n  const contenido=el('div',{class:'erlen-inicio-contenido'});\n  raiz.append(el('div',{class:'erlen-inicio-marco'},lateral,el('div',{class:'erlen-inicio-panel'},cabecera,contenido)));\n  if(aviso)contenido.append(el('p',{class:'erlen-inicio-aviso'+(aviso.error?' error':''),role:aviso.error?'alert':'status'},aviso.texto));\n  ({inicio:pintarInicio,biblioteca:pintarBiblioteca,ejemplos:pintarEjemplos,recursos:pintarRecursos,acerca:pintarAcerca})[vista](contenido);\n  if(foco){const n=[...raiz.querySelectorAll('button,a,input,select,[tabindex]')].find(x=>claveFoco(x)===foco);if(n)n.focus({preventScroll:true});}\n }\n\n const titulo=(texto,em)=>el('h1',{class:'erlen-inicio-titulo',tabindex:'-1'},texto,em?el('em',null,em):null);\n const cabeceraVista=(c,nombre)=>c.append(el('header',{class:'erlen-inicio-vista-cabecera'},el('span',{class:'erlen-inicio-eyebrow'},(config.corto?'ERLEN '+config.corto:config.nombre.toUpperCase())),titulo(nombre)));\n function tarjetaNueva(){\n  const b=el('button',{type:'button',class:'erlen-inicio-nueva'},el('span',{class:'erlen-inicio-mas','aria-hidden':'true'},'+'),el('span',{class:'erlen-inicio-nueva-datos'},el('strong',null,config.nuevo.etiqueta),config.nuevo.detalle?el('small',null,config.nuevo.detalle):null));\n  b.addEventListener('click',alEditor(config.nuevo.accion));\n  return b;\n }\n function tarjetaEjemplo(e){\n  const arte=el('div',{class:'erlen-inicio-arte','aria-hidden':'true'});\n  // La ruta debe quedar dentro de la app incluso tras normalizar segmentos codificados. Solo se\n  // resuelve si hay `imagen`: en about:blank, data: o blob: `new URL('.',baseURI)` lanza y, sin\n  // este cuidado, una sola tarjeta tumbaba toda la pantalla de inicio; entonces queda `arte`.\n  let imagen=null;\n  if(typeof e.imagen==='string'&&e.imagen.trim()&&!/^[\\\\/]|[?#:]|\\\\/.test(e.imagen))try{\n   const base=new URL('.',doc.baseURI),url=new URL(e.imagen,base);\n   if(url.origin===base.origin&&url.pathname.startsWith(base.pathname))imagen=e.imagen;\n  }catch{imagen=null;}\n  if(imagen)arte.append(el('img',{src:imagen,alt:'',loading:'lazy',decoding:'async'}));\n  else if(typeof e.arte==='string'&&e.arte.trim().startsWith('<svg'))arte.innerHTML=e.arte;\n  else arte.textContent=e.arte||'';\n  return el('article',{class:'erlen-inicio-ejemplo con-arte','data-busqueda':[e.disciplina,e.titulo,e.descripcion].join(' ').toLowerCase()},\n   arte,el('div',{class:'erlen-inicio-ejemplo-datos'},e.disciplina?el('span',{class:'erlen-inicio-eyebrow'},e.disciplina):null,el('h2',null,e.titulo),e.descripcion?el('p',{class:'erlen-inicio-solo-lectura'},e.descripcion):null),\n   boton(e.etiqueta||'Abrir ejemplo',alEditor(e.accion),'primario',{'aria-label':(e.etiqueta||'Abrir ejemplo')+' · '+e.titulo}));\n }\n function pintarInicio(c){\n  const buscar=el('input',{type:'search',class:'erlen-inicio-campo',placeholder:'Buscar un ejemplo…','aria-label':'Buscar ejemplos'});\n  const objetivos=(config.objetivos||[]).map(o=>el('article',{class:'erlen-inicio-objetivo','data-objetivo':o.id},\n   el('span',{class:'erlen-inicio-eyebrow'},'Con tus datos'),el('h2',null,o.titulo),\n   o.descripcion?el('p',null,o.descripcion):null,\n   boton(o.etiqueta||'Empezar',alEditor(o.accion),'secundario',{'aria-label':(o.etiqueta||'Empezar')+' · '+o.titulo})));\n  const rejilla=el('section',{class:'erlen-inicio-rejilla erlen-inicio-coleccion','aria-label':'Colección de inicio'},tarjetaNueva(),objetivos,(config.ejemplos||[]).map(tarjetaEjemplo));\n  buscar.addEventListener('input',()=>{const q=buscar.value.trim().toLowerCase();for(const t of rejilla.querySelectorAll('.erlen-inicio-ejemplo'))t.hidden=!!q&&!t.dataset.busqueda.includes(q);});\n  const [texto,em]=Array.isArray(config.titulo)?config.titulo:[config.titulo||config.nombre];\n  c.append(el('div',{class:'erlen-inicio-bienvenida'},\n   el('div',null,config.eyebrow?el('span',{class:'erlen-inicio-eyebrow'},config.eyebrow):null,titulo(texto,em),config.lead?el('p',{class:'erlen-inicio-lead'},config.lead):null),\n   config.ejemplos&&config.ejemplos.length?el('label',{class:'erlen-inicio-buscar'},buscar):null));\n  if(config.mey!==false&&!doc.defaultView?.requestAnimationFrame&&typeof config.mey!=='function'&&mey.definir(doc.defaultView))\n   c.append(el('div',{class:'erlen-inicio-recreo','aria-hidden':'true'},el('erlen-mey',{lugar:'recreo',app:config.app||(config.corto||'').toLowerCase()||null})));\n  const accionesMeta=el('div',{class:'erlen-inicio-acciones'});\n  if(config.ejemplos&&config.ejemplos.length>3)accionesMeta.append(boton('Explorar ejemplos',()=>abrir('ejemplos'),'secundario'));\n  if(config.importar)accionesMeta.append(boton(config.importar.etiqueta||'Importar…',alEditor(config.importar.accion),'secundario'));\n  c.append(el('div',{class:'erlen-inicio-meta'},el('h2',null,'Colección de inicio'),accionesMeta),rejilla);\n  const recientes=config.biblioteca?config.biblioteca.listar().slice(0,4):[];\n  if(recientes.length){\n   const ver=el('a',{href:'#',class:'erlen-inicio-enlace-texto'},'Ver todo');ver.addEventListener('click',e=>{e.preventDefault();abrir('biblioteca');});\n   c.append(el('div',{class:'erlen-inicio-meta'},el('h2',null,'Recientes'),ver),el('ul',{class:'erlen-inicio-recientes'},recientes.map(r=>{const b=boton([el('strong',null,r.titulo||'Sin título'),r.detalle||r.fecha?el('small',null,[r.detalle,r.fecha].filter(Boolean).join(' · ')):null],alEditor(r.abrir),'reciente');return el('li',null,b);})));\n  }\n  if(config.ejemplos&&config.ejemplos.length)c.append(el('footer',{class:'erlen-inicio-pie'},el('p',null,'Ejemplos didácticos · sustituye los datos por los de tu investigación.'),el('span',{class:'erlen-inicio-activo'+({sesion:' sesion',explicito:' sesion'}[config.guardado]||'')},{sesion:'Sin guardado en el navegador',explicito:'Guardado solo si lo pides'}[config.guardado]||'Guardado local activo')));\n }\n function pintarBiblioteca(c){\n  cabeceraVista(c,nombres.biblioteca);\n  const buscar=el('input',{type:'search',class:'erlen-inicio-campo',placeholder:'Buscar en tu biblioteca…','aria-label':'Buscar en tu biblioteca',value:busqueda});\n  const ordenar=el('select',{class:'erlen-inicio-campo','aria-label':'Ordenar'},el('option',{value:'recientes'},'Más recientes'),el('option',{value:'nombre'},'Nombre A–Z'));\n  ordenar.value=orden;\n  const rejilla=el('section',{class:'erlen-inicio-rejilla erlen-inicio-biblioteca','aria-label':nombres.biblioteca});\n  const conteo=el('p',{class:'erlen-inicio-nota',role:'status'});\n  const fallo=(verbo,e)=>{aviso={texto:'No se pudo '+verbo+': '+(e&&e.message||e),error:true};pintar();};\n  const repintar=()=>{\n   const q=busqueda.trim().toLowerCase();\n   let items=config.biblioteca.listar();\n   const total=items.length;\n   if(q)items=items.filter(i=>[i.titulo,i.detalle].join(' ').toLowerCase().includes(q));\n   if(orden==='nombre')items=[...items].sort((a,b)=>String(a.titulo||'').localeCompare(String(b.titulo||''),'es'));\n   rejilla.replaceChildren();\n   if(!items.length){\n    const v=config.biblioteca.vacio||{};\n    rejilla.append(total?el('div',{class:'erlen-inicio-vacio'},ilustracion('pensando'),el('h3',null,'No hay coincidencias'),el('p',null,'Prueba con otro nombre o limpia la búsqueda.'))\n     :el('div',{class:'erlen-inicio-vacio'},ilustracion('dormido'),el('h3',null,v.titulo||'Aquí empieza tu trabajo'),el('p',null,v.texto||'Crea uno nuevo o importa un archivo. Tu trabajo se guarda en este navegador; puedes descargarlo en cualquier momento.'),boton(config.nuevo.etiqueta,alEditor(config.nuevo.accion),'primario')));\n   }\n   for(const i of items){\n    const nombre=i.titulo||'Sin título';\n    rejilla.append(el('article',{class:'erlen-inicio-tarjeta'},\n    el('div',{class:'erlen-inicio-miniatura','aria-hidden':'true'},el('small',null,'En este navegador'),el('span',null,i.miniatura||i.titulo||'Sin título')),\n    el('div',{class:'erlen-inicio-tarjeta-cuerpo'},el('h3',null,i.titulo||'Sin título'),i.detalle||i.fecha?el('p',null,[i.detalle,i.fecha].filter(Boolean).join(' · ')):null,\n     el('div',{class:'erlen-inicio-acciones'},boton('Abrir',alEditor(i.abrir),'primario',{'aria-label':'Abrir «'+(i.titulo||'Sin título')+'»'}),\n      i.duplicar?boton('Duplicar',()=>{Promise.resolve().then(()=>i.duplicar()).then(repintar,e=>fallo('duplicar',e));},'secundario',{'aria-label':'Duplicar «'+nombre+'»'}):null,\n      i.descargar?boton('Descargar',()=>i.descargar(),'secundario',{'aria-label':'Descargar «'+nombre+'»'}):null,\n      typeof i.renombrar==='function'?boton('Renombrar',()=>{\n       const respuesta=doc.defaultView.prompt('Nuevo nombre para «'+nombre+'»',nombre);\n       if(respuesta===null)return;\n       const nuevo=respuesta.trim();\n       if(!nuevo){fallo('renombrar','el nombre no puede estar vacío');return;}\n       if(nuevo!==nombre)Promise.resolve().then(()=>i.renombrar(nuevo)).then(repintar,e=>fallo('renombrar',e));\n      },'secundario',{'aria-label':'Renombrar «'+nombre+'»'}):null,\n      typeof i.eliminar==='function'?boton('Eliminar',()=>{\n       if(doc.defaultView.confirm('¿Eliminar «'+nombre+'»? Esta acción no se puede deshacer.'))\n        Promise.resolve().then(()=>i.eliminar()).then(repintar,e=>fallo('eliminar',e));\n      },'peligro',{'aria-label':'Eliminar «'+nombre+'»'}):null))));\n   }\n   conteo.textContent=items.length+' de '+total+' '+objetos;\n  };\n  buscar.addEventListener('input',()=>{busqueda=buscar.value;repintar();});\n  ordenar.addEventListener('change',()=>{orden=ordenar.value;repintar();});\n  c.append(el('div',{class:'erlen-inicio-controles'},buscar,ordenar),conteo,rejilla,\n   el('footer',{class:'erlen-inicio-pie'},el('p',null,'Los archivos locales son tuyos. Borrar los datos del navegador elimina estas copias: conserva un respaldo descargado.')));\n  repintar();\n }\n function pintarEjemplos(c){\n  cabeceraVista(c,nombres.ejemplos);\n  c.append(el('p',{class:'erlen-inicio-lead'},'Puntos de partida editables. Los datos son ilustrativos: sustitúyelos por los de tu investigación.'),\n   el('section',{class:'erlen-inicio-rejilla erlen-inicio-coleccion','aria-label':nombres.ejemplos},tarjetaNueva(),config.ejemplos.map(tarjetaEjemplo)));\n }\n function pintarRecursos(c){\n  cabeceraVista(c,nombres.recursos);\n  c.append(el('section',{class:'erlen-inicio-rejilla','aria-label':nombres.recursos},config.recursos.map(r=>el('article',{class:'erlen-inicio-ejemplo'},el('h2',null,r.titulo),r.texto?el('p',null,r.texto):null,boton(r.etiqueta||'Abrir',()=>r.accion(),'secundario')))));\n }\n function pintarAcerca(c){\n  cabeceraVista(c,nombres.acerca);\n  const a=config.acerca||{};\n  c.append(el('div',{class:'erlen-inicio-acerca'},el('h2',null,config.nombre+(config.subtitulo?' · '+config.subtitulo:'')),a.texto?el('p',null,a.texto):null,\n   a.enlaces&&a.enlaces.length?el('ul',null,a.enlaces.map(l=>el('li',null,el('a',{href:l.url,target:'_blank',rel:'noopener'},l.etiqueta)))):null));\n }\n\n let recorridoLibre=null,recorridoPropio=false,pausaAnterior=null;\n function abrir(v='inicio'){\n  const nueva=disponibles.includes(v)?v:'inicio';\n  if(nueva!==vista)aviso=null;\n  vista=nueva;\n  if(!abierta){tituloPrevio=doc.title;abierta=true;raiz.hidden=false;if(config.editor)config.editor.setAttribute('inert','');doc.body.classList.add('erlen-inicio-abierto');if(config.alAbrir)config.alAbrir();}\n  pintar();\n  raiz.scrollTop=0;\n  if(config.mey!==false&&doc.defaultView?.requestAnimationFrame){\n   if(!recorridoLibre?.elemento.isConnected){recorridoPropio=!mey.recorridoActual(doc);recorridoLibre=mey.recorrerPagina({documento:doc});}\n   if(recorridoLibre?.pausa.classList.contains('mey-libre-pausa--integrada')){pausaAnterior=recorridoLibre.pausa.parentElement;recorridoLibre.ubicarPausa(null);}\n  }\n  doc.title=nombres[vista]+' · '+config.nombre;\n  raiz.querySelector('.erlen-inicio-titulo')?.focus({preventScroll:true});\n }\n function cerrar(){\n  if(!abierta)return;\n  abierta=false;raiz.hidden=true;aviso=null;\n  if(pausaAnterior?.isConnected)recorridoLibre?.ubicarPausa(pausaAnterior);pausaAnterior=null;\n  if(recorridoPropio)recorridoLibre?.actualizar({evitar:config.editor?[config.editor]:[]});\n  if(config.editor)config.editor.removeAttribute('inert');\n  doc.body.classList.remove('erlen-inicio-abierto');\n  if(tituloPrevio!==null)doc.title=tituloPrevio;\n  if(config.alCerrar)config.alCerrar();\n }\n return {\n  elemento:raiz,abrir,cerrar,\n  actualizar(){if(abierta)pintar();},\n  avisar(texto,{error=false}={}){aviso=texto?{texto:String(texto),error:!!error}:null;if(abierta)pintar();},\n  get abierta(){return abierta;},\n  get vista(){return vista;},\n  destruir(){cerrar();if(recorridoPropio)recorridoLibre?.detener();recorridoLibre=null;raiz.remove();}\n };\n}\n\nreturn mountInicio;})();\n",
  "src/diseno/suite-inicio.mjs": "import {aplicarIconoAplicacion} from './productos.mjs';\n// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport {mey} from './mey.mjs';\n/* Pantalla de inicio común de Erlen Suite (docs/COHERENCIA-APPS.md §3 del portal), el\n   patrón de Erlen Slides convertido en componente. La app declara textos, «Nuevo…»,\n   ejemplos, su biblioteca y recursos; este módulo pinta la barra lateral, la colección de\n   inicio y las vistas, filtra, deja el editor inerte y lleva el foco y el título de la\n   pestaña. Solo importa a Mey (diseno/mey.mjs; en el IIFE va incrustada) y no guarda datos:\n   la biblioteca la da la app.\n   Estilos en diseno/inicio.css, solo con tokens --erlen-*.\n\n   mountInicio(host, {\n     nombre: 'Erlen Notes', corto: 'NOTES', objetos: 'páginas',      // «Mis páginas»\n     marca?: '<svg…>', estado: 'Versión alfa', subtitulo: 'Cuadernos de investigación',\n     eyebrow: 'CUADERNO CIENTÍFICO · ERLEN NOTES', titulo: ['Cuadernos ', 'científicos'],\n     lead: 'Frase de una o dos líneas.',\n     nuevo: {etiqueta:'Nueva página', detalle:'Página en blanco', accion},\n     importar?: {etiqueta:'Importar…', accion},\n     continuar?: () => ({etiqueta:'Seguir con «X»', accion}) | null,\n     objetivos?: [{id, titulo, descripcion?, etiqueta?, accion}], // tareas con datos propios; no ejemplos\n     guardado?: 'sesion' | 'explicito', // sin él, la app guarda sola y el inicio lo afirma («Guardado local activo»).\n                                   // 'sesion': no guarda nada; vive en la pestaña. 'explicito': guarda solo si la persona lo pide.\n                                   // En ambos el inicio no afirma «Guardado local activo» ni «tu trabajo se queda en este navegador»\n     ejemplos?: [{id, disciplina, arte?, imagen?, titulo, descripcion?, accion, etiqueta?}],\n     // arte: SVG del contenido o texto; imagen: archivo local relativo a la raíz de la app\n     // (p. ej. 'ejemplos/muestra.webp'). Nunca URLs externas, absolutas ni data:.\n     biblioteca?: {listar: () => [{id, titulo, detalle?, fecha?, miniatura?, abrir, duplicar?, descargar?,\n                                    renombrar?: (nuevoTitulo) => void | Promise<void>,\n                                    eliminar?: () => void | Promise<void>}],\n                   vacio?: {titulo, texto}},\n     recursos?: [{titulo, texto, etiqueta, accion}],\n     acerca?: {texto, enlaces:[{etiqueta, url}]},\n     fuente?: {url, licencia:'AGPLv3'},\n     editor?: Element,            // se vuelve inert mientras el inicio está abierto\n     menuSuite?: contenedor => {}, // monta <erlen-suite-nav> en la cabecera\n     app?: 'notes',                // perfil de Mey; por defecto, corto en minúsculas\n     mey?: false | pose => '<svg…>', // una presencia compartida entre inicio y editor; false la quita.\n                                   // La función SVG solo se usa como respaldo sin animación disponible.\n     alAbrir?, alCerrar?\n   })\n   Devuelve {elemento, abrir(vista), cerrar(), actualizar(), avisar(texto,{error}), abierta, vista, destruir()}.\n   avisar() muestra un aviso persistente (role=status, o alert si es error) arriba del contenido\n   hasta que cambia la vista; menuSuite se llama una sola vez y su nodo se conserva.\n   Vistas: 'inicio', 'biblioteca', 'ejemplos', 'recursos', 'acerca'. */\nconst VISTAS=['inicio','biblioteca','ejemplos','recursos','acerca'];\n\nexport function mountInicio(host,config){\n if(!host||!host.ownerDocument)throw Error('mountInicio necesita un elemento anfitrión.');\n if(!config||typeof config.nombre!=='string'||!config.nuevo||typeof config.nuevo.accion!=='function')throw Error('mountInicio necesita nombre y nuevo.accion.');\n const doc=host.ownerDocument;\n aplicarIconoAplicacion(doc,(config.app||config.corto||'').toLowerCase());\n const objetos=config.objetos||'documentos';\n const nombres={inicio:'Inicio',biblioteca:'Mis '+objetos,ejemplos:'Ejemplos editables',recursos:'Recursos y respaldos',acerca:'Acerca de'};\n const disponibles=VISTAS.filter(v=>v==='inicio'||v==='acerca'||(v==='biblioteca'&&config.biblioteca)||(v==='ejemplos'&&config.ejemplos&&config.ejemplos.length)||(v==='recursos'&&config.recursos&&config.recursos.length));\n let vista='inicio',abierta=false,tituloPrevio=null,busqueda='',orden='recientes',aviso=null,hueco=null;\n\n const el=(tag,attrs,...hijos)=>{\n  const n=doc.createElement(tag);\n  for(const [k,v] of Object.entries(attrs||{}))if(v!==null&&v!==undefined&&v!==false)n.setAttribute(k,v===true?'':String(v));\n  n.append(...hijos.flat().filter(h=>h!==null&&h!==undefined&&h!==false));\n  return n;\n };\n const boton=(texto,accion,clase='',attrs={})=>{const b=el('button',{type:'button',class:('erlen-inicio-boton '+clase).trim(),...attrs},typeof texto==='string'?el('span',{class:'erlen-inicio-boton-texto'},texto):texto);if(typeof texto==='string'&&!attrs.title)b.title=texto;b.addEventListener('click',accion);return b;};\n const marca=()=>{const s=el('span',{class:'erlen-inicio-marca-icono','aria-hidden':'true'});if(config.marca)s.innerHTML=config.marca;return s;};\n // El recorrido compartido es la única presencia; el SVG es un respaldo sin RAF.\n const ilustracion=pose=>{\n  if(config.mey===false||doc.defaultView?.requestAnimationFrame)return null;\n  const s=el('span',{class:'erlen-inicio-mey','aria-hidden':'true'});\n  if(typeof config.mey==='function'){s.innerHTML=config.mey(pose);return s;}\n  // Mey viva del paquete: se adapta sola al hueco y al perfil de la app, y toma cada mejora de diseno/mey.mjs.\n  if(mey.definir(doc.defaultView))s.append(el('erlen-mey',{lugar:'vacio',pose,app:config.app||(config.corto||'').toLowerCase()||null}));\n  else s.innerHTML=mey(pose);\n  return s;\n };\n const alEditor=fn=>()=>{cerrar();fn();};\n\n const raiz=el('main',{class:'erlen-inicio',hidden:true,'aria-label':config.nombre});\n host.append(raiz);\n\n // Clave estable del control enfocado, para devolverle el foco tras repintar.\n const claveFoco=n=>n&&n!==doc.body&&raiz.contains(n)?n.tagName+'|'+(n.getAttribute('aria-label')||n.textContent.trim()):null;\n function pintar(){\n  const foco=claveFoco(doc.activeElement);\n  raiz.replaceChildren();\n  const nav=el('nav',{class:'erlen-inicio-nav','aria-label':'Navegación del inicio'},\n   disponibles.filter(v=>v!=='acerca').map(v=>{const a=el('a',{href:'#',class:'erlen-inicio-enlace','aria-current':v===vista?'page':null},nombres[v]);a.addEventListener('click',e=>{e.preventDefault();abrir(v);});return a;}));\n  const acerca=el('a',{href:'#',class:'erlen-inicio-enlace','aria-current':vista==='acerca'?'page':null},'Acerca de');\n  acerca.addEventListener('click',e=>{e.preventDefault();abrir('acerca');});\n  const lateral=el('aside',{class:'erlen-inicio-lateral'},\n   el('div',{class:'erlen-inicio-marca'},marca(),el('span',null,'Erlen'),config.corto?el('small',null,config.corto):null),\n   nav,\n   el('div',{class:'erlen-inicio-lateral-pie'},acerca,\n    config.fuente?el('a',{class:'erlen-inicio-fuente',href:config.fuente.url,target:'_blank',rel:'noopener'},'Código fuente · '+(config.fuente.licencia||'')):null,\n    config.estado?el('p',{class:'erlen-inicio-estado'},config.estado,el('span',null,{sesion:'Sin cuenta · lo que cargues vive solo en esta pestaña.',explicito:'Sin cuenta · se guarda en este navegador solo si pulsas Guardar.'}[config.guardado]||'Sin cuenta · tu trabajo se queda en este navegador.')):null));\n  const acciones=el('div',{class:'erlen-inicio-cabecera-acciones'},el('span',{class:'erlen-inicio-local'},'En este navegador'));\n  const cont=config.continuar&&config.continuar();\n  if(cont)acciones.append(boton(cont.etiqueta,alEditor(cont.accion),'secundario'));\n  if(config.menuSuite){if(!hueco){hueco=el('span',{class:'erlen-inicio-suite'});config.menuSuite(hueco);}acciones.append(hueco);}\n  const cabecera=el('header',{class:'erlen-inicio-cabecera'},el('span',null,config.subtitulo||config.nombre),acciones);\n  const contenido=el('div',{class:'erlen-inicio-contenido'});\n  raiz.append(el('div',{class:'erlen-inicio-marco'},lateral,el('div',{class:'erlen-inicio-panel'},cabecera,contenido)));\n  if(aviso)contenido.append(el('p',{class:'erlen-inicio-aviso'+(aviso.error?' error':''),role:aviso.error?'alert':'status'},aviso.texto));\n  ({inicio:pintarInicio,biblioteca:pintarBiblioteca,ejemplos:pintarEjemplos,recursos:pintarRecursos,acerca:pintarAcerca})[vista](contenido);\n  if(foco){const n=[...raiz.querySelectorAll('button,a,input,select,[tabindex]')].find(x=>claveFoco(x)===foco);if(n)n.focus({preventScroll:true});}\n }\n\n const titulo=(texto,em)=>el('h1',{class:'erlen-inicio-titulo',tabindex:'-1'},texto,em?el('em',null,em):null);\n const cabeceraVista=(c,nombre)=>c.append(el('header',{class:'erlen-inicio-vista-cabecera'},el('span',{class:'erlen-inicio-eyebrow'},(config.corto?'ERLEN '+config.corto:config.nombre.toUpperCase())),titulo(nombre)));\n function tarjetaNueva(){\n  const b=el('button',{type:'button',class:'erlen-inicio-nueva'},el('span',{class:'erlen-inicio-mas','aria-hidden':'true'},'+'),el('span',{class:'erlen-inicio-nueva-datos'},el('strong',null,config.nuevo.etiqueta),config.nuevo.detalle?el('small',null,config.nuevo.detalle):null));\n  b.addEventListener('click',alEditor(config.nuevo.accion));\n  return b;\n }\n function tarjetaEjemplo(e){\n  const arte=el('div',{class:'erlen-inicio-arte','aria-hidden':'true'});\n  // La ruta debe quedar dentro de la app incluso tras normalizar segmentos codificados. Solo se\n  // resuelve si hay `imagen`: en about:blank, data: o blob: `new URL('.',baseURI)` lanza y, sin\n  // este cuidado, una sola tarjeta tumbaba toda la pantalla de inicio; entonces queda `arte`.\n  let imagen=null;\n  if(typeof e.imagen==='string'&&e.imagen.trim()&&!/^[\\\\/]|[?#:]|\\\\/.test(e.imagen))try{\n   const base=new URL('.',doc.baseURI),url=new URL(e.imagen,base);\n   if(url.origin===base.origin&&url.pathname.startsWith(base.pathname))imagen=e.imagen;\n  }catch{imagen=null;}\n  if(imagen)arte.append(el('img',{src:imagen,alt:'',loading:'lazy',decoding:'async'}));\n  else if(typeof e.arte==='string'&&e.arte.trim().startsWith('<svg'))arte.innerHTML=e.arte;\n  else arte.textContent=e.arte||'';\n  return el('article',{class:'erlen-inicio-ejemplo con-arte','data-busqueda':[e.disciplina,e.titulo,e.descripcion].join(' ').toLowerCase()},\n   arte,el('div',{class:'erlen-inicio-ejemplo-datos'},e.disciplina?el('span',{class:'erlen-inicio-eyebrow'},e.disciplina):null,el('h2',null,e.titulo),e.descripcion?el('p',{class:'erlen-inicio-solo-lectura'},e.descripcion):null),\n   boton(e.etiqueta||'Abrir ejemplo',alEditor(e.accion),'primario',{'aria-label':(e.etiqueta||'Abrir ejemplo')+' · '+e.titulo}));\n }\n function pintarInicio(c){\n  const buscar=el('input',{type:'search',class:'erlen-inicio-campo',placeholder:'Buscar un ejemplo…','aria-label':'Buscar ejemplos'});\n  const objetivos=(config.objetivos||[]).map(o=>el('article',{class:'erlen-inicio-objetivo','data-objetivo':o.id},\n   el('span',{class:'erlen-inicio-eyebrow'},'Con tus datos'),el('h2',null,o.titulo),\n   o.descripcion?el('p',null,o.descripcion):null,\n   boton(o.etiqueta||'Empezar',alEditor(o.accion),'secundario',{'aria-label':(o.etiqueta||'Empezar')+' · '+o.titulo})));\n  const rejilla=el('section',{class:'erlen-inicio-rejilla erlen-inicio-coleccion','aria-label':'Colección de inicio'},tarjetaNueva(),objetivos,(config.ejemplos||[]).map(tarjetaEjemplo));\n  buscar.addEventListener('input',()=>{const q=buscar.value.trim().toLowerCase();for(const t of rejilla.querySelectorAll('.erlen-inicio-ejemplo'))t.hidden=!!q&&!t.dataset.busqueda.includes(q);});\n  const [texto,em]=Array.isArray(config.titulo)?config.titulo:[config.titulo||config.nombre];\n  c.append(el('div',{class:'erlen-inicio-bienvenida'},\n   el('div',null,config.eyebrow?el('span',{class:'erlen-inicio-eyebrow'},config.eyebrow):null,titulo(texto,em),config.lead?el('p',{class:'erlen-inicio-lead'},config.lead):null),\n   config.ejemplos&&config.ejemplos.length?el('label',{class:'erlen-inicio-buscar'},buscar):null));\n  if(config.mey!==false&&!doc.defaultView?.requestAnimationFrame&&typeof config.mey!=='function'&&mey.definir(doc.defaultView))\n   c.append(el('div',{class:'erlen-inicio-recreo','aria-hidden':'true'},el('erlen-mey',{lugar:'recreo',app:config.app||(config.corto||'').toLowerCase()||null})));\n  const accionesMeta=el('div',{class:'erlen-inicio-acciones'});\n  if(config.ejemplos&&config.ejemplos.length>3)accionesMeta.append(boton('Explorar ejemplos',()=>abrir('ejemplos'),'secundario'));\n  if(config.importar)accionesMeta.append(boton(config.importar.etiqueta||'Importar…',alEditor(config.importar.accion),'secundario'));\n  c.append(el('div',{class:'erlen-inicio-meta'},el('h2',null,'Colección de inicio'),accionesMeta),rejilla);\n  const recientes=config.biblioteca?config.biblioteca.listar().slice(0,4):[];\n  if(recientes.length){\n   const ver=el('a',{href:'#',class:'erlen-inicio-enlace-texto'},'Ver todo');ver.addEventListener('click',e=>{e.preventDefault();abrir('biblioteca');});\n   c.append(el('div',{class:'erlen-inicio-meta'},el('h2',null,'Recientes'),ver),el('ul',{class:'erlen-inicio-recientes'},recientes.map(r=>{const b=boton([el('strong',null,r.titulo||'Sin título'),r.detalle||r.fecha?el('small',null,[r.detalle,r.fecha].filter(Boolean).join(' · ')):null],alEditor(r.abrir),'reciente');return el('li',null,b);})));\n  }\n  if(config.ejemplos&&config.ejemplos.length)c.append(el('footer',{class:'erlen-inicio-pie'},el('p',null,'Ejemplos didácticos · sustituye los datos por los de tu investigación.'),el('span',{class:'erlen-inicio-activo'+({sesion:' sesion',explicito:' sesion'}[config.guardado]||'')},{sesion:'Sin guardado en el navegador',explicito:'Guardado solo si lo pides'}[config.guardado]||'Guardado local activo')));\n }\n function pintarBiblioteca(c){\n  cabeceraVista(c,nombres.biblioteca);\n  const buscar=el('input',{type:'search',class:'erlen-inicio-campo',placeholder:'Buscar en tu biblioteca…','aria-label':'Buscar en tu biblioteca',value:busqueda});\n  const ordenar=el('select',{class:'erlen-inicio-campo','aria-label':'Ordenar'},el('option',{value:'recientes'},'Más recientes'),el('option',{value:'nombre'},'Nombre A–Z'));\n  ordenar.value=orden;\n  const rejilla=el('section',{class:'erlen-inicio-rejilla erlen-inicio-biblioteca','aria-label':nombres.biblioteca});\n  const conteo=el('p',{class:'erlen-inicio-nota',role:'status'});\n  const fallo=(verbo,e)=>{aviso={texto:'No se pudo '+verbo+': '+(e&&e.message||e),error:true};pintar();};\n  const repintar=()=>{\n   const q=busqueda.trim().toLowerCase();\n   let items=config.biblioteca.listar();\n   const total=items.length;\n   if(q)items=items.filter(i=>[i.titulo,i.detalle].join(' ').toLowerCase().includes(q));\n   if(orden==='nombre')items=[...items].sort((a,b)=>String(a.titulo||'').localeCompare(String(b.titulo||''),'es'));\n   rejilla.replaceChildren();\n   if(!items.length){\n    const v=config.biblioteca.vacio||{};\n    rejilla.append(total?el('div',{class:'erlen-inicio-vacio'},ilustracion('pensando'),el('h3',null,'No hay coincidencias'),el('p',null,'Prueba con otro nombre o limpia la búsqueda.'))\n     :el('div',{class:'erlen-inicio-vacio'},ilustracion('dormido'),el('h3',null,v.titulo||'Aquí empieza tu trabajo'),el('p',null,v.texto||'Crea uno nuevo o importa un archivo. Tu trabajo se guarda en este navegador; puedes descargarlo en cualquier momento.'),boton(config.nuevo.etiqueta,alEditor(config.nuevo.accion),'primario')));\n   }\n   for(const i of items){\n    const nombre=i.titulo||'Sin título';\n    rejilla.append(el('article',{class:'erlen-inicio-tarjeta'},\n    el('div',{class:'erlen-inicio-miniatura','aria-hidden':'true'},el('small',null,'En este navegador'),el('span',null,i.miniatura||i.titulo||'Sin título')),\n    el('div',{class:'erlen-inicio-tarjeta-cuerpo'},el('h3',null,i.titulo||'Sin título'),i.detalle||i.fecha?el('p',null,[i.detalle,i.fecha].filter(Boolean).join(' · ')):null,\n     el('div',{class:'erlen-inicio-acciones'},boton('Abrir',alEditor(i.abrir),'primario',{'aria-label':'Abrir «'+(i.titulo||'Sin título')+'»'}),\n      i.duplicar?boton('Duplicar',()=>{Promise.resolve().then(()=>i.duplicar()).then(repintar,e=>fallo('duplicar',e));},'secundario',{'aria-label':'Duplicar «'+nombre+'»'}):null,\n      i.descargar?boton('Descargar',()=>i.descargar(),'secundario',{'aria-label':'Descargar «'+nombre+'»'}):null,\n      typeof i.renombrar==='function'?boton('Renombrar',()=>{\n       const respuesta=doc.defaultView.prompt('Nuevo nombre para «'+nombre+'»',nombre);\n       if(respuesta===null)return;\n       const nuevo=respuesta.trim();\n       if(!nuevo){fallo('renombrar','el nombre no puede estar vacío');return;}\n       if(nuevo!==nombre)Promise.resolve().then(()=>i.renombrar(nuevo)).then(repintar,e=>fallo('renombrar',e));\n      },'secundario',{'aria-label':'Renombrar «'+nombre+'»'}):null,\n      typeof i.eliminar==='function'?boton('Eliminar',()=>{\n       if(doc.defaultView.confirm('¿Eliminar «'+nombre+'»? Esta acción no se puede deshacer.'))\n        Promise.resolve().then(()=>i.eliminar()).then(repintar,e=>fallo('eliminar',e));\n      },'peligro',{'aria-label':'Eliminar «'+nombre+'»'}):null))));\n   }\n   conteo.textContent=items.length+' de '+total+' '+objetos;\n  };\n  buscar.addEventListener('input',()=>{busqueda=buscar.value;repintar();});\n  ordenar.addEventListener('change',()=>{orden=ordenar.value;repintar();});\n  c.append(el('div',{class:'erlen-inicio-controles'},buscar,ordenar),conteo,rejilla,\n   el('footer',{class:'erlen-inicio-pie'},el('p',null,'Los archivos locales son tuyos. Borrar los datos del navegador elimina estas copias: conserva un respaldo descargado.')));\n  repintar();\n }\n function pintarEjemplos(c){\n  cabeceraVista(c,nombres.ejemplos);\n  c.append(el('p',{class:'erlen-inicio-lead'},'Puntos de partida editables. Los datos son ilustrativos: sustitúyelos por los de tu investigación.'),\n   el('section',{class:'erlen-inicio-rejilla erlen-inicio-coleccion','aria-label':nombres.ejemplos},tarjetaNueva(),config.ejemplos.map(tarjetaEjemplo)));\n }\n function pintarRecursos(c){\n  cabeceraVista(c,nombres.recursos);\n  c.append(el('section',{class:'erlen-inicio-rejilla','aria-label':nombres.recursos},config.recursos.map(r=>el('article',{class:'erlen-inicio-ejemplo'},el('h2',null,r.titulo),r.texto?el('p',null,r.texto):null,boton(r.etiqueta||'Abrir',()=>r.accion(),'secundario')))));\n }\n function pintarAcerca(c){\n  cabeceraVista(c,nombres.acerca);\n  const a=config.acerca||{};\n  c.append(el('div',{class:'erlen-inicio-acerca'},el('h2',null,config.nombre+(config.subtitulo?' · '+config.subtitulo:'')),a.texto?el('p',null,a.texto):null,\n   a.enlaces&&a.enlaces.length?el('ul',null,a.enlaces.map(l=>el('li',null,el('a',{href:l.url,target:'_blank',rel:'noopener'},l.etiqueta)))):null));\n }\n\n let recorridoLibre=null,recorridoPropio=false,pausaAnterior=null;\n function abrir(v='inicio'){\n  const nueva=disponibles.includes(v)?v:'inicio';\n  if(nueva!==vista)aviso=null;\n  vista=nueva;\n  if(!abierta){tituloPrevio=doc.title;abierta=true;raiz.hidden=false;if(config.editor)config.editor.setAttribute('inert','');doc.body.classList.add('erlen-inicio-abierto');if(config.alAbrir)config.alAbrir();}\n  pintar();\n  raiz.scrollTop=0;\n  if(config.mey!==false&&doc.defaultView?.requestAnimationFrame){\n   if(!recorridoLibre?.elemento.isConnected){recorridoPropio=!mey.recorridoActual(doc);recorridoLibre=mey.recorrerPagina({documento:doc});}\n   if(recorridoLibre?.pausa.classList.contains('mey-libre-pausa--integrada')){pausaAnterior=recorridoLibre.pausa.parentElement;recorridoLibre.ubicarPausa(null);}\n  }\n  doc.title=nombres[vista]+' · '+config.nombre;\n  raiz.querySelector('.erlen-inicio-titulo')?.focus({preventScroll:true});\n }\n function cerrar(){\n  if(!abierta)return;\n  abierta=false;raiz.hidden=true;aviso=null;\n  if(pausaAnterior?.isConnected)recorridoLibre?.ubicarPausa(pausaAnterior);pausaAnterior=null;\n  if(recorridoPropio)recorridoLibre?.actualizar({evitar:config.editor?[config.editor]:[]});\n  if(config.editor)config.editor.removeAttribute('inert');\n  doc.body.classList.remove('erlen-inicio-abierto');\n  if(tituloPrevio!==null)doc.title=tituloPrevio;\n  if(config.alCerrar)config.alCerrar();\n }\n return {\n  elemento:raiz,abrir,cerrar,\n  actualizar(){if(abierta)pintar();},\n  avisar(texto,{error=false}={}){aviso=texto?{texto:String(texto),error:!!error}:null;if(abierta)pintar();},\n  get abierta(){return abierta;},\n  get vista(){return vista;},\n  destruir(){cerrar();if(recorridoPropio)recorridoLibre?.detener();recorridoLibre=null;raiz.remove();}\n };\n}\n",
  "src/diseno/suite-marco.js": "/* erlen-diseno 2.11.8 · generado por @erlen/design/tools/generate; no editar a mano */\nconst erlenMarco=(()=>{\n/* Familia propia de iconos de Erlen Suite. Fuente única del markup congelado\n   (plan erlen-iconos): cada glifo es el contenido interno de UNA línea, sin\n   <svg> envolvente; glifo(id) lo envuelve con la gramática fija del portal.\n   La marca (favicon/og) vive en web/recursos/favicon.svg, no aquí. */\nconst glifosProducto={\n slides:'<rect x=\"3\" y=\"4\" width=\"18\" height=\"12\" rx=\"2\"/><path d=\"M6.8 8.4h5.2M6.8 11.4h3.4\"/><rect x=\"14\" y=\"7.8\" width=\"3.8\" height=\"3.8\" rx=\"0.8\"/><path d=\"M12 16v4M8.5 20h7\"/>',\n notes:'<rect x=\"6\" y=\"3\" width=\"13\" height=\"18\" rx=\"2\"/><path d=\"M4.2 7.5h3.6M4.2 12h3.6M4.2 16.5h3.6\"/><path d=\"M11 8.5h5M11 12h5\"/><circle cx=\"15.5\" cy=\"16.2\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/>',\n lens:'<circle cx=\"10\" cy=\"10\" r=\"5.5\"/><path d=\"m14 14 5 5\"/><path d=\"M7.5 8.5h5M7.5 11.5h3.5\"/>',\n pentagrama:'<path d=\"M4 5h16M4 9h16M4 13h16M4 17h16\"/><circle cx=\"9\" cy=\"15\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M10.4 15V7.5\"/>',\n documents:'<path d=\"M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z\"/><path d=\"M14 3v6h6\"/><path d=\"M9.5 13h5\"/><circle cx=\"12\" cy=\"10\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"16\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M8.5 18.8h7\"/>',\n spreadsheets:'<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"M3 9h18M12 9v11\"/><circle cx=\"7\" cy=\"12.6\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"8.6\" cy=\"15.6\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M16.5 11.5v6M15.2 11.5h2.6M15.2 17.5h2.6\"/>',\n figures:'<rect x=\"3\" y=\"4\" width=\"10\" height=\"10\" rx=\"1.5\"/><circle cx=\"8\" cy=\"9\" r=\"2.4\"/><rect x=\"16\" y=\"4\" width=\"5\" height=\"4.5\" rx=\"1\"/><rect x=\"16\" y=\"11.5\" width=\"5\" height=\"4.5\" rx=\"1\"/><path d=\"M3 19.5h6.5M3 18.2v2.6M9.5 18.2v2.6\"/>',\n ftir:'<path d=\"M3 5v14h18\"/><path d=\"M5.5 8h2.2l1.5 7L10.7 8h3.6l1.5 7L17.3 8h1.2\"/>',\n doe:'<rect x=\"6\" y=\"6\" width=\"12\" height=\"12\" rx=\"1.5\"/><path d=\"M12 2.5V6M12 18v3.5M2.5 12H6M18 12h3.5\"/><circle cx=\"12\" cy=\"12\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/>',\n xrd:'<path d=\"M3 5v14h18\"/><path d=\"M5 17h2l1.2-10 1.2 10h2.4l1-6 1 6h2.2l.8-3.5.8 3.5H20\"/>',\n xps:'<circle cx=\"9\" cy=\"14\" r=\"5\"/><circle cx=\"9\" cy=\"14\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><path d=\"m13 10 6.5-6.5\"/><path d=\"M15.5 3.5h4v4\"/>',\n thermal:'<path d=\"M10 4.5a2 2 0 0 1 4 0v9.2a4 4 0 1 1-4 0z\"/><path d=\"M12 9v7.5\"/><circle cx=\"12\" cy=\"17\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M16.5 6h3M16.5 9.5h2\"/>',\n rmn:'<path d=\"M3 5v14h18\"/><path d=\"M5 17h2l.8-5 .8 5H11l1-11 1 11h3l.8-7 .8 7H20\"/><path d=\"M7 21h11\"/>',\n methods:'<rect x=\"5\" y=\"4\" width=\"14\" height=\"17\" rx=\"2\"/><path d=\"M9 4V2.8h6V4\"/><path d=\"m8.3 10 1.2 1.2 2-2M8.3 15l1.2 1.2 2-2\"/><path d=\"M13.8 10.4h2.7M13.8 15.4h2.7\"/>',\n dft:'<path d=\"M3 5v14h18\"/><path d=\"M5.5 16.5Q9 10.5 12.5 16.5\"/><path d=\"M11.5 6.5Q15 12.5 18.5 6.5\"/>',\n fem:'<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"1\"/><path d=\"M3 4 12 12 21 4M3 20 12 12 21 20M12 4v16M3 12h18\"/>',\n learn:'<path d=\"M3 5.5c3-1.2 6-1.2 9 .6 3-1.8 6-1.8 9-.6V19c-3-1.2-6-1.2-9 .6-3-1.8-6-1.8-9-.6z\"/><path d=\"M12 6.1v13.5\"/><circle cx=\"17\" cy=\"10\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/>',\n analyze:'<path d=\"M3 5v14h18\"/><path d=\"M5.5 15.5 18.5 7.5\"/><circle cx=\"8.5\" cy=\"12.4\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"15.5\" cy=\"9.2\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M4.5 18.5h2.6M9.5 18.5h2.6M14.5 18.5h2.6\"/>',\n data:'<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"M3 9h18M9 9v11M15 9v11\"/><circle cx=\"6\" cy=\"13\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18\" cy=\"15.5\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/>',\n projects:'<rect x=\"3\" y=\"5\" width=\"9\" height=\"7\" rx=\"1.5\"/><rect x=\"12\" y=\"12\" width=\"9\" height=\"7\" rx=\"1.5\"/><path d=\"M7.5 12v3.5a2 2 0 0 0 2 2H12\"/><circle cx=\"7.5\" cy=\"8.5\" r=\"1.3\" fill=\"currentColor\" stroke=\"none\"/>',\n release:'<path d=\"M4 8.5 12 5l8 3.5V16l-8 4-8-4z\"/><path d=\"M4 8.5 12 12.5l8-4M12 12.5V20\"/>',\n burocracy:'<path d=\"M3 8a2 2 0 0 1 2-2h5l2 2h7a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"/><path d=\"M3.5 11h17\"/><path d=\"m8.5 15 2 2 4-4\"/>',\n novelty:'<path d=\"M10 3h7a2 2 0 0 1 2 2v9\"/><circle cx=\"9.5\" cy=\"14.5\" r=\"5.5\"/><path d=\"m13.6 18.6 4.4 4.4\"/><path d=\"m7.2 14.6 1.7 1.7 3.2-3.2\"/>',\n research:'<path d=\"M10 3v6L5.6 17a3.4 3.4 0 0 0 3 5h6.8a3.4 3.4 0 0 0 3-5L14 9V3\"/><path d=\"M8.5 3h7\"/><path d=\"M8.2 15h7.6\"/><ellipse cx=\"12\" cy=\"12\" rx=\"10\" ry=\"3.8\" transform=\"rotate(-16 12 12)\"/>'\n};\nfunction glifo(id){\n const inner=glifosProducto[id];\n if(inner===undefined)throw new Error(`glifo: id de icono desconocido: ${id}`);\n return `<svg class=\"icon\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" data-icono=\"${id}\">${inner}</svg>`;\n}\n\nfunction iconoAplicacion(id){const inner=glifosProducto[id];if(!inner)throw new Error(\"Aplicación desconocida: \"+id);return `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\"><defs><linearGradient id=\"mineral\" x2=\"1\" y2=\"1\"><stop stop-color=\"#fdfdfb\"/><stop offset=\"1\" stop-color=\"#dce7df\"/></linearGradient></defs><rect x=\"3\" y=\"3\" width=\"122\" height=\"122\" rx=\"30\" fill=\"url(#mineral)\" stroke=\"#bdcec3\"/><path d=\"M30 4h68c14 0 26 12 26 26v7\" fill=\"none\" stroke=\"#fff\" stroke-width=\"2\"/><g transform=\"translate(28 28) scale(3)\" fill=\"none\" stroke=\"#225747\" stroke-width=\"1.35\" stroke-linecap=\"round\" stroke-linejoin=\"round\">${inner}</g></svg>`;}\n\n// El SVG es local y conserva su significado en una pestaña o acceso instalado.\nfunction aplicarIconoAplicacion(doc,id){\n if(!doc?.head||!glifosProducto[id])return;\n let enlace=doc.querySelector('link[rel=\"icon\"]');\n if(!enlace){enlace=doc.createElement('link');enlace.rel='icon';doc.head.append(enlace);}\n enlace.type='image/svg+xml';enlace.href='data:image/svg+xml,'+encodeURIComponent(iconoAplicacion(id));\n}\n\n// Acento personal de Erlen y tema claro/oscuro/sistema. El CSS del portal y el paquete comparten\n// estos nombres; cada uno fija colores legibles en claro y oscuro sin recolorear a Mey ni los\n// documentos. Importarlo una vez desde la app junto a tokens.css: aplica las preferencias al\n// cargar y las sincroniza entre pestañas del mismo origen. Claves de almacenamiento y respaldo en\n// memoria cuando el almacenamiento está bloqueado: nunca falla ni pide permisos. El tema escribe\n// data-theme en <html> y lo resuelven los tokens existentes (tokens.css); no se crea ningún\n// almacenamiento sincronizado entre orígenes. La clave del tema es opt-in: mientras la app no\n// guarde una preferencia con guardarTema, este módulo no toca data-theme y el tema sigue siendo\n// de la app (muchas ya escriben data-theme desde su propio almacén).\nconst coloresErlen=['verde','violeta','azul','cobre','platino'];\nconst temasErlen=['sistema','claro','oscuro'];\n// Materiales opcionales del cromo. Original no añade ningún atributo ni cambia el tema,\n// la paleta o el contenido. Los nombres son también el catálogo de los controles.\nconst estilosErlen=[\n {id:'original',nombre:'Original'},\n {id:'glassmorfismo',nombre:'Glassmorfismo'},\n {id:'neumorfismo',nombre:'Neumorfismo'},\n {id:'neobrutalismo',nombre:'Neobrutalismo'},\n {id:'minimalismo',nombre:'Minimalismo'},\n {id:'art-deco',nombre:'Art déco'},\n {id:'claymorfismo',nombre:'Claymorfismo'},\n {id:'bauhaus',nombre:'Bauhaus'},\n {id:'frutiger-aero',nombre:'Frutiger Aero'},\n {id:'esqueuomorfismo',nombre:'Esqueuomorfismo'},\n {id:'retro-digital',nombre:'Retro digital'},\n {id:'y2k',nombre:'Y2K'},\n {id:'cyberpunk',nombre:'Cyberpunk'},\n {id:'blueprint',nombre:'Blueprint'}\n];\nconst clave='erlen-color';\nconst claveTema='erlen-tema';\nconst claveEstilo='erlen-estilo';\n// Los IIFE de menú, marco y color pueden coexistir: comparten el respaldo y un solo\n// listener por ventana, incluso con localStorage bloqueado.\nconst memoriaEstilo=Symbol.for('erlen.estilo.memoria');\nconst escuchaColor=Symbol.for('erlen.color.escucha');\nconst respaldo=Symbol.for('erlen.color.memoria');\nconst respaldoTema=Symbol.for('erlen.tema.memoria');\n\nconst erlenColor={\n estilos:estilosErlen,\n leer(ventana){\n  if(ventana?.[respaldo])return ventana[respaldo];\n  try{\n   const almacen=ventana?.localStorage;\n   if(almacen){const valor=almacen.getItem(clave);return coloresErlen.includes(valor)?valor:'verde';}\n  }catch{}\n  return 'verde';\n },\n aplicar(ventana){\n  const color=this.leer(ventana);\n  if(color==='verde')delete ventana.document.documentElement.dataset.erlenColor;\n  else ventana.document.documentElement.dataset.erlenColor=color;\n  return color;\n },\n guardar(ventana,color){\n  if(!coloresErlen.includes(color))throw new Error('erlen: color desconocido: '+color);\n  try{ventana.localStorage.setItem(clave,color);delete ventana[respaldo];}\n  catch{ventana[respaldo]=color;}\n  this.aplicar(ventana);\n  ventana.dispatchEvent(new ventana.Event('erlen-color'));\n },\n leerTema(ventana){\n  // Preferencia compartida guardada, o null si la app aún no usa esta clave: en ese caso el\n  // tema lo sigue resolviendo la propia app y este módulo no toca data-theme.\n  if(ventana?.[respaldoTema])return ventana[respaldoTema];\n  try{\n   const almacen=ventana?.localStorage;\n   if(almacen){const valor=almacen.getItem(claveTema);return valor===null?null:(temasErlen.includes(valor)?valor:null);}\n  }catch{}\n  return null;\n },\n aplicarTema(ventana){\n  const tema=this.leerTema(ventana);\n  if(tema===null)return null;\n  if(tema==='sistema')delete ventana.document.documentElement.dataset.theme;\n  else ventana.document.documentElement.dataset.theme=tema==='claro'?'light':'dark';\n  return tema;\n },\n guardarTema(ventana,tema){\n  if(!temasErlen.includes(tema))throw new Error('erlen: tema desconocido: '+tema);\n  try{ventana.localStorage.setItem(claveTema,tema);delete ventana[respaldoTema];}\n  catch{ventana[respaldoTema]=tema;}\n  this.aplicarTema(ventana);\n  ventana.dispatchEvent(new ventana.Event('erlen-tema'));\n },\n leerEstilo(ventana){\n  let valor;\n  try{valor=ventana?.localStorage?.getItem(claveEstilo);}catch{}\n  valor=ventana?.[memoriaEstilo]??valor;\n  return estilosErlen.some(estilo=>estilo.id===valor)?valor:'original';\n },\n aplicarEstilo(ventana){\n  const estilo=this.leerEstilo(ventana);\n  const raiz=ventana?.document?.documentElement;\n  if(raiz){\n   if(estilo==='original')delete raiz.dataset.erlenEstilo;\n   else raiz.dataset.erlenEstilo=estilo;\n  }\n  return estilo;\n },\n guardarEstilo(ventana,estilo){\n  if(!estilosErlen.some(opcion=>opcion.id===estilo))throw new Error('erlen: estilo desconocido: '+estilo);\n  try{ventana.localStorage.setItem(claveEstilo,estilo);delete ventana[memoriaEstilo];}\n  catch{ventana[memoriaEstilo]=estilo;}\n  this.aplicarEstilo(ventana);\n  ventana.dispatchEvent(new ventana.Event('erlen-estilo'));\n }\n};\n\nif(typeof window!=='undefined'){\n erlenColor.aplicar(window);\n erlenColor.aplicarTema(window);\n erlenColor.aplicarEstilo(window);\n if(!window[escuchaColor]){\n window[escuchaColor]=true;\n window.addEventListener('storage',evento=>{\n  if(evento.key===clave||evento.key===null){delete window[respaldo];erlenColor.aplicar(window);window.dispatchEvent(new Event('erlen-color'));}\n  if(evento.key===claveTema||evento.key===null){delete window[respaldoTema];erlenColor.aplicarTema(window);window.dispatchEvent(new Event('erlen-tema'));}\n  if(evento.key===claveEstilo||evento.key===null){\n   delete window[memoriaEstilo];\n   erlenColor.aplicarEstilo(window);window.dispatchEvent(new Event('erlen-estilo'));\n  }\n });\n }\n}\n\n// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\n * of the Software, and to permit persons to whom the Software is furnished to do\n * so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n// Fuente única del menú de suite: diseno/suite-nav.mjs (docs/DISENO-PAQUETE.md). Colores como var(--erlen-*, valor) de tokens.css; las custom properties atraviesan el shadow DOM.\n// Navegación explícita y preferencias locales de apariencia; sin transferencias ni peticiones.\nconst apps=[['slides','Slides'],['notes','Notes'],['lens','Lens'],['pentagrama','Pentagrama'],['documents','Documents'],['spreadsheets','Spreadsheets'],['figures','Figures'],['ftir','FTIR Studio'],['doe','DoE'],['xrd','XRD Studio'],['xps','XPS Studio'],['thermal','Thermal'],['methods','Methods'],['dft','DFT Studio'],['fem','FEM Studio'],['learn','Learn']];\nconst escapar=texto=>String(texto).replace(/[&<>\"]/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;'}[c]));\n// Misma validación que usa el menú: sin ella, un catálogo embebido mal formado pasaría la lectura\n// y luego haría fallar a mountSuiteNavigation en el arranque.\nfunction entradaValida(item,vistos){\n return !!item&&typeof item.id==='string'&&/^[a-z][a-z0-9-]*$/.test(item.id)&&typeof item.label==='string'&&!!item.label&&typeof item.href==='string'&&!!item.href&&!vistos.has(item.id);\n}\n// Catálogo de despliegue embebido por el build (<script type=\"application/json\" id=\"erlen-suite-catalog\">):\n// devuelve {items,home} o null si no está o no tiene esa forma — nunca lanza ni hace peticiones.\nfunction catalogoDe(doc){\n try{\n  const texto=doc?.getElementById?.('erlen-suite-catalog')?.textContent;\n  if(!texto)return null;\n  const dato=JSON.parse(texto);\n  if(!dato||!Array.isArray(dato.items)||!dato.items.length||!dato.home||typeof dato.home.href!=='string'||!dato.home.href)return null;\n  const vistos=new Set();\n  for(const item of dato.items){if(!entradaValida(item,vistos))return null;vistos.add(item.id);}\n  return {items:dato.items.map(({id,label,href})=>({id,label,href})),home:{id:dato.home.id||'portal',label:dato.home.label||'Inicio de Erlen',href:dato.home.href}};\n }catch{return null;}\n}\nfunction mountSuiteNavigation(parent,current,opciones={}){\n if(!parent)throw Error('Aplicación de la suite inválida.');\n // Catálogo explícito {items:[{id,label,href}],home:{href}} desde el build; sin él, la lista\n // histórica de la suite con rutas locales y la detección standalone de siempre.\n let entradas,home;\n if(opciones&&(opciones.items||opciones.home)){\n  if(!Array.isArray(opciones.items)||!opciones.items.length||!opciones.home||typeof opciones.home.href!=='string')throw Error('Aplicación de la suite inválida.');\n  const vistos=new Set();\n  entradas=opciones.items.map(item=>{\n   if(!item||typeof item.id!=='string'||!/^[a-z][a-z0-9-]*$/.test(item.id)||typeof item.label!=='string'||!item.label||typeof item.href!=='string'||!item.href||vistos.has(item.id))throw Error('Aplicación de la suite inválida.');\n   vistos.add(item.id);return [item.id,item.label,item.href];\n  });\n  home={href:opciones.home.href,label:opciones.home.label||'Inicio de Erlen'};\n }else{\n  entradas=apps.map(([id,label])=>[id,label,'/'+id+'/']);\n  home={href:'/',label:'Inicio de Erlen'};\n }\n const actual=entradas.find(([id])=>id===current);\n if(!actual)throw Error('Aplicación de la suite inválida.');\n // Standalone releases have no sibling apps. Do not create broken file/root links.\n const absoluta=/^[a-z][a-z0-9+.-]*:/i.test(actual[2]);\n if(!absoluta&&!parent.ownerDocument.defaultView.location.pathname.startsWith(actual[2]))return null;\n if(parent.querySelector('erlen-suite-nav'))return parent.querySelector('erlen-suite-nav');\n const doc=parent.ownerDocument,host=doc.createElement('erlen-suite-nav');\n const root=host.attachShadow({mode:'open'});\n const salida='<svg class=\"salida\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7 7h10v10M7 17 17 7\"/></svg>';\n const filas=Math.max(1,Math.ceil(entradas.length/2));\n const css=`\n:host{display:inline-block;font:14px/1.5 var(--erlen-font-ui,system-ui,sans-serif);color:var(--erlen-tinta,#243c32)}\n*{box-sizing:border-box}\nsummary{display:inline-flex;align-items:center;gap:8px;cursor:pointer;min-height:44px;padding:9px 14px 9px 16px;border:1px solid var(--erlen-vidrio-contorno,#c4d1bf);border-radius:var(--erlen-radio-capsula,7px);background:var(--erlen-superficie,#f7f9f3);box-shadow:inset 0 1px 0 var(--erlen-vidrio-borde,transparent),0 1px 2px var(--erlen-vidrio-contorno,transparent);list-style:none;font-weight:600}\nsummary:hover{border-color:var(--erlen-verde,#245b43)}\nsummary::-webkit-details-marker{display:none}\nsummary svg{width:16px;height:16px;transition:transform .18s ease}\ndetails[open] summary svg{transform:rotate(180deg)}\nsummary:focus-visible,a:focus-visible{outline:3px solid var(--erlen-foco,#94621e);outline-offset:3px}\nnav{display:none;position:fixed;z-index:2147483000;width:448px;max-width:calc(100vw - 24px);overflow:auto;background:var(--erlen-superficie,#fffefa);border:1px solid var(--erlen-vidrio-contorno,#c4d1bf);box-shadow:var(--erlen-vidrio-relieve,0 0 0 transparent),var(--erlen-sombra-menu,0 10px 28px #183b3226);border-radius:var(--erlen-radio-panel,18px);padding:12px}\ndetails[open] nav{display:block}\na{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;color:var(--erlen-verde,#245b43);text-decoration:none;border-radius:var(--erlen-radio-capsula,8px)}\na:hover,a:focus-visible{background:var(--erlen-verde-suave,#e9f0e2)}\na[aria-current]{font-weight:700;background:var(--erlen-verde-suave,#e9f0e2)}\n.salida{width:16px;height:16px;flex:none;margin-left:auto}\n.apps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(${filas},auto);grid-auto-flow:column;gap:2px 8px}\n.home{border-bottom:1px solid var(--erlen-linea,#dbe2d8);border-radius:0;margin-bottom:8px}\nsmall{display:block;margin-top:8px;padding:8px 12px;border-top:1px solid var(--erlen-linea,#dbe2d8);font-size:12px;line-height:1.5;color:var(--erlen-tinta-suave,#53644d)}\n.oculto{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n.apariencia{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:8px;padding:12px;border-top:1px solid var(--erlen-linea,#dbe2d8)}\n.apariencia label{display:grid;gap:4px;min-width:0;font-size:12px}\n.apariencia .estilo{grid-column:1/-1}\n.apariencia select,.apariencia button{width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid var(--erlen-linea-fuerte,#c4d1bf);border-radius:var(--erlen-radio-campo,8px);background:var(--erlen-superficie,#fffefa);color:var(--erlen-tinta,#243c32);font:inherit}\n.apariencia button{grid-column:1/-1;cursor:pointer;font-size:12px}\n.apariencia button:disabled{cursor:default;opacity:.6}\n.apariencia :focus-visible{outline:3px solid var(--erlen-foco,#94621e);outline-offset:2px}\n@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){nav{background:var(--erlen-vidrio-fuerte,color-mix(in srgb,var(--erlen-superficie,#fffefa) 94%,transparent));-webkit-backdrop-filter:var(--erlen-vidrio-filtro,blur(18px) saturate(115%));backdrop-filter:var(--erlen-vidrio-filtro,blur(18px) saturate(115%))}}\n@media (prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active){nav{background:var(--erlen-superficie,#fffefa);-webkit-backdrop-filter:none;backdrop-filter:none}}\n@media (max-width:540px){.apps{display:block}}\n@media (prefers-reduced-motion:reduce){summary svg{transition:none}}\n@media print{nav{display:none!important;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}}\n`;\n // Hoja construible: el CSSOM no cuenta como estilo inline y sigue funcionando bajo una CSP con\n // style-src 'self' (Lens y Learn); un <style> dentro del shadow root la incumpliría y el menú\n // saldría sin estilos. Sin hojas construibles (navegadores antiguos, jsdom) se usa el <style>.\n let hoja=null;\n try{const Hoja=doc.defaultView.CSSStyleSheet;if(Hoja&&'adoptedStyleSheets' in root){hoja=new Hoja();hoja.replaceSync(css);}}catch{hoja=null;}\n root.innerHTML=(hoja?'':`<style>${css}</style>`)+`<details><summary aria-label=\"Cambiar de aplicación de Erlen\">Suite<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"/></svg></summary><nav aria-label=\"Aplicaciones Erlen\"><a class=\"home\" href=\"${escapar(home.href)}\" target=\"_blank\" rel=\"noopener\">${escapar(home.label)}${salida}<span class=\"oculto\">(se abre en otra pestaña)</span></a><div class=\"apps\">${entradas.map(([id,label,href])=>`<a href=\"${escapar(href)}\" ${id===current?'aria-current=\"page\"':'target=\"_blank\" rel=\"noopener\"'}>${escapar(label)}${id===current?' · actual':salida+'<span class=\"oculto\">(se abre en otra pestaña)</span>'}</a>`).join('')}</div><small>Las otras apps se abren en otra pestaña. Tu trabajo sigue aquí.</small></nav></details>`;\n if(hoja)root.adoptedStyleSheets=[hoja];\n const details=root.querySelector('details'),summary=root.querySelector('summary'),nav=root.querySelector('nav');\n // En el menú existente: no se añade una barra o un botón a la interfaz de trabajo.\n const win=doc.defaultView,panel=doc.createElement('section');\n panel.className='apariencia';panel.setAttribute('aria-label','Apariencia');\n const elegir=(nombre,opciones,clase)=>{\n  const etiqueta=doc.createElement('label');etiqueta.textContent=nombre;\n  if(clase)etiqueta.className=clase;\n  const select=doc.createElement('select');\n  for(const [valor,texto] of opciones){const opcion=doc.createElement('option');opcion.value=valor;opcion.textContent=texto;select.append(opcion);}\n  etiqueta.append(select);panel.append(etiqueta);return select;\n };\n const estilo=elegir('Estilo visual',estilosErlen.map(({id,nombre})=>[id,nombre]),'estilo');\n const color=elegir('Color de acento',[['verde','Jade'],['platino','Platino'],['azul','Hielo'],['violeta','Iris'],['cobre','Champagne']]);\n const tema=elegir('Luz',[['sistema','Según tu dispositivo'],['claro','Claro'],['oscuro','Oscuro']]);\n const restaurar=doc.createElement('button');restaurar.type='button';restaurar.textContent='Restaurar estilo original';panel.append(restaurar);nav.append(panel);\n const sincronizar=()=>{\n  estilo.value=erlenColor.leerEstilo(win);color.value=erlenColor.leer(win);tema.value=erlenColor.leerTema(win)||'sistema';\n  restaurar.disabled=estilo.value==='original';\n };\n estilo.addEventListener('change',()=>erlenColor.guardarEstilo(win,estilo.value));\n color.addEventListener('change',()=>erlenColor.guardar(win,color.value));\n tema.addEventListener('change',()=>erlenColor.guardarTema(win,tema.value));\n restaurar.addEventListener('click',()=>{erlenColor.guardarEstilo(win,'original');estilo.focus();});\n const eventos=['erlen-estilo','erlen-color','erlen-tema'];\n for(const evento of eventos)win.addEventListener(evento,sincronizar);\n erlenColor.aplicarEstilo(win);sincronizar();\n function position(){if(!details.open)return;const r=summary.getBoundingClientRect(),w=Math.min(448,doc.defaultView.innerWidth-24);nav.style.left=Math.max(12,Math.min(r.right-w,doc.defaultView.innerWidth-w-12))+'px';nav.style.top=Math.min(r.bottom+6,doc.defaultView.innerHeight-100)+'px';nav.style.maxHeight=Math.max(88,doc.defaultView.innerHeight-r.bottom-18)+'px';}\n details.addEventListener('toggle',position);\n root.addEventListener('keydown',e=>{if(e.key==='Escape'&&details.open){details.open=false;summary.focus();}});\n root.querySelector('[aria-current]').addEventListener('click',e=>{e.preventDefault();details.open=false;summary.focus();});\n const outside=e=>{if(!e.composedPath().includes(host))details.open=false;};\n const onScroll=()=>{if(!details.open)return;const r=summary.getBoundingClientRect();if(r.bottom<0||r.top>doc.defaultView.innerHeight)details.open=false;else position();};\n doc.addEventListener('pointerdown',outside);doc.defaultView.addEventListener('resize',position);doc.defaultView.addEventListener('scroll',onScroll,{passive:true});\n host.dispose=()=>{for(const evento of eventos)win.removeEventListener(evento,sincronizar);doc.removeEventListener('pointerdown',outside);doc.defaultView.removeEventListener('resize',position);doc.defaultView.removeEventListener('scroll',onScroll);host.remove();};\n parent.append(host);return host;\n}\n// Los IIFE devuelven solo mountSuiteNavigation: el lector de catálogo viaja como propiedad.\nmountSuiteNavigation.catalogoDe=catalogoDe;\n\n// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n/* Mey, la mascota de Erlen (docs/MARCA.md del portal), en pixel art. Fuente única de sus\n   poses: el portal genera con ella web/recursos/mey/*.svg y el favicon (herramientas/mey.mjs)\n   y las apps la usan para pintar a Mey en su interfaz (por ejemplo, en los estados vacíos de\n   diseno/suite-inicio.mjs). No importa nada: también se sirve como IIFE (const erlenMey).\n\n   mey('hola')                    → '<svg class=\"erlen-mey\" …>' decorativo (aria-hidden)\n   mey('pensando', {titulo:'…'})  → con role=\"img\" y <title>, si la pose informa por sí sola\n   mey('hola', {tile:true})       → el ícono: 16×16 sobre el tile violeta\n   mey.poses                      → ['hola', 'pensando', …]\n\n   Cada pose es una cuadrícula de 16×14 celdas. Leyenda: g vidrio · w líquido, brazos y patas\n   · e ojos y trazos en tinta · x acento · p papel · . vacío. El líquido sube por los\n   bordes del matraz como agua por capilaridad y se divide abajo en dos perneras: no es una boca.\n   Los colores son los de la marca, fijos en claro y en oscuro para distinguir el líquido\n   del vidrio. Se muestra en múltiplos de\n   16 px de ancho para que los píxeles salgan parejos. */\nconst COLOR_MEY={g:'#83d4ad',w:'#177451',e:'#18171b',x:'#59368b',p:'#fdfdfd',r:'#e4007c',n:'#f29d0a',a:'#94621e'};\n// Autorizado por el usuario el 2026-10-04: más colores para Mey, independientes del portal.\nconst PALETAS_MEY=Object.freeze({\n verde:Object.freeze({g:'#83d4ad',w:'#177451'}),\n violeta:Object.freeze({g:'#d9c8ef',w:'#59368b'}),\n azul:Object.freeze({g:'#b9dff5',w:'#205e94'}),\n cobre:Object.freeze({g:'#f2d0b9',w:'#864522'}),\n rosa:Object.freeze({g:'#f8bddc',w:'#a7005a'}),\n cempasuchil:Object.freeze({g:'#ffe0a3',w:'#9c5800'})\n});\nfunction coloresMey(color='verde'){\n if(!Object.hasOwn(PALETAS_MEY,color))throw new Error('mey: color desconocido: '+color);\n return {...COLOR_MEY,...PALETAS_MEY[color]};\n}\nconst TILE_MEY='#59368b';\nconst POSES_MEY={\n hola: `\n................\n................\n.....gggggg.....\n......gggg......\n......gggg......\n.....gggggg.....\n....gggggggg....\n....geggggeg.ww.\n...ggeggggeggw..\n...ggggggggggw..\n.wwwwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n pensando: `\n.............g..\n...........g....\n.....gggggg.....\n......gggg......\n......gggg......\n.....gggggg.....\n....ggeggge.....\n....ggegggeg....\n...gggggggggg...\n...ggggggggggw..\n.wwwwwwggwwwwww.\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n exito: `\n..............x.\n.x...gggggg..xxx\nxxx...gggg....x.\n.x....gggg......\n.....gggggg.....\n.w..gggggggg..w.\n..w.geggggeg.w..\n..wgegeggegegw..\n...gggggggggg...\n...wwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n.....w....w.....\n................`,\n aviso: `\n................\n..............w.\n.....gggggg..ww.\n......gggg......\n......gggg......\n.....geggeg.....\n....gggggggg....\n.w..geggggeg..w.\n.wwggeggggeggww.\n...gggggggggg...\n...wwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n dormido: `\n............xxx.\n.............x..\n.....gggggg.xxx.\n......gggg......\n......gggg......\n.....gggggg.....\n....gggggggg....\n....gggggggg....\n...geeggggeeg...\n...gggggggggg...\n...gggggggggg...\n.wwwwwwggwwwwww.\n...wwww..wwww...\n...www....www...`,\n\n leyendo: `\n................\n................\n.....gggggg.....\n......gggg......\n......gggg......\n.....gggggg.....\n....gggggggg....\n....gggggggg....\n...ggeggggegg...\n...ggeggggegg...\n.wxppppxxppppxw.\n..xxxxxxxxxxxx..\n...wwww..wwww...\n....ww....ww....`,\n midiendo: `\n............xxx.\n............xpx.\n.....gggggg.xpx.\n......gggg..xpx.\n......gggg..xpx.\n.....gggggg.xxx.\n....ggegggeg.x..\n....ggegggeg.w..\n...ggggggggggw..\n...gggggggggg...\n.wwwwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`,\n graficando: `\n................\n...........e....\n.....gggggge.x..\n......gggg.e.x..\n......gggg.ewxw.\n.....ggggggewxw.\n....gggggggeeeee\n....geggggeg..w.\n...ggeggggeggw..\n...gggggggggg...\n.wwwwwwggwwww...\n...wwwwwwwwww...\n...wwww..wwww...\n....ww....ww....`\n};\n\n/* La cuadrícula de trabajo lleva ALTO_MEY filas libres encima de la pose (16×18): ahí caben el\n   sombrero de charro, el papel picado y las burbujas. Si nada las ocupa, el SVG sale a 16×14 y\n   es idéntico al de siempre. */\nconst ALTO_MEY=4;\nconst vacia=()=>Array(16).fill('.');\n\nfunction filasMey(pose){\n const arte=POSES_MEY[pose];\n if(arte===undefined)throw new Error('mey: pose desconocida: '+pose);\n return arte.trim().split('\\n').map(f=>f.split(''));\n}\n\nfunction celdasMey(filas,dy,colores=COLOR_MEY,material=false){\n let r='';\n filas.forEach((fila,y)=>{\n  if(fila.length!==16)throw new Error('mey: la fila '+y+' mide '+fila.length+', no 16');\n  for(let x=0;x<16;){\n   const c=fila[x];\n   if(c==='.'){x++;continue;}\n   if(!colores[c])throw new Error('mey: celda desconocida «'+c+'» en ('+x+','+y+')');\n   let n=1;\n   while(x+n<16&&colores[fila[x+n]]===colores[c])n++;\n   r+='<rect x=\"'+x+'\" y=\"'+(y+dy)+'\" width=\"'+n+'\" height=\"1\" fill=\"'+colores[c]+'\"'+(material?' data-mey-pigmento=\"'+c+'\"':'')+'/>';\n   x+=n;\n  }\n });\n return r;\n}\n\n// El contorno gana pasos conectados de 1/2 y 1/4 de celda en tamaños grandes.\n// El favicon de 16 px conserva la cuadrícula simple para no emborronarse.\nfunction detallesMey(filas,dy,colores=COLOR_MEY,material=false){\n let r='';\n const punto=(x,y,c,t=.5)=>{r+='<rect x=\"'+x+'\" y=\"'+(y+dy)+'\" width=\"'+t+'\" height=\"'+t+'\" fill=\"'+colores[c]+'\"'+(material?' data-mey-pigmento=\"'+c+'\"':'')+'/>';};\n // Capilaridad en tres alturas: junto al vidrio, en el cuerpo y en el centro.\n // No hay línea de tinta ni rasgos faciales nuevos.\n for(let y=ALTO_MEY+8;y<filas.length-2;y++){\n  if(filas[y].slice(3,13).join('')==='wwwwggwwww'&&filas[y+1].slice(3,13).every(c=>c==='w')){\n   for(const x of [3,3.5,12,12.5])if(filas[y-1][Math.floor(x)]==='g')punto(x,y-.5,'w');\n   for(const x of [7,7.5,8,8.5])punto(x,y+.5,'w');\n  }\n }\n // Transiciones de vidrio: cada escalón toca la fila anterior y la siguiente.\n // No se añaden reflejos en la cabeza ni fragmentos flotantes fuera de los brazos.\n for(let y=ALTO_MEY+2;y<ALTO_MEY+9;y++){\n  const bordes=f=>[f.findIndex(c=>c==='g'),f.lastIndexOf('g')];\n  const [izq,der]=bordes(filas[y]),[sigIzq,sigDer]=bordes(filas[y+1]);\n  if(izq>=3&&izq<=6&&sigIzq>=3&&sigIzq<=6){\n   if(sigIzq===izq-1){punto(izq-.25,y+.25,'g',.25);punto(izq-.5,y+.5,'g');}\n   if(sigIzq===izq+1){punto(sigIzq-.5,y+1,'g');punto(sigIzq-.25,y+1.5,'g',.25);}\n  }\n  if(der>=9&&der<=12&&sigDer>=9&&sigDer<=12){\n   if(sigDer===der+1){punto(der+1,y+.25,'g',.25);punto(der+1,y+.5,'g');}\n   if(sigDer===der-1){punto(sigDer+1,y+1,'g');punto(sigDer+1,y+1.5,'g',.25);}\n  }\n }\n return r;\n}\n\n// Contornos de regiones conectadas: elimina las divisiones entre píxeles y conserva\n// los huecos. Cada arte puede elegir una silueta angular o curvas continuas.\nfunction contornoMey(filas,acepta,dy=0,suave=false){\n const bordes=new Map(),clave=p=>p.join(','),hay=(x,y)=>!!filas[y]?.[x]&&acepta(filas[y][x],x,y);\n const agrega=(a,b)=>{const k=clave(a);if(!bordes.has(k))bordes.set(k,[]);bordes.get(k).push(b);};\n filas.forEach((fila,y)=>fila.forEach((c,x)=>{if(!acepta(c,x,y))return;\n  if(!hay(x,y-1))agrega([x,y],[x+1,y]);if(!hay(x+1,y))agrega([x+1,y],[x+1,y+1]);\n  if(!hay(x,y+1))agrega([x+1,y+1],[x,y+1]);if(!hay(x-1,y))agrega([x,y+1],[x,y]);\n }));\n const punto=p=>Number(p[0].toFixed(2))+','+Number((p[1]+dy).toFixed(2)),rutas=[];\n while(bordes.size){\n  const inicio=bordes.keys().next().value.split(',').map(Number),poligono=[inicio];let actual=inicio,previa=[inicio[0]-1,inicio[1]];\n  do{\n   const k=clave(actual),opciones=bordes.get(k);if(!opciones?.length)break;\n   const dx=actual[0]-previa[0],dy0=actual[1]-previa[1],prioridad=b=>{const ex=b[0]-actual[0],ey=b[1]-actual[1];return dx*ey-dy0*ex===1?3:dx*ex+dy0*ey===1?2:dx*ey-dy0*ex===-1?1:0;};\n   opciones.sort((a,b)=>prioridad(b)-prioridad(a));const siguiente=opciones.shift();if(!opciones.length)bordes.delete(k);\n   previa=actual;actual=siguiente;if(clave(actual)!==clave(inicio))poligono.push(actual);\n  }while(clave(actual)!==clave(inicio));\n  const vertices=poligono.filter((p,i)=>{const a=poligono[(i+poligono.length-1)%poligono.length],b=poligono[(i+1)%poligono.length];return(p[0]-a[0])*(b[1]-p[1])!==(p[1]-a[1])*(b[0]-p[0]);});\n  if(vertices.length<3)continue;\n  if(!suave){rutas.push('M'+vertices.map(punto).join('L')+'Z');continue;}\n  const esquinas=vertices.map((p,i)=>{const a=vertices[(i+vertices.length-1)%vertices.length],b=vertices[(i+1)%vertices.length],interp=q=>{const d=Math.hypot(q[0]-p[0],q[1]-p[1]),r=Math.min(.48,d/2);return[p[0]+(q[0]-p[0])*r/d,p[1]+(q[1]-p[1])*r/d];};return{antes:interp(a),p,despues:interp(b)};});\n  let d='M'+punto(esquinas[0].despues);for(let i=1;i<=esquinas.length;i++){const e=esquinas[i%esquinas.length];d+='L'+punto(e.antes)+'Q'+punto(e.p)+' '+punto(e.despues);}rutas.push(d+'Z');\n }\n return rutas.join('');\n}\n\nfunction ilustracionMey(filas,dy,colores){\n const texto=filas.map(f=>f.join('')).join('|')+Object.values(colores).join('|');let h=2166136261,k=5381;\n for(const c of texto){h=Math.imul(h^c.charCodeAt(0),16777619);k=Math.imul(k,33)^c.charCodeAt(0);}\n const id='mey-v'+(h>>>0).toString(36)+(k>>>0).toString(36),pigmentos=[...new Set(filas.flat().filter(c=>c!=='.'&&c!=='e'))];\n const cara=(c,x,y)=>c==='e'&&filas[y].slice(0,x).includes('g')&&filas[y].slice(x+1).includes('g');\n const cuerpo=(c,x,y)=>c==='g'||c==='w'||cara(c,x,y),contorno=contornoMey(filas,cuerpo,dy,true);\n let defs='<clipPath id=\"'+id+'-clip\"><path d=\"'+contorno+'\"/></clipPath>';\n for(const c of pigmentos)defs+='<linearGradient id=\"'+id+'-'+c+'\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\"><stop class=\"mey-material-luz\" offset=\"0\" stop-color=\"'+colores[c]+'\"/><stop offset=\".3\" stop-color=\"'+colores[c]+'\"/><stop offset=\".65\" stop-color=\"'+colores[c]+'\"/><stop class=\"mey-material-sombra\" offset=\"1\" stop-color=\"'+colores[c]+'\"/></linearGradient>';\n const adorno='<g class=\"mey-decoraciones\" clip-path=\"url(#'+id+'-clip)\">'+\n  '<g data-mey-decoracion=\"cristal\" display=\"none\"><path d=\"M2,-2L7,-2L0,16L-5,16ZM10,-2L11,-2L4,16L3,16Z\"/></g>'+\n  '<g data-mey-decoracion=\"aero\" display=\"none\"><circle cx=\"5.6\" cy=\"6.3\" r=\"1\"/><circle cx=\"10.9\" cy=\"9.7\" r=\".55\"/><path d=\"M4,4Q7,2 11,4\"/></g>'+\n  '<g data-mey-decoracion=\"deco\" display=\"none\"><path d=\"M8,14L2,5M8,14L5,3M8,14L8,2M8,14L11,3M8,14L14,5M2,12L8,5L14,12M3,13L8,7L13,13\"/></g>'+\n  '<g data-mey-decoracion=\"bauhaus\" display=\"none\"><circle cx=\"5\" cy=\"6\" r=\"1.8\"/><path d=\"M9,3L13,7L9,7Z\"/><path d=\"M3,11H13V13H3Z\"/></g>'+\n  '<g data-mey-decoracion=\"metal\" display=\"none\"><path d=\"M0,3L16,1V2L0,4ZM0,8L16,5V6L0,9ZM0,13L16,10V11L0,14Z\"/></g>'+\n  '<g data-mey-decoracion=\"circuito\" display=\"none\"><path d=\"M3,4H6V6H13M3,11H10V13H13M10,3V4H13M2,8H4M12,8H14\"/><circle cx=\"6\" cy=\"4\" r=\".35\"/><circle cx=\"10\" cy=\"11\" r=\".35\"/></g>'+\n  '<g data-mey-decoracion=\"plano\" display=\"none\"><path d=\"M0,3H16M0,6H16M0,9H16M0,12H16M4,-4V16M8,-4V16M12,-4V16M0,14L16,-2\"/></g>'+\n  '<g data-mey-decoracion=\"retro\" display=\"none\"><path d=\"M0,3H16M0,5H16M0,7H16M0,9H16M0,11H16M0,13H16\"/></g></g>';\n let variantes='';for(const suave of [false,true]){\n  let formas='<path class=\"mey-vector-contorno\" d=\"'+contornoMey(filas,cuerpo,dy,suave)+'\" fill=\"none\"/>';\n  for(const c of pigmentos){const region=(v,x,y)=>v===c||(c==='g'&&cara(v,x,y));formas+='<path data-mey-material=\"'+c+'\" d=\"'+contornoMey(filas,region,dy,suave)+'\" fill=\"url(#'+id+'-'+c+')\"/>';}\n  const ojos=contornoMey(filas,c=>c==='e',dy,suave);\n  variantes+='<g class=\"mey-vector\" data-mey-vector=\"'+(suave?'suave':'angular')+'\" display=\"none\">'+formas+adorno+'<path data-mey-material=\"e\" d=\"'+ojos+'\" fill=\"'+colores.e+'\"/></g>';\n }\n // Las referencias locales son deterministas por dibujo y paleta; nunca un contador global.\n return '<!--mey-arte-inicio--><g class=\"mey-ilustracion\" display=\"none\"><defs>'+defs+'</defs>'+variantes+'</g><!--mey-arte-fin-->';\n}\n\nfunction accesibleMey(opciones){\n const titulo=opciones.titulo?String(opciones.titulo).replace(/[&<>\"]/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;'}[c])):'';\n return titulo?'role=\"img\" aria-label=\"'+titulo+'\"><title>'+titulo+'</title>':'aria-hidden=\"true\" focusable=\"false\">';\n}\n\n/* filas: cuadrícula de trabajo de 18 filas. alto: true fuerza el lienzo de 16×18 (Mey viva, para\n   que no salte de tamaño cuando aparece el papel picado). */\nfunction svgMey(filas,pose,atuendo,opciones,alto){\n const color=opciones.color||'verde',colores=coloresMey(color);\n const arriba=alto||filas.slice(0,ALTO_MEY).some(f=>f.some(c=>c!=='.'));\n const vista=arriba?'0 -'+ALTO_MEY+' 16 '+(14+ALTO_MEY):'0 0 16 14';\n // Con opciones.celda, tamaño en píxeles enteros por celda (el pixel art no se emborrona).\n const tam=(opciones.celda?' width=\"'+16*opciones.celda+'\" height=\"'+(arriba?14+ALTO_MEY:14)*opciones.celda+'\"':'')+(opciones.estilo?' style=\"'+opciones.estilo+'\"':'');\n const celdas=arriba?celdasMey(filas,-ALTO_MEY,colores,true):celdasMey(filas.slice(ALTO_MEY),0,colores,true);\n const arte=ilustracionMey(arriba?filas:filas.slice(ALTO_MEY),arriba?-ALTO_MEY:0,colores);\n return '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"'+vista+'\"'+tam+' shape-rendering=\"crispEdges\" class=\"erlen-mey\" data-pose=\"'+pose+'\"'+(atuendo!=='ninguno'?' data-atuendo=\"'+atuendo+'\"':'')+(color!=='verde'?' data-color=\"'+color+'\"':'')+' '+accesibleMey(opciones)+celdas+(opciones.detalle!==false&&(!opciones.celda||opciones.celda>=2)?detallesMey(filas,arriba?-ALTO_MEY:0,colores,true):'')+arte+'</svg>';\n}\n\n/* ---------- Atuendos ----------\n   Mey se viste con un toque mexicano. Parte sin atuendo; los demás son\n   disfraces para ocasiones. Cada prenda se coloca buscando en la pose el tapón (corrida de 6\n   celdas de vidrio sobre un cuello de 4), el paso del cuello al cuerpo y los ojos, así sirve\n   para todas las poses. Solo pinta sobre vidrio o vacío: nunca tapa ojos ni utilería. */\nconst ATUENDOS_MEY=['rebozo','gala','charro','luchador','astronauta','cientifica','exploradora','artista','invierno','ninguno'];\nconst PAPEL_PICADO_MEY=['eeeeeeeeeeeeeeee','rrr.nnn.xxx.rrr.','r.r.n.n.x.x.r.r.','.r...n...x...r..'];\n\nfunction corridaMey(fila,patron=/g+/){const m=fila.join('').match(patron);return m?{a:m.index,b:m.index+m[0].length-1,n:m[0].length}:null;}\nfunction tapaMey(f){\n for(let y=0;y<f.length-1;y++){const c=corridaMey(f[y]),d=corridaMey(f[y+1]);if(c&&d&&c.n===6&&d.n===4&&d.a===c.a+1)return {y,a:c.a,b:c.b};}\n return null;\n}\nfunction cuelloMey(f,t){\n for(let y=t.y+1;y<f.length-1;y++){const c=corridaMey(f[y]),d=corridaMey(f[y+1],/[ge]+/);if(c&&d&&c.n===4&&d.n>=6&&d.a<c.a)return {y:y+1,a:c.a-1};}\n return null;\n}\n\n// Ojos «de cara»: tinta con vidrio a ambos lados en su fila (así los ejes del gráfico no cuentan).\nfunction caraMey(f,y0,y1){\n const celdas=[];\n for(let y=Math.max(0,y0);y<=Math.min(f.length-1,y1);y++){const s=f[y].join('');for(let x=0;x<16;x++)if(s[x]==='e'&&s.slice(0,x).includes('g')&&s.slice(x+1).includes('g'))celdas.push({x,y});}\n return celdas;\n}\n\nfunction vestirMey(f,atuendo,e,ojos){\n if(!atuendo||atuendo==='ninguno')return;\n if(!ATUENDOS_MEY.includes(atuendo))throw new Error('mey: atuendo desconocido: '+atuendo);\n const t=tapaMey(f);if(!t)return;\n const k=cuelloMey(f,t);\n const pon=(x,y,c,sobre)=>{if(f[y]&&x>=0&&x<16&&sobre.includes(f[y][x]))f[y][x]=c;};\n if((atuendo==='rebozo'||atuendo==='gala')&&k){\n  ['r','n','p','x','n','r'].forEach((c,i)=>pon(k.a+i,k.y,c,'g'));\n  pon(k.a+5,k.y+1,'r','g.');\n  pon(k.a+6,e.salto>0||e.saludo?k.y+1:k.y+2,'n','.');\n }\n if(atuendo==='gala'){\n  const cx=t.b+1,cy=t.y-1;\n  for(const [x,y] of [[cx,cy-1],[cx-1,cy],[cx+1,cy],[cx,cy+1]])pon(x,y,'n','.');\n  pon(cx,cy,'a','.');\n }\n if(atuendo==='charro'){\n  for(let x=t.a-3;x<=t.b+3;x++)pon(x,t.y-1,'e','.');\n  pon(t.a-1,t.y-1,'n','e');pon(t.b+1,t.y-1,'n','e');\n  pon(t.a-3,t.y-2,'e','.');pon(t.b+3,t.y-2,'e','.');\n  for(let x=t.a;x<=t.b;x++)pon(x,t.y-2,'n','.');\n  for(let x=t.a;x<=t.b;x++)pon(x,t.y-3,'e','.');\n  for(let x=t.a+1;x<=t.b-1;x++)pon(x,t.y-4,'e','.');\n  for(let x=t.a+2;x<=t.b-2;x++)pon(x,t.y-5,'e','.');\n  if(k){['r','r','n','n','r','r'].forEach((c,i)=>pon(k.a+i,k.y,c,'g'));pon(k.a,k.y+1,'r','g');pon(k.a+5,k.y+1,'r','g');}\n }\n if(atuendo==='luchador'&&k){\n  // Máscara de luchador: rosa mexicano del cuello a debajo de los ojos, ribete cempasúchil\n  // alrededor de cada ojo y franja blanca al centro de la frente.\n  const cara=caraMey(f,k.y,k.y+5);\n  const yb=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4,arriba=cara.length?Math.min(...cara.map(o=>o.y)):k.y+2;\n  const cercaDeOjo=(x,y)=>cara.some(o=>Math.abs(o.x-x)+Math.abs(o.y-y)===1);\n  for(let y=k.y;y<=yb;y++)for(let x=0;x<16;x++)if(f[y][x]==='g')f[y][x]=cercaDeOjo(x,y)?'n':(y<arriba&&(x===k.a+2||x===k.a+3)?'p':'r');\n }\n if(atuendo==='astronauta'){\n  // Aro de escafandra con borde violeta visible también sobre papel claro.\n  for(let x=t.a-1;x<=t.b+1;x++)pon(x,t.y-1,'x','.');\n  for(let y=t.y;y<=t.y+2;y++){\n   pon(t.a-2,y,'x','.');pon(t.b+2,y,'x','.');\n  }\n  if(k){pon(k.a,k.y,'p','g');pon(k.a+5,k.y,'p','g');pon(k.a-1,k.y+1,'x','g.');pon(k.a+6,k.y+1,'x','g.');}\n }\n if(atuendo==='cientifica'&&k){\n  pon(k.a,k.y,'x','g');pon(k.a+5,k.y,'x','g');\n  const cara=caraMey(f,k.y,k.y+5);\n  const debajo=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4;\n  for(let y=debajo;y<=debajo+2;y++){\n   for(let x=k.a-1;x<=k.a+1;x++)pon(x,y,'p','g');\n   for(let x=k.a+4;x<=k.a+6;x++)pon(x,y,'p','g');\n   pon(k.a-2,y,'x','g.');pon(k.a+7,y,'x','g.');\n  }\n  pon(k.a+2,debajo,'x','g');\n }\n if(atuendo==='exploradora'){\n  // Sombrero de campo de ala ancha, galón dorado y chaleco claro con bolsillos.\n  for(let x=t.a-2;x<=t.b+2;x++)pon(x,t.y-1,'x','.');\n  for(let x=t.a;x<=t.b;x++){pon(x,t.y-2,'n','.');pon(x,t.y-3,'x','.');}\n  if(k){\n   const cara=caraMey(f,k.y,k.y+5),debajo=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4;\n   for(let y=debajo;y<=debajo+1;y++)for(const x of [k.a-1,k.a,k.a+5,k.a+6])pon(x,y,'p','g');\n   pon(k.a,debajo+1,'n','p');pon(k.a+5,debajo+1,'n','p');\n  }\n }\n if(atuendo==='artista'){\n  // Boina ladeada, delantal violeta: la cara y el nivel del líquido quedan a la vista.\n  for(let x=t.a-1;x<=t.b+1;x++)pon(x,t.y-1,'r','.');\n  for(let x=t.a-2;x<=t.b;x++)pon(x,t.y-2,'r','.');\n  pon(t.a,t.y-3,'r','.');\n  if(k){\n   const cara=caraMey(f,k.y,k.y+5),debajo=cara.length?Math.max(...cara.map(o=>o.y))+1:k.y+4;\n   for(let y=debajo-3;y<debajo;y++){pon(k.a-1,y,'x','g');pon(k.a+6,y,'x','g');}\n   for(let y=debajo;y<=debajo+2;y++)for(let x=k.a;x<=k.a+5;x++)pon(x,y,'x','g');\n   pon(k.a+1,debajo,'p','x');pon(k.a+4,debajo,'p','x');\n   pon(k.a+2,debajo+1,'n','x');pon(k.a+3,debajo+1,'r','x');\n  }\n }\n if(atuendo==='invierno'){\n  // Gorro de punto con pompón y bufanda al cuello, sin cubrir los ojos.\n  for(let x=t.a-1;x<=t.b+1;x++)pon(x,t.y-1,x%2?'r':'x','.');\n  for(let x=t.a;x<=t.b;x++)pon(x,t.y-2,'x','.');\n  pon(t.a+2,t.y-3,'r','.');pon(t.a+3,t.y-3,'r','.');\n  if(k){\n   for(let x=k.a;x<=k.a+5;x++)pon(x,k.y,'p','g');\n   pon(k.a+1,k.y,'n','p');pon(k.a+4,k.y,'n','p');\n   for(let y=k.y+1;y<=k.y+3;y++)pon(k.a-1,y,'p','g.');\n   pon(k.a-1,k.y+4,'n','g.');\n  }\n }\n}\n\nfunction papelPicadoMey(f){PAPEL_PICADO_MEY.forEach((fila,y)=>{for(let x=0;x<16;x++)if(fila[x]!=='.'&&f[y][x]==='.')f[y][x]=fila[x];});}\n\nfunction mey(pose='hola',opciones={}){\n if(opciones.tile)return '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" class=\"erlen-mey\" data-pose=\"'+pose+'\" '+accesibleMey(opciones)+'<rect width=\"16\" height=\"16\" rx=\"3.5\" fill=\"'+TILE_MEY+'\"/><g shape-rendering=\"crispEdges\">'+celdasMey(filasMey(pose),1)+'</g></svg>';\n const atuendo=opciones.atuendo||'ninguno';\n const fiesta=pose==='exito'&&opciones.papelPicado!==false;\n return svgMey(cuadroMey(pose,{},atuendo,fiesta),pose,atuendo,opciones,false);\n}\nmey.poses=Object.keys(POSES_MEY);\nmey.atuendos=ATUENDOS_MEY;\nmey.colores=Object.freeze(Object.keys(PALETAS_MEY));\n/* El vestidor solo guarda el atuendo. No altera el favicon ni las poses semánticas de las apps.\n   Si localStorage está bloqueado, la elección dura hasta salir de esta página. */\nconst aparienciasEnMemoria=new WeakMap();\nmey.aparienciaLocal=function(ventana){\n const clave='erlen-mey-apariencia';\n return {\n  leer(){\n   try{const almacen=ventana?.localStorage;if(almacen){const valor=almacen.getItem(clave);return ATUENDOS_MEY.includes(valor)?valor:'ninguno';}}catch{}\n   return aparienciasEnMemoria.get(ventana)||'ninguno';\n  },\n  guardar(atuendo){\n   if(!ATUENDOS_MEY.includes(atuendo))throw new Error('mey: atuendo desconocido: '+atuendo);\n   aparienciasEnMemoria.set(ventana,atuendo);\n   try{ventana?.localStorage?.setItem(clave,atuendo);}catch{}\n   ventana?.dispatchEvent?.(new ventana.Event('erlen-mey-apariencia'));\n  }\n };\n};\n\n/* Color local independiente: conserva erlen-mey-apariencia como cadena de atuendo. */\nconst coloresEnMemoria=new WeakMap();\nmey.colorLocal=function(ventana){\n const clave='erlen-mey-color';\n return {\n  leer(){\n   try{const valor=ventana?.localStorage?.getItem(clave);if(valor!==null&&valor!==undefined)return mey.colores.includes(valor)?valor:'verde';}catch{}\n   return ventana?coloresEnMemoria.get(ventana)||'verde':'verde';\n  },\n  guardar(color){\n   coloresMey(color);\n   if(ventana)coloresEnMemoria.set(ventana,color);\n   try{ventana?.localStorage?.setItem(clave,color);}catch{}\n   if(ventana?.Event)ventana.dispatchEvent?.(new ventana.Event('erlen-mey-color'));\n  }\n };\n};\n\n/* Personalidad del movimiento, independiente del modelo de conversación y del atuendo.\n   Los perfiles sesgan decisiones; conservan el mazo completo y las pausas de accesibilidad. */\nconst PERSONALIDADES_MEY=Object.freeze({\n tranquila:Object.freeze({pausa:2.4,gesto:16000,pesos:Object.freeze({quieta:1.8,pensar:1.6,travesura:.4,jugar:.6,bailar:.5,pasear:.7}),preferidos:Object.freeze(['siesta','lectura','burbuja','idea','estatuas'])}),\n traviesa:Object.freeze({pausa:1,gesto:9000,pesos:Object.freeze({}),preferidos:Object.freeze(['inocente','confeti','escondidillas','pasolunar','rebeldia'])}),\n dramatica:Object.freeze({pausa:.85,gesto:6500,pesos:Object.freeze({travesura:1.5,bailar:1.5,jugar:1.3,pensar:.7}),preferidos:Object.freeze(['huelga','aplausos','berrinche','reverencia','teletransporte'])})\n});\nfunction perfilPersonalidadMey(nombre='traviesa'){\n if(!Object.hasOwn(PERSONALIDADES_MEY,nombre))throw new Error('mey: personalidad desconocida: '+nombre);\n return PERSONALIDADES_MEY[nombre];\n}\nmey.personalidades=Object.freeze(Object.keys(PERSONALIDADES_MEY));\nconst personalidadesEnMemoria=new WeakMap();\nconst personalidadesSinGuardar=new WeakSet();\nmey.personalidadLocal=function(ventana){\n const clave='erlen-mey-personalidad';\n return {\n  leer(){\n   if(ventana&&personalidadesSinGuardar.has(ventana))return personalidadesEnMemoria.get(ventana)||'traviesa';\n   try{const valor=ventana?.localStorage?.getItem(clave);if(valor!==null&&valor!==undefined)return mey.personalidades.includes(valor)?valor:'traviesa';}catch{}\n   return ventana?personalidadesEnMemoria.get(ventana)||'traviesa':'traviesa';\n  },\n  guardar(nombre){\n   perfilPersonalidadMey(nombre);\n   if(ventana)personalidadesEnMemoria.set(ventana,nombre);\n   try{ventana?.localStorage?.setItem(clave,nombre);if(ventana)personalidadesSinGuardar.delete(ventana);}\n   catch{if(ventana)personalidadesSinGuardar.add(ventana);}\n   if(ventana?.Event)ventana.dispatchEvent?.(new ventana.Event(clave));\n  }\n };\n};\n\n/* ---------- Mey viva ----------\n   Cada cuadro sale de la pose por transformaciones de la cuadrícula, no de dibujos aparte:\n   mirar (los ojos de 1×2 se mueven una celda dentro del vidrio), parpadear o guiñar (el ojo\n   pierde su celda de arriba), saltar (todo sube una fila), chapotear (se mueven las perneras),\n   saludar (la mano sube), soltar una burbuja por el cuello y, al celebrar, papel picado.\n   Pixel art de verdad: cambios de cuadro, sin interpolar. Filas en coordenadas de la pose. */\nconst CUADRO_MS=83;\nconst enCuadros=n=>n*CUADRO_MS;\nconst CHAPOTEO_MEY={hola:{izq:{12:'...wwwww.wwww...'},der:{12:'...wwww.wwwww...'}}};\nconst SALUDO_MEY={hola:{1:[[14,7,'.'],[14,6,'w']],2:[[14,7,'.'],[14,6,'w'],[14,5,'w']]}};\n\nfunction neutro(){\n return {\n  mirada:{dx:0,dy:0},parpadeo:false,salto:0,chapoteo:null,burbuja:null,saludo:false,\n  fiesta:false,caminando:0,sentada:false,ojos:null,inclinar:0,burbujas:null,\n  destello:null,seca:0,flotar:0,deCabeza:false,brazoIzq:0,brazoDer:1,agachar:0,estirar:0,cartel:false,confeti:0\n };\n}\n\nfunction ojosMey(filas){\n const ojos=[];\n for(let y=1;y<filas.length-1;y++)for(let x=0;x<16;x++)if(filas[y][x]==='e'&&filas[y+1][x]==='e'&&filas[y-1][x]!=='e')ojos.push({x,y});\n return ojos;\n}\n\nfunction ojosDeCara(filas){\n return ojosMey(filas).filter(({x,y})=>\n  filas[y].slice(0,x).includes('g')&&filas[y].slice(x+1).includes('g')\n );\n}\n\nfunction cuadroMey(pose,e={},atuendo,fiesta){\n const f=[...Array.from({length:ALTO_MEY},vacia),...filasMey(pose)];\n if(pose==='hola'){\n  if(e.brazoIzq===1){\n   f[10+ALTO_MEY][1]='.';f[10+ALTO_MEY][2]='.';\n   for(const [x,y] of [[2,9],[2,8],[2,7],[1,7]])f[y+ALTO_MEY][x]='w';\n  }else if(e.brazoIzq===2){\n   f[10+ALTO_MEY][1]='.';f[10+ALTO_MEY][2]='.';\n   for(const [x,y] of [[2,9],[2,8],[2,7],[1,6],[1,5]])f[y+ALTO_MEY][x]='w';\n  }\n  const der=e.saludo?1:(e.brazoDer??1);\n  if(der===0){\n   f[7+ALTO_MEY][13]='.';f[7+ALTO_MEY][14]='.';f[8+ALTO_MEY][13]='.';f[9+ALTO_MEY][13]='.';\n   f[10+ALTO_MEY][13]='w';f[10+ALTO_MEY][14]='w';\n  }\n }\n if(e.saludo)for(const [x,y,c] of SALUDO_MEY[pose]?.[e.saludo===true?1:e.saludo]||[])f[y+ALTO_MEY][x]=c;\n const ch=e.chapoteo&&CHAPOTEO_MEY[pose]?.[e.chapoteo];\n if(ch)for(const [y,fila] of Object.entries(ch))f[+y+ALTO_MEY]=fila.split('');\n // Evaporarse: las filas de líquido del cuerpo (6 celdas o más, sin las patas) se vuelven vidrio\n // de arriba abajo. El borde del líquido desaparece sin modificar la cara.\n if(e.seca){\n  // Solo dentro del cuerpo (el ancho de la fila de encima de las patas): los brazos no se evaporan.\n  const base=f[f.length-2],a=base.findIndex(c=>c!=='.'),b=15-[...base].reverse().findIndex(c=>c!=='.');\n  const filas=[];for(let y=ALTO_MEY;y<f.length-1;y++)if(f[y].filter(c=>c==='w').length>=6)filas.push(y);\n  for(const y of filas.slice(0,e.seca))for(let x=a;x<=b;x++)if(f[y][x]==='w')f[y][x]='g';\n }\n const ojos=ojosDeCara(f);\n if(e.mirada&&(e.mirada.dx||e.mirada.dy)){\n  const {dx,dy}=e.mirada;\n  const cabe=ojos.every(({x,y})=>[y+dy,y+dy+1].every(yy=>{const c=f[yy]?.[x+dx];return c==='g'||c==='e';}));\n  if(cabe){\n   for(const {x,y} of ojos){f[y][x]='g';f[y+1][x]='g';}\n   for(const o of ojos){o.x+=dx;o.y+=dy;f[o.y][o.x]='e';f[o.y+1][o.x]='e';}\n  }\n }\n if(e.parpadeo){\n  const orden=[...ojos].sort((a,b)=>a.x-b.x);\n  for(const [i,o] of orden.entries())if(e.parpadeo==='ambos'||(e.parpadeo==='guino'&&i===orden.length-1))f[o.y][o.x]='g';\n }else if(e.ojos==='grandes'){\n  // Sorpresa: cada ojo crece a 2×2 hacia el centro de la cara (sin comerse la pared del vidrio).\n  const centro=ojos.reduce((s,o)=>s+o.x,0)/(ojos.length||1);\n  for(const o of ojos){const lado=o.x<centro?1:-1;for(const y of [o.y,o.y+1])if(f[y][o.x+lado]==='g')f[y][o.x+lado]='e';}\n }else if(e.ojos&&['cerrados','felices','guino'].includes(e.ojos)){\n  const cara=ojosDeCara(f);\n  if(cara.length){\n   const centro=cara.reduce((s,o)=>s+o.x,0)/cara.length;\n   const lista=e.ojos==='guino'?[[...cara].sort((a,b)=>b.x-a.x)[0]]:cara;\n   for(const {x,y} of lista){\n    const lado=x<centro?1:-1;\n    if(e.ojos==='felices'){\n     f[y+1][x]='g';f[y][x]='e';if(f[y][x+lado]==='g')f[y][x+lado]='e';\n    }else{\n     f[y][x]='g';f[y+1][x]='e';if(f[y+1][x+lado]==='g')f[y+1][x+lado]='e';\n    }\n   }\n  }\n }\n vestirMey(f,atuendo,e,ojos);\n const t=tapaMey(f);\n let nSalto=0;\n if(t){\n  const y=t.y+1;\n  const cuelloLimpio=f[y].every((c,x)=>x>=t.a+1&&x<=t.b-1?c==='g':c==='.');\n  if(cuelloLimpio){\n   if(e.agachar){f.splice(y,1);f.unshift(vacia());}\n   else if(e.estirar&&f[0].every(c=>c==='.')){f.splice(y,0,[...f[y]]);f.shift();}\n  }\n }\n const salto=e.salto===true?1:Math.min(3,Math.max(0,+e.salto||0));\n const libres=f.findIndex(fila=>fila.some(c=>c!=='.'));\n nSalto=Math.min(salto,libres<0?0:libres);\n // Inclinarse (tropiezo, mareo, estornudo): la cabeza y los hombros se corren una celda.\n if(e.inclinar){const n=Math.sign(e.inclinar);for(let y=0;y<ALTO_MEY+6;y++)f[y]=n>0?['.',...f[y].slice(0,15)]:[...f[y].slice(1),'.'];}\n if(fiesta||e.fiesta)papelPicadoMey(f);\n if(e.burbuja!==null&&e.burbuja!==undefined){\n  const y=ALTO_MEY+1-e.burbuja;\n  if(y>=0&&f[y][9]==='.')f[y][9]='g';\n }\n // Burbujas sueltas en coordenadas del lienzo de 16×18 y un destello (idea, burbuja que revienta).\n for(const [x,y] of e.burbujas||[])if(f[y]?.[x]==='.')f[y][x]='g';\n if(e.destello){const [x,y]=e.destello;for(const [dx,dy,c] of [[0,0,'p'],[1,0,'x'],[-1,0,'x'],[0,1,'x'],[0,-1,'x']])if(f[y+dy]?.[x+dx]==='.')f[y+dy][x+dx]=c;}\n // Caminar: una pata se levanta en cada paso (se borra de la fila de abajo). Sentarse: patas\n // recogidas, el cuerpo baja una fila.\n if(e.caminando||e.sentada){\n  const y=f.map(fila=>fila.some(c=>c!=='.')).lastIndexOf(true);\n  if(y>=0){\n   // La fila de abajo son siempre las patas.\n   if(e.sentada){f.splice(y,1);f.unshift(vacia());}\n   else for(let x=0;x<16;x++)if(f[y][x]==='w'&&([1,3].includes(e.caminando)?x<8:x>=8))f[y][x]='.';\n   if(!e.sentada&&e.caminando>=3){const z=e.caminando===3?5:10;if(f[y-1][z]==='w')f[y][z]='w';}\n  }\n }\n if(nSalto>0){\n  f.splice(0,nSalto);\n  for(let i=0;i<nSalto;i++)f.push(vacia());\n }\n // Flotar: sube hasta ALTO_MEY filas (se le olvidó la gravedad).\n if(e.flotar){const n=Math.min(ALTO_MEY,e.flotar);f.splice(0,n);for(let i=0;i<n;i++)f.push(vacia());}\n // Utilería en la misma cuadrícula: el cartel queda encima de la cara, nunca sobre los ojos.\n if(e.cartel){\n  const no=['e..epeeee','ee.epe..e','e.eepe..e','e..epeeee'];\n  // Compensar el espejo del actor para que el texto siga diciendo NO hacia la izquierda.\n  for(let y=0;y<4;y++)for(let x=6;x<15;x++)f[y][x]=no[y][e.cartel==='espejo'?14-x:x-6]==='e'?'e':'p';\n  for(let y=4;y<12;y++)if(f[y][13]==='.')f[y][13]='a';\n }\n if(e.confeti){\n  const piezas=[[1,0,'r'],[4,1,'n'],[11,0,'x'],[14,2,'r'],[0,4,'x'],[15,5,'n']];\n  for(const [x,y,c] of piezas){const yy=y+e.confeti-1;if(f[yy]?.[x]==='.')f[yy][x]=c;}\n }\n return f;\n}\nmey.cuadro=(pose,estado={},atuendo='ninguno')=>cuadroMey(pose,{...neutro(),...estado},atuendo,false).map(f=>f.join('')).join('\\n');\n\n/* ---------- Mey en cada app: lugares y perfiles ----------\n   Un «lugar» es el tipo de espacio que la app le da a Mey. Fija la pose por defecto, cuánto se\n   mueve y entre qué tamaños elige (en píxeles por celda: el ancho es 16 celdas). El perfil de la\n   app pone la pose de «trabajo» (Notes lee, Spreadsheets mide, Figures grafica…). Así cada app\n   solo dice dónde va Mey y ella decide el resto; las mejoras de aquí llegan a todas. */\nconst LUGARES_MEY={\n bienvenida:{pose:'hola',energia:'completa',min:3,max:12,defecto:8},\n vacio:{pose:'dormido',energia:'completa',min:3,max:8,defecto:6},\n trabajo:{pose:null,energia:'calma',min:2,max:6,defecto:4},\n carga:{pose:'pensando',energia:'calma',min:2,max:6,defecto:4},\n exito:{pose:'exito',energia:'calma',min:2,max:8,defecto:4},\n error:{pose:'aviso',energia:'calma',min:2,max:8,defecto:4},\n barra:{pose:'hola',energia:'calma',min:1,max:3,defecto:2,eje:'alto'},\n // Recreo: un escenario ancho donde Mey juega (la portada del portal). Ver «Juegos» abajo.\n recreo:{pose:'hola',energia:'completa',min:3,max:5,defecto:4,juegos:true}\n};\nconst PERFILES_MEY={\n slides:{trabajo:'hola'},notes:{trabajo:'leyendo'},documents:{trabajo:'leyendo'},lens:{trabajo:'leyendo'},\n methods:{trabajo:'leyendo'},learn:{trabajo:'leyendo'},research:{trabajo:'leyendo'},novelty:{trabajo:'leyendo'},\n spreadsheets:{trabajo:'midiendo'},doe:{trabajo:'midiendo'},\n figures:{trabajo:'graficando'},ftir:{trabajo:'graficando'},xrd:{trabajo:'graficando'},xps:{trabajo:'graficando'},dft:{trabajo:'graficando'},fem:{trabajo:'graficando'},\n thermal:{trabajo:'midiendo'},\n rmn:{trabajo:'graficando'},\n pentagrama:{trabajo:'hola'},\n analyze:{trabajo:'graficando'},data:{trabajo:'midiendo'},projects:{trabajo:'leyendo'},release:{trabajo:'leyendo'},burocracy:{trabajo:'leyendo'},\n 'legacy-editor':{trabajo:'hola'},tunning:{trabajo:'midiendo'}\n};\n\n/* Resuelve qué Mey toca: {pose, atuendo, energia, min, max, defecto, eje}. Lo explícito gana a\n   lo del lugar, y lo del lugar a lo del perfil de la app. */\nmey.resolver=function({lugar='bienvenida',app,pose,atuendo}={}){\n const l=LUGARES_MEY[lugar];\n if(!l)throw new Error('mey: lugar desconocido: '+lugar);\n const perfil=PERFILES_MEY[app]||{};\n const final=pose||l.pose||perfil.trabajo||'hola';\n filasMey(final);\n return {lugar,pose:final,atuendo:atuendo||perfil.atuendo||'ninguno',energia:l.energia,min:l.min,max:l.max,defecto:l.defecto,eje:l.eje||'ancho',juegos:!!l.juegos};\n};\nmey.lugares=Object.keys(LUGARES_MEY);\nmey.perfiles=Object.keys(PERFILES_MEY);\n\n/* Píxeles por celda que caben en el espacio: el entero más grande dentro de [min, max]; sin\n   medida (0), el tamaño por defecto del lugar. */\nfunction celdaMey(espacio,filas,r){\n const c=Math.floor(espacio/(r.eje==='alto'?filas:16));\n return c>0?Math.max(r.min,Math.min(r.max,c)):r.defecto;\n}\n\n/* ---------- Juegos (lugar «recreo») ----------\n   En el recreo Mey no repite travesuras: juega. Cada juego es una escena cómica corta (una\n   siesta con ronquidos, las escondidillas, el hipo…) con lado, velocidad, disfraz y tiempos al\n   azar, así que ni el mismo juego sale igual dos veces. El orden sale de un mazo por persona:\n   mey.siguienteJuego no repite un juego hasta haberlos jugado todos, ni empieza una vuelta con\n   el último de la anterior. La memoria es {leer(), guardar(dato)}; mey.memoriaLocal(ventana) la\n   guarda en localStorage y, si no se puede, en memoria (nunca falla). */\nconst JUEGOS_MEY=['siesta','escondidillas','burbuja','probador','baile','hipo','mareo','carrera','estornudo','lectura','idea','estatuas','gransalto','resbalon','perseguida','gravedad','evaporacion','techo','pasolunar','berrinche','inocente','teletransporte','reverencia','rebeldia','huelga','aplausos','confeti'];\n\nfunction barajarMey(lista,azar){const a=[...lista];for(let i=a.length-1;i>0;i--){const j=Math.floor(azar()*(i+1));[a[i],a[j]]=[a[j],a[i]];}return a;}\n\nmey.siguienteJuego=function(memoria,azar=Math.random,nombres=JUEGOS_MEY,personalidad='traviesa'){\n const perfil=perfilPersonalidadMey(personalidad);\n let dato=null;try{dato=memoria?.leer?.();}catch{}\n const ultimo=nombres.includes(dato?.ultimo)?dato.ultimo:null;\n let vistos=Array.isArray(dato?.vistos)?dato.vistos.filter(n=>nombres.includes(n)):[];\n let quedan=nombres.filter(n=>!vistos.includes(n));\n if(!quedan.length){vistos=[];quedan=nombres.filter(n=>n!==ultimo||nombres.length===1);}\n const preferidos=quedan.filter(n=>perfil.preferidos.includes(n));\n const juego=barajarMey(preferidos.length&&azar()<.7?preferidos:quedan,azar)[0];\n try{memoria?.guardar?.({vistos:[...vistos,juego],ultimo:juego});}catch{}\n return juego;\n};\n\nmey.memoriaLocal=function(ventana,clave='erlen-mey-recreo'){\n let respaldo=null;\n return {\n  leer(){try{const v=ventana?.localStorage?.getItem(clave);if(v)return JSON.parse(v);}catch{}return respaldo;},\n  guardar(dato){respaldo=dato;try{ventana?.localStorage?.setItem(clave,JSON.stringify(dato));}catch{}}\n };\n};\n\n/* mey.mente: modelo puro de conducta (en segundos, sin DOM, reloj ni mutación). */\nconst clampMey=function(valor,min=0,max=1){\n const n=Number(valor);\n if(Number.isNaN(n))return min;\n return n<min?min:(n>max?max:n);\n};\n\nconst ENFRIAMIENTO_MENTE=Object.freeze({\n pasear:6,acercarse:15,curiosear:8,travesura:12,jugar:4,bostezar:60,dormir:90,estirarse:60,pensar:30,bailar:45,quieta:0\n});\n\nmey.mente={\n enfriamiento:ENFRIAMIENTO_MENTE,\n inicial(memoria={},hora=12){\n  const afectoVal=typeof memoria?.afecto==='number'?memoria.afecto:0.3;\n  const esNoche=hora<6||hora>=23;\n  return {\n   energia:0.8,\n   curiosidad:0.4,\n   aburrimiento:0.2,\n   afecto:clampMey(afectoVal,0,1),\n   sueno:clampMey(esNoche?0.5:0,0,1)\n  };\n },\n actualizar(imp={},s={},dt=0){\n  const inactividad=Number(s.inactividad)||0;\n  const cerca=!!s.cerca;\n  const estimulo=Number(s.estimulo)||0;\n  const caricia=!!s.caricia;\n  const durmiendo=!!s.durmiendo;\n  const hora=typeof s.hora==='number'?s.hora:12;\n\n  let aburrimiento=Number(imp.aburrimiento)||0;\n  aburrimiento+=inactividad>10?(dt/45):(-dt/20);\n\n  let curiosidad=Number(imp.curiosidad)||0;\n  if(estimulo>0){\n   curiosidad+=estimulo*0.3;\n  }else{\n   const paso=dt/30;\n   if(curiosidad<0.4)curiosidad=Math.min(0.4,curiosidad+paso);\n   else if(curiosidad>0.4)curiosidad=Math.max(0.4,curiosidad-paso);\n  }\n\n  let sueno=Number(imp.sueno)||0;\n  if(durmiendo){\n   sueno+=-dt/120;\n  }else{\n   if(inactividad>60)sueno+=dt/240;\n   else if(inactividad<5)sueno+=-dt/60;\n   if(hora<6||hora>=23)sueno+=dt/600;\n  }\n\n  let afecto=Number(imp.afecto)||0;\n  afecto+=(caricia?0.12:0)+(cerca?dt/40:0)-(dt/900);\n\n  sueno=clampMey(sueno,0,1);\n  const energia=clampMey(1-0.6*sueno,0,1);\n\n  return {\n   energia,\n   curiosidad:clampMey(curiosidad,0,1),\n   aburrimiento:clampMey(aburrimiento,0,1),\n   afecto:clampMey(afecto,0,1),\n   sueno\n  };\n },\n utilidad(nombre,imp={},s={}){\n  const energia=clampMey(imp.energia??0.8,0,1);\n  const curiosidad=clampMey(imp.curiosidad??0.4,0,1);\n  const aburrimiento=clampMey(imp.aburrimiento??0.2,0,1);\n  const afecto=clampMey(imp.afecto??0.3,0,1);\n  const sueno=clampMey(imp.sueno??0,0,1);\n\n  const paseo=!!s.paseo;\n  const juegos=!!s.juegos;\n  const punteroVisto=!!s.punteroVisto;\n  const distancia=Number(s.distancia)||0;\n  const novedad=!!s.novedad;\n  const quietaMucho=!!s.quietaMucho;\n  const escribiendo=!!s.escribiendo;\n  const inactividad=Number(s.inactividad)||0;\n\n  if(escribiendo&&['pasear','acercarse','travesura','jugar','bailar','estirarse'].includes(nombre)){\n   return 0;\n  }\n\n  let u=0;\n  switch(nombre){\n   case 'quieta':\n    u=0.35;\n    break;\n   case 'pasear':\n    u=paseo?(0.3+0.4*energia+0.3*curiosidad)*(1-sueno):0;\n    break;\n   case 'acercarse':\n    u=(paseo&&punteroVisto&&distancia>4)?(0.2+0.8*afecto+0.3*curiosidad):0;\n    break;\n   case 'curiosear':\n    u=novedad?(0.3+0.6*curiosidad):0;\n    break;\n   case 'travesura':\n    u=0.2+0.6*aburrimiento;\n    break;\n   case 'jugar':\n    u=juegos?(0.5+0.8*aburrimiento):0;\n    break;\n   case 'bostezar':\n    u=sueno>0.35?(0.9*sueno):0;\n    break;\n   case 'dormir':\n    u=(sueno>0.6&&inactividad>30)?((sueno-0.6)*3):0;\n    break;\n   case 'estirarse':\n    u=quietaMucho?(0.15+0.5*aburrimiento):0;\n    break;\n   case 'pensar':\n    u=0.15+0.3*curiosidad;\n    break;\n   case 'bailar':\n    u=(afecto>0.5&&energia>0.6)?(0.1+0.5*afecto):0;\n    break;\n   default:\n    u=0;\n  }\n  return u*(perfilPersonalidadMey(s.personalidad).pesos[nombre]??1);\n },\n elegir(nombres=[],imp={},s={},ultimaVez={},ahora=0,azar){\n  const candidatos=[];\n  for(const n of nombres){\n   const u=mey.mente.utilidad(n,imp,s);\n   const cd=ENFRIAMIENTO_MENTE[n]??0;\n   const tUltima=typeof ultimaVez?.[n]==='number'?ultimaVez[n]:-Infinity;\n   const transcurrido=ahora-tUltima;\n   const fraccion=cd>0?Math.max(0,1-(transcurrido/cd)):0;\n   const puntaje=u*(1-fraccion);\n   if(puntaje>0.05){\n    candidatos.push({nombre:n,puntaje,peso:puntaje*puntaje});\n   }\n  }\n  if(!candidatos.length)return 'quieta';\n  const r=Number(azar());\n  if(r<=0)return candidatos[0].nombre;\n  const suma=candidatos.reduce((acc,c)=>acc+c.peso,0);\n  if(suma<=0)return candidatos[0].nombre;\n  let objetivo=r*suma;\n  for(const c of candidatos){\n   objetivo-=c.peso;\n   if(objetivo<=0)return c.nombre;\n  }\n  return candidatos[candidatos.length-1].nombre;\n }\n};\n\nmey.memoriaConducta=function(ventana,clave='erlen-mey-conducta'){\n const POR_DEFECTO={visitas:0,ultima:0,afecto:0.3};\n let respaldo=null;\n return {\n  leer(){\n   try{\n    const v=ventana?.localStorage?.getItem(clave);\n    if(v){\n     const parseado=JSON.parse(v);\n     if(parseado&&typeof parseado==='object')return parseado;\n    }\n   }catch{}\n   return respaldo||{...POR_DEFECTO};\n  },\n  guardar(dato){\n   respaldo=dato;\n   try{\n    ventana?.localStorage?.setItem(clave,JSON.stringify(dato));\n   }catch{}\n  }\n };\n};\n\n/* mey.montar(host, {lugar, app, pose, atuendo, energia, celda, vivo, ventana, reloj, aleatorio,\n   fecha, memoria, memoriaConducta, personalidad})\n   pinta a Mey dentro de host (lienzo fijo de 16×18) y la anima según su energía:\n   - completa: latido de conducta, percepción de la página, paseos, juegos y reacciones al clic.\n   - calma: animación vital discreta; sin sensores de página, salvo eventos de la app.\n   - quieta: no se mueve.\n   Sin celda fija mide el host (ResizeObserver); por debajo de 3 px por celda baja a calma.\n   Con movimiento reducido, fuera de la vista, pestaña oculta o saveData no se mueve.\n   Los eventos de guardado se ignoran dormida y se limitan a uno por minuto; otros se deduplican en 3 s.\n   En «recreo», opciones.memoria recuerda los juegos vistos; opciones.juego fuerza el primero.\n   opciones.memoriaConducta conserva visitas y afecto; personalidad fija el carácter visual.\n   Devuelve pose(), atuendo(), reaccionar(), personalidad,\n   evento(), ajustar(), cuadro(), impulsos, conducta, memoria, celda, activa, juego y detener(). */\nmey.montar=function(host,opciones={}){\n const ventana=opciones.ventana||host.ownerDocument.defaultView;\n const doc=host.ownerDocument;\n const reloj=opciones.reloj||ventana;\n const azar=opciones.aleatorio||Math.random;\n const fecha=opciones.fecha||(()=>Date.now());\n const ahora=()=>+fecha();\n const memoriaConducta=opciones.memoriaConducta||mey.memoriaConducta(ventana);\n let memConducta=null;\n try{memConducta=memoriaConducta?.leer?.();}catch{}\n memConducta=memConducta&&typeof memConducta==='object'?{visitas:0,ultima:0,afecto:0.3,...memConducta}:{visitas:0,ultima:0,afecto:0.3};\n const visitasGuardadas=Number(memConducta.visitas),ultimaGuardada=Number(memConducta.ultima),afectoGuardado=Number(memConducta.afecto);\n const tFecha=fecha();\n const ultima=Number.isFinite(ultimaGuardada)&&ultimaGuardada>0?ultimaGuardada:0;\n const visitasPrevias=Number.isFinite(visitasGuardadas)?Math.max(0,Math.floor(visitasGuardadas)):0;\n const primeraVisita=visitasPrevias===0;\n const dias=ultima===0?0:Math.max(0,(tFecha-ultima)/86400000);\n const afectoInicial=clampMey((Number.isFinite(afectoGuardado)?afectoGuardado:0.3)-(ultima===0?0:dias*0.05),0.1,1);\n let visitas=visitasPrevias;\n if(ultima===0||tFecha-ultima>30*60*1000)visitas++;\n let memGuardada={visitas,ultima:tFecha,afecto:afectoInicial};\n try{memoriaConducta?.guardar?.({...memGuardada});}catch{}\n let imp=mey.mente.inicial({afecto:afectoInicial},new Date(tFecha).getHours());\n let ultimoAfectoPersistido=afectoInicial;\n let ultimaPersistencia=ahora();\n const apariencia=mey.aparienciaLocal(ventana);\n const colorLocal=mey.colorLocal(ventana);\n const personalidadLocal=mey.personalidadLocal(ventana);\n let personalidad=opciones.personalidad||personalidadLocal.leer();\n const perfil=()=>perfilPersonalidadMey(personalidad);\n perfil();\n const r=mey.resolver({...opciones,atuendo:opciones.atuendo||apariencia.leer()});\n const poseVigilia=r.pose==='dormido'?'hola':r.pose;\n const energiaPedida=opciones.energia||r.energia;\n if(!['completa','calma','quieta'].includes(energiaPedida))throw new Error('mey: energía desconocida: '+energiaPedida);\n const medir=()=>opciones.celda||celdaMey(r.eje==='alto'?host.clientHeight:host.clientWidth,14+ALTO_MEY,r);\n let celda=medir();\n const energia=()=>energiaPedida==='completa'&&celda<3?'calma':energiaPedida;\n const empiezaDurmiendo=r.lugar==='vacio'&&r.pose==='dormido'&&energia()==='completa';\n let durmiendo=empiezaDurmiendo;\n if(durmiendo)imp.sueno=Math.max(imp.sueno,0.7);\n let pose=r.pose,atuendo=r.atuendo;\n vestirMey(Array.from({length:18},vacia),atuendo,{},[]);\n // Paseo: con energía completa y un espacio más ancho que ella, Mey camina por él. x en píxeles\n // (múltiplo de la celda), rumbo 1 a la derecha y -1 a la izquierda (se voltea en espejo).\n let x=0,rumbo=1,punteroX=null;\n const holgura=()=>Math.max(0,Math.floor((host.clientWidth-16*celda)/celda))*celda;\n const conPaseo=()=>opciones.paseo!==false&&energia()==='completa'&&holgura()>=8*celda;\n let e=durmiendo?{...neutro(),sentada:true}:neutro();\n let pintado='',fijos=new Set(),escena=new Set(),activo=false,ultimoPuntero=-Infinity,ocupada=false,visible=true;\n const recreo=opciones.juegos??r.juegos;\n // La memoria de la persona y, si no guarda nada (bloqueada o de prueba), la de esta visita.\n const guardada=opciones.memoria||(recreo?mey.memoriaLocal(ventana):null);\n let deLaVisita=null;\n const memoria={leer(){let d=null;try{d=guardada?.leer?.();}catch{}return d||deLaVisita;},guardar(d){deLaVisita=d;try{guardada?.guardar?.(d);}catch{}}};\n let jugando=null,pendiente=null,jugados=0,ultimaReaccion=null,ultimoJuego=null,ultimoFinJuego=ahora(),finJuegoActual=null;\n let tPunteroPrev=0,distMeyPrev=0,distanciaPuntero=Infinity,velPuntero=0,dentroDesde=null,tienePunteroPrevio=false;\n let ultimaActividad=ahora(),ultimaCercana=-Infinity,ultimoSusto=-Infinity,ultimaTecla=-Infinity;\n let novedad=null,ultimaConductaMovimiento=ahora(),ultimaTravesura=null,conductaActual=durmiendo?'dormir':null,noAntesDe=0,ultimaVezConducta={};\n let saludoPresenciaRealizado=false,cariciaPendiente=false,historialClics=[],afectoAlIniciarRafaga=null,finMolesta=0,ultimoClic=-Infinity,finDormir=null;\n let guardadoEn=-Infinity,ultimoEvento={tipo:null,t:-Infinity};\n let ocultoDesde=null,enCarga=false,bienvenidaProgramada=false;\n // De cabeza (camina por el techo) es un espejo vertical del mismo dibujo.\n const estilo=()=>{const t=[];if(conPaseo())t.push('translateX('+x+'px)'+(rumbo<0?' scaleX(-1)':''));if(e.deCabeza)t.push('scaleY(-1)');return t.length?'display:block;transform:'+t.join(' '):'';};\n const pintar=()=>{\n  if(conPaseo()){if(!host.style.position)host.style.position='relative';host.style.overflow='hidden';}\n  const dibujo=e.cartel&&conPaseo()&&rumbo<0?{...e,cartel:'espejo'}:e;\n  const svg=svgMey(cuadroMey(pose,dibujo,atuendo,false),pose,atuendo,{...opciones,color:opciones.color||colorLocal.leer(),celda,detalle:true,estilo:estilo()},true);if(svg!==pintado){host.innerHTML=svg;pintado=svg;}\n };\n const poner=cambios=>{e={...e,...cambios};pintar();};\n const despues=(ms,fn,fijo=false)=>{\n  const conjunto=fijo?fijos:escena;\n  const id=reloj.setTimeout(()=>{\n   conjunto.delete(id);\n   if(activo)fn();\n  },ms);\n  conjunto.add(id);\n  return id;\n };\n const entre=(a,b)=>a+Math.floor(azar()*(b-a));\n // Un paso es [cuadros, cambios] o [cuadros, función] (cambia pose, lugar o disfraz entre cuadros).\n const secuencia=(pasos,fin)=>{\n  ocupada=true;let t=0;\n  for(const [c,cambios] of pasos){\n   t+=c;\n   despues(enCuadros(t),()=>typeof cambios==='function'?cambios():poner(cambios));\n  }\n  despues(enCuadros(t),()=>{ocupada=false;fin&&fin();});\n };\n const interrumpir=()=>{\n  for(const id of escena)reloj.clearTimeout(id);\n  escena.clear();\n  ocupada=false;\n  durmiendo=false;\n  jugando=null;\n  pendiente=null;\n  enCarga=false;\n  finDormir=null;\n  ultimoFinJuego=ahora();\n  e=neutro();\n  pose=poseVigilia;\n  finJuegoActual=null;\n  conductaActual=null;\n  pintar();\n };\n const brinco=(h=2)=>[\n  [0,{agachar:1}],\n  [2,{agachar:0,estirar:1,salto:Math.ceil(h/2)}],\n  [1,{estirar:0,salto:h}],\n  [3,{estirar:1,salto:Math.ceil(h/2)}],\n  [1,{estirar:0,salto:0,agachar:1}],\n  [2,{agachar:0}]\n ];\n const sentarse=()=>[[0,{agachar:1}],[2,{agachar:0,sentada:true}]];\n const levantarse=()=>[[0,{agachar:1,sentada:false}],[2,{agachar:0}]];\n const girar=nuevoRumbo=>[[0,{agachar:1}],[1,()=>{rumbo=typeof nuevoRumbo==='function'?nuevoRumbo():nuevoRumbo;pintar();}],[1,{agachar:0}]];\n const tropezar=()=>[\n  [0,{inclinar:1,ojos:'grandes',caminando:1}],\n  [1,{caminando:3,estirar:1}],\n  [1,{estirar:0,caminando:0,agachar:1}],\n  [1,{inclinar:0,agachar:0,sentada:true}],\n  [4,{ojos:null,mirada:{dx:-1,dy:0}}],\n  [3,{mirada:{dx:1,dy:0}}],\n  [3,{mirada:{dx:0,dy:0}}]\n ];\n const APLAUSO_ARRIBA={brazoIzq:2,brazoDer:1,saludo:2,estirar:1,agachar:0,ojos:'felices'};\n const APLAUSO_ABAJO={brazoIzq:0,brazoDer:0,saludo:false,estirar:0,agachar:1};\n const TRAVESURAS={\n  guino:[\n   [0,{parpadeo:'guino'}],\n   [1,{parpadeo:false,ojos:'guino'}],\n   [1,{inclinar:-1}],\n   [1,{brazoIzq:1}],\n   [2,{agachar:1}],\n   [1,{agachar:0,estirar:1,salto:1}],\n   [1,{estirar:0,brazoIzq:2}],\n   [2,{salto:0,agachar:1}],\n   [1,{agachar:0,brazoIzq:1}],\n   [2,{brazoIzq:0,inclinar:0}],\n   [1,{ojos:null,parpadeo:'guino'}],\n   [1,{parpadeo:false}]\n  ],\n  chapoteo:[\n   [0,{chapoteo:'izq'}],\n   [1,{chapoteo:null,agachar:1}],\n   [1,{chapoteo:'der',agachar:0}],\n   [1,{chapoteo:null,estirar:1}],\n   [1,{chapoteo:'izq',estirar:0}],\n   [1,{chapoteo:'der',ojos:'felices'}],\n   [1,{chapoteo:null,agachar:1}],\n   [1,{chapoteo:'izq',agachar:0}],\n   [1,{chapoteo:'der',estirar:1}],\n   [1,{chapoteo:null,estirar:0}],\n   [1,{chapoteo:'izq',brazoIzq:1}],\n   [1,{chapoteo:'der',brazoIzq:0,ojos:null}],\n   [1,{chapoteo:null}]\n  ],\n  burbuja:[\n   [0,{mirada:{dx:0,dy:-1}}],\n   [1,{estirar:1}],\n   [1,{estirar:0,burbuja:0}],\n   [2,{burbuja:1}],\n   [2,{burbuja:2}],\n   [2,{burbuja:3,ojos:'grandes'}],\n   [2,{burbuja:4}],\n   [2,{burbuja:5,ojos:null}],\n   [2,{burbuja:null,destello:[9,1]}],\n   [1,{destello:null,parpadeo:'ambos'}],\n   [1,{parpadeo:false,mirada:{dx:0,dy:0}}]\n  ],\n  saludo:[\n   [0,{ojos:'grandes',estirar:1}],\n   [2,{estirar:0,ojos:null,saludo:1}],\n   [1,{saludo:2,ojos:'felices'}],\n   [2,{saludo:1}],\n   [2,{saludo:2}],\n   [2,{saludo:1}],\n   [2,{saludo:2,inclinar:1}],\n   [2,{saludo:1,inclinar:0}],\n   [2,{saludo:2}],\n   [2,{saludo:false,agachar:1}],\n   [2,{agachar:0,ojos:null}]\n  ],\n  celebrar:[\n   ...brinco(2),\n   [0,()=>{pose='exito';poner({fiesta:true,ojos:'felices'});}],\n   [4,{salto:1}],\n   [2,{salto:0}],\n   [2,{salto:1}],\n   [2,{salto:0}],\n   [4,()=>{pose=poseVigilia;poner({fiesta:false,ojos:null});}]\n  ],\n  risa:[\n   [0,{ojos:'felices',agachar:1}],\n   [1,{agachar:0,estirar:1,chapoteo:'izq'}],\n   [1,{estirar:0,agachar:1,chapoteo:'der'}],\n   [1,{agachar:0,estirar:1,chapoteo:null}],\n   [1,{estirar:0,agachar:1,chapoteo:'izq'}],\n   [1,{agachar:0,estirar:1,chapoteo:'der'}],\n   [1,{estirar:0,agachar:1,chapoteo:null}],\n   [1,{agachar:0,estirar:1,chapoteo:'izq'}],\n   [1,{estirar:0,brazoIzq:1,chapoteo:null}],\n   [3,{brazoIzq:0,ojos:null}]\n  ],\n  sorpresa:[\n   [0,{ojos:'grandes',estirar:1,salto:1}],\n   [1,{salto:2}],\n   [1,{salto:1}],\n   [1,{salto:0,estirar:0,agachar:1}],\n   [2,{agachar:0}],\n   [5,{ojos:null}]\n  ],\n  cosquillas:[\n   [0,{ojos:'felices',inclinar:-1}],\n   [1,{inclinar:1,brazoIzq:1}],\n   [1,{inclinar:-1,brazoIzq:0,saludo:1}],\n   [1,{inclinar:1,saludo:false,brazoIzq:1}],\n   [1,{inclinar:-1,brazoIzq:2}],\n   [1,{inclinar:1,brazoIzq:0,saludo:2}],\n   [1,{inclinar:-1,saludo:false}],\n   [1,{inclinar:1,agachar:1}],\n   [1,{inclinar:-1,agachar:0,estirar:1}],\n   [1,{inclinar:1,estirar:0}],\n   [1,{inclinar:0,ojos:null}]\n  ],\n  bostezo:[\n   [0,{parpadeo:'ambos'}],\n   [2,{parpadeo:false,ojos:'cerrados'}],\n   [1,{estirar:1}],\n   [3,{brazoIzq:1}],\n   [3,{brazoIzq:2}],\n   [2,{brazoIzq:1,estirar:0,agachar:1}],\n   [2,{agachar:0,brazoIzq:0}],\n   [2,{ojos:null,parpadeo:'ambos'}],\n   [1,{parpadeo:false}],\n   [2,{parpadeo:'ambos'}],\n   [1,{parpadeo:false}]\n  ],\n  estirarse:[\n   [0,{agachar:1}],\n   [2,{agachar:0,estirar:1,ojos:'cerrados'}],\n   [1,{brazoIzq:1,saludo:1}],\n   [2,{brazoIzq:2,saludo:2}],\n   [4,{estirar:0,brazoIzq:1,saludo:1}],\n   [1,{agachar:1,brazoIzq:0,saludo:false}],\n   [2,{agachar:0,ojos:null}],\n   [2,{parpadeo:'ambos'}],\n   [1,{parpadeo:false}]\n  ],\n  aplauso:[\n   [0,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [1,APLAUSO_ABAJO],\n   [1,APLAUSO_ARRIBA],\n   [2,{brazoIzq:0,brazoDer:1,saludo:false,estirar:0,agachar:0,ojos:null}]\n  ],\n  pensar:[\n   [0,()=>{pose='pensando';pintar();}],\n   [3,{mirada:{dx:0,dy:-1}}],\n   [4,{mirada:{dx:1,dy:-1}}],\n   [4,{mirada:{dx:-1,dy:-1}}],\n   [3,{mirada:{dx:0,dy:-1},inclinar:1}],\n   [3,{inclinar:0,mirada:{dx:0,dy:0}}],\n   [2,{parpadeo:'ambos'}],\n   [1,{parpadeo:false}],\n   [2,()=>{pose=poseVigilia;pintar();}]\n  ],\n  preocupacion:[\n   [0,()=>{pose='aviso';pintar();}],\n   [1,{ojos:'grandes'}],\n   [1,{inclinar:-1}],\n   [1,{inclinar:1}],\n   [1,{inclinar:-1}],\n   [1,{inclinar:1}],\n   [2,{inclinar:0,mirada:{dx:-1,dy:0}}],\n   [2,{mirada:{dx:1,dy:0}}],\n   [2,{mirada:{dx:0,dy:0},ojos:null}],\n   [2,{agachar:1}],\n   [2,{agachar:0}],\n   [2,()=>{pose=poseVigilia;pintar();}]\n  ],\n  asentir:[\n   [0,{agachar:1}],\n   [1,{agachar:0,estirar:1}],\n   [1,{estirar:0,ojos:'felices'}],\n   [1,{agachar:1}],\n   [2,{agachar:0}],\n   [2,{ojos:null}]\n  ],\n  enojo:[\n   [0,()=>{pose='aviso';pintar();}],\n   [0,{ojos:'grandes',inclinar:-1}],\n   [1,{inclinar:1}],\n   [1,{inclinar:-1}],\n   [1,{inclinar:1}],\n   [1,{inclinar:-1}],\n   [2,{inclinar:0,ojos:null}],\n   [4,{agachar:1}],\n   [3,{agachar:0}],\n   [2,()=>{pose=poseVigilia;pintar();}]\n  ]\n };\n const despertar=fin=>{\n  if(!durmiendo){fin&&fin();return;}\n  const alDespertar=fin||finDormir;\n  interrumpir();\n  finDormir=null;\n  durmiendo=false;\n  pose=poseVigilia;\n  e=neutro();\n  pintar();\n  conductaActual='despertar';\n  secuencia(TRAVESURAS.sorpresa,()=>secuencia(TRAVESURAS.estirarse,()=>secuencia(TRAVESURAS.saludo,()=>{\n   conductaActual=null;\n   ultimaConductaMovimiento=ahora();\n   noAntesDe=ahora()+enCuadros(entre(24,72))*(2-imp.energia)*perfil().pausa;\n   alDespertar&&alDespertar();\n  })));\n };\n const alPuntero=ev=>{\n  const b=host.getBoundingClientRect();if(!b.width)return;\n  const tAhora=ahora(),estabaDormida=durmiendo;\n  ultimaActividad=tAhora;\n  const dentro=ev.clientY>=b.top&&ev.clientY<=b.bottom&&ev.clientX>=b.left&&ev.clientX<=b.right;\n  if(dentro){\n   if(dentroDesde===null)dentroDesde=tAhora;\n   punteroX=ev.clientX-b.left;\n  }else dentroDesde=null;\n  ultimoPuntero=tAhora;\n  const cx=b.left+(conPaseo()?x+8*celda:b.width/2),cy=b.top+b.height/2;\n  const distMey=Math.hypot(ev.clientX-cx,ev.clientY-cy);\n  distanciaPuntero=distMey;\n  if(distMey<=12*celda)ultimaCercana=tAhora;\n  if(!tienePunteroPrevio){\n   tienePunteroPrevio=true;tPunteroPrev=tAhora;distMeyPrev=distMey;\n  }else{\n   const dt=tAhora-tPunteroPrev;\n   if(dt>=8){\n    const instVel=((distMeyPrev-distMey)/dt)*1000;\n    velPuntero=velPuntero===0?instVel:0.5*velPuntero+0.5*instVel;\n    tPunteroPrev=tAhora;distMeyPrev=distMey;\n   }\n  }\n  if(distMey<=12*celda&&velPuntero>=1200&&imp.afecto<.6&&!estabaDormida&&!jugando&&tAhora-ultimoSusto>10000){\n   ultimoSusto=tAhora;\n   interrumpir();\n   conductaActual='susto';\n   const dir=ev.clientX>cx?-1:1,destRetiro=x+dir*entre(4,8)*celda;\n   secuencia(TRAVESURAS.sorpresa,()=>{\n    if(conPaseo())caminar(destRetiro,()=>{conductaActual=null;},{cuadros:1});\n    else conductaActual=null;\n   });\n   return;\n  }\n  if(estabaDormida&&distMey<=12*celda)despertar();\n  if(ocupada)return;\n  const dx=ev.clientX<cx-b.width*.6?-1:ev.clientX>cx+b.width*.6?1:0;\n  const dy=ev.clientY<cy-b.height*.6?-1:(ev.clientY>cy+b.height*.6?1:0);\n  const dxv=conPaseo()&&rumbo<0?-dx:dx;\n  if(dxv!==e.mirada.dx||dy!==e.mirada.dy)poner({mirada:{dx:dxv,dy}});\n };\n const celebrar=()=>{\n  if(!activo||ocupada)return;\n  ultimaReaccion='celebrar';\n  secuencia(TRAVESURAS.celebrar);\n };\n /* Camina hasta destino (px) alternando las patas. cuadros por paso, zancada en celdas, brinco (salta\n    a cada paso), libre (puede salir del escenario: se esconde tras el borde), sigilo (sin mover brazos)\n    y pausa() → cuadros que se queda congelada antes del siguiente paso (0 sigue). En el recreo es torpe:\n    a veces se tropieza a medio camino (y a veces hasta se cae sentada). Sin paseo llega en el acto. */\n const caminar=(destino,alLlegar,opts={})=>{\n  if(!conPaseo()){alLlegar&&alLlegar();return;}\n  const {\n   cuadros=2,\n   zancada=1,brinco=false,libre=false,sigilo=false,pausa=null,torpe=recreo,atras=false\n  } = opts;\n  const borde=libre?17*celda:0;\n  const meta=Math.max(-borde,Math.min(holgura()+borde,Math.round(destino/celda)*celda));\n  if(meta===x){alLlegar&&alLlegar();return;}\n  ocupada=true;\n  const nuevoRumbo=meta>x?1:-1;\n  const andar=()=>{\n   if(!activo)return;\n   ocupada=true;\n   const total=Math.ceil(Math.abs(meta-x)/(zancada*celda));\n   let tropiezo=torpe&&total>3&&azar()<.18?1+Math.floor(azar()*(total-2)):-1;\n   const paso=n=>{\n    if(!activo)return;\n    if(n===tropiezo){\n     tropiezo=-1;\n     secuencia(tropezar(),()=>{\n      ocupada=true;\n      if(azar()<.35){\n       secuencia(sentarse(),()=>{\n        ocupada=true;\n        despues(enCuadros(entre(7,12)),()=>secuencia(levantarse(),()=>paso(n)));\n       });\n      }else{\n       secuencia(levantarse(),()=>paso(n));\n      }\n     });\n     return;\n    }\n    const espera=pausa?pausa():0;\n    if(espera){\n     despues(enCuadros(espera),()=>paso(n));\n     return;\n    }\n    const dur=cuadros+(n===0||n>=total-2?1:0);\n    const A=Math.max(1,Math.floor(dur/2));\n    const B=dur-A;\n    poner({\n     caminando:n%2?3:4,\n     agachar:0,\n     brazoIzq:sigilo?0:(n%2?1:0),\n     sentada:false,\n     salto:brinco&&n%2===0?1:0,\n     estirar:brinco&&n%2===0?1:0\n    });\n    despues(enCuadros(A),()=>{\n     x=nuevoRumbo>0?Math.min(meta,x+zancada*celda):Math.max(meta,x-zancada*celda);\n     poner({\n      caminando:n%2?1:2,\n      agachar:brinco?1:0,\n      salto:0,\n      estirar:0\n     });\n     if(x!==meta){\n      despues(enCuadros(B),()=>paso(n+1));\n     }else{\n      despues(enCuadros(B),()=>{\n       poner({caminando:0,agachar:0,brazoIzq:0,salto:0,estirar:0});\n       ocupada=false;\n       alLlegar&&alLlegar();\n      });\n     }\n    });\n   };\n   paso(0);\n  };\n  const frente=atras?-nuevoRumbo:nuevoRumbo;\n  if(frente!==rumbo){\n   secuencia(girar(frente),andar);\n  }else{\n   andar();\n  }\n };\n /* ---------- Recreo: los juegos ----------\n    Cada juego tiene foto (cómo se ve quieta), inicio opcional (dónde y cómo la encuentras;\n    primero = la persona recién llega) y correr(fin). Las direcciones de la mirada y de inclinarse\n    son de Mey: al voltearse en espejo, el navegador las voltea con ella. */\n const uno=lista=>lista[Math.floor(azar()*lista.length)];\n const lado=()=>azar()<.5?-1:1;\n const fuera=s=>s<0?-17*celda:holgura()+17*celda;\n const asomo=s=>s<0?-9*celda:holgura()+9*celda;\n const alAzar=()=>Math.floor(azar()*(holgura()/celda+1))*celda;\n const aDistancia=n=>{const h=holgura(),d=n*celda,ops=[x+d,x-d].filter(v=>v>=0&&v<=h);return ops.length?uno(ops):(x>h/2?0:h);};\n const ponerX=(px,r)=>{x=px;if(r)rumbo=r;pintar();};\n const risa=()=>TRAVESURAS.risa;\n // Saluda; a veces con tanto entusiasmo que se va de lado y se cae sentada.\n const saludo=()=>[...TRAVESURAS.saludo,...(azar()<.2?tropezar():[])];\n const hipido=(t=0)=>[\n  [t,{agachar:1}],\n  [1,{agachar:0,estirar:1,salto:1,ojos:'grandes',burbujas:[[9,3]]}],\n  [1,{salto:0,estirar:0}],\n  [2,{ojos:null,burbujas:[[9,2]]}],\n  [2,{burbujas:[[9,1]]}],\n  [2,{burbujas:[[9,0]]}],\n  [2,{burbujas:null}]\n ];\n const fiesta=()=>[[0,()=>{pose='exito';poner({fiesta:true});}],[14,()=>{pose=poseVigilia;poner({fiesta:false});}]];\n // Sale corriendo por el borde más cercano (o aparece ya escondida al llegar).\n const esconderse=(primero,s,listo)=>{\n  if(!conPaseo())return listo();\n  if(primero){ponerX(fuera(s),-s);return listo();}\n  caminar(fuera(s),()=>secuencia(girar(-rumbo),listo),{cuadros:1,zancada:2,libre:true});\n };\n const cerca=()=>x>holgura()/2?1:-1;\n let lado0=1;\n const JUEGOS={\n  // La encuentras dormida y roncando burbujas; la despiertas acercándote (o se despierta sola).\n  siesta:{\n   foto:()=>({pose:'dormido',e:{sentada:true}}),\n   inicio(primero,listo){pose='dormido';if(primero&&conPaseo())x=alAzar();poner({sentada:true});listo();},\n   correr(fin){\n    const ronquidos=2+Math.floor(azar()*3);\n    const despertar=()=>{pose=poseVigilia;secuencia([[0,{burbuja:null,ojos:'grandes'}],...levantarse(),...brinco(2),[0,{mirada:{dx:-1,dy:0}}],[6,{mirada:{dx:1,dy:0}}],[5,{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}],...saludo()],fin);};\n    const roncar=k=>{\n     if(k>=ronquidos||ahora()-ultimoPuntero<1200)return despertar();\n     secuencia([[0,{burbuja:0}],[4,{burbuja:1}],[4,{burbuja:2}],[4,{burbuja:3}],[4,{burbuja:4}],[4,{burbuja:null}]],()=>despues(enCuadros(entre(4,11)),()=>roncar(k+1)));\n    };\n    roncar(0);\n   }\n  },\n  // Escondidillas: se asoma por un borde, se esconde y reaparece por el otro.\n  escondidillas:{\n   foto:()=>({pose:'hola',e:{mirada:{dx:1,dy:0}}}),\n   inicio(primero,listo){lado0=primero?lado():cerca();esconderse(primero,lado0,listo);},\n   correr(fin){\n    // Sin espacio para esconderse: juega «¿dónde está Mey?… ¡bu!» en su lugar.\n    if(!conPaseo()){\n     const pasos=[];for(let i=0,n=2+Math.floor(azar()*2);i<n;i++)pasos.push([i?entre(4,7):0,{parpadeo:'ambos',mirada:{dx:0,dy:0}}],[entre(8,16),{parpadeo:false,ojos:'grandes'}],...brinco(2),[5,{ojos:null,mirada:{dx:i%2?1:-1,dy:0}}],[4,{mirada:{dx:0,dy:0}}]);\n     return secuencia([...pasos,...saludo(),...risa()],fin);\n    }\n    const s=lado0,o=azar()<.7?-s:s;\n    secuencia([[0,()=>ponerX(asomo(s),-s)],[0,{mirada:{dx:1,dy:0}}],[entre(7,12),{mirada:{dx:0,dy:0},ojos:'grandes'}],[5,()=>{ponerX(fuera(s));poner({ojos:null});}],[entre(8,18),()=>ponerX(asomo(o),-o)],[0,{mirada:{dx:1,dy:-1}}],[entre(7,11),{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}]],\n     ()=>caminar(o<0?entre(4,24)*celda:holgura()-entre(4,24)*celda,()=>secuencia([...saludo(),...risa()],fin),{cuadros:1,zancada:2,libre:true,brinco:true}));\n   }\n  },\n  // Persigue una burbuja que suelta, la burbuja revienta y ella se queda chiquita.\n  burbuja:{\n   foto:()=>({pose:'hola',e:{burbujas:[[11,2],[13,0]],mirada:{dx:1,dy:0}}}),\n   correr(fin){\n    const volar=[[0,{mirada:{dx:0,dy:-1},burbujas:[[9,4]]}],[3,{burbujas:[[10,3]]}],[3,{burbujas:[[12,2]],mirada:{dx:1,dy:-1}}],[3,{burbujas:[[13,1]]}],[3,{burbujas:[[14,1]],mirada:{dx:1,dy:0}}]];\n    const reventar=[[0,{burbujas:[[14,0]]}],[3,{burbujas:null,destello:[14,1],ojos:'grandes',mirada:{dx:0,dy:0}}],[3,{destello:null}],[5,()=>{pose='aviso';poner({ojos:null});}],[11,()=>{pose=poseVigilia;pintar();}],...risa()];\n    secuencia(volar,()=>caminar(aDistancia(entre(8,24)),()=>secuencia(reventar,fin),{cuadros:entre(1,3),brinco:azar()<.5}));\n   }\n  },\n  // Probador: se cambia de disfraz de un brinco en otro y se queda con el que más le gusta.\n  probador:{\n   foto:()=>({pose:'hola',atuendo:uno(['gala','charro','luchador']),e:{parpadeo:'guino'}}),\n   correr(fin){\n    const lista=barajarMey(ATUENDOS_MEY.filter(a=>a!==atuendo&&a!=='ninguno'),azar);\n    const pasos=[];\n    for(const a of lista)pasos.push(...brinco(2),[0,()=>{atuendo=a;pintar();}],[entre(6,11),{mirada:{dx:uno([-1,1]),dy:0}}],[entre(4,7),{mirada:{dx:0,dy:0}}]);\n    const final=uno([...lista,'rebozo']);\n    pasos.push(...brinco(2),[0,()=>{atuendo=final;poner({parpadeo:'guino'});}],[4,{parpadeo:false}],...saludo());\n    secuencia(pasos,fin);\n   }\n  },\n  // Baile: pasos al azar sin repetir el anterior y papel picado al final.\n  baile:{\n   foto:()=>({pose:'exito',e:{fiesta:true}}),\n   correr(fin){\n    const movs=[()=>[[0,{chapoteo:'izq'}],[2,{chapoteo:'der'}],[2,{chapoteo:null}]],()=>brinco(2),()=>girar(()=>-rumbo),()=>[[0,{inclinar:1}],[2,{inclinar:-1}],[2,{inclinar:0}]],()=>saludo(),()=>[...brinco(2),[0,{parpadeo:'guino'}],[2,{parpadeo:false}]]];\n    const pasos=[],n=6+Math.floor(azar()*6);let previo=-1;\n    for(let i=0;i<n;i++){let k=Math.floor(azar()*movs.length);if(k===previo)k=(k+1)%movs.length;previo=k;const m=movs[k]();m[0][0]=i?entre(2,4):0;pasos.push(...m);}\n    secuencia([...pasos,...sentarse(),[0,{parpadeo:'ambos'}],...levantarse(),[0,{parpadeo:false,ojos:'grandes'}],[2,{ojos:null}],...saludo(),...fiesta()],fin);\n   }\n  },\n  // Hipo: brinquitos con burbuja y cara de «perdón».\n  hipo:{\n   foto:()=>({pose:'hola',e:{burbujas:[[9,2]],ojos:'grandes'}}),\n   correr(fin){\n    const pasos=[],n=3+Math.floor(azar()*3);\n    for(let i=0;i<n;i++)pasos.push(...hipido(i?entre(8,19):4),[0,{mirada:{dx:uno([-1,0,1]),dy:0}}]);\n    secuencia([...pasos,[6,{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}],...risa()],fin);\n   }\n  },\n  // Da vueltas cada vez más rápido, se marea, se sienta y sacude la cabeza.\n  mareo:{\n   foto:()=>({pose:'hola',e:{sentada:true,inclinar:uno([-1,1]),mirada:{dx:1,dy:-1}}}),\n   correr(fin){\n    const vueltas=6+Math.floor(azar()*5);\n    const marear=i=>{\n     if(i>=vueltas){\n      const circulo=[{dx:1,dy:0},{dx:1,dy:-1},{dx:0,dy:-1},{dx:-1,dy:-1},{dx:-1,dy:0},{dx:0,dy:0}],pasos=[];\n      for(let k=0;k<12;k++)pasos.push([2,{mirada:circulo[k%6],inclinar:k%4<2?1:-1}]);\n      return secuencia([...pasos,...sentarse(),[0,{inclinar:0,mirada:{dx:0,dy:0}}],[entre(14,24),{mirada:{dx:-1,dy:0}}],[2,{mirada:{dx:1,dy:0}}],[2,{mirada:{dx:-1,dy:0}}],[2,{mirada:{dx:0,dy:0}}],...levantarse(),[4,{parpadeo:'guino'}],[4,{parpadeo:false}]],fin);\n     }\n     const intervalo=Math.max(2,4-Math.floor(2*i/vueltas));\n     secuencia(girar(()=>-rumbo),()=>despues(enCuadros(intervalo-2),()=>marear(i+1)));\n    };\n    marear(0);\n   }\n  },\n  // Llega corriendo, se tropieza, se ríe de sí misma y saluda.\n  carrera:{\n   foto:()=>({pose:'hola',e:{sentada:true,ojos:'grandes'}}),\n   inicio(primero,listo){lado0=primero?lado():cerca();esconderse(primero,lado0,listo);},\n   correr(fin){\n    const tropiezo=[...tropezar(),...risa(),...levantarse(),...saludo()];\n    caminar(lado0<0?entre(6,30)*celda:holgura()-entre(6,30)*celda,()=>secuencia(tropiezo,fin),{cuadros:1,zancada:2,libre:true});\n   }\n  },\n  // Estornudo (a veces falsa alarma primero): ¡achú! de burbujas.\n  estornudo:{\n   foto:()=>({pose:'hola',e:{parpadeo:'ambos',inclinar:-1}}),\n   correr(fin){\n    const nube=()=>Array.from({length:5+Math.floor(azar()*4)},()=>[entre(1,15),entre(0,6)]);\n    const aguantar=[[0,{parpadeo:'ambos',inclinar:-1}],[entre(5,8),{inclinar:0}],[3,{inclinar:-1}]];\n    const falsa=azar()<.5?[[entre(6,10),{inclinar:0,parpadeo:false,ojos:'grandes'}],[entre(7,13),{ojos:null,mirada:{dx:0,dy:-1}}],[entre(6,11),{mirada:{dx:0,dy:0}}],[entre(4,8),{inclinar:-1,parpadeo:'ambos'}]]:[];\n    secuencia([...aguantar,...falsa],()=>despues(enCuadros(entre(4,7)),()=>{\n     const salto=brinco(2);\n     salto[0]=[0,{...salto[0][1],inclinar:1,parpadeo:false,ojos:'grandes',burbujas:nube()}];\n     secuencia(salto,()=>secuencia([[3,{burbujas:nube()}],[3,{burbujas:nube()}],[4,{burbujas:null,inclinar:0,ojos:null}],[4,{mirada:{dx:-1,dy:0}}],[4,{mirada:{dx:1,dy:0}}],[4,{mirada:{dx:0,dy:0}}],...risa()],fin));\n    }));\n   }\n  },\n  // Lee mientras camina, choca con algo invisible, se voltea y sigue leyendo.\n  lectura:{\n   foto:()=>({pose:'leyendo'}),\n   inicio(primero,listo){pose='leyendo';pintar();listo();},\n   correr(fin){\n    const leer=[];for(let i=0,n=2+Math.floor(azar()*3);i<n;i++)leer.push([i?4:0,{mirada:{dx:-1,dy:0}}],[entre(6,10),{mirada:{dx:0,dy:0}}],[entre(5,8),{mirada:{dx:1,dy:0}}]);\n    if(!conPaseo())return secuencia([...leer,[5,{mirada:{dx:0,dy:0},parpadeo:'ambos'}],[7,{inclinar:1}],[entre(8,14),{inclinar:0,parpadeo:false,ojos:'grandes'}],...brinco(2),[5,()=>{pose=poseVigilia;poner({ojos:null});}],...risa()],fin);\n    const choque=[[0,()=>{pose=poseVigilia;poner({ojos:'grandes',inclinar:-1});}],...brinco(2),[6,{inclinar:0,ojos:null,mirada:{dx:-1,dy:0}}],[5,{mirada:{dx:0,dy:0}}],...girar(()=>-rumbo),[0,()=>{pose='leyendo';pintar();}],[entre(6,12),()=>{}]];\n    secuencia([...leer,[4,{mirada:{dx:0,dy:0}}]],()=>caminar(aDistancia(entre(8,20)),()=>secuencia(choque,()=>caminar(aDistancia(entre(5,14)),()=>{pose=poseVigilia;pintar();fin();},{cuadros:3}),{cuadros:3})));\n   }\n  },\n  // Piensa con la mirada arriba, se le prende el foco, corre brincando y celebra.\n  idea:{\n   foto:()=>({pose:'pensando'}),\n   inicio(primero,listo){pose='pensando';pintar();listo();},\n   correr(fin){\n    secuencia([[0,{mirada:{dx:0,dy:-1}}],[entre(11,18),{mirada:{dx:1,dy:-1}}],[entre(8,14),{mirada:{dx:-1,dy:-1}}]],()=>{\n     pose=poseVigilia;\n     const salto=brinco(2);\n     salto[0]=[0,{...salto[0][1],destello:[13,1],ojos:'grandes',mirada:{dx:0,dy:0}}];\n     secuencia(salto,()=>secuencia([[5,{destello:null,ojos:null}]],()=>caminar(aDistancia(entre(6,20)),()=>secuencia([...brinco(2),[0,{parpadeo:'guino'}],[2,{parpadeo:false}],...saludo(),...fiesta()],fin),{cuadros:entre(1,3),brinco:true})));\n    });\n   }\n  },\n  // El gran salto (ironía): se prepara muchísimo, tiembla de concentración… y el salto es de una\n  // celda. Aterriza orgullosa y saluda como si nada.\n  gransalto:{\n   foto:()=>({pose:'hola',e:{sentada:true,parpadeo:'ambos'}}),\n   correr(fin){\n    const temblor=[];for(let i=0,n=6+Math.floor(azar()*6);i<n;i++)temblor.push([i?1:entre(6,11),{inclinar:i%2?1:-1}]);\n    secuencia([...sentarse(),[0,{parpadeo:'ambos'}],...temblor,[2,{inclinar:0,parpadeo:false,ojos:'grandes'}]],()=>despues(enCuadros(6),()=>secuencia([...levantarse(),...brinco(1),[entre(6,11),{mirada:{dx:-1,dy:0}}],[5,{mirada:{dx:1,dy:0}}],[5,{mirada:{dx:0,dy:0},parpadeo:'guino'}],[4,{parpadeo:false}],...saludo()],fin)));\n   }\n  },\n  // Resbalón: de tanto jugar le escurre una gota de sudor, la gota llega al piso y ella la pisa.\n  // Después mira a los lados: «¿nadie vio?».\n  resbalon:{\n   foto:()=>({pose:'hola',e:{sentada:true,inclinar:-1,ojos:'grandes'}}),\n   correr(fin){\n    const gota=[[14,8],[14,9],[14,11],[14,13],[14,15],[14,17]];\n    secuencia([...gota.map(([x,y],i)=>[i?entre(2,3):0,{burbujas:[[x,y]]}]),[entre(6,11),{mirada:{dx:1,dy:0}}],[5,{mirada:{dx:0,dy:0},caminando:2}],[2,{caminando:1,burbujas:null,inclinar:-1,ojos:'grandes'}]],()=>secuencia([...brinco(2),[0,{caminando:0}]],()=>secuencia([...sentarse(),[0,{inclinar:0}],[8,{mirada:{dx:-1,dy:0}}],[3,{mirada:{dx:1,dy:0}}],[3,{mirada:{dx:-1,dy:0}}],[3,{mirada:{dx:0,dy:0},ojos:null}],...levantarse(),[4,{parpadeo:'guino'}],[4,{parpadeo:false}],...saludo()],fin)));\n   }\n  },\n  // La burbuja la persigue a ella: huye mirando atrás y la burbuja le revienta en la cara.\n  perseguida:{\n   foto:()=>({pose:'hola',e:{burbujas:[[1,5]],ojos:'grandes',mirada:{dx:-1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,{burbujas:[[9,4]],mirada:{dx:0,dy:-1}}],[4,{burbujas:[[7,3]]}],[4,{burbujas:[[4,3]],mirada:{dx:-1,dy:0}}],[4,{burbujas:[[2,5]],ojos:'grandes'}]],\n     ()=>despues(enCuadros(5),()=>caminar(aDistancia(entre(10,26)),()=>secuencia([[0,{burbujas:[[3,4]],mirada:{dx:0,dy:0}}],[2,{burbujas:[[5,5]]}],[2,{burbujas:null,destello:[6,4],parpadeo:'ambos',ojos:null}],[4,{destello:null}],[5,{parpadeo:false}],...risa()],fin),{cuadros:1})));\n   }\n  },\n  // Se le olvida la gravedad: flota, patalea en el aire, se acuerda… y cae de sentón.\n  gravedad:{\n   foto:()=>({pose:'hola',e:{flotar:2,ojos:'grandes',caminando:1}}),\n   correr(fin){\n    const pasos=[[0,{ojos:'grandes'}]];\n    for(let k=1;k<=4;k++)pasos.push([entre(4,7),{flotar:k,caminando:k%2?1:2}]);\n    for(let i=0,n=3+Math.floor(azar()*4);i<n;i++)pasos.push([2,{caminando:i%2?1:2,mirada:{dx:i%2?1:-1,dy:0}}]);\n    secuencia([...pasos,[entre(6,11),{caminando:0,mirada:{dx:0,dy:0},ojos:null,parpadeo:'guino'}],[4,{parpadeo:false,ojos:'grandes'}],[1,{flotar:2}],[1,{flotar:0,inclinar:1}],...sentarse(),[0,{inclinar:0}],[7,{ojos:null,mirada:{dx:-1,dy:0}}],[4,{mirada:{dx:1,dy:0}}],[4,{mirada:{dx:0,dy:0}}],...levantarse(),...risa()],fin);\n   }\n  },\n  // Se evapora (química pura): pierde el líquido de las perneras fila por fila, se preocupa,\n  // se junta una nube arriba y le llueve adentro hasta quedar llena otra vez.\n  evaporacion:{\n   foto:()=>({pose:'hola',e:{seca:2,mirada:{dx:0,dy:-1},burbujas:[[5,1],[10,0]]}}),\n   correr(fin){\n    const vapor=k=>[entre(6,10),{seca:k,burbujas:[[entre(3,13),entre(0,3)],[entre(3,13),entre(0,3)]]}];\n    const nube=[[6,0],[7,0],[8,0],[9,0],[5,1],[10,1]];\n    secuencia([[0,{mirada:{dx:0,dy:-1}}],vapor(1),vapor(2),vapor(3),[6,{ojos:'grandes',burbujas:null}],[8,{ojos:null,mirada:{dx:-1,dy:0}}],[6,{mirada:{dx:1,dy:0}}],[6,{mirada:{dx:0,dy:-1},burbujas:nube}],[7,{burbujas:[...nube,[7,2],[9,1]]}],[3,{burbujas:[...nube,[7,3],[9,2],[6,1]],seca:2}],[3,{burbujas:[...nube,[9,3],[6,2],[8,1]],seca:1}],[3,{burbujas:[...nube,[6,3],[8,2]],seca:0}],[4,{burbujas:null,mirada:{dx:0,dy:0}}],...risa()],fin);\n   }\n  },\n  // Camina por el techo: de un brinco queda de cabeza, pasea así tan campante y se cae.\n  techo:{\n   foto:()=>({pose:'hola',e:{deCabeza:true}}),\n   correr(fin){\n    const caida=[[4,{mirada:{dx:0,dy:-1}}],[7,{ojos:'grandes'}],[4,{deCabeza:false,inclinar:1}],...sentarse(),[0,{inclinar:0}],[7,{ojos:null,mirada:{dx:-1,dy:-1}}],[2,{mirada:{dx:1,dy:-1}}],[2,{mirada:{dx:0,dy:0}}],...levantarse(),...risa()];\n    secuencia([...brinco(2),...brinco(2),[0,{deCabeza:true,ojos:'grandes'}],[7,{ojos:null}]],\n     ()=>caminar(aDistancia(entre(5,14)),()=>secuencia(caida,fin),{cuadros:2,torpe:false}));\n   }\n  },\n  // Paso lunar: las patas avanzan, pero Mey se desliza mirando al lado contrario.\n  pasolunar:{\n   foto:()=>({pose:'hola',e:{caminando:3,brazoIzq:1,parpadeo:'guino'}}),\n   correr(fin){\n    const terminar=()=>secuencia([[0,{caminando:0,parpadeo:'guino'}],[6,{parpadeo:false}],...saludo()],fin);\n    if(conPaseo())caminar(aDistancia(entre(8,18)),terminar,{cuadros:3,atras:true,torpe:false});\n    else secuencia([[0,{caminando:1,inclinar:1}],[3,{caminando:3,inclinar:0}],[3,{caminando:2,inclinar:-1}],[3,{caminando:4,inclinar:0}],[3,{caminando:0}]],terminar);\n   }\n  },\n  // Protesta por nada, patalea... y termina celebrando su propia protesta.\n  berrinche:{\n   foto:()=>({pose:'hola',e:{brazoIzq:2,brazoDer:2,agachar:1}}),\n   correr(fin){\n    const pasos=[[0,{brazoIzq:2,brazoDer:2}]];\n    for(let i=0,n=entre(3,6);i<n;i++)pasos.push([3,{chapoteo:'izq',agachar:1,inclinar:-1}],[3,{chapoteo:'der',agachar:0,inclinar:1}]);\n    secuencia([...pasos,[3,{chapoteo:null,inclinar:0,brazoIzq:0,brazoDer:1}],...risa(),...fiesta()],fin);\n   }\n  },\n  // Suelta una burbuja, mira a los lados y se hace la que estaba leyendo.\n  inocente:{\n   foto:()=>({pose:'leyendo',e:{mirada:{dx:1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,()=>{pose='hola';pintar();}],...TRAVESURAS.burbuja,[4,{mirada:{dx:-1,dy:0}}],[5,{mirada:{dx:1,dy:0}}],[4,()=>{pose='leyendo';poner({mirada:{dx:0,dy:0}});}],[16,()=>{pose=poseVigilia;poner({parpadeo:'guino'});}],[4,{parpadeo:false}]],fin);\n   }\n  },\n  // Mucho esfuerzo para teletransportarse: sigue exactamente en el mismo sitio.\n  teletransporte:{\n   foto:()=>({pose:'pensando',e:{agachar:1,destello:[12,1]}}),\n   correr(fin){\n    const pasos=[];\n    for(let i=0,n=entre(3,5);i<n;i++)pasos.push([3,{agachar:1,parpadeo:'ambos',inclinar:-1}],[3,{inclinar:1,destello:[12,1]}]);\n    secuencia([...pasos,[2,{inclinar:0,agachar:0,parpadeo:false,destello:null}],...brinco(2),[0,{ojos:'grandes',mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0}}],[8,{ojos:null,mirada:{dx:0,dy:0}}],...risa()],fin);\n   }\n  },\n  // Saluda a su público imaginario; la reverencia se convierte en un sentón.\n  reverencia:{\n   foto:()=>({pose:'hola',e:{inclinar:1,brazoIzq:1}}),\n   correr(fin){\n    secuencia([...saludo(),[3,{inclinar:1,agachar:1}],[4,{inclinar:1,ojos:'grandes'}],...tropezar(),...levantarse(),[0,{inclinar:0,ojos:null}],...risa()],fin);\n   }\n  },\n  // Se niega con la cabeza, se sienta de espaldas... y vuelve a asomarse por curiosidad.\n  rebeldia:{\n   foto:()=>({pose:'hola',e:{sentada:true,mirada:{dx:-1,dy:0},brazoDer:0}}),\n   correr(fin){\n    secuencia([[0,{mirada:{dx:-1,dy:0},brazoDer:0}],[4,{mirada:{dx:1,dy:0}}],[4,{mirada:{dx:-1,dy:0}}],...girar(()=>-rumbo),...sentarse(),[12,{mirada:{dx:1,dy:-1}}],[8,{parpadeo:'guino'}],[3,{parpadeo:false}],...levantarse(),...girar(()=>-rumbo),...saludo()],fin);\n   }\n  },\n  // Huelga de unos segundos: dice NO con su cartel, revisa si la vieron y se despide feliz.\n  huelga:{\n   foto:()=>({pose:'hola',e:{cartel:true,brazoDer:1,mirada:{dx:-1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,{cartel:true,brazoDer:1}],[10,{mirada:{dx:-1,dy:0}}],[10,{mirada:{dx:1,dy:0}}],[8,{mirada:{dx:0,dy:0},agachar:1}],[6,{agachar:0}],[10,{parpadeo:'guino'}],[4,{parpadeo:false,cartel:false}],...saludo()],fin);\n   }\n  },\n  // Exige atención con las manos, espera... y se concede su propia ovación.\n  aplausos:{\n   foto:()=>({pose:'hola',e:{brazoIzq:2,saludo:2,ojos:'grandes'}}),\n   correr(fin){\n    secuencia([[0,{brazoIzq:2,saludo:2,ojos:'grandes'}],[8,{mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0}}],[10,{mirada:{dx:0,dy:0},ojos:null}],[8,{agachar:1}],[4,{agachar:0,brazoIzq:0,saludo:false}],...TRAVESURAS.aplauso,[6,{brazoIzq:0,brazoDer:0,saludo:false,agachar:0,estirar:0}],[5,{inclinar:1}],[5,{inclinar:0,parpadeo:'guino'}],[4,{parpadeo:false}]],fin);\n   }\n  },\n  // Confeti sin culpable: lo avienta, señala fuera del escenario y abre su libro.\n  confeti:{\n   foto:()=>({pose:'leyendo',e:{confeti:2,mirada:{dx:1,dy:0}}}),\n   correr(fin){\n    secuencia([[0,{brazoIzq:2,saludo:2,confeti:1,ojos:'felices'}],[4,{confeti:2}],[4,{confeti:3,brazoIzq:0,saludo:false}],[4,{confeti:4,ojos:null}],[4,{confeti:5}],[4,{confeti:0,mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0},brazoDer:1}],[8,()=>{pose='leyendo';poner({brazoDer:0,mirada:{dx:0,dy:0}});}],[18,{parpadeo:'guino'}],[4,{parpadeo:false}]],fin);\n   }\n  },\n  // Estatuas de marfil: avanza de puntitas y se congela si mueves el puntero (o cuando se le antoja).\n  estatuas:{\n   foto:()=>({pose:'hola',e:{caminando:1,ojos:'grandes'}}),\n   correr(fin){\n    let congelada=0;\n    const pausa=()=>{\n     if(congelada<25&&(ahora()-ultimoPuntero<700||azar()<.08)){congelada++;if(!e.ojos)poner({ojos:'grandes'});return 5;}\n     if(e.ojos)poner({ojos:null});return 0;\n    };\n    // Sin espacio: baila en su lugar y se congela en poses chistosas, con ojos de «¿me viste?».\n    if(!conPaseo()){\n     const quieta={chapoteo:null,saludo:false,inclinar:0,salto:0};\n     const poses=[()=>[[0,{...quieta,chapoteo:'izq'}]],()=>[[0,{...quieta,chapoteo:'der'}]],()=>[...saludo(),[0,quieta]],()=>[[0,{...quieta,inclinar:1}]],()=>[[0,{...quieta,inclinar:-1}]],()=>[...brinco(2),[0,quieta]]];\n     const pasos=[];for(let i=0,n=8+Math.floor(azar()*5);i<n;i++){const gesto=uno(poses)();if(i)gesto[0][0]=entre(3,5);pasos.push(...gesto);if(azar()<.3)pasos.push([0,{ojos:'grandes'}],[entre(8,13),{ojos:null}]);}\n     return secuencia([...pasos,[3,quieta],...risa()],fin);\n    }\n    const tramos=2+Math.floor(azar()*2);\n    const tramo=k=>{\n     if(k>=tramos)return secuencia([[0,{ojos:null,caminando:0,parpadeo:'guino'}],[4,{parpadeo:false}],...risa()],fin);\n     caminar(aDistancia(entre(5,14)),()=>despues(enCuadros(entre(4,8)),()=>tramo(k+1)),{cuadros:3,sigilo:true,pausa});\n    };\n    tramo(0);\n   }\n  }\n };\n const empezar=(nombre,fin)=>{\n  let n=nombre||pendiente||mey.siguienteJuego(memoria,azar,JUEGOS_MEY,personalidad);\n  // Nunca el mismo juego dos veces seguidas, aunque el primero haya venido forzado.\n  if(!nombre&&!pendiente&&n===ultimoJuego&&JUEGOS_MEY.length>1)n=mey.siguienteJuego(memoria,azar,JUEGOS_MEY,personalidad);\n  pendiente=null;jugando=n;ultimoJuego=n;finJuegoActual=fin||null;\n  const primero=!jugados++;\n  pose=poseVigilia;atuendo=opciones.atuendo||apariencia.leer();e=neutro();\n  if(primero&&conPaseo()){x=alAzar();rumbo=lado();}\n  pintar();\n  const listo=()=>despues(enCuadros(primero?entre(6,14):entre(4,8)),()=>JUEGOS[n].correr(terminar));\n  JUEGOS[n].inicio?JUEGOS[n].inicio(primero,listo):listo();\n };\n const terminar=()=>{\n  const fin=finJuegoActual;\n  finJuegoActual=null;\n  jugando=null;\n  ultimoFinJuego=ahora();\n  pose=poseVigilia;\n  atuendo=opciones.atuendo||apariencia.leer();\n  e=neutro();\n  pintar();\n  fin&&fin();\n };\n const foto=n=>{const f=JUEGOS[n].foto();pose=f.pose;if(f.atuendo)atuendo=f.atuendo;e={...neutro(),...f.e};if(conPaseo()){x=alAzar();rumbo=lado();}};\n // Al clic, en el recreo reacciona distinto cada vez (nunca dos veces seguidas lo mismo).\n const REACCIONES={celebrar:null,risa,tropiezo:()=>tropezar(),guino:()=>TRAVESURAS.guino,hipo:()=>hipido(),sorpresa:()=>TRAVESURAS.sorpresa};\n const completarConducta=nombre=>{\n  if(conductaActual!==nombre)return;\n  conductaActual=null;\n  ultimaConductaMovimiento=ahora();\n  noAntesDe=ahora()+enCuadros(entre(24,72))*(2-imp.energia)*perfil().pausa;\n };\n const roncada=()=>{\n  if(!durmiendo||!activo)return;\n  const pasos=[[0,{burbuja:0}],[2,{burbuja:1}],[2,{burbuja:2}],[2,{burbuja:3}],[2,{burbuja:4}],[2,{burbuja:5}],[2,{burbuja:null}]];\n  secuencia(pasos,()=>{if(durmiendo){ocupada=true;despues(enCuadros(entre(4,10)),roncada);}});\n };\n const COMPORTAMIENTOS={\n  quieta:fin=>fin(),\n  pasear:fin=>{\n   if(!conPaseo())return fin();\n   caminar(alAzar(),()=>{\n    if(azar()<.3){\n     secuencia(sentarse(),()=>{ocupada=true;despues(enCuadros(entre(24,48)),()=>secuencia(levantarse(),fin));});\n    }else fin();\n   });\n  },\n  acercarse:fin=>{\n   if(!conPaseo()||punteroX===null)return fin();\n   caminar(punteroX-8*celda,()=>{\n    const dx=punteroX<x+8*celda?-1:punteroX>x+8*celda?1:0;\n    const mirada={dx:rumbo<0?-dx:dx,dy:0};\n    poner({mirada,ojos:imp.afecto>.6?'felices':null});\n    ocupada=true;\n    despues(enCuadros(entre(36,72)),()=>{poner({mirada:{dx:0,dy:0},ojos:null});fin();});\n   });\n  },\n  curiosear:fin=>{\n   if(!novedad)return fin();\n   const m={dx:novedad.dx,dy:novedad.dy};\n   secuencia([[0,{mirada:m,inclinar:m.dx}],[24,{mirada:{dx:0,dy:0},inclinar:0}]],()=>{novedad=null;fin();});\n  },\n  travesura:fin=>{\n   const lista=mey.travesuras.filter(n=>n!=='celebrar'&&n!=='enojo'&&n!==ultimaTravesura);\n   const n=uno(lista);ultimaTravesura=n;\n   secuencia(TRAVESURAS[n],fin);\n  },\n  jugar:fin=>empezar(undefined,fin),\n  bostezar:fin=>secuencia(TRAVESURAS.bostezo,fin),\n  estirarse:fin=>secuencia(TRAVESURAS.estirarse,fin),\n  pensar:fin=>secuencia(TRAVESURAS.pensar,fin),\n  bailar:fin=>JUEGOS.baile.correr(fin),\n  dormir:fin=>{\n   secuencia(TRAVESURAS.bostezo,()=>secuencia(sentarse(),()=>{\n    durmiendo=true;pose='dormido';poner({burbuja:null,sentada:true});finDormir=fin;roncada();\n   }));\n  }\n };\n const correrConducta=nombre=>{\n  const comportamiento=COMPORTAMIENTOS[nombre]||COMPORTAMIENTOS.quieta;\n  conductaActual=nombre;\n  ultimaConductaMovimiento=ahora();\n  comportamiento(()=>completarConducta(nombre));\n };\n const estadoSensorial=()=>{\n  const t=ahora();\n  return {\n   inactividad:Math.max(0,(t-ultimaActividad)/1000),\n   cerca:t-ultimaCercana<2000,\n   estimulo:novedad?1:(t-ultimoPuntero<500?.25:0),\n   caricia:cariciaPendiente,\n   durmiendo,\n   hora:new Date(fecha()).getHours(),\n   paseo:conPaseo(),\n   juegos:recreo,\n   punteroVisto:Number.isFinite(ultimoPuntero)&&t-ultimoPuntero<5000,\n   distancia:distanciaPuntero,\n   novedad,\n   quietaMucho:t-ultimaConductaMovimiento>30000,\n   escribiendo:t-ultimaTecla<4000,\n   personalidad\n  };\n };\n const persistirConducta=(forzar=false)=>{\n  const afecto=clampMey(imp.afecto,0,1);\n  if(!forzar&&Math.abs(afecto-ultimoAfectoPersistido)<=.02)return;\n  memGuardada={visitas,ultima:fecha(),afecto};\n  try{memoriaConducta.guardar({...memGuardada});}catch{}\n  ultimoAfectoPersistido=afecto;\n  ultimaPersistencia=ahora();\n };\n const latido=()=>{\n  if(!activo||energia()!=='completa')return;\n  const s=estadoSensorial();\n  imp=mey.mente.actualizar(imp,s,.5);\n  cariciaPendiente=false;\n  if(!saludoPresenciaRealizado&&dentroDesde!==null&&ahora()-dentroDesde>=enCuadros(18)&&ultimoClic<dentroDesde){\n   saludoPresenciaRealizado=true;\n   imp.afecto=clampMey(imp.afecto+.04,0,1);\n   if(!durmiendo&&!ocupada&&!jugando)ejecutarReaccion('saludo');\n  }\n  if(durmiendo){\n   if(ahora()-ultimaCercana<2000||imp.sueno<.2)despertar();\n  }else if(!ocupada&&!jugando&&ahora()>=noAntesDe){\n   const nombre=recreo&&!s.escribiendo&&ahora()-ultimoFinJuego>enCuadros(96)*perfil().pausa?'jugar':\n    mey.mente.elegir(['quieta','pasear','acercarse','curiosear','travesura','jugar','bostezar','estirarse','pensar','bailar','dormir'],imp,s,ultimaVezConducta,ahora()/1000,azar);\n   ultimaVezConducta[nombre]=ahora()/1000;\n   correrConducta(nombre);\n  }\n  if(ahora()-ultimaPersistencia>=30000&&Math.abs(imp.afecto-ultimoAfectoPersistido)>.02)persistirConducta();\n  despues(enCuadros(6),latido,true);\n };\n const vida=()=>{\n  if(!activo)return;\n  if(!ocupada&&!durmiendo){\n   const fotoDormida=pose==='dormido';\n   if(fotoDormida||azar()<.7){\n    const pasos=[[0,{ojos:'cerrados'}],[imp.sueno>.5?4:1,{ojos:null}]];\n    if(azar()<.3)pasos.push([2,{ojos:'cerrados'}],[1,{ojos:null}]);\n    secuencia(pasos);\n   }else secuencia([[0,{estirar:1}],[2,{estirar:0}]]);\n  }\n  despues(enCuadros(entre(22,50))*perfil().pausa,vida,true);\n };\n const ejecutarReaccion=(nombre,fin)=>{\n  const funcion=REACCIONES[nombre];\n  const pasos=nombre==='celebrar'?TRAVESURAS.celebrar:(typeof funcion==='function'?funcion():TRAVESURAS[nombre]);\n  if(!pasos){fin&&fin();return;}\n  conductaActual='reaccion';\n  secuencia(pasos,()=>{conductaActual=null;noAntesDe=ahora()+enCuadros(24);fin&&fin();});\n };\n const alClic=()=>{\n  const t=ahora();\n  ultimaActividad=t;\n  if(energia()!=='completa'||!activo)return;\n  ultimaCercana=t;\n  const reinicia=ultimoClic===-Infinity||t-ultimoClic>=4000;\n  if(reinicia){historialClics=[];afectoAlIniciarRafaga=imp.afecto;}\n  historialClics=historialClics.filter(x=>t-x<=6000);\n  historialClics.push(t);ultimoClic=t;\n  if(durmiendo){despertar();return;}\n  if(jugando)return;\n  const n=historialClics.length;\n  if(n>1)cariciaPendiente=false;\n  if(n>=8){\n   interrumpir();jugando='mareo';conductaActual='mareo';\n   JUEGOS.mareo.correr(()=>{\n    jugando=null;conductaActual=null;ultimoFinJuego=ahora();pose=poseVigilia;e=neutro();pintar();\n    noAntesDe=ahora()+enCuadros(24);\n   });\n   return;\n  }\n  if(t<finMolesta){interrumpir();ultimaReaccion='sorpresa';ejecutarReaccion('sorpresa');return;}\n  if(n>=4){\n   imp.afecto=clampMey(Math.min(imp.afecto,afectoAlIniciarRafaga??imp.afecto)-.1,0,1);finMolesta=t+8000;\n   interrumpir();ultimaReaccion='enojo';ejecutarReaccion('enojo');return;\n  }\n  if(n>=2&&n<=3&&t-historialClics[0]<=2500){\n   interrumpir();ultimaReaccion='cosquillas';ejecutarReaccion('cosquillas');return;\n  }\n  if(n===1){\n   cariciaPendiente=true;\n   const nombre=recreo?uno(['celebrar','risa','tropiezo','guino','hipo','sorpresa','cosquillas'].filter(x=>x!==ultimaReaccion)):'celebrar';\n   ultimaReaccion=nombre;interrumpir();ejecutarReaccion(nombre);\n  }\n };\n const alTecla=()=>{ultimaActividad=ahora();ultimaTecla=ahora();};\n const alClicPagina=()=>{ultimaActividad=ahora();};\n let ultimaPosicionScroll=Number(ventana.scrollY)||0;\n const alScroll=()=>{\n  ultimaActividad=ahora();\n  const y=Number(ventana.scrollY)||0,dy=y>=ultimaPosicionScroll?1:-1;\n  ultimaPosicionScroll=y;\n  if(ahora()-ultimoPuntero<1000||durmiendo)return;\n  const antes=e.mirada;\n  poner({mirada:{dx:antes.dx,dy}});\n  despues(enCuadros(12),()=>{if(e.mirada.dy===dy)poner({mirada:{dx:antes.dx,dy:antes.dy}});});\n };\n const alFocus=ev=>{\n  ultimaActividad=ahora();\n  const b=host.getBoundingClientRect(),objetivo=ev.target?.getBoundingClientRect?.();\n  if(!objetivo)return;\n  const cx=b.left+(conPaseo()?x+8*celda:b.width/2),cy=b.top+b.height/2;\n  const fx=objetivo.left+objetivo.width/2,fy=objetivo.top+objetivo.height/2;\n  const dxDist=fx-cx,dyDist=fy-cy,cerca=Math.hypot(dxDist,dyDist)<4*celda;\n  const dx=cerca?0:Math.sign(dxDist),dy=cerca?0:Math.sign(dyDist);\n  novedad=dx||dy?{dx,dy}:null;\n  if(durmiendo)return;\n  const anterior=e.mirada;poner({mirada:{dx,dy}});\n  despues(enCuadros(12),()=>{if(e.mirada.dx===dx&&e.mirada.dy===dy)poner({mirada:anterior});});\n };\n const aplicarEvento=tipo=>{\n  if(tipo==='exito')return ejecutarReaccion('celebrar');\n  if(tipo==='guardado')return ejecutarReaccion('asentir');\n  if(tipo==='error'||tipo==='aviso')return ejecutarReaccion('preocupacion');\n  if(tipo==='listo')return ejecutarReaccion('sorpresa',()=>ejecutarReaccion('saludo'));\n  if(tipo==='carga'){\n   enCarga=true;conductaActual='carga';const inicio=ahora();\n   const pensar=()=>{\n    if(!enCarga)return;\n    if(ahora()-inicio>=30000){enCarga=false;conductaActual=null;return;}\n    secuencia(TRAVESURAS.pensar,()=>{if(enCarga){ocupada=true;despues(enCuadros(1),pensar);}else conductaActual=null;});\n   };\n   pensar();\n   despues(30000,()=>{enCarga=false;if(!ocupada)conductaActual=null;});\n  }\n };\n const lanzarEvento=(tipo,desdeControl=false)=>{\n  if(!mey.eventos.includes(tipo)){\n   if(desdeControl)throw new Error('mey: evento desconocido: '+tipo);\n   return;\n  }\n  if(!activo)return;\n  const t=ahora();\n  if(tipo==='guardado'){if(durmiendo||conductaActual==='dormir'||t-guardadoEn<60000)return;guardadoEn=t;}\n  else if(ultimoEvento.tipo===tipo&&t-ultimoEvento.t<3000)return;\n  ultimoEvento={tipo,t};\n  ultimaActividad=t;\n  const dormida=durmiendo;\n  interrumpir();\n  if(dormida){durmiendo=true;pose='dormido';e={...neutro(),sentada:true};pintar();despertar(()=>aplicarEvento(tipo));}\n  else aplicarEvento(tipo);\n };\n const alEventoVentana=ev=>lanzarEvento(ev.detail?.tipo,false);\n const reducido=ventana.matchMedia?ventana.matchMedia('(prefers-reduced-motion: reduce)'):null;\n const puedeMoverse=()=>opciones.vivo!==false&&energia()!=='quieta'&&!(reducido&&reducido.matches)&&!ventana.navigator?.connection?.saveData&&visible&&!doc.hidden;\n const quitarSensores=()=>{\n  ventana.removeEventListener('pointermove',alPuntero);\n  ventana.removeEventListener('click',alClicPagina,true);\n  ventana.removeEventListener('keydown',alTecla);\n  ventana.removeEventListener('scroll',alScroll,true);\n  doc.removeEventListener('focusin',alFocus);\n  ventana.removeEventListener('erlen-mey-evento',alEventoVentana);\n };\n const agregarSensores=()=>{\n  if(energia()==='completa'){\n   ventana.addEventListener('pointermove',alPuntero,{passive:true});\n   ventana.addEventListener('click',alClicPagina,true);\n   ventana.addEventListener('keydown',alTecla);\n   ventana.addEventListener('scroll',alScroll,true);\n   doc.addEventListener('focusin',alFocus);\n  }\n  if(energia()==='completa'||energia()==='calma')ventana.addEventListener('erlen-mey-evento',alEventoVentana);\n };\n const parar=()=>{\n  const estaba=activo;\n  activo=false;ocupada=false;\n  for(const id of escena)reloj.clearTimeout(id);\n  for(const id of fijos)reloj.clearTimeout(id);\n  escena.clear();fijos.clear();quitarSensores();\n  if(!recreo||estaba)e=durmiendo?{...neutro(),sentada:true}:neutro();\n  if(recreo){if(jugando){pendiente=jugando;jugados=0;jugando=null;finJuegoActual=null;pose=poseVigilia;}x=Math.max(0,Math.min(holgura(),x));}\n  if(!durmiendo)conductaActual=null;\n  pintar();\n };\n const arrancar=()=>{\n  if(activo||!puedeMoverse())return;\n  activo=true;\n  agregarSensores();\n  despues(enCuadros(entre(14,32)),vida,true);\n  if(energia()!=='completa')return;\n  despues(enCuadros(6),latido,true);\n  if(durmiendo){conductaActual='dormir';roncada();return;}\n  if(recreo){empezar();return;}\n  if(!bienvenidaProgramada&&(r.lugar==='bienvenida'||r.lugar==='vacio')){\n   bienvenidaProgramada=true;\n   const espera=entre(12,24),hora=new Date(fecha()).getHours();\n   noAntesDe=ahora()+enCuadros(espera+24);\n   despues(enCuadros(espera),()=>{\n    const saludar=()=>{\n     if(primeraVisita){\n      secuencia([[0,{mirada:{dx:-1,dy:0}}],[8,{mirada:{dx:1,dy:0}}],[8,{mirada:{dx:0,dy:0}}],[8,()=>ejecutarReaccion('saludo')]]);\n     }else if(dias>=3){\n      ejecutarReaccion('saludo',()=>ejecutarReaccion('risa'));\n     }\n    };\n    if(hora<6)secuencia(TRAVESURAS.bostezo,saludar);else saludar();\n   });\n  }\n };\n const revisar=()=>puedeMoverse()?arrancar():parar();\n const alCambiarVisibilidad=()=>{\n  if(doc.hidden){\n   if(ocultoDesde===null)ocultoDesde=fecha();\n   parar();\n   return;\n  }\n  const ausente=ocultoDesde===null?0:fecha()-ocultoDesde;\n  ocultoDesde=null;\n  revisar();\n  if(activo&&energia()==='completa'&&ausente>=30000){\n   const regreso=()=>ausente>=600000?ejecutarReaccion('bostezo',()=>ejecutarReaccion('saludo')):ejecutarReaccion('saludo');\n   if(durmiendo)despertar(regreso);else regreso();\n  }\n };\n const ajustar=()=>{const nueva=medir();if(nueva!==celda){const antes=energia();celda=nueva;x=Math.round(x/celda)*celda;if(energia()!==antes){parar();revisar();return;}}x=Math.min(x,holgura());pintar();};\n const alCambiarApariencia=()=>{if(!opciones.atuendo&&jugando!=='probador'){atuendo=apariencia.leer();pintar();}};\n host.addEventListener('click',alClic);\n doc.addEventListener('visibilitychange',alCambiarVisibilidad);\n reducido?.addEventListener?.('change',revisar);\n const alCambiarPersonalidad=ev=>{\n  if(ev?.type==='storage'&&ev.key!==null&&ev.key!==undefined&&ev.key!=='erlen-mey-personalidad')return;\n  if(!opciones.personalidad)personalidad=personalidadLocal.leer();\n  host.dataset.meyPersonalidad=personalidad;\n  // Acaba la escena en curso; aplica la nueva cadencia en la siguiente decisión.\n  noAntesDe=ahora()+enCuadros(24)*perfil().pausa;\n };\n alCambiarPersonalidad();\n ventana.addEventListener('erlen-mey-personalidad',alCambiarPersonalidad);\n ventana.addEventListener('storage',alCambiarPersonalidad);\n const alCambiarColor=()=>pintar();\n ventana.addEventListener('erlen-mey-color',alCambiarColor);\n ventana.addEventListener('storage',alCambiarColor);\n ventana.addEventListener('erlen-mey-apariencia',alCambiarApariencia);\n ventana.addEventListener('storage',alCambiarApariencia);\n let observador=null,medidor=null;\n if(ventana.IntersectionObserver){observador=new ventana.IntersectionObserver(entradas=>{visible=entradas.some(x=>x.isIntersecting);revisar();});observador.observe(host);}\n // Con celda fija también observa: el hueco para pasear cambia con el ancho.\n if(ventana.ResizeObserver){medidor=new ventana.ResizeObserver(()=>ajustar());medidor.observe(r.eje==='alto'?host:(host.parentElement||host));}\n host.dataset.meyViva='';\n if(recreo){\n  if(opciones.juego&&!JUEGOS[opciones.juego])throw new Error('mey: juego desconocido: '+opciones.juego);\n  pendiente=opciones.juego||mey.siguienteJuego(memoria,azar,JUEGOS_MEY,personalidad);\n  if(!puedeMoverse()||energia()!=='completa')foto(pendiente);\n }\n pintar();arrancar();\n return {\n  pose(nombre){filasMey(nombre);pose=nombre;pintar();},\n  atuendo(nombre){vestirMey(Array.from({length:18},vacia),nombre,{},[]);atuendo=nombre;pintar();},\n  jugar(nombre){\n   if(!recreo)throw new Error('mey: jugar requiere lugar recreo');\n   if(!Object.hasOwn(JUEGOS,nombre))throw new Error('mey: juego desconocido: '+nombre);\n   interrumpir();\n   if(activo&&energia()==='completa')empezar(nombre);\n   else{pendiente=nombre;foto(nombre);pintar();}\n  },\n  reaccionar(nombre){if(nombre==='celebrar')return celebrar();if(!TRAVESURAS[nombre])throw new Error('mey: travesura desconocida: '+nombre);if(activo&&!ocupada)secuencia(TRAVESURAS[nombre]);},\n  ajustar,\n  cuadro(){return cuadroMey(pose,e,atuendo,false).map(f=>f.join('')).join('\\n');},\n  get celda(){return celda;},\n  get paseo(){return {activo:conPaseo(),x,rumbo,holgura:holgura(),sentada:!!e.sentada};},\n  caminar(destino,alLlegar,opts){if(activo&&!ocupada&&conPaseo())caminar(destino,alLlegar,opts);},\n  get energia(){return energia();},\n  get activa(){return activo;},\n  get personalidad(){return personalidad;},\n  get juego(){return jugando||pendiente;},\n  get reaccion(){return ultimaReaccion;},\n  get impulsos(){return {...imp};},\n  get conducta(){return conductaActual||'quieta';},\n  evento(tipo){return lanzarEvento(tipo,true);},\n  get memoria(){return {...memGuardada};},\n  detener(){persistirConducta(true);parar();host.removeEventListener('click',alClic);doc.removeEventListener('visibilitychange',alCambiarVisibilidad);reducido?.removeEventListener?.('change',revisar);ventana.removeEventListener('erlen-mey-apariencia',alCambiarApariencia);ventana.removeEventListener('storage',alCambiarApariencia);ventana.removeEventListener('erlen-mey-color',alCambiarColor);ventana.removeEventListener('storage',alCambiarColor);ventana.removeEventListener('erlen-mey-personalidad',alCambiarPersonalidad);ventana.removeEventListener('storage',alCambiarPersonalidad);observador?.disconnect();medidor?.disconnect();delete host.dataset.meyViva;delete host.dataset.meyPersonalidad;}\n };\n};\nmey.travesuras=['guino','chapoteo','burbuja','saludo','celebrar','risa','sorpresa','cosquillas','bostezo','estirarse','aplauso','pensar','preocupacion','asentir','enojo'];\nmey.eventos=['exito','guardado','error','aviso','carga','listo'];\nmey.juegos=JUEGOS_MEY;\n\n/* ---------- <erlen-mey> ----------\n   La forma más simple de poner a Mey en una app: <erlen-mey lugar=\"vacio\"></erlen-mey>.\n   Atributos: lugar, app, pose, atuendo, energia, titulo y vivo=\"false\". Mide el espacio que le\n   da su contenedor, se monta al entrar en el documento y se detiene al salir; cambiar un\n   atributo la repinta. el.reaccionar('celebrar') y compañía pasan al motor. mey.definir(window)\n   registra la etiqueta (una vez por ventana); al cargar este módulo en un navegador se registra\n   sola. */\nmey.definir=function(ventana){\n if(!ventana||!ventana.customElements||!ventana.HTMLElement)return false;\n if(ventana.customElements.get('erlen-mey'))return true;\n const ATRIBUTOS=['lugar','app','pose','atuendo','energia','titulo','vivo','paseo','celda','color','juego','personalidad'];\n class ErlenMey extends ventana.HTMLElement{\n  static get observedAttributes(){return ATRIBUTOS;}\n  connectedCallback(){this.montar();}\n  disconnectedCallback(){this._control?.detener();this._control=null;}\n  attributeChangedCallback(){if(this._control)this.montar();}\n  montar(){\n   this._control?.detener();\n   if(!this.style.display)this.style.display='block';\n   const o={ventana};for(const a of ATRIBUTOS){const v=this.getAttribute(a);if(v!==null)o[a]=v;}\n   if(!o.app)o.app=this.ownerDocument.documentElement.dataset.erlenApp;\n   if(o.vivo==='false')o.vivo=false;else delete o.vivo;\n   if(o.paseo==='false')o.paseo=false;else delete o.paseo;\n   if(o.celda){const c=parseInt(o.celda,10);if(c>0)o.celda=c;else delete o.celda;}\n   this.setAttribute('aria-hidden',o.titulo?'false':'true');\n   try{this._control=mey.montar(this,o);}catch(error){this._control=null;this.textContent='';throw error;}\n  }\n  reaccionar(nombre){this._control?.reaccionar(nombre);}\n  jugar(nombre){this._control?.jugar(nombre);}\n  get control(){return this._control;}\n }\n ventana.customElements.define('erlen-mey',ErlenMey);\n return true;\n};\nif(typeof window!=='undefined')mey.definir(window);\n\n/* Física de Mey: paso fijo con acumulador (G. Fiedler, «Fix Your Timestep!»), péndulo Verlet con restricción de distancia (T. Jakobsen; verlet-js, MIT), llegada con frenado (C. Reynolds) y resorte crítico (wobble, MIT). Ideas, sin código copiado. Unidades: px, s, rad; y crece hacia abajo; rotación positiva = horaria (CSS). */\nconst FISICA_MEY=Object.freeze({G:2200,H:1/240,SUBPASOS:12,VMAX:76,A_ARRANQUE:260,A_LLEGADA:220,A_FRENO:420,FRICCION:1400,\n AMORT_PENDULO:2.4,ARRASTRE_AIRE:.15,ARRASTRE_GIRO:.8,REST_PARED:.45,REST_SUELO:.35,REBOTE_MIN:520,V_CAIDA_MAX:2600,\n V_LANZAR:2400,GIRO_MAX:12,SALTO:240,EMPUJON:180,SALTO_EMPUJON:200,V_PUNTERO:900,PAUSA_EMPUJON:1500,ENDEREZAR:14});\nconst penduloMey=(s,px,py,h)=>{\n const k=Math.exp(-FISICA_MEY.AMORT_PENDULO*h);\n let nx=s.cx+(s.cx-s.qx)*k,ny=s.cy+(s.cy-s.qy)*k+FISICA_MEY.G*h*h;\n s.qx=s.cx;s.qy=s.cy;\n let dx=nx-px,dy=ny-py,d=Math.hypot(dx,dy);\n if(d<1e-9){dx=0;dy=s.L;d=s.L;}\n s.cx=px+dx*s.L/d;s.cy=py+dy*s.L/d;\n return s;\n};\nconst anguloMey=(s,px,py)=>Math.atan2(s.cx-px,s.cy-py);\nconst llegadaMey=(dx,dy,o)=>{\n const d=Math.hypot(dx,dy);\n if(d<1e-6){o.x=0;o.y=0;return o;}\n const v=Math.min(FISICA_MEY.VMAX,Math.sqrt(2*FISICA_MEY.A_LLEGADA*d));\n o.x=dx/d*v;o.y=dy/d*v;\n return o;\n};\nconst marchaMey=(v,o,h)=>{\n const vel=Math.hypot(v.x,v.y),obj=Math.hypot(o.x,o.y);\n const lim=vel>FISICA_MEY.VMAX+1?FISICA_MEY.FRICCION:obj>vel&&v.x*o.x+v.y*o.y>=0?FISICA_MEY.A_ARRANQUE:FISICA_MEY.A_FRENO;\n const ex=o.x-v.x,ey=o.y-v.y,en=Math.hypot(ex,ey),max=lim*h;\n if(en<=max){v.x=o.x;v.y=o.y;}\n else {v.x+=ex*max/en;v.y+=ey*max/en;}\n return v;\n};\nconst vueloMey=(c,h,lim)=>{\n c.vy=Math.min(c.vy+FISICA_MEY.G*h,FISICA_MEY.V_CAIDA_MAX);\n const k=Math.exp(-FISICA_MEY.ARRASTRE_AIRE*h);\n c.vx*=k;c.vy*=k;\n const y0=c.y;\n c.x+=c.vx*h;c.y+=c.vy*h;c.rot+=c.giro*h;c.giro*=Math.exp(-FISICA_MEY.ARRASTRE_GIRO*h);\n if(c.x<lim.izq){c.x=lim.izq;c.vx=-c.vx*FISICA_MEY.REST_PARED;c.giro*=-.6;}\n if(c.x>lim.der){c.x=lim.der;c.vx=-c.vx*FISICA_MEY.REST_PARED;c.giro*=-.6;}\n if(c.y<lim.techo){c.y=lim.techo;c.vy=-c.vy*FISICA_MEY.REST_PARED;}\n if(c.vy>0){\n  let piso=lim.suelo;\n  for(const p of lim.plataformas){\n   const tope=p.top-lim.alto;\n   if(y0<=tope&&c.y>=tope&&c.x+lim.ancho/2>=p.left&&c.x+lim.ancho/2<=p.right&&tope<piso)piso=tope;\n  }\n  if(c.y>=piso){\n   c.y=piso;\n   const imp=c.vy;\n   if(imp>FISICA_MEY.REBOTE_MIN){c.vy=-imp*FISICA_MEY.REST_SUELO;c.giro*=.6;return -imp;}\n   c.vy=0;return imp;\n  }\n }\n return 0;\n};\nconst enderezarMey=(c,h)=>{\n const a=-(FISICA_MEY.ENDEREZAR**2)*c.rot-2*FISICA_MEY.ENDEREZAR*c.giro;\n c.giro+=a*h;c.rot+=c.giro*h;\n if(Math.abs(c.rot)<.002&&Math.abs(c.giro)<.05)c.rot=c.giro=0;\n return c;\n};\nmey.fisica={c:FISICA_MEY,pendulo:penduloMey,angulo:anguloMey,llegada:llegadaMey,marcha:marchaMey,vuelo:vueloMey,enderezar:enderezarMey};\n\n/* Una presencia por documento. Posición y velocidad continuas; los gestos de pixel art\n   no cambian su trayectoria. El puntero solicita destinos, nunca recoloca al personaje. */\nconst claveRecorridoMey=Symbol.for('erlen.mey.recorrido');\nmey.recorridoActual=documento=>{const c=documento?.[claveRecorridoMey];if(c&&!c.elemento.isConnected){c.detener();return null;}return c||null;};\nmey.recorrerPagina=function(opciones={}){\n const doc=opciones.documento||(typeof document!=='undefined'?document:null);\n if(!doc?.body||!doc.defaultView?.requestAnimationFrame)return null;\n const existente=mey.recorridoActual(doc);if(existente){existente.actualizar?.(opciones);return existente;}\n const win=doc.defaultView,mq=win.matchMedia?.('(prefers-reduced-motion:reduce)');\n const personalidadLocal=mey.personalidadLocal(win);\n let personalidad=opciones.personalidad||personalidadLocal.leer();\n perfilPersonalidadMey(personalidad);\n const ingles=(opciones.idioma||doc.documentElement.lang||'es').startsWith('en');\n const textos={actor:ingles?'Mey: play or move me':'Mey: jugar o arrastrar a otro lugar',titulo:ingles?'Mey · you can take me with you':'Mey · puedes llevarme contigo',pausa:ingles?\"Pause Mey's walk\":'Pausar el paseo de Mey',seguir:ingles?\"Resume Mey's walk\":'Reanudar el paseo de Mey',pausaCorta:ingles?'Mey · pause':'Mey · pausa',seguirCorta:ingles?'Mey · resume':'Mey · seguir'};\n const actor=doc.createElement('button');actor.type='button';actor.className='mey-libre';\n const sincronizarAccion=()=>{actor.setAttribute('aria-label',typeof opciones.accion==='function'?(ingles?'Mey: help or move me':'Mey: ayuda o arrastrar a otro lugar'):textos.actor);actor.title=textos.titulo;};\n sincronizarAccion();\n const pausa=doc.createElement('button');pausa.type='button';pausa.className='mey-libre-pausa';\n pausa.setAttribute('aria-label',textos.pausa);pausa.setAttribute('aria-pressed','false');pausa.textContent=textos.pausaCorta;\n doc.body.append(actor,pausa);doc.documentElement.dataset.erlenMeyPresencia='';\n const celda=win.innerWidth<700?3:4,w=16*celda,h=18*celda,O={x:w/2,y:.55*h};\n actor.style.transformOrigin=`${O.x}px ${O.y.toFixed(2)}px`;\n const limitar=(n,a,b)=>Math.min(Math.max(n,a),Math.max(a,b));\n const suelo=()=>Math.max(8,win.innerHeight-h-70),derecha=()=>Math.max(8,win.innerWidth-w-8);\n const selectorAnclas=()=>opciones.anclas||'.hero-strip,.grupo-herramientas>h3,.workspace-note,.erlen-inicio-meta';\n let x=limitar(win.innerWidth-w-32,8,derecha()),y=suelo(),vx=0,velY=0,vy=0,elevacion=0,modo='camina',rot=0,giro=0,acumulado=0;\n let ultimo=0,raf=0,muerta=false,manual=false,arrastre=null,foco=false,rumbo=-1,distancia=0,pend=null,pivote=null,pivoteAntes=null,vPivote=0,plataformas=[],punteroAnt=null,ultimoEmpujon=-Infinity,vxFrame=0,rotAntes=0;\n let prox=0,sonda=-Infinity,obstaculos=[],ruta=[],puntero=null,seguido=0,gestoHasta=0,ultimoSalto=-Infinity,ultimoDibujo=-Infinity,cuadro='',replanear=true,ignorarClic=false,ocultaAntes=false,metaPuntero=null,sobreMey=false;\n const objetivo={x:0,y:0},vel={x:0,y:0},cuerpo={x:0,y:0,vx:0,vy:0,rot:0,giro:0},cuerpoLim={izq:8,der:8,techo:8,suelo:8,ancho:w,alto:h,plataformas},pivotePaso={x:0,y:0};\n const gestos={agacharHasta:0,estirarHasta:0,grandesHasta:0,inclinar:0,inclinarHasta:0},punteroV={x:0,y:0};\n const apariencia=mey.aparienciaLocal(win);\n const colorLocal=mey.colorLocal(win);\n const reducida=()=>!!mq?.matches||!!win.navigator.connection?.saveData;\n const quieta=()=>manual||reducida()||foco||doc.hidden||!!actor.closest('[inert]');\n const posicionar=()=>{\n  const py=modo==='camina'?limitar(y+elevacion,8,suelo()):y;\n  actor.style.transform=`translate3d(${x.toFixed(2)}px,${py.toFixed(2)}px,0)${Math.abs(rot)>1e-4?` rotate(${rot.toFixed(4)}rad)`:''}`;\n  actor.dataset.x=x.toFixed(2);actor.dataset.y=py.toFixed(2);\n };\n const direccion=(v,margen)=>v < -margen?-1:v > margen?1:0;\n const dibujar=t=>{\n  const aire=modo==='vuela',colgada=modo==='colgada',agitada=colgada&&(Math.abs(giro)>4||vPivote>250);\n  const marcha=modo==='camina'&&Math.hypot(vx,velY)>8&&!quieta()&&!arrastre;\n  const estado=quieta()?'quieta':arrastre||colgada?'juega':aire?velY<0?'salta':'cae':elevacion<-.5?(vy<0?'salta':'cae'):marcha?'camina':'observa';\n  actor.dataset.estado=estado;\n  actor.dataset.meyPersonalidad=personalidad;\n  const perfil=perfilPersonalidadMey(personalidad),fase=t%perfil.gesto;\n  const expresiva=!quieta()&&!arrastre&&!aire&&!colgada&&fase<900;\n  const e={...neutro(),caminando:marcha?1+Math.floor(distancia/(celda*2))%4:0,\n   mirada:{dx:puntero?direccion(puntero.x-x-w/2,24):rumbo,dy:puntero?direccion(puntero.y-y-h/2,28):0},\n   parpadeo:!quieta()&&Math.floor(t/140)%31===30,\n   chapoteo:aire||agitada?(Math.floor(t/166)%2?'der':'izq'):null,\n   ojos:t<gestos.grandesHasta||aire&&Math.hypot(vx,velY)>900||colgada&&Math.abs(giro)>6?'grandes':gestoHasta>t?'felices':null,\n   agachar:t<gestos.agacharHasta?1:0,\n   estirar:t>=gestos.agacharHasta&&t<gestos.estirarHasta?1:0,\n   inclinar:!aire&&!colgada&&t<gestos.inclinarHasta?gestos.inclinar:0};\n  const atuendo=apariencia.leer(),color=colorLocal.leer();\n  if(expresiva){\n   if(personalidad==='tranquila')e.parpadeo=fase<250?'ambos':false;\n   else if(personalidad==='traviesa'){e.parpadeo=fase<250?'guino':false;e.brazoIzq=fase<450?1:0;}\n   else{e.brazoIzq=2;e.saludo=2;e.ojos='felices';e.inclinar=fase<450?-1:1;}\n  }\n  const dibujo=JSON.stringify([e,atuendo,color]);\n  if(dibujo===cuadro||(t-ultimoDibujo<90&&!quieta()))return;\n  cuadro=dibujo;ultimoDibujo=t;\n  actor.innerHTML=svgMey(cuadroMey('hola',e,atuendo,false),'hola',atuendo,{celda,color},true);\n };\n const sondear=()=>{\n  const extra=typeof opciones.evitar==='function'?opciones.evitar():opciones.evitar||[];\n  obstaculos=[...doc.querySelectorAll('a,button,summary,erlen-suite-nav,input,select,textarea,[contenteditable=\"true\"],iframe,canvas,[role=\"dialog\"],[role=\"button\"],[role=\"option\"],[role=\"tab\"],[data-mey-evitar]'),...extra]\n   .filter(e=>e?.getBoundingClientRect&&e!==actor&&e!==pausa&&!e.closest('.mey-libre,[inert]'))\n   .map(e=>e.getBoundingClientRect()).filter(r=>r.width&&r.height&&r.bottom>0&&r.top<win.innerHeight);\n  plataformas=[...doc.querySelectorAll(selectorAnclas())].map(e=>e.getBoundingClientRect()).filter(r=>r.width&&r.bottom>0&&r.top<win.innerHeight).map(r=>({left:r.left,right:r.right,top:r.top}));\n };\n const colision=(nx,ny)=>obstaculos.some(r=>nx+w>r.left-6&&nx<r.right+6&&ny+h>r.top-6&&ny<r.bottom+6);\n const pasoLibre=(a,b)=>{\n  const n=Math.max(1,Math.ceil(Math.hypot(b.x-a.x,b.y-a.y)/12));\n  for(let i=1;i<=n;i++)if(colision(a.x+(b.x-a.x)*i/n,a.y+(b.y-a.y)*i/n))return false;\n  return true;\n };\n const proteger=()=>{\n  if(modo==='vuela'){actor.style.visibility='';actor.style.pointerEvents=colision(x,y)?'none':'';return;}\n  // Si un control aparece o se desplaza debajo de ella, cede el clic inmediatamente.\n  // Sigue desde la misma posición hasta salir; jamás se teletransporta a un borde.\n  const oculta=colision(x,y+elevacion);\n  actor.style.visibility=oculta?'hidden':'';\n  actor.style.pointerEvents='';\n  if(oculta&&!ocultaAntes)replanear=true;ocultaAntes=oculta;\n };\n const planear=(meta,t)=>{\n  // Rejilla de pasos y búsqueda de rutas dentro del espacio visible. Incluye ambos\n  // márgenes incluso en móvil; cada tramo completo se comprueba, no solo su extremo.\n  const xs=[8],ys=[8];\n  for(let n=72;n<derecha();n+=64)xs.push(n);if(derecha()>8)xs.push(derecha());\n  for(let n=72;n<suelo();n+=64)ys.push(n);if(suelo()>8)ys.push(suelo());\n  const nodos=[];\n  for(let j=0;j<ys.length;j++)for(let i=0;i<xs.length;i++)if(!colision(xs[i],ys[j]))nodos.push({x:xs[i],y:ys[j],i,j});\n  const actual={x,y},oculta=colision(x,y);\n  const inicio=nodos.toSorted((a,b)=>Math.hypot(a.x-x,a.y-y)-Math.hypot(b.x-x,b.y-y)).find(n=>oculta||pasoLibre(actual,n));\n  if(!inicio){ruta=[];prox=t+900;replanear=false;return;}\n  const porCelda=new Map(nodos.map(n=>[`${n.i},${n.j}`,n])),padres=new Map([[inicio,null]]),cola=[inicio];\n  for(let k=0;k<cola.length;k++){\n   const a=cola[k];\n   for(const [i,j] of [[a.i-1,a.j],[a.i+1,a.j],[a.i,a.j-1],[a.i,a.j+1]]){\n    const b=porCelda.get(`${i},${j}`);\n    if(b&&!padres.has(b)&&pasoLibre(a,b)){padres.set(b,a);cola.push(b);}\n   }\n  }\n  const fin=cola.toSorted((a,b)=>Math.hypot(a.x-meta.x,a.y-meta.y)-Math.hypot(b.x-meta.x,b.y-meta.y))[0];\n  const camino=[];for(let n=fin;n;n=padres.get(n))camino.unshift({x:n.x,y:n.y});\n  // Suprime esquinas innecesarias sin atajar a través de un control.\n  ruta=[];let desde=actual;\n  while(camino.length){let i=camino.length-1;while(i>0&&!pasoLibre(desde,camino[i]))i--;const siguiente=camino[i];ruta.push(siguiente);desde=siguiente;camino.splice(0,i+1);}\n  prox=t+5500;replanear=false;\n };\n const destino=t=>{\n  const siguiendo=puntero&&t-puntero.t<1800&&Math.hypot(puntero.x-x-w/2,puntero.y-y-h/2)<260;\n  if(siguiendo){\n   const lado=puntero.x>x+w/2?-1:1;\n   return {x:limitar(puntero.x-w/2+lado*64,8,derecha()),y:limitar(puntero.y-h/2+70,8,suelo())};\n  }\n  const anclas=[...doc.querySelectorAll(selectorAnclas())].map(e=>e.getBoundingClientRect()).filter(r=>r.width&&r.top>h+60&&r.top<win.innerHeight-80);\n  const fase=Math.floor(t/5500),ancla=anclas[fase%Math.max(1,anclas.length)];\n  return {x:limitar(win.innerWidth*(.12+((fase*.37)%.7)),8,derecha()),y:ancla?limitar(ancla.top-h-12,8,suelo()):suelo()};\n };\n const aterrizar=(imp,t)=>{\n  modo='camina';velY=0;vy=0;elevacion=0;objetivo.x=objetivo.y=0;rot=Math.atan2(Math.sin(rot),Math.cos(rot));actor.style.pointerEvents='';ruta=[];replanear=false;prox=t+600;\n  if(imp>900){gestos.agacharHasta=t+300;gestos.estirarHasta=t+400;}\n  else if(imp>300){gestos.agacharHasta=t+200;gestos.estirarHasta=t+300;}\n  else {gestos.agacharHasta=t+100;gestos.estirarHasta=t+100;}\n  if(imp>1200)gestos.grandesHasta=t+600;\n };\n const salto=t=>{if(t-ultimoSalto<1000||quieta()||modo!=='camina'||elevacion!==0||vy!==0)return;ultimoSalto=t;vy=-FISICA_MEY.SALTO;gestoHasta=t+900;};\n const paso=t=>{\n  raf=0;if(muerta)return;if(!actor.isConnected){control.detener();return;}\n  if(quieta()){\n   ultimo=0;\n   // Un modal con foco en un botón puede cerrar sin focusout: solo vigila el inert.\n   if(!manual&&!reducida()&&!foco&&!doc.hidden)raf=win.requestAnimationFrame(paso);\n   return;\n  }\n  const dt=ultimo?Math.min(.05,(t-ultimo)/1000):0;ultimo=t;\n  if(t-sonda>250){sondear();sonda=t;}\n  acumulado+=dt;\n  let n=Math.min(FISICA_MEY.SUBPASOS,Math.floor(acumulado/FISICA_MEY.H));\n  acumulado-=n*FISICA_MEY.H;if(acumulado>FISICA_MEY.H)acumulado=0;\n  if(arrastre){\n   if(modo==='colgada'){\n    for(let i=0;i<n;i++){\n     if(i===n-1)rotAntes=rot;\n     pivotePaso.x=pivoteAntes.x+(pivote.x-pivoteAntes.x)*(i+1)/n;\n     pivotePaso.y=pivoteAntes.y+(pivote.y-pivoteAntes.y)*(i+1)/n;\n     penduloMey(pend,pivotePaso.x,pivotePaso.y,FISICA_MEY.H);\n     rot=pend.phi0-anguloMey(pend,pivotePaso.x,pivotePaso.y);\n     const c=Math.cos(rot),s=Math.sin(rot);\n     x=pivotePaso.x-O.x-(arrastre.gx*c-arrastre.gy*s);\n     y=pivotePaso.y-O.y-(arrastre.gx*s+arrastre.gy*c);\n    }\n    vPivote=dt?Math.hypot(pivote.x-pivoteAntes.x,pivote.y-pivoteAntes.y)/dt:0;\n    pivoteAntes={x:pivote.x,y:pivote.y};\n   }else vPivote=0;\n   dibujar(t);posicionar();raf=win.requestAnimationFrame(paso);return;\n  }\n  proteger();\n  if(puntero&&t-puntero.t<1800&&t-seguido>240&&Math.hypot(puntero.x-x-w/2,puntero.y-y-h/2)<260){\n   const metaPaseo=destino(t);if(!metaPuntero||Math.hypot(metaPaseo.x-metaPuntero.x,metaPaseo.y-metaPuntero.y)>24){replanear=true;metaPuntero=metaPaseo;}seguido=t;\n  }else metaPuntero=null;\n  if(replanear||t>prox)planear(destino(t),t);\n  while(ruta.length&&Math.hypot(ruta[0].x-x,ruta[0].y-y)<2)ruta.shift();\n  const meta=sobreMey?{x,y}:ruta[0]||{x,y},dx=meta.x-x,dy=meta.y-y,d=Math.hypot(dx,dy);\n  llegadaMey(dx,dy,objetivo);\n  cuerpoLim.der=derecha();cuerpoLim.suelo=suelo();\n  let distanciaPaso=0;\n  for(let i=0;i<n;i++){\n   if(modo==='vuela'){\n    cuerpo.x=x;cuerpo.y=y;cuerpo.vx=vx;cuerpo.vy=velY;cuerpo.rot=rot;cuerpo.giro=giro;\n    const r=vueloMey(cuerpo,FISICA_MEY.H,cuerpoLim);\n    x=cuerpo.x;y=cuerpo.y;vx=cuerpo.vx;velY=cuerpo.vy;rot=cuerpo.rot;giro=cuerpo.giro;\n    if(r<0)gestos.agacharHasta=t+100;\n    else if(r>0)aterrizar(r,t);\n   }\n   if(modo==='camina'){\n    if(elevacion===0&&vy===0){\n     vel.x=vx;vel.y=velY;marchaMey(vel,objetivo,FISICA_MEY.H);vx=vel.x;velY=vel.y;\n    }\n    const nx=limitar(x+vx*FISICA_MEY.H,8,derecha()),ny=limitar(y+velY*FISICA_MEY.H,8,suelo());\n    if(colision(x,y)||pasoLibre({x,y},{x:nx,y:ny})){\n     distanciaPaso+=Math.hypot(nx-x,ny-y);x=nx;y=ny;\n    }else {vx=velY=0;ruta=[];replanear=true;}\n    if(elevacion<0||vy<0){\n     vy+=FISICA_MEY.G*FISICA_MEY.H;elevacion+=vy*FISICA_MEY.H;\n     if(elevacion>=0){elevacion=0;vy=0;gestos.agacharHasta=t+100;}\n    }\n    if(rot||giro){\n     cuerpo.rot=rot;cuerpo.giro=giro;enderezarMey(cuerpo,FISICA_MEY.H);rot=cuerpo.rot;giro=cuerpo.giro;\n    }\n   }\n  }\n  distancia+=distanciaPaso;\n  if(modo==='camina'){\n   if(Math.abs(vx)>8)rumbo=vx<0?-1:1;\n   const ax=dt?(vx-vxFrame)/dt:0;vxFrame=vx;\n   if(elevacion===0&&vy===0&&Math.abs(ax)>150){gestos.inclinar=Math.sign(ax);gestos.inclinarHasta=t+170;}\n   if(!arrastre&&!quieta()&&elevacion===0&&vy===0&&puntero&&t-puntero.t<120&&Math.hypot(punteroV.x,punteroV.y)>=FISICA_MEY.V_PUNTERO&&Math.hypot(puntero.x-x-w/2,puntero.y-y-h/2)<=1.5*w&&\n      (puntero.x<x-8||puntero.x>x+w+8||puntero.y<y-8||puntero.y>y+h+8)&&t-ultimoEmpujon>=FISICA_MEY.PAUSA_EMPUJON){\n    const s=Math.sign(punteroV.x)||1;\n    vx=s*FISICA_MEY.EMPUJON;velY=0;vy=-FISICA_MEY.SALTO_EMPUJON;\n    gestos.grandesHasta=t+500;gestos.inclinar=-s;gestos.inclinarHasta=t+170;\n    ultimoEmpujon=t;ruta=[];replanear=true;\n   }\n  }\n  if(!ruta.length&&d<2)prox=Math.min(prox,t+750);\n  proteger();dibujar(t);posicionar();raf=win.requestAnimationFrame(paso);\n };\n const arrancar=()=>{\n  if(muerta)return;if(!actor.isConnected){control.detener();return;}\n  win.cancelAnimationFrame(raf);raf=0;ultimo=0;acumulado=0;sondear();proteger();\n  if(quieta()){vx=velY=0;cuadro='';dibujar(0);posicionar();}\n  else raf=win.requestAnimationFrame(paso);\n };\n const fisicaLibre=()=>!quieta();\n const colgar=()=>{\n  modo='colgada';elevacion=0;vy=0;\n  let L=Math.hypot(arrastre.gx,arrastre.gy),phi0=Math.atan2(-arrastre.gx,-arrastre.gy);\n  if(L<2*celda){L=2*celda;phi0=0;}\n  const phi=phi0-rot;\n  pend={L,phi0,cx:pivote.x+L*Math.sin(phi),cy:pivote.y+L*Math.cos(phi)};\n  pend.qx=pend.cx-vx*FISICA_MEY.H;pend.qy=pend.cy-velY*FISICA_MEY.H;\n  rotAntes=rot;pivoteAntes={x:pivote.x,y:pivote.y};\n };\n const mover=e=>{\n  if(arrastre&&arrastre.id===e.pointerId){\n   if(Math.hypot(e.clientX-arrastre.inicioX,e.clientY-arrastre.inicioY)>4)arrastre.movida=true;\n   if(!fisicaLibre()||!arrastre.movida){\n    x=limitar(arrastre.x0+e.clientX-arrastre.inicioX,8,derecha());y=limitar(arrastre.y0+e.clientY-arrastre.inicioY,8,suelo());\n    vx=velY=vy=elevacion=0;posicionar();\n   }else {\n    pivote={x:limitar(e.clientX,0,win.innerWidth),y:limitar(e.clientY,0,win.innerHeight)};\n    if(modo!=='colgada')colgar();\n   }\n  }else if(e.pointerType!=='touch'){\n   const ahora=win.performance.now();\n   puntero={x:e.clientX,y:e.clientY,t:ahora};\n   if(punteroAnt){\n    const transcurrido=ahora-punteroAnt.t;\n    if(transcurrido>=8){\n     const escala=1000/transcurrido;\n     punteroV.x=punteroV.x*.5+(e.clientX-punteroAnt.x)*escala*.5;\n     punteroV.y=punteroV.y*.5+(e.clientY-punteroAnt.y)*escala*.5;\n     punteroAnt={x:e.clientX,y:e.clientY,t:ahora};\n    }\n   }else punteroAnt={x:e.clientX,y:e.clientY,t:ahora};\n  }\n };\n const bajar=e=>{\n  if(e.button!==0)return;e.preventDefault();ignorarClic=false;\n  const qx=e.clientX-(x+O.x),qy=e.clientY-(y+O.y),c=Math.cos(rot),s=Math.sin(rot);\n  arrastre={id:e.pointerId,x0:x,y0:y,inicioX:e.clientX,inicioY:e.clientY,movida:false,gx:qx*c+qy*s,gy:-qx*s+qy*c};\n  actor.setPointerCapture?.(e.pointerId);actor.dataset.arrastrando='';\n };\n const subir=()=>{\n  if(!arrastre)return;\n  const a=arrastre;ignorarClic=a.movida;arrastre=null;delete actor.dataset.arrastrando;\n  if(modo==='colgada'){\n   if(quieta()){\n    modo='camina';rot=giro=0;x=limitar(x,8,derecha());y=limitar(y,8,suelo());pend=null;\n   }else {\n    vx=(pend.cx-pend.qx)/FISICA_MEY.H;velY=(pend.cy-pend.qy)/FISICA_MEY.H;\n    const rapidez=Math.hypot(vx,velY);\n    if(rapidez>FISICA_MEY.V_LANZAR){const k=FISICA_MEY.V_LANZAR/rapidez;vx*=k;velY*=k;}\n    giro=limitar((rot-rotAntes)/FISICA_MEY.H,-FISICA_MEY.GIRO_MAX,FISICA_MEY.GIRO_MAX);\n    modo='vuela';pend=null;\n   }\n  }else if(modo==='vuela'){vx=velY=giro=0;}\n  ruta=[];replanear=true;puntero=null;sondear();proteger();\n };\n const jugar=()=>{\n  if(ignorarClic){ignorarClic=false;return;}\n  if(quieta())return;\n  if(typeof opciones.accion==='function')opciones.accion();else salto(win.performance.now());\n };\n const desplazar=()=>{\n  replanear=true;sonda=-Infinity;\n  if(!quieta()&&modo==='camina'&&!arrastre)salto(win.performance.now());\n  // Pausada permanece exactamente donde estaba; solo cede si un control ocupa su lugar.\n  if(quieta()){sondear();proteger();}\n };\n const cambiarPausa=()=>{manual=!manual;pausa.setAttribute('aria-pressed',String(manual));pausa.setAttribute('aria-label',manual?textos.seguir:textos.pausa);pausa.textContent=manual?textos.seguirCorta:textos.pausaCorta;arrancar();};\n const observarFoco=win.MutationObserver?new win.MutationObserver(()=>alFoco()):null;\n const alFoco=()=>{\n  let activo=doc.activeElement;while(activo?.shadowRoot?.activeElement)activo=activo.shadowRoot.activeElement;\n  const nueva=!!activo?.matches('input,textarea,select,[contenteditable=\"true\"]');\n  if(nueva===foco)return;foco=nueva;\n  if(foco)observarFoco?.observe(doc.body,{subtree:true,childList:true});else observarFoco?.disconnect();arrancar();\n };\n const alSalirDelFoco=()=>win.queueMicrotask(alFoco);\n const tecla=e=>{if(e.key==='Escape'&&!manual){subir();cambiarPausa();}};\n const redimensionar=()=>{if(modo==='camina'){x=limitar(x,8,derecha());y=limitar(y,8,suelo());}ruta=[];replanear=true;arrancar();};\n const aparienciaCambiada=()=>{cuadro='';ultimoDibujo=-Infinity;dibujar(win.performance.now());};\n const personalidadCambiada=ev=>{\n  if(ev?.type==='storage'&&ev.key!==null&&ev.key!==undefined&&ev.key!=='erlen-mey-personalidad')return;\n  personalidad=opciones.personalidad||personalidadLocal.leer();\n  aparienciaCambiada();\n };\n const atender=()=>{sobreMey=true;gestoHasta=win.performance.now()+600;};\n const dejar=()=>{sobreMey=false;};\n const eventos=[[actor,'pointerenter',atender],[actor,'pointerleave',dejar],[actor,'dragstart',e=>e.preventDefault()],[win,'pointermove',mover],[win,'resize',redimensionar],[doc,'visibilitychange',arrancar],[doc,'focusin',alFoco],[doc,'focusout',alSalirDelFoco],[doc,'keydown',tecla],[actor,'pointerdown',bajar],[actor,'pointerup',subir],[actor,'pointercancel',subir],[actor,'lostpointercapture',subir],[actor,'click',jugar],[pausa,'click',cambiarPausa],[win,'erlen-mey-color',aparienciaCambiada],[win,'erlen-mey-apariencia',aparienciaCambiada],[win,'storage',aparienciaCambiada],[win,'erlen-mey-personalidad',personalidadCambiada],[win,'storage',personalidadCambiada]];\n for(const [el,n,fn] of eventos)el.addEventListener(n,fn,{passive:n==='pointermove'});\n doc.addEventListener('scroll',desplazar,{capture:true,passive:true});mq?.addEventListener?.('change',arrancar);\n const control={elemento:actor,pausa,\n  actualizar(nuevas={}){if(nuevas.personalidad)perfilPersonalidadMey(nuevas.personalidad);opciones={...opciones,...nuevas};personalidadCambiada();sincronizarAccion();replanear=true;if(nuevas.pausaEn)control.ubicarPausa(nuevas.pausaEn);},\n  ubicarPausa(contenedor){pausa.classList.toggle('mey-libre-pausa--integrada',!!contenedor);(contenedor||doc.body).append(pausa);},\n  estado:()=>({x,y:modo==='camina'?y+elevacion:y,tx:ruta.at(-1)?.x??x,ty:ruta.at(-1)?.y??y,vx,velY,vy,modo,rot,estado:actor.dataset.estado,quieta:quieta(),personalidad}),\n  detener(){muerta=true;win.cancelAnimationFrame(raf);for(const [el,n,fn] of eventos)el.removeEventListener(n,fn);doc.removeEventListener('scroll',desplazar,true);mq?.removeEventListener?.('change',arrancar);observarFoco?.disconnect();actor.remove();pausa.remove();if(doc[claveRecorridoMey]===control){delete doc[claveRecorridoMey];delete doc.documentElement.dataset.erlenMeyPresencia;}}\n };\n actor.control=control;doc[claveRecorridoMey]=control;\n if(opciones.pausaEn)control.ubicarPausa(opciones.pausaEn);\n sondear();proteger();dibujar(0);posicionar();arrancar();return control;\n};\n\n// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n/* Panel de ayuda de Mey: «te guía y ejecuta con tu clic». Busca entre los comandos reales\n   de la cinta (suite-cinta.mjs#comandos) más los extras que pase la app, muestra dónde\n   está cada uno (pestaña › grupo) y lo ejecuta solo cuando la persona pulsa «Hazlo».\n   Mey no lee el documento ni envía nada: el panel solo conoce etiquetas de comandos y lo\n   que la app declare en `pasos` y `extras`; no hay modelo de lenguaje.\n\n   crearAyudaMey(doc, {\n     app:'notes', nombre:'Erlen Notes',\n     mascota:mey('hola'),                 // SVG inicial; false si la página ya tiene a Mey\n     cinta:()=>cintaHandle|null,          // función: la cinta se recrea en varias apps\n     pasos:[{control:'nueva', pestana?, texto}],  | ()=>[…],  atajos sugeridos\n     extras:()=>[Comando…],               // comandos fuera de la cinta (menú Archivo…)\n     cerrar:()=>{}                        // cierra el cajón que contiene el panel\n   })\n   Devuelve {nodo, enfocarBusqueda(), destruir()}.\n   Comando = {clave, pestana, etiqueta, ruta, atajo?, titulo?, habilitado, ejecutar()}\n   (el mismo tipo que suite-cinta.mjs#comandos; los extras suelen llevar pestana:'').\n   Estilos en marco.css (.erlen-ayuda-*), solo con tokens --erlen-*. */\n\nconst TEXTOS_AYUDA_MEY={\n es:{\n  titulo:'Mey te ayuda',\n  intro:'Encuentro comandos de esta herramienta y los ejecuto cuando me lo pides. No leo tu documento ni envío nada.',\n  etiquetaBuscar:'¿Qué quieres hacer?',\n  ayudaBuscar:'Por ejemplo: guardar, insertar tabla, exportar',\n  empieza:'Empieza por aquí',\n  mostrar:'Mostrar',\n  hazlo:'Hazlo',\n  noDisponible:'No disponible ahora',\n  sinResultados:'No encontré ese comando en esta herramienta. Prueba con otra palabra.',\n  resultados:n=>n===1?'1 resultado':n+' resultados',\n  sinCinta:'Esta vista no tiene cinta de herramientas; solo puedo mostrarte las acciones de la cabecera y del menú Archivo.',\n  ubicacion:'Dónde está'\n },\n en:{\n  titulo:'Mey helps',\n  intro:'I find commands in this tool and run them when you ask. I don\\'t read your document or send anything.',\n  etiquetaBuscar:'What do you want to do?',\n  ayudaBuscar:'For example: save, insert table, export',\n  empieza:'Start here',\n  mostrar:'Show me',\n  hazlo:'Do it',\n  noDisponible:'Not available now',\n  sinResultados:'I couldn\\'t find that command in this tool. Try another word.',\n  resultados:n=>n===1?'1 result':n+' results',\n  sinCinta:'This view has no toolbar; I can only show header and File menu actions.',\n  ubicacion:'Where it is'\n }\n};\n\n/* Búsqueda por palabras: cada token debe ser prefijo de una palabra de la etiqueta, la ruta,\n   el título o el atajo, o de una palabra de su grupo de sinónimos (Y entre tokens, O dentro\n   del grupo). Así «guardar» encuentra «Descargar proyecto» y «desc» encuentra «Guardar». */\nconst SINONIMOS=[\n ['guardar','descargar','exportar'],\n ['abrir','importar','cargar'],\n ['nuevo','crear','anadir','agregar','insertar'],\n ['buscar','encontrar','reemplazar'],\n ['deshacer','revertir'],\n ['imprimir','pdf'],\n ['ayuda','atajos']\n];\n\nfunction normalizar(t){\n return String(t).normalize('NFD').replace(/\\p{M}/gu,'').toLowerCase();\n}\nfunction palabras(t){\n return normalizar(t).split(/[^a-z0-9]+/).filter(Boolean);\n}\nfunction coincideToken(token,palabrasPajar){\n if(palabrasPajar.some(p=>p.startsWith(token)))return true;\n for(const g of SINONIMOS){\n  if(!g.some(w=>w.startsWith(token)))continue;\n  if(palabrasPajar.some(p=>g.some(w=>p===w||p.startsWith(w))))return true;\n }\n return false;\n}\nfunction buscarComandos(consulta,entradas){\n const tokens=palabras(consulta);\n if(!tokens.length)return [];\n const hallazgos=[];\n entradas.forEach((entrada,i)=>{\n  const c=entrada.comando;\n  const palabrasEtiqueta=palabras(c.etiqueta);\n  const pajar=[...palabrasEtiqueta,...palabras((c.ruta||[]).join(' ')),...palabras(c.titulo||''),...palabras(c.atajo||'')];\n  let puntos=0;\n  for(const tk of tokens){\n   if(!coincideToken(tk,pajar))return;\n   puntos+=palabrasEtiqueta.some(p=>p===tk)?3:palabrasEtiqueta.some(p=>p.startsWith(tk))?2:1;\n  }\n  hallazgos.push({entrada,puntos,i});\n });\n hallazgos.sort((a,b)=>b.puntos-a.puntos||(a.entrada.comando.habilitado!==b.entrada.comando.habilitado?(a.entrada.comando.habilitado?-1:1):a.i-b.i));\n return hallazgos.slice(0,8).map(h=>h.entrada);\n}\n\nfunction crearAyudaMey(doc,{app,nombre,mascota,cinta,pasos,extras,cerrar}){\n if(!doc||!doc.createElement)throw Error('crearAyudaMey necesita un documento.');\n const idioma=(doc.documentElement.lang||'').toLowerCase().startsWith('en')?'en':'es';\n const t=TEXTOS_AYUDA_MEY[idioma];\n const mascotaHola=mascota===false?'':typeof mascota==='string'&&mascota?mascota:mey('hola');\n const el=(tag,attrs={},...hijos)=>{\n  const n=doc.createElement(tag);\n  for(const [k,v] of Object.entries(attrs||{}))if(v!==null&&v!==undefined&&v!==false)n.setAttribute(k,v===true?'':String(v));\n  n.append(...hijos.filter(h=>h!==null&&h!==undefined));\n  return n;\n };\n\n const nodo=el('section',{class:'erlen-ayuda','data-erlen-ayuda-app':app||''});\n const mascotaNodo=el('span',{class:'erlen-ayuda-mascota','aria-hidden':'true'});\n mascotaNodo.innerHTML=mascotaHola;\n const intro=el('p',{class:'erlen-ayuda-intro'},t.intro);\n const rotuloBuscar=el('span',{class:'erlen-ayuda-buscar-rotulo'},t.etiquetaBuscar);\n const entrada=el('input',{type:'search',class:'erlen-ayuda-entrada',placeholder:t.ayudaBuscar,autocomplete:'off',spellcheck:'false'});\n const buscar=el('label',{class:'erlen-ayuda-buscar'},rotuloBuscar,entrada);\n const estado=el('p',{class:'erlen-ayuda-estado',role:'status','aria-live':'polite'});\n const avisoCinta=el('p',{class:'erlen-ayuda-sincinta',hidden:true});\n const rotuloEmpieza=el('h3',{class:'erlen-ayuda-empieza',hidden:true},t.empieza);\n const lista=el('ul',{class:'erlen-ayuda-lista'});\n nodo.append(el('div',{class:'erlen-ayuda-cabecera'},mascota===false?null:mascotaNodo,el('div',{class:'erlen-ayuda-presentacion'},el('h2',{class:'erlen-ayuda-titulo'},t.titulo),intro)),buscar,estado,avisoCinta,rotuloEmpieza,lista);\n\n // Comandos disponibles = cinta (si existe) + extras. Se recalcula en cada apertura y\n // pulsación. Cada entrada recuerda si viene de la cinta: solo esos pueden «Mostrar».\n function disponibles(){\n  const manejar=cinta?cinta():null;\n  const deCinta=manejar&&typeof manejar.comandos==='function'?manejar.comandos():[];\n  const fuera=extras?extras():[];\n  return [...deCinta.map(comando=>({comando,deCinta:true})),...(fuera||[]).map(comando=>({comando,deCinta:false}))];\n }\n function resolverPasos(entradas){\n  const fuente=typeof pasos==='function'?pasos():(pasos||[]);\n  const resueltos=[];\n  for(const p of fuente){\n   if(!p||typeof p.control!=='string')continue;\n   const hallado=entradas.find(e=>e.comando.clave===p.control&&(!p.pestana||e.comando.pestana===p.pestana));\n   if(hallado)resueltos.push({entrada:hallado,texto:p.texto});\n  }\n  return resueltos;\n }\n function filaDe({entrada,texto}){\n  const c=entrada.comando;\n  const li=el('li',{class:'erlen-ayuda-fila'});\n  li.append(el('span',{class:'erlen-ayuda-etiqueta'},c.etiqueta));\n  if(c.ruta&&c.ruta.length)li.append(el('small',{class:'erlen-ayuda-ruta'},t.ubicacion+': '+c.ruta.join(' › ')));\n  if(texto)li.append(el('small',{class:'erlen-ayuda-texto'},texto));\n  if(!c.habilitado)li.append(el('span',{class:'erlen-ayuda-no'},t.noDisponible));\n  const acciones=el('span',{class:'erlen-ayuda-acciones'});\n  if(entrada.deCinta){\n   const mostrar=el('button',{type:'button',class:'erlen-ayuda-mostrar'},t.mostrar);\n   mostrar.addEventListener('click',()=>{cerrar();const manejar=cinta?cinta():null;if(manejar)manejar.enfocar(c.clave,c.pestana||undefined);});\n   acciones.append(mostrar);\n  }\n  const hazlo=el('button',{type:'button',class:'erlen-ayuda-hazlo'},t.hazlo);\n  if(!c.habilitado){hazlo.disabled=true;}\n  else hazlo.addEventListener('click',()=>{cerrar();c.ejecutar();});\n  acciones.append(hazlo);\n  li.append(acciones);\n  return li;\n }\n function pintar(){\n  const entradas=disponibles();\n  const consulta=entrada.value;\n  const sinCinta=!cinta||!cinta();\n  avisoCinta.hidden=!sinCinta;\n  if(sinCinta)avisoCinta.textContent=t.sinCinta;\n  lista.replaceChildren();\n  mascotaNodo.innerHTML=mascotaHola;\n  if(consulta.trim()===''){\n   const resueltos=resolverPasos(entradas);\n   // Sin cinta, los extras son lo único ejecutable: se listan junto al aviso, sin duplicar\n   // los pasos ya resueltos.\n   if(sinCinta){\n    const vistos=new Set(resueltos.map(r=>r.entrada.comando.clave));\n    for(const e of entradas)if(!vistos.has(e.comando.clave))resueltos.push({entrada:e});\n   }\n   rotuloEmpieza.hidden=!resueltos.length;\n   estado.textContent=resueltos.length?'':t.ayudaBuscar;\n   for(const r of resueltos)lista.append(filaDe(r));\n   return;\n  }\n  rotuloEmpieza.hidden=true;\n  const hallazgos=buscarComandos(consulta,entradas);\n  estado.textContent=hallazgos.length?t.resultados(hallazgos.length):t.sinResultados;\n  if(!hallazgos.length&&mascota!==false)mascotaNodo.innerHTML=mey('pensando');\n  for(const h of hallazgos)lista.append(filaDe({entrada:h}));\n }\n entrada.addEventListener('input',pintar);\n pintar();\n return {\n  nodo,\n  enfocarBusqueda(){entrada.focus();},\n  destruir(){entrada.removeEventListener('input',pintar);if(nodo.isConnected)nodo.remove();}\n };\n}\n\n// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\n * of the Software, and to permit persons to whom the Software is furnished to do\n * so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n/* Marco común de las apps de Erlen Suite (docs/COHERENCIA-APPS.md §4): cabecera con marca,\n   nombre, menú de suite, título, estado y acciones; cinta debajo; cuerpo con navegación,\n   trabajo y detalles; pie. mountMarco solo organiza los nodos que la app le pasa: los mueve,\n   no los clona ni los reconstruye, así que las referencias, los listeners y la selección del\n   dominio se conservan. Estilos en diseno/marco.css, solo con tokens --erlen-*.\n\n   mountMarco(host, {\n     app: 'notes',                  // id de la app en la suite; perfil de Mey y menú\n     nombre: 'Erlen Notes',         // nombre visible (h1 del marco)\n     inicio: () => {},              // obligatorio, sin argumentos: activa el inicio real de la app\n     elementos: {                   // nodos propiedad de la app; solo trabajo es obligatorio\n       titulo?,                     // título editable del documento\n       estado?,                     // indicador de guardado (role=\"status\")\n       acciones?,                   // una acción principal y sus hermanas\n       utilidades?,                 // buscar, tema, ayuda…\n       cinta?,                      // cinta ya montada con mountCinta\n       navegacion?,                 // tira/esquema/biblioteca de la izquierda\n       trabajo,                     // documento, hoja, lienzo… (conserva su scroll y zoom)\n       detalles?,                   // propiedades largas a la derecha\n       pie?                         // estado y enlaces en el pie\n     },\n     navegacionSuite?: {items, home},  // catálogo serializado de mountSuiteNavigation; sin él,\n                                       // el menú conserva su detección standalone\n     mey?: false                    // por defecto Mey en la cabecera/estado (lugar «barra»)\n     ayuda?: {                      // panel de Mey que guía y ejecuta comandos (suite-mey-ayuda.mjs)\n       cinta?: ()=>cintaHandle|null,   // función: la cinta se recrea en varias apps\n       pasos?: [{control, pestana?, texto}] | ()=>[…],  // atajos sugeridos (controles de cinta)\n       extras?: ()=>[Comando…]         // comandos fuera de la cinta (menú Archivo, cabecera)\n     }\n   })\n   Devuelve {elemento, abrirDetalles(), cerrarDetalles(), abrirNavegacion(), cerrarNavegacion(),\n   abrirAyuda(), cerrarAyuda(), destruir()} (los controles del cajón de navegación son una\n   extensión aditiva deliberada del contrato original: el cajón móvil no existía cuando se\n   escribió; `abrirAyuda` abre el panel de Mey cuando la app pasa `ayuda`). Montar dos veces en\n   el mismo host es un error. Al destruir, los nodos vuelven a su padre original, se restauran\n   los `inert` previos, se libera el menú de suite, Mey y los listeners, y se retira el marco. */\n\nconst SLOTS=['titulo','estado','acciones','utilidades','cinta','navegacion','trabajo','detalles','pie'];\nconst ESTRECHO=920;\n\nconst MARCA_SVG='<svg viewBox=\"0 0 64 64\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M25 10h14v13.2c0 1.2.4 2.3 1.1 3.2L52.6 45A8 8 0 0 1 46 56H18a8 8 0 0 1-6.6-11.7l12.5-18.6c.7-.9 1.1-2 1.1-3.2Z\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3.4\" stroke-linejoin=\"round\"/><path d=\"M17.6 43h28.8l4.4 6.5A4.3 4.3 0 0 1 46.7 55H17.3a4.3 4.3 0 0 1-4.1-5.8Z\" fill=\"var(--erlen-verde,#245b43)\"/><path d=\"M22 16h20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3.4\" stroke-linecap=\"round\"/></svg>';\n\nfunction crear(tag,clase,doc){const el=doc.createElement(tag);if(clase)el.className=clase;return el;}\n\n// Estado de `inert` de cada hijo de <body> mientras un cajón está abierto (atributo, no propiedad:\n// así funciona igual en JSDOM y en el navegador y se restaura exactamente lo previo).\nfunction inmovilizar(doc,exceptos){\n const guardados=[];\n for(const hijo of doc.body.children){\n  if(exceptos.includes(hijo))continue;\n  // Un dialog cerrado ya está fuera del foco. showModal() gestiona su propia modalidad;\n  // marcarlo inert explícitamente impediría usar formularios abiertos desde el cajón.\n  if(hijo.localName==='dialog'&&!hijo.open)continue;\n  guardados.push({hijo,inert:hijo.hasAttribute('inert')});\n  hijo.setAttribute('inert','');\n }\n return guardados;\n}\nfunction restaurar(guardados){\n for(const {hijo,inert} of guardados)if(inert)hijo.setAttribute('inert','');else hijo.removeAttribute('inert');\n}\n\nfunction mountMarco(host,config){\n if(!host||host.nodeType!==1)throw new Error('mountMarco: falta un host válido.');\n const doc=host.ownerDocument;\n if(!doc||!doc.defaultView)throw new Error('mountMarco: el host necesita un documento con ventana.');\n if(!config||typeof config!=='object')throw new Error('mountMarco: falta la configuración.');\n const {app,nombre,inicio,elementos,navegacionSuite}=config;\n if(typeof app!=='string'||!app.trim())throw new Error('mountMarco: falta app.');\n if(typeof nombre!=='string'||!nombre.trim())throw new Error('mountMarco: falta nombre.');\n aplicarIconoAplicacion(doc,app);\n if(typeof inicio!=='function')throw new Error('mountMarco: inicio debe ser un callback sin argumentos.');\n if(!elementos||typeof elementos!=='object')throw new Error('mountMarco: faltan elementos.');\n for(const [clave,nodo] of Object.entries(elementos)){\n  if(!SLOTS.includes(clave))throw new Error('mountMarco: elemento desconocido: '+clave);\n  if(nodo!==undefined&&nodo!==null&&(!nodo.ownerDocument||nodo.nodeType!==1))throw new Error('mountMarco: elemento inválido: '+clave);\n }\n const trabajo=elementos.trabajo;\n if(!trabajo||!trabajo.ownerDocument)throw new Error('mountMarco: falta el nodo de trabajo.');\n if(trabajo.ownerDocument!==doc)throw new Error('mountMarco: los nodos deben pertenecer al documento del host.');\n if(navegacionSuite!==undefined&&(!navegacionSuite||!Array.isArray(navegacionSuite.items)||!navegacionSuite.home))throw new Error('mountMarco: navegacionSuite debe ser {items, home}.');\n if(config.ayuda!==undefined){\n  const a=config.ayuda;\n  if(!a||typeof a!=='object'||Array.isArray(a))throw new Error('mountMarco: ayuda inválida: ayuda');\n  if(a.cinta!==undefined&&a.cinta!==null&&typeof a.cinta!=='function')throw new Error('mountMarco: ayuda inválida: cinta');\n  if(a.pasos!==undefined&&a.pasos!==null&&!Array.isArray(a.pasos)&&typeof a.pasos!=='function')throw new Error('mountMarco: ayuda inválida: pasos');\n  if(a.extras!==undefined&&a.extras!==null&&typeof a.extras!=='function')throw new Error('mountMarco: ayuda inválida: extras');\n }\n if(host.querySelector('.erlen-marco'))throw new Error('mountMarco: el host ya tiene un marco montado.');\n\n const win=doc.defaultView;\n const movidos=[];   // {nodo, padre, siguiente, indice} para devolverlos en destruir()\n const mover=nodo=>{if(!nodo)return;movidos.push({nodo,padre:nodo.parentNode,siguiente:nodo.nextSibling,indice:nodo.parentNode?[...nodo.parentNode.childNodes].indexOf(nodo):null});};\n for(const clave of SLOTS)mover(elementos[clave]);\n // Mover nodos vivos colapsa los rangos del documento que tocan el subárbol movido (los objetos\n // Range viven y mutan con él), así que se guardan sus límites como datos y se reconstruyen después.\n const seleccion=win.getSelection?win.getSelection():null;\n const guardarSeleccion=()=>{\n  const limites=[];\n  if(seleccion)for(let i=0;i<seleccion.rangeCount;i++){const r=seleccion.getRangeAt(i);limites.push({s:r.startContainer,o:r.startOffset,e:r.endContainer,f:r.endOffset});}\n  return {limites,foco:doc.activeElement};\n };\n const restaurarSeleccion=({limites,foco})=>{\n  // Primero el foco (focus() puede colapsar la selección en algunos motores), después los rangos.\n  if(foco&&foco!==doc.body&&foco.ownerDocument===doc&&doc.contains(foco)&&typeof foco.focus==='function')foco.focus({preventScroll:true});\n  if(seleccion&&limites.length){\n   seleccion.removeAllRanges();\n   for(const d of limites){\n    if(!d.s?.isConnected||!d.e?.isConnected)continue;\n    const r=doc.createRange();\n    try{r.setStart(d.s,d.o);r.setEnd(d.e,d.f);seleccion.addRange(r);}catch{/* límites ya no válidos */}\n   }\n  }\n };\n const estadoPrevio=guardarSeleccion();\n\n // data-erlen-app para los perfiles de Mey; se restaura al destruir.\n const raiz=doc.documentElement;\n const appPrevia=raiz.getAttribute('data-erlen-app');\n raiz.setAttribute('data-erlen-app',app);\n\n const marco=crear('div','erlen-marco',doc);\n const cabecera=crear('header','erlen-app-header',doc);\n const marca=crear('button','erlen-marco-marca',doc);\n marca.type='button';marca.title='Volver a '+nombre;\n marca.setAttribute('aria-label','Volver a '+nombre);\n marca.innerHTML=MARCA_SVG+'<span class=\"erlen-marco-marca-nombre\">Erlen</span>';\n const alPulsarMarca=()=>inicio();\n marca.addEventListener('click',alPulsarMarca);\n const abrirCajonNav=crear('button','erlen-marco-abrir-cajon',doc);\n abrirCajonNav.type='button';abrirCajonNav.title='Navegación';abrirCajonNav.setAttribute('aria-label','Abrir la navegación');\n abrirCajonNav.innerHTML='<svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M4 7h16M4 12h16M4 17h16\"/></svg>';\n const h1=crear('h1','erlen-marco-nombre',doc);\n h1.textContent=nombre;\n const huecoSuite=crear('div','erlen-marco-suite',doc);\n const titulo=crear('div','erlen-marco-titulo',doc);\n const estado=crear('div','erlen-marco-estado',doc);\n const conAyuda=!!config.ayuda&&config.mey!==false;\n const meyHueco=crear(conAyuda?'button':'span','erlen-marco-mey',doc);\n if(conAyuda){\n  meyHueco.type='button';\n  meyHueco.setAttribute('aria-haspopup','dialog');\n  const idioma=(doc.documentElement.lang||'').toLowerCase().startsWith('en')?'en':'es';\n  meyHueco.setAttribute('aria-label',idioma==='en'?'Mey, help for '+nombre:'Mey, ayuda de '+nombre);\n  meyHueco.title=TEXTOS_AYUDA_MEY[idioma].titulo;\n  meyHueco.addEventListener('click',abrirAyuda);\n }\n const acciones=crear('div','erlen-marco-acciones',doc);\n const utilidades=crear('div','erlen-marco-utilidades',doc);\n const controles=crear('div','erlen-marco-controles',doc);\n controles.append(titulo,estado,acciones,utilidades);\n cabecera.append(abrirCajonNav,marca,h1,huecoSuite,controles);\n for(const [contenedor,clave] of [[titulo,'titulo'],[estado,'estado'],[acciones,'acciones'],[utilidades,'utilidades']]){\n  if(elementos[clave])contenedor.append(elementos[clave]);\n  else if(contenedor!==estado)contenedor.remove();\n }\n estado.append(meyHueco);\n if(config.mey===false)meyHueco.remove();\n // El nombre del documento cede primero cuando falta ancho (marco.css, escritorio): si queda\n // recortado, su texto completo pasa a title y se restituye el title anterior cuando vuelve a caber.\n const nombreDoc=elementos.titulo;\n if(nombreDoc){\n  const sincroniza=()=>{\n   const texto=String(nombreDoc.value??nombreDoc.textContent??'').trim();\n   const recortado=nombreDoc.scrollWidth>nombreDoc.clientWidth+1;\n   if(texto&&recortado){\n    if(nombreDoc.dataset.tooltipNombre===undefined){nombreDoc.dataset.tooltipNombre=nombreDoc.getAttribute('title')??'';}\n    nombreDoc.title=texto;\n   }else if(nombreDoc.dataset.tooltipNombre!==undefined){\n    const previo=nombreDoc.dataset.tooltipNombre;\n    delete nombreDoc.dataset.tooltipNombre;\n    if(previo)nombreDoc.title=previo;else nombreDoc.removeAttribute('title');\n   }\n  };\n  for(const evento of ['pointerenter','focus','input'])nombreDoc.addEventListener(evento,sincroniza);\n  if(typeof doc.defaultView?.MutationObserver==='function')new doc.defaultView.MutationObserver(sincroniza).observe(nombreDoc,{childList:true,characterData:true,subtree:true});\n }\n\n const cuerpo=crear('div','erlen-marco-cuerpo',doc);\n const nodoNav=crear('nav','erlen-marco-navegacion',doc);\n const nodoTrabajo=crear('main','erlen-marco-trabajo',doc);\n const nodoDetalles=crear('aside','erlen-marco-detalles',doc);\n if(elementos.navegacion){nodoNav.append(elementos.navegacion);cuerpo.classList.add('con-navegacion');}\n if(elementos.detalles){nodoDetalles.append(elementos.detalles);}\n nodoTrabajo.append(trabajo);\n cuerpo.append(nodoNav,nodoTrabajo,nodoDetalles);\n if(!elementos.navegacion){nodoNav.remove();abrirCajonNav.remove();}\n if(!elementos.detalles)nodoDetalles.remove();\n\n marco.append(cabecera);\n if(elementos.cinta){const franja=crear('div','erlen-marco-cinta',doc);franja.append(elementos.cinta);marco.append(franja);}\n marco.append(cuerpo);\n const pie=elementos.pie?crear('footer','erlen-app-footer',doc):null;\n if(pie){pie.append(elementos.pie);marco.append(pie);}\n host.append(marco);\n restaurarSeleccion(estadoPrevio);\n\n // Indicador de desborde: data-desborde=inicio|fin|ambos|'' en la tira de controles (todos los\n // anchos) y en el pie compacto (≤ 600 px o paisaje corto). El degradado del borde lo\n // pinta marco.css; con forced-colors o en impresión no hay máscara. Además del scroll y del\n // tamaño de la ventana, un MutationObserver vuelve a medir cuando la app llena los huecos\n // después de montar el marco: la caja no cambia de tamaño, pero su contenido sí.\n function vigilarDesborde(elemento,soloEstrecho){\n  if(!elemento)return null;\n  let pendiente=false;\n  const medir=()=>{\n   pendiente=false;\n   if(soloEstrecho&&win.innerWidth>600&&!(win.innerWidth<=ESTRECHO&&win.innerHeight<=500)){if(elemento.dataset.desborde)elemento.dataset.desborde='';return;}\n   const inicio=elemento.scrollLeft>1,fin=elemento.scrollLeft+elemento.clientWidth<elemento.scrollWidth-1;\n   elemento.dataset.desborde=inicio&&fin?'ambos':inicio?'inicio':fin?'fin':'';\n  };\n  const programa=()=>{\n   if(pendiente)return;\n   pendiente=true;\n   if(win.requestAnimationFrame)win.requestAnimationFrame(medir);else medir();\n  };\n  programa();\n  elemento.addEventListener('scroll',programa,{passive:true});\n  win.addEventListener('resize',programa);\n  let observador=null,mutador=null;\n  if(win.ResizeObserver){observador=new win.ResizeObserver(programa);observador.observe(elemento);}\n  if(win.MutationObserver){mutador=new win.MutationObserver(programa);mutador.observe(elemento,{childList:true,subtree:true});}\n  return {despegar(){elemento.removeEventListener('scroll',programa);win.removeEventListener('resize',programa);if(observador)observador.disconnect();if(mutador)mutador.disconnect();}};\n }\n const vigias=[vigilarDesborde(controles,false),vigilarDesborde(pie,true)].filter(Boolean);\n\n const navSuite=(()=>{\n  // Sin catálogo, el menú standalone solo conoce las apps históricas: una app fuera de esa lista\n  // (analyze, data, projects, release, editor histórico…) se queda sin menú en vez de romper el\n  // arranque. Con catálogo explícito el menú siempre se monta para su app.\n  try{return mountSuiteNavigation(huecoSuite,app,navegacionSuite);}catch{return null;}\n })();\n const libre=config.mey!==false&&!!doc.defaultView.requestAnimationFrame;\n const controlMey=config.mey===false||libre?null:mey.montar(meyHueco,{lugar:'barra',app});\n if(libre){if(conAyuda)meyHueco.textContent=(doc.documentElement.lang||'').startsWith('en')?'Mey · help':'Mey · ayuda';else meyHueco.remove();}\n const paseoMey=libre?mey.recorrerPagina({documento:doc,evitar:[trabajo],pausaEn:controles,accion:conAyuda?abrirAyuda:undefined}):null;\n\n // ---- Cajón accesible (navegación en estrecho; detalles a ≤ 920 px) ----\n let cajon=null,mascara=null,guardados=[],focoPrevio=null,devolver=null,alCerrarCajon=null,tipoCajon=null;\n function visible(el){\n  for(let nodo=el;nodo?.nodeType===1;nodo=nodo.parentElement){\n   const estilo=win.getComputedStyle(nodo);\n   if(nodo.hidden||nodo.hasAttribute('inert')||estilo.display==='none'||estilo.visibility==='hidden')return false;\n  }\n  return true;\n }\n function enfocables(contenedor){\n  return [...contenedor.querySelectorAll('a[href],button,input,select,textarea,[tabindex]:not([tabindex=\"-1\"])')].filter(el=>!el.disabled&&el.type!=='hidden'&&visible(el));\n }\n function abrirCajon(nodo,{tituloCajon,izquierda,tipo,devolver:volver,onClose}){\n  if(cajon)cerrarCajon();\n  tipoCajon=tipo||null;\n  devolver=volver||null;\n  focoPrevio=doc.activeElement;\n  mascara=crear('div','erlen-marco-mascara',doc);\n  cajon=crear('aside','erlen-marco-cajon'+(izquierda?' erlen-marco-cajon-izq':''),doc);\n  cajon.setAttribute('role','dialog');\n  cajon.setAttribute('aria-modal','true');\n  cajon.setAttribute('aria-label',tituloCajon);\n  const cab=crear('div','erlen-marco-cajon-cabecera',doc);\n  const rotulo=crear('div','erlen-marco-cajon-titulo',doc);\n  rotulo.textContent=tituloCajon;\n  const cerrar=crear('button','erlen-marco-cajon-cerrar',doc);\n  cerrar.type='button';cerrar.textContent='✕';cerrar.title='Cerrar';cerrar.setAttribute('aria-label','Cerrar');\n  cab.append(rotulo,cerrar);\n  const contenido=crear('div','erlen-marco-cajon-cuerpo',doc);\n  const antesDeMover=guardarSeleccion();\n  contenido.append(nodo);\n  restaurarSeleccion(antesDeMover);\n  cajon.append(cab,contenido);\n  doc.body.append(mascara,cajon);\n  guardados=inmovilizar(doc,[mascara,cajon]);\n  alCerrarCajon=onClose;\n  cerrar.addEventListener('click',cerrarCajon);\n  mascara.addEventListener('click',cerrarCajon);\n  cajon.addEventListener('keydown',alPulsar);\n  (enfocables(cajon)[0]||cerrar).focus();\n }\n function alPulsar(evento){\n  if(evento.key==='Escape'){evento.preventDefault();evento.stopPropagation();cerrarCajon();return;}\n  if(evento.key!=='Tab')return;\n  const lista=enfocables(cajon);\n  if(!lista.length){evento.preventDefault();return;}\n  const primero=lista[0],ultimo=lista[lista.length-1];\n  if(evento.shiftKey&&doc.activeElement===primero){evento.preventDefault();ultimo.focus();}\n  else if(!evento.shiftKey&&doc.activeElement===ultimo){evento.preventDefault();primero.focus();}\n }\n function cerrarCajon(){\n  if(!cajon)return;\n  const nodo=cajon.querySelector('.erlen-marco-cajon-cuerpo')?.firstElementChild;\n  const volver=devolver;\n  cajon.removeEventListener('keydown',alPulsar);\n  cajon.remove();mascara.remove();\n  restaurar(guardados);\n  guardados=[];cajon=null;mascara=null;\n  if(nodo&&volver){const antesDeVolver=guardarSeleccion();volver(nodo);restaurarSeleccion(antesDeVolver);}\n  const devolverFoco=focoPrevio;focoPrevio=null;\n  if(doc.contains(devolverFoco)&&typeof devolverFoco.focus==='function')devolverFoco.focus({preventScroll:true});\n  const cerrar=alCerrarCajon;alCerrarCajon=null;devolver=null;tipoCajon=null;\n  if(cerrar)cerrar();\n }\n function abrirDetalles(){\n  if(!elementos.detalles)throw new Error('mountMarco: la app no tiene panel de detalles.');\n  if(win.innerWidth<=ESTRECHO){\n   abrirCajon(elementos.detalles,{tituloCajon:'Detalles',tipo:'detalles',devolver:nodo=>nodoDetalles.append(nodo),onClose:()=>{if(win.innerWidth>ESTRECHO)cuerpo.classList.remove('con-detalles');}});\n  }else cuerpo.classList.add('con-detalles');\n }\n // «con-detalles» y «con-navegacion» son lo que la app quiere en ancho: el cajón es solo cosa del\n // estrecho. Cerrar un cajón a ≤ 920 px no borra ese deseo; si no, al ensanchar la ventana la\n // columna no volvería. En ancho, cerrar sí oculta la columna. Si la app oculta explícitamente\n // su nodo de detalles, cerrar también elimina la columna deseada desde estrecho.\n function cerrarDetalles(){\n  if(cajon&&tipoCajon==='detalles')cerrarCajon();\n  if(win.innerWidth>ESTRECHO||elementos.detalles?.hidden)cuerpo.classList.remove('con-detalles');\n }\n // El cajón de navegación (estrecho) y su columna (ancho) se abren y cierran igual que los\n // detalles: tras elegir una entrada en móvil la app lo cierra para ver el trabajo, y en\n // escritorio puede ofrecer su propio conmutador de columna («Vista → Catálogo»).\n function abrirNavegacion(){\n  if(!elementos.navegacion)return;\n  if(win.innerWidth<=ESTRECHO)abrirCajon(elementos.navegacion,{tituloCajon:'Navegación',izquierda:true,tipo:'navegacion',devolver:nodo=>nodoNav.append(nodo)});\n  else cuerpo.classList.add('con-navegacion');\n }\n function cerrarNavegacion(){\n  if(cajon&&tipoCajon==='navegacion')cerrarCajon();\n  if(win.innerWidth>ESTRECHO)cuerpo.classList.remove('con-navegacion');\n }\n // Cruzar el límite adapta el panel vivo, sin duplicarlo. En estrecho los detalles abiertos\n // siguen accesibles en el cajón; al ensanchar, los cajones de columnas devuelven sus nodos y\n // liberan inert. La ayuda conserva su diálogo en todos los anchos.\n let estrecho=win.innerWidth<=ESTRECHO;\n function adaptarPaneles(){\n  const nuevo=win.innerWidth<=ESTRECHO;\n  if(nuevo===estrecho)return;\n  estrecho=nuevo;\n  if(nuevo){\n   if(!cajon&&!marco.closest('[inert]')&&cuerpo.classList.contains('con-detalles')&&elementos.detalles&&!elementos.detalles.hidden)abrirDetalles();\n  }else if(cajon&&(tipoCajon==='detalles'||tipoCajon==='navegacion')){\n   const tipo=tipoCajon,antes=guardarSeleccion();\n   cerrarCajon();\n   cuerpo.classList.add(tipo==='detalles'?'con-detalles':'con-navegacion');\n   if(antes.foco?.isConnected&&visible(antes.foco))restaurarSeleccion(antes);\n   else if(!visible(doc.activeElement))marca.focus({preventScroll:true});\n  }\n }\n win.addEventListener('resize',adaptarPaneles);\n // Panel de ayuda de Mey (con config.ayuda): un cajón modal igual en escritorio y en estrecho.\n // La búsqueda toma el foco al abrir, no el primer enfocable del cajón.\n let panelAyuda=null;\n function abrirAyuda(){\n  if(!config.ayuda)return;\n  if(cajon&&tipoCajon==='ayuda')return;\n  panelAyuda=crearAyudaMey(doc,{\n   app,nombre,mascota:paseoMey?false:mey('hola'),\n   cinta:config.ayuda.cinta||(()=>null),\n   pasos:config.ayuda.pasos||[],\n   extras:config.ayuda.extras||(()=>[]),\n   cerrar:cerrarAyuda\n  });\n  abrirCajon(panelAyuda.nodo,{tituloCajon:'Mey',tipo:'ayuda',devolver:nodo=>nodo.remove(),onClose:()=>{panelAyuda.destruir();panelAyuda=null;}});\n  panelAyuda.enfocarBusqueda();\n }\n function cerrarAyuda(){\n  if(cajon&&tipoCajon==='ayuda')cerrarCajon();\n }\n abrirCajonNav.addEventListener('click',abrirNavegacion);\n\n function destruir(){\n  if(!marco.parentNode)return;\n  cerrarCajon();\n  win.removeEventListener('resize',adaptarPaneles);\n  for(const vigia of vigias)vigia.despegar();\n  controlMey?.detener();\n  paseoMey?.detener();\n  navSuite?.dispose?.();\n  marca.removeEventListener('click',alPulsarMarca);\n  // Restaurar de atrás hacia delante conserva la posición original entre hermanos.\n  const antesDeDevolver=guardarSeleccion();\n  for(const {nodo,padre,siguiente,indice} of [...movidos].sort((a,b)=>(b.indice??-1)-(a.indice??-1))){\n   if(!nodo)continue;\n   if(indice===null||!padre){nodo.remove();continue;}\n   if(siguiente&&siguiente.parentNode===padre)padre.insertBefore(nodo,siguiente);\n   else padre.append(nodo);\n  }\n  restaurarSeleccion(antesDeDevolver);\n  if(appPrevia===null)raiz.removeAttribute('data-erlen-app');else raiz.setAttribute('data-erlen-app',appPrevia);\n  marco.remove();\n }\n return {elemento:marco,abrirDetalles,cerrarDetalles,abrirNavegacion,cerrarNavegacion,abrirAyuda,cerrarAyuda,destruir};\n}\n\nreturn mountMarco;})();\n",
  "src/diseno/suite-marco.mjs": "import {aplicarIconoAplicacion} from './productos.mjs';\n// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\n * of the Software, and to permit persons to whom the Software is furnished to do\n * so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n/* Marco común de las apps de Erlen Suite (docs/COHERENCIA-APPS.md §4): cabecera con marca,\n   nombre, menú de suite, título, estado y acciones; cinta debajo; cuerpo con navegación,\n   trabajo y detalles; pie. mountMarco solo organiza los nodos que la app le pasa: los mueve,\n   no los clona ni los reconstruye, así que las referencias, los listeners y la selección del\n   dominio se conservan. Estilos en diseno/marco.css, solo con tokens --erlen-*.\n\n   mountMarco(host, {\n     app: 'notes',                  // id de la app en la suite; perfil de Mey y menú\n     nombre: 'Erlen Notes',         // nombre visible (h1 del marco)\n     inicio: () => {},              // obligatorio, sin argumentos: activa el inicio real de la app\n     elementos: {                   // nodos propiedad de la app; solo trabajo es obligatorio\n       titulo?,                     // título editable del documento\n       estado?,                     // indicador de guardado (role=\"status\")\n       acciones?,                   // una acción principal y sus hermanas\n       utilidades?,                 // buscar, tema, ayuda…\n       cinta?,                      // cinta ya montada con mountCinta\n       navegacion?,                 // tira/esquema/biblioteca de la izquierda\n       trabajo,                     // documento, hoja, lienzo… (conserva su scroll y zoom)\n       detalles?,                   // propiedades largas a la derecha\n       pie?                         // estado y enlaces en el pie\n     },\n     navegacionSuite?: {items, home},  // catálogo serializado de mountSuiteNavigation; sin él,\n                                       // el menú conserva su detección standalone\n     mey?: false                    // por defecto Mey en la cabecera/estado (lugar «barra»)\n     ayuda?: {                      // panel de Mey que guía y ejecuta comandos (suite-mey-ayuda.mjs)\n       cinta?: ()=>cintaHandle|null,   // función: la cinta se recrea en varias apps\n       pasos?: [{control, pestana?, texto}] | ()=>[…],  // atajos sugeridos (controles de cinta)\n       extras?: ()=>[Comando…]         // comandos fuera de la cinta (menú Archivo, cabecera)\n     }\n   })\n   Devuelve {elemento, abrirDetalles(), cerrarDetalles(), abrirNavegacion(), cerrarNavegacion(),\n   abrirAyuda(), cerrarAyuda(), destruir()} (los controles del cajón de navegación son una\n   extensión aditiva deliberada del contrato original: el cajón móvil no existía cuando se\n   escribió; `abrirAyuda` abre el panel de Mey cuando la app pasa `ayuda`). Montar dos veces en\n   el mismo host es un error. Al destruir, los nodos vuelven a su padre original, se restauran\n   los `inert` previos, se libera el menú de suite, Mey y los listeners, y se retira el marco. */\nimport {mountSuiteNavigation} from './suite-nav.mjs';\nimport {mey} from './mey.mjs';\nimport {crearAyudaMey,TEXTOS_AYUDA_MEY} from './suite-mey-ayuda.mjs';\n\nconst SLOTS=['titulo','estado','acciones','utilidades','cinta','navegacion','trabajo','detalles','pie'];\nconst ESTRECHO=920;\n\nconst MARCA_SVG='<svg viewBox=\"0 0 64 64\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M25 10h14v13.2c0 1.2.4 2.3 1.1 3.2L52.6 45A8 8 0 0 1 46 56H18a8 8 0 0 1-6.6-11.7l12.5-18.6c.7-.9 1.1-2 1.1-3.2Z\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3.4\" stroke-linejoin=\"round\"/><path d=\"M17.6 43h28.8l4.4 6.5A4.3 4.3 0 0 1 46.7 55H17.3a4.3 4.3 0 0 1-4.1-5.8Z\" fill=\"var(--erlen-verde,#245b43)\"/><path d=\"M22 16h20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3.4\" stroke-linecap=\"round\"/></svg>';\n\nfunction crear(tag,clase,doc){const el=doc.createElement(tag);if(clase)el.className=clase;return el;}\n\n// Estado de `inert` de cada hijo de <body> mientras un cajón está abierto (atributo, no propiedad:\n// así funciona igual en JSDOM y en el navegador y se restaura exactamente lo previo).\nfunction inmovilizar(doc,exceptos){\n const guardados=[];\n for(const hijo of doc.body.children){\n  if(exceptos.includes(hijo))continue;\n  // Un dialog cerrado ya está fuera del foco. showModal() gestiona su propia modalidad;\n  // marcarlo inert explícitamente impediría usar formularios abiertos desde el cajón.\n  if(hijo.localName==='dialog'&&!hijo.open)continue;\n  guardados.push({hijo,inert:hijo.hasAttribute('inert')});\n  hijo.setAttribute('inert','');\n }\n return guardados;\n}\nfunction restaurar(guardados){\n for(const {hijo,inert} of guardados)if(inert)hijo.setAttribute('inert','');else hijo.removeAttribute('inert');\n}\n\nexport function mountMarco(host,config){\n if(!host||host.nodeType!==1)throw new Error('mountMarco: falta un host válido.');\n const doc=host.ownerDocument;\n if(!doc||!doc.defaultView)throw new Error('mountMarco: el host necesita un documento con ventana.');\n if(!config||typeof config!=='object')throw new Error('mountMarco: falta la configuración.');\n const {app,nombre,inicio,elementos,navegacionSuite}=config;\n if(typeof app!=='string'||!app.trim())throw new Error('mountMarco: falta app.');\n if(typeof nombre!=='string'||!nombre.trim())throw new Error('mountMarco: falta nombre.');\n aplicarIconoAplicacion(doc,app);\n if(typeof inicio!=='function')throw new Error('mountMarco: inicio debe ser un callback sin argumentos.');\n if(!elementos||typeof elementos!=='object')throw new Error('mountMarco: faltan elementos.');\n for(const [clave,nodo] of Object.entries(elementos)){\n  if(!SLOTS.includes(clave))throw new Error('mountMarco: elemento desconocido: '+clave);\n  if(nodo!==undefined&&nodo!==null&&(!nodo.ownerDocument||nodo.nodeType!==1))throw new Error('mountMarco: elemento inválido: '+clave);\n }\n const trabajo=elementos.trabajo;\n if(!trabajo||!trabajo.ownerDocument)throw new Error('mountMarco: falta el nodo de trabajo.');\n if(trabajo.ownerDocument!==doc)throw new Error('mountMarco: los nodos deben pertenecer al documento del host.');\n if(navegacionSuite!==undefined&&(!navegacionSuite||!Array.isArray(navegacionSuite.items)||!navegacionSuite.home))throw new Error('mountMarco: navegacionSuite debe ser {items, home}.');\n if(config.ayuda!==undefined){\n  const a=config.ayuda;\n  if(!a||typeof a!=='object'||Array.isArray(a))throw new Error('mountMarco: ayuda inválida: ayuda');\n  if(a.cinta!==undefined&&a.cinta!==null&&typeof a.cinta!=='function')throw new Error('mountMarco: ayuda inválida: cinta');\n  if(a.pasos!==undefined&&a.pasos!==null&&!Array.isArray(a.pasos)&&typeof a.pasos!=='function')throw new Error('mountMarco: ayuda inválida: pasos');\n  if(a.extras!==undefined&&a.extras!==null&&typeof a.extras!=='function')throw new Error('mountMarco: ayuda inválida: extras');\n }\n if(host.querySelector('.erlen-marco'))throw new Error('mountMarco: el host ya tiene un marco montado.');\n\n const win=doc.defaultView;\n const movidos=[];   // {nodo, padre, siguiente, indice} para devolverlos en destruir()\n const mover=nodo=>{if(!nodo)return;movidos.push({nodo,padre:nodo.parentNode,siguiente:nodo.nextSibling,indice:nodo.parentNode?[...nodo.parentNode.childNodes].indexOf(nodo):null});};\n for(const clave of SLOTS)mover(elementos[clave]);\n // Mover nodos vivos colapsa los rangos del documento que tocan el subárbol movido (los objetos\n // Range viven y mutan con él), así que se guardan sus límites como datos y se reconstruyen después.\n const seleccion=win.getSelection?win.getSelection():null;\n const guardarSeleccion=()=>{\n  const limites=[];\n  if(seleccion)for(let i=0;i<seleccion.rangeCount;i++){const r=seleccion.getRangeAt(i);limites.push({s:r.startContainer,o:r.startOffset,e:r.endContainer,f:r.endOffset});}\n  return {limites,foco:doc.activeElement};\n };\n const restaurarSeleccion=({limites,foco})=>{\n  // Primero el foco (focus() puede colapsar la selección en algunos motores), después los rangos.\n  if(foco&&foco!==doc.body&&foco.ownerDocument===doc&&doc.contains(foco)&&typeof foco.focus==='function')foco.focus({preventScroll:true});\n  if(seleccion&&limites.length){\n   seleccion.removeAllRanges();\n   for(const d of limites){\n    if(!d.s?.isConnected||!d.e?.isConnected)continue;\n    const r=doc.createRange();\n    try{r.setStart(d.s,d.o);r.setEnd(d.e,d.f);seleccion.addRange(r);}catch{/* límites ya no válidos */}\n   }\n  }\n };\n const estadoPrevio=guardarSeleccion();\n\n // data-erlen-app para los perfiles de Mey; se restaura al destruir.\n const raiz=doc.documentElement;\n const appPrevia=raiz.getAttribute('data-erlen-app');\n raiz.setAttribute('data-erlen-app',app);\n\n const marco=crear('div','erlen-marco',doc);\n const cabecera=crear('header','erlen-app-header',doc);\n const marca=crear('button','erlen-marco-marca',doc);\n marca.type='button';marca.title='Volver a '+nombre;\n marca.setAttribute('aria-label','Volver a '+nombre);\n marca.innerHTML=MARCA_SVG+'<span class=\"erlen-marco-marca-nombre\">Erlen</span>';\n const alPulsarMarca=()=>inicio();\n marca.addEventListener('click',alPulsarMarca);\n const abrirCajonNav=crear('button','erlen-marco-abrir-cajon',doc);\n abrirCajonNav.type='button';abrirCajonNav.title='Navegación';abrirCajonNav.setAttribute('aria-label','Abrir la navegación');\n abrirCajonNav.innerHTML='<svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M4 7h16M4 12h16M4 17h16\"/></svg>';\n const h1=crear('h1','erlen-marco-nombre',doc);\n h1.textContent=nombre;\n const huecoSuite=crear('div','erlen-marco-suite',doc);\n const titulo=crear('div','erlen-marco-titulo',doc);\n const estado=crear('div','erlen-marco-estado',doc);\n const conAyuda=!!config.ayuda&&config.mey!==false;\n const meyHueco=crear(conAyuda?'button':'span','erlen-marco-mey',doc);\n if(conAyuda){\n  meyHueco.type='button';\n  meyHueco.setAttribute('aria-haspopup','dialog');\n  const idioma=(doc.documentElement.lang||'').toLowerCase().startsWith('en')?'en':'es';\n  meyHueco.setAttribute('aria-label',idioma==='en'?'Mey, help for '+nombre:'Mey, ayuda de '+nombre);\n  meyHueco.title=TEXTOS_AYUDA_MEY[idioma].titulo;\n  meyHueco.addEventListener('click',abrirAyuda);\n }\n const acciones=crear('div','erlen-marco-acciones',doc);\n const utilidades=crear('div','erlen-marco-utilidades',doc);\n const controles=crear('div','erlen-marco-controles',doc);\n controles.append(titulo,estado,acciones,utilidades);\n cabecera.append(abrirCajonNav,marca,h1,huecoSuite,controles);\n for(const [contenedor,clave] of [[titulo,'titulo'],[estado,'estado'],[acciones,'acciones'],[utilidades,'utilidades']]){\n  if(elementos[clave])contenedor.append(elementos[clave]);\n  else if(contenedor!==estado)contenedor.remove();\n }\n estado.append(meyHueco);\n if(config.mey===false)meyHueco.remove();\n // El nombre del documento cede primero cuando falta ancho (marco.css, escritorio): si queda\n // recortado, su texto completo pasa a title y se restituye el title anterior cuando vuelve a caber.\n const nombreDoc=elementos.titulo;\n if(nombreDoc){\n  const sincroniza=()=>{\n   const texto=String(nombreDoc.value??nombreDoc.textContent??'').trim();\n   const recortado=nombreDoc.scrollWidth>nombreDoc.clientWidth+1;\n   if(texto&&recortado){\n    if(nombreDoc.dataset.tooltipNombre===undefined){nombreDoc.dataset.tooltipNombre=nombreDoc.getAttribute('title')??'';}\n    nombreDoc.title=texto;\n   }else if(nombreDoc.dataset.tooltipNombre!==undefined){\n    const previo=nombreDoc.dataset.tooltipNombre;\n    delete nombreDoc.dataset.tooltipNombre;\n    if(previo)nombreDoc.title=previo;else nombreDoc.removeAttribute('title');\n   }\n  };\n  for(const evento of ['pointerenter','focus','input'])nombreDoc.addEventListener(evento,sincroniza);\n  if(typeof doc.defaultView?.MutationObserver==='function')new doc.defaultView.MutationObserver(sincroniza).observe(nombreDoc,{childList:true,characterData:true,subtree:true});\n }\n\n const cuerpo=crear('div','erlen-marco-cuerpo',doc);\n const nodoNav=crear('nav','erlen-marco-navegacion',doc);\n const nodoTrabajo=crear('main','erlen-marco-trabajo',doc);\n const nodoDetalles=crear('aside','erlen-marco-detalles',doc);\n if(elementos.navegacion){nodoNav.append(elementos.navegacion);cuerpo.classList.add('con-navegacion');}\n if(elementos.detalles){nodoDetalles.append(elementos.detalles);}\n nodoTrabajo.append(trabajo);\n cuerpo.append(nodoNav,nodoTrabajo,nodoDetalles);\n if(!elementos.navegacion){nodoNav.remove();abrirCajonNav.remove();}\n if(!elementos.detalles)nodoDetalles.remove();\n\n marco.append(cabecera);\n if(elementos.cinta){const franja=crear('div','erlen-marco-cinta',doc);franja.append(elementos.cinta);marco.append(franja);}\n marco.append(cuerpo);\n const pie=elementos.pie?crear('footer','erlen-app-footer',doc):null;\n if(pie){pie.append(elementos.pie);marco.append(pie);}\n host.append(marco);\n restaurarSeleccion(estadoPrevio);\n\n // Indicador de desborde: data-desborde=inicio|fin|ambos|'' en la tira de controles (todos los\n // anchos) y en el pie compacto (≤ 600 px o paisaje corto). El degradado del borde lo\n // pinta marco.css; con forced-colors o en impresión no hay máscara. Además del scroll y del\n // tamaño de la ventana, un MutationObserver vuelve a medir cuando la app llena los huecos\n // después de montar el marco: la caja no cambia de tamaño, pero su contenido sí.\n function vigilarDesborde(elemento,soloEstrecho){\n  if(!elemento)return null;\n  let pendiente=false;\n  const medir=()=>{\n   pendiente=false;\n   if(soloEstrecho&&win.innerWidth>600&&!(win.innerWidth<=ESTRECHO&&win.innerHeight<=500)){if(elemento.dataset.desborde)elemento.dataset.desborde='';return;}\n   const inicio=elemento.scrollLeft>1,fin=elemento.scrollLeft+elemento.clientWidth<elemento.scrollWidth-1;\n   elemento.dataset.desborde=inicio&&fin?'ambos':inicio?'inicio':fin?'fin':'';\n  };\n  const programa=()=>{\n   if(pendiente)return;\n   pendiente=true;\n   if(win.requestAnimationFrame)win.requestAnimationFrame(medir);else medir();\n  };\n  programa();\n  elemento.addEventListener('scroll',programa,{passive:true});\n  win.addEventListener('resize',programa);\n  let observador=null,mutador=null;\n  if(win.ResizeObserver){observador=new win.ResizeObserver(programa);observador.observe(elemento);}\n  if(win.MutationObserver){mutador=new win.MutationObserver(programa);mutador.observe(elemento,{childList:true,subtree:true});}\n  return {despegar(){elemento.removeEventListener('scroll',programa);win.removeEventListener('resize',programa);if(observador)observador.disconnect();if(mutador)mutador.disconnect();}};\n }\n const vigias=[vigilarDesborde(controles,false),vigilarDesborde(pie,true)].filter(Boolean);\n\n const navSuite=(()=>{\n  // Sin catálogo, el menú standalone solo conoce las apps históricas: una app fuera de esa lista\n  // (analyze, data, projects, release, editor histórico…) se queda sin menú en vez de romper el\n  // arranque. Con catálogo explícito el menú siempre se monta para su app.\n  try{return mountSuiteNavigation(huecoSuite,app,navegacionSuite);}catch{return null;}\n })();\n const libre=config.mey!==false&&!!doc.defaultView.requestAnimationFrame;\n const controlMey=config.mey===false||libre?null:mey.montar(meyHueco,{lugar:'barra',app});\n if(libre){if(conAyuda)meyHueco.textContent=(doc.documentElement.lang||'').startsWith('en')?'Mey · help':'Mey · ayuda';else meyHueco.remove();}\n const paseoMey=libre?mey.recorrerPagina({documento:doc,evitar:[trabajo],pausaEn:controles,accion:conAyuda?abrirAyuda:undefined}):null;\n\n // ---- Cajón accesible (navegación en estrecho; detalles a ≤ 920 px) ----\n let cajon=null,mascara=null,guardados=[],focoPrevio=null,devolver=null,alCerrarCajon=null,tipoCajon=null;\n function visible(el){\n  for(let nodo=el;nodo?.nodeType===1;nodo=nodo.parentElement){\n   const estilo=win.getComputedStyle(nodo);\n   if(nodo.hidden||nodo.hasAttribute('inert')||estilo.display==='none'||estilo.visibility==='hidden')return false;\n  }\n  return true;\n }\n function enfocables(contenedor){\n  return [...contenedor.querySelectorAll('a[href],button,input,select,textarea,[tabindex]:not([tabindex=\"-1\"])')].filter(el=>!el.disabled&&el.type!=='hidden'&&visible(el));\n }\n function abrirCajon(nodo,{tituloCajon,izquierda,tipo,devolver:volver,onClose}){\n  if(cajon)cerrarCajon();\n  tipoCajon=tipo||null;\n  devolver=volver||null;\n  focoPrevio=doc.activeElement;\n  mascara=crear('div','erlen-marco-mascara',doc);\n  cajon=crear('aside','erlen-marco-cajon'+(izquierda?' erlen-marco-cajon-izq':''),doc);\n  cajon.setAttribute('role','dialog');\n  cajon.setAttribute('aria-modal','true');\n  cajon.setAttribute('aria-label',tituloCajon);\n  const cab=crear('div','erlen-marco-cajon-cabecera',doc);\n  const rotulo=crear('div','erlen-marco-cajon-titulo',doc);\n  rotulo.textContent=tituloCajon;\n  const cerrar=crear('button','erlen-marco-cajon-cerrar',doc);\n  cerrar.type='button';cerrar.textContent='✕';cerrar.title='Cerrar';cerrar.setAttribute('aria-label','Cerrar');\n  cab.append(rotulo,cerrar);\n  const contenido=crear('div','erlen-marco-cajon-cuerpo',doc);\n  const antesDeMover=guardarSeleccion();\n  contenido.append(nodo);\n  restaurarSeleccion(antesDeMover);\n  cajon.append(cab,contenido);\n  doc.body.append(mascara,cajon);\n  guardados=inmovilizar(doc,[mascara,cajon]);\n  alCerrarCajon=onClose;\n  cerrar.addEventListener('click',cerrarCajon);\n  mascara.addEventListener('click',cerrarCajon);\n  cajon.addEventListener('keydown',alPulsar);\n  (enfocables(cajon)[0]||cerrar).focus();\n }\n function alPulsar(evento){\n  if(evento.key==='Escape'){evento.preventDefault();evento.stopPropagation();cerrarCajon();return;}\n  if(evento.key!=='Tab')return;\n  const lista=enfocables(cajon);\n  if(!lista.length){evento.preventDefault();return;}\n  const primero=lista[0],ultimo=lista[lista.length-1];\n  if(evento.shiftKey&&doc.activeElement===primero){evento.preventDefault();ultimo.focus();}\n  else if(!evento.shiftKey&&doc.activeElement===ultimo){evento.preventDefault();primero.focus();}\n }\n function cerrarCajon(){\n  if(!cajon)return;\n  const nodo=cajon.querySelector('.erlen-marco-cajon-cuerpo')?.firstElementChild;\n  const volver=devolver;\n  cajon.removeEventListener('keydown',alPulsar);\n  cajon.remove();mascara.remove();\n  restaurar(guardados);\n  guardados=[];cajon=null;mascara=null;\n  if(nodo&&volver){const antesDeVolver=guardarSeleccion();volver(nodo);restaurarSeleccion(antesDeVolver);}\n  const devolverFoco=focoPrevio;focoPrevio=null;\n  if(doc.contains(devolverFoco)&&typeof devolverFoco.focus==='function')devolverFoco.focus({preventScroll:true});\n  const cerrar=alCerrarCajon;alCerrarCajon=null;devolver=null;tipoCajon=null;\n  if(cerrar)cerrar();\n }\n function abrirDetalles(){\n  if(!elementos.detalles)throw new Error('mountMarco: la app no tiene panel de detalles.');\n  if(win.innerWidth<=ESTRECHO){\n   abrirCajon(elementos.detalles,{tituloCajon:'Detalles',tipo:'detalles',devolver:nodo=>nodoDetalles.append(nodo),onClose:()=>{if(win.innerWidth>ESTRECHO)cuerpo.classList.remove('con-detalles');}});\n  }else cuerpo.classList.add('con-detalles');\n }\n // «con-detalles» y «con-navegacion» son lo que la app quiere en ancho: el cajón es solo cosa del\n // estrecho. Cerrar un cajón a ≤ 920 px no borra ese deseo; si no, al ensanchar la ventana la\n // columna no volvería. En ancho, cerrar sí oculta la columna. Si la app oculta explícitamente\n // su nodo de detalles, cerrar también elimina la columna deseada desde estrecho.\n function cerrarDetalles(){\n  if(cajon&&tipoCajon==='detalles')cerrarCajon();\n  if(win.innerWidth>ESTRECHO||elementos.detalles?.hidden)cuerpo.classList.remove('con-detalles');\n }\n // El cajón de navegación (estrecho) y su columna (ancho) se abren y cierran igual que los\n // detalles: tras elegir una entrada en móvil la app lo cierra para ver el trabajo, y en\n // escritorio puede ofrecer su propio conmutador de columna («Vista → Catálogo»).\n function abrirNavegacion(){\n  if(!elementos.navegacion)return;\n  if(win.innerWidth<=ESTRECHO)abrirCajon(elementos.navegacion,{tituloCajon:'Navegación',izquierda:true,tipo:'navegacion',devolver:nodo=>nodoNav.append(nodo)});\n  else cuerpo.classList.add('con-navegacion');\n }\n function cerrarNavegacion(){\n  if(cajon&&tipoCajon==='navegacion')cerrarCajon();\n  if(win.innerWidth>ESTRECHO)cuerpo.classList.remove('con-navegacion');\n }\n // Cruzar el límite adapta el panel vivo, sin duplicarlo. En estrecho los detalles abiertos\n // siguen accesibles en el cajón; al ensanchar, los cajones de columnas devuelven sus nodos y\n // liberan inert. La ayuda conserva su diálogo en todos los anchos.\n let estrecho=win.innerWidth<=ESTRECHO;\n function adaptarPaneles(){\n  const nuevo=win.innerWidth<=ESTRECHO;\n  if(nuevo===estrecho)return;\n  estrecho=nuevo;\n  if(nuevo){\n   if(!cajon&&!marco.closest('[inert]')&&cuerpo.classList.contains('con-detalles')&&elementos.detalles&&!elementos.detalles.hidden)abrirDetalles();\n  }else if(cajon&&(tipoCajon==='detalles'||tipoCajon==='navegacion')){\n   const tipo=tipoCajon,antes=guardarSeleccion();\n   cerrarCajon();\n   cuerpo.classList.add(tipo==='detalles'?'con-detalles':'con-navegacion');\n   if(antes.foco?.isConnected&&visible(antes.foco))restaurarSeleccion(antes);\n   else if(!visible(doc.activeElement))marca.focus({preventScroll:true});\n  }\n }\n win.addEventListener('resize',adaptarPaneles);\n // Panel de ayuda de Mey (con config.ayuda): un cajón modal igual en escritorio y en estrecho.\n // La búsqueda toma el foco al abrir, no el primer enfocable del cajón.\n let panelAyuda=null;\n function abrirAyuda(){\n  if(!config.ayuda)return;\n  if(cajon&&tipoCajon==='ayuda')return;\n  panelAyuda=crearAyudaMey(doc,{\n   app,nombre,mascota:paseoMey?false:mey('hola'),\n   cinta:config.ayuda.cinta||(()=>null),\n   pasos:config.ayuda.pasos||[],\n   extras:config.ayuda.extras||(()=>[]),\n   cerrar:cerrarAyuda\n  });\n  abrirCajon(panelAyuda.nodo,{tituloCajon:'Mey',tipo:'ayuda',devolver:nodo=>nodo.remove(),onClose:()=>{panelAyuda.destruir();panelAyuda=null;}});\n  panelAyuda.enfocarBusqueda();\n }\n function cerrarAyuda(){\n  if(cajon&&tipoCajon==='ayuda')cerrarCajon();\n }\n abrirCajonNav.addEventListener('click',abrirNavegacion);\n\n function destruir(){\n  if(!marco.parentNode)return;\n  cerrarCajon();\n  win.removeEventListener('resize',adaptarPaneles);\n  for(const vigia of vigias)vigia.despegar();\n  controlMey?.detener();\n  paseoMey?.detener();\n  navSuite?.dispose?.();\n  marca.removeEventListener('click',alPulsarMarca);\n  // Restaurar de atrás hacia delante conserva la posición original entre hermanos.\n  const antesDeDevolver=guardarSeleccion();\n  for(const {nodo,padre,siguiente,indice} of [...movidos].sort((a,b)=>(b.indice??-1)-(a.indice??-1))){\n   if(!nodo)continue;\n   if(indice===null||!padre){nodo.remove();continue;}\n   if(siguiente&&siguiente.parentNode===padre)padre.insertBefore(nodo,siguiente);\n   else padre.append(nodo);\n  }\n  restaurarSeleccion(antesDeDevolver);\n  if(appPrevia===null)raiz.removeAttribute('data-erlen-app');else raiz.setAttribute('data-erlen-app',appPrevia);\n  marco.remove();\n }\n return {elemento:marco,abrirDetalles,cerrarDetalles,abrirNavegacion,cerrarNavegacion,abrirAyuda,cerrarAyuda,destruir};\n}\n",
  "src/diseno/suite-mey-ayuda.mjs": "// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n/* Panel de ayuda de Mey: «te guía y ejecuta con tu clic». Busca entre los comandos reales\n   de la cinta (suite-cinta.mjs#comandos) más los extras que pase la app, muestra dónde\n   está cada uno (pestaña › grupo) y lo ejecuta solo cuando la persona pulsa «Hazlo».\n   Mey no lee el documento ni envía nada: el panel solo conoce etiquetas de comandos y lo\n   que la app declare en `pasos` y `extras`; no hay modelo de lenguaje.\n\n   crearAyudaMey(doc, {\n     app:'notes', nombre:'Erlen Notes',\n     mascota:mey('hola'),                 // SVG inicial; false si la página ya tiene a Mey\n     cinta:()=>cintaHandle|null,          // función: la cinta se recrea en varias apps\n     pasos:[{control:'nueva', pestana?, texto}],  | ()=>[…],  atajos sugeridos\n     extras:()=>[Comando…],               // comandos fuera de la cinta (menú Archivo…)\n     cerrar:()=>{}                        // cierra el cajón que contiene el panel\n   })\n   Devuelve {nodo, enfocarBusqueda(), destruir()}.\n   Comando = {clave, pestana, etiqueta, ruta, atajo?, titulo?, habilitado, ejecutar()}\n   (el mismo tipo que suite-cinta.mjs#comandos; los extras suelen llevar pestana:'').\n   Estilos en marco.css (.erlen-ayuda-*), solo con tokens --erlen-*. */\nimport {mey} from './mey.mjs';\n\nexport const TEXTOS_AYUDA_MEY={\n es:{\n  titulo:'Mey te ayuda',\n  intro:'Encuentro comandos de esta herramienta y los ejecuto cuando me lo pides. No leo tu documento ni envío nada.',\n  etiquetaBuscar:'¿Qué quieres hacer?',\n  ayudaBuscar:'Por ejemplo: guardar, insertar tabla, exportar',\n  empieza:'Empieza por aquí',\n  mostrar:'Mostrar',\n  hazlo:'Hazlo',\n  noDisponible:'No disponible ahora',\n  sinResultados:'No encontré ese comando en esta herramienta. Prueba con otra palabra.',\n  resultados:n=>n===1?'1 resultado':n+' resultados',\n  sinCinta:'Esta vista no tiene cinta de herramientas; solo puedo mostrarte las acciones de la cabecera y del menú Archivo.',\n  ubicacion:'Dónde está'\n },\n en:{\n  titulo:'Mey helps',\n  intro:'I find commands in this tool and run them when you ask. I don\\'t read your document or send anything.',\n  etiquetaBuscar:'What do you want to do?',\n  ayudaBuscar:'For example: save, insert table, export',\n  empieza:'Start here',\n  mostrar:'Show me',\n  hazlo:'Do it',\n  noDisponible:'Not available now',\n  sinResultados:'I couldn\\'t find that command in this tool. Try another word.',\n  resultados:n=>n===1?'1 result':n+' results',\n  sinCinta:'This view has no toolbar; I can only show header and File menu actions.',\n  ubicacion:'Where it is'\n }\n};\n\n/* Búsqueda por palabras: cada token debe ser prefijo de una palabra de la etiqueta, la ruta,\n   el título o el atajo, o de una palabra de su grupo de sinónimos (Y entre tokens, O dentro\n   del grupo). Así «guardar» encuentra «Descargar proyecto» y «desc» encuentra «Guardar». */\nconst SINONIMOS=[\n ['guardar','descargar','exportar'],\n ['abrir','importar','cargar'],\n ['nuevo','crear','anadir','agregar','insertar'],\n ['buscar','encontrar','reemplazar'],\n ['deshacer','revertir'],\n ['imprimir','pdf'],\n ['ayuda','atajos']\n];\n\nfunction normalizar(t){\n return String(t).normalize('NFD').replace(/\\p{M}/gu,'').toLowerCase();\n}\nfunction palabras(t){\n return normalizar(t).split(/[^a-z0-9]+/).filter(Boolean);\n}\nfunction coincideToken(token,palabrasPajar){\n if(palabrasPajar.some(p=>p.startsWith(token)))return true;\n for(const g of SINONIMOS){\n  if(!g.some(w=>w.startsWith(token)))continue;\n  if(palabrasPajar.some(p=>g.some(w=>p===w||p.startsWith(w))))return true;\n }\n return false;\n}\nfunction buscarComandos(consulta,entradas){\n const tokens=palabras(consulta);\n if(!tokens.length)return [];\n const hallazgos=[];\n entradas.forEach((entrada,i)=>{\n  const c=entrada.comando;\n  const palabrasEtiqueta=palabras(c.etiqueta);\n  const pajar=[...palabrasEtiqueta,...palabras((c.ruta||[]).join(' ')),...palabras(c.titulo||''),...palabras(c.atajo||'')];\n  let puntos=0;\n  for(const tk of tokens){\n   if(!coincideToken(tk,pajar))return;\n   puntos+=palabrasEtiqueta.some(p=>p===tk)?3:palabrasEtiqueta.some(p=>p.startsWith(tk))?2:1;\n  }\n  hallazgos.push({entrada,puntos,i});\n });\n hallazgos.sort((a,b)=>b.puntos-a.puntos||(a.entrada.comando.habilitado!==b.entrada.comando.habilitado?(a.entrada.comando.habilitado?-1:1):a.i-b.i));\n return hallazgos.slice(0,8).map(h=>h.entrada);\n}\n\nexport function crearAyudaMey(doc,{app,nombre,mascota,cinta,pasos,extras,cerrar}){\n if(!doc||!doc.createElement)throw Error('crearAyudaMey necesita un documento.');\n const idioma=(doc.documentElement.lang||'').toLowerCase().startsWith('en')?'en':'es';\n const t=TEXTOS_AYUDA_MEY[idioma];\n const mascotaHola=mascota===false?'':typeof mascota==='string'&&mascota?mascota:mey('hola');\n const el=(tag,attrs={},...hijos)=>{\n  const n=doc.createElement(tag);\n  for(const [k,v] of Object.entries(attrs||{}))if(v!==null&&v!==undefined&&v!==false)n.setAttribute(k,v===true?'':String(v));\n  n.append(...hijos.filter(h=>h!==null&&h!==undefined));\n  return n;\n };\n\n const nodo=el('section',{class:'erlen-ayuda','data-erlen-ayuda-app':app||''});\n const mascotaNodo=el('span',{class:'erlen-ayuda-mascota','aria-hidden':'true'});\n mascotaNodo.innerHTML=mascotaHola;\n const intro=el('p',{class:'erlen-ayuda-intro'},t.intro);\n const rotuloBuscar=el('span',{class:'erlen-ayuda-buscar-rotulo'},t.etiquetaBuscar);\n const entrada=el('input',{type:'search',class:'erlen-ayuda-entrada',placeholder:t.ayudaBuscar,autocomplete:'off',spellcheck:'false'});\n const buscar=el('label',{class:'erlen-ayuda-buscar'},rotuloBuscar,entrada);\n const estado=el('p',{class:'erlen-ayuda-estado',role:'status','aria-live':'polite'});\n const avisoCinta=el('p',{class:'erlen-ayuda-sincinta',hidden:true});\n const rotuloEmpieza=el('h3',{class:'erlen-ayuda-empieza',hidden:true},t.empieza);\n const lista=el('ul',{class:'erlen-ayuda-lista'});\n nodo.append(el('div',{class:'erlen-ayuda-cabecera'},mascota===false?null:mascotaNodo,el('div',{class:'erlen-ayuda-presentacion'},el('h2',{class:'erlen-ayuda-titulo'},t.titulo),intro)),buscar,estado,avisoCinta,rotuloEmpieza,lista);\n\n // Comandos disponibles = cinta (si existe) + extras. Se recalcula en cada apertura y\n // pulsación. Cada entrada recuerda si viene de la cinta: solo esos pueden «Mostrar».\n function disponibles(){\n  const manejar=cinta?cinta():null;\n  const deCinta=manejar&&typeof manejar.comandos==='function'?manejar.comandos():[];\n  const fuera=extras?extras():[];\n  return [...deCinta.map(comando=>({comando,deCinta:true})),...(fuera||[]).map(comando=>({comando,deCinta:false}))];\n }\n function resolverPasos(entradas){\n  const fuente=typeof pasos==='function'?pasos():(pasos||[]);\n  const resueltos=[];\n  for(const p of fuente){\n   if(!p||typeof p.control!=='string')continue;\n   const hallado=entradas.find(e=>e.comando.clave===p.control&&(!p.pestana||e.comando.pestana===p.pestana));\n   if(hallado)resueltos.push({entrada:hallado,texto:p.texto});\n  }\n  return resueltos;\n }\n function filaDe({entrada,texto}){\n  const c=entrada.comando;\n  const li=el('li',{class:'erlen-ayuda-fila'});\n  li.append(el('span',{class:'erlen-ayuda-etiqueta'},c.etiqueta));\n  if(c.ruta&&c.ruta.length)li.append(el('small',{class:'erlen-ayuda-ruta'},t.ubicacion+': '+c.ruta.join(' › ')));\n  if(texto)li.append(el('small',{class:'erlen-ayuda-texto'},texto));\n  if(!c.habilitado)li.append(el('span',{class:'erlen-ayuda-no'},t.noDisponible));\n  const acciones=el('span',{class:'erlen-ayuda-acciones'});\n  if(entrada.deCinta){\n   const mostrar=el('button',{type:'button',class:'erlen-ayuda-mostrar'},t.mostrar);\n   mostrar.addEventListener('click',()=>{cerrar();const manejar=cinta?cinta():null;if(manejar)manejar.enfocar(c.clave,c.pestana||undefined);});\n   acciones.append(mostrar);\n  }\n  const hazlo=el('button',{type:'button',class:'erlen-ayuda-hazlo'},t.hazlo);\n  if(!c.habilitado){hazlo.disabled=true;}\n  else hazlo.addEventListener('click',()=>{cerrar();c.ejecutar();});\n  acciones.append(hazlo);\n  li.append(acciones);\n  return li;\n }\n function pintar(){\n  const entradas=disponibles();\n  const consulta=entrada.value;\n  const sinCinta=!cinta||!cinta();\n  avisoCinta.hidden=!sinCinta;\n  if(sinCinta)avisoCinta.textContent=t.sinCinta;\n  lista.replaceChildren();\n  mascotaNodo.innerHTML=mascotaHola;\n  if(consulta.trim()===''){\n   const resueltos=resolverPasos(entradas);\n   // Sin cinta, los extras son lo único ejecutable: se listan junto al aviso, sin duplicar\n   // los pasos ya resueltos.\n   if(sinCinta){\n    const vistos=new Set(resueltos.map(r=>r.entrada.comando.clave));\n    for(const e of entradas)if(!vistos.has(e.comando.clave))resueltos.push({entrada:e});\n   }\n   rotuloEmpieza.hidden=!resueltos.length;\n   estado.textContent=resueltos.length?'':t.ayudaBuscar;\n   for(const r of resueltos)lista.append(filaDe(r));\n   return;\n  }\n  rotuloEmpieza.hidden=true;\n  const hallazgos=buscarComandos(consulta,entradas);\n  estado.textContent=hallazgos.length?t.resultados(hallazgos.length):t.sinResultados;\n  if(!hallazgos.length&&mascota!==false)mascotaNodo.innerHTML=mey('pensando');\n  for(const h of hallazgos)lista.append(filaDe({entrada:h}));\n }\n entrada.addEventListener('input',pintar);\n pintar();\n return {\n  nodo,\n  enfocarBusqueda(){entrada.focus();},\n  destruir(){entrada.removeEventListener('input',pintar);if(nodo.isConnected)nodo.remove();}\n };\n}\n",
  "src/diseno/suite-nav.mjs": "// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\n * of the Software, and to permit persons to whom the Software is furnished to do\n * so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n// Fuente única del menú de suite: diseno/suite-nav.mjs (docs/DISENO-PAQUETE.md). Colores como var(--erlen-*, valor) de tokens.css; las custom properties atraviesan el shadow DOM.\nimport {erlenColor,estilosErlen} from './suite-color.mjs';\n// Navegación explícita y preferencias locales de apariencia; sin transferencias ni peticiones.\nconst apps=[['slides','Slides'],['notes','Notes'],['lens','Lens'],['pentagrama','Pentagrama'],['documents','Documents'],['spreadsheets','Spreadsheets'],['figures','Figures'],['ftir','FTIR Studio'],['doe','DoE'],['xrd','XRD Studio'],['xps','XPS Studio'],['thermal','Thermal'],['methods','Methods'],['dft','DFT Studio'],['fem','FEM Studio'],['learn','Learn']];\nconst escapar=texto=>String(texto).replace(/[&<>\"]/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;'}[c]));\n// Misma validación que usa el menú: sin ella, un catálogo embebido mal formado pasaría la lectura\n// y luego haría fallar a mountSuiteNavigation en el arranque.\nfunction entradaValida(item,vistos){\n return !!item&&typeof item.id==='string'&&/^[a-z][a-z0-9-]*$/.test(item.id)&&typeof item.label==='string'&&!!item.label&&typeof item.href==='string'&&!!item.href&&!vistos.has(item.id);\n}\n// Catálogo de despliegue embebido por el build (<script type=\"application/json\" id=\"erlen-suite-catalog\">):\n// devuelve {items,home} o null si no está o no tiene esa forma — nunca lanza ni hace peticiones.\nexport function catalogoDe(doc){\n try{\n  const texto=doc?.getElementById?.('erlen-suite-catalog')?.textContent;\n  if(!texto)return null;\n  const dato=JSON.parse(texto);\n  if(!dato||!Array.isArray(dato.items)||!dato.items.length||!dato.home||typeof dato.home.href!=='string'||!dato.home.href)return null;\n  const vistos=new Set();\n  for(const item of dato.items){if(!entradaValida(item,vistos))return null;vistos.add(item.id);}\n  return {items:dato.items.map(({id,label,href})=>({id,label,href})),home:{id:dato.home.id||'portal',label:dato.home.label||'Inicio de Erlen',href:dato.home.href}};\n }catch{return null;}\n}\nexport function mountSuiteNavigation(parent,current,opciones={}){\n if(!parent)throw Error('Aplicación de la suite inválida.');\n // Catálogo explícito {items:[{id,label,href}],home:{href}} desde el build; sin él, la lista\n // histórica de la suite con rutas locales y la detección standalone de siempre.\n let entradas,home;\n if(opciones&&(opciones.items||opciones.home)){\n  if(!Array.isArray(opciones.items)||!opciones.items.length||!opciones.home||typeof opciones.home.href!=='string')throw Error('Aplicación de la suite inválida.');\n  const vistos=new Set();\n  entradas=opciones.items.map(item=>{\n   if(!item||typeof item.id!=='string'||!/^[a-z][a-z0-9-]*$/.test(item.id)||typeof item.label!=='string'||!item.label||typeof item.href!=='string'||!item.href||vistos.has(item.id))throw Error('Aplicación de la suite inválida.');\n   vistos.add(item.id);return [item.id,item.label,item.href];\n  });\n  home={href:opciones.home.href,label:opciones.home.label||'Inicio de Erlen'};\n }else{\n  entradas=apps.map(([id,label])=>[id,label,'/'+id+'/']);\n  home={href:'/',label:'Inicio de Erlen'};\n }\n const actual=entradas.find(([id])=>id===current);\n if(!actual)throw Error('Aplicación de la suite inválida.');\n // Standalone releases have no sibling apps. Do not create broken file/root links.\n const absoluta=/^[a-z][a-z0-9+.-]*:/i.test(actual[2]);\n if(!absoluta&&!parent.ownerDocument.defaultView.location.pathname.startsWith(actual[2]))return null;\n if(parent.querySelector('erlen-suite-nav'))return parent.querySelector('erlen-suite-nav');\n const doc=parent.ownerDocument,host=doc.createElement('erlen-suite-nav');\n const root=host.attachShadow({mode:'open'});\n const salida='<svg class=\"salida\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7 7h10v10M7 17 17 7\"/></svg>';\n const filas=Math.max(1,Math.ceil(entradas.length/2));\n const css=`\n:host{display:inline-block;font:14px/1.5 var(--erlen-font-ui,system-ui,sans-serif);color:var(--erlen-tinta,#243c32)}\n*{box-sizing:border-box}\nsummary{display:inline-flex;align-items:center;gap:8px;cursor:pointer;min-height:44px;padding:9px 14px 9px 16px;border:1px solid var(--erlen-vidrio-contorno,#c4d1bf);border-radius:var(--erlen-radio-capsula,7px);background:var(--erlen-superficie,#f7f9f3);box-shadow:inset 0 1px 0 var(--erlen-vidrio-borde,transparent),0 1px 2px var(--erlen-vidrio-contorno,transparent);list-style:none;font-weight:600}\nsummary:hover{border-color:var(--erlen-verde,#245b43)}\nsummary::-webkit-details-marker{display:none}\nsummary svg{width:16px;height:16px;transition:transform .18s ease}\ndetails[open] summary svg{transform:rotate(180deg)}\nsummary:focus-visible,a:focus-visible{outline:3px solid var(--erlen-foco,#94621e);outline-offset:3px}\nnav{display:none;position:fixed;z-index:2147483000;width:448px;max-width:calc(100vw - 24px);overflow:auto;background:var(--erlen-superficie,#fffefa);border:1px solid var(--erlen-vidrio-contorno,#c4d1bf);box-shadow:var(--erlen-vidrio-relieve,0 0 0 transparent),var(--erlen-sombra-menu,0 10px 28px #183b3226);border-radius:var(--erlen-radio-panel,18px);padding:12px}\ndetails[open] nav{display:block}\na{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;color:var(--erlen-verde,#245b43);text-decoration:none;border-radius:var(--erlen-radio-capsula,8px)}\na:hover,a:focus-visible{background:var(--erlen-verde-suave,#e9f0e2)}\na[aria-current]{font-weight:700;background:var(--erlen-verde-suave,#e9f0e2)}\n.salida{width:16px;height:16px;flex:none;margin-left:auto}\n.apps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(${filas},auto);grid-auto-flow:column;gap:2px 8px}\n.home{border-bottom:1px solid var(--erlen-linea,#dbe2d8);border-radius:0;margin-bottom:8px}\nsmall{display:block;margin-top:8px;padding:8px 12px;border-top:1px solid var(--erlen-linea,#dbe2d8);font-size:12px;line-height:1.5;color:var(--erlen-tinta-suave,#53644d)}\n.oculto{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n.apariencia{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:8px;padding:12px;border-top:1px solid var(--erlen-linea,#dbe2d8)}\n.apariencia label{display:grid;gap:4px;min-width:0;font-size:12px}\n.apariencia .estilo{grid-column:1/-1}\n.apariencia select,.apariencia button{width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid var(--erlen-linea-fuerte,#c4d1bf);border-radius:var(--erlen-radio-campo,8px);background:var(--erlen-superficie,#fffefa);color:var(--erlen-tinta,#243c32);font:inherit}\n.apariencia button{grid-column:1/-1;cursor:pointer;font-size:12px}\n.apariencia button:disabled{cursor:default;opacity:.6}\n.apariencia :focus-visible{outline:3px solid var(--erlen-foco,#94621e);outline-offset:2px}\n@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){nav{background:var(--erlen-vidrio-fuerte,color-mix(in srgb,var(--erlen-superficie,#fffefa) 94%,transparent));-webkit-backdrop-filter:var(--erlen-vidrio-filtro,blur(18px) saturate(115%));backdrop-filter:var(--erlen-vidrio-filtro,blur(18px) saturate(115%))}}\n@media (prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active){nav{background:var(--erlen-superficie,#fffefa);-webkit-backdrop-filter:none;backdrop-filter:none}}\n@media (max-width:540px){.apps{display:block}}\n@media (prefers-reduced-motion:reduce){summary svg{transition:none}}\n@media print{nav{display:none!important;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}}\n`;\n // Hoja construible: el CSSOM no cuenta como estilo inline y sigue funcionando bajo una CSP con\n // style-src 'self' (Lens y Learn); un <style> dentro del shadow root la incumpliría y el menú\n // saldría sin estilos. Sin hojas construibles (navegadores antiguos, jsdom) se usa el <style>.\n let hoja=null;\n try{const Hoja=doc.defaultView.CSSStyleSheet;if(Hoja&&'adoptedStyleSheets' in root){hoja=new Hoja();hoja.replaceSync(css);}}catch{hoja=null;}\n root.innerHTML=(hoja?'':`<style>${css}</style>`)+`<details><summary aria-label=\"Cambiar de aplicación de Erlen\">Suite<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"/></svg></summary><nav aria-label=\"Aplicaciones Erlen\"><a class=\"home\" href=\"${escapar(home.href)}\" target=\"_blank\" rel=\"noopener\">${escapar(home.label)}${salida}<span class=\"oculto\">(se abre en otra pestaña)</span></a><div class=\"apps\">${entradas.map(([id,label,href])=>`<a href=\"${escapar(href)}\" ${id===current?'aria-current=\"page\"':'target=\"_blank\" rel=\"noopener\"'}>${escapar(label)}${id===current?' · actual':salida+'<span class=\"oculto\">(se abre en otra pestaña)</span>'}</a>`).join('')}</div><small>Las otras apps se abren en otra pestaña. Tu trabajo sigue aquí.</small></nav></details>`;\n if(hoja)root.adoptedStyleSheets=[hoja];\n const details=root.querySelector('details'),summary=root.querySelector('summary'),nav=root.querySelector('nav');\n // En el menú existente: no se añade una barra o un botón a la interfaz de trabajo.\n const win=doc.defaultView,panel=doc.createElement('section');\n panel.className='apariencia';panel.setAttribute('aria-label','Apariencia');\n const elegir=(nombre,opciones,clase)=>{\n  const etiqueta=doc.createElement('label');etiqueta.textContent=nombre;\n  if(clase)etiqueta.className=clase;\n  const select=doc.createElement('select');\n  for(const [valor,texto] of opciones){const opcion=doc.createElement('option');opcion.value=valor;opcion.textContent=texto;select.append(opcion);}\n  etiqueta.append(select);panel.append(etiqueta);return select;\n };\n const estilo=elegir('Estilo visual',estilosErlen.map(({id,nombre})=>[id,nombre]),'estilo');\n const color=elegir('Color de acento',[['verde','Jade'],['platino','Platino'],['azul','Hielo'],['violeta','Iris'],['cobre','Champagne']]);\n const tema=elegir('Luz',[['sistema','Según tu dispositivo'],['claro','Claro'],['oscuro','Oscuro']]);\n const restaurar=doc.createElement('button');restaurar.type='button';restaurar.textContent='Restaurar estilo original';panel.append(restaurar);nav.append(panel);\n const sincronizar=()=>{\n  estilo.value=erlenColor.leerEstilo(win);color.value=erlenColor.leer(win);tema.value=erlenColor.leerTema(win)||'sistema';\n  restaurar.disabled=estilo.value==='original';\n };\n estilo.addEventListener('change',()=>erlenColor.guardarEstilo(win,estilo.value));\n color.addEventListener('change',()=>erlenColor.guardar(win,color.value));\n tema.addEventListener('change',()=>erlenColor.guardarTema(win,tema.value));\n restaurar.addEventListener('click',()=>{erlenColor.guardarEstilo(win,'original');estilo.focus();});\n const eventos=['erlen-estilo','erlen-color','erlen-tema'];\n for(const evento of eventos)win.addEventListener(evento,sincronizar);\n erlenColor.aplicarEstilo(win);sincronizar();\n function position(){if(!details.open)return;const r=summary.getBoundingClientRect(),w=Math.min(448,doc.defaultView.innerWidth-24);nav.style.left=Math.max(12,Math.min(r.right-w,doc.defaultView.innerWidth-w-12))+'px';nav.style.top=Math.min(r.bottom+6,doc.defaultView.innerHeight-100)+'px';nav.style.maxHeight=Math.max(88,doc.defaultView.innerHeight-r.bottom-18)+'px';}\n details.addEventListener('toggle',position);\n root.addEventListener('keydown',e=>{if(e.key==='Escape'&&details.open){details.open=false;summary.focus();}});\n root.querySelector('[aria-current]').addEventListener('click',e=>{e.preventDefault();details.open=false;summary.focus();});\n const outside=e=>{if(!e.composedPath().includes(host))details.open=false;};\n const onScroll=()=>{if(!details.open)return;const r=summary.getBoundingClientRect();if(r.bottom<0||r.top>doc.defaultView.innerHeight)details.open=false;else position();};\n doc.addEventListener('pointerdown',outside);doc.defaultView.addEventListener('resize',position);doc.defaultView.addEventListener('scroll',onScroll,{passive:true});\n host.dispose=()=>{for(const evento of eventos)win.removeEventListener(evento,sincronizar);doc.removeEventListener('pointerdown',outside);doc.defaultView.removeEventListener('resize',position);doc.defaultView.removeEventListener('scroll',onScroll);host.remove();};\n parent.append(host);return host;\n}\n// Los IIFE devuelven solo mountSuiteNavigation: el lector de catálogo viaja como propiedad.\nmountSuiteNavigation.catalogoDe=catalogoDe;\n",
  "src/diseno/suite-navigation.js": "/* erlen-diseno 2.11.8 · generado por @erlen/design/tools/generate; no editar a mano */\nconst erlenSuiteNavigation=(()=>{\n// Acento personal de Erlen y tema claro/oscuro/sistema. El CSS del portal y el paquete comparten\n// estos nombres; cada uno fija colores legibles en claro y oscuro sin recolorear a Mey ni los\n// documentos. Importarlo una vez desde la app junto a tokens.css: aplica las preferencias al\n// cargar y las sincroniza entre pestañas del mismo origen. Claves de almacenamiento y respaldo en\n// memoria cuando el almacenamiento está bloqueado: nunca falla ni pide permisos. El tema escribe\n// data-theme en <html> y lo resuelven los tokens existentes (tokens.css); no se crea ningún\n// almacenamiento sincronizado entre orígenes. La clave del tema es opt-in: mientras la app no\n// guarde una preferencia con guardarTema, este módulo no toca data-theme y el tema sigue siendo\n// de la app (muchas ya escriben data-theme desde su propio almacén).\nconst coloresErlen=['verde','violeta','azul','cobre','platino'];\nconst temasErlen=['sistema','claro','oscuro'];\n// Materiales opcionales del cromo. Original no añade ningún atributo ni cambia el tema,\n// la paleta o el contenido. Los nombres son también el catálogo de los controles.\nconst estilosErlen=[\n {id:'original',nombre:'Original'},\n {id:'glassmorfismo',nombre:'Glassmorfismo'},\n {id:'neumorfismo',nombre:'Neumorfismo'},\n {id:'neobrutalismo',nombre:'Neobrutalismo'},\n {id:'minimalismo',nombre:'Minimalismo'},\n {id:'art-deco',nombre:'Art déco'},\n {id:'claymorfismo',nombre:'Claymorfismo'},\n {id:'bauhaus',nombre:'Bauhaus'},\n {id:'frutiger-aero',nombre:'Frutiger Aero'},\n {id:'esqueuomorfismo',nombre:'Esqueuomorfismo'},\n {id:'retro-digital',nombre:'Retro digital'},\n {id:'y2k',nombre:'Y2K'},\n {id:'cyberpunk',nombre:'Cyberpunk'},\n {id:'blueprint',nombre:'Blueprint'}\n];\nconst clave='erlen-color';\nconst claveTema='erlen-tema';\nconst claveEstilo='erlen-estilo';\n// Los IIFE de menú, marco y color pueden coexistir: comparten el respaldo y un solo\n// listener por ventana, incluso con localStorage bloqueado.\nconst memoriaEstilo=Symbol.for('erlen.estilo.memoria');\nconst escuchaColor=Symbol.for('erlen.color.escucha');\nconst respaldo=Symbol.for('erlen.color.memoria');\nconst respaldoTema=Symbol.for('erlen.tema.memoria');\n\nconst erlenColor={\n estilos:estilosErlen,\n leer(ventana){\n  if(ventana?.[respaldo])return ventana[respaldo];\n  try{\n   const almacen=ventana?.localStorage;\n   if(almacen){const valor=almacen.getItem(clave);return coloresErlen.includes(valor)?valor:'verde';}\n  }catch{}\n  return 'verde';\n },\n aplicar(ventana){\n  const color=this.leer(ventana);\n  if(color==='verde')delete ventana.document.documentElement.dataset.erlenColor;\n  else ventana.document.documentElement.dataset.erlenColor=color;\n  return color;\n },\n guardar(ventana,color){\n  if(!coloresErlen.includes(color))throw new Error('erlen: color desconocido: '+color);\n  try{ventana.localStorage.setItem(clave,color);delete ventana[respaldo];}\n  catch{ventana[respaldo]=color;}\n  this.aplicar(ventana);\n  ventana.dispatchEvent(new ventana.Event('erlen-color'));\n },\n leerTema(ventana){\n  // Preferencia compartida guardada, o null si la app aún no usa esta clave: en ese caso el\n  // tema lo sigue resolviendo la propia app y este módulo no toca data-theme.\n  if(ventana?.[respaldoTema])return ventana[respaldoTema];\n  try{\n   const almacen=ventana?.localStorage;\n   if(almacen){const valor=almacen.getItem(claveTema);return valor===null?null:(temasErlen.includes(valor)?valor:null);}\n  }catch{}\n  return null;\n },\n aplicarTema(ventana){\n  const tema=this.leerTema(ventana);\n  if(tema===null)return null;\n  if(tema==='sistema')delete ventana.document.documentElement.dataset.theme;\n  else ventana.document.documentElement.dataset.theme=tema==='claro'?'light':'dark';\n  return tema;\n },\n guardarTema(ventana,tema){\n  if(!temasErlen.includes(tema))throw new Error('erlen: tema desconocido: '+tema);\n  try{ventana.localStorage.setItem(claveTema,tema);delete ventana[respaldoTema];}\n  catch{ventana[respaldoTema]=tema;}\n  this.aplicarTema(ventana);\n  ventana.dispatchEvent(new ventana.Event('erlen-tema'));\n },\n leerEstilo(ventana){\n  let valor;\n  try{valor=ventana?.localStorage?.getItem(claveEstilo);}catch{}\n  valor=ventana?.[memoriaEstilo]??valor;\n  return estilosErlen.some(estilo=>estilo.id===valor)?valor:'original';\n },\n aplicarEstilo(ventana){\n  const estilo=this.leerEstilo(ventana);\n  const raiz=ventana?.document?.documentElement;\n  if(raiz){\n   if(estilo==='original')delete raiz.dataset.erlenEstilo;\n   else raiz.dataset.erlenEstilo=estilo;\n  }\n  return estilo;\n },\n guardarEstilo(ventana,estilo){\n  if(!estilosErlen.some(opcion=>opcion.id===estilo))throw new Error('erlen: estilo desconocido: '+estilo);\n  try{ventana.localStorage.setItem(claveEstilo,estilo);delete ventana[memoriaEstilo];}\n  catch{ventana[memoriaEstilo]=estilo;}\n  this.aplicarEstilo(ventana);\n  ventana.dispatchEvent(new ventana.Event('erlen-estilo'));\n }\n};\n\nif(typeof window!=='undefined'){\n erlenColor.aplicar(window);\n erlenColor.aplicarTema(window);\n erlenColor.aplicarEstilo(window);\n if(!window[escuchaColor]){\n window[escuchaColor]=true;\n window.addEventListener('storage',evento=>{\n  if(evento.key===clave||evento.key===null){delete window[respaldo];erlenColor.aplicar(window);window.dispatchEvent(new Event('erlen-color'));}\n  if(evento.key===claveTema||evento.key===null){delete window[respaldoTema];erlenColor.aplicarTema(window);window.dispatchEvent(new Event('erlen-tema'));}\n  if(evento.key===claveEstilo||evento.key===null){\n   delete window[memoriaEstilo];\n   erlenColor.aplicarEstilo(window);window.dispatchEvent(new Event('erlen-estilo'));\n  }\n });\n }\n}\n\n// SPDX-License-Identifier: MIT\n/* Copyright (c) 2026 Erlen contributors\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\n * of the Software, and to permit persons to whom the Software is furnished to do\n * so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n// Fuente única del menú de suite: diseno/suite-nav.mjs (docs/DISENO-PAQUETE.md). Colores como var(--erlen-*, valor) de tokens.css; las custom properties atraviesan el shadow DOM.\n// Navegación explícita y preferencias locales de apariencia; sin transferencias ni peticiones.\nconst apps=[['slides','Slides'],['notes','Notes'],['lens','Lens'],['pentagrama','Pentagrama'],['documents','Documents'],['spreadsheets','Spreadsheets'],['figures','Figures'],['ftir','FTIR Studio'],['doe','DoE'],['xrd','XRD Studio'],['xps','XPS Studio'],['thermal','Thermal'],['methods','Methods'],['dft','DFT Studio'],['fem','FEM Studio'],['learn','Learn']];\nconst escapar=texto=>String(texto).replace(/[&<>\"]/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;'}[c]));\n// Misma validación que usa el menú: sin ella, un catálogo embebido mal formado pasaría la lectura\n// y luego haría fallar a mountSuiteNavigation en el arranque.\nfunction entradaValida(item,vistos){\n return !!item&&typeof item.id==='string'&&/^[a-z][a-z0-9-]*$/.test(item.id)&&typeof item.label==='string'&&!!item.label&&typeof item.href==='string'&&!!item.href&&!vistos.has(item.id);\n}\n// Catálogo de despliegue embebido por el build (<script type=\"application/json\" id=\"erlen-suite-catalog\">):\n// devuelve {items,home} o null si no está o no tiene esa forma — nunca lanza ni hace peticiones.\nfunction catalogoDe(doc){\n try{\n  const texto=doc?.getElementById?.('erlen-suite-catalog')?.textContent;\n  if(!texto)return null;\n  const dato=JSON.parse(texto);\n  if(!dato||!Array.isArray(dato.items)||!dato.items.length||!dato.home||typeof dato.home.href!=='string'||!dato.home.href)return null;\n  const vistos=new Set();\n  for(const item of dato.items){if(!entradaValida(item,vistos))return null;vistos.add(item.id);}\n  return {items:dato.items.map(({id,label,href})=>({id,label,href})),home:{id:dato.home.id||'portal',label:dato.home.label||'Inicio de Erlen',href:dato.home.href}};\n }catch{return null;}\n}\nfunction mountSuiteNavigation(parent,current,opciones={}){\n if(!parent)throw Error('Aplicación de la suite inválida.');\n // Catálogo explícito {items:[{id,label,href}],home:{href}} desde el build; sin él, la lista\n // histórica de la suite con rutas locales y la detección standalone de siempre.\n let entradas,home;\n if(opciones&&(opciones.items||opciones.home)){\n  if(!Array.isArray(opciones.items)||!opciones.items.length||!opciones.home||typeof opciones.home.href!=='string')throw Error('Aplicación de la suite inválida.');\n  const vistos=new Set();\n  entradas=opciones.items.map(item=>{\n   if(!item||typeof item.id!=='string'||!/^[a-z][a-z0-9-]*$/.test(item.id)||typeof item.label!=='string'||!item.label||typeof item.href!=='string'||!item.href||vistos.has(item.id))throw Error('Aplicación de la suite inválida.');\n   vistos.add(item.id);return [item.id,item.label,item.href];\n  });\n  home={href:opciones.home.href,label:opciones.home.label||'Inicio de Erlen'};\n }else{\n  entradas=apps.map(([id,label])=>[id,label,'/'+id+'/']);\n  home={href:'/',label:'Inicio de Erlen'};\n }\n const actual=entradas.find(([id])=>id===current);\n if(!actual)throw Error('Aplicación de la suite inválida.');\n // Standalone releases have no sibling apps. Do not create broken file/root links.\n const absoluta=/^[a-z][a-z0-9+.-]*:/i.test(actual[2]);\n if(!absoluta&&!parent.ownerDocument.defaultView.location.pathname.startsWith(actual[2]))return null;\n if(parent.querySelector('erlen-suite-nav'))return parent.querySelector('erlen-suite-nav');\n const doc=parent.ownerDocument,host=doc.createElement('erlen-suite-nav');\n const root=host.attachShadow({mode:'open'});\n const salida='<svg class=\"salida\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7 7h10v10M7 17 17 7\"/></svg>';\n const filas=Math.max(1,Math.ceil(entradas.length/2));\n const css=`\n:host{display:inline-block;font:14px/1.5 var(--erlen-font-ui,system-ui,sans-serif);color:var(--erlen-tinta,#243c32)}\n*{box-sizing:border-box}\nsummary{display:inline-flex;align-items:center;gap:8px;cursor:pointer;min-height:44px;padding:9px 14px 9px 16px;border:1px solid var(--erlen-vidrio-contorno,#c4d1bf);border-radius:var(--erlen-radio-capsula,7px);background:var(--erlen-superficie,#f7f9f3);box-shadow:inset 0 1px 0 var(--erlen-vidrio-borde,transparent),0 1px 2px var(--erlen-vidrio-contorno,transparent);list-style:none;font-weight:600}\nsummary:hover{border-color:var(--erlen-verde,#245b43)}\nsummary::-webkit-details-marker{display:none}\nsummary svg{width:16px;height:16px;transition:transform .18s ease}\ndetails[open] summary svg{transform:rotate(180deg)}\nsummary:focus-visible,a:focus-visible{outline:3px solid var(--erlen-foco,#94621e);outline-offset:3px}\nnav{display:none;position:fixed;z-index:2147483000;width:448px;max-width:calc(100vw - 24px);overflow:auto;background:var(--erlen-superficie,#fffefa);border:1px solid var(--erlen-vidrio-contorno,#c4d1bf);box-shadow:var(--erlen-vidrio-relieve,0 0 0 transparent),var(--erlen-sombra-menu,0 10px 28px #183b3226);border-radius:var(--erlen-radio-panel,18px);padding:12px}\ndetails[open] nav{display:block}\na{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;color:var(--erlen-verde,#245b43);text-decoration:none;border-radius:var(--erlen-radio-capsula,8px)}\na:hover,a:focus-visible{background:var(--erlen-verde-suave,#e9f0e2)}\na[aria-current]{font-weight:700;background:var(--erlen-verde-suave,#e9f0e2)}\n.salida{width:16px;height:16px;flex:none;margin-left:auto}\n.apps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(${filas},auto);grid-auto-flow:column;gap:2px 8px}\n.home{border-bottom:1px solid var(--erlen-linea,#dbe2d8);border-radius:0;margin-bottom:8px}\nsmall{display:block;margin-top:8px;padding:8px 12px;border-top:1px solid var(--erlen-linea,#dbe2d8);font-size:12px;line-height:1.5;color:var(--erlen-tinta-suave,#53644d)}\n.oculto{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n.apariencia{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:8px;padding:12px;border-top:1px solid var(--erlen-linea,#dbe2d8)}\n.apariencia label{display:grid;gap:4px;min-width:0;font-size:12px}\n.apariencia .estilo{grid-column:1/-1}\n.apariencia select,.apariencia button{width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid var(--erlen-linea-fuerte,#c4d1bf);border-radius:var(--erlen-radio-campo,8px);background:var(--erlen-superficie,#fffefa);color:var(--erlen-tinta,#243c32);font:inherit}\n.apariencia button{grid-column:1/-1;cursor:pointer;font-size:12px}\n.apariencia button:disabled{cursor:default;opacity:.6}\n.apariencia :focus-visible{outline:3px solid var(--erlen-foco,#94621e);outline-offset:2px}\n@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){nav{background:var(--erlen-vidrio-fuerte,color-mix(in srgb,var(--erlen-superficie,#fffefa) 94%,transparent));-webkit-backdrop-filter:var(--erlen-vidrio-filtro,blur(18px) saturate(115%));backdrop-filter:var(--erlen-vidrio-filtro,blur(18px) saturate(115%))}}\n@media (prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active){nav{background:var(--erlen-superficie,#fffefa);-webkit-backdrop-filter:none;backdrop-filter:none}}\n@media (max-width:540px){.apps{display:block}}\n@media (prefers-reduced-motion:reduce){summary svg{transition:none}}\n@media print{nav{display:none!important;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}}\n`;\n // Hoja construible: el CSSOM no cuenta como estilo inline y sigue funcionando bajo una CSP con\n // style-src 'self' (Lens y Learn); un <style> dentro del shadow root la incumpliría y el menú\n // saldría sin estilos. Sin hojas construibles (navegadores antiguos, jsdom) se usa el <style>.\n let hoja=null;\n try{const Hoja=doc.defaultView.CSSStyleSheet;if(Hoja&&'adoptedStyleSheets' in root){hoja=new Hoja();hoja.replaceSync(css);}}catch{hoja=null;}\n root.innerHTML=(hoja?'':`<style>${css}</style>`)+`<details><summary aria-label=\"Cambiar de aplicación de Erlen\">Suite<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"/></svg></summary><nav aria-label=\"Aplicaciones Erlen\"><a class=\"home\" href=\"${escapar(home.href)}\" target=\"_blank\" rel=\"noopener\">${escapar(home.label)}${salida}<span class=\"oculto\">(se abre en otra pestaña)</span></a><div class=\"apps\">${entradas.map(([id,label,href])=>`<a href=\"${escapar(href)}\" ${id===current?'aria-current=\"page\"':'target=\"_blank\" rel=\"noopener\"'}>${escapar(label)}${id===current?' · actual':salida+'<span class=\"oculto\">(se abre en otra pestaña)</span>'}</a>`).join('')}</div><small>Las otras apps se abren en otra pestaña. Tu trabajo sigue aquí.</small></nav></details>`;\n if(hoja)root.adoptedStyleSheets=[hoja];\n const details=root.querySelector('details'),summary=root.querySelector('summary'),nav=root.querySelector('nav');\n // En el menú existente: no se añade una barra o un botón a la interfaz de trabajo.\n const win=doc.defaultView,panel=doc.createElement('section');\n panel.className='apariencia';panel.setAttribute('aria-label','Apariencia');\n const elegir=(nombre,opciones,clase)=>{\n  const etiqueta=doc.createElement('label');etiqueta.textContent=nombre;\n  if(clase)etiqueta.className=clase;\n  const select=doc.createElement('select');\n  for(const [valor,texto] of opciones){const opcion=doc.createElement('option');opcion.value=valor;opcion.textContent=texto;select.append(opcion);}\n  etiqueta.append(select);panel.append(etiqueta);return select;\n };\n const estilo=elegir('Estilo visual',estilosErlen.map(({id,nombre})=>[id,nombre]),'estilo');\n const color=elegir('Color de acento',[['verde','Jade'],['platino','Platino'],['azul','Hielo'],['violeta','Iris'],['cobre','Champagne']]);\n const tema=elegir('Luz',[['sistema','Según tu dispositivo'],['claro','Claro'],['oscuro','Oscuro']]);\n const restaurar=doc.createElement('button');restaurar.type='button';restaurar.textContent='Restaurar estilo original';panel.append(restaurar);nav.append(panel);\n const sincronizar=()=>{\n  estilo.value=erlenColor.leerEstilo(win);color.value=erlenColor.leer(win);tema.value=erlenColor.leerTema(win)||'sistema';\n  restaurar.disabled=estilo.value==='original';\n };\n estilo.addEventListener('change',()=>erlenColor.guardarEstilo(win,estilo.value));\n color.addEventListener('change',()=>erlenColor.guardar(win,color.value));\n tema.addEventListener('change',()=>erlenColor.guardarTema(win,tema.value));\n restaurar.addEventListener('click',()=>{erlenColor.guardarEstilo(win,'original');estilo.focus();});\n const eventos=['erlen-estilo','erlen-color','erlen-tema'];\n for(const evento of eventos)win.addEventListener(evento,sincronizar);\n erlenColor.aplicarEstilo(win);sincronizar();\n function position(){if(!details.open)return;const r=summary.getBoundingClientRect(),w=Math.min(448,doc.defaultView.innerWidth-24);nav.style.left=Math.max(12,Math.min(r.right-w,doc.defaultView.innerWidth-w-12))+'px';nav.style.top=Math.min(r.bottom+6,doc.defaultView.innerHeight-100)+'px';nav.style.maxHeight=Math.max(88,doc.defaultView.innerHeight-r.bottom-18)+'px';}\n details.addEventListener('toggle',position);\n root.addEventListener('keydown',e=>{if(e.key==='Escape'&&details.open){details.open=false;summary.focus();}});\n root.querySelector('[aria-current]').addEventListener('click',e=>{e.preventDefault();details.open=false;summary.focus();});\n const outside=e=>{if(!e.composedPath().includes(host))details.open=false;};\n const onScroll=()=>{if(!details.open)return;const r=summary.getBoundingClientRect();if(r.bottom<0||r.top>doc.defaultView.innerHeight)details.open=false;else position();};\n doc.addEventListener('pointerdown',outside);doc.defaultView.addEventListener('resize',position);doc.defaultView.addEventListener('scroll',onScroll,{passive:true});\n host.dispose=()=>{for(const evento of eventos)win.removeEventListener(evento,sincronizar);doc.removeEventListener('pointerdown',outside);doc.defaultView.removeEventListener('resize',position);doc.defaultView.removeEventListener('scroll',onScroll);host.remove();};\n parent.append(host);return host;\n}\n// Los IIFE devuelven solo mountSuiteNavigation: el lector de catálogo viaja como propiedad.\nmountSuiteNavigation.catalogoDe=catalogoDe;\n\nreturn mountSuiteNavigation;})();\n",
  "src/diseno/tokens.css": "/* Vidrio mineral · decisión del usuario 2026-09-30. Tipografía original de Erlen: Latin Modern y Computer Modern; se conserva también en documentos y exportación. */\n/* Erlen Suite · paquete de diseño 2.0.0 · tokens (docs/DISENO-PAQUETE.md, docs/GUIA-DISENO.md §0 y §2–§6).\n   Fuente única en el portal: diseno/tokens.css. Los valores viven aquí y solo aquí; el cromo de cada app usa var(--erlen-*), nunca literales.\n   2.0.0 · cristal (vidrio líquido): el material de la capa de controles también vive aquí, con sus respaldos opacos (sin\n   backdrop-filter, prefers-reduced-transparency, prefers-contrast:more, forced-colors y [data-erlen-material=\"solido\"]).\n   Claro por defecto; oscuro por prefers-color-scheme (salvo [data-theme=\"light\"]) o por [data-theme=\"dark\"]. Licencia: licencias/MIT.txt */\n:root{color-scheme:light;\n /* Paleta: papel, tinta, verde, ámbar, peligro, línea, superficie */\n --erlen-papel:#f8f8f4;--erlen-superficie:#fdfdfb;--erlen-superficie-2:#f1f4f0;\n --erlen-tinta:#202824;--erlen-tinta-suave:#536159;\n --erlen-verde:#225747;--erlen-verde-suave:#e9efea;--erlen-verde-contraste:#fdfdfb;\n --erlen-ambar:#94621e;--erlen-ambar-suave:#fff4d6;\n --erlen-peligro:#a22d26;--erlen-peligro-suave:#fce8e3;\n --erlen-linea:#dbe2d8;--erlen-linea-fuerte:#c4d1bf;\n --erlen-foco:var(--erlen-ambar);\n --erlen-mey-ojos:#18171b;--erlen-mey-reflejo:#fdfdfd;\n /* Sobre oscuro (hero y franjas del portal; en las apps solo si una sección lo pide) */\n --erlen-espacio-fondo:#070a12;--erlen-espacio-tinta:#ecf0eb;--erlen-espacio-acento:#adcabd;--erlen-espacio-borde:#ffffff1f;\n /* Tipografía (familia de Knuth, fuentes.css) */\n --erlen-font-titulo:\"LM Roman\",Georgia,\"Times New Roman\",serif;\n --erlen-font-cuerpo:\"CMU Concrete\",Georgia,\"Times New Roman\",serif;\n --erlen-font-ui:\"LM Sans\",system-ui,-apple-system,\"Segoe UI\",sans-serif;\n --erlen-font-mono:\"CMU Typewriter\",ui-monospace,\"JetBrains Mono\",monospace;\n /* Escala */\n --erlen-texto-xs:12px;--erlen-texto-sm:14px;--erlen-texto-ui:15px;--erlen-texto-base:17px;--erlen-texto-lg:18px;\n --erlen-h1:clamp(42px,5.3vw,76px);--erlen-h2:clamp(28px,3vw,40px);--erlen-h3:24px;--erlen-h1-app:clamp(24px,2.6vw,30px);\n --erlen-interlineado:1.7;--erlen-interlineado-ui:1.5;\n /* Espaciado */\n --erlen-esp-1:4px;--erlen-esp-2:8px;--erlen-esp-3:12px;--erlen-esp-4:16px;--erlen-esp-5:24px;--erlen-esp-6:32px;--erlen-esp-7:48px;--erlen-esp-8:64px;\n /* Radios: concéntricos (interior = exterior − relleno); cápsula para pestañas, navegación y acciones */\n --erlen-radio-campo:8px;--erlen-radio-pequeno:8px;--erlen-radio-tarjeta:18px;--erlen-radio-panel:24px;--erlen-radio-badge:999px;--erlen-radio-capsula:999px;\n /* Sombras: paneles destacados, menús flotantes y tarjetas de cristal */\n --erlen-sombra-tarjeta:0 10px 30px #284b3014;--erlen-sombra-menu:0 14px 36px #183b3229;--erlen-sombra-panel:0 20px 55px #284b3014;\n /* Cristal (vidrio líquido, 2.0.0). Solo la capa de controles: cinta, cabeceras, menús, diálogos, paneles y tarjetas del inicio.\n    El área de trabajo (documento, hoja, lienzo, diapositiva, figura, espectro, partitura) sigue opaca.\n    --erlen-vidrio: sobre la atmósfera o sobre papel (barra lateral, tarjetas, paneles).\n    --erlen-vidrio-fuerte: sobre contenido que cambia (cinta, cabeceras fijas, menús, diálogos); legible sobre negro puro (test).\n    --erlen-vidrio-filtro: el desenfoque; úsalo solo en capas que flotan sobre contenido y nunca en áreas grandes que se desplazan. */\n --erlen-vidrio:color-mix(in srgb,var(--erlen-superficie) 84%,transparent);\n --erlen-vidrio-fuerte:color-mix(in srgb,var(--erlen-superficie) 94%,transparent);\n --erlen-vidrio-tinte:color-mix(in srgb,var(--erlen-verde) 10%,transparent);\n --erlen-vidrio-borde:#ffffffb3;--erlen-vidrio-contorno:#20282424;\n --erlen-vidrio-reflejo:linear-gradient(180deg,#ffffff38 0,#ffffff0d 38%,#ffffff00 62%);\n --erlen-vidrio-relieve:inset 0 1px 0 #ffffff99,0 4px 18px #1b2e2510;\n --erlen-vidrio-filtro:blur(18px) saturate(115%);\n /* Brillo especular sobre rellenos del acento (botón principal, «Archivo», «+»): tenue para que su texto siga ≥ 4,5:1 (test) */\n --erlen-vidrio-reflejo-acento:linear-gradient(180deg,#ffffff14 0,#ffffff05 45%,#ffffff00 60%);\n /* Atmósfera: luz de color detrás del cromo (inicio de las apps, portal); nunca detrás del contenido del usuario */\n /* --erlen-luz: versión luminosa del acento (la misma en claro y oscuro); la eligen también los acentos personales */\n --erlen-luz:#adcabd;\n --erlen-atmosfera-a:color-mix(in srgb,var(--erlen-luz) 14%,transparent);\n --erlen-atmosfera-b:color-mix(in srgb,#d2c1e3 8%,transparent);\n --erlen-atmosfera:radial-gradient(60% 70% at 0% 0%,var(--erlen-atmosfera-a) 0,transparent 72%),radial-gradient(55% 60% at 100% 0%,var(--erlen-atmosfera-b) 0,transparent 70%),radial-gradient(70% 55% at 75% 100%,var(--erlen-atmosfera-a) 0,transparent 70%),radial-gradient(50% 45% at 15% 95%,var(--erlen-atmosfera-b) 0,transparent 70%),var(--erlen-papel);\n /* Movimiento: micro 120 ms, estados 180 ms, entradas 300 ms */\n --erlen-dur-micro:.12s;--erlen-dur:.18s;--erlen-dur-entrada:.3s;--erlen-ease:cubic-bezier(.2,.7,.2,1);\n /* Controles */\n --erlen-alto-control:44px;--erlen-ancho-lectura:72ch}\n/* Modo oscuro: se redefinen papel, superficie, tinta, línea y sombras (GUIA-DISENO §2); el verde pasa al acento sobre oscuro, y el ámbar y el peligro (con sus fondos suaves) se aclaran para superar 4,5:1 como texto (autorizado por Jorge el 2026-09-22), para conservar contraste. */\n@media(prefers-color-scheme:dark){:root:not([data-theme=\"light\"]){color-scheme:dark;\n --erlen-papel:#121815;--erlen-superficie:#1c2520;--erlen-superficie-2:#242f28;\n --erlen-tinta:#ecf0eb;--erlen-tinta-suave:#b2bcb5;\n --erlen-verde:#adcabd;--erlen-verde-suave:#1f2f28;--erlen-verde-contraste:#121815;\n --erlen-ambar:#e3aa5c;--erlen-ambar-suave:#2f2514;--erlen-peligro:#f2877b;--erlen-peligro-suave:#3b1e1b;\n --erlen-linea:#ffffff1f;--erlen-linea-fuerte:#ffffff33;\n --erlen-sombra-tarjeta:0 10px 30px #00000059;--erlen-sombra-menu:0 14px 36px #00000080;--erlen-sombra-panel:0 20px 55px #00000066;\n --erlen-vidrio-borde:#ffffff24;--erlen-vidrio-contorno:#ffffff1f;\n --erlen-vidrio-reflejo:linear-gradient(180deg,#ffffff17 0,#ffffff08 38%,#ffffff00 62%);\n --erlen-vidrio-relieve:inset 0 1px 0 #ffffff2e,inset 0 0 0 1px #ffffff0d,inset 0 -1px 0 #ffffff0d,0 1px 2px #00000040,0 10px 28px #00000059;\n --erlen-atmosfera-a:color-mix(in srgb,var(--erlen-luz) 7%,transparent);--erlen-atmosfera-b:color-mix(in srgb,#d2c1e3 5%,transparent)}}\n:root[data-theme=\"dark\"]{color-scheme:dark;\n --erlen-papel:#121815;--erlen-superficie:#1c2520;--erlen-superficie-2:#242f28;\n --erlen-tinta:#ecf0eb;--erlen-tinta-suave:#b2bcb5;\n --erlen-verde:#adcabd;--erlen-verde-suave:#1f2f28;--erlen-verde-contraste:#121815;\n --erlen-ambar:#e3aa5c;--erlen-ambar-suave:#2f2514;--erlen-peligro:#f2877b;--erlen-peligro-suave:#3b1e1b;\n --erlen-linea:#ffffff1f;--erlen-linea-fuerte:#ffffff33;\n --erlen-sombra-tarjeta:0 10px 30px #00000059;--erlen-sombra-menu:0 14px 36px #00000080;--erlen-sombra-panel:0 20px 55px #00000066;\n --erlen-vidrio-borde:#ffffff24;--erlen-vidrio-contorno:#ffffff1f;\n --erlen-vidrio-reflejo:linear-gradient(180deg,#ffffff17 0,#ffffff08 38%,#ffffff00 62%);\n --erlen-vidrio-relieve:inset 0 1px 0 #ffffff2e,inset 0 0 0 1px #ffffff0d,inset 0 -1px 0 #ffffff0d,0 1px 2px #00000040,0 10px 28px #00000059;\n --erlen-atmosfera-a:color-mix(in srgb,var(--erlen-luz) 7%,transparent);--erlen-atmosfera-b:color-mix(in srgb,#d2c1e3 5%,transparent)}\n/* La preferencia de color solo toca el acento del cromo, no documentos, Mey, iconos o\n   --erlen-foco. Contraste mínimo 4,5:1 en ambas superficies de las apps. */\n:root[data-erlen-color=\"violeta\"]{--erlen-verde:#624b7b;--erlen-verde-suave:#eee8f6;--erlen-luz:#d2c1e3}\n:root[data-erlen-color=\"azul\"]{--erlen-verde:#244e73;--erlen-verde-suave:#e6effb;--erlen-luz:#b9d2e8}\n:root[data-erlen-color=\"cobre\"]{--erlen-verde:#6a532b;--erlen-verde-suave:#f5ebe2;--erlen-luz:#e0cca4}\n@media(prefers-color-scheme:dark){\n :root:not([data-theme=\"light\"])[data-erlen-color=\"violeta\"]{--erlen-verde:#d2c1e3;--erlen-verde-suave:#31273d}\n :root:not([data-theme=\"light\"])[data-erlen-color=\"azul\"]{--erlen-verde:#b9d2e8;--erlen-verde-suave:#203047}\n :root:not([data-theme=\"light\"])[data-erlen-color=\"cobre\"]{--erlen-verde:#e0cca4;--erlen-verde-suave:#37291f}\n}\n:root[data-theme=\"dark\"][data-erlen-color=\"violeta\"]{--erlen-verde:#d2c1e3;--erlen-verde-suave:#31273d}\n:root[data-theme=\"dark\"][data-erlen-color=\"azul\"]{--erlen-verde:#b9d2e8;--erlen-verde-suave:#203047}\n:root[data-theme=\"dark\"][data-erlen-color=\"cobre\"]{--erlen-verde:#e0cca4;--erlen-verde-suave:#37291f}\n:root[data-erlen-color=\"platino\"]{--erlen-verde:#3f4b53;--erlen-verde-suave:#e8edf0;--erlen-luz:#c3d0d8}\n@media(prefers-color-scheme:dark){:root:not([data-theme=\"light\"])[data-erlen-color=\"platino\"]{--erlen-verde:#c3d0d8;--erlen-verde-suave:#273239}}\n:root[data-theme=\"dark\"][data-erlen-color=\"platino\"]{--erlen-verde:#c3d0d8;--erlen-verde-suave:#273239}\n/* Estilos opt-in: solo material, contornos, radios y sombras del cromo. Sin atributo,\n   todos los valores originales de arriba permanecen idénticos. Paleta, fuentes, foco\n   y superficies opacas de contenido se conservan en todos los estilos. */\n:root[data-erlen-estilo=\"glassmorfismo\"]{\n --erlen-vidrio:color-mix(in srgb,var(--erlen-superficie) 74%,transparent);\n --erlen-vidrio-fuerte:color-mix(in srgb,var(--erlen-superficie) 90%,transparent);\n --erlen-vidrio-filtro:blur(28px) saturate(160%);\n --erlen-radio-campo:16px;--erlen-radio-tarjeta:28px;--erlen-radio-panel:32px;\n --erlen-vidrio-reflejo:linear-gradient(135deg,color-mix(in srgb,var(--erlen-vidrio-borde) 65%,transparent),transparent 55%);\n --erlen-vidrio-relieve:inset 0 0 0 1px var(--erlen-vidrio-borde),inset 0 -1px 0 color-mix(in srgb,var(--erlen-vidrio-borde) 45%,transparent),0 16px 40px color-mix(in srgb,var(--erlen-espacio-fondo) 20%,transparent);\n --erlen-control-relieve:inset 0 0 0 1px var(--erlen-vidrio-borde),0 4px 12px color-mix(in srgb,var(--erlen-espacio-fondo) 16%,transparent);\n --erlen-atmosfera-a:color-mix(in srgb,var(--erlen-luz) 70%,transparent);\n --erlen-atmosfera-b:color-mix(in srgb,#d2c1e3 55%,transparent);\n}\n/* La luz detrás del cristal conserva la lectura del héroe en oscuro. */\n@media(prefers-color-scheme:dark){:root:not([data-theme=\"light\"])[data-erlen-estilo=\"glassmorfismo\"]{--erlen-atmosfera-a:color-mix(in srgb,var(--erlen-luz) 18%,transparent);--erlen-atmosfera-b:color-mix(in srgb,#d2c1e3 12%,transparent)}}\n:root[data-theme=\"dark\"][data-erlen-estilo=\"glassmorfismo\"]{--erlen-atmosfera-a:color-mix(in srgb,var(--erlen-luz) 18%,transparent);--erlen-atmosfera-b:color-mix(in srgb,#d2c1e3 12%,transparent)}\n:root[data-erlen-estilo=\"neumorfismo\"]{\n --erlen-vidrio:var(--erlen-superficie-2);--erlen-vidrio-fuerte:var(--erlen-superficie-2);\n --erlen-vidrio-filtro:none;--erlen-vidrio-reflejo:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:18px;--erlen-radio-tarjeta:28px;--erlen-radio-panel:32px;\n --erlen-vidrio-contorno:color-mix(in srgb,var(--erlen-linea) 45%,transparent);\n --erlen-vidrio-relieve:-10px -10px 24px color-mix(in srgb,var(--erlen-superficie) 75%,#fff),10px 10px 24px color-mix(in srgb,var(--erlen-espacio-fondo) 22%,transparent);\n --erlen-control-relieve:-3px -3px 8px color-mix(in srgb,var(--erlen-superficie) 75%,#fff),3px 3px 8px color-mix(in srgb,var(--erlen-espacio-fondo) 22%,transparent);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-superficie-2);\n}\n:root[data-erlen-estilo=\"neobrutalismo\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);\n --erlen-vidrio-filtro:none;--erlen-vidrio-reflejo:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:0px;--erlen-radio-pequeno:0px;--erlen-radio-tarjeta:0px;--erlen-radio-panel:0px;--erlen-radio-badge:0px;--erlen-radio-capsula:0px;\n --erlen-vidrio-contorno:var(--erlen-tinta);--erlen-vidrio-borde:var(--erlen-tinta);\n --erlen-vidrio-relieve:inset 0 0 0 2px var(--erlen-tinta),6px 6px 0 var(--erlen-tinta);\n --erlen-control-relieve:inset 0 0 0 2px var(--erlen-tinta),3px 3px 0 var(--erlen-tinta);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"minimalismo\"]{\n --erlen-vidrio:var(--erlen-papel);--erlen-vidrio-fuerte:var(--erlen-papel);\n --erlen-vidrio-filtro:none;--erlen-vidrio-reflejo:none;--erlen-vidrio-reflejo-acento:none;--erlen-vidrio-relieve:none;\n --erlen-control-relieve:none;\n --erlen-vidrio-contorno:var(--erlen-linea-fuerte);--erlen-vidrio-borde:var(--erlen-linea-fuerte);\n --erlen-radio-campo:2px;--erlen-radio-pequeno:2px;--erlen-radio-tarjeta:0px;--erlen-radio-panel:0px;--erlen-radio-capsula:2px;\n --erlen-sombra-tarjeta:none;--erlen-sombra-menu:none;--erlen-sombra-panel:none;\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"art-deco\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;\n --erlen-radio-campo:0px;--erlen-radio-pequeno:0px;--erlen-radio-tarjeta:0px;--erlen-radio-panel:0px;--erlen-radio-capsula:0px;--erlen-radio-badge:0px;\n --erlen-vidrio-contorno:var(--erlen-ambar);--erlen-vidrio-borde:var(--erlen-ambar);\n --erlen-vidrio-reflejo:linear-gradient(135deg,transparent 85%,color-mix(in srgb,var(--erlen-ambar) 15%,transparent) 85%,transparent 86%),linear-gradient(315deg,transparent 85%,color-mix(in srgb,var(--erlen-ambar) 15%,transparent) 85%,transparent 86%);\n --erlen-vidrio-relieve:inset 0 0 0 4px var(--erlen-superficie),inset 0 0 0 5px var(--erlen-ambar),inset 0 0 0 8px var(--erlen-superficie),inset 0 0 0 9px color-mix(in srgb,var(--erlen-ambar) 55%,transparent);\n --erlen-control-relieve:inset 0 0 0 2px var(--erlen-superficie),inset 0 0 0 3px var(--erlen-ambar);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n/* Ocho expresiones adicionales: materiales estáticos y paleta personal; solo cromo. */\n:root[data-erlen-estilo=\"claymorfismo\"]{\n --erlen-vidrio:var(--erlen-superficie-2);--erlen-vidrio-fuerte:var(--erlen-superficie-2);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:22px;--erlen-radio-pequeno:22px;--erlen-radio-tarjeta:32px;--erlen-radio-panel:36px;--erlen-radio-capsula:22px;--erlen-radio-badge:22px;\n --erlen-vidrio-reflejo:linear-gradient(145deg,color-mix(in srgb,var(--erlen-superficie) 70%,transparent),transparent 65%);\n --erlen-vidrio-contorno:var(--erlen-linea);\n --erlen-vidrio-relieve:inset 3px 3px 6px color-mix(in srgb,var(--erlen-superficie) 80%,transparent),inset -4px -4px 8px color-mix(in srgb,var(--erlen-espacio-fondo) 12%,transparent),0 9px 0 color-mix(in srgb,var(--erlen-verde) 14%,var(--erlen-superficie-2)),0 14px 22px color-mix(in srgb,var(--erlen-espacio-fondo) 14%,transparent);\n --erlen-control-relieve:inset 2px 2px 3px var(--erlen-superficie),inset -2px -2px 4px color-mix(in srgb,var(--erlen-espacio-fondo) 12%,transparent),0 3px 0 color-mix(in srgb,var(--erlen-verde) 20%,var(--erlen-superficie-2));\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"bauhaus\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:0px;--erlen-radio-pequeno:0px;--erlen-radio-tarjeta:0px;--erlen-radio-panel:0px;--erlen-radio-capsula:0px;--erlen-radio-badge:0px;\n --erlen-vidrio-reflejo:radial-gradient(circle at 100% 0,color-mix(in srgb,var(--erlen-verde) 8%,transparent) 0 54px,transparent 55px),linear-gradient(90deg,color-mix(in srgb,var(--erlen-ambar) 7%,transparent) 0 10px,transparent 10px);\n --erlen-vidrio-contorno:var(--erlen-verde);\n --erlen-vidrio-relieve:inset 0 0 0 2px var(--erlen-verde),inset 10px 0 0 var(--erlen-ambar);\n --erlen-control-relieve:inset 0 -3px 0 var(--erlen-ambar),inset 0 0 0 1px var(--erlen-verde);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"frutiger-aero\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:18px;--erlen-radio-pequeno:18px;--erlen-radio-tarjeta:26px;--erlen-radio-panel:30px;--erlen-radio-capsula:999px;--erlen-radio-badge:999px;\n --erlen-vidrio-reflejo:radial-gradient(ellipse at 24% 0,color-mix(in srgb,var(--erlen-superficie) 90%,transparent),transparent 62%),linear-gradient(180deg,color-mix(in srgb,var(--erlen-luz) 9%,transparent) 0 48%,transparent 49%,color-mix(in srgb,var(--erlen-verde) 6%,transparent) 100%);\n --erlen-vidrio-contorno:color-mix(in srgb,var(--erlen-verde) 42%,var(--erlen-linea));\n --erlen-vidrio-relieve:inset 0 2px 0 var(--erlen-superficie),inset 0 -3px 0 color-mix(in srgb,var(--erlen-verde) 20%,transparent),0 8px 22px color-mix(in srgb,var(--erlen-verde) 20%,transparent);\n --erlen-control-relieve:inset 0 2px 0 color-mix(in srgb,var(--erlen-superficie) 60%,transparent),inset 0 -2px 0 color-mix(in srgb,var(--erlen-verde) 25%,transparent),0 3px 8px color-mix(in srgb,var(--erlen-verde) 20%,transparent);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"esqueuomorfismo\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:6px;--erlen-radio-pequeno:6px;--erlen-radio-tarjeta:8px;--erlen-radio-panel:10px;--erlen-radio-capsula:6px;--erlen-radio-badge:6px;\n --erlen-vidrio-reflejo:repeating-linear-gradient(0deg,color-mix(in srgb,var(--erlen-tinta) 3%,transparent) 0 1px,transparent 1px 4px),linear-gradient(180deg,color-mix(in srgb,var(--erlen-superficie) 70%,transparent),transparent 55%,color-mix(in srgb,var(--erlen-espacio-fondo) 5%,transparent));\n --erlen-vidrio-contorno:var(--erlen-linea-fuerte);\n --erlen-vidrio-relieve:inset 0 2px 0 var(--erlen-superficie),inset 0 -3px 0 var(--erlen-linea-fuerte),0 4px 0 var(--erlen-linea),0 7px 12px color-mix(in srgb,var(--erlen-espacio-fondo) 18%,transparent);\n --erlen-control-relieve:inset 0 1px 0 var(--erlen-superficie),inset 0 -2px 0 var(--erlen-linea-fuerte),0 2px 0 var(--erlen-linea-fuerte);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"retro-digital\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:0px;--erlen-radio-pequeno:0px;--erlen-radio-tarjeta:0px;--erlen-radio-panel:0px;--erlen-radio-capsula:0px;--erlen-radio-badge:0px;\n --erlen-vidrio-reflejo:repeating-linear-gradient(180deg,color-mix(in srgb,var(--erlen-tinta) 2%,transparent) 0 1px,transparent 1px 3px);\n --erlen-vidrio-contorno:var(--erlen-tinta);\n --erlen-vidrio-relieve:inset 2px 2px 0 var(--erlen-superficie),inset -2px -2px 0 var(--erlen-linea-fuerte),3px 0 0 var(--erlen-tinta),0 3px 0 var(--erlen-tinta),6px 6px 0 var(--erlen-linea-fuerte);\n --erlen-control-relieve:inset 2px 2px 0 var(--erlen-linea),inset -2px -2px 0 var(--erlen-tinta),2px 2px 0 var(--erlen-linea-fuerte);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"y2k\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:14px;--erlen-radio-pequeno:14px;--erlen-radio-tarjeta:24px;--erlen-radio-panel:28px;--erlen-radio-capsula:999px;--erlen-radio-badge:999px;\n --erlen-vidrio-reflejo:linear-gradient(165deg,transparent 0 20%,color-mix(in srgb,var(--erlen-tinta) 6%,transparent) 24%,color-mix(in srgb,var(--erlen-superficie) 85%,transparent) 32%,color-mix(in srgb,var(--erlen-tinta) 7%,transparent) 40%,transparent 48% 68%,color-mix(in srgb,var(--erlen-luz) 10%,transparent) 76%,transparent 90%);\n --erlen-vidrio-contorno:color-mix(in srgb,var(--erlen-tinta) 55%,var(--erlen-linea));\n --erlen-vidrio-relieve:inset 0 2px 0 var(--erlen-superficie),inset 0 -2px 0 var(--erlen-linea-fuerte),inset 2px 0 0 var(--erlen-linea),inset -2px 0 0 var(--erlen-linea),0 6px 16px color-mix(in srgb,var(--erlen-espacio-fondo) 18%,transparent);\n --erlen-control-relieve:inset 0 2px 0 color-mix(in srgb,var(--erlen-superficie) 65%,transparent),inset 0 -2px 0 var(--erlen-linea-fuerte),0 2px 5px color-mix(in srgb,var(--erlen-espacio-fondo) 18%,transparent);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"cyberpunk\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:2px;--erlen-radio-pequeno:2px;--erlen-radio-tarjeta:2px;--erlen-radio-panel:2px;--erlen-radio-capsula:2px;--erlen-radio-badge:2px;\n --erlen-vidrio-reflejo:repeating-linear-gradient(135deg,transparent 0 20px,color-mix(in srgb,var(--erlen-verde) 4%,transparent) 20px 22px,transparent 22px 42px);\n --erlen-vidrio-contorno:var(--erlen-verde);\n --erlen-vidrio-relieve:inset 0 0 0 1px var(--erlen-verde),inset 4px 0 0 var(--erlen-verde),inset -4px 0 0 var(--erlen-verde),0 0 18px color-mix(in srgb,var(--erlen-verde) 35%,transparent);\n --erlen-control-relieve:inset 0 0 0 1px var(--erlen-verde),0 0 8px color-mix(in srgb,var(--erlen-verde) 40%,transparent);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n:root[data-erlen-estilo=\"blueprint\"]{\n --erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-filtro:none;--erlen-vidrio-reflejo-acento:none;\n --erlen-radio-campo:0px;--erlen-radio-pequeno:0px;--erlen-radio-tarjeta:2px;--erlen-radio-panel:2px;--erlen-radio-capsula:0px;--erlen-radio-badge:0px;\n --erlen-vidrio-reflejo:repeating-linear-gradient(0deg,color-mix(in srgb,var(--erlen-verde) 6%,transparent) 0 1px,transparent 1px 20px),repeating-linear-gradient(90deg,color-mix(in srgb,var(--erlen-verde) 6%,transparent) 0 1px,transparent 1px 20px);\n --erlen-vidrio-contorno:var(--erlen-verde);\n --erlen-vidrio-relieve:inset 0 0 0 1px var(--erlen-verde),inset 0 0 0 5px var(--erlen-superficie),inset 0 0 0 6px color-mix(in srgb,var(--erlen-verde) 45%,transparent);\n --erlen-control-relieve:inset 0 0 0 1px var(--erlen-verde),inset 0 -3px 0 color-mix(in srgb,var(--erlen-verde) 18%,transparent);\n --erlen-sombra-tarjeta:var(--erlen-vidrio-relieve);--erlen-sombra-menu:var(--erlen-vidrio-relieve);--erlen-sombra-panel:var(--erlen-vidrio-relieve);\n --erlen-atmosfera:var(--erlen-papel);\n}\n/* Identidad elegida: atmósfera amplia e iconos de controles. Nunca contenido científico. */\n:root[data-erlen-estilo]{--erlen-cromo-luz:color-mix(in srgb,var(--erlen-luz) 42%,var(--erlen-papel));--erlen-cromo-acento:color-mix(in srgb,var(--erlen-verde) 12%,var(--erlen-papel));--erlen-cromo-fondo:var(--erlen-cromo-trama),var(--erlen-papel);--erlen-atmosfera:var(--erlen-cromo-fondo);--erlen-icono-relieve:inset 0 0 0 1px var(--erlen-vidrio-contorno);--erlen-icono-render:auto}\n@media(prefers-color-scheme:dark){:root:not([data-theme=\"light\"])[data-erlen-estilo]{--erlen-cromo-luz:color-mix(in srgb,var(--erlen-luz) 12%,var(--erlen-papel))}}\n:root[data-theme=\"dark\"][data-erlen-estilo]{--erlen-cromo-luz:color-mix(in srgb,var(--erlen-luz) 12%,var(--erlen-papel))}\n:root[data-erlen-estilo=\"bauhaus\"]{--erlen-cromo-trama:radial-gradient(circle at 88% 20%,var(--erlen-cromo-luz) 0 160px,transparent 162px),linear-gradient(90deg,var(--erlen-cromo-acento) 0 12%,transparent 12% 78%,var(--erlen-cromo-acento) 78%);--erlen-icono-grosor:2.9;--erlen-icono-terminal:butt;--erlen-icono-union:bevel;--erlen-icono-guion:none;--erlen-icono-filtro:none;--erlen-icono-radio:0px;--erlen-icono-placa:linear-gradient(90deg,var(--erlen-cromo-luz) 0 50%,var(--erlen-superficie) 50%)}\n:root[data-erlen-estilo=\"glassmorfismo\"]{--erlen-cromo-trama:radial-gradient(circle at 12% 18%,var(--erlen-cromo-luz) 0 120px,transparent 122px),radial-gradient(circle at 88% 75%,var(--erlen-cromo-acento) 0 220px,transparent 222px);--erlen-icono-grosor:1.4;--erlen-icono-terminal:round;--erlen-icono-union:round;--erlen-icono-guion:none;--erlen-icono-filtro:drop-shadow(0 1px 1px var(--erlen-superficie));--erlen-icono-radio:16px;--erlen-icono-placa:var(--erlen-vidrio-reflejo)}\n:root[data-erlen-estilo=\"neumorfismo\"]{--erlen-cromo-trama:linear-gradient(135deg,var(--erlen-superficie-2) 0 42%,var(--erlen-papel) 42% 58%,var(--erlen-cromo-acento) 58%);--erlen-icono-grosor:2.1;--erlen-icono-terminal:round;--erlen-icono-union:round;--erlen-icono-guion:none;--erlen-icono-filtro:drop-shadow(1px 1px 1px var(--erlen-linea-fuerte));--erlen-icono-radio:10px;--erlen-icono-placa:linear-gradient(135deg,var(--erlen-superficie),var(--erlen-superficie-2))}\n:root[data-erlen-estilo=\"neobrutalismo\"]{--erlen-cromo-trama:repeating-linear-gradient(135deg,var(--erlen-cromo-acento) 0 32px,var(--erlen-papel) 32px 96px);--erlen-icono-grosor:3;--erlen-icono-terminal:square;--erlen-icono-union:miter;--erlen-icono-guion:none;--erlen-icono-filtro:none;--erlen-icono-radio:0px;--erlen-icono-placa:linear-gradient(90deg,var(--erlen-cromo-luz) 0 50%,var(--erlen-superficie) 50%)}\n:root[data-erlen-estilo=\"minimalismo\"]{--erlen-cromo-trama:linear-gradient(90deg,var(--erlen-cromo-acento) 0 2px,transparent 2px);--erlen-icono-grosor:1.1;--erlen-icono-terminal:butt;--erlen-icono-union:miter;--erlen-icono-guion:none;--erlen-icono-filtro:none;--erlen-icono-radio:0px;--erlen-icono-placa:none}\n:root[data-erlen-estilo=\"art-deco\"]{--erlen-cromo-trama:repeating-linear-gradient(45deg,transparent 0 38px,var(--erlen-cromo-luz) 38px 40px,transparent 40px 78px),repeating-linear-gradient(135deg,transparent 0 38px,var(--erlen-cromo-luz) 38px 40px,transparent 40px 78px);--erlen-icono-grosor:1.8;--erlen-icono-terminal:square;--erlen-icono-union:bevel;--erlen-icono-guion:none;--erlen-icono-filtro:none;--erlen-icono-radio:0px;--erlen-icono-placa:linear-gradient(135deg,var(--erlen-cromo-luz) 0 24%,transparent 24% 76%,var(--erlen-cromo-luz) 76%)}\n:root[data-erlen-estilo=\"claymorfismo\"]{--erlen-cromo-trama:radial-gradient(ellipse at 0 0,var(--erlen-cromo-luz) 0 34%,transparent 35%),radial-gradient(ellipse at 100% 100%,var(--erlen-cromo-acento) 0 32%,transparent 33%);--erlen-icono-grosor:2.7;--erlen-icono-terminal:round;--erlen-icono-union:round;--erlen-icono-guion:none;--erlen-icono-filtro:drop-shadow(0 2px 0 var(--erlen-linea-fuerte));--erlen-icono-radio:12px;--erlen-icono-placa:linear-gradient(145deg,var(--erlen-superficie),var(--erlen-cromo-luz))}\n:root[data-erlen-estilo=\"frutiger-aero\"]{--erlen-cromo-trama:radial-gradient(ellipse at 50% 110%,var(--erlen-cromo-luz) 0 48%,transparent 49%),radial-gradient(ellipse at 100% -20%,var(--erlen-cromo-acento) 0 52%,transparent 53%);--erlen-icono-grosor:2.2;--erlen-icono-terminal:round;--erlen-icono-union:round;--erlen-icono-guion:none;--erlen-icono-filtro:drop-shadow(0 1px 0 var(--erlen-superficie));--erlen-icono-radio:999px;--erlen-icono-placa:linear-gradient(180deg,var(--erlen-superficie) 0 48%,var(--erlen-cromo-luz) 49% 100%)}\n:root[data-erlen-estilo=\"esqueuomorfismo\"]{--erlen-cromo-trama:repeating-linear-gradient(0deg,var(--erlen-cromo-acento) 0 1px,transparent 1px 5px),linear-gradient(90deg,var(--erlen-superficie-2),var(--erlen-papel));--erlen-icono-grosor:2;--erlen-icono-terminal:round;--erlen-icono-union:bevel;--erlen-icono-guion:none;--erlen-icono-filtro:drop-shadow(0 1px 0 var(--erlen-superficie));--erlen-icono-radio:4px;--erlen-icono-placa:repeating-linear-gradient(0deg,var(--erlen-cromo-luz) 0 1px,var(--erlen-superficie) 1px 3px)}\n:root[data-erlen-estilo=\"retro-digital\"]{--erlen-cromo-trama:repeating-linear-gradient(0deg,var(--erlen-cromo-acento) 0 2px,transparent 2px 8px),repeating-linear-gradient(90deg,var(--erlen-cromo-luz) 0 2px,transparent 2px 8px);--erlen-icono-grosor:2.8;--erlen-icono-terminal:square;--erlen-icono-union:miter;--erlen-icono-guion:none;--erlen-icono-filtro:none;--erlen-icono-radio:0px;--erlen-icono-placa:repeating-linear-gradient(0deg,var(--erlen-cromo-luz) 0 2px,var(--erlen-superficie) 2px 4px)}\n:root[data-erlen-estilo=\"y2k\"]{--erlen-cromo-trama:linear-gradient(155deg,var(--erlen-papel) 0 22%,var(--erlen-cromo-luz) 24%,var(--erlen-superficie) 31%,var(--erlen-cromo-acento) 39%,var(--erlen-papel) 48% 68%,var(--erlen-cromo-luz) 76%,var(--erlen-papel) 90%);--erlen-icono-grosor:2.4;--erlen-icono-terminal:round;--erlen-icono-union:bevel;--erlen-icono-guion:none;--erlen-icono-filtro:drop-shadow(1px 0 0 var(--erlen-superficie)) drop-shadow(-1px 0 0 var(--erlen-linea-fuerte));--erlen-icono-radio:8px;--erlen-icono-placa:linear-gradient(155deg,var(--erlen-superficie) 0 25%,var(--erlen-cromo-luz) 40%,var(--erlen-superficie) 55%,var(--erlen-cromo-acento) 80%)}\n:root[data-erlen-estilo=\"cyberpunk\"]{--erlen-cromo-trama:repeating-linear-gradient(90deg,var(--erlen-cromo-acento) 0 2px,transparent 2px 64px),repeating-linear-gradient(0deg,var(--erlen-cromo-acento) 0 2px,transparent 2px 64px);--erlen-icono-grosor:2.5;--erlen-icono-terminal:square;--erlen-icono-union:bevel;--erlen-icono-guion:none;--erlen-icono-filtro:drop-shadow(0 0 3px currentColor);--erlen-icono-radio:2px;--erlen-icono-placa:linear-gradient(135deg,var(--erlen-cromo-luz) 0 12%,transparent 12% 88%,var(--erlen-cromo-luz) 88%)}\n:root[data-erlen-estilo=\"blueprint\"]{--erlen-cromo-trama:repeating-linear-gradient(90deg,var(--erlen-cromo-luz) 0 1px,transparent 1px 24px),repeating-linear-gradient(0deg,var(--erlen-cromo-luz) 0 1px,transparent 1px 24px),repeating-linear-gradient(90deg,var(--erlen-cromo-acento) 0 2px,transparent 2px 120px),repeating-linear-gradient(0deg,var(--erlen-cromo-acento) 0 2px,transparent 2px 120px);--erlen-icono-grosor:1.35;--erlen-icono-terminal:butt;--erlen-icono-union:miter;--erlen-icono-guion:3 1;--erlen-icono-filtro:none;--erlen-icono-radio:0px;--erlen-icono-placa:repeating-linear-gradient(90deg,var(--erlen-cromo-luz) 0 1px,transparent 1px 8px),repeating-linear-gradient(0deg,var(--erlen-cromo-luz) 0 1px,transparent 1px 8px)}\n :root[data-erlen-estilo=\"neobrutalismo\"]{--erlen-icono-relieve:inset 0 0 0 1px currentColor,2px 2px 0 currentColor}\n:root[data-erlen-estilo=\"minimalismo\"]{--erlen-icono-relieve:none}\n:root[data-erlen-estilo=\"art-deco\"]{--erlen-icono-relieve:inset 0 0 0 1px var(--erlen-ambar),inset 0 0 0 3px var(--erlen-superficie),inset 0 0 0 2.5px var(--erlen-ambar)}\n:root[data-erlen-estilo=\"claymorfismo\"]{--erlen-icono-relieve:inset 1px 1px 2px var(--erlen-superficie),inset -1px -1px 2px var(--erlen-linea-fuerte),0 2px 0 var(--erlen-linea-fuerte)}\n:root[data-erlen-estilo=\"retro-digital\"]{--erlen-icono-render:crispEdges;--erlen-icono-relieve:inset 1px 1px 0 var(--erlen-superficie),inset -1px -1px 0 var(--erlen-tinta)}\n:root[data-erlen-estilo=\"cyberpunk\"]{--erlen-icono-relieve:inset 0 0 0 1px currentColor,0 0 6px color-mix(in srgb,var(--erlen-verde) 30%,transparent)}\n/* Cristal accesible: sin backdrop-filter, con menos transparencia, más contraste, colores forzados o\n   [data-erlen-material=\"solido\"] (elección de la persona), el material pasa a superficie opaca, sin reflejos ni desenfoque.\n   :root:root sube la especificidad para ganar a los bloques del modo oscuro, que también redefinen el cristal. */\n@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root:root{--erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie)}}\n@media (prefers-reduced-transparency:reduce){:root:root{--erlen-vidrio-reflejo-acento:none;--erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-reflejo:none;--erlen-vidrio-filtro:none}}\n@media (prefers-contrast:more){:root:root{--erlen-vidrio-reflejo-acento:none;--erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-tinte:var(--erlen-verde-suave);--erlen-vidrio-reflejo:none;--erlen-vidrio-filtro:none;--erlen-vidrio-borde:var(--erlen-linea-fuerte);--erlen-vidrio-contorno:var(--erlen-tinta);--erlen-vidrio-relieve:0 0 0 1px var(--erlen-tinta);--erlen-atmosfera:var(--erlen-papel)}}\n@media (forced-colors:active){:root:root{--erlen-vidrio-reflejo-acento:none;--erlen-vidrio:Canvas;--erlen-vidrio-fuerte:Canvas;--erlen-vidrio-tinte:Canvas;--erlen-vidrio-reflejo:none;--erlen-vidrio-filtro:none;--erlen-vidrio-borde:CanvasText;--erlen-vidrio-contorno:CanvasText;--erlen-vidrio-relieve:none;--erlen-atmosfera:Canvas}}\n:root[data-erlen-material=\"solido\"]{--erlen-vidrio-reflejo-acento:none;--erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-reflejo:none;--erlen-vidrio-filtro:none;--erlen-atmosfera:var(--erlen-papel)}\n@media print{:root:root{--erlen-vidrio-reflejo-acento:none;--erlen-vidrio:var(--erlen-superficie);--erlen-vidrio-fuerte:var(--erlen-superficie);--erlen-vidrio-reflejo:none;--erlen-vidrio-filtro:none;--erlen-vidrio-relieve:none;--erlen-atmosfera:none}}\n\n/* Los respaldos eliminan también tramas, brillo y placas de los iconos. */\n:root:root[data-erlen-estilo][data-erlen-material=\"solido\"]{--erlen-cromo-trama:none;--erlen-cromo-fondo:var(--erlen-superficie);--erlen-atmosfera:var(--erlen-superficie);--erlen-icono-placa:none;--erlen-icono-relieve:none;--erlen-icono-filtro:none;--erlen-icono-guion:none;--erlen-icono-render:auto;--erlen-icono-grosor:1.6;--erlen-icono-terminal:round;--erlen-icono-union:round}\n@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active),print{:root:root[data-erlen-estilo]{--erlen-cromo-trama:none;--erlen-cromo-fondo:var(--erlen-superficie);--erlen-atmosfera:var(--erlen-superficie);--erlen-icono-placa:none;--erlen-icono-relieve:none;--erlen-icono-filtro:none;--erlen-icono-guion:none;--erlen-icono-render:auto;--erlen-icono-grosor:1.6;--erlen-icono-terminal:round;--erlen-icono-union:round}}\n@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root:root[data-erlen-estilo]{--erlen-cromo-trama:none;--erlen-cromo-fondo:var(--erlen-superficie);--erlen-atmosfera:var(--erlen-superficie);--erlen-icono-placa:none;--erlen-icono-relieve:none;--erlen-icono-filtro:none;--erlen-icono-guion:none;--erlen-icono-render:auto;--erlen-icono-grosor:1.6;--erlen-icono-terminal:round;--erlen-icono-union:round}}\n",
  "src/js/_orden.txt": "# Cálculo (01–29): sin DOM al cargarse, probado con node. Cada módulo usa solo los anteriores.\n01-util.js\n02-formula.js\n02-placas.js\n02-evidencia.js\n02-muestras.js\n02-secuencias.js\n03-flujo.js\n03-calculo.js\n04-protocolo.js\n05-expresion.js\n06-estadistica.js\n07-unidades.js\n08-quimica.js\n09-biologia.js\n10-seguridad.js\n11-lotes.js\n12-redaccion.js\n13-versiones.js\n14-exportar.js\n15-laboratorio.js\n16-ejecucion.js\n17-busqueda.js\n18-paquete.js\n19-instrumentos.js\n20-analisis.js\n21-bibliografia.js\n22-moleculas.js\n24-ciencia.js\n25-fusion.js\n# Paquete de diseño de la suite (copia sincronizada, no se edita).\ndiseno/suite-color.js\ndiseno/suite-navigation.js\ndiseno/suite-cinta.js\ndiseno/suite-inicio.js\ndiseno/suite-marco.js\n# Interfaz.\n30-ui.js\n30-persistencia.js\n31-estado.js\n32-marco.js\n33-cinta.js\n34-portada.js\n40-p-protocolo.js\n41-p-procedimiento.js\n42-p-lotes.js\n43-p-metodos.js\n44-p-calculadoras.js\n45-p-calc-mas.js\n46-p-calidad.js\n47-importar.js\n48-p-ejecucion.js\n49-p-biblioteca.js\n50-p-placas.js\n51-p-analisis.js\n52-p-bibliografia.js\n53-p-estructuras.js\n54-p-archivos.js\n55-p-laboratorio.js\n56-p-ciencia.js\n57-p-registro-placas.js\n58-p-muestras.js\n59-p-secuencias.js\n60-p-flujo.js\n61-p-instrumentos.js\n62-p-cambios.js\n63-p-cuantificacion.js\n90-main.js\n",
  "src/js/01-util.js": "/* ==== 01-util.js ==== */\n'use strict';\n/* ================= utilidades =================\n   Lo mínimo compartido: texto seguro, copias, identificadores, fechas y\n   números. Nada de esto toca el DOM al cargarse: los módulos 01–29 se prueban\n   con node, sin navegador. */\n\nconst esc = s => String(s == null ? '' : s).replace(/[&<>\"']/g, c => ({'&': '&amp;', '<': '&lt;', '>': '&gt;', '\"': '&quot;', \"'\": '&#39;'}[c]));\nconst deepCopy = o => JSON.parse(JSON.stringify(o));\n\nlet _uid = Date.now() % 1e7;\nconst uid = p => (p || 'e') + (_uid++).toString(36) + Math.floor(Math.random() * 46656).toString(36);\nconst ahora = () => new Date().toISOString();\n\n/* Redondeo decimal sin el ruido del flotante (1.005 → 1.01). */\nfunction redondea(v, d) {\n  if (!isFinite(v)) return v;\n  const f = Math.pow(10, d);\n  return Math.round((v + Number.EPSILON * Math.sign(v)) * f) / f;\n}\n\n/* Un número con las cifras significativas que el dato sostiene, no con los\n   diecisiete que trae el flotante. Un valor calculado conserva sus ceros\n   (12,30 g); uno que ya es exacto con menos cifras —lo que escribiste: 2,\n   0,1, 65— sale tal cual, sin ceros de relleno. Sin separador de miles. */\nfunction cifras(v, n) {\n  if (!isFinite(v)) return '—';\n  if (v === 0) return '0';\n  const d = Math.ceil(Math.log10(Math.abs(v)));\n  const p = Math.max(0, (n || 4) - d);\n  const r = redondea(v, p);\n  const t = r.toFixed(Math.min(12, p));\n  return Math.abs(r - v) <= 1e-12 * Math.max(1, Math.abs(v)) && t.includes('.') ? t.replace(/0+$/, '').replace(/\\.$/, '') : t;\n}\n\n/* Número para leer: con decimales fijos (opc.dec) o cifras significativas\n   (opc.cifras, 4 por defecto) y la coma decimal del español (norma SI y\n   RAE), o el punto si el texto va en inglés. */\nfunction numero(v, opc) {\n  const o = opc || {};\n  if (v == null || v === '' || !isFinite(v)) return '—';\n  const t = o.dec != null ? redondea(+v, o.dec).toFixed(o.dec) : cifras(+v, o.cifras || 4);\n  return o.idioma === 'en' ? t : t.replace('.', ',');\n}\n",
  "src/js/02-evidencia.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Evidencia = (() => {\n  // SHA-256 independiente de WebCrypto: también funciona en file:// sin contexto seguro.\n  function sha256(bytes) {\n    const k=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0x0fc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x06ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];\n    const h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19], n=bytes.length;\n    const datos=new Uint8Array(Math.ceil((n+9)/64)*64);datos.set(bytes);datos[n]=0x80;\n    const vista=new DataView(datos.buffer);vista.setUint32(datos.length-8,Math.floor(n/536870912));vista.setUint32(datos.length-4,(n*8)>>>0);\n    const rota=(x,r)=>(x>>>r)|(x<<(32-r));\n    for(let pos=0;pos<datos.length;pos+=64){\n      const w=new Uint32Array(64);for(let i=0;i<16;i++)w[i]=vista.getUint32(pos+i*4);\n      for(let i=16;i<64;i++)w[i]=(w[i-16]+(rota(w[i-15],7)^rota(w[i-15],18)^(w[i-15]>>>3))+w[i-7]+(rota(w[i-2],17)^rota(w[i-2],19)^(w[i-2]>>>10)))>>>0;\n      let [a,b,c,d,e,f,g,t]=h;\n      for(let i=0;i<64;i++){const uno=(t+(rota(e,6)^rota(e,11)^rota(e,25))+((e&f)^(~e&g))+k[i]+w[i])>>>0,dos=((rota(a,2)^rota(a,13)^rota(a,22))+((a&b)^(a&c)^(b&c)))>>>0;t=g;g=f;f=e;e=(d+uno)>>>0;d=c;c=b;b=a;a=(uno+dos)>>>0;}\n      [a,b,c,d,e,f,g,t].forEach((v,i)=>{h[i]=(h[i]+v)>>>0;});\n    }\n    return h.map(x=>x.toString(16).padStart(8,'0')).join('');\n  }\n  function adjunto(nombre,bytes,tipo,enlace) {\n    if(!nombre || bytes.length>10*1024*1024)return {error:'Cada adjunto requiere nombre y debe pesar como máximo 10 MB.'};\n    const hash=sha256(bytes);\n    return {archivo:{id:'sha256-'+hash,nombre:String(nombre).slice(0,200),tipo:String(tipo || 'application/octet-stream').slice(0,100),bytes:bytes.length,sha256:hash,\n      enlace:enlace || {tipo:'protocolo',id:''},fecha:ahora()}};\n  }\n  return {sha256,adjunto};\n})();\n",
  "src/js/02-formula.js": "/* ==== 02-formula.js ==== */\n'use strict';\n/* ================= fórmulas químicas y masa molar =================\n   Lee fórmulas como las escribe un químico —Zn(NO3)2·6H2O, [Co(NH3)6]Cl3,\n   Mg0.75Al0.25(OH)2(CO3)0.125·0.5H2O— y devuelve la composición y la masa\n   molar con los pesos atómicos de DATOS.elementos (CIAAW/IUPAC 2021).\n\n   Lo que no entiende lo dice con la posición exacta: una masa molar\n   equivocada escala mal todo el lote, así que no se adivina nada. En\n   particular, «x» o letras sueltas en minúscula (fórmulas genéricas de un\n   HDL) se rechazan: hay que escribir el valor numérico. */\n\nconst Formula = (() => {\n  const PESOS = DATOS.elementos.pesos;\n  const SUB = '₀₁₂₃₄₅₆₇₈₉';\n  const PUNTOS = /[·•∙⋅*]/g;\n\n  /* Subíndices Unicode a dígitos y cualquier punto de hidrato a «·». El punto\n     ASCII entre dos dígitos es decimal (Mg0.75); en cualquier otro sitio es\n     el punto del hidrato (Na2CO3.H2O). «CuSO4.5H2O» es ambiguo: se lee como\n     decimal y lee() lo avisa, para escribir «·» o «*» si es un hidrato. */\n  function normaliza(texto) {\n    let s = String(texto || '').trim().replace(/\\s+/g, '');\n    s = s.replace(/[₀-₉]/g, c => String(SUB.indexOf(c)));\n    s = s.replace(PUNTOS, '·');\n    s = s.replace(/\\.(?!\\d)|(?<!\\d)\\./g, '·');\n    return s;\n  }\n\n  function lee(texto) {\n    const s = normaliza(texto);\n    if (!s) return {error: 'Escribe una fórmula.'};\n    let i = 0;\n    const falla = msg => { throw new Error(msg + ' (posición ' + (i + 1) + ' de «' + s + '»)'); };\n    const numeroEn = () => {\n      const m = /^\\d+(\\.\\d+)?/.exec(s.slice(i));\n      if (!m) return null;\n      i += m[0].length;\n      return parseFloat(m[0]);\n    };\n    const suma = (a, b, f) => { for (const k in b) a[k] = (a[k] || 0) + b[k] * f; return a; };\n    function grupos(cierre) {\n      const comp = {};\n      let alguno = false;\n      while (i < s.length && s[i] !== '·' && s[i] !== cierre) {\n        let parcial;\n        const c = s[i];\n        if (c === '(' || c === '[') {\n          const fin = c === '(' ? ')' : ']';\n          i++;\n          parcial = grupos(fin);\n          if (s[i] !== fin) falla('Falta «' + fin + '»');\n          i++;\n        } else if (/[A-Z]/.test(c)) {\n          const m = /^[A-Z][a-z]?/.exec(s.slice(i));\n          let sim = m[0];\n          /* «Co» es cobalto, pero en «CO» no hay minúscula: C y O. Si el\n             símbolo de dos letras no existe y el de una sí, se toma el de una\n             (p. ej. «Sc» existe, «Cn» no está en la tabla). */\n          if (sim.length === 2 && !(sim in PESOS) && (sim[0] in PESOS)) sim = sim[0];\n          if (!(sim in PESOS)) falla('Elemento desconocido «' + sim + '»');\n          i += sim.length;\n          parcial = {[sim]: 1};\n        } else if (/[a-z]/.test(c)) {\n          falla('«' + c + '» no es un símbolo: escribe el valor numérico (por ejemplo 0.25 en vez de x)');\n        } else {\n          falla('Carácter inesperado «' + c + '»');\n        }\n        const n = numeroEn();\n        suma(comp, parcial, n == null ? 1 : n);\n        alguno = true;\n      }\n      if (!alguno) falla('Grupo vacío');\n      return comp;\n    }\n    try {\n      const comp = {};\n      let primera = true;\n      while (i < s.length) {\n        if (!primera) { if (s[i] !== '·') falla('Se esperaba «·»'); i++; }\n        const coef = numeroEn();\n        suma(comp, grupos(null), coef == null ? 1 : coef);\n        primera = false;\n      }\n      let masa = 0;\n      for (const k in comp) masa += comp[k] * PESOS[k];\n      const r = {formula: s, composicion: comp, masaMolar: masa};\n      if (/[A-Za-z)\\]]\\d+\\.\\d+[A-Z(\\[]/.test(s) && /[1-9]\\.\\d/.test(s))\n        r.aviso = 'El punto entre dígitos se leyó como decimal. Si es un hidrato (CuSO4·5H2O), escribe «·» o «*».';\n      return r;\n    } catch (e) {\n      return {error: e.message};\n    }\n  }\n\n  const masaMolar = texto => { const r = lee(texto); return r.error ? NaN : r.masaMolar; };\n\n  /* Fracciones de masa por elemento, útiles para comprobar un análisis\n     elemental o un EDS contra lo esperado. */\n  function fraccionesMasa(texto) {\n    const r = lee(texto);\n    if (r.error) return r;\n    const out = {};\n    for (const k in r.composicion) out[k] = r.composicion[k] * PESOS[k] / r.masaMolar;\n    return out;\n  }\n\n  /* Para leer: subíndices tras los símbolos y los paréntesis, nunca en el\n     coeficiente del hidrato (6H₂O, no ₆H₂O). */\n  function bonita(texto) {\n    const s = normaliza(texto);\n    return s.replace(/([A-Za-z)\\]])(\\d+(?:\\.\\d+)?)/g, (m, a, n) => a + n.replace(/\\d/g, d => SUB[d]));\n  }\n\n  return {lee, masaMolar, fraccionesMasa, bonita, normaliza, PESOS};\n})();\n",
  "src/js/02-muestras.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Muestras = (() => {\n  const UNIDADES=['','µL','mL','L','mg','g','unidades'];\n  const ESTADOS=['registrada','disponible','agotada','descartada'];\n  const nueva=datos=>Object.assign({id:uid('muestra'),nombre:'',origen:'',loteId:'',notas:'',tipo:'',ubicacion:'',cantidad:null,unidad:'',fechaRecepcion:'',estado:'registrada',derivadaDe:'',derivacion:null,historial:[]},datos || {});\n  const copiaIdentidad=m=>({id:m.id,nombre:m.nombre,origen:m.origen,loteId:m.loteId,ubicacion:m.ubicacion,cantidad:m.cantidad,unidad:m.unidad,estado:m.estado});\n  function valida(m) {\n    if(!m || !m.id || !ESTADOS.includes(m.estado) || !UNIDADES.includes(m.unidad) || !Array.isArray(m.historial) || m.historial.length>10000)return {error:'La muestra necesita identidad, estado, unidad y un historial válido.'};\n    if(m.cantidad!=null && (!Number.isFinite(m.cantidad) || m.cantidad<0 || !m.unidad || (m.unidad==='unidades' && !Number.isInteger(m.cantidad))))return {error:'La cantidad de muestra debe ser finita, no negativa y tener unidad; el número de unidades debe ser entero.'};\n    if(m.fechaRecepcion){const f=/^(\\d{4})-(\\d{2})-(\\d{2})$/.exec(m.fechaRecepcion),d=f && new Date(0);if(d)d.setUTCFullYear(+f[1],+f[2]-1,+f[3]);if(!f || d.getUTCFullYear()!==+f[1] || d.getUTCMonth()+1!==+f[2] || d.getUTCDate()!==+f[3])return {error:'La fecha de recepción debe ser un día válido en formato AAAA-MM-DD.'};}\n    return {};\n  }\n  function sanea(x) {\n    const q=nueva(deepCopy(x || {}));\n    for(const [k,maximo] of Object.entries({id:120,nombre:200,origen:500,loteId:80,tipo:120,ubicacion:300,fechaRecepcion:10,derivadaDe:120,notas:20000}))q[k]=typeof q[k]==='string' ? q[k].slice(0,maximo) : '';\n    q.cantidad=typeof q.cantidad==='number' && Number.isFinite(q.cantidad) ? q.cantidad : null;\n    q.historial=Array.isArray(q.historial) ? q.historial : [];\n    return q;\n  }\n  function registro(m,tipo,motivo,antes,extra) {\n    m.historial.push(Object.assign({id:uid('muestraRegistro'),tipo,motivo:String(motivo).trim().slice(0,20000),fecha:ahora(),antes,despues:copiaIdentidad(m)},extra || {}));\n  }\n  function movimiento(muestras,id,datos) {\n    const original=muestras.find(x=>x.id===id);if(!original)return {error:'La muestra ya no existe.'};\n    const v=valida(original);if(v.error)return v;\n    if(original.historial.length>=10000)return {error:'El historial de la muestra alcanzó 10 000 registros. Conserva una copia.'};\n    if(!datos || !String(datos.motivo || '').trim())return {error:'Indica el motivo del movimiento de la muestra.'};\n    if(original.estado==='descartada')return {error:'La muestra está descartada. Registra una muestra nueva para otra recepción.'};\n    const q=deepCopy(muestras),m=q.find(x=>x.id===id),antes=copiaIdentidad(m),tipo=datos.tipo;\n    if(['entrada','consumo','recuento'].includes(tipo)) {\n      const n=datos.cantidad,u=datos.unidad || m.unidad;\n      if(!Number.isFinite(n) || n<0 || (tipo!=='recuento' && !(n>0)) || !UNIDADES.includes(u) || !u || (u==='unidades' && !Number.isInteger(n)))return {error:'Indica una cantidad no negativa con unidad; entradas y consumos deben ser positivos.'};\n      if(m.unidad && u!==m.unidad)return {error:'Conserva la unidad de la muestra; convierte explícitamente el dato antes de registrarlo.'};\n      if(tipo!=='recuento' && m.cantidad==null)return {error:'La cantidad inicial es desconocida. Registra un recuento antes de sumar o consumir.'};\n      if(tipo==='consumo' && n>m.cantidad)return {error:'El consumo supera la cantidad registrada de muestra.'};\n      const cantidad=tipo==='recuento' ? n : m.cantidad+(tipo==='consumo' ? -n : n);\n      if(!Number.isFinite(cantidad) || (tipo!=='recuento' && cantidad===m.cantidad))return {error:'El cambio de cantidad no se puede representar. Reescala la unidad del dato.'};\n      m.cantidad=cantidad;m.unidad=u;m.estado=cantidad===0 ? 'agotada' : 'disponible';\n    } else if(tipo==='ubicacion') {\n      if(!String(datos.ubicacion || '').trim())return {error:'Indica la nueva ubicación de la muestra.'};m.ubicacion=String(datos.ubicacion).trim().slice(0,300);\n    } else if(tipo==='descartar')m.estado='descartada';\n    else return {error:'Elige entrada, consumo, recuento, ubicación o descarte.'};\n    registro(m,tipo,datos.motivo,antes);return {muestras:q,explicacion:'Movimiento de muestra registrado con identidad, ubicación y cantidad anterior y posterior. La fecha corresponde al registro.'};\n  }\n  function alicuota(muestras,id,datos) {\n    if(muestras.length>=5000)return {error:'El protocolo alcanzó 5 000 muestras. Conserva un respaldo y separa el siguiente trabajo en otro protocolo.'};\n    const original=muestras.find(x=>x.id===id);if(!original)return {error:'La muestra de origen ya no existe.'};\n    if(!datos || !String(datos.nombre || '').trim())return {error:'Identifica la alícuota con el nombre que usas en el laboratorio.'};\n    const r=movimiento(muestras,id,{tipo:'consumo',cantidad:datos.cantidad,unidad:datos.unidad,motivo:datos.motivo});if(r.error)return r;\n    const padre=r.muestras.find(x=>x.id===id),hija=nueva({nombre:String(datos.nombre).trim().slice(0,200),origen:original.origen,loteId:original.loteId,tipo:original.tipo,ubicacion:String(datos.ubicacion || '').slice(0,300),cantidad:datos.cantidad,unidad:original.unidad,estado:'disponible',derivadaDe:id,\n      derivacion:{...copiaIdentidad(original),cantidadTransferida:datos.cantidad,fecha:ahora(),motivo:String(datos.motivo).slice(0,20000)}});\n    padre.historial.at(-1).tipo='alicuota';padre.historial.at(-1).destinoId=hija.id;\n    registro(hija,'recepcionAlicuota',datos.motivo,null,{origenId:id});r.muestras.push(hija);\n    return {muestras:r.muestras,id:hija.id,explicacion:'Alícuota registrada y descontada de la muestra de origen en una sola edición. La procedencia conserva la identificación original.'};\n  }\n  function csv(muestras) {\n    return window.Papa.unparse({fields:['Muestra ID','Identificador','Origen','Derivada de','Ejecución','Tipo','Ubicación','Cantidad','Unidad','Estado','Fecha recepción','Notas'],data:muestras.map(m=>[m.id,m.nombre,m.origen,m.derivadaDe,m.loteId,m.tipo,m.ubicacion,m.cantidad,m.unidad,m.estado,m.fechaRecepcion,m.notas])},{escapeFormulae:true});\n  }\n  return {UNIDADES,ESTADOS,nueva,sanea,valida,movimiento,alicuota,csv};\n})();\n",
  "src/js/02-placas.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Placas = (() => {\n  const FORMATOS = {6: [2,3], 12: [3,4], 24: [4,6], 48: [6,8], 96: [8,12], 384: [16,24]};\n  const POZO = /^[A-P](?:[1-9]|1[0-9]|2[0-4])$/;\n  function nueva(n, nombre) {\n    const f = FORMATOS[n];\n    if (!f) return {error: 'Elige una placa de 6, 12, 24, 48, 96 o 384 pozos.'};\n    return {id: uid('placa'), nombre: nombre || '', formato: +n, capacidad: null, pozos: {}, transferencias: []};\n  }\n  function posiciones(p) {\n    const f = FORMATOS[p.formato];\n    return f ? Array.from({length: f[0]}, (_, i) => Array.from({length: f[1]}, (_, j) => String.fromCharCode(65+i)+(j+1))).flat() : [];\n  }\n  function sanea(p) {\n    const q = nueva(p.formato, String(p.nombre || '').slice(0,200));\n    if (q.error) return q;\n    q.id = typeof p.id === 'string' ? p.id.slice(0,80) : q.id;\n    q.capacidad = Number.isFinite(p.capacidad) && p.capacidad > 0 ? p.capacidad : null;\n    for (const id of posiciones(q)) {\n      const x = p.pozos && p.pozos[id];\n      if (!x || typeof x !== 'object') continue;\n      q.pozos[id] = {muestra: String(x.muestra || '').slice(0,120), grupo: String(x.grupo || '').slice(0,120),\n        rol: ['muestra','blanco','controlPositivo','controlNegativo','patron'].includes(x.rol) ? x.rol : 'muestra',\n        replica: Number.isInteger(x.replica) && x.replica > 0 ? x.replica : null,\n        volumen: Number.isFinite(x.volumen) && x.volumen >= 0 ? x.volumen : null,\n        concentracion: Number.isFinite(x.concentracion) && x.concentracion >= 0 ? x.concentracion : null,\n        unidadConcentracion: String(x.unidadConcentracion || '').slice(0,30), resultado: Number.isFinite(x.resultado) ? x.resultado : null};\n    }\n    q.transferencias = (Array.isArray(p.transferencias) ? p.transferencias : []).filter(x => x && POZO.test(x.origen) && POZO.test(x.destino) && Number.isFinite(x.volumen) && x.volumen > 0).map(x => ({id: String(x.id || uid('tr')).slice(0,80), origen:x.origen, destino:x.destino, volumen:x.volumen, fecha:String(x.fecha || '').slice(0,40)}));\n    return q;\n  }\n  function transfiere(p, origen, destino, volumen) {\n    if(!p || !FORMATOS[p.formato] || !p.pozos)return {error:'La placa ya no está disponible.'};\n    if (origen === destino || !posiciones(p).includes(origen) || !posiciones(p).includes(destino)) return {error: 'Elige dos pozos diferentes de esta placa.'};\n    if (!(Number.isFinite(volumen) && volumen > 0)) return {error: 'El volumen debe ser positivo y finito, en µL.'};\n    const a = p.pozos[origen], b = p.pozos[destino];\n    if (!a || a.volumen == null || !b || b.volumen == null) return {error: 'Registra el volumen inicial de ambos pozos; no se supone que estén vacíos.'};\n    if (a.volumen < volumen) return {error: 'El pozo de origen no tiene suficiente volumen.'};\n    if (p.capacidad == null) return {error: 'Registra la capacidad por pozo antes de transferir.'};\n    if (b.volumen + volumen > p.capacidad) return {error: 'La transferencia excede la capacidad del pozo de destino.'};\n    const q = deepCopy(p); q.pozos[origen].volumen -= volumen; q.pozos[destino].volumen += volumen;\n    // Mezclar materiales diferentes no autoriza a inventar su concentración final.\n    q.pozos[destino].concentracion = null;\n    q.transferencias.push({id:uid('tr'), origen, destino, volumen, fecha:ahora()});\n    return {placa:q, explicacion:'Se conservan los volúmenes de origen y destino. La concentración final queda sin determinar; es un plan, no una transferencia ejecutada.'};\n  }\n  function serie(p, ids, inicial, razon, unidad) {\n    if(!p || !FORMATOS[p.formato] || !p.pozos)return {error:'La placa ya no está disponible.'};\n    if (!Number.isFinite(inicial) || inicial <= 0 || !Number.isFinite(razon) || razon <= 1 || !unidad || !ids.length || new Set(ids).size !== ids.length || ids.some(x => !posiciones(p).includes(x))) return {error:'Indica pozos únicos válidos, concentración positiva, unidad y factor de dilución mayor que uno.'};\n    const q=deepCopy(p);\n    ids.forEach((id,i) => {q.pozos[id]=Object.assign({},q.pozos[id] || {},{concentracion:inicial/Math.pow(razon,i),unidadConcentracion:unidad});});\n    return {placa:q, explicacion:'Concentraciones previstas C₀ / factorⁱ. Este diseño no añade volúmenes ni resultados medidos.'};\n  }\n  function csv(p) {\n    return window.Papa.unparse({fields:['Placa','Pozo','Muestra','Grupo','Rol','Réplica','Volumen (µL)','Concentración','Unidad','Resultado'],data:posiciones(p).map(id => {\n      const x=p.pozos[id] || {}; return [p.nombre,id,x.muestra,x.grupo,x.rol,x.replica,x.volumen,x.concentracion,x.unidadConcentracion,x.resultado];\n    })},{escapeFormulae:true});\n  }\n  function importaCSV(p,texto) {\n    const r=window.Papa.parse(texto,{header:true,skipEmptyLines:true});\n    if(r.errors.length) return {error:'El CSV contiene errores: '+r.errors.map(x=>x.message).join('; ')};\n    if(!r.meta.fields || !r.meta.fields.includes('Pozo') || !r.data.length) return {error:'El CSV necesita la columna Pozo y al menos una fila de datos.'};\n    const q=deepCopy(p), vistos=new Set(), avisos=[];\n    for(const x of r.data) {\n      const id=String(x.Pozo || '').trim().toUpperCase();\n      if(!posiciones(p).includes(id) || vistos.has(id)) {avisos.push('Pozo inválido o repetido: '+id);continue;} vistos.add(id);\n      const z={muestra:x.Muestra || '',grupo:x.Grupo || '',rol:x.Rol || 'muestra',unidadConcentracion:x.Unidad || ''};\n      if(!['muestra','blanco','controlPositivo','controlNegativo','patron'].includes(z.rol))avisos.push(id+': función de pozo no reconocida.');\n      for(const [campo,col] of [['replica','Réplica'],['volumen','Volumen (µL)'],['concentracion','Concentración'],['resultado','Resultado']]) {\n        const v=x[col]; z[campo]=v==null || v.trim()==='' ? null : Number(v);\n        if(z[campo]!=null && (!Number.isFinite(z[campo]) || (campo!=='resultado' && z[campo]<0) || (campo==='replica' && (!Number.isInteger(z[campo]) || z[campo]<1)))) avisos.push(id+': '+col+' inválido.');\n      }\n      if(p.capacidad!=null && z.volumen>p.capacidad) avisos.push(id+': volumen superior a la capacidad.');\n      q.pozos[id]=z;\n    }\n    return avisos.length ? {error:avisos.join(' ')} : {placa:sanea(q),explicacion:'Los valores se importan tal como constan en el CSV; las celdas vacías permanecen desconocidas.'};\n  }\n  function registroDePlan(p) {\n    return {id:p.id,nombre:p.nombre,formato:p.formato,capacidad:p.capacidad,pozos:{},historial:[]};\n  }\n  function saneaRegistro(p) {\n    if(!p || !FORMATOS[p.formato])return {error:'El registro de placa no tiene un formato reconocido.'};\n    const q=registroDePlan({id:String(p.id || '').slice(0,80),nombre:String(p.nombre || '').slice(0,200),formato:p.formato,capacidad:Number.isFinite(p.capacidad) && p.capacidad>0 ? p.capacidad : null});\n    for(const id of posiciones(q)) {\n      const x=p.pozos && p.pozos[id];if(!x || typeof x!=='object')continue;\n      q.pozos[id]={volumenReal:Number.isFinite(x.volumenReal) && x.volumenReal>=0 ? x.volumenReal : null,resultado:Number.isFinite(x.resultado) ? x.resultado : null,\n        unidadResultado:String(x.unidadResultado || '').slice(0,40),muestraId:String(x.muestraId || '').slice(0,120),nota:String(x.nota || '').slice(0,20000),\n        fechaRegistro:String(x.fechaRegistro || '').slice(0,40),fechaMedida:String(x.fechaMedida || '').slice(0,40),origen:x.origen && typeof x.origen==='object' ? deepCopy(x.origen) : {tipo:'manual'}};\n    }\n    q.historial=(Array.isArray(p.historial) ? p.historial : []).filter(x=>x && typeof x==='object').map(x=>deepCopy(x));\n    return q;\n  }\n  return {FORMATOS,nueva,posiciones,sanea,transfiere,serie,csv,importaCSV,registroDePlan,saneaRegistro};\n})();\n",
  "src/js/02-secuencias.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Secuencias = (() => {\n  const TIPOS=['ADN','ARN','proteina'];\n  const BASES={A:'A',C:'C',G:'G',T:'T',U:'U',R:'AG',Y:'CT',S:'GC',W:'AT',K:'GT',M:'AC',B:'CGT',D:'AGT',H:'ACT',V:'ACG',N:'ACGT'};\n  const COMPLEMENTO={A:'T',T:'A',U:'A',C:'G',G:'C',R:'Y',Y:'R',S:'S',W:'W',K:'M',M:'K',B:'V',V:'B',D:'H',H:'D',N:'N'};\n  const aminoacidos='FFLLSSSSYY**CC*WLLLLPPPPHHQQRRRRIIIMTTTTNNKKSSRRVVVVAAAADDEEGGGG';\n  const TABLAS={1:{nombre:'Estándar',inicios:['TTG','CTG','ATG'],cambios:{}},2:{nombre:'Mitocondrial de vertebrados',inicios:['ATT','ATC','ATA','ATG','GTG'],cambios:{ATA:'M',TGA:'W',AGA:'*',AGG:'*'}},11:{nombre:'Bacterias, arqueas y plastidios',inicios:['TTG','CTG','ATT','ATC','ATA','ATG','GTG'],cambios:{}}};\n  const normaliza=texto=>String(texto || '').replace(/[ \\t\\r\\n]/g,'').toUpperCase();\n  const huella=texto=>Evidencia.sha256(new TextEncoder().encode(texto));\n  function valida(secuencia,tipo) {\n    if(!TIPOS.includes(tipo) || typeof secuencia!=='string' || !secuencia.length || secuencia.length>1000000)return {error:'Declara ADN, ARN o proteína y una secuencia de hasta un millón de símbolos.'};\n    const patron=tipo==='ADN' ? /^[ACGTRYSWKMBDHVN]+$/ : tipo==='ARN' ? /^[ACGURYSWKMBDHVN]+$/ : /^[ACDEFGHIKLMNPQRSTVWYBXZJUO*]+$/;\n    if(!patron.test(secuencia))return {error:'Hay símbolos fuera del alfabeto declarado. ADN usa T y ARN usa U; no se eliminan números, guiones ni caracteres desconocidos.'};\n    return {};\n  }\n  function importaFASTA(texto,tipo) {\n    if(typeof texto!=='string' || texto.length>5000000)return {error:'El FASTA debe ser texto de hasta 5 MB.'};\n    const registros=[];let actual=null,total=0;\n    for(const [i,linea] of texto.replace(/^\\uFEFF/,'').split(/\\r?\\n/).entries()) {\n      const l=linea.trim();if(!l || l.startsWith(';'))continue;\n      if(l.startsWith('>')) {\n        const cabecera=l.slice(1).trim();if(!cabecera || cabecera.length>2000)return {error:'La cabecera FASTA de la línea '+(i+1)+' está vacía o supera 2 000 caracteres.'};\n        actual={cabecera,identificador:cabecera.split(/\\s/)[0],secuencia:''};registros.push(actual);\n        if(registros.length>200)return {error:'Importa hasta 200 secuencias por archivo.'};\n      } else {\n        if(!actual)return {error:'La línea '+(i+1)+' aparece antes de una cabecera FASTA (>identificador).'};\n        const parte=normaliza(l);actual.secuencia+=parte;total+=parte.length;if(total>1000000)return {error:'El archivo supera un millón de símbolos de secuencia.'};\n      }\n    }\n    if(!registros.length || new Set(registros.map(x=>x.identificador)).size!==registros.length)return {error:'El FASTA necesita secuencias con identificadores distintos; no se fusionan cabeceras repetidas.'};\n    const sha256TextoUTF8=huella(texto),fecha=ahora();\n    for(const r of registros){const v=valida(r.secuencia,tipo);if(v.error)return {error:r.identificador+': '+v.error};Object.assign(r,{id:uid('secuencia'),tipo,muestraId:'',sha256:huella(r.secuencia),origen:{tipo:'fasta',sha256TextoUTF8,fecha},notas:''});}\n    return {secuencias:registros,explicacion:'Importación completa de '+registros.length+' secuencias. Se normalizan mayúsculas y espacios; se conserva la cabecera y la huella del texto leído. El alfabeto es el declarado por ti.'};\n  }\n  function sanea(x) {\n    return {id:String(x.id || uid('secuencia')).slice(0,120),identificador:String(x.identificador || '').slice(0,2000),cabecera:String(x.cabecera || '').slice(0,2000),secuencia:String(x.secuencia || ''),tipo:x.tipo,muestraId:String(x.muestraId || '').slice(0,120),sha256:String(x.sha256 || ''),origen:deepCopy(x.origen || {}),notas:String(x.notas || '').slice(0,20000)};\n  }\n  function resumen(s) {\n    const v=valida(s.secuencia,s.tipo);if(v.error)return v;\n    const conteos={};for(const c of s.secuencia)conteos[c]=(conteos[c] || 0)+1;\n    if(s.tipo==='proteina')return {longitud:s.secuencia.length,conteos,paradas:conteos['*'] || 0,ambiguas:['B','X','Z','J'].reduce((a,c)=>a+(conteos[c] || 0),0),explicacion:'Composición de la secuencia de proteína declarada. * señala una parada; B, X, Z y J no determinan un único aminoácido.'};\n    let minimo=0,maximo=0,equiprobable=0,ambiguas=0;\n    for(const [c,n] of Object.entries(conteos)){const bases=BASES[c],gc=[...bases].filter(x=>'GC'.includes(x)).length;minimo+=gc===bases.length ? n : 0;maximo+=gc>0 ? n : 0;equiprobable+=n*gc/bases.length;if(bases.length>1)ambiguas+=n;}\n    const longitud=s.secuencia.length;\n    return {longitud,conteos,ambiguas,gcMin:100*minimo/longitud,gcMax:100*maximo/longitud,gcEquiprobable:100*equiprobable/longitud,\n      explicacion:'GC mínimo y máximo delimitan la composición compatible con los símbolos IUPAC. GC equiprobable supone iguales probabilidades de las bases de cada símbolo ambiguo; es una hipótesis de cálculo, no una medida.'};\n  }\n  function complementoInverso(s,tipo) {\n    const v=valida(s,tipo);if(v.error)return v;if(tipo==='proteina')return {error:'El complemento inverso se define para ADN o ARN.'};\n    let secuencia=[...s].reverse().map(c=>COMPLEMENTO[c]).join('');if(tipo==='ARN')secuencia=secuencia.replace(/T/g,'U');\n    return {secuencia,explicacion:'Complemento inverso conservando la ambigüedad IUPAC. No modifica la secuencia original.'};\n  }\n  function posibilidades(codon) {\n    let lista=[''];for(const c of codon)lista=lista.flatMap(p=>[...BASES[c]].map(b=>p+b));return lista;\n  }\n  function amino(codon,tabla) {const cambios=TABLAS[tabla].cambios;return cambios[codon] || aminoacidos[['T','C','A','G'].indexOf(codon[0])*16+['T','C','A','G'].indexOf(codon[1])*4+['T','C','A','G'].indexOf(codon[2])];}\n  function traduce(s,tabla,marco,cds) {\n    const v=valida(s.secuencia,s.tipo);if(v.error)return v;\n    if(s.tipo==='proteina' || !Object.hasOwn(TABLAS,tabla) || ![-3,-2,-1,1,2,3].includes(marco))return {error:'La traducción requiere ADN/ARN, tabla 1, 2 u 11 y un marco de ±1, ±2 o ±3.'};\n    const cadena=(marco<0 ? complementoInverso(s.secuencia,s.tipo).secuencia : s.secuencia).replace(/U/g,'T').slice(Math.abs(marco)-1),resto=cadena.length%3;\n    if(cadena.length<3)return {error:'No hay un codón completo en el marco elegido.'};\n    const cache=new Map(),traduccion=[];\n    for(let i=0;i+2<cadena.length;i+=3){const codon=cadena.slice(i,i+3);if(!cache.has(codon)){const aas=new Set(posibilidades(codon).map(c=>amino(c,tabla)));cache.set(codon,aas.size===1 ? [...aas][0] : ({DN:'B',EQ:'Z',IL:'J'}[[...aas].sort().join('')] || 'X'));}traduccion.push(cache.get(codon));}\n    if(cds) {\n      if(resto || !posibilidades(cadena.slice(0,3)).every(c=>TABLAS[tabla].inicios.includes(c)) || traduccion.at(-1)!=='*' || traduccion.slice(0,-1).includes('*'))return {error:'La CDS necesita codón de inicio válido, longitud múltiplo de tres y una única parada terminal según la tabla elegida.'};\n      traduccion[0]='M';traduccion.pop();\n    }\n    const secuencia=traduccion.join('');return {secuencia,tabla:Number(tabla),marco,cds:!!cds,resto,ambiguas:traduccion.filter(x=>'XBZJ'.includes(x)).length,\n      explicacion:'Traducción computada con la tabla NCBI '+tabla+' ('+TABLAS[tabla].nombre+'), marco '+marco+'. '+(cds ? 'Se valida la CDS y se omite su parada terminal. ' : '* conserva las paradas; no se aplica el tratamiento de CDS. ')+(resto ? 'Quedan '+resto+' nucleótidos finales sin un codón completo. ' : '')+'B, Z y J conservan las ambigüedades D/N, E/Q e I/L; X indica otras posibilidades. No se inventa una identidad.'};\n  }\n  function fasta(secuencias) {return secuencias.map(s=>'>'+s.cabecera+'\\n'+(s.secuencia.match(/.{1,80}/g) || []).join('\\n')).join('\\n')+'\\n';}\n  return {TIPOS,TABLAS,valida,importaFASTA,sanea,resumen,complementoInverso,traduce,fasta,huella};\n})();\n",
  "src/js/03-calculo.js": "/* ==== 03-calculo.js ==== */\n'use strict';\n/* ================= cálculos de laboratorio =================\n   Cantidades para preparar un lote: cuánto pesar para n moles de un reactivo\n   con su pureza, cuánto para una disolución, cuánto tomar de un ácido\n   concentrado, cómo diluir y cómo escalar. Y el cálculo completo de una\n   coprecipitación de hidróxido doble laminar (HDL) M²⁺/M³⁺.\n\n   Cada función devuelve un objeto simple con los números y una\n   «explicacion» en español llano: debajo de cada número va lo que significa.\n   Los casos imposibles (pureza 0, dilución que concentra) devuelven {error}\n   con un mensaje comprensible; nunca una excepción muda ni un NaN escondido. */\n\nconst Calculo = (() => {\n  const positivo = (v, que) => {\n    if (v == null || v === '' || !isFinite(v)) return 'Falta ' + que + '.';\n    if (+v <= 0) return que[0].toUpperCase() + que.slice(1) + ' tiene que ser mayor que cero.';\n    return null;\n  };\n  const primerError = (...errs) => errs.find(Boolean);\n  const pureza = p => (p == null || p === '' ? 100 : +p);\n  const purezaMal = p => (pureza(p) > 0 && pureza(p) <= 100 ? null : 'La pureza tiene que estar entre 0 y 100 %.');\n  /* La masa molar llega como número o se calcula de la fórmula. */\n  function masaMolarDe(r) {\n    if (r.masaMolar != null && r.masaMolar !== '' && isFinite(r.masaMolar) && +r.masaMolar > 0) return {M: +r.masaMolar};\n    const f = Formula.lee(r.formula);\n    if (f.error) return {error: 'Masa molar de «' + (r.formula || '') + '»: ' + f.error};\n    return {M: f.masaMolar};\n  }\n\n  /* ---------- n moles de un sólido con su pureza ---------- */\n  function masaParaMoles(r) {\n    const mm = masaMolarDe(r);\n    const err = primerError(mm.error, positivo(r.moles, 'la cantidad de sustancia'), purezaMal(r.pureza));\n    if (err) return {error: err};\n    const masa = r.moles * mm.M / (pureza(r.pureza) / 100);\n    return {masa, masaMolar: mm.M,\n      explicacion: 'Para ' + numero(r.moles * 1000) + ' mmol hacen falta ' + numero(r.moles * mm.M) + ' g del compuesto puro (M = ' + numero(mm.M, {dec: 2}) + ' g/mol)'\n        + (pureza(r.pureza) < 100 ? '; con pureza del ' + numero(pureza(r.pureza)) + ' % se pesan ' + numero(masa) + ' g.' : '.')};\n  }\n\n  /* ---------- disolución a partir de un sólido ----------\n     m = C · V · M / pureza. C en mol/L y V en mL. */\n  function disolucion(r) {\n    const mm = masaMolarDe(r);\n    const err = primerError(mm.error, positivo(r.concentracion, 'la concentración'), positivo(r.volumen, 'el volumen'), purezaMal(r.pureza));\n    if (err) return {error: err};\n    const moles = r.concentracion * r.volumen / 1000;\n    const masa = moles * mm.M / (pureza(r.pureza) / 100);\n    return {moles, masa, masaMolar: mm.M,\n      explicacion: numero(r.volumen) + ' mL a ' + numero(r.concentracion) + ' mol/L contienen ' + numero(moles * 1000) + ' mmol de soluto: se pesan '\n        + numero(masa) + ' g y se afora a ' + numero(r.volumen) + ' mL.'};\n  }\n\n  /* ---------- tomar n moles de un líquido concentrado (% m/m y densidad) ----------\n     Un ácido o una base comercial: V = n · M / (w · ρ). */\n  function volumenConcentrado(r) {\n    const mm = masaMolarDe(r);\n    const err = primerError(mm.error, positivo(r.moles, 'la cantidad de sustancia'), positivo(r.densidad, 'la densidad'),\n      r.porcentaje > 0 && r.porcentaje <= 100 ? null : 'El porcentaje en masa tiene que estar entre 0 y 100.');\n    if (err) return {error: err};\n    const masaDisolucion = r.moles * mm.M / (r.porcentaje / 100);\n    const volumen = masaDisolucion / r.densidad;\n    const molaridad = r.porcentaje / 100 * r.densidad * 1000 / mm.M;\n    return {volumen, masaDisolucion, molaridad,\n      explicacion: 'El reactivo concentrado (' + numero(r.porcentaje) + ' % m/m, ρ = ' + numero(r.densidad) + ' g/mL) es ' + numero(molaridad) + ' mol/L; para '\n        + numero(r.moles * 1000) + ' mmol se toman ' + numero(volumen) + ' mL.'};\n  }\n\n  /* ---------- dilución C₁V₁ = C₂V₂ ---------- */\n  function dilucion(r) {\n    const err = primerError(positivo(r.c1, 'la concentración de partida'), positivo(r.c2, 'la concentración final'), positivo(r.v2, 'el volumen final'));\n    if (err) return {error: err};\n    if (+r.c2 > +r.c1) return {error: 'Una dilución no puede concentrar: la concentración final supera la de partida.'};\n    const v1 = r.c2 * r.v2 / r.c1;\n    return {v1, disolvente: r.v2 - v1,\n      explicacion: 'Se toman ' + numero(v1) + ' mL de la disolución de partida y se completan con disolvente hasta ' + numero(r.v2) + ' mL (factor de dilución ' + numero(r.c1 / r.c2) + ').'};\n  }\n\n  /* ---------- escalar un lote ----------\n     Todas las cantidades por el mismo factor; el tiempo y la temperatura no se\n     escalan (y la transferencia de calor y de masa tampoco escala lineal: se\n     avisa si el factor es grande). */\n  function escala(valor, factor) {\n    if (!isFinite(valor) || !isFinite(factor) || factor <= 0) return NaN;\n    return valor * factor;\n  }\n  const avisoEscala = f => (f >= 5 || f <= 0.2\n    ? 'Con un factor de ' + numero(f) + ' la agitación, la velocidad de adición y la transferencia de calor no escalan igual que las cantidades: revisa esos pasos.'\n    : null);\n\n  /* ---------- coprecipitación de un HDL M²⁺/M³⁺ ----------\n     [M²⁺₁₋ₓ M³⁺ₓ (OH)₂](Aⁿ⁻)ₓ/ₙ · m H₂O, con x = 1/(1 + R) y R = M²⁺/M³⁺.\n\n     Entradas: las dos sales (fórmula y pureza), R, la concentración total de\n     metales (mol/L) y el volumen de la disolución de sales (mL); el anión\n     interlaminar (CO₃²⁻, NO₃⁻ o Cl⁻), el agua m (de tu TGA; 0 si no la\n     conoces, y el rendimiento teórico lo dice) y, opcionalmente, la base y la\n     fuente del anión con sus purezas y el exceso.\n\n     El OH⁻ que se calcula es el estequiométrico (2 por M²⁺ y 3 por M³⁺). En\n     una síntesis a pH constante la base se añade hasta mantener el pH, así\n     que es una cantidad mínima orientativa, no la que vas a gastar. */\n  const NO_METAL = new Set(['H', 'N', 'O', 'C', 'Cl', 'S', 'F', 'Br', 'I', 'P']);\n  function metalDe(formula) {\n    const f = Formula.lee(formula);\n    if (f.error) return {error: f.error};\n    const metales = Object.keys(f.composicion).filter(k => !NO_METAL.has(k));\n    if (metales.length !== 1) return {error: '«' + formula + '» no tiene un único metal: escribe la sal de un solo catión.'};\n    return {metal: metales[0], porFormula: f.composicion[metales[0]], M: f.masaMolar};\n  }\n  const ANIONES = {\n    CO3: {formula: 'CO3', carga: 2, nombre: 'carbonato', bonito: 'CO₃²⁻'},\n    NO3: {formula: 'NO3', carga: 1, nombre: 'nitrato', bonito: 'NO₃⁻'},\n    Cl: {formula: 'Cl', carga: 1, nombre: 'cloruro', bonito: 'Cl⁻'}\n  };\n\n  function coprecipitacionHDL(r) {\n    const s2 = metalDe(r.sal2 && r.sal2.formula), s3 = metalDe(r.sal3 && r.sal3.formula);\n    const anion = ANIONES[r.anion || 'CO3'];\n    const err = primerError(\n      s2.error && 'Sal del M²⁺: ' + s2.error, s3.error && 'Sal del M³⁺: ' + s3.error,\n      positivo(r.R, 'la relación M²⁺/M³⁺'), positivo(r.concentracion, 'la concentración total de metales'),\n      positivo(r.volumen, 'el volumen de la disolución de sales'),\n      purezaMal(r.sal2 && r.sal2.pureza), purezaMal(r.sal3 && r.sal3.pureza),\n      anion ? null : 'Anión desconocido: usa CO3, NO3 o Cl.',\n      r.agua == null || r.agua === '' || +r.agua >= 0 ? null : 'El agua m no puede ser negativa.');\n    if (err) return {error: err};\n    const R = +r.R, x = 1 / (1 + R);\n    const nMetal = r.concentracion * r.volumen / 1000;\n    const n2 = nMetal * R / (1 + R), n3 = nMetal / (1 + R);\n    const sal = (s, n, entrada) => {\n      const nSal = n / s.porFormula;\n      return {metal: s.metal, moles: n, masaMolar: s.M, masa: nSal * s.M / (pureza(entrada.pureza) / 100), formula: entrada.formula, pureza: pureza(entrada.pureza)};\n    };\n    const m2 = sal(s2, n2, r.sal2), m3 = sal(s3, n3, r.sal3);\n\n    const nOH = 2 * n2 + 3 * n3;\n    const nAnion = n3 / anion.carga;\n    const m = r.agua == null || r.agua === '' ? 0 : +r.agua;\n    const r3 = v => redondea(v, 4);\n    const producto = s2.metal + r3(1 - x) + s3.metal + r3(x) + '(OH)2' + (anion.formula === 'Cl' ? 'Cl' : '(' + anion.formula + ')') + r3(x / anion.carga) + (m > 0 ? '·' + r3(m) + 'H2O' : '');\n    const Mprod = Formula.masaMolar(producto);\n    const rendimiento = nMetal * Mprod;\n\n    const out = {x, R, nMetal, sal2: m2, sal3: m3, nOH, nAnion, producto, masaMolarProducto: Mprod, rendimientoTeorico: rendimiento, anion: anion.bonito};\n    if (r.base && r.base.formula) {\n      const b = masaParaMoles({formula: r.base.formula, pureza: r.base.pureza, moles: nOH});\n      out.base = b.error ? {error: 'Base: ' + b.error} : {formula: r.base.formula, moles: nOH, masa: b.masa};\n    }\n    if (r.fuenteAnion && r.fuenteAnion.formula) {\n      const exceso = r.fuenteAnion.exceso == null || r.fuenteAnion.exceso === '' ? 1 : +r.fuenteAnion.exceso;\n      const f = Formula.lee(r.fuenteAnion.formula);\n      const porFormula = f.error ? 0 : anion.formula === 'CO3' ? (f.composicion.C || 0) : anion.formula === 'NO3' ? (f.composicion.N || 0) : (f.composicion.Cl || 0);\n      if (f.error || !porFormula) out.fuenteAnion = {error: 'Fuente del anión: «' + r.fuenteAnion.formula + '» no aporta ' + anion.nombre + '.'};\n      else {\n        const nFuente = nAnion * exceso / porFormula;\n        out.fuenteAnion = {formula: r.fuenteAnion.formula, exceso, moles: nFuente, masa: nFuente * f.masaMolar / (pureza(r.fuenteAnion.pureza) / 100)};\n      }\n    }\n    const partes = [\n      'Con R = ' + numero(R) + ' la fracción de M³⁺ es x = ' + numero(x, {dec: 3}) + '.',\n      numero(r.volumen) + ' mL a ' + numero(r.concentracion) + ' mol/L de metales totales son ' + numero(n2 * 1000) + ' mmol de ' + s2.metal + ' y ' + numero(n3 * 1000) + ' mmol de ' + s3.metal\n        + ': se pesan ' + numero(m2.masa) + ' g de ' + Formula.bonita(m2.formula) + ' y ' + numero(m3.masa) + ' g de ' + Formula.bonita(m3.formula) + '.',\n      'El OH⁻ estequiométrico es ' + numero(nOH * 1000) + ' mmol (2 por M²⁺ y 3 por M³⁺); a pH constante la base se dosifica hasta mantener el pH, así que es una cota orientativa.',\n      'Para compensar la carga hacen falta ' + numero(nAnion * 1000) + ' mmol de ' + anion.bonito + '.',\n      'Si todo el metal precipita como ' + Formula.bonita(producto) + ' (M = ' + numero(Mprod, {dec: 2}) + ' g/mol), el rendimiento teórico es ' + numero(rendimiento) + ' g'\n        + (m > 0 ? '.' : ' sin agua interlaminar: introduce m (de tu TGA) para un valor realista.')\n    ];\n    out.explicacion = partes.join(' ');\n    return out;\n  }\n\n  return {masaParaMoles, disolucion, volumenConcentrado, dilucion, escala, avisoEscala, coprecipitacionHDL, metalDe, ANIONES};\n})();\n",
  "src/js/03-flujo.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Flujo = (() => {\n  const MODOS={libre:'Registro libre',secuencial:'Orden del procedimiento',dependencias:'Dependencias explícitas'};\n  const SEGUNDOS={s:1,min:60,h:3600,d:86400};\n  function analiza(p) {\n    const modo=p.flujo && p.flujo.modo || 'libre',pasos=p.pasos;\n    if(!Object.hasOwn(MODOS,modo) || !Array.isArray(pasos) || pasos.length>1000 || pasos.some(s=>!s || typeof s.id!=='string' || !s.id) || new Set(pasos.map(s=>s.id)).size!==pasos.length)return {error:'El flujo necesita un modo válido y hasta 1 000 pasos con identificadores distintos.'};\n    const ids=new Set(pasos.map(s=>s.id));\n    for(const s of pasos){const deps=s.dependeDe || [];if(!Array.isArray(deps) || new Set(deps).size!==deps.length || deps.some(id=>!ids.has(id) || id===s.id))return {error:'Hay dependencias repetidas, del propio paso o de pasos ausentes. Revisa '+(s.texto || s.id)+'.'};}\n    const nodos=pasos.map((s,i)=>({id:s.id,indice:i,texto:s.texto,dependeDe:modo==='libre' ? [] : modo==='secuencial' ? i ? [pasos[i-1].id] : [] : [...(s.dependeDe || [])],duracion:s.tiempo==null ? null : s.tiempo*SEGUNDOS[s.unidadTiempo]}));\n    if(nodos.some(n=>n.duracion!=null && (!Number.isFinite(n.duracion) || n.duracion<0)))return {error:'Los tiempos deben ser no negativos, finitos y tener una unidad válida.'};\n    const porId=new Map(nodos.map(n=>[n.id,n])),salidas=new Map(nodos.map(n=>[n.id,[]])),grados=new Map(nodos.map(n=>[n.id,n.dependeDe.length])),aristas=[];\n    for(const n of nodos)for(const origen of n.dependeDe){salidas.get(origen).push(n.id);aristas.push({origen,destino:n.id});}\n    const disponibles=nodos.filter(n=>!grados.get(n.id)).map(n=>n.id),orden=[],niveles=new Map();\n    while(disponibles.length){const id=disponibles.shift(),n=porId.get(id);orden.push(id);niveles.set(id,n.dependeDe.length ? 1+Math.max(...n.dependeDe.map(x=>niveles.get(x))) : 0);for(const otro of salidas.get(id)){grados.set(otro,grados.get(otro)-1);if(!grados.get(otro))disponibles.push(otro);}}\n    if(orden.length!==nodos.length)return {error:'Las dependencias forman un ciclo. Un paso no puede esperar directa o indirectamente por sí mismo.'};\n    const completo=modo!=='libre' && nodos.every(n=>n.duracion!=null),inicios=new Map(),fines=new Map(),ultimos=new Map();let duracion=null,criticos=[];\n    if(completo){\n      for(const id of orden){const n=porId.get(id),inicio=n.dependeDe.length ? Math.max(...n.dependeDe.map(x=>fines.get(x))) : 0,fin=inicio+n.duracion;if(!Number.isFinite(fin))return {error:'La duración acumulada no se puede representar. Reescala los tiempos.'};inicios.set(id,inicio);fines.set(id,fin);}\n      duracion=Math.max(0,...fines.values());\n      for(const id of [...orden].reverse()){const n=porId.get(id),fin=salidas.get(id).length ? Math.min(...salidas.get(id).map(x=>ultimos.get(x))) : duracion;ultimos.set(id,fin-n.duracion);}\n      criticos=orden.filter(id=>Math.abs(ultimos.get(id)-inicios.get(id))<=1e-9*Math.max(1,duracion));\n    }\n    return {modo,nodos:nodos.map(n=>({...n,nivel:niveles.get(n.id),inicio:completo ? inicios.get(n.id) : null,fin:completo ? fines.get(n.id) : null,holgura:completo ? Math.max(0,ultimos.get(n.id)-inicios.get(n.id)) : null,critico:criticos.includes(n.id)})),aristas,orden,duracion,criticos,\n      explicacion:modo==='libre' ? 'Registro libre: no se exige orden ni se presume paralelismo. Declara un orden o dependencias para estimar el camino crítico.' : completo ? 'Duración mínima prevista con los tiempos escritos y recursos sin limitación. El camino crítico tiene holgura cero. No incluye preparación, disponibilidad de equipos ni fechas reales.' : 'Las dependencias están comprobadas. Falta al menos un tiempo; no se inventa una duración del camino crítico.'};\n  }\n  function defineDependencias(p,id,dependencias) {\n    const q=deepCopy(p),s=q.pasos.find(x=>x.id===id);if(!s)return {error:'El paso ya no existe.'};s.dependeDe=dependencias;q.flujo={modo:'dependencias'};const r=analiza(q);if(r.error)return r;return {pasos:q.pasos,flujo:q.flujo,explicacion:'Dependencias comprobadas y guardadas; no hay ciclos.'};\n  }\n  function reordena(p,orden) {\n    if(!Array.isArray(orden) || orden.length!==p.pasos.length || new Set(orden).size!==orden.length || orden.some(id=>!p.pasos.some(s=>s.id===id)))return {error:'El orden debe incluir cada paso exactamente una vez.'};\n    const mapa=new Map(p.pasos.map(s=>[s.id,s])),pasos=orden.map(id=>deepCopy(mapa.get(id))),r=analiza({...p,pasos});if(r.error)return r;return {pasos,explicacion:'Orden actualizado. Las dependencias explícitas permanecen vinculadas por identidad.'};\n  }\n  function mermaid(p) {\n    const r=analiza(p);if(r.error)return r;const claves=new Map(r.nodos.map((n,i)=>[n.id,'paso'+(i+1)]));\n    const etiqueta=x=>String(x || '').slice(0,120).replace(/&/g,'&amp;').replace(/\"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/[\\r\\n]/g,' ');\n    return {texto:'flowchart LR\\n'+r.nodos.map(n=>'  '+claves.get(n.id)+'[\"'+(n.indice+1)+' · '+etiqueta(n.texto)+'\"]').join('\\n')+'\\n'+r.aristas.map(a=>'  '+claves.get(a.origen)+' --> '+claves.get(a.destino)).join('\\n')+'\\n'};\n  }\n  return {MODOS,analiza,defineDependencias,reordena,mermaid};\n})();\n",
  "src/js/04-protocolo.js": "/* ==== 04-protocolo.js ==== */\n'use strict';\n/* ================= el protocolo =================\n   Un protocolo es un documento estructurado, no un texto libre: reactivos con\n   fórmula, pureza y cantidad; disoluciones que apuntan a un reactivo; pasos\n   con sus parámetros (temperatura, tiempo, pH, agitación, atmósfera);\n   condiciones de caracterización por técnica; notas de seguridad; y los lotes\n   que se hicieron con él. De esa estructura salen el escalado, la\n   comprobación de reproducibilidad y la sección de métodos.\n\n   Formato de archivo: v2; se admite y migra v1. sanea()\n   acepta cualquier JSON y devuelve un protocolo válido más la lista de lo que\n   tuvo que descartar: nada se pierde en silencio. */\n\nconst Protocolo = (() => {\n  const FORMATO = 'erlen-methods-protocolo-v2';\n  const FORMATO_ANTERIOR = 'erlen-methods-protocolo-v1';\n  const ACCIONES = {libre: 'Acción libre', mezclar: 'Mezclar', incubar: 'Incubar', transferir: 'Transferir', medir: 'Medir', lavar: 'Lavar', esperar: 'Esperar'};\n  /* Para cualquier disciplina. Las claves antiguas se conservan para que los\n     protocolos ya guardados sigan leyéndose igual. */\n  const TIPOS = {sintesis: 'Síntesis o preparación química', analisis: 'Ensayo analítico o cuantificación', caracterizacion: 'Medición o caracterización',\n    biologico: 'Procedimiento biológico', preparacion: 'Preparación de muestra, medio o disolución', tratamiento: 'Tratamiento o modificación',\n    campo: 'Muestreo o trabajo de campo', otro: 'Otro'};\n  const ROLES = {precursor: 'Reactivo o precursor', precipitante: 'Ácido, base o precipitante', disolvente: 'Disolvente', aditivo: 'Aditivo o catalizador',\n    patron: 'Patrón o referencia', muestra: 'Muestra', medio: 'Medio, tampón o suplemento', biologico: 'Enzima, anticuerpo o reactivo biológico', indicador: 'Indicador o colorante', otro: 'Otro'};\n  const UNIDADES = ['g', 'mg', 'mL', 'µL', 'mmol', 'mol'];\n  const UNIDADES_TIEMPO = ['s', 'min', 'h', 'd'];\n\n  const texto = v => (v == null ? '' : String(v)).slice(0, 20000);\n  const num = v => ((typeof v !== 'number' && typeof v !== 'string') || v === '' || !Number.isFinite(+v) ? null : +v);\n  const bool = v => v === true;\n  const de = (v, lista, def) => (lista.includes(v) ? v : def);\n\n  function nuevo(datos) {\n    const t = ahora();\n    return Object.assign({\n      format: FORMATO, id: uid('p'), titulo: '', tipo: 'sintesis', objetivo: '', autores: '', referencia: '',\n      escala: 1, rendimientoTeorico: null, productoFormula: '',\n      reactivos: [], disoluciones: [], pasos: [], flujo:{modo:'libre'}, equipos: '', caracterizacion: [], seguridad: [], lotes: [],\n      notas: '', sinPurificar: false, resultadoNombre: '', resultadoUnidad: '', versiones: [], literatura: [], placas: [], muestras: [], secuencias: [], referencias: [], adjuntos: [], analisis: [], creado: t, modificado: t\n    }, datos || {});\n  }\n  const nuevoReactivo = d => Object.assign({id: uid('r'), nombre: '', formula: '', masaMolar: null, pureza: null, proveedor: '', cas: '', smiles: '', rol: 'precursor', cantidad: null, unidad: 'g', densidad: null, peligros: '',\n    ghs: [], prudencia: [], clases: [], precio: null, unidadPrecio: 'g', residuo: ''}, d || {});\n  const nuevaDisolucion = d => Object.assign({id: uid('d'), nombre: '', reactivo: '', concentracion: null, volumen: null, disolvente: 'agua desionizada'}, d || {});\n  const nuevoPaso = d => Object.assign({id: uid('s'), dependeDe:[], texto: '', articulo: '', accion: 'libre', volumen: null, capacidad: null, temperatura: null, tiempo: null, unidadTiempo: 'h', ph: null, agitacion: null, atmosfera: '', critico: false}, d || {});\n  const nuevaTecnica = (tecnica, d) => Object.assign({id: uid('c'), tecnica: DATOS.tecnicas[tecnica] ? tecnica : 'otra', instrumentoId: '', valores: {}}, d || {});\n  const nuevaNota = d => Object.assign({id: uid('n'), texto: ''}, d || {});\n  const nuevoLote = d => Object.assign({id: uid('l'), codigo: '', fecha: ahora().slice(0, 10), factor: 1, operador: '', pesadas: {}, masaObtenida: null, observaciones: '',\n    parametros: {}, resultado: null, revision: null, ejecucion: {estado: 'preparado', inicio: '', fin: '', pasos: {}, muestras: '', equipos: [],muestrasRegistros:[],archivosOrigen:[],placas:[]}}, d || {});\n\n  /* Listas de códigos cortos (H/P de la FDS, clases de peligro): solo se\n     conservan los que tienen la forma esperada. */\n  const codigos = (v, re) => (Array.isArray(v) ? [...new Set(v.map(x => String(x).trim()).filter(x => re.test(x)))].slice(0, 60) : []);\n  const nuevaCondicion = d => Object.assign({id: uid('c'), parametro: '', unidad: '', bajo: null, alto: null, niveles: [], fuentes: []}, d || {});\n\n  /* ---------- saneado ---------- */\n  function sanea(bruto) {\n    const avisos = [];\n    if (!bruto || typeof bruto !== 'object' || Array.isArray(bruto)) return {error: 'El archivo no contiene un protocolo.'};\n    if (bruto.format && ![FORMATO, FORMATO_ANTERIOR].includes(bruto.format)) return {error: 'Formato «' + bruto.format + '» no reconocido: se esperaba ' + FORMATO + '.'};\n    const lista = (v, que) => { if (v == null) return []; if (!Array.isArray(v)) { avisos.push('«' + que + '» no era una lista y se descartó.'); return []; } return v.filter(x => x && typeof x === 'object'); };\n    const p = nuevo({\n      id: typeof bruto.id === 'string' && bruto.id ? bruto.id.slice(0, 60) : uid('p'),\n      titulo: texto(bruto.titulo).slice(0, 300), tipo: de(bruto.tipo, Object.keys(TIPOS), 'otro'),\n      objetivo: texto(bruto.objetivo), autores: texto(bruto.autores).slice(0, 500), referencia: texto(bruto.referencia).slice(0, 500),\n      escala: num(bruto.escala) > 0 ? num(bruto.escala) : 1,\n      rendimientoTeorico: num(bruto.rendimientoTeorico), productoFormula: texto(bruto.productoFormula).slice(0, 200),\n      flujo:bruto.flujo==null ? {modo:'libre'} : deepCopy(bruto.flujo),\n      equipos: texto(bruto.equipos), notas: texto(bruto.notas), sinPurificar: bool(bruto.sinPurificar),\n      resultadoNombre: texto(bruto.resultadoNombre).slice(0, 120), resultadoUnidad: texto(bruto.resultadoUnidad).slice(0, 40),\n      creado: typeof bruto.creado === 'string' ? bruto.creado : ahora(), modificado: typeof bruto.modificado === 'string' ? bruto.modificado : ahora()\n    });\n    p.reactivos = lista(bruto.reactivos, 'reactivos').map(r => nuevoReactivo({\n      id: typeof r.id === 'string' && r.id ? r.id : uid('r'), nombre: texto(r.nombre).slice(0, 200), formula: texto(r.formula).slice(0, 200),\n      masaMolar: num(r.masaMolar), pureza: num(r.pureza), proveedor: texto(r.proveedor).slice(0, 200), cas: texto(r.cas).slice(0, 40), smiles: texto(r.smiles).slice(0,2000),\n      rol: de(r.rol, Object.keys(ROLES), 'otro'), cantidad: num(r.cantidad), unidad: de(r.unidad, UNIDADES, 'g'), densidad: num(r.densidad), peligros: texto(r.peligros).slice(0, 1000),\n      ghs: codigos(r.ghs, /^(EUH\\d{3}|H\\d{3})$/), prudencia: codigos(r.prudencia, /^P\\d{3}(\\+P\\d{3})*$/), clases: codigos(r.clases, /^(acido|base|oxidante|reductor|inflamable|reactivoAgua|gasConAcido|peroxidable|piroforico)$/),\n      precio: num(r.precio) >= 0 ? num(r.precio) : null, unidadPrecio: de(r.unidadPrecio, ['g', 'mg', 'kg', 'mL', 'µL', 'L', 'mol', 'mmol'], 'g'), residuo: texto(r.residuo).slice(0, 40)}));\n    const ids = new Set(p.reactivos.map(r => r.id));\n    p.disoluciones = lista(bruto.disoluciones, 'disoluciones').map(d => {\n      if (d.reactivo && !ids.has(d.reactivo)) avisos.push('La disolución «' + texto(d.nombre) + '» apuntaba a un reactivo que no existe: queda sin soluto.');\n      return nuevaDisolucion({id: typeof d.id === 'string' && d.id ? d.id : uid('d'), nombre: texto(d.nombre).slice(0, 200),\n        reactivo: ids.has(d.reactivo) ? d.reactivo : '', concentracion: num(d.concentracion), volumen: num(d.volumen), disolvente: texto(d.disolvente).slice(0, 200)});\n    });\n    p.pasos = lista(bruto.pasos, 'pasos').map(s => nuevoPaso({id: typeof s.id === 'string' && s.id ? s.id : uid('s'), texto: texto(s.texto), articulo: texto(s.articulo),\n      dependeDe:Array.isArray(s.dependeDe) ? [...s.dependeDe] : [],accion: de(s.accion, Object.keys(ACCIONES), 'libre'), volumen: num(s.volumen), capacidad: num(s.capacidad),\n      temperatura: num(s.temperatura), tiempo: num(s.tiempo), unidadTiempo: de(s.unidadTiempo, UNIDADES_TIEMPO, 'h'), ph: num(s.ph),\n      agitacion: num(s.agitacion), atmosfera: texto(s.atmosfera).slice(0, 100), critico: bool(s.critico)}));\n    if(lista(bruto.pasos,'pasos').some(s=>s.dependeDe!=null && !Array.isArray(s.dependeDe)))avisos.push('Las dependencias de un paso no eran una lista.');\n    const flujo=Flujo.analiza(p);if(flujo.error)avisos.push(flujo.error);\n    p.caracterizacion = lista(bruto.caracterizacion, 'caracterización').map(c => {\n      const def = DATOS.tecnicas[c.tecnica];\n      if (!def) avisos.push('Técnica «' + texto(c.tecnica) + '» desconocida: se guardó como «Otra técnica».');\n      const valores = {};\n      const fuente = c.valores && typeof c.valores === 'object' ? c.valores : {};\n      for (const campo of (def || DATOS.tecnicas.otra).campos) {\n        const v = fuente[campo.id];\n        if (v == null || v === '') continue;\n        valores[campo.id] = campo.tipo === 'numero' ? num(v) : texto(v).slice(0, 2000);\n      }\n      return nuevaTecnica(def ? c.tecnica : 'otra', {id: typeof c.id === 'string' && c.id ? c.id : uid('c'), instrumentoId: texto(c.instrumentoId).slice(0, 80), valores});\n    });\n    p.seguridad = lista(bruto.seguridad, 'seguridad').map(n => nuevaNota({id: typeof n.id === 'string' && n.id ? n.id : uid('n'), texto: texto(n.texto).slice(0, 2000)}));\n    p.lotes = lista(bruto.lotes, 'lotes').map(l => {\n      const pesadas = {};\n      if (l.pesadas && typeof l.pesadas === 'object') for (const k in l.pesadas) if (num(l.pesadas[k]) != null) pesadas[k] = num(l.pesadas[k]);\n      const parametros = {};\n      if (l.parametros && typeof l.parametros === 'object') for (const k in l.parametros) {\n        if (!l.parametros[k] || typeof l.parametros[k] !== 'object') continue;\n        const q = {};\n        for (const c of ['temperatura', 'tiempo', 'ph', 'agitacion']) if (num(l.parametros[k][c]) != null) q[c] = num(l.parametros[k][c]);\n        if (Object.keys(q).length) parametros[k] = q;\n      }\n      return nuevoLote({id: typeof l.id === 'string' && l.id ? l.id : uid('l'), codigo: texto(l.codigo).slice(0, 80), fecha: texto(l.fecha).slice(0, 10),\n        factor: num(l.factor) > 0 ? num(l.factor) : 1, operador: texto(l.operador).slice(0, 200), pesadas, masaObtenida: num(l.masaObtenida), observaciones: texto(l.observaciones),\n        parametros, resultado: num(l.resultado), revision: saneaRevision(l.revision, avisos), ejecucion: saneaEjecucion(l.ejecucion,avisos)});\n    });\n    p.literatura = lista(bruto.literatura, 'literatura').slice(0, 200).map(c => nuevaCondicion({id: typeof c.id === 'string' && c.id ? c.id : uid('c'),\n      parametro: texto(c.parametro).slice(0, 200), unidad: texto(c.unidad).slice(0, 40), bajo: num(c.bajo), alto: num(c.alto),\n      niveles: Array.isArray(c.niveles) ? c.niveles.map(x => texto(x).slice(0, 80)).slice(0, 20) : [],\n      fuentes: Array.isArray(c.fuentes) ? c.fuentes.filter(f => f && typeof f === 'object').slice(0, 20).map(f => ({valor: f.valor == null ? null : texto(f.valor).slice(0, 80),\n        referenciaId:texto(f.referenciaId).slice(0,120),cita: texto(f.cita).slice(0, 300), pagina: f.pagina == null ? null : texto(f.pagina).slice(0, 20), doi: texto(f.doi).slice(0, 200)})) : []}));\n    p.placas = lista(bruto.placas, 'placas').slice(0,100).map(x => Placas.sanea(x)).filter(x => {if(x.error)avisos.push(x.error);return !x.error;});\n    p.muestras = lista(bruto.muestras, 'muestras').slice(0,5000).map(x => Muestras.sanea(x));\n    for(const m of p.muestras){const r=Muestras.valida(m);if(r.error)avisos.push(r.error);}\n    p.secuencias = lista(bruto.secuencias,'secuencias').slice(0,200).map(x=>Secuencias.sanea(x));\n    for(const s of p.secuencias){const r=Secuencias.valida(s.secuencia,s.tipo);if(r.error)avisos.push(r.error);if(Secuencias.huella(s.secuencia)!==s.sha256)avisos.push('La secuencia no coincide con su huella: '+s.identificador);}\n    p.referencias = lista(bruto.referencias, 'referencias').slice(0,1000).filter(x => {if(!x.title || !x.type)avisos.push('Referencia bibliográfica incompleta.');return x.title && x.type;}).map(x => JSON.parse(JSON.stringify(x)));\n    p.adjuntos = lista(bruto.adjuntos, 'adjuntos').slice(0,1000).filter(x => typeof x.sha256 === 'string' && /^[a-f0-9]{64}$/.test(x.sha256)).map(x => ({id:texto(x.id).slice(0,80),nombre:texto(x.nombre).slice(0,200),tipo:texto(x.tipo).slice(0,100),bytes:num(x.bytes),sha256:x.sha256,fecha:texto(x.fecha).slice(0,40),enlace:{tipo:texto(x.enlace && x.enlace.tipo).slice(0,40),id:texto(x.enlace && x.enlace.id).slice(0,120)}}));\n    if(Array.isArray(bruto.analisis) && bruto.analisis.length>100)avisos.push('Se conservan sólo los primeros 100 análisis; conserva el archivo original completo.');\n    p.analisis = lista(bruto.analisis, 'análisis').slice(0,100).map(x => JSON.parse(JSON.stringify(x)));\n    /* Las versiones guardan protocolos completos: se sanean igual, sin sus\n       propias versiones ni lotes (una versión no anida versiones). */\n    if(Array.isArray(bruto.versiones) && bruto.versiones.length>50)avisos.push('El archivo contiene más de 50 versiones; se conservan las 50 últimas. Guarda el original antes de aceptar esta lectura.');\n    p.versiones = lista(bruto.versiones, 'versiones').slice(-50).map(v => {\n      if (!v.protocolo || typeof v.protocolo !== 'object') return null;\n      const sub = sanea(Object.assign({}, v.protocolo, {versiones: [], lotes: []}));\n      if (sub.error) return null;\n      delete sub.protocolo.versiones; delete sub.protocolo.lotes;\n      return {id: typeof v.id === 'string' && v.id ? v.id : uid('v'), fecha: typeof v.fecha === 'string' ? v.fecha.slice(0, 40) : ahora(), nota: texto(v.nota).slice(0, 300), protocolo: sub.protocolo};\n    }).filter(Boolean);\n    return {protocolo: p, avisos};\n  }\n\n  /* Una revisión de ejecución conserva únicamente la definición. Nunca anida\n     lotes ni versiones; los archivos v1 se migran sin inventar su historia. */\n  function definicion(p) {\n    const copia = deepCopy(p);\n    delete copia.lotes; delete copia.versiones;\n    return copia;\n  }\n  function claveRevision(p) {\n    const copia = definicion(p);\n    delete copia.creado; delete copia.modificado; delete copia.id; delete copia.format;\n    return JSON.stringify(copia);\n  }\n  function saneaRevision(v, avisos) {\n    if (v == null) return null;\n    if (!v || typeof v !== 'object' || !v.protocolo) {\n      avisos.push('La revisión del lote no era válida; su referencia histórica queda desconocida.');\n      return null;\n    }\n    const sub = sanea(Object.assign({}, v.protocolo, {lotes: [], versiones: []}));\n    if (sub.error) { avisos.push('No se pudo leer la revisión del lote: ' + sub.error); return null; }\n    avisos.push(...sub.avisos.map(a => 'Revisión del lote: ' + a));\n    return {id: texto(v.id).slice(0, 80) || uid('v'), fecha: texto(v.fecha).slice(0, 40), nota: texto(v.nota).slice(0, 300), protocolo: definicion(sub.protocolo)};\n  }\n  function saneaEjecucion(v,avisos) {\n    const x = v && typeof v === 'object' ? v : {}, pasos = {};\n    if (x.pasos && typeof x.pasos === 'object') for (const [id, registro] of Object.entries(x.pasos)) {\n      if (!registro || typeof registro !== 'object') continue;\n      pasos[id] = {completado: bool(registro.completado), fecha: texto(registro.fecha).slice(0, 40), nota: texto(registro.nota)};\n    }\n    const campos = ['id', 'nombre', 'tipo', 'identificador', 'ultimaCalibracion', 'proximaCalibracion', 'unidad', 'notas'];\n    const equipos = (Array.isArray(x.equipos) ? x.equipos : []).filter(e => e && typeof e === 'object').map(e =>\n      Object.assign(Object.fromEntries(campos.map(k => [k, texto(e[k])])), {nominal: num(e.nominal), tolerancia: num(e.tolerancia)}));\n    if(x.placas!=null && !Array.isArray(x.placas))avisos.push('Las placas de la ejecución no eran una lista y se descartaron.');\n    const placas=(Array.isArray(x.placas) ? x.placas : []).map(y=>Placas.saneaRegistro(y)).filter(y=>{if(y.error)avisos.push(y.error);return !y.error;});\n    const muestrasRegistros=(Array.isArray(x.muestrasRegistros) ? x.muestrasRegistros : []).filter(y=>y && y.id).map(y=>Object.assign(Muestras.sanea(y),{fechaVinculo:texto(y.fechaVinculo).slice(0,40)}));\n    return {estado: de(x.estado, ['preparado', 'enCurso', 'terminado'], 'preparado'), inicio: texto(x.inicio).slice(0, 40),\n      fin: texto(x.fin).slice(0, 40), pasos, muestras: texto(x.muestras), equipos,muestrasRegistros,placas,archivosOrigen:Array.isArray(x.archivosOrigen) ? deepCopy(x.archivosOrigen) : []};\n  }\n\n  /* ---------- cantidades ----------\n     La cantidad escrita es la del lote base; la del lote que vas a hacer es\n     esa por la escala. Los moles solo se dan cuando se pueden saber: masa con\n     masa molar (y pureza), volumen con densidad, o moles directos. */\n  function masaMolar(r) {\n    if (r.masaMolar > 0) return r.masaMolar;\n    if (!r.formula) return null;\n    const m = Formula.masaMolar(r.formula);\n    return isFinite(m) ? m : null;\n  }\n  function moles(r, factor) {\n    const f = factor == null ? 1 : factor;\n    if (r.cantidad == null) return null;\n    const q = r.cantidad * f, M = masaMolar(r), w = (r.pureza == null ? 100 : r.pureza) / 100;\n    switch (r.unidad) {\n      case 'mol': return q;\n      case 'mmol': return q / 1000;\n      case 'g': return M ? q * w / M : null;\n      case 'mg': return M ? q / 1000 * w / M : null;\n      case 'mL': return M && r.densidad > 0 ? q * r.densidad * w / M : null;\n      case 'µL': return M && r.densidad > 0 ? q / 1000 * r.densidad * w / M : null;\n      default: return null;\n    }\n  }\n  /* Cuánto se pesa de verdad (g) de un reactivo sólido cuya cantidad se da\n     en moles: así la hoja de pesadas nunca dice «0,5 mmol» a quien pesa. */\n  function masaAPesar(r, factor) {\n    const f = factor == null ? 1 : factor;\n    if (r.cantidad == null) return null;\n    if (r.unidad === 'g') return r.cantidad * f;\n    if (r.unidad === 'mg') return r.cantidad * f / 1000;\n    if (r.unidad === 'mol' || r.unidad === 'mmol') {\n      const M = masaMolar(r);\n      if (!M || (r.pureza != null && !(r.pureza > 0 && r.pureza <= 100))) return null;\n      const n = r.unidad === 'mol' ? r.cantidad * f : r.cantidad * f / 1000;\n      return n * M / ((r.pureza == null ? 100 : r.pureza) / 100);\n    }\n    return null;\n  }\n  function disolucion(p, d, factor) {\n    const r = p.reactivos.find(x => x.id === d.reactivo);\n    if (!r) return {error: 'Elige el soluto.'};\n    const f = factor == null ? 1 : factor;\n    return Calculo.disolucion({formula: r.formula, masaMolar: r.masaMolar, pureza: r.pureza, concentracion: d.concentracion, volumen: d.volumen == null ? null : d.volumen * f});\n  }\n\n  /* ---------- reproducibilidad ----------\n     Lo que otra persona necesitaría para repetir el protocolo sin\n     preguntarte. «falta» impide reproducirlo; «sugerencia» lo mejora. Cada\n     entrada lleva la sección a la que ir para arreglarla. */\n  const MENCIONA = [\n    [/agit/i, 'agitacion', 'la velocidad de agitación (rpm)'],\n    [/(sec[aó]|calcin|envejec|reflujo|hidroterm|calent|horno|estufa)/i, 'temperatura', 'la temperatura'],\n    [/(sec[aó]|calcin|envejec|reflujo|hidroterm|reposo|agit)/i, 'tiempo', 'el tiempo'],\n    [/\\bpH\\b/, 'ph', 'el pH']\n  ];\n  function revisa(p) {\n    const r = [];\n    const add = (nivel, seccion, textoAviso, ref) => r.push({nivel, seccion, texto: textoAviso, ref: ref || null});\n    let total = 0, bien = 0;\n    const cuenta = (ok, nivel, seccion, t, ref) => { total++; if (ok) bien++; else add(nivel, seccion, t, ref); };\n    cuenta(!!p.titulo.trim(), 'falta', 'general', 'El protocolo no tiene título.');\n    cuenta(!!p.objetivo.trim(), 'sugerencia', 'general', 'Describe el objetivo: qué se obtiene y para qué.');\n    if (p.tipo === 'sintesis') cuenta(!!p.reactivos.length, 'falta', 'reactivos', 'Una síntesis necesita al menos un reactivo.');\n    p.reactivos.forEach((x, i) => {\n      const n = '«' + (x.nombre || x.formula || 'reactivo ' + (i + 1)) + '»';\n      cuenta(!!(x.nombre || x.formula), 'falta', 'reactivos', 'El reactivo ' + (i + 1) + ' no tiene nombre ni fórmula.', x.id);\n      cuenta(masaMolar(x) != null, x.formula ? 'falta' : 'sugerencia', 'reactivos',\n        x.formula ? 'La fórmula de ' + n + ' no se pudo leer: ' + (Formula.lee(x.formula).error || '') : 'Añade la fórmula de ' + n + ' para calcular moles y escalar.', x.id);\n      cuenta(x.pureza != null, 'falta', 'reactivos', 'Falta la pureza de ' + n + '.', x.id);\n      cuenta(!!x.proveedor.trim(), 'sugerencia', 'reactivos', 'Falta el proveedor de ' + n + '.', x.id);\n      if (x.rol !== 'disolvente') cuenta(x.cantidad != null, 'falta', 'reactivos', 'Falta la cantidad de ' + n + '.', x.id);\n      if ((x.unidad === 'mL' || x.unidad === 'µL') && x.rol !== 'disolvente') cuenta(x.densidad > 0, 'sugerencia', 'reactivos', 'Con la densidad de ' + n + ' se pueden dar sus moles.', x.id);\n    });\n    p.disoluciones.forEach((d, i) => {\n      const n = '«' + (d.nombre || 'disolución ' + (i + 1)) + '»';\n      cuenta(!!d.reactivo, 'falta', 'disoluciones', 'La disolución ' + n + ' no tiene soluto.', d.id);\n      cuenta(d.concentracion != null && d.volumen != null, 'falta', 'disoluciones', 'Faltan la concentración o el volumen de ' + n + '.', d.id);\n      cuenta(!!d.disolvente.trim(), 'sugerencia', 'disoluciones', 'Indica el disolvente de ' + n + '.', d.id);\n    });\n    cuenta(p.pasos.length > 0, 'falta', 'procedimiento', 'El procedimiento no tiene pasos.');\n    p.pasos.forEach((s, i) => {\n      cuenta(!!s.texto.trim(), 'falta', 'procedimiento', 'El paso ' + (i + 1) + ' está vacío.', s.id);\n      /* Un paso en infinitivo («Disolver…») es lo natural en el cuaderno, pero\n         la sección de métodos va en pasiva. La app no conjuga por ti: pide la\n         redacción para el artículo. */\n      if (/^[A-ZÁÉÍÓÚ]?[a-záéíóúñ]+(ar|er|ir)(se|lo|la|los|las)?\\b/.test(s.texto.trim())) cuenta(!!s.articulo.trim(), 'sugerencia', 'procedimiento', 'El paso ' + (i + 1) + ' está en infinitivo: escribe cómo se redacta en el artículo («Se disolvieron…»).', s.id);\n      for (const [re, campo, que] of MENCIONA) if (re.test(s.texto)) cuenta(s[campo] != null, 'sugerencia', 'procedimiento', 'El paso ' + (i + 1) + ' lo menciona pero no fija ' + que + '.', s.id);\n    });\n    p.caracterizacion.forEach(c => {\n      const def = DATOS.tecnicas[c.tecnica];\n      for (const campo of def.campos) if (campo.requerido) cuenta(c.valores[campo.id] != null && c.valores[campo.id] !== '', 'falta', 'caracterizacion', def.corto + ': falta «' + campo.etiqueta.toLowerCase() + '».', c.id);\n    });\n    if (p.reactivos.length) cuenta(p.seguridad.some(n => n.texto.trim()) || p.reactivos.some(x => x.peligros.trim()), 'sugerencia', 'seguridad', 'Anota los peligros de los reactivos o las precauciones (EPP, campana, residuos).');\n    return {avisos: r, total, bien, faltas: r.filter(a => a.nivel === 'falta').length, sugerencias: r.filter(a => a.nivel === 'sugerencia').length,\n      indice: total ? bien / total : 0};\n  }\n\n  /* Resumen corto para la biblioteca. */\n  function resumen(p) {\n    const partes = [TIPOS[p.tipo] || 'Protocolo'];\n    if (p.reactivos.length) partes.push(p.reactivos.length + (p.reactivos.length === 1 ? ' reactivo' : ' reactivos'));\n    if (p.pasos.length) partes.push(p.pasos.length + (p.pasos.length === 1 ? ' paso' : ' pasos'));\n    if (p.lotes.length) partes.push(p.lotes.length + (p.lotes.length === 1 ? ' lote' : ' lotes'));\n    return partes.join(' · ');\n  }\n  const tieneContenido = p => !!(p && (p.titulo.trim() || p.objetivo.trim() || ['reactivos','pasos','caracterizacion','disoluciones','placas','muestras','secuencias','referencias','adjuntos','analisis','lotes'].some(k=>p[k] && p[k].length)));\n\n  function integridad(p, profundidad) {\n    const errores=[];\n    if(!p || typeof p!=='object')return ['La definición del protocolo no es un objeto.'];\n    if((profundidad || 0)>1)return ['Una referencia histórica no puede anidar otras revisiones.'];\n    for(const k of ['reactivos','disoluciones','pasos','caracterizacion','seguridad','lotes','literatura','placas','muestras','secuencias','referencias','adjuntos','analisis']) {\n      if(p[k]!=null && !Array.isArray(p[k])){errores.push(k+' no es una lista.');continue;}\n      const vistos=new Set();for(const x of p[k] || []) {\n        if(!x || typeof x!=='object'){errores.push('Registro inválido en '+k+'.');continue;}\n        if(x.id==null || String(x.id)==='' || vistos.has(String(x.id)))errores.push('Identificador ausente o repetido en '+k+': '+(x.id || 'vacío'));\n        vistos.add(String(x.id));\n      }\n    }\n    for(const placa of Array.isArray(p.placas) ? p.placas.filter(x=>x && typeof x==='object') : []) {\n      const posiciones=new Set(Placas.posiciones(placa));\n      for(const [id,x] of Object.entries(placa.pozos || {})) {\n        if(!posiciones.has(id))errores.push('Pozo '+id+' fuera del formato de la placa '+placa.id+'.');\n        if(x.volumen!=null && placa.capacidad!=null && x.volumen>placa.capacidad)errores.push('El volumen de '+id+' supera la capacidad de la placa '+placa.id+'.');\n      }\n      for(const t of placa.transferencias || [])if(t.origen===t.destino || !posiciones.has(t.origen) || !posiciones.has(t.destino))errores.push('Plan de transferencia inválido en '+placa.id+'.');\n    }\n    if(Array.isArray(p.secuencias) && p.secuencias.reduce((n,s)=>n+(s && typeof s.secuencia==='string' ? s.secuencia.length : 0),0)>2000000)errores.push('El protocolo supera dos millones de símbolos de secuencia.');\n    const flujo=Flujo.analiza(p);if(flujo.error)errores.push(flujo.error);\n    for(const s of Array.isArray(p.secuencias) ? p.secuencias : []){const r=Secuencias.valida(s.secuencia,s.tipo);if(r.error)errores.push(r.error);if(Secuencias.huella(s.secuencia)!==s.sha256)errores.push('La secuencia no coincide con su huella: '+s.identificador);}\n    for(const m of Array.isArray(p.muestras) ? p.muestras : []){const r=Muestras.valida(Muestras.nueva(m));if(r.error)errores.push(r.error);}\n    const usados=adjuntosUsados(p);if(usados.error)errores.push(usados.error);else for(const a of usados.archivos)if(a.id!=='sha256-'+a.sha256)errores.push('El identificador del adjunto no coincide con su hash: '+a.nombre+'.');\n    for(const lote of Array.isArray(p.lotes) ? p.lotes.filter(Boolean) : [])if(lote.revision)errores.push(...integridad(lote.revision.protocolo,(profundidad || 0)+1).map(x=>'Revisión '+lote.id+': '+x));\n    for(const lote of Array.isArray(p.lotes) ? p.lotes.filter(Boolean) : []) {\n      const placas=lote.ejecucion && lote.ejecucion.placas || [],vistos=new Set();\n      if(!Array.isArray(placas)){errores.push('Las placas de ejecución no son una lista.');continue;}\n      for(const placa of placas) {\n        if(!placa || vistos.has(placa.id)){errores.push('Placa de ejecución ausente o repetida.');continue;}vistos.add(placa.id);\n        const ids=new Set(Placas.posiciones(placa));for(const [id,x] of Object.entries(placa.pozos || {}))if(!ids.has(id) || !x || (x.volumenReal!=null && placa.capacidad!=null && x.volumenReal>placa.capacidad))errores.push('Registro de pozo inválido en '+lote.id+' / '+placa.id+' / '+id+'.');\n      }\n    }\n    for(const v of Array.isArray(p.versiones) ? p.versiones.filter(Boolean) : [])errores.push(...integridad(v.protocolo,(profundidad || 0)+1).map(x=>'Versión '+v.id+': '+x));\n    return errores;\n  }\n  function adjuntosUsados(p) {\n    if(!p || typeof p!=='object')return {error:'No hay protocolo para resolver los archivos.'};\n    const archivos=new Map(),lotes=Array.isArray(p.lotes) ? p.lotes.filter(Boolean) : [],versiones=Array.isArray(p.versiones) ? p.versiones.filter(Boolean) : [];\n    for(const definicion of [p,...lotes.filter(x=>x.revision).map(x=>x.revision.protocolo),...versiones.map(x=>x.protocolo)].filter(Boolean))for(const a of (Array.isArray(definicion.adjuntos) ? definicion.adjuntos : []).concat(...(Array.isArray(definicion.lotes) ? definicion.lotes : []).filter(Boolean).map(l=>l.ejecucion && l.ejecucion.archivosOrigen || []),...(Array.isArray(definicion.analisis) ? definicion.analisis : []).filter(x=>x && x.tipo==='cuantificacionPlaca').map(x=>x.fuente && Array.isArray(x.fuente.archivosOrigen) ? x.fuente.archivosOrigen : []))) {\n      if(!a || typeof a!=='object' || !a.id)return {error:'Un registro de archivo no tiene identificador.'};\n      const previo=archivos.get(a.id);if(previo && (previo.sha256!==a.sha256 || previo.bytes!==a.bytes))return {error:'Un identificador de adjunto tiene metadatos contradictorios: '+a.id};\n      if(!previo)archivos.set(a.id,a);\n    }\n    return {archivos:[...archivos.values()]};\n  }\n\n  return {FORMATO, FORMATO_ANTERIOR, ACCIONES, definicion, claveRevision, TIPOS, ROLES, UNIDADES, UNIDADES_TIEMPO, nuevo, nuevaCondicion, nuevoReactivo, nuevaDisolucion, nuevoPaso, nuevaTecnica, nuevaNota, nuevoLote,\n    sanea, integridad, adjuntosUsados, masaMolar, moles, masaAPesar, disolucion, revisa, resumen, tieneContenido};\n})();\n",
  "src/js/05-expresion.js": "/* ==== 05-expresion.js ==== */\n'use strict';\n/* ================= expresiones matemáticas =================\n   Un analizador propio, sin eval ni Function: la app corre bajo CSP estricta\n   y una fórmula escrita por el usuario nunca debe ejecutar código. Admite\n   + − × ÷ ^, paréntesis, notación científica (1.2e-3), coma o punto decimal\n   entre dígitos, constantes (pi, e) y funciones de una variable (sqrt, ln,\n   log, exp, abs, sin, cos, tan, asin, acos, atan) o de dos (pow, min, max).\n\n   compila(texto) → {evalua(vars), variables, texto} o {error}. Las variables\n   son identificadores (letras, dígitos y _). La sensibilidad para GUM usa diferenciación automática hacia delante,\n   sin restar valores casi iguales ni atravesar el dominio al perturbar\n   concentraciones pequeñas. Los puntos no diferenciables se rechazan. */\n\nconst Expresion = (() => {\n  const FUNCIONES = {\n    sqrt: Math.sqrt, ln: Math.log, log: Math.log10, log10: Math.log10, exp: Math.exp, abs: Math.abs,\n    sin: Math.sin, cos: Math.cos, tan: Math.tan, asin: Math.asin, acos: Math.acos, atan: Math.atan\n  };\n  const FUNCIONES2 = {pow: Math.pow, min: Math.min, max: Math.max};\n  const CONSTANTES = {pi: Math.PI, e: Math.E};\n\n  function constante(valor) {const f=()=>valor;f.deriva=()=>0;return f;}\n  function binaria(op,a,b) {\n    const f=v=>{const x=a(v),y=b(v);return op==='+' ? x+y : op==='-' ? x-y : op==='*' ? x*y : op==='/' ? x/y : Math.pow(x,y);};\n    f.deriva=(v,n)=>{\n      const x=a(v),y=b(v),dx=a.deriva(v,n),dy=b.deriva(v,n);\n      if(op==='+')return dx+dy;if(op==='-')return dx-dy;\n      if(op==='*')return dx*y+x*dy;if(op==='/')return (dx-x/y*dy)/y;\n      if(dx===0 && dy===0)return 0;\n      if(dy===0){if(y===0 || dx===0)return 0;const r=y*Math.pow(x,y-1)*dx;return r===0 && x!==0 ? NaN : r;}\n      return x>0 ? Math.pow(x,y)*(dy*Math.log(x)+y*dx/x) : NaN;\n    };return f;\n  }\n  function funcion(nombre,a,b) {\n    if(nombre==='pow')return binaria('^',a,b);\n    const f=v=>b ? FUNCIONES2[nombre](a(v),b(v)) : FUNCIONES[nombre](a(v));\n    f.deriva=(v,n)=>{\n      const x=a(v),dx=a.deriva(v,n);\n      if(b){const y=b(v),dy=b.deriva(v,n);if(x===y)return dx===dy ? dx : NaN;return (nombre==='min' ? x<y : x>y) ? dx : dy;}\n      if(dx===0)return 0;\n      const coeficiente=nombre==='sqrt' ? .5/Math.sqrt(x) : nombre==='ln' ? 1/x : nombre==='log' || nombre==='log10' ? (1/x)/Math.LN10 : nombre==='exp' ? Math.exp(x) : nombre==='abs' ? x===0 ? NaN : Math.sign(x) : nombre==='sin' ? Math.cos(x) : nombre==='cos' ? -Math.sin(x) : nombre==='tan' ? 1/Math.cos(x)**2 : nombre==='asin' ? 1/Math.sqrt(1-x*x) : nombre==='acos' ? -1/Math.sqrt(1-x*x) : (1/Math.hypot(1,x))/Math.hypot(1,x);\n      if(coeficiente===0 && ['exp','atan'].includes(nombre))return NaN;\n      return coeficiente*dx;\n    };return f;\n  }\n\n  function tokeniza(s) {\n    const t = [];\n    let i = 0;\n    const texto = String(s).replace(/[×·]/g, '*').replace(/÷/g, '/').replace(/−/g, '-');\n    while (i < texto.length) {\n      const c = texto[i];\n      if (/\\s/.test(c)) { i++; continue; }\n      const num = /^(\\d+([.,]\\d+)?|[.,]\\d+)([eE][+-]?\\d+)?/.exec(texto.slice(i));\n      if (num && /[\\d.,]/.test(c)) { const valor=parseFloat(num[0].replace(',', '.'));if(!Number.isFinite(valor) || valor===0 && /[1-9]/.test(num[0].split(/[eE]/)[0]))throw new Error('El número no se puede representar sin desbordarse o perderse como cero.');t.push({tipo: 'num', v: valor, p: i}); i += num[0].length; continue; }\n      const id = /^[A-Za-zÀ-ÿ_][A-Za-zÀ-ÿ0-9_]*/.exec(texto.slice(i));\n      if (id) { t.push({tipo: 'id', v: id[0], p: i}); i += id[0].length; continue; }\n      if ('+-*/^(),;'.includes(c)) { t.push({tipo: c === ';' ? ',' : c, p: i}); i++; continue; }\n      throw new Error('Carácter inesperado «' + c + '» en la posición ' + (i + 1));\n    }\n    return t;\n  }\n\n  /* Gramática: suma := prod (('+'|'-') prod)* ; prod := unario (('*'|'/') unario)* ;\n     unario := ('-'|'+') unario | pot ; pot := atomo ('^' unario)? (asociativa a la derecha). */\n  function compila(texto) {\n    let t;\n    try { t = tokeniza(texto); } catch (e) { return {error: e.message}; }\n    if (!t.length) return {error: 'Escribe una expresión.'};\n    let i = 0;\n    const variables = new Set();\n    const ver = () => t[i], toma = () => t[i++];\n    const espera = tipo => { const x = toma(); if (!x || x.tipo !== tipo) throw new Error('Se esperaba «' + tipo + '»' + (x ? ' en la posición ' + (x.p + 1) : ' al final')); return x; };\n    function suma() {\n      let a = prod();\n      while (ver() && (ver().tipo === '+' || ver().tipo === '-')) { const op = toma().tipo, b = prod(); a = binaria(op,a,b); }\n      return a;\n    }\n    function prod() {\n      let a = unario();\n      while (ver() && (ver().tipo === '*' || ver().tipo === '/')) { const op = toma().tipo, b = unario(); a = binaria(op,a,b); }\n      return a;\n    }\n    function unario() {\n      if (ver() && ver().tipo === '-') { toma(); const a = unario(); return binaria('-',constante(0),a); }\n      if (ver() && ver().tipo === '+') { toma(); return unario(); }\n      return pot();\n    }\n    function pot() {\n      const a = atomo();\n      if (ver() && ver().tipo === '^') { toma(); const b = unario(); return binaria('^',a,b); }\n      return a;\n    }\n    function atomo() {\n      const x = toma();\n      if (!x) throw new Error('La expresión termina de forma incompleta.');\n      if (x.tipo === 'num') return constante(x.v);\n      if (x.tipo === '(') { const a = suma(); espera(')'); return a; }\n      if (x.tipo === 'id') {\n        const nombre = x.v;\n        if (ver() && ver().tipo === '(') {\n          toma();\n          const funcionNombre=nombre.toLowerCase(),f1 = Object.hasOwn(FUNCIONES,funcionNombre), f2 = Object.hasOwn(FUNCIONES2,funcionNombre);\n          if (!f1 && !f2) throw new Error('Función desconocida «' + nombre + '»');\n          const a = suma();\n          if (f2) { espera(','); const b = suma(); espera(')'); return funcion(funcionNombre,a,b); }\n          espera(')');\n          return funcion(funcionNombre,a);\n        }\n        if (Object.hasOwn(CONSTANTES,nombre) && !variables.has(nombre)) return constante(CONSTANTES[nombre]);\n        variables.add(nombre);\n        const f=v=>{if(!Object.hasOwn(v,nombre))throw new Error('Falta el valor de «'+nombre+'»');return v[nombre];};f.deriva=(v,n)=>nombre===n ? 1 : 0;return f;\n      }\n      throw new Error('Símbolo inesperado «' + x.tipo + '» en la posición ' + (x.p + 1));\n    }\n    try {\n      const f = suma();\n      if (i < t.length) throw new Error('Sobra «' + (t[i].v != null ? t[i].v : t[i].tipo) + '» en la posición ' + (t[i].p + 1));\n      return {texto: String(texto), variables: [...variables], evalua: vars => f(vars || {}),deriva:(vars,nombre)=>f.deriva(vars || {},nombre)};\n    } catch (e) {\n      return {error: e.message};\n    }\n  }\n\n  function derivada(expr,vars,nombre) {\n    if(!expr || typeof expr.deriva!=='function' || !vars || !Number.isFinite(vars[nombre]))return NaN;\n    return expr.deriva(vars,nombre);\n  }\n\n  return {compila, derivada, FUNCIONES: Object.keys(FUNCIONES).concat(Object.keys(FUNCIONES2))};\n})();\n",
  "src/js/06-estadistica.js": "/* ==== 06-estadistica.js ==== */\n'use strict';\n/* ================= estadística de laboratorio =================\n   Réplicas (media, desviación, intervalo de confianza, valor atípico de\n   Grubbs), curva de calibración por mínimos cuadrados con LOD y LOQ,\n   concentración de un desconocido con su incertidumbre, carta de control de\n   valores individuales y propagación de incertidumbre según la GUM (JCGM\n   100:2008) con diferenciación automática.\n\n   La t de Student sale de la función beta incompleta regularizada (fracción\n   continua de Lentz); no hay tablas copiadas. Cada resultado trae su\n   «explicacion». */\n\nconst Estadistica = (() => {\n  /* ---------- funciones especiales ---------- */\n  function lnGamma(x) {\n    const c = [76.18009172947146, -86.50532032941677, 24.01409824083091, -1.231739572450155, 0.1208650973866179e-2, -0.5395239384953e-5];\n    let y = x, tmp = x + 5.5;\n    tmp -= (x + 0.5) * Math.log(tmp);\n    let ser = 1.000000000190015;\n    for (const ci of c) ser += ci / ++y;\n    return -tmp + Math.log(2.5066282746310005 * ser / x);\n  }\n  function betacf(a, b, x) {\n    const MAX = 300, EPS = 3e-16, FPMIN = 1e-300;\n    let qab = a + b, qap = a + 1, qam = a - 1, c = 1, d = 1 - qab * x / qap;\n    if (Math.abs(d) < FPMIN) d = FPMIN;\n    d = 1 / d;\n    let h = d;\n    for (let m = 1; m <= MAX; m++) {\n      const m2 = 2 * m;\n      let aa = m * (b - m) * x / ((qam + m2) * (a + m2));\n      d = 1 + aa * d; if (Math.abs(d) < FPMIN) d = FPMIN;\n      c = 1 + aa / c; if (Math.abs(c) < FPMIN) c = FPMIN;\n      d = 1 / d; h *= d * c;\n      aa = -(a + m) * (qab + m) * x / ((a + m2) * (qap + m2));\n      d = 1 + aa * d; if (Math.abs(d) < FPMIN) d = FPMIN;\n      c = 1 + aa / c; if (Math.abs(c) < FPMIN) c = FPMIN;\n      d = 1 / d;\n      const del = d * c;\n      h *= del;\n      if (Math.abs(del - 1) < EPS) break;\n    }\n    return h;\n  }\n  function betaInc(x, a, b) {\n    if (x <= 0) return 0;\n    if (x >= 1) return 1;\n    const bt = Math.exp(lnGamma(a + b) - lnGamma(a) - lnGamma(b) + a * Math.log(x) + b * Math.log(1 - x));\n    return x < (a + 1) / (a + b + 2) ? bt * betacf(a, b, x) / a : 1 - bt * betacf(b, a, 1 - x) / b;\n  }\n  /* CDF de la t de Student con gl grados de libertad. */\n  function tCdf(t, gl) {\n    const x = gl / (gl + t * t);\n    const p = 0.5 * betaInc(x, gl / 2, 0.5);\n    return t >= 0 ? 1 - p : p;\n  }\n  /* Cuantil: bisección sobre la CDF, suficiente a 1e-12. */\n  function tCuantil(p, gl) {\n    if (!(p > 0 && p < 1) || !(gl > 0)) return NaN;\n    let lo = -1e3, hi = 1e3;\n    for (let k = 0; k < 200; k++) {\n      const mid = (lo + hi) / 2;\n      if (tCdf(mid, gl) < p) lo = mid; else hi = mid;\n      if (hi - lo < 1e-12) break;\n    }\n    return (lo + hi) / 2;\n  }\n\n  const suma = a => a.reduce((s, v) => s + v, 0);\n  const media = a => suma(a) / a.length;\n  function desviacion(a) {\n    if (a.length < 2) return NaN;\n    const m = media(a);\n    return Math.sqrt(suma(a.map(v => (v - m) * (v - m))) / (a.length - 1));\n  }\n  const limpia = a => (Array.isArray(a) ? a : []).map(Number).filter(v => isFinite(v));\n\n  /* ---------- réplicas ---------- */\n  function replicas(datos, confianza) {\n    const x = limpia(datos), n = x.length, conf = confianza || 0.95;\n    if (n < 2) return {error: 'Hacen falta al menos dos réplicas.'};\n    const m = media(x), s = desviacion(x), se = s / Math.sqrt(n);\n    const t = tCuantil(1 - (1 - conf) / 2, n - 1);\n    const ordenados = x.slice().sort((a, b) => a - b);\n    const mediana = n % 2 ? ordenados[(n - 1) / 2] : (ordenados[n / 2 - 1] + ordenados[n / 2]) / 2;\n    const out = {n, media: m, desviacion: s, drs: m !== 0 ? s / Math.abs(m) * 100 : NaN, errorEstandar: se, mediana,\n      ic: [m - t * se, m + t * se], t, confianza: conf};\n    out.grubbs = grubbs(x, 0.05);\n    out.explicacion = 'Con ' + n + ' réplicas, la media es ' + numero(m) + ' ± ' + numero(t * se, {cifras: 2}) + ' (IC ' + numero(conf * 100) + ' %, t = ' + numero(t, {dec: 3})\n      + ', ' + (n - 1) + ' gl); la desviación estándar es ' + numero(s, {cifras: 3}) + (isFinite(out.drs) ? ' (DER ' + numero(out.drs, {dec: 1}) + ' %)' : '') + '. '\n      + (out.grubbs.error ? out.grubbs.error : out.grubbs.explicacion);\n    return out;\n  }\n\n  /* Prueba de Grubbs (dos colas) para el valor más alejado de la media. */\n  function grubbs(datos, alfa) {\n    const x = limpia(datos), n = x.length, a = alfa || 0.05;\n    if (n < 3) return {error: 'La prueba de Grubbs necesita al menos tres réplicas.'};\n    const m = media(x), s = desviacion(x);\n    if (!(s > 0)) return {error: 'Todas las réplicas son iguales: no hay valor atípico que probar.'};\n    let idx = 0;\n    x.forEach((v, i) => { if (Math.abs(v - m) > Math.abs(x[idx] - m)) idx = i; });\n    const G = Math.abs(x[idx] - m) / s;\n    const t = tCuantil(1 - a / (2 * n), n - 2);\n    const critico = (n - 1) / Math.sqrt(n) * Math.sqrt(t * t / (n - 2 + t * t));\n    const atipico = G > critico;\n    return {valor: x[idx], indice: idx, G, critico, atipico,\n      explicacion: 'Grubbs: el valor más alejado, ' + numero(x[idx]) + ', da G = ' + numero(G, {dec: 3}) + ' frente a G crítico = ' + numero(critico, {dec: 3})\n        + ' (α = ' + numero(a) + '): ' + (atipico ? 'es atípico. Antes de descartarlo, busca una causa en el cuaderno.' : 'no es atípico.')};\n  }\n\n  const sumaCompensada=valores=>{let total=0,correccion=0;for(const v of valores){const y=v-correccion,t=total+y;correccion=(t-total)-y;total=t;}return total;};\n  function ajusteLineal(datos, ponderada) {\n    if (!Array.isArray(datos) || datos.length < 3 || datos.length>5000 || datos.some(d=> !d || typeof d!=='object' || !Number.isFinite(d.x) || !Number.isFinite(d.y) || (ponderada && !(Number.isFinite(d.u) && d.u>0)))) return {error:'Introduce entre tres y 5 000 pares finitos; en ajuste ponderado cada incertidumbre de respuesta debe ser positiva.'};\n    const uBase=ponderada ? Math.min(...datos.map(d=>d.u)) : 1;\n    const pesos=datos.map(d=>ponderada ? (uBase/d.u)**2 : 1), s=sumaCompensada(pesos);\n    const xm=datos[0].x+sumaCompensada(datos.map((d,i)=>pesos[i]*(d.x-datos[0].x)))/s, ym=datos[0].y+sumaCompensada(datos.map((d,i)=>pesos[i]*(d.y-datos[0].y)))/s;\n    const xx=sumaCompensada(datos.map((d,i)=>pesos[i]*(d.x-xm)**2));\n    if(!(xx>0) || !Number.isFinite(xx)) return {error:'Todos los patrones tienen la misma concentración o los pesos no son representables.'};\n    const pendiente=sumaCompensada(datos.map((d,i)=>pesos[i]*(d.x-xm)*(d.y-ym)))/xx, intercepto=ym-pendiente*xm;\n    const residuos=datos.map(d=>{const ajustado=ym+pendiente*(d.x-xm);return {x:d.x,y:d.y,ajustado,residuo:d.y-ajustado};});\n    const sse=sumaCompensada(residuos.map((d,i)=>pesos[i]*d.residuo*d.residuo)), gl=datos.length-2, varianza=sse/gl;\n    const total=sumaCompensada(datos.map((d,i)=>pesos[i]*(d.y-ym)**2)), r2=total>0 ? 1-sse/total : null;\n    // u conocidas absolutas: su escala no se sustituye por la dispersión residual.\n    const escala=ponderada ? uBase*uBase : varianza;\n    const covarianza=[[(1/s+xm*xm/xx)*escala,-xm/xx*escala],[-xm/xx*escala,escala/xx]];\n    if (![pendiente,intercepto,xm,ym,s,xx,varianza,escala,...covarianza.flat()].every(Number.isFinite) || (ponderada && !(escala>0))) return {error:'El ajuste excede la precisión numérica disponible. Reescala las magnitudes y sus incertidumbres.'};\n    const xmin=Math.min(...datos.map(d=>d.x)),xmax=Math.max(...datos.map(d=>d.x));\n    residuos.forEach((d,i)=>{\n      d.palanca=pesos[i]*(1/s+(d.x-xm)**2/xx);\n      d.residuoEstandar=d.palanca<1 && escala>0 ? Math.sqrt(pesos[i])*d.residuo/Math.sqrt(escala*(1-d.palanca)) : null;\n      d.cook=d.palanca<1 && varianza>0 ? pesos[i]*d.residuo**2*d.palanca/(2*varianza*(1-d.palanca)**2) : null;\n    });\n    return {pendiente,intercepto,residuos,r2,gl,varianza,covarianza,xm,ym,xx,s,escala,xmin,xmax,ponderada:!!ponderada,\n      explicacion:ponderada ? 'Mínimos cuadrados con pesos 1/u(y)²; u se interpreta como incertidumbre estándar conocida. El ajuste supone x sin error y respuestas independientes.' : 'Mínimos cuadrados ordinarios: incertidumbre estimada a partir de los residuos; x se considera sin error.'};\n  }\n  function prediccionLineal(ajuste,x,uNueva) {\n    if(!ajuste || ajuste.error || !Number.isFinite(x) || (ajuste.ponderada && !(Number.isFinite(uNueva) && uNueva>0))) return {error:'Indica x y, en ajuste ponderado, la incertidumbre de la nueva respuesta.'};\n    const v=ajuste.escala*(1/ajuste.s+(x-ajuste.xm)**2/ajuste.xx), nueva=ajuste.ponderada ? uNueva*uNueva : ajuste.varianza;\n    const k=ajuste.ponderada ? 1.959963984540054 : tCuantil(0.975,ajuste.gl);\n    const valor=ajuste.ym+ajuste.pendiente*(x-ajuste.xm),intervalo=k*Math.sqrt(v+nueva);\n    if (![valor,intervalo].every(Number.isFinite)) return {error:'La predicción excede la precisión numérica disponible.'};\n    return {valor, intervalo,k,extrapolacion:x<ajuste.xmin || x>ajuste.xmax,\n      explicacion:'Intervalo de predicción bilateral aproximado del 95 % para una respuesta nueva. Requiere un modelo lineal adecuado y los supuestos indicados por el ajuste.'};\n  }\n  function inversionLineal(ajuste,y,uNueva,repeticiones,confianza=.95) {\n    if (!(confianza>0 && confianza<1) || (ajuste?.ponderada && confianza!==.95) || !ajuste || ajuste.error || !Number.isFinite(y) || !Number.isInteger(repeticiones) || repeticiones<1 || repeticiones>100000 || (ajuste.ponderada && !(Number.isFinite(uNueva) && uNueva>0))) return {error:'Indica la respuesta media, el número de lecturas independientes y, en ajuste ponderado, su incertidumbre estándar individual.'};\n    const k=ajuste.ponderada ? 1.959963984540054 : tCuantil((1+confianza)/2,ajuste.gl), nueva=(ajuste.ponderada ? uNueva*uNueva : ajuste.varianza)/repeticiones;\n    const d=y-ajuste.ym,a=ajuste.pendiente**2-k*k*ajuste.escala/ajuste.xx,b=-2*ajuste.pendiente*d,c=d*d-k*k*(ajuste.escala/ajuste.s+nueva),discriminante=b*b-4*a*c;\n    if(!(a>0)) return {error:'La pendiente no se distingue de cero con la confianza elegida. El intervalo inverso no es acotado; este ajuste no permite cuantificar la muestra.'};\n    if(![a,b,c,discriminante].every(Number.isFinite) || discriminante<0) return {error:'El intervalo inverso no se puede representar. Revisa el ajuste y reescala los datos.'};\n    const raiz=Math.sqrt(discriminante),q=-0.5*(b+(b<0 ? -raiz : raiz));\n    const extremos=q===0 ? [0,0] : [q/a,c/q];\n    const valor=ajuste.xm+d/ajuste.pendiente,bajo=ajuste.xm+Math.min(...extremos),alto=ajuste.xm+Math.max(...extremos);\n    if(![valor,bajo,alto].every(Number.isFinite)) return {error:'La concentración y su intervalo exceden la precisión disponible.'};\n    return {valor,bajo,alto,k,repeticiones,extrapolacion:bajo<ajuste.xmin || alto>ajuste.xmax,\n      explicacion:'Intervalo bilateral del '+numero(confianza*100)+' % por inversión de la predicción lineal (Fieller). Las lecturas nuevas se consideran independientes de los patrones; repetir lecturas reduce su dispersión, pero no la incertidumbre de los parámetros del ajuste. Verifica linealidad y ausencia de error relevante en x.'};\n  }\n  /* La calculadora y los análisis usan el mismo ajuste centrado. */\n  function calibracion(xs,ys,confianza=.95) {\n    if(!Array.isArray(xs) || !Array.isArray(ys) || xs.length!==ys.length || !(confianza>0 && confianza<1) || xs.some((x,i)=>x==null || ys[i]==null || String(x).trim()==='' || String(ys[i]).trim()===''))return {error:'Escribe pares completos de concentración y señal, y una confianza entre cero y uno.'};\n    const datos=xs.map((x,i)=>({x:Number(x),y:Number(ys[i])})),a=ajusteLineal(datos,false);if(a.error)return a;\n    const n=datos.length,m=a.pendiente,b=a.intercepto,syx=Math.sqrt(a.varianza),sm=Math.sqrt(a.covarianza[1][1]),sb=Math.sqrt(a.covarianza[0][0]),t=tCuantil((1+confianza)/2,a.gl),lod=m!==0 ? 3.3*syx/Math.abs(m) : null,loq=m!==0 ? 10*syx/Math.abs(m) : null;\n    const predice=(y0,k=1)=>{\n      const r=inversionLineal(a,y0,null,k,confianza);if(r.error)return r;\n      const sx0=syx/Math.abs(m)*Math.sqrt(1/k+1/n+((y0-a.ym)/m)**2/a.xx);\n      return {x0:r.valor,sx0,ic:[r.bajo,r.alto],fuera:r.extrapolacion,bajoLoq:loq!=null && r.valor<loq,explicacion:'Concentración '+numero(r.valor)+'; intervalo Fieller '+numero(confianza*100)+' % ['+numero(r.bajo)+'; '+numero(r.alto)+']. '+(r.extrapolacion ? 'El intervalo sale del rango de los patrones. ' : '')+'Supone respuestas independientes y x sin error relevante.'};\n    };\n    return {n,pendiente:m,ordenada:b,sPendiente:sm,sOrdenada:sb,syx,r2:a.r2,lod,loq,residuos:a.residuos.map(x=>x.residuo),t,predice,x:datos.map(d=>d.x),y:datos.map(d=>d.y),prediceRespuesta:x=>a.ym+m*(x-a.xm),explicacion:a.explicacion+' LOD = 3,3·s(y/x)/|m| y LOQ = 10·s(y/x)/|m| (estimaciones ICH Q2). Un R² alto no prueba linealidad: revisa los residuos.'};\n  }\n\n  /* ---------- carta de control de valores individuales (I-MR) ----------\n     Límites a ±2,66·MR̄ (3σ con d₂ = 1,128). Se marcan puntos fuera de\n     límites y rachas de 8 seguidos del mismo lado de la media. */\n  function cartaControl(datos) {\n    const x = limpia(datos), n = x.length;\n    if (n < 3) return {error: 'La carta de control necesita al menos tres valores.'};\n    const c = media(x);\n    const mr = x.slice(1).map((v, i) => Math.abs(v - x[i]));\n    const mrBar = media(mr);\n    const lcs = c + 2.66 * mrBar, lci = c - 2.66 * mrBar;\n    const fuera = x.map((v, i) => (v > lcs || v < lci ? i : -1)).filter(i => i >= 0);\n    const rachas = [];\n    let lado = 0, largo = 0;\n    x.forEach((v, i) => {\n      const l = v > c ? 1 : v < c ? -1 : 0;\n      if (l !== 0 && l === lado) largo++; else { lado = l; largo = l ? 1 : 0; }\n      if (largo === 8) rachas.push(i);\n    });\n    return {centro: c, lcs, lci, mrBar, lcsMR: 3.267 * mrBar, fuera, rachas, valores: x,\n      explicacion: 'Centro ' + numero(c) + ', límites ' + numero(lci) + ' y ' + numero(lcs) + ' (±2,66·MR̄). '\n        + (fuera.length ? fuera.length + (fuera.length === 1 ? ' punto fuera' : ' puntos fuera') + ' de control: busca la causa en esos lotes. ' : 'Ningún punto fuera de los límites. ')\n        + (rachas.length ? 'Hay una racha de 8 lotes seguidos del mismo lado de la media: el proceso se desplazó.' : '')\n        + (n < 20 ? ' Con menos de 20 valores, los límites son provisionales.' : '')};\n  }\n\n  /* ---------- propagación de incertidumbre (GUM) ----------\n     Variables no correlacionadas: u_c² = Σ (∂f/∂xᵢ)² u(xᵢ)². Si se dan los\n     grados de libertad de cada entrada, Welch–Satterthwaite da los efectivos\n     y el factor de cobertura para el 95 %; si no, k = 2. */\n  function matrizCorrelacion(nombres,correlaciones) {\n    if (!Array.isArray(nombres) || nombres.length>32 || new Set(nombres).size!==nombres.length) return {error:'Usa hasta 32 variables distintas para las correlaciones.'};\n    const n = nombres.length, matriz = nombres.map((_, i) => nombres.map((_, j) => i === j ? 1 : 0));\n    if (correlaciones != null && !Array.isArray(correlaciones)) return {error: 'Las correlaciones deben ser una lista de pares de variables.'};\n    const vistos = new Set();\n    for (const par of correlaciones || []) {\n      const i = nombres.indexOf(par && par.a), j = nombres.indexOf(par && par.b);\n      if (i < 0 || j < 0 || i === j || typeof par.rho !== 'number' || !Number.isFinite(par.rho) || Math.abs(par.rho) > 1)\n        return {error: 'Cada correlación necesita dos variables distintas del modelo y un coeficiente entre −1 y 1.'};\n      const clave = [i, j].sort((a, b) => a - b).join(':');\n      if (vistos.has(clave)) return {error: 'No repitas un par de variables en las correlaciones.'};\n      vistos.add(clave); matriz[i][j] = par.rho; matriz[j][i] = par.rho;\n    }\n    // Cholesky admite matrices semidefinidas: correlaciones ±1 son válidas.\n    const triangulo = nombres.map(() => Array(n).fill(0));\n    for (let i = 0; i < n; i++) for (let j = 0; j <= i; j++) {\n      let resto = matriz[i][j];\n      for (let k = 0; k < j; k++) resto -= triangulo[i][k] * triangulo[j][k];\n      if (i === j) {\n        if (resto < -1e-10) return {error: 'Las correlaciones no forman una matriz semidefinida positiva.'};\n        triangulo[i][j] = Math.sqrt(Math.max(0, resto));\n      } else if (triangulo[j][j] > 1e-10) triangulo[i][j] = resto / triangulo[j][j];\n      else if (Math.abs(resto) > 1e-10) return {error: 'Las correlaciones son incompatibles entre sí.'};\n    }\n    return {matriz,triangulo,nPares:vistos.size};\n  }\n\n  function propaga(textoFormula, entradas, correlaciones) {\n    const expr = Expresion.compila(textoFormula);\n    if (expr.error) return {error: 'Fórmula: ' + expr.error};\n    const vars = Object.create(null), faltan = [];\n    for (const v of expr.variables) {\n      const e = (entradas || {})[v];\n      if (!e || e.valor == null || !isFinite(e.valor)) faltan.push(v); else vars[v] = +e.valor;\n    }\n    if (faltan.length) return {error: 'Falta el valor de ' + faltan.map(f => '«' + f + '»').join(', ') + '.', variables: expr.variables};\n    let y;\n    try { y = expr.evalua(vars); } catch (e) { return {error: e.message, variables: expr.variables}; }\n    if (!isFinite(y)) return {error: 'La fórmula no da un número con esos valores (¿división por cero o raíz de un negativo?).', variables: expr.variables};\n    for (const v of expr.variables) if (entradas[v].u != null && (typeof entradas[v].u !== 'number' || !Number.isFinite(entradas[v].u) || entradas[v].u < 0))\n      return {error: 'La incertidumbre de «' + v + '» debe ser un número finito y no negativo.'};\n    const aportes = expr.variables.map(v => {\n      const u = Math.abs(+(entradas[v].u || 0)), c = Expresion.derivada(expr, vars, v);\n      return {variable: v, valor: vars[v], u, coeficiente: c, contribucion: c * u, gl: entradas[v].gl > 0 ? +entradas[v].gl : null};\n    });\n    if (aportes.some(a => !Number.isFinite(a.coeficiente))) return {error: 'La sensibilidad no es finita con esos valores.'};\n    const correlacion=matrizCorrelacion(expr.variables,correlaciones);if(correlacion.error)return correlacion;\n    const {matriz,triangulo,nPares}=correlacion;\n    if(aportes.some(a=>!Number.isFinite(a.contribucion)))return {error:'Una contribución a la incertidumbre no se puede representar. Reescala el modelo.'};\n    const escala=Math.max(0,...aportes.map(a=>Math.abs(a.contribucion))),normalizados=aportes.map(a=>escala>0 ? a.contribucion/escala : 0),independientes=suma(normalizados.map(x=>x*x));\n    const cruzadosNormalizados=suma(normalizados.map((x,i)=>suma(normalizados.map((z,j)=>i===j ? 0 : x*z*matriz[i][j]))));\n    // ||Lᵀa|| evita restar varianzas casi iguales cuando hay cancelación por correlación.\n    const componentes=normalizados.map((_,i)=>suma(normalizados.map((x,j)=>j<i ? 0 : triangulo[j][i]*x))),norma=Math.hypot(...componentes),uc=escala*norma;\n    const varCruzada=cruzadosNormalizados===0 ? 0 : cruzadosNormalizados*escala*escala,cruzados=Number.isFinite(varCruzada) ? varCruzada : null;\n    aportes.forEach((a,i)=>{a.porcentaje=uc>0 && independientes>0 ? normalizados[i]**2/independientes*100 : 0;});\n    let glEf=null,k=2;\n    if(!nPares && uc>0 && aportes.every(a=>a.gl || a.u===0)){\n      const den=suma(aportes.map((a,i)=>a.u>0 ? normalizados[i]**4/a.gl : 0));glEf=den>0 ? norma**4/den : Infinity;k=Number.isFinite(glEf) ? tCuantil(.975,glEf) : 1.96;\n    }\n    const U = k * uc;\n    if(!Number.isFinite(uc) || !Number.isFinite(U))return {error:'La incertidumbre combinada o expandida no se puede representar. Reescala el modelo.'};\n    const dom = aportes.slice().sort((a, b) => b.porcentaje - a.porcentaje)[0];\n    const red = redondeaConIncertidumbre(y, U);\n    const resolucionLimitada=U>0 && y+U===y && y-U===y;\n    return {valor: y, uc, cruzados,resolucionLimitada,cruzadosNormalizados,escalaContribuciones:escala,metodoSensibilidad:'diferenciación automática', correlaciones: correlaciones || [], k, U, glEf, aportes, variables: expr.variables, redondeo: red,\n      explicacion: 'Resultado: ' + red.texto + ' (k = ' + numero(k, {dec: 2}) + (glEf ? ', ' + numero(glEf, {dec: 1}) + ' gl efectivos' : ', aprox. 95 %') + '). '\n        + 'Sensibilidades por diferenciación automática. '\n        + (resolucionLimitada ? 'La incertidumbre está por debajo de la resolución numérica del valor central. Centra o reescala el modelo antes de representar su intervalo. ' : '')\n        + (cruzados==null ? 'La varianza cruzada supera la escala numérica; se conserva normalizada con su escala de contribuciones. ' : '')\n        + (nPares ? 'Se incluyeron covarianzas; k = 2 es una aproximación y no se estima Welch–Satterthwaite con entradas correlacionadas. ' : '')\n        + (aportes.some(a => entradas[a.variable].u == null) ? 'Las incertidumbres no indicadas se tomaron como cero; complétalas antes de interpretar el resultado. ' : '')\n        + (!nPares && dom && uc > 0 ? 'La mayor parte de la incertidumbre (' + numero(dom.porcentaje, {dec: 0}) + ' %) viene de «' + dom.variable + '»: mejorar esa medida es lo que más reduce la incertidumbre.' : '')};\n  }\n\n  /* ---------- redondeo y cifras significativas ----------\n     La incertidumbre se da con dos cifras significativas y el valor con los\n     mismos decimales (GUM 7.2.6). */\n  function redondeaConIncertidumbre(valor, u, cifrasU) {\n    if (!isFinite(valor)) return {texto: '—'};\n    if (!(u > 0)) return {valor, u: 0, texto: numero(valor) + ' (sin incertidumbre)'};\n    const n = cifrasU==null ? 2 : cifrasU;if(!Number.isFinite(u) || !Number.isInteger(n) || n<1 || n>10)return {error:'La incertidumbre y entre una y diez cifras significativas deben ser representables.',texto:'—'};\n    u=Number(u.toPrecision(n));if(!Number.isFinite(u))return {error:'La incertidumbre redondeada no se puede representar. Reescala las unidades.',texto:'—'};\n    const expU = Math.floor(Math.log10(Math.abs(u)));\n    const dec = n - 1 - expU;\n    if(dec>100 || dec < -100 || Math.abs(valor)>1e100){\n      const exp=expU-n+1,cifras=valor===0 ? 1 : Math.floor(Math.log10(Math.abs(valor)))-exp+1;\n      const v=valor===0 || cifras<=0 ? exp>=-323 ? Math.round(valor/(10**exp))*(10**exp) : valor : cifras>16 ? valor : Number(valor.toPrecision(cifras));\n      const texto=(v.toExponential(Math.min(16,Math.max(0,cifras-1)))+' ± '+u.toExponential(n-1)).replace(/\\./g,',');\n      return {valor:v,u,decimales:0,notacion:'científica',texto};\n    }\n    const f = x => (dec >= 0 ? redondea(x, dec).toFixed(dec) : String(Math.round(x / Math.pow(10, -dec)) * Math.pow(10, -dec)));\n    const texto = (f(valor) + ' ± ' + f(u)).replace(/\\./g, ',');\n    return {valor: dec >= 0 ? redondea(valor, dec) : +f(valor), u: dec >= 0 ? redondea(u, dec) : +f(u), decimales: Math.max(0, dec), texto};\n  }\n  /* Cifras significativas de un número tal como se escribió («0,00450» → 3). */\n  function cuentaCifras(texto) {\n    let s = String(texto).trim().replace(',', '.').replace(/^[+-]/, '');\n    const exp = /e/i.test(s);\n    if (exp) s = s.split(/e/i)[0];\n    if (!/^\\d*\\.?\\d*$/.test(s) || !/\\d/.test(s)) return {error: 'No es un número.'};\n    const tienePunto = s.includes('.');\n    let d = s.replace('.', '').replace(/^0+/, '');\n    if (!tienePunto && !exp) {\n      const sinCeros = d.replace(/0+$/, '');\n      return {cifras: sinCeros.length || 1, ambiguo: sinCeros.length !== d.length,\n        explicacion: sinCeros.length !== d.length ? 'Los ceros finales de un entero son ambiguos: escribe ' + (s.replace(/0+$/, '') || '0') + '·10ⁿ o pon el punto decimal para decir si cuentan.' : ''};\n    }\n    return {cifras: d.length || 1, ambiguo: false, explicacion: ''};\n  }\n  function aCifras(v, n) {\n    if (!Number.isFinite(v) || !Number.isInteger(n) || n<1 || n>100) return '—';\n    if (v === 0) return '0';\n    const d = Math.ceil(Math.log10(Math.abs(v)));\n    const p = n - d;\n    if(p>100 || p < -100 || Math.abs(v)>1e100)return v.toPrecision(n).replace('.',',');\n    return p >= 0 ? redondea(v, p).toFixed(p).replace('.', ',') : String(Math.round(v / Math.pow(10, -p)) * Math.pow(10, -p));\n  }\n\n  return {tCdf, tCuantil, betaInc, media, desviacion, replicas, grubbs, calibracion, ajusteLineal, prediccionLineal, inversionLineal, cartaControl, matrizCorrelacion, propaga, redondeaConIncertidumbre, cuentaCifras, aCifras};\n})();\n",
  "src/js/07-unidades.js": "/* ==== 07-unidades.js ==== */\n'use strict';\n/* ================= unidades y concentraciones =================\n   Conversión con análisis dimensional: cada unidad es un factor a SI y un\n   vector de dimensiones [L, M, T, I, Θ, N, J]. Se aceptan prefijos SI y\n   unidades compuestas («kJ/mol», «g·cm^-3», «m/s²»). Dos unidades solo se\n   convierten si tienen la misma dimensión; si no, se dice cuál difiere. La\n   temperatura con cero desplazado (°C, °F) solo se convierte sola; dentro de\n   una compuesta («J/(g·°C)») se pide K, que para diferencias es lo mismo.\n\n   Factores exactos por definición del SI o de la unidad (atm = 101 325 Pa,\n   cal termoquímica = 4,184 J, eV = 1,602 176 634·10⁻¹⁹ J, in = 0,0254 m). */\n\nconst Unidades = (() => {\n  const D = (L, M, T, I, Th, N, J) => [L || 0, M || 0, T || 0, I || 0, Th || 0, N || 0, J || 0];\n  const NOMBRES_DIM = ['longitud', 'masa', 'tiempo', 'corriente', 'temperatura', 'cantidad de sustancia', 'intensidad luminosa'];\n  const BASE = {\n    m: [1, D(1)], g: [1e-3, D(0, 1)], s: [1, D(0, 0, 1)], A: [1, D(0, 0, 0, 1)], K: [1, D(0, 0, 0, 0, 1)], mol: [1, D(0, 0, 0, 0, 0, 1)], cd: [1, D(0, 0, 0, 0, 0, 0, 1)],\n    L: [1e-3, D(3)], l: [1e-3, D(3)], Pa: [1, D(-1, 1, -2)], N: [1, D(1, 1, -2)], J: [1, D(2, 1, -2)], W: [1, D(2, 1, -3)], Hz: [1, D(0, 0, -1)],\n    C: [1, D(0, 0, 1, 1)], V: [1, D(2, 1, -3, -1)], Ω: [1, D(2, 1, -3, -2)], ohm: [1, D(2, 1, -3, -2)], S: [1, D(-2, -1, 3, 2)], F: [1, D(-2, -1, 4, 2)], T: [1, D(0, 1, -2, -1)],\n    M: [1e3, D(-3, 0, 0, 0, 0, 1)], eV: [1.602176634e-19, D(2, 1, -2)], Da: [1.66053906660e-27, D(0, 1)], u: [1.66053906660e-27, D(0, 1)],\n    bar: [1e5, D(-1, 1, -2)], cal: [4.184, D(2, 1, -2)], Å: [1e-10, D(1)], t: [1e3, D(0, 1)]\n  };\n  /* Unidades que no admiten prefijo (o cuyo símbolo chocaría con uno). */\n  const SUELTAS = {\n    min: [60, D(0, 0, 1)], h: [3600, D(0, 0, 1)], d: [86400, D(0, 0, 1)], año: [31557600, D(0, 0, 1)],\n    atm: [101325, D(-1, 1, -2)], Torr: [101325 / 760, D(-1, 1, -2)], torr: [101325 / 760, D(-1, 1, -2)], mmHg: [133.322387415, D(-1, 1, -2)],\n    psi: [6894.757293168361, D(-1, 1, -2)], in: [0.0254, D(1)], ft: [0.3048, D(1)], lb: [0.45359237, D(0, 1)], oz: [0.028349523125, D(0, 1)],\n    gal: [3.785411784e-3, D(3)], rpm: [1 / 60, D(0, 0, -1)], '%': [1e-2, D()], ppm: [1e-6, D()], ppb: [1e-9, D()], kWh: [3.6e6, D(2, 1, -2)],\n    '°C': [1, D(0, 0, 0, 0, 1), 273.15], '°F': [5 / 9, D(0, 0, 0, 0, 1), 459.67 * 5 / 9], degC: [1, D(0, 0, 0, 0, 1), 273.15], degF: [5 / 9, D(0, 0, 0, 0, 1), 459.67 * 5 / 9]\n  };\n  const PREFIJOS = {Y: 1e24, Z: 1e21, E: 1e18, P: 1e15, T: 1e12, G: 1e9, M: 1e6, k: 1e3, h: 1e2, da: 1e1, d: 1e-1, c: 1e-2, m: 1e-3, µ: 1e-6, μ: 1e-6, u: 1e-6, n: 1e-9, p: 1e-12, f: 1e-15, a: 1e-18};\n  const SUP = {'⁰': '0', '¹': '1', '²': '2', '³': '3', '⁴': '4', '⁵': '5', '⁶': '6', '⁷': '7', '⁸': '8', '⁹': '9', '⁻': '-'};\n\n  function simbolo(sim) {\n    if (Object.hasOwn(SUELTAS,sim)) return {f: SUELTAS[sim][0], d: SUELTAS[sim][1], cero: SUELTAS[sim][2] || 0};\n    if (Object.hasOwn(BASE,sim)) return {f: BASE[sim][0], d: BASE[sim][1], cero: 0};\n    for (const p of Object.keys(PREFIJOS).sort((a, b) => b.length - a.length)) {\n      if (sim.startsWith(p) && Object.hasOwn(BASE,sim.slice(p.length))) {\n        const b = BASE[sim.slice(p.length)];\n        return {f: PREFIJOS[p] * b[0], d: b[1], cero: 0};\n      }\n    }\n    return null;\n  }\n\n  /* «kJ/mol», «g·cm^-3», «mol/(L·s)» → {factor, dim, cero}. */\n  function lee(texto) {\n    if(String(texto || '').length>300)return {error:'La unidad supera 300 caracteres. Simplifica la expresión dimensional.'};\n    let s = String(texto || '').trim().replace(/[⁰¹²³⁴⁵⁶⁷⁸⁹⁻]+/g, m => '^' + [...m].map(c => SUP[c]).join(''));\n    if (!s || s === '1') return {factor: 1, dim: D(), cero: 0, simple: true};\n    s = s.replace(/\\s*[·*.]\\s*|\\s+/g, '·');\n    let i = 0;\n    const falla = msg => { throw new Error(msg); };\n    function termino(signo) {\n      let f = 1, d = D();\n      const mult = (u, e) => { f *= Math.pow(u.f, e); d = d.map((v, k) => v + u.d[k] * e); };\n      function factorUnidad(sgn) {\n        if (s[i] === '(') {\n          i++;\n          const sub = grupo();\n          if (s[i] !== ')') falla('Falta «)» en la unidad.');\n          i++;\n          let e = 1;\n          const m = /^\\^(-?\\d+)/.exec(s.slice(i));\n          if (m) { e = +m[1]; i += m[0].length; }\n          f *= Math.pow(sub.f, e * sgn); d = d.map((v, k) => v + sub.d[k] * e * sgn);\n          return;\n        }\n        const m = /^([A-Za-zµμÅΩ°%][A-Za-zµμÅΩ°%ñ]*)(\\^(-?\\d+))?/.exec(s.slice(i));\n        if (!m) falla('No entiendo la unidad cerca de «' + s.slice(i, i + 6) + '».');\n        const u = simbolo(m[1]);\n        if (!u) falla('Unidad desconocida «' + m[1] + '».');\n        if (u.cero && s !== m[0]) falla('«' + m[1] + '» solo se convierte sola; dentro de una unidad compuesta usa K para diferencias de temperatura.');\n        mult(u, (m[3] ? +m[3] : 1) * sgn);\n        i += m[0].length;\n      }\n      factorUnidad(signo);\n      while (s[i] === '·') { i++; factorUnidad(signo); }\n      return {f, d};\n    }\n    function grupo() {\n      let r = termino(1);\n      while (s[i] === '/') {\n        i++;\n        const q = termino(-1);\n        r = {f: r.f * q.f, d: r.d.map((v, k) => v + q.d[k])};\n      }\n      return r;\n    }\n    try {\n      const r = grupo();\n      if(!Number.isFinite(r.f) || r.f<=0 || r.d.some(x=>!Number.isFinite(x)))falla('El factor o exponente de la unidad no se puede representar. Simplifica las unidades.');\n      if (i < s.length) falla('Sobra «' + s.slice(i) + '» en la unidad.');\n      const sola = simbolo(s);\n      return {factor: r.f, dim: r.d, cero: sola ? sola.cero : 0, simple: !!sola};\n    } catch (e) {\n      return {error: e.message};\n    }\n  }\n  const dimTexto = d => d.map((e, k) => (e ? NOMBRES_DIM[k] + (e !== 1 ? '^' + e : '') : '')).filter(Boolean).join(' · ') || 'adimensional';\n\n  function convierte(valor, de, a) {\n    if (typeof valor!=='number' || !Number.isFinite(valor)) return {error: 'Escribe un valor.'};\n    const u1 = lee(de), u2 = lee(a);\n    if (u1.error) return {error: 'Origen: ' + u1.error};\n    if (u2.error) return {error: 'Destino: ' + u2.error};\n    if (u1.dim.some((e, k) => Math.abs(e - u2.dim[k]) > 1e-12))\n      return {error: 'No son la misma magnitud: «' + de + '» es ' + dimTexto(u1.dim) + ' y «' + a + '» es ' + dimTexto(u2.dim) + '.'};\n    const si = valor * u1.factor + u1.cero;\n    const r = (si - u2.cero) / u2.factor;\n    if(!Number.isFinite(si) || !Number.isFinite(r) || !Number.isFinite(u1.factor/u2.factor) || (valor!==0 && si===0 && u1.cero===0))return {error:'El resultado no se puede representar; usa una escala o unidades más próximas.'};\n    return {valor: r, factor: u1.factor / u2.factor, explicacion: numero(valor) + ' ' + de + ' = ' + numero(r, {cifras: 6}) + ' ' + a + '.'};\n  }\n\n  /* ---------- concentraciones ----------\n     Todo pasa por la fracción másica w del soluto en la disolución, con la\n     masa molar del soluto M (g/mol), la densidad de la disolución ρ (g/mL),\n     la del disolvente puro para la fracción molar (18,015 g/mol del agua por\n     defecto) y los equivalentes por mol z para la normalidad. */\n  const ENTRADAS = {\n    molaridad: 'Molaridad (mol/L)', molalidad: 'Molalidad (mol/kg)', pmm: '% m/m', pmv: '% m/v (g/100 mL)', ppm: 'ppm m/m (mg/kg)',\n    mgL: 'mg/L', normalidad: 'Normalidad (eq/L)', fraccionMolar: 'Fracción molar'\n  };\n  function concentraciones(r) {\n    const M = +r.masaMolar, rho = +r.densidad, z = r.equivalentes > 0 ? +r.equivalentes : 1, Ms = r.masaMolarDisolvente > 0 ? +r.masaMolarDisolvente : 18.015, v = +r.valor;\n    if (!(M > 0)) return {error: 'Falta la masa molar del soluto.'};\n    if (!(rho > 0)) return {error: 'Falta la densidad de la disolución (g/mL); para disoluciones acuosas diluidas es cercana a 1.'};\n    if (!(v >= 0) || !isFinite(v)) return {error: 'Escribe el valor de partida.'};\n    let w;\n    switch (r.desde) {\n      case 'molaridad': w = v * M / (1000 * rho); break;\n      case 'molalidad': w = v * M / (1000 + v * M); break;\n      case 'pmm': w = v / 100; break;\n      case 'pmv': w = v / (100 * rho); break;\n      case 'ppm': w = v * 1e-6; break;\n      case 'mgL': w = v / (1e6 * rho); break;\n      case 'normalidad': w = (v / z) * M / (1000 * rho); break;\n      case 'fraccionMolar': w = v * M / (v * M + (1 - v) * Ms); break;\n      default: return {error: 'Tipo de concentración desconocido.'};\n    }\n    if (!(w >= 0 && w <= 1)) return {error: 'Con esa densidad y masa molar, el valor da más soluto que disolución: revisa los datos.'};\n    const c = w * 1000 * rho / M;\n    const out = {w, molaridad: c, molalidad: w < 1 ? w * 1000 / ((1 - w) * M) : Infinity, pmm: w * 100, pmv: w * rho * 100, ppm: w * 1e6, mgL: w * rho * 1e6,\n      normalidad: c * z, fraccionMolar: (w / M) / (w / M + (1 - w) / Ms)};\n    out.explicacion = 'Con M = ' + numero(M, {dec: 2}) + ' g/mol y ρ = ' + numero(rho) + ' g/mL, la disolución tiene ' + numero(out.pmm, {cifras: 4}) + ' % en masa de soluto, que es '\n      + numero(c, {cifras: 4}) + ' mol/L y ' + numero(out.molalidad, {cifras: 4}) + ' mol/kg de disolvente.';\n    return out;\n  }\n\n  return {lee, convierte, concentraciones, ENTRADAS, dimTexto};\n})();\n",
  "src/js/08-quimica.js": "/* ==== 08-quimica.js ==== */\n'use strict';\n/* ================= química general =================\n   Balanceo de ecuaciones (espacio nulo de la matriz de composición con\n   fracciones exactas: nada de redondear coeficientes), reactivo limitante,\n   gases ideal y de van der Waals, tampones con corrección de temperatura\n   (van't Hoff) y de fuerza iónica (Davies), decaimiento radiactivo,\n   atenuación por capas hemirreductoras y centrífuga (rpm ↔ g). */\n\nconst Quimica = (() => {\n  /* ---------- fracciones exactas con BigInt ---------- */\n  const abs = a => (a < 0n ? -a : a);\n  const mcd = (a, b) => { a = abs(a); b = abs(b); while (b) [a, b] = [b, a % b]; return a; };\n  const fr = (n, d = 1n) => { if (d < 0n) { n = -n; d = -d; } const g = mcd(n, d) || 1n; return [n / g, d / g]; };\n  const resta = (a, b) => fr(a[0] * b[1] - b[0] * a[1], a[1] * b[1]);\n  const mul = (a, b) => fr(a[0] * b[0], a[1] * b[1]);\n  const div = (a, b) => fr(a[0] * b[1], a[1] * b[0]);\n  const esCero = a => a[0] === 0n;\n\n  /* «Zn(NO3)2^2+», «SO4{2-}», «e-» → {formula, carga}. */\n  function especie(texto) {\n    let s = texto.trim(), carga = 0;\n    if (/^e[-−]$/.test(s)) return {formula: 'e', comp: {}, carga: -1, texto: s};\n    const m = /(?:\\^|\\{)(\\d*)([+-])\\}?$/.exec(s);\n    if (m) { carga = (m[1] ? +m[1] : 1) * (m[2] === '+' ? 1 : -1); s = s.slice(0, m.index); }\n    if (s === 'e') return {formula: 'e', comp: {}, carga: -1, texto};\n    const coef = /^(\\d+)\\s*(?=[A-Z(\\[])/.exec(s);\n    if (coef) s = s.slice(coef[0].length);\n    const f = Formula.lee(s);\n    if (f.error) throw new Error('«' + texto.trim() + '»: ' + f.error);\n    return {formula: s, comp: f.composicion, carga, texto: texto.trim(), masaMolar: f.masaMolar};\n  }\n\n  function balancea(ecuacion) {\n    const partes = String(ecuacion || '').split(/\\s*(?:->|→|=|⟶|⇌|<=>)\\s*/);\n    if (partes.length !== 2) return {error: 'Escribe la ecuación con una flecha: «Fe + O2 -> Fe2O3».'};\n    let reactivos, productos;\n    try {\n      const lado = t => t.split(/\\s+\\+\\s+/).filter(x => x.trim()).map(especie);\n      reactivos = lado(partes[0]); productos = lado(partes[1]);\n    } catch (e) { return {error: e.message}; }\n    if (!reactivos.length || !productos.length) return {error: 'Faltan reactivos o productos. Separa las especies con « + » (con espacios).'};\n    const esp = reactivos.concat(productos);\n    const elementos = [...new Set(esp.flatMap(e => Object.keys(e.comp)))];\n    for (const e of elementos) {\n      const enR = reactivos.some(x => x.comp[e]), enP = productos.some(x => x.comp[e]);\n      if (enR !== enP) return {error: 'El elemento ' + e + ' solo aparece en ' + (enR ? 'los reactivos' : 'los productos') + ': la ecuación no se puede balancear.'};\n    }\n    let filas;\n    try { filas = elementos.map(el => esp.map((x, j) => {\n      const v = x.comp[el] || 0, k = Math.round(v * 1000);\n      if (Math.abs(v * 1000 - k) > 1e-6) throw new Error('Subíndice no admitido');\n      const f = fr(BigInt(k), 1000n);\n      return j < reactivos.length ? f : fr(-f[0], f[1]);\n    })); } catch (e) { return {error: 'Los subíndices admiten hasta tres decimales.'}; }\n    if (esp.some(x => x.carga)) filas.push(esp.map((x, j) => fr(BigInt(j < reactivos.length ? x.carga : -x.carga))));\n    /* Escalonada reducida sobre fracciones. */\n    const n = esp.length, A = filas.map(f => f.slice());\n    const pivotes = [];\n    let r = 0;\n    for (let c = 0; c < n && r < A.length; c++) {\n      let p = r;\n      while (p < A.length && esCero(A[p][c])) p++;\n      if (p === A.length) continue;\n      [A[r], A[p]] = [A[p], A[r]];\n      const piv = A[r][c];\n      A[r] = A[r].map(v => div(v, piv));\n      for (let i = 0; i < A.length; i++) if (i !== r && !esCero(A[i][c])) { const f = A[i][c]; A[i] = A[i].map((v, k) => resta(v, mul(f, A[r][k]))); }\n      pivotes.push(c);\n      r++;\n    }\n    const libres = [...Array(n).keys()].filter(c => !pivotes.includes(c));\n    if (libres.length !== 1) return {error: libres.length === 0 ? 'La ecuación no tiene solución con coeficientes positivos.' : 'La ecuación admite más de un balanceo (' + libres.length + ' grados de libertad): son varias reacciones independientes; escríbelas por separado.'};\n    const libre = libres[0];\n    const sol = Array(n).fill(null);\n    sol[libre] = fr(1n);\n    pivotes.forEach((c, i) => { sol[c] = fr(-A[i][libre][0], A[i][libre][1]); });\n    const mcm = sol.reduce((m, v) => m * v[1] / mcd(m, v[1]), 1n);\n    let enteros = sol.map(v => v[0] * (mcm / v[1]));\n    if (enteros.every(v => v <= 0n)) enteros = enteros.map(v => -v);\n    if (enteros.some(v => v <= 0n)) return {error: 'No hay balanceo con todos los coeficientes positivos: revisa qué es reactivo y qué es producto.'};\n    const g = enteros.reduce((a, b) => mcd(a, b));\n    enteros = enteros.map(v => Number(v / g));\n    const txt = (lista, off) => lista.map((x, i) => (enteros[off + i] > 1 ? enteros[off + i] + ' ' : '') + x.texto).join(' + ');\n    const texto = txt(reactivos, 0) + ' → ' + txt(productos, reactivos.length);\n    return {reactivos: reactivos.map((x, i) => Object.assign({}, x, {coef: enteros[i]})), productos: productos.map((x, i) => Object.assign({}, x, {coef: enteros[reactivos.length + i]})),\n      texto, explicacion: 'Balanceada: ' + texto + '. Comprueba que las especies son las que de verdad reaccionan: el balanceo solo garantiza que se conservan átomos y carga.'};\n  }\n\n  /* ---------- reactivo limitante ----------\n     cantidades: [{moles}] o [{masa}] por reactivo, en el orden de la\n     ecuación. El avance máximo de cada uno es n/ν; el menor manda. */\n  function limitante(ecuacion, cantidades) {\n    const b = balancea(ecuacion);\n    if (b.error) return b;\n    const filas = b.reactivos.map((r, i) => {\n      const q = (cantidades || [])[i] || {};\n      const n = q.moles != null && q.moles !== '' ? +q.moles : q.masa != null && q.masa !== '' && r.masaMolar ? +q.masa / r.masaMolar : null;\n      return {especie: r.texto, coef: r.coef, moles: n, avance: n != null ? n / r.coef : null, masaMolar: r.masaMolar};\n    });\n    if (filas.some(f => f.moles == null || !(f.moles >= 0))) return {error: 'Da la masa o los moles de cada reactivo.', balanceo: b};\n    const xi = Math.min(...filas.map(f => f.avance));\n    const lim = filas.find(f => f.avance === xi);\n    filas.forEach(f => { f.sobrante = f.moles - f.coef * xi; f.sobranteMasa = f.masaMolar ? f.sobrante * f.masaMolar : null; });\n    const productos = b.productos.map(p => ({especie: p.texto, moles: p.coef * xi, masa: p.masaMolar ? p.coef * xi * p.masaMolar : null}));\n    return {balanceo: b, reactivos: filas, productos, avance: xi, limitante: lim.especie,\n      explicacion: 'El reactivo limitante es ' + lim.especie + ' (avance máximo ' + numero(xi * 1000) + ' mmol). ' + productos.filter(p => p.masa != null).map(p => 'Se forman como máximo ' + numero(p.masa) + ' g de ' + p.especie).join('; ') + '.'};\n  }\n\n  /* ---------- gases ---------- */\n  const R = 0.08314462618; // L·bar/(mol·K)\n  function gasIdeal(r) {\n    const faltan = ['P', 'V', 'n', 'T'].filter(k => r[k] == null || r[k] === '' || !isFinite(r[k]));\n    if (faltan.length !== 1) return {error: 'Da tres de las cuatro magnitudes (P en bar, V en L, n en mol, T en K) y deja vacía la que quieres calcular.'};\n    const k = faltan[0], P = +r.P, V = +r.V, n = +r.n, T = +r.T;\n    const val = {P: n * R * T / V, V: n * R * T / P, n: P * V / (R * T), T: P * V / (n * R)}[k];\n    const u = {P: 'bar', V: 'L', n: 'mol', T: 'K'}[k];\n    return {incognita: k, valor: val, explicacion: 'Con PV = nRT (R = 0,083145 L·bar/(mol·K)), ' + k + ' = ' + numero(val) + ' ' + u + '.'};\n  }\n  /* van der Waals: P = nRT/(V − nb) − a n²/V². V se obtiene por Newton desde el ideal. */\n  function vanDerWaals(r) {\n    const a = +r.a, b = +r.b, n = +r.n, T = +r.T;\n    if (!(a >= 0 && b >= 0 && n > 0 && T > 0)) return {error: 'Faltan a, b, n o T.'};\n    if (r.V != null && r.V !== '' && isFinite(r.V)) {\n      const V = +r.V;\n      if (V <= n * b) return {error: 'El volumen es menor que el covolumen nb: no tiene sentido físico.'};\n      const P = n * R * T / (V - n * b) - a * n * n / (V * V), Pid = n * R * T / V;\n      return {P, Pideal: Pid, Z: P * V / (n * R * T),\n        explicacion: 'P = ' + numero(P) + ' bar (ideal: ' + numero(Pid) + ' bar; Z = ' + numero(P * V / (n * R * T), {dec: 3}) + '). ' + (Math.abs(P - Pid) / Pid > 0.05 ? 'A esta densidad el gas se aparta más de un 5 % del ideal.' : 'El comportamiento es casi ideal.')};\n    }\n    if (!(r.P > 0)) return {error: 'Da V para calcular P, o P para calcular V.'};\n    const P = +r.P;\n    let V = n * R * T / P;\n    for (let k = 0; k < 100; k++) {\n      const f = (P + a * n * n / (V * V)) * (V - n * b) - n * R * T;\n      const df = (P + a * n * n / (V * V)) - 2 * a * n * n / (V * V * V) * (V - n * b);\n      const nuevo = V - f / df;\n      if (!isFinite(nuevo) || nuevo <= n * b) break;\n      if (Math.abs(nuevo - V) < 1e-12 * V) { V = nuevo; break; }\n      V = nuevo;\n    }\n    return {V, Videal: n * R * T / P, Z: P * V / (n * R * T),\n      explicacion: 'V = ' + numero(V) + ' L (ideal: ' + numero(n * R * T / P) + ' L; Z = ' + numero(P * V / (n * R * T), {dec: 3}) + '). Cerca de la condensación la ecuación de van der Waals es solo cualitativa.'};\n  }\n\n  /* ---------- tampones ----------\n     pKa(T) por van't Hoff con ΔH° constante; pKa aparente por Davies:\n     pKa' = pKa + A(T)·(√I/(1+√I) − 0,3·I)·(2·z_HA − 1). La fuerza iónica\n     se estima de las especies del tampón y su contraión monovalente, iterando. */\n  function aDavies(tC) {\n    const eps = 87.74 - 0.40008 * tC + 9.398e-4 * tC * tC - 1.41e-6 * tC * tC * tC;\n    return 1.82483e6 / Math.pow(eps * (tC + 273.15), 1.5);\n  }\n  function pKaAparente(t, tC, I) {\n    const T = tC + 273.15, T0 = 298.15, Rj = 8.314462618;\n    const pKaT = t.pKa + (t.dH * 1000) / (Math.LN10 * Rj) * (1 / T - 1 / T0);\n    const F = Math.sqrt(I) / (1 + Math.sqrt(I)) - 0.3 * I;\n    return {pKaT, pKa: pKaT + aDavies(tC) * F * (2 * t.zHA - 1)};\n  }\n  function tampon(r) {\n    const t = r.tampon && typeof r.tampon === 'object' ? r.tampon : DATOS.tampones.tampones[r.tampon];\n    if (!t) return {error: 'Elige un tampón o da su pKa.'};\n    const pH = +r.pH, C = +r.concentracion, V = +r.volumen, tC = r.temperatura == null || r.temperatura === '' ? 25 : +r.temperatura;\n    if (!isFinite(pH) || !(C > 0) || !(V > 0)) return {error: 'Faltan el pH, la concentración total o el volumen.'};\n    let I = r.fuerzaIonica > 0 ? +r.fuerzaIonica : C, p, f;\n    const fija = r.fuerzaIonica > 0;\n    for (let k = 0; k < 50; k++) {\n      p = pKaAparente(t, tC, I);\n      f = 1 / (1 + Math.pow(10, p.pKa - pH));\n      if (fija) break;\n      const cHA = C * (1 - f), cA = C * f, z = t.zHA;\n      const contra = Math.abs(cHA * z + cA * (z - 1));\n      const nuevo = 0.5 * (cHA * z * z + cA * (z - 1) * (z - 1) + contra);\n      if (Math.abs(nuevo - I) < 1e-10) { I = nuevo; break; }\n      I = nuevo;\n    }\n    const n = C * V / 1000, nA = n * f, nHA = n - nA;\n    const beta = Math.LN10 * C * f * (1 - f);\n    const fuera = Math.abs(pH - p.pKa) > 1;\n    return {pKa25: t.pKa, pKaT: p.pKaT, pKaAparente: p.pKa, fuerzaIonica: I, fraccionBase: f, molesAcido: nHA, molesBase: nA, molesTotal: n, capacidad: beta,\n      conBaseFuerte: nA, conAcidoFuerte: nHA,\n      explicacion: 'A ' + numero(tC) + ' °C y I = ' + numero(I, {cifras: 2}) + ' mol/L, el pKa aparente es ' + numero(p.pKa, {dec: 2}) + ' (pKa termodinámico a 25 °C: ' + numero(t.pKa, {dec: 3}) + '). Para pH '\n        + numero(pH, {dec: 2}) + ' hacen falta ' + numero(nHA * 1000) + ' mmol de la forma ácida y ' + numero(nA * 1000) + ' mmol de la básica. Desde la forma ácida pura, añade '\n        + numero(nA * 1000) + ' mmol de base fuerte; desde la básica, ' + numero(nHA * 1000) + ' mmol de ácido fuerte. Ajusta siempre el pH final con el pH-metro a la temperatura de uso.'\n        + (fuera ? ' Atención: el pH está a más de una unidad del pKa y la capacidad amortiguadora es baja.' : '')};\n  }\n\n  /* ---------- radiactividad ---------- */\n  const UNID_T = {s: 1, min: 60, h: 3600, d: 86400, año: 31557600};\n  function decaimiento(r) {\n    const A0 = +r.actividad, thalf = +r.semivida * (UNID_T[r.unidadSemivida] || 1), t = +r.tiempo * (UNID_T[r.unidadTiempo] || 1);\n    if (!(A0 > 0) || !(thalf > 0) || !(t >= 0)) return {error: 'Faltan la actividad inicial, la semivida o el tiempo.'};\n    const f = Math.pow(2, -t / thalf);\n    return {actividad: A0 * f, fraccion: f, semividas: t / thalf,\n      explicacion: 'Tras ' + numero(t / thalf, {dec: 2}) + ' semividas queda el ' + numero(f * 100, {cifras: 3}) + ' %: ' + numero(A0 * f) + ' en las mismas unidades que la actividad inicial.'};\n  }\n  /* Atenuación con la capa hemirreductora (HVL) que da tu fuente para esa\n     energía y ese material: la app no supone ningún valor. */\n  function atenuacion(r) {\n    const hvl = +r.hvl, x = +r.espesor;\n    if (!(hvl > 0) || !(x >= 0)) return {error: 'Da la capa hemirreductora (de la fuente de datos de tu radioisótopo y material) y el espesor.'};\n    const f = Math.pow(2, -x / hvl);\n    return {fraccion: f, explicacion: numero(x) + ' de blindaje son ' + numero(x / hvl, {dec: 2}) + ' capas hemirreductoras: pasa el ' + numero(f * 100, {cifras: 3}) + ' % de la radiación. Es una estimación de haz estrecho: el factor de acumulación la hace optimista.'};\n  }\n\n  /* ---------- centrífuga ----------\n     RCF = r·ω²/g con r en cm: 1,11824·10⁻⁵ · r · rpm². */\n  const K_RCF = 0.01 * Math.pow(2 * Math.PI / 60, 2) / 9.80665;\n  function centrifuga(r) {\n    const rad = +r.radio;\n    if (!(rad > 0)) return {error: 'Falta el radio del rotor (cm), medido del eje al fondo del tubo.'};\n    if (r.rpm > 0) { const g = K_RCF * rad * r.rpm * r.rpm; return {rcf: g, explicacion: numero(r.rpm) + ' rpm con r = ' + numero(rad) + ' cm son ' + numero(g, {cifras: 4}) + ' × g.'}; }\n    if (r.rcf > 0) { const rpm = Math.sqrt(r.rcf / (K_RCF * rad)); return {rpm, explicacion: 'Para ' + numero(r.rcf) + ' × g con r = ' + numero(rad) + ' cm hacen falta ' + numero(rpm, {cifras: 4}) + ' rpm.'}; }\n    return {error: 'Da las rpm o la fuerza en × g.'};\n  }\n\n  return {balancea, limitante, gasIdeal, vanDerWaals, tampon, pKaAparente, aDavies, decaimiento, atenuacion, centrifuga, R, K_RCF};\n})();\n",
  "src/js/09-biologia.js": "/* ==== 09-biologia.js ==== */\n'use strict';\n/* ================= ciencias de la vida =================\n   Diluciones seriadas y mapa de placa, conteo celular con cámara de\n   Neubauer, mezcla maestra de PCR, ácidos nucleicos por absorbancia y\n   recetas de medios o disoluciones madre. Todo es aritmética de laboratorio\n   con sus supuestos a la vista en la explicación. */\n\nconst Biologia = (() => {\n  /* ---------- diluciones seriadas ----------\n     Cada tubo lleva V_final de diluyente; se transfiere V_t = V_final/(f − 1)\n     al siguiente, así todos quedan con V_final (del último se descarta V_t). */\n  function dilucionesSeriadas(r) {\n    const c0 = +r.concentracion, f = +r.factor, n = Math.round(+r.pasos), vf = +r.volumen;\n    if (!(c0 > 0) || !(f > 1) || !(n >= 1 && n <= 24) || !(vf > 0)) return {error: 'Da la concentración inicial, un factor mayor que 1, entre 1 y 24 pasos y el volumen final por tubo.'};\n    const vt = vf / (f - 1), u = r.unidad ? ' ' + r.unidad : '';\n    const tubos = [...Array(n)].map((_, i) => ({tubo: i + 1, concentracion: c0 / Math.pow(f, i + 1), diluyente: vf, transferencia: vt}));\n    return {tubos, transferencia: vt, diluyente: vf,\n      explicacion: 'Pon ' + numero(vf) + u + ' de diluyente en cada uno de los ' + n + ' tubos y pasa ' + numero(vt) + u + ' de cada tubo al siguiente, mezclando bien. El último tubo queda a ' + numero(tubos[n - 1].concentracion)\n        + ' (factor total ' + numero(Math.pow(f, n)) + '); descarta ' + numero(vt) + u + ' del último para que todos tengan el mismo volumen.'};\n  }\n\n  /* ---------- mapa de placa ----------\n     Blancos, patrones y muestras con sus réplicas, en orden por filas. */\n  const FORMATOS = {96: [8, 12], 384: [16, 24], 48: [6, 8], 24: [4, 6]};\n  function placa(r) {\n    const [filas, cols] = FORMATOS[r.formato] || FORMATOS[96];\n    const rep = Math.max(1, Math.round(+r.replicas || 1));\n    const items = [];\n    for (let i = 0; i < (+r.blancos || 0); i++) items.push({tipo: 'blanco', etiqueta: 'B' + (i + 1)});\n    for (let i = 0; i < (+r.patrones || 0); i++) for (let k = 0; k < rep; k++) items.push({tipo: 'patron', etiqueta: 'S' + (i + 1)});\n    for (let i = 0; i < (+r.muestras || 0); i++) for (let k = 0; k < rep; k++) items.push({tipo: 'muestra', etiqueta: 'M' + (i + 1)});\n    const cap = filas * cols;\n    if (items.length > cap) return {error: 'Hacen falta ' + items.length + ' pozos y la placa tiene ' + cap + '.'};\n    const letra = i => String.fromCharCode(65 + i);\n    const pozos = [...Array(filas)].map((_, f) => [...Array(cols)].map((__, c) => {\n      const it = items[f * cols + c];\n      return Object.assign({pozo: letra(f) + (c + 1)}, it || {tipo: 'vacio', etiqueta: ''});\n    }));\n    return {filas, columnas: cols, pozos, usados: items.length,\n      explicacion: items.length + ' de ' + cap + ' pozos: ' + (+r.blancos || 0) + ' blancos, ' + (+r.patrones || 0) + ' patrones y ' + (+r.muestras || 0) + ' muestras, con ' + rep + (rep === 1 ? ' réplica' : ' réplicas')\n        + '. Las réplicas quedan contiguas; si temes efecto de borde, deja libres la primera y la última fila.'};\n  }\n\n  /* ---------- conteo celular (cámara de Neubauer) ----------\n     Cada cuadro grande tiene 1 mm² × 0,1 mm = 0,1 µL: células/mL = media por\n     cuadro × dilución × 10⁴. La viabilidad sale de vivas/(vivas + muertas). */\n  function conteoCelular(r) {\n    const cuadros = (Array.isArray(r.conteos) ? r.conteos : []).map(Number).filter(v => isFinite(v) && v >= 0);\n    const dil = +r.dilucion > 0 ? +r.dilucion : 1;\n    if (!cuadros.length) return {error: 'Escribe el número de células vivas de cada cuadro contado.'};\n    const media = cuadros.reduce((a, b) => a + b, 0) / cuadros.length;\n    const conc = media * dil * 1e4;\n    const muertas = +r.muertas >= 0 ? +r.muertas : null;\n    const vivasTot = cuadros.reduce((a, b) => a + b, 0);\n    const viab = muertas != null && vivasTot + muertas > 0 ? vivasTot / (vivasTot + muertas) * 100 : null;\n    const out = {media, concentracion: conc, viabilidad: viab};\n    let siembra = '';\n    if (r.celulasDeseadas > 0 && r.volumenFinal > 0) {\n      const vSusp = r.celulasDeseadas / conc * 1000; // µL\n      out.volumenSuspension = vSusp;\n      out.volumenMedio = r.volumenFinal * 1000 - vSusp;\n      siembra = out.volumenMedio < 0 ? ' La suspensión está demasiado diluida para ese volumen final: concentra las células.'\n        : ' Para ' + numero(r.celulasDeseadas) + ' células en ' + numero(r.volumenFinal) + ' mL, toma ' + numero(vSusp) + ' µL de suspensión y completa con ' + numero(out.volumenMedio) + ' µL de medio.';\n    }\n    out.explicacion = 'Media de ' + numero(media, {cifras: 3}) + ' células por cuadro con dilución ' + numero(dil) + ': ' + numero(conc, {cifras: 3}) + ' células/mL'\n      + (viab != null ? ', viabilidad ' + numero(viab, {dec: 1}) + ' %' : '') + '.' + (media < 20 ? ' Con menos de 20 células por cuadro el error de conteo supera el 20 %: cuenta más cuadros o concentra.' : '') + siembra;\n    return out;\n  }\n\n  /* ---------- mezcla maestra de PCR ----------\n     Cada componente con su volumen por reacción o con stock y concentración\n     final (misma unidad): V = c_final/c_stock · V_reacción. El agua completa. */\n  function mezclaPCR(r) {\n    const vr = +r.volumenReaccion, n = Math.round(+r.reacciones), ex = r.exceso == null || r.exceso === '' ? 10 : +r.exceso;\n    if (!(vr > 0) || !(n >= 1)) return {error: 'Da el volumen por reacción y el número de reacciones.'};\n    const factor = n * (1 + ex / 100);\n    const comps = (r.componentes || []).map(c => {\n      let v = c.volumen > 0 ? +c.volumen : null;\n      if (v == null && c.stock > 0 && c.final >= 0) v = c.final / c.stock * vr;\n      return {nombre: c.nombre, porReaccion: v, total: v != null ? v * factor : null};\n    });\n    if (comps.some(c => c.porReaccion == null)) return {error: 'Cada componente necesita su volumen por reacción, o su stock y su concentración final.'};\n    const suma = comps.reduce((a, c) => a + c.porReaccion, 0) + (+r.volumenMolde > 0 ? +r.volumenMolde : 0);\n    const agua = vr - suma;\n    if (agua < -1e-9) return {error: 'Los componentes suman ' + numero(suma) + ' µL y la reacción es de ' + numero(vr) + ' µL: no cabe.'};\n    comps.push({nombre: 'Agua libre de nucleasas', porReaccion: agua, total: agua * factor});\n    return {componentes: comps, factor, porTubo: vr - (+r.volumenMolde > 0 ? +r.volumenMolde : 0),\n      explicacion: 'Mezcla para ' + n + ' reacciones con ' + numero(ex) + ' % de exceso (×' + numero(factor, {dec: 2}) + '). Reparte ' + numero(vr - (+r.volumenMolde > 0 ? +r.volumenMolde : 0)) + ' µL por tubo'\n        + (+r.volumenMolde > 0 ? ' y añade ' + numero(+r.volumenMolde) + ' µL de molde a cada uno.' : '.')};\n  }\n\n  /* ---------- ácidos nucleicos ----------\n     Concentración = A260 × factor × dilución (dsDNA 50, ssDNA 33, RNA 40\n     µg/mL por unidad de absorbancia, paso de 1 cm). Masa molar según NEB:\n     dsDNA = pb·617,96 + 36,04; ssDNA = nt·308,97 + 18,02; RNA = nt·320,5 + 159,0. */\n  const FACTOR = {dsDNA: 50, ssDNA: 33, RNA: 40};\n  const MASA = {dsDNA: l => l * 617.96 + 36.04, ssDNA: l => l * 308.97 + 18.02, RNA: l => l * 320.5 + 159.0};\n  function acidosNucleicos(r) {\n    const tipo = FACTOR[r.tipo] ? r.tipo : 'dsDNA';\n    const out = {tipo};\n    const partes = [];\n    if (r.a260 != null && r.a260 !== '' && isFinite(r.a260)) {\n      const dil = +r.dilucion > 0 ? +r.dilucion : 1;\n      out.concentracion = +r.a260 * FACTOR[tipo] * dil;\n      partes.push('Concentración: ' + numero(out.concentracion, {cifras: 3}) + ' ng/µL (A260 × ' + FACTOR[tipo] + ' × ' + numero(dil) + ').');\n      if (+r.a260 < 0.1 || +r.a260 > 1.5) partes.push('A260 fuera de 0,1–1,5: la lectura pierde exactitud; diluye o concentra.');\n      if (r.a280 > 0) { out.r260280 = r.a260 / r.a280; partes.push('A260/A280 = ' + numero(out.r260280, {dec: 2}) + (tipo === 'RNA' ? ' (≈ 2,0 en ARN puro)' : ' (≈ 1,8 en ADN puro)') + (out.r260280 < (tipo === 'RNA' ? 1.9 : 1.7) ? ': posible contaminación con proteína o fenol.' : '.')); }\n      if (r.a230 > 0) { out.r260230 = r.a260 / r.a230; partes.push('A260/A230 = ' + numero(out.r260230, {dec: 2}) + (out.r260230 < 1.8 ? ': posible arrastre de sales, guanidina o carbohidratos.' : '.')); }\n    }\n    if (r.longitud > 0) {\n      out.masaMolar = MASA[tipo](+r.longitud);\n      if (r.masa > 0) {\n        out.pmol = r.masa / out.masaMolar * 1000;\n        out.copias = out.pmol * 1e-12 * 6.02214076e23;\n        partes.push(numero(+r.masa) + ' ng de ' + tipo + ' de ' + numero(+r.longitud) + (tipo === 'dsDNA' ? ' pb' : ' nt') + ' son ' + numero(out.pmol, {cifras: 3}) + ' pmol (' + numero(out.copias, {cifras: 3}) + ' copias; M = ' + numero(out.masaMolar, {cifras: 5}) + ' g/mol).');\n      }\n    }\n    if (!partes.length) return {error: 'Da la A260 o la longitud y la masa.'};\n    out.explicacion = partes.join(' ');\n    return out;\n  }\n\n  /* ---------- recetas de medios y disoluciones madre ----------\n     Por componente: concentración final en M, mM, g/L o % m/v, y una masa\n     molar o un stock. Con stock se toma un volumen; sin él, se pesa. */\n  function receta(r) {\n    const V = +r.volumen; // mL\n    if (!(V > 0)) return {error: 'Da el volumen final (mL).'};\n    const filas = (r.componentes || []).map(c => {\n      const cf = +c.concentracion, u = c.unidad;\n      if (!(cf >= 0) || !u) return {nombre: c.nombre, error: 'Falta la concentración final.'};\n      if (c.stock > 0) {\n        if (u === 'x') return {nombre: c.nombre, volumen: cf / c.stock * V, tipo: 'volumen'};\n        return {nombre: c.nombre, volumen: cf / c.stock * V, tipo: 'volumen'};\n      }\n      if (u === 'g/L') return {nombre: c.nombre, masa: cf * V / 1000, tipo: 'masa'};\n      if (u === '% m/v') return {nombre: c.nombre, masa: cf / 100 * V, tipo: 'masa'};\n      const M = c.masaMolar > 0 ? +c.masaMolar : (c.formula ? Formula.masaMolar(c.formula) : NaN);\n      if (!(M > 0)) return {nombre: c.nombre, error: 'Falta la fórmula o la masa molar para pasar de ' + u + ' a gramos.'};\n      const molar = u === 'M' ? cf : u === 'mM' ? cf / 1000 : u === 'µM' ? cf / 1e6 : NaN;\n      if (!isFinite(molar)) return {nombre: c.nombre, error: 'Con unidad «' + u + '» hace falta un stock.'};\n      return {nombre: c.nombre, masa: molar * V / 1000 * M, tipo: 'masa'};\n    });\n    const volStocks = filas.filter(f => f.tipo === 'volumen').reduce((a, f) => a + f.volumen, 0);\n    return {componentes: filas, agua: V - volStocks,\n      explicacion: 'Para ' + numero(V) + ' mL: pesa los sólidos, añade los stocks y completa con agua hasta ' + numero(V) + ' mL (unos ' + numero(V - volStocks) + ' mL). '\n        + (filas.some(f => f.error) ? 'Hay componentes sin datos suficientes.' : 'Ajusta el pH antes de enrasar si la receta lo pide.')};\n  }\n\n  return {dilucionesSeriadas, placa, conteoCelular, mezclaPCR, acidosNucleicos, receta, FORMATOS};\n})();\n",
  "src/js/10-seguridad.js": "/* ==== 10-seguridad.js ==== */\n'use strict';\n/* ================= seguridad, residuos y costo =================\n   Los códigos H/EUH y P de cada reactivo los escribes tú desde su ficha de\n   datos de seguridad (FDS): la app no clasifica sustancias. Con esos códigos\n   pone el texto oficial, deduce los pictogramas y la clase de peligro\n   (comburente, inflamable, reactivo con agua…) y, con las clases que añadas\n   a mano (ácido, base, reductor), avisa de incompatibilidades dentro del\n   mismo protocolo. También sugiere la categoría de residuo desde la fórmula\n   (solo sugiere: la decide tu servicio de gestión de residuos) y suma el\n   costo del lote con el precio de cada reactivo. */\n\nconst Seguridad = (() => {\n  const G = DATOS.ghs;\n  const CLASES = {\n    acido: 'Ácido', base: 'Base', oxidante: 'Comburente u oxidante', reductor: 'Reductor', inflamable: 'Inflamable',\n    reactivoAgua: 'Reacciona con el agua', gasConAcido: 'Libera gases tóxicos con ácidos', peroxidable: 'Forma peróxidos', piroforico: 'Pirofórico'\n  };\n  const DE_H = {\n    oxidante: ['H270', 'H271', 'H272'], inflamable: ['H220', 'H221', 'H222', 'H223', 'H224', 'H225', 'H226', 'H228', 'H242', 'H250', 'H251', 'H252'],\n    reactivoAgua: ['H260', 'H261', 'EUH014', 'EUH029'], gasConAcido: ['EUH031', 'EUH032'], peroxidable: ['EUH019'], piroforico: ['H250']\n  };\n  const normalizaCodigo = c => String(c || '').toUpperCase().replace(/\\s+/g, '').replace(/^EUH(\\d+)$/, 'EUH$1');\n  /* «H302, H314 P280» → {h: ['H302','H314'], p: ['P280'], desconocidos: []} */\n  function leeCodigos(texto) {\n    const tokens = String(texto || '').toUpperCase().match(/EUH\\s*\\d{3}|H\\s*\\d{3}[A-Z]{0,2}|P\\s*\\d{3}(?:\\s*\\+\\s*P\\s*\\d{3})*/g) || [];\n    const h = [], p = [], desconocidos = [];\n    for (const t of tokens.map(normalizaCodigo)) {\n      const base = t.replace(/[A-Z]{1,2}$/, m => (/^H\\d{3}/.test(t) ? '' : m));\n      if (/^P/.test(t)) (G.P[t] ? p : desconocidos).push(t);\n      else if (G.H[base]) { if (!h.includes(base)) h.push(base); }\n      else desconocidos.push(t);\n    }\n    return {h, p, desconocidos};\n  }\n  function pictogramas(codigosH) {\n    const hs = new Set(codigosH || []);\n    let lista = Object.keys(G.pictogramas).filter(k => G.pictogramas[k].h.some(c => hs.has(c)));\n    /* Reglas de precedencia del CLP (art. 26): la calavera excluye la\n       exclamación; el corrosivo la excluye si solo es por irritación cutánea\n       u ocular; el peligro para la salud la excluye si es por sensibilización\n       respiratoria. Aquí se aplica la primera, que es la inequívoca. */\n    if (lista.includes('GHS06')) lista = lista.filter(k => k !== 'GHS07');\n    return lista.map(k => ({codigo: k, nombre: G.pictogramas[k].nombre}));\n  }\n  function clasesDe(reactivo) {\n    const hs = new Set(reactivo.ghs || []);\n    const c = new Set(reactivo.clases || []);\n    for (const [clase, codigos] of Object.entries(DE_H)) if (codigos.some(x => hs.has(x))) c.add(clase);\n    return [...c];\n  }\n\n  /* ---------- incompatibilidades dentro del protocolo ---------- */\n  const REGLAS = [\n    {a: 'oxidante', b: ['inflamable', 'reductor', 'piroforico'], texto: 'Comburente junto a inflamable o reductor: riesgo de incendio o explosión. Almacénalos y mézclalos por separado, en pequeñas cantidades.'},\n    {a: 'acido', b: ['base'], texto: 'Ácido y base: la neutralización es exotérmica. Añade despacio, con agitación y enfriamiento.'},\n    {a: 'acido', b: ['gasConAcido'], texto: 'Ácido junto a una sustancia que libera gases tóxicos con ácidos (cianuros, sulfuros, hipocloritos): trabaja en campana y nunca los mezcles sin un procedimiento específico.'},\n    {a: 'acido', b: ['reactivoAgua'], texto: 'Sustancia que reacciona con el agua junto a un ácido acuoso: mantenla seca y lejos de disoluciones.'}\n  ];\n  function incompatibilidades(p) {\n    const avisos = [];\n    const rs = p.reactivos.map(r => ({r, clases: clasesDe(r)}));\n    const nombre = r => r.nombre || Formula.bonita(r.formula) || 'reactivo sin nombre';\n    for (const regla of REGLAS) {\n      const A = rs.filter(x => x.clases.includes(regla.a));\n      const B = rs.filter(x => x.clases.some(c => regla.b.includes(c)) && !A.includes(x));\n      if (A.length && B.length) avisos.push({texto: regla.texto, reactivos: [...new Set(A.concat(B).map(x => nombre(x.r)))]});\n    }\n    const agua = p.reactivos.some(r => r.formula && Formula.normaliza(r.formula) === 'H2O') || p.disoluciones.some(d => /agua/i.test(d.disolvente));\n    const conAgua = rs.filter(x => x.clases.includes('reactivoAgua'));\n    if (agua && conAgua.length) avisos.push({texto: 'El protocolo usa agua y hay sustancias que reaccionan con ella: trabaja en seco y con gas inerte donde toque.', reactivos: conAgua.map(x => nombre(x.r))});\n    const calientes = p.pasos.filter(s => s.temperatura != null && s.temperatura >= 50);\n    const infl = rs.filter(x => x.clases.includes('inflamable'));\n    if (calientes.length && infl.length) avisos.push({texto: 'Hay pasos a ' + Math.max(...calientes.map(s => s.temperatura)) + ' °C y reactivos inflamables: calienta con baño o manta, nunca con llama, y con refrigerante si hay vapores.', reactivos: infl.map(x => nombre(x.r))});\n    return avisos;\n  }\n\n  /* ---------- residuos ----------\n     Sugerencia desde la fórmula; la categoría final la fija tu laboratorio. */\n  const RESIDUOS = {\n    organicoHalogenado: 'Disolventes orgánicos halogenados', organicoNoHalogenado: 'Disolventes orgánicos no halogenados', acuosoMetales: 'Acuoso con metales',\n    acuosoAcidoBase: 'Acuoso ácido o básico', solido: 'Sólido químico', biologico: 'Biológico o infeccioso', cortopunzante: 'Punzocortante', radiactivo: 'Radiactivo', noPeligroso: 'No peligroso'\n  };\n  const METALES = new Set(['Ag', 'As', 'Ba', 'Cd', 'Co', 'Cr', 'Cu', 'Hg', 'Mn', 'Mo', 'Ni', 'Pb', 'Sb', 'Se', 'Sn', 'Tl', 'V', 'Zn', 'Fe', 'Al', 'Pd', 'Pt', 'Au', 'Ru', 'Rh', 'Ir', 'Os', 'U', 'Th', 'Ce', 'La']);\n  function sugiereResiduo(r) {\n    const f = r.formula ? Formula.lee(r.formula) : null;\n    if (!f || f.error) return null;\n    const els = Object.keys(f.composicion);\n    const organico = els.includes('C') && els.includes('H');\n    if (organico && els.some(e => ['Cl', 'Br', 'I', 'F'].includes(e))) return 'organicoHalogenado';\n    if (els.some(e => METALES.has(e))) return 'acuosoMetales';\n    if (organico) return r.rol === 'disolvente' ? 'organicoNoHalogenado' : null;\n    return null;\n  }\n  function residuos(p, factor) {\n    const f = factor == null ? (p.escala || 1) : factor;\n    const grupos = {};\n    for (const r of p.reactivos) {\n      const cat = r.residuo || sugiereResiduo(r);\n      if (!cat) continue;\n      (grupos[cat] = grupos[cat] || {categoria: cat, nombre: RESIDUOS[cat], reactivos: [], sugerido: !r.residuo}).reactivos.push(r.nombre || Formula.bonita(r.formula));\n      if (!r.residuo) grupos[cat].sugerido = true;\n    }\n    return Object.values(grupos);\n  }\n\n  /* ---------- costo ----------\n     precio por unidad de compra (g, kg, mL, L, mol, mmol); la cantidad del\n     lote se convierte a esa unidad. */\n  const A_BASE = {g: ['m', 1], mg: ['m', 1e-3], kg: ['m', 1e3], mL: ['v', 1], 'µL': ['v', 1e-3], L: ['v', 1e3], mol: ['n', 1], mmol: ['n', 1e-3]};\n  function costo(p, factor) {\n    const f = factor == null ? (p.escala || 1) : factor;\n    const filas = p.reactivos.filter(r => r.precio > 0 && r.cantidad != null).map(r => {\n      const q = r.cantidad * f, u = A_BASE[r.unidad], up = A_BASE[r.unidadPrecio || 'g'];\n      let enUnidadPrecio = null;\n      if (u && up) {\n        if (u[0] === up[0]) enUnidadPrecio = q * u[1] / up[1];\n        else if (u[0] === 'n' && up[0] === 'm') { const g = Protocolo.masaAPesar(r, f); if (g != null) enUnidadPrecio = g / up[1]; }\n        else if (u[0] === 'v' && up[0] === 'm' && r.densidad > 0) enUnidadPrecio = q * u[1] * r.densidad / up[1];\n        else if (u[0] === 'm' && up[0] === 'v' && r.densidad > 0) enUnidadPrecio = q * u[1] / r.densidad / up[1];\n      }\n      return {nombre: r.nombre || Formula.bonita(r.formula), costo: enUnidadPrecio != null ? enUnidadPrecio * r.precio : null};\n    });\n    const total = filas.reduce((a, x) => a + (x.costo || 0), 0);\n    const sinConvertir = filas.filter(x => x.costo == null).map(x => x.nombre);\n    return {filas, total, sinConvertir,\n      explicacion: filas.length ? 'Costo de reactivos del lote (×' + numero(f) + '): ' + numero(total, {dec: 2}) + '.' + (sinConvertir.length ? ' No se pudo convertir la cantidad de ' + sinConvertir.join(', ') + ' a la unidad de su precio (falta densidad o masa molar).' : '')\n        : 'Ningún reactivo tiene precio.'};\n  }\n\n  return {CLASES, RESIDUOS, leeCodigos, pictogramas, clasesDe, incompatibilidades, sugiereResiduo, residuos, costo, texto: c => G.H[c] || G.P[c] || ''};\n})();\n",
  "src/js/11-lotes.js": "/* ==== 11-lotes.js ==== */\n'use strict';\n/* ================= los lotes =================\n   Cada vez que ejecutas un protocolo haces un lote: con su escala, sus\n   pesadas reales y lo que obtuviste. Comparar lo pesado con lo planeado\n   (desviación relativa) y lo obtenido con lo teórico (rendimiento) es lo que\n   luego explica por qué dos lotes «iguales» no dieron lo mismo. */\n\nconst Lotes = (() => {\n  const protocolo = (p, l) => l.revision && l.revision.protocolo || p;\n\n  /* Pesadas: la masa planeada de cada reactivo que se pesa (g) frente a la\n     real. La desviación se da en %; ±1 % suele bastar en una síntesis y se\n     marca lo que se sale del umbral que elijas. */\n  function pesadas(p, l, umbral) {\n    p = protocolo(p, l);\n    const u = umbral == null ? 1 : umbral;\n    return p.reactivos.filter(r => r.rol !== 'disolvente').map(r => {\n      const planeada = Protocolo.masaAPesar(r, l.factor);\n      const real = l.pesadas[r.id] != null ? l.pesadas[r.id] : null;\n      const desviacion = planeada != null && real != null && planeada > 0 ? (real - planeada) / planeada * 100 : null;\n      return {id: r.id, nombre: r.nombre || Formula.bonita(r.formula), planeada, real, desviacion, fuera: desviacion != null && Math.abs(desviacion) > u};\n    }).filter(x => x.planeada != null);\n  }\n\n  /* Rendimiento: obtenido frente al teórico del lote base por la escala. */\n  function rendimiento(p, l) {\n    p = protocolo(p, l);\n    const teorico = p.rendimientoTeorico != null && p.rendimientoTeorico > 0 ? p.rendimientoTeorico * l.factor : null;\n    if (teorico == null) return {teorico: null, porcentaje: null, explicacion: 'Sin rendimiento teórico en el protocolo: fíjalo en Datos generales para calcular el rendimiento.'};\n    if (l.masaObtenida == null) return {teorico, porcentaje: null, explicacion: 'Anota la masa obtenida para calcular el rendimiento.'};\n    const porcentaje = l.masaObtenida / teorico * 100;\n    return {teorico, porcentaje,\n      explicacion: 'Obtuviste ' + numero(l.masaObtenida) + ' g de ' + numero(teorico) + ' g teóricos: ' + numero(porcentaje, {dec: 1}) + ' %'\n        + (porcentaje > 100 ? '. Más del 100 % suele indicar agua o sales retenidas: revisa el lavado y el secado.' : '.')};\n  }\n\n  /* Resumen de todos los lotes: rendimiento medio y dispersión, para ver si\n     el protocolo es repetible. */\n  function resumen(p) {\n    const rs = p.lotes.map(l => rendimiento(p, l).porcentaje).filter(v => v != null);\n    if (!rs.length) return {n: 0};\n    const m = rs.reduce((a, b) => a + b, 0) / rs.length;\n    const s = rs.length > 1 ? Math.sqrt(rs.reduce((a, b) => a + (b - m) * (b - m), 0) / (rs.length - 1)) : null;\n    return {n: rs.length, media: m, desviacion: s,\n      explicacion: rs.length + (rs.length === 1 ? ' lote con rendimiento: ' : ' lotes con rendimiento: media ') + numero(m, {dec: 1}) + ' %'\n        + (s != null ? ', desviación estándar ' + numero(s, {dec: 1}) + ' puntos.' : '.')};\n  }\n\n  /* ---------- comparación entre lotes ----------\n     Una fila por lote con lo planeado y lo real de cada parámetro que algún\n     lote registró, más masa, rendimiento y resultado. Así se ve qué cambió y\n     qué salió. */\n  const ETQ = {temperatura: ['T', '°C'], tiempo: ['t', ''], ph: ['pH', ''], agitacion: ['agitación', 'rpm']};\n  function comparacion(p) {\n    const mapa = new Map(), resultados = new Map();\n    const unidad = (s, campo) => campo === 'tiempo' ? s.unidadTiempo : ETQ[campo][1];\n    const claveResultado = base => JSON.stringify([base.resultadoNombre || 'Resultado sin nombre', base.resultadoUnidad || '']);\n    for (const lote of p.lotes) {\n      const base = protocolo(p, lote);\n      base.pasos.forEach((paso, i) => {\n        for (const campo of Object.keys(ETQ)) if (lote.parametros[paso.id] && lote.parametros[paso.id][campo] != null) {\n          const u = unidad(paso, campo), clave = JSON.stringify([paso.id, campo, u]);\n          if (!mapa.has(clave)) mapa.set(clave, {pasoId:paso.id, campo, etiqueta:ETQ[campo][0] + ' paso ' + (i+1), unidad:u});\n        }\n      });\n      if (lote.resultado != null) {\n        const clave = claveResultado(base);\n        if (!resultados.has(clave)) resultados.set(clave, {clave, nombre:base.resultadoNombre || 'Resultado sin nombre', unidad:base.resultadoUnidad || ''});\n      }\n    }\n    const columnas = [...mapa.values()], columnasResultado = [...resultados.values()];\n    for (const col of columnas) {\n      const planes = p.lotes.map(l => protocolo(p,l).pasos.find(s => s.id === col.pasoId)).filter(s => s && unidad(s,col.campo) === col.unidad).map(s => s[col.campo]);\n      col.planeado = planes.length && planes.every(v => v === planes[0]) ? planes[0] : null;\n    }\n    const filas = p.lotes.map(l => {\n      const base = protocolo(p,l), r = rendimiento(p, l);\n      return {id: l.id, codigo: l.codigo || '—', fecha: l.fecha, factor: l.factor, masa: l.masaObtenida, rendimiento: r.porcentaje, resultado: l.resultado,\n        referenciaConocida:!!l.revision, resultados:columnasResultado.map(c => c.clave === claveResultado(base) ? l.resultado : null),\n        valores: columnas.map(c => {\n          const paso = base.pasos.find(s => s.id === c.pasoId), coincide = paso && unidad(paso,c.campo) === c.unidad;\n          const v = coincide && l.parametros[c.pasoId] ? l.parametros[c.pasoId][c.campo] : null, plan = coincide ? paso[c.campo] : null;\n          return {real: v == null ? null : v, planeado: plan, desvio: v != null && plan != null ? v - plan : null};\n        })};\n    });\n    return {columnas, columnasResultado, filas};\n  }\n  /* Carta de control del resultado de cada lote o, si no hay, del rendimiento. */\n  function control(p) {\n    const referencias = new Set(p.lotes.map(l => Protocolo.claveRevision(protocolo(p, l))));\n    if (referencias.size > 1) return {error: 'Los lotes usan revisiones distintas. Selecciona una misma revisión para construir una carta de control.'};\n    const base = p.lotes.length ? protocolo(p, p.lotes[0]) : p;\n    const conResultado = p.lotes.filter(l => l.resultado != null);\n    const usaResultado = conResultado.length >= 3;\n    const serie = usaResultado ? conResultado.map(l => ({codigo: l.codigo, valor: l.resultado}))\n      : p.lotes.map(l => ({codigo: l.codigo, valor: rendimiento(p, l).porcentaje})).filter(x => x.valor != null);\n    const c = Estadistica.cartaControl(serie.map(x => x.valor));\n    return Object.assign(c, {etiquetas: serie.map(x => x.codigo), referenciaConocida:p.lotes.every(l => !!l.revision), magnitud: usaResultado ? (base.resultadoNombre || 'Resultado') + (base.resultadoUnidad ? ' (' + base.resultadoUnidad + ')' : '') : 'Rendimiento (%)'});\n  }\n\n  /* Serialización de los lotes en CSV (RFC 4180). */\n  function celdaCSV(v) {\n    if (v == null) return '';\n    const s = String(v);\n    return /[\",\\r\\n;]/.test(s) ? '\"' + s.replace(/\"/g, '\"\"') + '\"' : s;\n  }\n  function csv(p) {\n    if (!p || !p.lotes || !p.lotes.length) return '';\n    const cmp = comparacion(p);\n    const cabecera = ['Lote', 'Fecha', 'Escala', 'Masa (g)', 'Rendimiento (%)', p.resultadoNombre || 'Resultado']\n      .concat(cmp.columnas.map(c => c.etiqueta + (c.unidad ? ' (' + c.unidad + ')' : '')));\n    const lineas = [cabecera.map(celdaCSV).join(',')];\n    for (let i = 0; i < p.lotes.length; i++) {\n      const l = p.lotes[i];\n      const r = rendimiento(p, l);\n      const f = cmp.filas[i];\n      const fila = [\n        l.codigo || '',\n        l.fecha || '',\n        l.factor != null ? l.factor : 1,\n        l.masaObtenida != null ? l.masaObtenida : '',\n        r.porcentaje != null ? r.porcentaje : '',\n        l.resultado != null ? l.resultado : ''\n      ].concat(f ? f.valores.map(v => (v.real != null ? v.real : '')) : []);\n      lineas.push(fila.map(celdaCSV).join(','));\n    }\n    return lineas.join('\\r\\n') + '\\r\\n';\n  }\n  return {protocolo, pesadas, rendimiento, resumen, comparacion, control, csv};\n})();\n",
  "src/js/12-redaccion.js": "/* ==== 12-redaccion.js ==== */\n'use strict';\n/* ================= la sección de métodos =================\n   Redacta la sección «Materiales y métodos» (o «Experimental») a partir de la\n   estructura del protocolo, en español o en inglés, en pasiva e impersonal,\n   como se escribe en química. Solo dice lo que el protocolo contiene: un\n   campo vacío no se rellena con un valor «típico», se omite, y la revisión de\n   reproducibilidad dice qué falta.\n\n   Los nombres de los reactivos y el texto de los pasos se copian tal como los\n   escribiste: la traducción de tu procedimiento no se inventa. En inglés solo\n   cambian las frases que pone la app. */\n\nconst Redaccion = (() => {\n  const T = {\n    es: {\n      materiales: 'Materiales', procedimiento: 'Procedimiento', caracterizacion: 'Caracterización',\n      seUsaron: 'Se utilizaron', sinPurificar: 'Todos los reactivos se usaron sin purificación adicional.',\n      porLote: 'Para cada lote se emplearon', de: 'de', y: 'y',\n      disolucion: (soluto, c, masa, v, dis) => 'Se preparó una disolución ' + c + ' mol/L de ' + soluto + (masa ? ' (' + masa + ' g en ' + v + ' mL de ' + dis + ')' : '') + '.',\n      atm: a => 'en atmósfera de ' + a, agit: v => 'con agitación a ' + v + ' rpm', ph: v => 'pH ' + v, escala: f => 'Las cantidades corresponden a un lote escalado ×' + f + '.'\n    },\n    en: {\n      materiales: 'Materials', procedimiento: 'Procedure', caracterizacion: 'Characterization',\n      seUsaron: 'The following reagents were used:', sinPurificar: 'All reagents were used without further purification.',\n      porLote: 'Each batch used', de: 'of', y: 'and',\n      disolucion: (soluto, c, masa, v, dis) => 'A ' + c + ' mol/L solution of ' + soluto + ' was prepared' + (masa ? ' (' + masa + ' g in ' + v + ' mL of ' + dis + ')' : '') + '.',\n      atm: a => 'under ' + a, agit: v => 'stirring at ' + v + ' rpm', ph: v => 'pH ' + v, escala: f => 'Quantities correspond to a batch scaled ×' + f + '.'\n    }\n  };\n  const UNID_TIEMPO = {es: {s: 's', min: 'min', h: 'h', d: 'd'}, en: {s: 's', min: 'min', h: 'h', d: 'd'}};\n\n  const n = (v, idioma, opc) => numero(v, Object.assign({idioma}, opc || {}));\n  const pct = (v, idioma) => n(v, idioma, {cifras: 4}) + (idioma === 'en' ? '%' : ' %');\n  const lista = (partes, idioma) => (partes.length <= 1 ? partes.join('') : partes.slice(0, -1).join(', ') + ' ' + T[idioma].y + ' ' + partes[partes.length - 1]);\n  const conPunto = s => (/[.!?:]$/.test(s.trim()) ? s.trim() : s.trim() + '.');\n  const nombreReactivo = r => r.nombre || Formula.bonita(r.formula) || '—';\n  /* «Nitrato de zinc» a mitad de frase va en minúscula; «NaOH» o «KHP», no. */\n  const enFrase = s => (/^[A-ZÁÉÍÓÚÑ][a-záéíóúñü]/.test(s) ? s[0].toLowerCase() + s.slice(1) : s);\n\n  function materiales(p, idioma) {\n    const t = T[idioma];\n    if (!p.reactivos.length) return '';\n    const items = p.reactivos.map(r => {\n      const det = [];\n      if (r.formula && r.nombre) det.push(Formula.bonita(r.formula));\n      if (r.cas) det.push('CAS ' + r.cas);\n      if (r.pureza != null) det.push(pct(r.pureza, idioma));\n      if (r.proveedor) det.push(r.proveedor);\n      return (idioma === 'es' ? enFrase(nombreReactivo(r)) : nombreReactivo(r)) + (det.length ? ' (' + det.join(', ') + ')' : '');\n    });\n    let s = t.seUsaron + ' ' + (idioma === 'en' ? items.join('; ') : lista(items, idioma)) + '.';\n    if (p.sinPurificar) s += ' ' + t.sinPurificar;\n    return s;\n  }\n\n  function cantidades(p, idioma) {\n    const t = T[idioma], f = p.escala || 1;\n    const partes = p.reactivos.filter(r => r.cantidad != null && r.rol !== 'disolvente').map(r => {\n      const q = r.cantidad * f;\n      const mol = Protocolo.moles(r, f);\n      const quien = ' ' + t.de + ' ' + (r.formula ? Formula.bonita(r.formula) : nombreReactivo(r));\n      /* En moles se da también la masa que se pesó, que es lo que otra\n         persona necesita para repetirlo. */\n      if (r.unidad === 'mmol' || r.unidad === 'mol') {\n        const g = Protocolo.masaAPesar(r, f);\n        return (g != null ? n(g, idioma) + ' g (' + n(mol * 1000, idioma, {cifras: 3}) + ' mmol)' : n(q, idioma) + ' ' + r.unidad) + quien;\n      }\n      return n(q, idioma) + ' ' + r.unidad + (mol != null ? ' (' + n(mol * 1000, idioma, {cifras: 3}) + ' mmol)' : '') + quien;\n    });\n    if (!partes.length) return '';\n    return t.porLote + ' ' + lista(partes, idioma) + '.' + (f !== 1 ? ' ' + t.escala(n(f, idioma)) : '');\n  }\n\n  function disoluciones(p, idioma) {\n    const t = T[idioma], f = p.escala || 1;\n    return p.disoluciones.filter(d => d.reactivo && d.concentracion != null).map(d => {\n      const r = p.reactivos.find(x => x.id === d.reactivo);\n      const c = Protocolo.disolucion(p, d, f);\n      return t.disolucion(r.formula ? Formula.bonita(r.formula) : nombreReactivo(r), n(d.concentracion, idioma, {cifras: 3}),\n        c.error ? '' : n(c.masa, idioma), n((d.volumen || 0) * f, idioma), d.disolvente || (idioma === 'en' ? 'solvent' : 'disolvente'));\n    }).join(' ');\n  }\n\n  function parametros(s, idioma) {\n    const t = T[idioma], out = [];\n    if (s.temperatura != null) out.push(n(s.temperatura, idioma, {cifras: 4}) + ' °C');\n    if (s.tiempo != null) out.push(n(s.tiempo, idioma, {cifras: 4}) + ' ' + UNID_TIEMPO[idioma][s.unidadTiempo]);\n    if (s.ph != null) out.push(t.ph(n(s.ph, idioma, {dec: 1})));\n    if (s.agitacion != null) out.push(t.agit(n(s.agitacion, idioma, {cifras: 4})));\n    if (s.atmosfera) out.push(t.atm(s.atmosfera));\n    return out;\n  }\n  function procedimiento(p, idioma) {\n    return p.pasos.filter(s => (s.articulo || s.texto).trim()).map(s => {\n      const par = parametros(s, idioma);\n      const base = (s.articulo || s.texto).trim().replace(/[.]$/, '');\n      if (!par.length) return conPunto(base);\n      /* Un paréntesis detrás de otro se lee mal: entonces, tras una coma. */\n      return conPunto(base + (/\\)$/.test(base) ? ', ' + par.join(', ') : ' (' + par.join(', ') + ')'));\n    }).join(' ');\n  }\n\n  /* ---------- caracterización: una frase por técnica ---------- */\n  const v = (c, k) => c.valores[k];\n  const hay = (c, ...ks) => ks.every(k => v(c, k) != null && v(c, k) !== '');\n  const eq = (c, idioma) => (hay(c, 'equipo') ? (idioma === 'en' ? ' on a ' : ' en un equipo ') + v(c, 'equipo') : '');\n  const FRASES = {\n    xrd: (c, i) => {\n      const e = i === 'en';\n      let s = (e ? 'Powder X-ray diffraction patterns were recorded' : 'Los difractogramas de rayos X de polvo se registraron') + eq(c, i);\n      if (hay(c, 'radiacion')) s += (e ? ' with ' : ' con radiación ') + v(c, 'radiacion').replace(/^radiación\\s+/i, '') + (e ? ' radiation' : '');\n      if (hay(c, 'voltaje', 'corriente')) s += (e ? ' (' : ' (') + n(v(c, 'voltaje'), i) + ' kV, ' + n(v(c, 'corriente'), i) + ' mA)';\n      if (hay(c, 'min', 'max')) s += (e ? ' over 2θ = ' : ', de 2θ = ') + n(v(c, 'min'), i) + (e ? '–' : ' a ') + n(v(c, 'max'), i) + '°';\n      if (hay(c, 'paso')) s += (e ? ' with a step of ' : ', con paso de ') + n(v(c, 'paso'), i) + '°';\n      if (hay(c, 'tiempo')) s += (e ? ' and ' : ' y ') + n(v(c, 'tiempo'), i) + (e ? ' s per step' : ' s por paso');\n      s += '.';\n      if (hay(c, 'muestra')) s += ' ' + conPunto(v(c, 'muestra'));\n      return s;\n    },\n    ftir: (c, i) => {\n      const e = i === 'en';\n      let s = (e ? 'FTIR spectra were recorded' : 'Los espectros FTIR se registraron') + eq(c, i);\n      if (hay(c, 'modo')) s += (e ? ' in ' + v(c, 'modo') + ' mode' : ' en modo ' + v(c, 'modo'));\n      if (hay(c, 'max', 'min')) s += (e ? ' from ' : ', de ') + n(v(c, 'max'), i) + (e ? ' to ' : ' a ') + n(v(c, 'min'), i) + ' cm⁻¹';\n      if (hay(c, 'resolucion')) s += (e ? ' at ' : ' con resolución de ') + n(v(c, 'resolucion'), i) + (e ? ' cm⁻¹ resolution' : ' cm⁻¹');\n      if (hay(c, 'barridos')) s += (e ? ', averaging ' : ' y ') + n(v(c, 'barridos'), i) + (e ? ' scans' : ' barridos');\n      return s + '.';\n    },\n    tga: (c, i) => {\n      const e = i === 'en';\n      let s = (e ? 'Thermogravimetric analysis was performed' : 'El análisis termogravimétrico se realizó') + eq(c, i);\n      if (hay(c, 'tInicial', 'tFinal')) s += (e ? ' from ' : ' de ') + n(v(c, 'tInicial'), i) + (e ? ' to ' : ' a ') + n(v(c, 'tFinal'), i) + ' °C';\n      if (hay(c, 'rampa')) s += (e ? ' at ' : ' a ') + n(v(c, 'rampa'), i) + ' °C/min';\n      if (hay(c, 'atmosfera')) s += (e ? ' under ' : ' en atmósfera de ') + v(c, 'atmosfera');\n      if (hay(c, 'flujo')) s += ' (' + n(v(c, 'flujo'), i) + ' mL/min)';\n      if (hay(c, 'masa')) s += (e ? ', using ' : ', con ') + n(v(c, 'masa'), i) + (e ? ' mg of sample' : ' mg de muestra');\n      if (hay(c, 'crisol')) s += (e ? ' in ' : ' en crisol de ') + v(c, 'crisol') + (e ? ' crucibles' : '');\n      return s + '.';\n    },\n    bet: (c, i) => {\n      const e = i === 'en';\n      const ads = hay(c, 'adsorbato') ? v(c, 'adsorbato') : 'N₂';\n      let s = (e ? ads + ' adsorption–desorption isotherms were measured' : 'Las isotermas de adsorción-desorción de ' + ads + ' se midieron') + eq(c, i);\n      if (hay(c, 'temperatura')) s += (e ? ' at ' : ' a ') + n(v(c, 'temperatura'), i) + ' K';\n      if (hay(c, 'tDesgasificado', 'hDesgasificado')) s += (e ? ' after degassing at ' : ' tras desgasificar a ') + n(v(c, 'tDesgasificado'), i) + (e ? ' °C for ' : ' °C durante ') + n(v(c, 'hDesgasificado'), i) + ' h';\n      s += '.';\n      s += e ? ' The specific surface area was calculated with the BET method' : ' El área superficial específica se calculó por el método BET';\n      if (hay(c, 'rango')) s += (e ? ' in the P/P₀ range ' : ' en el intervalo de P/P₀ ') + v(c, 'rango');\n      s += '.';\n      if (hay(c, 'poros')) s += (e ? ' Pore size distribution: ' : ' Distribución de tamaño de poro: ') + conPunto(v(c, 'poros'));\n      return s;\n    },\n    sem: (c, i) => {\n      const e = i === 'en';\n      let s = (e ? 'Scanning electron micrographs were acquired' : 'Las micrografías de MEB se adquirieron') + eq(c, i);\n      if (hay(c, 'voltaje')) s += (e ? ' at an accelerating voltage of ' : ' con voltaje de aceleración de ') + n(v(c, 'voltaje'), i) + ' kV';\n      if (hay(c, 'detector')) s += (e ? ' using the ' + v(c, 'detector') + ' detector' : ' y detector ' + v(c, 'detector'));\n      s += '.';\n      if (hay(c, 'recubrimiento')) s += (e ? ' Samples were coated with ' : ' Las muestras se recubrieron con ') + conPunto(v(c, 'recubrimiento'));\n      if (hay(c, 'eds')) s += ' EDS: ' + conPunto(v(c, 'eds'));\n      return s;\n    },\n    uvvis: (c, i) => {\n      const e = i === 'en';\n      let s = (e ? 'UV-Vis spectra were recorded' : 'Los espectros UV-Vis se registraron') + eq(c, i);\n      if (hay(c, 'modo')) s += (e ? ' in ' + v(c, 'modo') + ' mode' : ' en modo de ' + v(c, 'modo'));\n      if (hay(c, 'min', 'max')) s += (e ? ' from ' : ' de ') + n(v(c, 'min'), i) + (e ? ' to ' : ' a ') + n(v(c, 'max'), i) + ' nm';\n      if (hay(c, 'referencia')) s += (e ? ' against ' : ' frente a ') + v(c, 'referencia');\n      return s + '.';\n    },\n    rmn: (c, i) => {\n      const e = i === 'en';\n      let s = (e ? (hay(c, 'nucleo') ? v(c, 'nucleo') + ' ' : '') + 'NMR spectra were recorded' : 'Los espectros de RMN' + (hay(c, 'nucleo') ? ' de ' + v(c, 'nucleo') : '') + ' se registraron') + eq(c, i);\n      if (hay(c, 'frecuencia')) s += (e ? ' at ' : ' a ') + n(v(c, 'frecuencia'), i) + ' MHz';\n      if (hay(c, 'disolvente')) s += (e ? ' in ' : ' en ') + v(c, 'disolvente');\n      if (hay(c, 'temperatura')) s += (e ? ' at ' : ' a ') + n(v(c, 'temperatura'), i) + ' K';\n      if (hay(c, 'barridos')) s += (e ? ' (' + n(v(c, 'barridos'), i) + ' scans)' : ' (' + n(v(c, 'barridos'), i) + ' barridos)');\n      s += '.';\n      if (hay(c, 'referencia')) s += (e ? ' Chemical shifts are referenced to ' : ' Los desplazamientos químicos se refieren a ') + conPunto(v(c, 'referencia'));\n      return s;\n    },\n    ms: (c, i) => {\n      const e = i === 'en';\n      let s = (e ? 'Mass spectra were acquired' : 'Los espectros de masas se adquirieron') + eq(c, i);\n      if (hay(c, 'ionizacion')) s += (e ? ' with ' + v(c, 'ionizacion') + ' ionization' : ' con ionización ' + v(c, 'ionizacion'));\n      if (hay(c, 'polaridad')) s += (e ? ' in ' + (v(c, 'polaridad') === 'positivo' ? 'positive' : 'negative') + ' mode' : ' en modo ' + v(c, 'polaridad'));\n      if (hay(c, 'analizador')) s += (e ? ' and a ' + v(c, 'analizador') + ' analyzer' : ' y analizador ' + v(c, 'analizador'));\n      if (hay(c, 'min', 'max')) s += (e ? ', m/z ' : ', m/z ') + n(v(c, 'min'), i) + (e ? '–' : '–') + n(v(c, 'max'), i);\n      return s + '.';\n    },\n    hplc: (c, i) => {\n      const e = i === 'en';\n      let s = (e ? 'HPLC analyses were performed' : 'Los análisis por HPLC se realizaron') + eq(c, i);\n      if (hay(c, 'columna')) s += (e ? ' with a ' : ' con una columna ') + v(c, 'columna') + (e ? ' column' : '');\n      if (hay(c, 'temperatura')) s += (e ? ' at ' : ' a ') + n(v(c, 'temperatura'), i) + ' °C';\n      if (hay(c, 'flujo')) s += (e ? ' at a flow rate of ' : ', con un flujo de ') + n(v(c, 'flujo'), i) + ' mL/min';\n      if (hay(c, 'inyeccion')) s += (e ? ' and ' : ' e inyección de ') + n(v(c, 'inyeccion'), i) + (e ? ' µL injections' : ' µL');\n      s += '.';\n      if (hay(c, 'fase')) s += (e ? ' Mobile phase: ' : ' Fase móvil: ') + conPunto(v(c, 'fase'));\n      if (hay(c, 'deteccion')) s += (e ? ' Detection: ' : ' Detección: ') + conPunto(v(c, 'deteccion'));\n      return s;\n    },\n    gc: (c, i) => {\n      const e = i === 'en';\n      let s = (e ? 'GC analyses were performed' : 'Los análisis por cromatografía de gases se realizaron') + eq(c, i);\n      if (hay(c, 'columna')) s += (e ? ' with a ' : ' con una columna ') + v(c, 'columna') + (e ? ' column' : '');\n      if (hay(c, 'portador')) s += (e ? ', ' + v(c, 'portador') + ' as carrier gas' : ', ' + v(c, 'portador') + ' como gas portador');\n      if (hay(c, 'flujo')) s += ' (' + n(v(c, 'flujo'), i) + ' mL/min)';\n      if (hay(c, 'inyector')) s += (e ? ' and the injector at ' : ' y el inyector a ') + n(v(c, 'inyector'), i) + ' °C';\n      if (hay(c, 'detector')) s += (e ? ', with ' + v(c, 'detector') + ' detection' : ', con detector ' + v(c, 'detector'));\n      s += '.';\n      if (hay(c, 'programa')) s += (e ? ' Oven program: ' : ' Programa del horno: ') + conPunto(v(c, 'programa'));\n      return s;\n    },\n    microscopia: (c, i) => {\n      const e = i === 'en';\n      let s = (e ? 'Images were acquired' : 'Las imágenes se adquirieron') + eq(c, i);\n      if (hay(c, 'modo')) s += (e ? ' in ' + v(c, 'modo') + ' mode' : ' en ' + v(c, 'modo'));\n      if (hay(c, 'objetivo')) s += (e ? ' with a ' + v(c, 'objetivo') + ' objective' : ' con objetivo ' + v(c, 'objetivo'));\n      s += '.';\n      if (hay(c, 'filtros')) s += (e ? ' Excitation/emission: ' : ' Excitación y emisión: ') + conPunto(v(c, 'filtros'));\n      if (hay(c, 'camara')) s += (e ? ' Camera: ' : ' Cámara: ') + conPunto(v(c, 'camara'));\n      return s;\n    },\n    electroquimica: (c, i) => {\n      const e = i === 'en';\n      let s = (hay(c, 'tecnica') ? (e ? 'Measurements (' + v(c, 'tecnica') + ') were performed' : 'Las medidas de ' + v(c, 'tecnica') + ' se realizaron') : (e ? 'Electrochemical measurements were performed' : 'Las medidas electroquímicas se realizaron')) + eq(c, i);\n      const celda = [hay(c, 'trabajo') ? (e ? 'working electrode: ' : 'electrodo de trabajo: ') + v(c, 'trabajo') : '', hay(c, 'referencia') ? (e ? 'reference: ' : 'referencia: ') + v(c, 'referencia') : '', hay(c, 'contra') ? (e ? 'counter electrode: ' : 'contraelectrodo: ') + v(c, 'contra') : ''].filter(Boolean);\n      if (celda.length) s += (e ? ' in a three-electrode cell (' : ' en una celda de tres electrodos (') + celda.join('; ') + ')';\n      if (hay(c, 'electrolito')) s += (e ? ' with ' : ' con ') + v(c, 'electrolito') + (e ? ' as supporting electrolyte' : ' como electrolito soporte');\n      if (hay(c, 'velocidad')) s += (e ? ' at ' : ' a ') + n(v(c, 'velocidad'), i) + ' mV/s';\n      if (hay(c, 'ventana')) s += (e ? ' between ' : ' entre ') + v(c, 'ventana');\n      return s + '.';\n    },\n    dsc: (c, i) => {\n      const e = i === 'en';\n      let s = (e ? 'DSC measurements were performed' : 'Las medidas de DSC se realizaron') + eq(c, i);\n      if (hay(c, 'tInicial', 'tFinal')) s += (e ? ' from ' : ' de ') + n(v(c, 'tInicial'), i) + (e ? ' to ' : ' a ') + n(v(c, 'tFinal'), i) + ' °C';\n      if (hay(c, 'rampa')) s += (e ? ' at ' : ' a ') + n(v(c, 'rampa'), i) + ' °C/min';\n      if (hay(c, 'atmosfera')) s += (e ? ' under ' : ' en atmósfera de ') + v(c, 'atmosfera');\n      if (hay(c, 'masa')) s += (e ? ', using ' : ', con ') + n(v(c, 'masa'), i) + (e ? ' mg of sample' : ' mg de muestra');\n      if (hay(c, 'crisol')) s += (e ? ' in ' : ' en crisol de ') + v(c, 'crisol') + (e ? ' pans' : '');\n      return s + '.';\n    },\n    otra: (c, i) => {\n      const e = i === 'en';\n      const nombre = hay(c, 'nombreTecnica') ? v(c, 'nombreTecnica') : (e ? 'Measurements' : 'Las medidas');\n      return nombre + (e ? ' were performed' : (hay(c, 'nombreTecnica') ? ' se realizó' : ' se realizaron')) + eq(c, i) + '.' + (hay(c, 'condiciones') ? ' ' + conPunto(v(c, 'condiciones')) : '');\n    }\n  };\n  const caracterizacion = (p, idioma) => p.caracterizacion.map(c => (FRASES[c.tecnica] || FRASES.otra)(c, idioma)).join(' ');\n\n  /* La sección completa como bloques {titulo, texto}; los vacíos no salen. */\n  function seccion(p, idioma) {\n    const i = idioma === 'en' ? 'en' : 'es', t = T[i];\n    const bloques = [];\n    const mat = materiales(p, i);\n    if (mat) bloques.push({titulo: t.materiales, texto: mat});\n    const proc = [cantidades(p, i), disoluciones(p, i), procedimiento(p, i)].filter(Boolean).join(' ');\n    if (proc) bloques.push({titulo: (p.titulo ? p.titulo : t.procedimiento), texto: proc});\n    const car = caracterizacion(p, i);\n    if (car) bloques.push({titulo: t.caracterizacion, texto: car});\n    return bloques;\n  }\n  const textoPlano = (p, idioma) => seccion(p, idioma).map(b => b.titulo + '\\n' + b.texto).join('\\n\\n');\n\n  /* ---------- el protocolo completo en Markdown ---------- */\n  const celda = s => String(s == null ? '' : s).replace(/\\|/g, '\\\\|').replace(/\\n/g, ' ');\n  function markdown(p, opc) {\n    const o = opc || {}, f = p.escala || 1, L = [];\n    const nn = (x, op) => numero(x, op);\n    L.push('# ' + (p.titulo || 'Protocolo sin título'), '');\n    L.push('- Tipo: ' + (Protocolo.TIPOS[p.tipo] || p.tipo));\n    if (p.autores) L.push('- Autoría: ' + p.autores);\n    if (p.referencia) L.push('- Referencia: ' + p.referencia);\n    L.push('- Escala del lote: ×' + nn(f));\n    if (p.rendimientoTeorico != null) L.push('- Rendimiento teórico del lote base: ' + nn(p.rendimientoTeorico) + ' g' + (p.productoFormula ? ' de ' + Formula.bonita(p.productoFormula) : ''));\n    L.push('');\n    if (p.objetivo) L.push('## Objetivo', '', p.objetivo, '');\n    if (p.reactivos.length) {\n      L.push('## Reactivos', '', '| Reactivo | Fórmula | M (g/mol) | Pureza | Proveedor | Cantidad del lote | mmol | A pesar (g) |', '|---|---|---:|---:|---|---:|---:|---:|');\n      for (const r of p.reactivos) {\n        const M = Protocolo.masaMolar(r), mol = Protocolo.moles(r, f), pesar = Protocolo.masaAPesar(r, f);\n        L.push('| ' + [celda(r.nombre), celda(Formula.bonita(r.formula)), M ? nn(M, {dec: 2}) : '—', r.pureza != null ? nn(r.pureza) + ' %' : '—', celda(r.proveedor),\n          r.cantidad != null ? nn(r.cantidad * f) + ' ' + r.unidad : '—', mol != null ? nn(mol * 1000) : '—', pesar != null ? nn(pesar) : '—'].join(' | ') + ' |');\n      }\n      L.push('');\n    }\n    if (p.disoluciones.length) {\n      L.push('## Disoluciones', '', '| Disolución | Soluto | C (mol/L) | V (mL) | Soluto a pesar (g) | Disolvente |', '|---|---|---:|---:|---:|---|');\n      for (const d of p.disoluciones) {\n        const r = p.reactivos.find(x => x.id === d.reactivo), c = Protocolo.disolucion(p, d, f);\n        L.push('| ' + [celda(d.nombre), celda(r ? nombreReactivo(r) : '—'), d.concentracion != null ? nn(d.concentracion) : '—', d.volumen != null ? nn(d.volumen * f) : '—', c.error ? '—' : nn(c.masa), celda(d.disolvente)].join(' | ') + ' |');\n      }\n      L.push('');\n    }\n    if (p.pasos.length) {\n      L.push('## Procedimiento', '');\n      p.pasos.forEach((s, k) => {\n        const par = parametros(s, 'es');\n        L.push((k + 1) + '. ' + (s.critico ? '**Paso crítico.** ' : '') + s.texto.trim().replace(/\\n+/g, ' ') + (par.length ? ' — ' + par.join(' · ') : ''));\n      });\n      L.push('');\n    }\n    if (p.equipos) L.push('## Equipos', '', p.equipos, '');\n    if (p.caracterizacion.length) {\n      L.push('## Medición y caracterización', '');\n      for (const c of p.caracterizacion) {\n        const def = DATOS.tecnicas[c.tecnica];\n        L.push('### ' + def.nombre, '');\n        for (const campo of def.campos) if (c.valores[campo.id] != null && c.valores[campo.id] !== '')\n          L.push('- ' + campo.etiqueta + ': ' + (campo.tipo === 'numero' ? nn(c.valores[campo.id]) : c.valores[campo.id]) + (campo.unidad ? ' ' + campo.unidad : ''));\n        L.push('');\n      }\n    }\n    const peligros = p.reactivos.filter(r => r.peligros.trim() || r.ghs.length || r.prudencia.length);\n    const inc = Seguridad.incompatibilidades(p), res = Seguridad.residuos(p);\n    if (p.seguridad.length || peligros.length || inc.length || res.length) {\n      L.push('## Seguridad', '');\n      for (const r of peligros) {\n        const pic = Seguridad.pictogramas(r.ghs).map(x => x.codigo + ' ' + x.nombre);\n        L.push('- ' + nombreReactivo(r) + ': ' + [pic.length ? 'pictogramas ' + pic.join(', ') : '', r.ghs.map(c => c + ' ' + Seguridad.texto(c)).join('; '), r.prudencia.join(', '), r.peligros.trim()].filter(Boolean).join('. '));\n      }\n      for (const a of inc) L.push('- Incompatibilidad (' + a.reactivos.join(', ') + '): ' + a.texto);\n      for (const x of res) L.push('- Residuo «' + x.nombre + '»' + (x.sugerido ? ' (sugerido)' : '') + ': ' + x.reactivos.join(', '));\n      for (const s of p.seguridad) if (s.texto.trim()) L.push('- ' + s.texto.trim());\n      L.push('');\n    }\n    if (p.lotes.length) {\n      const rn = p.resultadoNombre ? p.resultadoNombre + (p.resultadoUnidad ? ' (' + p.resultadoUnidad + ')' : '') : null;\n      L.push('## Lotes', '', '| Lote | Fecha | Escala | Operador | Obtenido (g) | Rendimiento |' + (rn ? ' ' + celda(rn) + ' |' : ''), '|---|---|---:|---|---:|---:|' + (rn ? '---:|' : ''));\n      for (const l of p.lotes) {\n        const r = Lotes.rendimiento(p, l);\n        L.push('| ' + [celda(l.codigo || '—'), celda(l.fecha), '×' + nn(l.factor), celda(l.operador), l.masaObtenida != null ? nn(l.masaObtenida) : '—', r.porcentaje != null ? nn(r.porcentaje, {dec: 1}) + ' %' : '—']\n          .concat(rn ? [l.resultado != null ? nn(l.resultado) : '—'] : []).join(' | ') + ' |');\n      }\n      L.push('');\n    }\n    const k = Seguridad.costo(p);\n    if (k.filas.length) L.push('## Costo de reactivos', '', k.explicacion, '');\n    if (p.literatura.length) {\n      L.push('## Condiciones publicadas', '', '| Parámetro | Intervalo | Fuentes |', '|---|---|---|');\n      for (const c of p.literatura) L.push('| ' + [celda(c.parametro + (c.unidad ? ' (' + c.unidad + ')' : '')), c.bajo != null || c.alto != null ? nn(c.bajo) + ' – ' + nn(c.alto) : celda(c.niveles.join(', ') || '—'),\n        celda(c.fuentes.map(f => f.doi || f.cita).filter(Boolean).join('; ') || '—')].join(' | ') + ' |');\n      L.push('');\n    }\n    if (p.notas) L.push('## Notas', '', p.notas, '');\n    const sec = seccion(p, o.idioma || 'es');\n    if (sec.length) {\n      L.push('## Sección de métodos (' + (o.idioma === 'en' ? 'inglés' : 'español') + ')', '');\n      for (const b of sec) L.push('**' + b.titulo + '.** ' + b.texto, '');\n    }\n    L.push('---', '', '_Generado con Erlen Methods ' + (o.version || '') + ' el ' + (o.fecha || ahora().slice(0, 10)) + '. Revisa cada cantidad antes de pesar._', '');\n    return L.join('\\n');\n  }\n\n  return {seccion, textoPlano, markdown, materiales, procedimiento, caracterizacion, parametros};\n})();\n",
  "src/js/13-versiones.js": "/* ==== 13-versiones.js ==== */\n'use strict';\n/* ================= versiones del protocolo =================\n   Una versión es una instantánea con fecha y nota («subí el pH a 10»). Las\n   diferencias entre dos versiones se dicen en frases, campo por campo y\n   elemento por elemento (por su id, no por su posición: mover un paso no es\n   cambiarlo). Las versiones no guardan los lotes ni otras versiones. */\n\nconst Versiones = (() => {\n  const CAMPOS_GENERALES = {flujo:'modo y dependencias del flujo', titulo: 'título', tipo: 'tipo', objetivo: 'objetivo', autores: 'autoría', referencia: 'referencia', escala: 'escala', rendimientoTeorico: 'rendimiento teórico',\n    productoFormula: 'fórmula del producto', equipos: 'equipos', notas: 'notas', sinPurificar: '«sin purificación adicional»', resultadoNombre: 'resultado del lote', resultadoUnidad: 'unidad del resultado'};\n  const CAMPOS = {\n    reactivos: {nombre: 'nombre', formula: 'fórmula', pureza: 'pureza', proveedor: 'proveedor', cantidad: 'cantidad', unidad: 'unidad', rol: 'función', densidad: 'densidad', precio: 'precio'},\n    disoluciones: {nombre: 'nombre', reactivo: 'soluto', concentracion: 'concentración', volumen: 'volumen', disolvente: 'disolvente'},\n    pasos: {dependeDe:'dependencias',texto: 'texto', temperatura: 'temperatura', tiempo: 'tiempo', unidadTiempo: 'unidad de tiempo', ph: 'pH', agitacion: 'agitación', atmosfera: 'atmósfera', critico: 'crítico'},\n    seguridad: {texto: 'texto'}\n  };\n  const SECCION = {reactivos: 'Reactivos', disoluciones: 'Disoluciones', pasos: 'Procedimiento', seguridad: 'Seguridad', caracterizacion: 'Caracterización', literatura: 'Condiciones bibliográficas',placas:'Placas',muestras:'Muestras',secuencias:'Secuencias',referencias:'Bibliografía',adjuntos:'Adjuntos',analisis:'Análisis'};\n\n  function instantanea(p, nota) {\n    const s = Protocolo.definicion(p);\n    return {id: uid('v'), fecha: ahora(), nota: String(nota || '').slice(0, 300), protocolo: s};\n  }\n  const v = x => (x == null || x === '' ? '—' : typeof x === 'boolean' ? (x ? 'sí' : 'no') : typeof x === 'number' ? numero(x) : typeof x === 'object' ? '«' + JSON.stringify(x).slice(0, 160) + '»' : '«' + String(x).slice(0, 80) + '»');\n  const nombreDe = (clave, x, i) => clave === 'pasos' ? 'paso ' + (i + 1) : clave === 'caracterizacion' ? (DATOS.tecnicas[x.tecnica] || {}).corto || x.tecnica : (x.nombre || x.formula || (x.texto || '').slice(0, 40) || 'elemento ' + (i + 1));\n\n  function diferencias(a, b) {\n    const out = [];\n    for (const [k, etq] of Object.entries(CAMPOS_GENERALES)) {\n      if (JSON.stringify(a[k] ?? null) !== JSON.stringify(b[k] ?? null)) out.push({seccion: 'Datos generales', tipo: 'cambiado', texto: 'Cambió ' + etq + ': ' + v(a[k]) + ' → ' + v(b[k]) + '.'});\n    }\n    for (const clave of ['reactivos', 'disoluciones', 'pasos', 'caracterizacion', 'seguridad', 'literatura','placas','muestras','secuencias','referencias','adjuntos','analisis']) {\n      const la = a[clave] || [], lb = b[clave] || [];\n      const pa = new Map(la.map((x, i) => [x.id, [x, i]])), pb = new Map(lb.map((x, i) => [x.id, [x, i]]));\n      for (const [id, [x, i]] of pb) if (!pa.has(id)) out.push({seccion: SECCION[clave], tipo: 'añadido', texto: 'Se añadió ' + nombreDe(clave, x, i) + '.'});\n      for (const [id, [x, i]] of pa) if (!pb.has(id)) out.push({seccion: SECCION[clave], tipo: 'quitado', texto: 'Se quitó ' + nombreDe(clave, x, i) + '.'});\n      for (const [id, [x, i]] of pa) {\n        if (!pb.has(id)) continue;\n        const [y, j] = pb.get(id);\n        const claves = new Set([...Object.keys(x), ...Object.keys(y)]);\n        for (const k of claves) {\n          if (k === 'id') continue;\n          const etq = (CAMPOS[clave] || {})[k] || k;\n          if (JSON.stringify(x[k] ?? null) !== JSON.stringify(y[k] ?? null)) out.push({seccion: SECCION[clave], tipo: 'cambiado',\n            texto: nombreDe(clave, y, j) + ': ' + etq + ' ' + v(x[k]) + ' → ' + v(y[k]) + '.'});\n        }\n        if (clave === 'pasos' && i !== j) out.push({seccion: SECCION[clave], tipo: 'movido', texto: 'El paso ' + (i + 1) + ' pasó a ser el ' + (j + 1) + '.'});\n      }\n    }\n    return out;\n  }\n\n  return {instantanea, diferencias};\n})();\n",
  "src/js/14-exportar.js": "/* ==== 14-exportar.js ==== */\n'use strict';\n/* ================= exportar e importar =================\n   Salidas: la sección de métodos en LaTeX (mhchem para las fórmulas), en\n   Word (.docx), el paquete .eln para cuadernos electrónicos (RO-Crate 1.2) y\n   los parámetros del protocolo como factores para Erlen DoE\n   (erlen-doe-factores-v1, el mismo archivo que DoE ya abre desde Lens).\n   Entradas: resultados de corridas en CSV (de DoE o de una hoja) como lotes,\n   un párrafo experimental como borrador de protocolo y los factores\n   publicados que exporta Erlen Lens como condiciones de la literatura.\n\n   El .docx y el .eln se comprimen con fflate. PapaParse lee el CSV; no convierte tipos ni ejecuta trabajadores externos. */\n\nconst Exportar = (() => {\n  /* ---------- LaTeX ---------- */\n  const SUB = '₀₁₂₃₄₅₆₇₈₉', SUP = {'⁰': '0', '¹': '1', '²': '2', '³': '3', '⁴': '4', '⁵': '5', '⁶': '6', '⁷': '7', '⁸': '8', '⁹': '9', '⁻': '-', '⁺': '+'};\n  function escapaLatex(s) {\n    return String(s)\n      .replace(/\\\\/g, '\\\\textbackslash{}').replace(/([%&#_{}$])/g, '\\\\$1').replace(/~/g, '\\\\textasciitilde{}').replace(/\\^/g, '\\\\textasciicircum{}');\n  }\n  /* Fórmulas con subíndices Unicode → \\ce{…}; exponentes, griegas y Å a\n     comandos, para que compile también con pdfLaTeX. */\n  /* Una fórmula es una racha de letras, dígitos, subíndices, corchetes,\n     paréntesis y «·» que empieza en mayúscula o paréntesis y lleva al menos\n     un subíndice. El paréntesis de la frase («(H₂O)», «N₂)») no es de la\n     fórmula: se separa si queda desparejado. */\n  function marcaFormulas(s) {\n    return s.replace(/[A-Z(\\[][A-Za-z0-9₀-₉()\\[\\]·]*/g, m => {\n      if (!/[₀-₉]/.test(m)) return m;\n      let antes = '', despues = '', f = m;\n      const cuenta = (t, c) => t.split(c).length - 1;\n      /* «(» inicial: si su pareja es el último carácter, es de la frase\n         («(H₂O)»); si no se cierra, también («(Zn(NO₃)₂·6H₂O, …»). */\n      if (f.startsWith('(')) {\n        let nivel = 0, pareja = -1;\n        for (let k = 0; k < f.length; k++) { if (f[k] === '(') nivel++; else if (f[k] === ')' && --nivel === 0) { pareja = k; break; } }\n        if (pareja === -1) { antes = '('; f = f.slice(1); }\n        else if (pareja === f.length - 1) { antes = '('; despues = ')'; f = f.slice(1, -1); }\n      }\n      while (f.endsWith(')') && cuenta(f, ')') > cuenta(f, '(')) { despues = ')' + despues; f = f.slice(0, -1); }\n      if (!/^[A-Z(\\[]/.test(f) || !/[₀-₉]/.test(f)) return m;\n      return antes + '\\\\ce{' + f.replace(/[₀-₉]/g, c => String(SUB.indexOf(c))).replace(/·/g, '.') + '}' + despues;\n    });\n  }\n  function aLatex(texto) {\n    let s = escapaLatex(texto);\n    s = marcaFormulas(s);\n    s = s.replace(/[⁰¹²³⁴⁵⁶⁷⁸⁹⁻⁺]+/g, m => '\\\\textsuperscript{' + [...m].map(c => SUP[c]).join('') + '}');\n    const GR = {'λ': '\\\\ensuremath{\\\\lambda}', 'θ': '\\\\ensuremath{\\\\theta}', 'α': '\\\\ensuremath{\\\\alpha}', 'β': '\\\\ensuremath{\\\\beta}', 'Δ': '\\\\ensuremath{\\\\Delta}', 'µ': '\\\\textmu{}', 'μ': '\\\\textmu{}', 'Å': '\\\\AA{}', '±': '\\\\ensuremath{\\\\pm}', '→': '\\\\ensuremath{\\\\rightarrow}', '×': '\\\\ensuremath{\\\\times}', '−': '\\\\ensuremath{-}', '·': '\\\\ensuremath{\\\\cdot}'};\n    s = s.replace(/[λθαβΔµμÅ±→×−·]/g, c => GR[c]);\n    s = s.replace(/°C/g, '\\\\textdegree{}C').replace(/°/g, '\\\\textdegree{}');\n    return s;\n  }\n  function latex(p, opc) {\n    const o = opc || {}, idioma = o.idioma === 'en' ? 'en' : 'es';\n    const bloques = Redaccion.seccion(p, idioma);\n    const cuerpo = bloques.map(b => '\\\\subsection*{' + aLatex(b.titulo) + '}\\n' + aLatex(b.texto) + '\\n').join('\\n');\n    if (o.fragmento) return cuerpo;\n    return ['% Generado con Erlen Methods ' + (o.version || '') + '. Compila con pdfLaTeX, XeLaTeX o LuaLaTeX.',\n      '\\\\documentclass[11pt]{article}', '\\\\usepackage[utf8]{inputenc}', '\\\\usepackage[T1]{fontenc}', '\\\\usepackage{textcomp}', '\\\\usepackage[version=4]{mhchem}',\n      '\\\\usepackage[' + (idioma === 'en' ? 'english' : 'spanish') + ']{babel}', '\\\\begin{document}', '\\\\section*{' + (idioma === 'en' ? 'Experimental' : 'Parte experimental') + '}', cuerpo, '\\\\end{document}', ''].join('\\n');\n  }\n\n  /* ---------- ZIP «stored» y .docx ---------- */\n  const TABLA_CRC = (() => { const t = new Uint32Array(256); for (let n = 0; n < 256; n++) { let c = n; for (let k = 0; k < 8; k++) c = c & 1 ? 0xEDB88320 ^ (c >>> 1) : c >>> 1; t[n] = c >>> 0; } return t; })();\n  function crc32(bytes) { let c = 0xFFFFFFFF; for (let i = 0; i < bytes.length; i++) c = TABLA_CRC[(c ^ bytes[i]) & 0xFF] ^ (c >>> 8); return (c ^ 0xFFFFFFFF) >>> 0; }\n  const utf8 = s => new TextEncoder().encode(s);\n  function zip(archivos) {\n    return window.fflate.zipSync(Object.fromEntries(archivos.map(([nombre, contenido]) =>\n      [nombre, [typeof contenido === 'string' ? utf8(contenido) : contenido, {mtime: new Date(1980, 0, 1), level: 6}]])));\n  }\n  const xml = s => String(s).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n  const parrafo = (texto, estilo) => '<w:p>' + (estilo ? '<w:pPr><w:pStyle w:val=\"' + estilo + '\"/></w:pPr>' : '') + '<w:r><w:t xml:space=\"preserve\">' + xml(texto) + '</w:t></w:r></w:p>';\n  function tablaDocx(cabecera, filas) {\n    const celda = (t, neg) => '<w:tc><w:tcPr><w:tcW w:w=\"0\" w:type=\"auto\"/></w:tcPr><w:p><w:r>' + (neg ? '<w:rPr><w:b/></w:rPr>' : '') + '<w:t xml:space=\"preserve\">' + xml(t) + '</w:t></w:r></w:p></w:tc>';\n    const borde = '<w:tblBorders>' + ['top', 'bottom', 'insideH'].map(b => '<w:' + b + ' w:val=\"single\" w:sz=\"4\" w:space=\"0\" w:color=\"808080\"/>').join('') + '</w:tblBorders>';\n    return '<w:tbl><w:tblPr><w:tblW w:w=\"0\" w:type=\"auto\"/>' + borde + '</w:tblPr>'\n      + '<w:tr>' + cabecera.map(c => celda(c, true)).join('') + '</w:tr>' + filas.map(f => '<w:tr>' + f.map(c => celda(c == null ? '' : String(c))).join('') + '</w:tr>').join('') + '</w:tbl>' + parrafo('');\n  }\n  function docx(p, opc) {\n    const o = opc || {}, idioma = o.idioma === 'en' ? 'en' : 'es', f = p.escala || 1;\n    const partes = [parrafo(p.titulo || (idioma === 'en' ? 'Untitled protocol' : 'Protocolo sin título'), 'Titulo')];\n    if (p.objetivo) partes.push(parrafo(p.objetivo));\n    if (p.reactivos.length) {\n      partes.push(parrafo(idioma === 'en' ? 'Reagents' : 'Reactivos', 'Encabezado1'));\n      partes.push(tablaDocx(idioma === 'en' ? ['Reagent', 'Formula', 'Purity (%)', 'Supplier', 'Amount', 'To weigh (g)'] : ['Reactivo', 'Fórmula', 'Pureza (%)', 'Proveedor', 'Cantidad', 'A pesar (g)'],\n        p.reactivos.map(r => { const g = Protocolo.masaAPesar(r, f); return [r.nombre, Formula.bonita(r.formula), r.pureza != null ? numero(r.pureza, {idioma}) : '', r.proveedor, r.cantidad != null ? numero(r.cantidad * f, {idioma}) + ' ' + r.unidad : '', g != null ? numero(g, {idioma}) : '']; })));\n    }\n    for (const b of Redaccion.seccion(p, idioma)) { partes.push(parrafo(b.titulo, 'Encabezado1')); partes.push(parrafo(b.texto)); }\n    partes.push(parrafo((idioma === 'en' ? 'Generated with Erlen Methods ' : 'Generado con Erlen Methods ') + (o.version || '') + '.', 'Nota'));\n    const documento = '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><w:document xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\"><w:body>'\n      + partes.join('') + '<w:sectPr><w:pgSz w:w=\"11906\" w:h=\"16838\"/><w:pgMar w:top=\"1417\" w:right=\"1417\" w:bottom=\"1417\" w:left=\"1417\" w:header=\"709\" w:footer=\"709\" w:gutter=\"0\"/></w:sectPr></w:body></w:document>';\n    const estilo = (id, nombre, tam, neg) => '<w:style w:type=\"paragraph\" w:styleId=\"' + id + '\"><w:name w:val=\"' + nombre + '\"/><w:basedOn w:val=\"Normal\"/><w:pPr><w:spacing w:before=\"240\" w:after=\"120\"/></w:pPr><w:rPr>' + (neg ? '<w:b/>' : '') + '<w:sz w:val=\"' + tam + '\"/></w:rPr></w:style>';\n    const estilos = '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><w:styles xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\">'\n      + '<w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:ascii=\"Cambria\" w:hAnsi=\"Cambria\" w:cs=\"Cambria\"/><w:sz w:val=\"22\"/><w:lang w:val=\"' + (idioma === 'en' ? 'en-US' : 'es-ES') + '\"/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:spacing w:after=\"120\" w:line=\"276\" w:lineRule=\"auto\"/></w:pPr></w:pPrDefault></w:docDefaults>'\n      + '<w:style w:type=\"paragraph\" w:default=\"1\" w:styleId=\"Normal\"><w:name w:val=\"Normal\"/></w:style>'\n      + estilo('Titulo', 'Title', 36, false) + estilo('Encabezado1', 'heading 1', 28, true) + estilo('Nota', 'Nota', 18, false) + '</w:styles>';\n    return zip([\n      ['[Content_Types].xml', '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\"><Default Extension=\"rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/><Default Extension=\"xml\" ContentType=\"application/xml\"/><Override PartName=\"/word/document.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml\"/><Override PartName=\"/word/styles.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml\"/></Types>'],\n      ['_rels/.rels', '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\"><Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\" Target=\"word/document.xml\"/></Relationships>'],\n      ['word/_rels/document.xml.rels', '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\"><Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles\" Target=\"styles.xml\"/></Relationships>'],\n      ['word/document.xml', documento],\n      ['word/styles.xml', estilos]\n    ]);\n  }\n\n  /* ---------- paquete .eln (RO-Crate 1.2 / The ELN Consortium) ---------- */\n  const UI_nombreArchivo = s => (typeof UI !== 'undefined' && UI.nombreArchivo\n    ? UI.nombreArchivo(s)\n    : (String(s || 'protocolo').normalize('NFD').replace(/[̀-ͯ]/g, '').replace(/[^A-Za-z0-9]+/g, '-').replace(/^-|-$/g, '').toLowerCase().slice(0, 60) || 'protocolo'));\n\n  async function eln(p, opc) {\n    const o = opc || {};\n    const slug = UI_nombreArchivo(p.titulo || 'protocolo');\n    const root = slug + '.eln/';\n    const exp = slug + '/';\n    const ahoraIso = o.ahora || o.fecha || new Date().toISOString();\n    const hoyFecha = ahoraIso.slice(0, 10);\n\n    const protocolJsonBytes = utf8(JSON.stringify(p, null, 2) + '\\n');\n    const protocolMdBytes = utf8(Redaccion.markdown(p, o));\n    const tieneLotes = Boolean(p.lotes && p.lotes.length);\n    const batchesCsvBytes = tieneLotes ? utf8(Lotes.csv(p)) : null;\n\n    const subtle = (typeof crypto !== 'undefined' ? crypto : (typeof globalThis !== 'undefined' ? globalThis.crypto : null))?.subtle;\n    if (!subtle) throw new Error('crypto.subtle no está disponible para calcular el hash SHA-256.');\n    const sha256Hex = async bytes => {\n      const hash = await subtle.digest('SHA-256', bytes);\n      return Array.from(new Uint8Array(hash)).map(b => b.toString(16).padStart(2, '0')).join('');\n    };\n\n    const protocolJsonSha = await sha256Hex(protocolJsonBytes);\n    const protocolMdSha = await sha256Hex(protocolMdBytes);\n    const batchesCsvSha = tieneLotes ? await sha256Hex(batchesCsvBytes) : null;\n\n    const expHasPart = [\n      {'@id': './' + slug + '/protocol.json'},\n      {'@id': './' + slug + '/protocol.md'}\n    ];\n    if (tieneLotes) expHasPart.push({'@id': './' + slug + '/batches.csv'});\n\n    const expNode = {\n      '@id': './' + slug + '/',\n      '@type': 'Dataset',\n      name: p.titulo || 'Protocolo sin título',\n      dateCreated: p.creado,\n      dateModified: p.modificado,\n      text: p.objetivo || '',\n      hasPart: expHasPart\n    };\n\n    const autor = (p.autores || '').trim();\n    if (autor) expNode.author = {'@id': '#author'};\n\n    const filesGraph = [\n      {\n        '@id': './' + slug + '/protocol.json',\n        '@type': 'File',\n        name: 'protocol.json',\n        encodingFormat: 'application/json',\n        contentSize: String(protocolJsonBytes.length),\n        sha256: protocolJsonSha\n      },\n      {\n        '@id': './' + slug + '/protocol.md',\n        '@type': 'File',\n        name: 'protocol.md',\n        encodingFormat: 'text/markdown',\n        contentSize: String(protocolMdBytes.length),\n        sha256: protocolMdSha\n      }\n    ];\n    if (tieneLotes) {\n      filesGraph.push({\n        '@id': './' + slug + '/batches.csv',\n        '@type': 'File',\n        name: 'batches.csv',\n        encodingFormat: 'text/csv',\n        contentSize: String(batchesCsvBytes.length),\n        sha256: batchesCsvSha\n      });\n    }\n\n    const graph = [\n      {\n        '@id': 'ro-crate-metadata.json',\n        '@type': 'CreativeWork',\n        about: {'@id': './'},\n        conformsTo: {'@id': 'https://w3id.org/ro/crate/1.2'},\n        dateCreated: ahoraIso,\n        sdPublisher: {'@id': 'https://www.erlensuite.com'}\n      },\n      {\n        '@id': 'https://www.erlensuite.com',\n        '@type': 'Organization',\n        name: 'Erlen Suite',\n        url: 'https://www.erlensuite.com'\n      },\n      {\n        '@id': './',\n        '@type': 'Dataset',\n        name: p.titulo || 'Protocolo sin título',\n        description: p.objetivo || '',\n        datePublished: hoyFecha,\n        hasPart: [{'@id': './' + slug + '/'}]\n      },\n      expNode\n    ];\n    if (autor) {\n      graph.push({\n        '@id': '#author',\n        '@type': 'Person',\n        name: autor\n      });\n    }\n    graph.push(...filesGraph);\n\n    const crate = {\n      '@context': 'https://w3id.org/ro/crate/1.2/context',\n      '@graph': graph\n    };\n\n    const archivos = [\n      [root + 'ro-crate-metadata.json', JSON.stringify(crate, null, 2) + '\\n'],\n      [root + exp, ''],\n      [root + exp + 'protocol.json', protocolJsonBytes],\n      [root + exp + 'protocol.md', protocolMdBytes]\n    ];\n    if (tieneLotes) {\n      archivos.push([root + exp + 'batches.csv', batchesCsvBytes]);\n    }\n\n    return zip(archivos);\n  }\n\n  /* ---------- factores para Erlen DoE ----------\n     seleccion: [{pasoId, campo, bajo, alto}] (campo: temperatura, tiempo, ph,\n     agitacion) y/o [{reactivoId, bajo, alto}] para la cantidad de un reactivo. */\n  const CAMPOS_PASO = {temperatura: ['Temperatura', '°C'], tiempo: ['Tiempo', null], ph: ['pH', ''], agitacion: ['Agitación', 'rpm']};\n  function factoresDoE(p, seleccion) {\n    const factores = [], avisos = [];\n    (seleccion || []).forEach(s => {\n      if (!(isFinite(s.bajo) && isFinite(s.alto)) || s.bajo === s.alto) { avisos.push('Un factor necesita dos niveles distintos: se omitió uno sin intervalo.'); return; }\n      if (s.pasoId) {\n        const i = p.pasos.findIndex(x => x.id === s.pasoId), paso = p.pasos[i], c = CAMPOS_PASO[s.campo];\n        if (!paso || !c) return;\n        factores.push({key: 'paso' + (i + 1) + '-' + s.campo, name: c[0] + ' (paso ' + (i + 1) + ')', unit: c[1] == null ? paso.unidadTiempo : c[1], type: 'continuous',\n          low: Math.min(s.bajo, s.alto), high: Math.max(s.bajo, s.alto), provenance: [{value: paso[s.campo], cite: 'Protocolo «' + (p.titulo || 'sin título') + '», paso ' + (i + 1), page: null, doi: '', sample: '', cardId: ''}]});\n      } else if (s.reactivoId) {\n        const r = p.reactivos.find(x => x.id === s.reactivoId);\n        if (!r) return;\n        factores.push({key: 'cantidad-' + (r.formula || r.nombre || r.id), name: 'Cantidad de ' + (r.nombre || r.formula), unit: r.unidad, type: 'continuous',\n          low: Math.min(s.bajo, s.alto), high: Math.max(s.bajo, s.alto), provenance: [{value: r.cantidad, cite: 'Protocolo «' + (p.titulo || 'sin título') + '»', page: null, doi: '', sample: '', cardId: ''}]});\n      }\n    });\n    const respuestas = p.resultadoNombre ? [{key: 'resultado', name: p.resultadoNombre, unit: p.resultadoUnidad || ''}] : [];\n    return {archivo: {format: 'erlen-doe-factores-v1', project: {title: p.titulo || 'Protocolo sin título', source: 'Erlen Methods'}, factors: factores, responses: respuestas,\n      sources: [{cite: 'Protocolo «' + (p.titulo || 'sin título') + '» (Erlen Methods)', doi: /^10\\.\\d{4,}\\//.test(p.referencia || '') ? p.referencia : ''}],\n      note: 'Los intervalos los fijó quien exportó el protocolo; el valor de procedencia es el del protocolo base.'}, avisos};\n  }\n\n  /* ---------- CSV ---------- */\n  function leeCSV(texto) {\n    const t = String(texto || '').replace(/^\\uFEFF/, '');\n    const resultado = window.Papa.parse(t, {skipEmptyLines: 'greedy', dynamicTyping: false, worker: false,\n      delimitersToGuess: [';', '\\t', ',']});\n    if (resultado.errors.length) return {error: 'El CSV no se pudo leer: ' + resultado.errors.map(e =>\n      (e.row != null ? 'fila ' + (e.row + 1) + ': ' : '') + e.message).join('; ')};\n    const filas = resultado.data;\n    if (filas.length < 2) return {error: 'El CSV necesita una fila de encabezados y al menos una fila de datos.'};\n    const incompleta = filas.findIndex(f => f.length !== filas[0].length);\n    if (incompleta >= 0) return {error: 'La fila ' + (incompleta + 1) + ' tiene un número de columnas distinto del encabezado.'};\n    return {columnas: filas[0].map(x => x.trim()), filas: filas.slice(1), separador: resultado.meta.delimiter};\n  }\n\n  const aNumero = s => { const v = UI_leeNumero(s); return v; };\n  function UI_leeNumero(s) { const t = String(s == null ? '' : s).trim().replace(',', '.'); if (t === '') return null; const v = Number(t); return isFinite(v) ? v : null; }\n  /* mapeo: {codigo, fecha, resultado, masa: i|null, parametros: [{col, pasoId, campo}]} */\n  function lotesDesdeCSV(p, csv, mapeo) {\n    const avisos = [];\n    const lotes = csv.filas.map((f, k) => {\n      const l = Protocolo.nuevoLote({codigo: mapeo.codigo != null ? String(f[mapeo.codigo] || '').trim() : 'Corrida ' + (k + 1), fecha: '', factor: p.escala || 1});\n      if (mapeo.fecha != null && String(f[mapeo.fecha] || '').trim()) {\n        const fecha = String(f[mapeo.fecha]).trim(), instante = Date.parse(fecha + 'T00:00:00Z');\n        if (/^\\d{4}-\\d{2}-\\d{2}$/.test(fecha) && Number.isFinite(instante) && new Date(instante).toISOString().slice(0, 10) === fecha) l.fecha = fecha;\n        else avisos.push('Fila ' + (k + 1) + ': la fecha necesita un día válido en formato AAAA-MM-DD.');\n      }\n      for (const [clave, campo] of [['resultado', 'resultado'], ['masa', 'masaObtenida']]) if (mapeo[clave] != null) {\n        const texto = String(f[mapeo[clave]] ?? '').trim(), valor = aNumero(texto);\n        if (texto && (valor == null || (clave === 'masa' && valor < 0))) avisos.push('Fila ' + (k + 1) + ': «' + csv.columnas[mapeo[clave]] + '» no es una cantidad válida.');\n        else l[campo] = valor;\n      }\n      for (const m of mapeo.parametros || []) {\n        const v = aNumero(f[m.col]);\n        if (v == null) { if (String(f[m.col] ?? '').trim()) avisos.push('Fila ' + (k + 1) + ': «' + csv.columnas[m.col] + '» no es un número.'); continue; }\n        (l.parametros[m.pasoId] = l.parametros[m.pasoId] || {})[m.campo] = v;\n      }\n      return l;\n    });\n    return {lotes, avisos};\n  }\n\n  /* ---------- de un párrafo experimental a un borrador ----------\n     Reconoce cantidades con unidad seguidas de «de <reactivo>», fórmulas\n     entre paréntesis y parámetros (°C, tiempos, pH, rpm) por frase. Es un\n     borrador: todo lo extraído se revisa antes de usarlo. */\n  const UNID = {mg: 'mg', g: 'g', kg: 'g', ml: 'mL', mL: 'mL', 'µL': 'µL', 'μL': 'µL', uL: 'µL', L: 'mL', mmol: 'mmol', mol: 'mol'};\n  const n = s => parseFloat(String(s).replace(',', '.'));\n  function extrae(texto) {\n    const frases = String(texto || '').replace(/\\s+/g, ' ').split(/(?<=[.;])\\s+(?=[A-ZÁÉÍÓÚ(0-9])/).map(s => s.trim()).filter(Boolean);\n    const reactivos = [], pasos = [], vistos = new Map();\n    const reQ = /(\\d+(?:[.,]\\d+)?)\\s*(mg|kg|g|mL|ml|µL|μL|uL|L|mmol|mol)\\b\\.?\\s+(?:de|del|of)\\s+([^,;:()]+?)(?:\\s*\\(([^)]*)\\))?(?=[,;.]|\\s+(?:y|and|en|in|a|at|con|with|se|was|were)\\b|$)/g;\n    for (const fr of frases) {\n      let m;\n      reQ.lastIndex = 0;\n      while ((m = reQ.exec(fr))) {\n        let nombre = m[3].trim().replace(/^(?:la|el|los|las|the)\\s+/i, '');\n        let formula = '';\n        if (m[4]) { const cand = m[4].split(/[,;]/)[0].trim(); if (/[A-Z]/.test(cand) && !Formula.lee(cand).error) formula = cand; }\n        if (!formula && /^[A-Z][A-Za-z0-9()·.*]*$/.test(nombre) && !Formula.lee(nombre).error) formula = nombre;\n        let cantidad = n(m[1]), unidad = UNID[m[2]] || m[2];\n        if (m[2] === 'kg') cantidad *= 1000;\n        if (m[2] === 'L') cantidad *= 1000;\n        const clave = (formula || nombre).toLowerCase();\n        if (vistos.has(clave)) continue;\n        const pureza = m[4] && /(\\d+(?:[.,]\\d+)?)\\s*%/.exec(m[4]);\n        const r = Protocolo.nuevoReactivo({nombre: formula && nombre === formula ? '' : nombre, formula, cantidad, unidad, pureza: pureza ? n(pureza[1]) : null});\n        vistos.set(clave, r);\n        reactivos.push(r);\n      }\n      const s = Protocolo.nuevoPaso({texto: fr.replace(/[.;]$/, '')});\n      const t = /(-?\\d+(?:[.,]\\d+)?)\\s*°\\s*C/.exec(fr); if (t) s.temperatura = n(t[1]);\n      const ti = /(\\d+(?:[.,]\\d+)?)\\s*(h|horas?|hours?|min|minutos?|minutes?|s\\b|segundos?|seconds?|d\\b|días?|days?)/i.exec(fr);\n      if (ti) { s.tiempo = n(ti[1]); const u = ti[2].toLowerCase(); s.unidadTiempo = /^h|^hora|^hour/.test(u) ? 'h' : /^min/.test(u) ? 'min' : /^d|^día|^day/.test(u) ? 'd' : 's'; }\n      const ph = /\\bpH\\s*(?:=|de|of|~|≈)?\\s*(\\d+(?:[.,]\\d+)?)/.exec(fr); if (ph) s.ph = n(ph[1]);\n      const rpm = /(\\d+(?:[.,]\\d+)?)\\s*rpm/i.exec(fr); if (rpm) s.agitacion = n(rpm[1]);\n      const atm = /\\b(?:bajo|en|under)\\s+(?:atmósfera\\s+de\\s+)?(N2|N₂|Ar|argón|argon|nitrógeno|nitrogen)\\b/i.exec(fr); if (atm) s.atmosfera = atm[1];\n      s.articulo = fr.replace(/[.;]$/, '');\n      pasos.push(s);\n    }\n    return {reactivos, pasos,\n      explicacion: 'Borrador: ' + reactivos.length + (reactivos.length === 1 ? ' reactivo' : ' reactivos') + ' y ' + pasos.length + (pasos.length === 1 ? ' paso' : ' pasos') + '. Revisa cada cantidad y cada parámetro contra el texto original: la extracción por patrones no entiende el contexto.'};\n  }\n\n  /* ---------- condiciones publicadas desde Erlen Lens ---------- */\n  function literaturaDesdeLens(texto) {\n    let d;\n    try { d = typeof texto === 'string' ? JSON.parse(texto.replace(/^\\uFEFF/, '')) : texto; } catch (e) { return {error: 'El archivo no es JSON válido.'}; }\n    if (!d || d.format !== 'erlen-doe-factores-v1') return {error: 'Se esperaba un archivo «erlen-doe-factores-v1» de Erlen Lens (Síntesis → Enviar a DoE…).'};\n    const filas = [];\n    for (const f of Array.isArray(d.factors) ? d.factors : []) {\n      const prov = Array.isArray(f.provenance) ? f.provenance : [];\n      filas.push({id: uid('c'), parametro: String(f.name || f.key || '').slice(0, 200), unidad: String(f.unit || '').slice(0, 40),\n        bajo: isFinite(f.low) && f.low !== null ? +f.low : null, alto: isFinite(f.high) && f.high !== null ? +f.high : null,\n        niveles: Array.isArray(f.levels) ? f.levels.map(String).slice(0, 20) : [],\n        fuentes: prov.slice(0, 20).map(q => ({valor: q.value == null ? null : String(q.value).slice(0, 80), cita: String(q.cite || '').slice(0, 300), pagina: q.page == null ? null : String(q.page).slice(0, 20), doi: String(q.doi || '').slice(0, 200)}))});\n    }\n    return {literatura: filas, explicacion: filas.length + (filas.length === 1 ? ' condición publicada' : ' condiciones publicadas') + ' con su procedencia. Son intervalos de la literatura, no valores recomendados.'};\n  }\n\n  return {latex, aLatex, docx, eln, zip, crc32, factoresDoE, leeCSV, lotesDesdeCSV, extrae, literaturaDesdeLens, CAMPOS_PASO};\n})();\n",
  "src/js/15-laboratorio.js": "/* ==== 15-laboratorio.js ==== */\n'use strict';\n/* ================= el laboratorio =================\n   Lo que no es de un protocolo sino del laboratorio: el inventario de\n   reactivos (existencias, apertura, caducidad) y los instrumentos y material\n   volumétrico con su calibración. Con eso, la lista de verificación previa\n   de un lote dice qué hay que pesar, si alcanza lo que hay en el estante,\n   qué equipo está fuera de calibración y qué precauciones tomar.\n\n   Formato: {format: 'erlen-methods-laboratorio-v1', inventario[], instrumentos[], moneda}. */\n\nconst Laboratorio = (() => {\n  const FORMATO = 'erlen-methods-laboratorio-v1';\n  const UNID = Object.assign(Object.create(null),{g: ['m', 1], mg: ['m', 1e-3], kg: ['m', 1e3], mL: ['v', 1], 'µL': ['v', 1e-3], L: ['v', 1e3], mol: ['n', 1], mmol: ['n', 1e-3]});\n  const texto = (v, n) => (v == null ? '' : String(v)).slice(0, n || 300);\n  const num = v => (v === '' || v == null || !isFinite(v) ? null : +v);\n  const fechaCorrecta=v=>{if(v==null || v==='')return true;if(typeof v!=='string' || !/^\\d{4}-\\d{2}-\\d{2}$/.test(v))return false;const [a,m,d]=v.split('-').map(Number),t=new Date(0);t.setUTCFullYear(a,m-1,d);return t.getUTCFullYear()===a && t.getUTCMonth()+1===m && t.getUTCDate()===d;};\n  const fecha = v => (typeof v === 'string' && /^\\d{4}-\\d{2}-\\d{2}$/.test(v) ? v : '');\n\n  const nuevo = () => ({format: FORMATO, inventario: [], instrumentos: [], movimientos: [], reservas: [], moneda: ''});\n  const nuevoArticulo = d => Object.assign({id: uid('i'), nombre: '', formula: '', cas: '', cantidad: null, unidad: 'g', ubicacion: '', lote: '', apertura: '', caducidad: '', archivado: false}, d || {});\n  const nuevoInstrumento = d => Object.assign({id: uid('e'), nombre: '', tipo: 'instrumento', identificador: '', nominal: null, tolerancia: null, unidad: '', ultimaCalibracion: '', proximaCalibracion: '', notas: ''}, d || {});\n\n  function sanea(bruto) {\n    if (!bruto || typeof bruto !== 'object') return nuevo();\n    const l = nuevo();\n    l.moneda = texto(bruto.moneda, 10);\n    l.inventario = (Array.isArray(bruto.inventario) ? bruto.inventario : []).filter(x => x && typeof x === 'object').slice(0, 5000).map(x => nuevoArticulo({\n      id: typeof x.id === 'string' && x.id ? x.id : uid('i'), nombre: texto(x.nombre, 200), formula: texto(x.formula, 200), cas: texto(x.cas, 40), cantidad: num(x.cantidad),\n      unidad: UNID[x.unidad] ? x.unidad : 'g', ubicacion: texto(x.ubicacion, 200), lote: texto(x.lote, 80), apertura: fecha(x.apertura), caducidad: fecha(x.caducidad),archivado:!!x.archivado}));\n    l.instrumentos = (Array.isArray(bruto.instrumentos) ? bruto.instrumentos : []).filter(x => x && typeof x === 'object').slice(0, 2000).map(x => nuevoInstrumento({\n      id: typeof x.id === 'string' && x.id ? x.id : uid('e'), nombre: texto(x.nombre, 200), tipo: x.tipo === 'volumetrico' ? 'volumetrico' : 'instrumento', identificador: texto(x.identificador, 80),\n      nominal: num(x.nominal), tolerancia: num(x.tolerancia), unidad: texto(x.unidad, 20), ultimaCalibracion: fecha(x.ultimaCalibracion), proximaCalibracion: fecha(x.proximaCalibracion), notas: texto(x.notas, 1000)}));\n    l.movimientos = (Array.isArray(bruto.movimientos) ? bruto.movimientos : []).filter(m => m && typeof m === 'object').map(m => ({id: texto(m.id), clave: texto(m.clave), articuloId: texto(m.articuloId), loteId: texto(m.loteId), fecha: texto(m.fecha), tipo:texto(m.tipo || 'consumo',30),cantidad: num(m.cantidad), unidad: texto(m.unidad, 20), motivo: texto(m.motivo, 1000), antes: num(m.antes), despues: num(m.despues),\n      ...(m.unidadAntes ? {unidadAntes:texto(m.unidadAntes,20)} : {}),...(m.unidadDespues ? {unidadDespues:texto(m.unidadDespues,20)} : {}),...(m.declarado!=null ? {declarado:num(m.declarado)} : {}),\n      ...(m.articulo && typeof m.articulo==='object' ? {articulo:Object.fromEntries(['nombre','formula','cas','lote','ubicacion'].map(k=>[k,texto(m.articulo[k],200)]))} : {})}));\n    l.reservas=(Array.isArray(bruto.reservas) ? bruto.reservas : []).filter(x=>x && x.id && x.articuloId && x.loteId && Number.isFinite(x.cantidad) && x.cantidad>0).map(x=>({id:texto(x.id),articuloId:texto(x.articuloId),loteId:texto(x.loteId),cantidad:x.cantidad,fecha:texto(x.fecha),estado:['activa','liberada','consumida'].includes(x.estado) ? x.estado : 'activa'}));\n    return l;\n  }\n\n  const dias = (a, b) => Math.round((Date.parse(a) - Date.parse(b)) / 86400000);\n  /* Un reactivo del protocolo se busca en el inventario por CAS, luego por\n     fórmula y luego por nombre. */\n  const clave = s => String(s || '').toLowerCase().replace(/\\s+/g, ' ').trim();\n  function busca(lab, r) {\n    const inv = lab.inventario.filter(x=>!x.archivado);\n    if (r.cas) { const x = inv.filter(a => a.cas && a.cas === r.cas); if (x.length) return x; }\n    if (r.formula) { const f = Formula.normaliza(r.formula); const x = inv.filter(a => a.formula && Formula.normaliza(a.formula) === f); if (x.length) return x; }\n    if (r.nombre) { const x = inv.filter(a => clave(a.nombre) === clave(r.nombre)); if (x.length) return x; }\n    return [];\n  }\n  /* Cantidad que pide el lote, expresada en la unidad del inventario. */\n  function necesario(r, factor, unidadInv) {\n    if (r.cantidad == null) return null;\n    const u = UNID[r.unidad], ui = UNID[unidadInv];\n    if (!u || !ui) return null;\n    const q = r.cantidad * factor;\n    if (u[0] === ui[0]) return q * u[1] / ui[1];\n    if (u[0] === 'n' && ui[0] === 'm') { const g = Protocolo.masaAPesar(r, factor); return g == null ? null : g / ui[1]; }\n    if (u[0] === 'v' && ui[0] === 'm' && r.densidad > 0) return q * u[1] * r.densidad / ui[1];\n    if (u[0] === 'm' && ui[0] === 'v' && r.densidad > 0) return q * u[1] / r.densidad / ui[1];\n    return null;\n  }\n  function existencias(p, lab, factor, hoy,loteId) {\n    const f = factor == null ? (p.escala || 1) : factor, d = hoy || ahora().slice(0, 10);\n    return p.reactivos.filter(r => r.rol !== 'disolvente' || r.cantidad != null).map(r => {\n      const hay = busca(lab, r);\n      const vigentes = hay.filter(a => !a.caducidad || a.caducidad >= d);\n      const unidad = vigentes.length ? vigentes[0].unidad : hay.length ? hay[0].unidad : null;\n      const disponible = unidad ? vigentes.filter(a => UNID[a.unidad][0] === UNID[unidad][0] && a.cantidad != null).reduce((s, a) => s + (a.cantidad-reservado(lab,a.id,loteId))*UNID[a.unidad][1]/UNID[unidad][1], 0) : null;\n      const falta = unidad ? necesario(r, f, unidad) : null;\n      const estado = !hay.length ? 'sinRegistro' : !vigentes.length ? 'caducado' : vigentes.some(a => a.cantidad == null && UNID[a.unidad][0] === UNID[unidad][0]) ? 'sinComparar' : falta == null || !Number.isFinite(falta) || !Number.isFinite(disponible) ? 'sinComparar' : disponible >= falta ? 'suficiente' : 'insuficiente';\n      return {id: r.id, nombre: r.nombre || Formula.bonita(r.formula), necesario: falta, disponible, unidad, estado,\n        ubicaciones: vigentes.map(a => a.ubicacion).filter(Boolean), caducados: hay.filter(a => a.caducidad && a.caducidad < d).length};\n    });\n  }\n  /* Cada consumo se confirma sobre un frasco concreto. La clave impide\n     descontar dos veces el mismo registro; la función nunca modifica lab. */\n  function reservado(lab,articuloId,loteExcluido) {return (lab.reservas || []).filter(x=>x.articuloId===articuloId && x.estado==='activa' && x.loteId!==loteExcluido).reduce((a,x)=>a+x.cantidad,0);}\n  const identidad=a=>Object.fromEntries(['nombre','formula','cas','lote','ubicacion'].map(k=>[k,a[k] || '']));\n  function mueve(lab,datos) {\n    const {articuloId,tipo,cantidad,motivo,clave:identificador}=datos;\n    if(!['entrada','devolucion','ajuste'].includes(tipo) || !identificador || !String(motivo || '').trim())return {error:'Indica tipo, identificador y motivo del movimiento.'};\n    const anterior=lab.movimientos.find(m=>m.clave===identificador);\n    if(anterior)return anterior.articuloId===articuloId && anterior.tipo===tipo && anterior.declarado===cantidad ? {laboratorio:lab,repetido:true} : {error:'Ese identificador pertenece a otro movimiento. No se modificó el inventario.'};\n    if(!Number.isFinite(cantidad) || cantidad<0 || (tipo!=='ajuste' && cantidad===0))return {error:'La cantidad debe ser finita y positiva; un ajuste puede dejar cero.'};\n    const a=lab.inventario.find(x=>x.id===articuloId);if(!a || a.archivado)return {error:'El frasco no existe o está archivado.'};\n    if(tipo!=='ajuste' && a.cantidad==null)return {error:'La cantidad inicial es desconocida. Registra primero un ajuste de recuento.'};\n    const despues=tipo==='ajuste' ? cantidad : a.cantidad+cantidad;\n    if(!Number.isFinite(despues))return {error:'La cantidad final excede el intervalo representable.'};\n    if(tipo!=='ajuste' && despues===a.cantidad)return {error:'La cantidad es demasiado pequeña frente a las existencias para registrarla con esta precisión.'};\n    if(despues<reservado(lab,articuloId))return {error:'El ajuste dejaría menos cantidad que la reservada. Libera reservas antes de ajustar.'};\n    const q=deepCopy(lab);q.inventario.find(x=>x.id===articuloId).cantidad=despues;\n    q.movimientos.push({id:uid('mov'),clave:identificador,articuloId,loteId:'',tipo,fecha:ahora(),cantidad:a.cantidad==null ? null : despues-a.cantidad,unidad:a.unidad,motivo:String(motivo).trim().slice(0,1000),antes:a.cantidad,despues,declarado:cantidad,articulo:identidad(a)});\n    return {laboratorio:q,explicacion:tipo==='ajuste' ? 'El recuento reemplaza la cantidad disponible y conserva el valor anterior, incluso si era desconocido.' : 'La cantidad se suma a las existencias en la unidad del frasco.'};\n  }\n  function reserva(lab,articuloId,loteId,cantidad,hoy) {\n    if(!loteId || !Number.isFinite(cantidad) || cantidad<=0)return {error:'Identifica el lote y una cantidad positiva y finita.'};\n    const a=lab.inventario.find(x=>x.id===articuloId);\n    if(!a || a.archivado || a.cantidad==null)return {error:'El frasco no tiene cantidad conocida o está archivado.'};\n    if(a.caducidad && a.caducidad<(hoy || ahora().slice(0,10)))return {error:'El frasco está caducado.'};\n    if((lab.reservas || []).some(x=>x.articuloId===articuloId && x.loteId===loteId && x.estado==='activa'))return {error:'Este lote ya tiene una reserva activa de ese frasco.'};\n    if(cantidad>a.cantidad-reservado(lab,articuloId))return {error:'No alcanza la cantidad libre de reservas.'};\n    const q=deepCopy(lab);q.reservas.push({id:uid('res'),articuloId,loteId,cantidad,fecha:ahora(),estado:'activa'});return {laboratorio:q};\n  }\n  function libera(lab,id) {\n    const q=deepCopy(lab),r=q.reservas.find(x=>x.id===id);if(!r || r.estado!=='activa')return {error:'La reserva ya no está activa.'};r.estado='liberada';return {laboratorio:q};\n  }\n  function consume(lab, datos) {\n    const {articuloId, loteId, cantidad, clave: claveMovimiento, motivo} = datos;\n    if (!claveMovimiento || !loteId) return {error: 'Identifica el lote y el consumo.'};\n    const anterior=(lab.movimientos || []).find(m => m.clave === claveMovimiento);\n    if(anterior)return anterior.articuloId===articuloId && anterior.loteId===loteId && anterior.cantidad===-cantidad ? {laboratorio:lab,repetido:true} : {error:'Ese identificador corresponde a otro consumo. No se modificó el inventario.'};\n    if (typeof cantidad !== 'number' || !Number.isFinite(cantidad) || cantidad <= 0) return {error: 'El consumo debe ser una cantidad positiva y finita.'};\n    const articulo = lab.inventario.find(a => a.id === articuloId);\n    if (!articulo || articulo.archivado || articulo.cantidad == null) return {error: 'El frasco no tiene una cantidad disponible registrada o está archivado.'};\n    if (cantidad > articulo.cantidad-reservado(lab,articuloId,loteId)) return {error: 'El consumo supera la cantidad disponible del frasco.'};\n    const copia = deepCopy(lab), a = copia.inventario.find(x => x.id === articuloId);\n    a.cantidad -= cantidad;\n    if(a.cantidad===articulo.cantidad)return {error:'El consumo es demasiado pequeño frente a las existencias para registrarlo con esta precisión.'};\n    const reserva=(copia.reservas || []).find(x=>x.articuloId===articuloId && x.loteId===loteId && x.estado==='activa');\n    if(reserva){if(cantidad>=reserva.cantidad)reserva.estado='consumida';else reserva.cantidad-=cantidad;}\n    copia.movimientos = copia.movimientos || [];\n    copia.movimientos.push({id: uid('m'), clave: claveMovimiento, articuloId, loteId, fecha: ahora(), tipo:'consumo', cantidad: -cantidad,\n      unidad: a.unidad, motivo: texto(motivo, 1000), antes: articulo.cantidad, despues: a.cantidad,articulo:identidad(articulo)});\n    return {laboratorio: copia, repetido: false};\n  }\n  function archiva(lab,id,archivado) {\n    const a=lab.inventario.find(x=>x.id===id);if(!a)return {error:'El frasco no existe.'};\n    if(archivado && reservado(lab,id)>0)return {error:'Libera las reservas activas antes de archivar el frasco.'};\n    const q=deepCopy(lab);q.inventario.find(x=>x.id===id).archivado=!!archivado;return {laboratorio:q};\n  }\n  function convierte(lab,id,unidad,motivo,identificador) {\n    const a=lab.inventario.find(x=>x.id===id),u=a && UNID[a.unidad],v=UNID[unidad];\n    if(!a || !u || !v || u[0]!==v[0] || a.unidad===unidad || !motivo || !identificador)return {error:'Elige otra unidad de la misma magnitud e indica el motivo.'};\n    if(lab.movimientos.some(x=>x.clave===identificador))return {error:'Ese identificador ya se utilizó.'};\n    const factor=u[1]/v[1],despues=a.cantidad==null ? null : a.cantidad*factor;\n    if(despues!=null && (!Number.isFinite(despues) || (a.cantidad>0 && despues===0)) || lab.reservas.some(r=>r.articuloId===id && (!Number.isFinite(r.cantidad*factor) || (r.cantidad>0 && r.cantidad*factor===0))))return {error:'La cantidad convertida excede el intervalo representable.'};\n    const q=deepCopy(lab),frasco=q.inventario.find(x=>x.id===id);frasco.unidad=unidad;frasco.cantidad=despues;\n    for(const r of q.reservas)if(r.articuloId===id)r.cantidad*=factor;\n    q.movimientos.push({id:uid('mov'),clave:identificador,articuloId:id,loteId:'',tipo:'conversionUnidad',fecha:ahora(),cantidad:null,unidad,unidadAntes:a.unidad,unidadDespues:unidad,motivo:texto(motivo,1000),antes:a.cantidad,despues,articulo:identidad(a)});\n    return {laboratorio:q,explicacion:'Se conserva la cantidad física; cambian su número y unidad. Las reservas se convierten con el mismo factor. Los movimientos anteriores conservan sus unidades originales.'};\n  }\n  function valida(lab) {\n    const errores=[];\n    if(!lab || lab.format!==FORMATO)return ['Formato de laboratorio desconocido.'];\n    for(const [k,tope] of [['inventario',5000],['instrumentos',2000],['movimientos',100000],['reservas',10000]]) {\n      if(!Array.isArray(lab[k]) || lab[k].length>tope){errores.push(k+' debe ser una lista de hasta '+tope+' registros.');continue;}\n      const ids=new Set();for(const x of lab[k]){if(!x || !x.id || ids.has(x.id))errores.push('Identificador inválido o repetido en '+k+'.');if(x)ids.add(x.id);}\n    }\n    if(errores.length)return errores;\n    for(const a of lab.inventario)if(!fechaCorrecta(a.apertura) || !fechaCorrecta(a.caducidad))errores.push('Apertura o caducidad inválida en '+a.id+'. Usa un día existente en AAAA-MM-DD.');\n    for(const e of lab.instrumentos)if(!fechaCorrecta(e.ultimaCalibracion) || !fechaCorrecta(e.proximaCalibracion))errores.push('Fecha de calibración inválida en '+e.id+'.');\n    for(const a of Array.isArray(lab.inventario) ? lab.inventario.filter(Boolean) : [])if(!UNID[a.unidad] || (a.cantidad!=null && (!Number.isFinite(a.cantidad) || a.cantidad<0)))errores.push('Cantidad o unidad inválida del frasco '+a.id+'.');\n    for(const r of Array.isArray(lab.reservas) ? lab.reservas.filter(Boolean) : [])if(!['activa','liberada','consumida'].includes(r.estado) || !Number.isFinite(r.cantidad) || r.cantidad<=0 || !r.loteId || !lab.inventario.some(x=>x && x.id===r.articuloId))errores.push('Reserva inválida: '+r.id+'.');\n    for(const a of Array.isArray(lab.inventario) ? lab.inventario.filter(Boolean) : [])if(a.cantidad!=null && reservado(lab,a.id)>a.cantidad)errores.push('Las reservas superan las existencias de '+a.id+'.');\n    return errores;\n  }\n\n  function alertas(lab, hoy) {\n    const d = hoy || ahora().slice(0, 10), out = [];\n    for (const a of lab.inventario.filter(x=>!x.archivado)) {\n      if (a.caducidad && a.caducidad < d) out.push({tipo: 'caducado', texto: (a.nombre || a.formula) + (a.lote ? ' (lote ' + a.lote + ')' : '') + ' caducó el ' + a.caducidad + '.'});\n      else if (a.caducidad && dias(a.caducidad, d) <= 30) out.push({tipo: 'porCaducar', texto: (a.nombre || a.formula) + ' caduca en ' + dias(a.caducidad, d) + ' días.'});\n    }\n    for (const e of lab.instrumentos) {\n      if (e.proximaCalibracion && e.proximaCalibracion < d) out.push({tipo: 'calibracion', texto: (e.nombre || 'Instrumento') + (e.identificador ? ' (' + e.identificador + ')' : '') + ': calibración vencida desde el ' + e.proximaCalibracion + '.'});\n      else if (e.proximaCalibracion && dias(e.proximaCalibracion, d) <= 30) out.push({tipo: 'porCalibrar', texto: (e.nombre || 'Instrumento') + ': calibrar antes del ' + e.proximaCalibracion + '.'});\n    }\n    return out;\n  }\n\n  /* ---------- lista de verificación previa ---------- */\n  function listaVerificacion(p, lab, factor, hoy,contexto) {\n    const f = factor == null ? (p.escala || 1) : factor;\n    const grupos = [];\n    const lote=contexto && contexto.lote,fecha=hoy || ahora().slice(0,10);\n    const exis = existencias(p, lab, f, fecha,lote && lote.id);\n    const ESTADO = {suficiente: 'hay suficiente', insuficiente: 'NO alcanza', caducado: 'caducado', sinRegistro: 'no está en el inventario', sinComparar: 'cantidad libre o necesidad no comprobable'};\n    grupos.push({titulo: 'Reactivos', items: p.reactivos.map(r => {\n      const g = Protocolo.masaAPesar(r, f), e = exis.find(x => x.id === r.id);\n      const cant = g != null ? numero(g) + ' g' : r.cantidad != null ? numero(r.cantidad * f) + ' ' + r.unidad : 'cantidad sin fijar';\n      return {texto: (r.nombre || Formula.bonita(r.formula)) + ': ' + cant + (r.pureza != null ? ' (' + numero(r.pureza) + ' %)' : ''),\n        detalle: e && lab.inventario.length ? 'Inventario libre de reservas ajenas: '+ESTADO[e.estado]+(e.disponible!=null && Number.isFinite(e.disponible) ? ' · '+numero(e.disponible)+' '+e.unidad+' libres' : '') + (e.ubicaciones.length ? ' · ' + e.ubicaciones.join(', ') : '') : '', alerta: e && ['insuficiente', 'caducado'].includes(e.estado)};\n    })});\n    if (p.disoluciones.length) grupos.push({titulo: 'Disoluciones que preparar', items: p.disoluciones.map(d => {\n      const c = Protocolo.disolucion(p, d, f);\n      return {texto: (d.nombre || 'Disolución') + (c.error ? '' : ': ' + numero(c.masa) + ' g en ' + numero((d.volumen || 0) * f) + ' mL de ' + (d.disolvente || 'disolvente'))};\n    })});\n    const equipos = String(p.equipos || '').split(/[\\n,;]+/).map(s => s.trim()).filter(Boolean).map(t => ({texto: t}));\n    const tecnicas = p.caracterizacion.map(c => ({texto: (DATOS.tecnicas[c.tecnica] || {}).nombre + (c.valores.equipo ? ': ' + c.valores.equipo : '')}));\n    if (equipos.length || tecnicas.length) grupos.push({titulo: 'Equipo', items: equipos.concat(tecnicas)});\n    if(lote){\n      const vinculados=lote.ejecucion.equipos || [],items=vinculados.map(e=>{const actual=lab.instrumentos.find(x=>x.id===e.id),proxima=e.proximaCalibracion || '';return {texto:(e.nombre || e.identificador || e.id)+': próxima calibración conservada '+(proxima || 'sin registrar'),detalle:actual && actual.proximaCalibracion!==proxima ? 'El registro del laboratorio ahora indica '+(actual.proximaCalibracion || 'fecha desconocida')+'. Comprueba la copia vinculada antes de empezar; las ejecuciones iniciadas conservan su registro.' : '',alerta:!!proxima && proxima<fecha};});\n      for(const id of new Set(p.caracterizacion.map(x=>x.instrumentoId).filter(Boolean)))if(!vinculados.some(x=>x.id===id))items.push({texto:'Equipo vinculado a una técnica sin copia de calibración: '+id,alerta:true});\n      if(items.length)grupos.push({titulo:'Calibraciones de esta ejecución',items});\n    }else {const cal=alertas(lab,fecha).filter(a=>a.tipo==='calibracion' || a.tipo==='porCalibrar');if(cal.length)grupos.push({titulo:'Calibraciones',items:cal.map(a=>({texto:a.texto,detalle:'Alerta general del laboratorio; vincula un equipo para conservar su certificado por ejecución.',alerta:a.tipo==='calibracion'}))});}\n    const flujo=Flujo.analiza(p);grupos.push({titulo:'Orden del procedimiento',items:flujo.error ? [{texto:flujo.error,alerta:true}] : [{texto:Flujo.MODOS[flujo.modo],detalle:flujo.duracion==null ? flujo.explicacion : 'Duración mínima prevista '+numero(flujo.duracion)+' s. '+flujo.explicacion}]});\n    if((p.placas || []).length)grupos.push({titulo:'Placas previstas',items:p.placas.map(placa=>{const conocidos=Object.values(placa.pozos).filter(x=>x.volumen!=null),exceso=placa.capacidad!=null && conocidos.some(x=>x.volumen*f>placa.capacidad);return {texto:(placa.nombre || placa.id)+' · '+placa.formato+' pozos · '+Object.keys(placa.pozos).length+' asignados',detalle:'Capacidad por pozo: '+(placa.capacidad==null ? 'desconocida' : numero(placa.capacidad)+' µL')+'. Los volúmenes conocidos escalan ×'+numero(f)+(exceso ? '; hay un volumen previsto que excede la capacidad.' : '.'),alerta:exceso};})});\n    const muestras=lote ? lote.ejecucion.muestrasRegistros || [] : p.muestras || [];\n    if(muestras.length)grupos.push({titulo:lote ? 'Muestras conservadas en la ejecución' : 'Muestras del protocolo',items:muestras.map(m=>({texto:(m.nombre || m.id)+' · '+(m.cantidad==null ? 'cantidad desconocida' : numero(m.cantidad)+' '+m.unidad)+' · '+(Muestras.ESTADOS.includes(m.estado) ? m.estado : 'estado desconocido'),detalle:'Ubicación conservada: '+(m.ubicacion || 'sin registrar')+(m.derivacion ? ' · procede de '+m.derivacion.nombre : ''),alerta:m.estado==='descartada' || m.estado==='agotada'}))});\n    const pict = [...new Set(p.reactivos.flatMap(r => Seguridad.pictogramas(r.ghs).map(x => x.nombre)))];\n    const seg = [];\n    if (pict.length) seg.push({texto: 'Pictogramas presentes: ' + pict.join(', ') + '.'});\n    for (const a of Seguridad.incompatibilidades(p)) seg.push({texto: a.texto, detalle: a.reactivos.join(', '), alerta: true});\n    for (const n of p.seguridad) if (n.texto.trim()) seg.push({texto: n.texto.trim()});\n    const res = Seguridad.residuos(p, f);\n    for (const r of res) seg.push({texto: 'Recipiente de residuos: ' + r.nombre + (r.sugerido ? ' (sugerido)' : ''), detalle: r.reactivos.join(', ')});\n    if (seg.length) grupos.push({titulo: 'Seguridad y residuos', items: seg});\n    grupos.push({titulo: 'Antes de empezar', items: [{texto: 'Leí el protocolo completo y las fichas de datos de seguridad.'}, {texto: 'Anoté el código del lote y la fecha en el cuaderno.'}, {texto: 'Balanza nivelada y verificada con su pesa de control.'}]});\n    return grupos;\n  }\n\n  return {FORMATO, nuevo, nuevoArticulo, nuevoInstrumento, sanea, valida, busca, necesario, reservado, mueve, reserva, libera, consume, archiva,convierte, existencias, alertas, listaVerificacion, UNIDADES: Object.keys(UNID)};\n})();\n",
  "src/js/16-ejecucion.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\n/* Registro local de ejecución. Las fechas corresponden a acciones del usuario;\n   un lote antiguo carece de revisión hasta que se vincule explícitamente. */\nconst Ejecucion = (() => {\n  function nuevoLote(p, laboratorio) {\n    const revision = Versiones.instantanea(p, 'Referencia de ejecución');\n    const vinculados = new Set(p.caracterizacion.map(c => c.instrumentoId).filter(Boolean));\n    return Protocolo.nuevoLote({factor: p.escala || 1, revision,\n      ejecucion: {estado: 'preparado', inicio: '', fin: '', pasos: {}, muestras: '',\n        equipos: deepCopy(laboratorio.instrumentos.filter(e => vinculados.has(e.id))),muestrasRegistros:[],archivosOrigen:[],placas:(p.placas || []).map(Placas.registroDePlan)}});\n  }\n  function vincula(p, lote) {\n    if (lote.revision) return {error: 'Este lote ya tiene una revisión fija.'};\n    if (lote.ejecucion.estado !== 'preparado') return {error: 'La ejecución ya comenzó.'};\n    return {lote: Object.assign(deepCopy(lote), {revision: Versiones.instantanea(p, 'Referencia vinculada posteriormente; no acredita la referencia original')})};\n  }\n  function inicia(lote) {\n    if (!lote.revision) return {error: 'Vincula una revisión antes de empezar.'};\n    if (lote.ejecucion.estado !== 'preparado') return {error: 'La ejecución ya comenzó.'};\n    if (!lote.revision.protocolo.pasos.length) return {error: 'La revisión no tiene pasos para ejecutar.'};\n    if (!Number.isFinite(lote.factor) || lote.factor <= 0) return {error: 'La escala debe ser positiva y finita.'};\n    const base=lote.revision.protocolo,flujo=Flujo.analiza(base);if(flujo.error)return flujo;\n    if((base.reactivos || []).some(r=>r.cantidad!=null && (r.cantidad<0 || !Number.isFinite(r.cantidad*lote.factor))) || base.pasos.some(s=>s.volumen!=null && !Number.isFinite(s.volumen*lote.factor)))return {error:'Una cantidad escalada es negativa o no se puede representar. Revisa cantidades y escala.'};\n    for(const p of base.placas || [])for(const [id,x] of Object.entries(p.pozos || {}))if(x.volumen!=null && (!Number.isFinite(x.volumen*lote.factor) || (p.capacidad!=null && x.volumen*lote.factor>p.capacidad)))return {error:'El volumen previsto escalado de '+id+' supera la capacidad o no se puede representar. Revisa la escala y la placa '+(p.nombre || p.id)+'.'};\n    if (lote.revision.protocolo.pasos.some(s => (s.volumen != null && s.volumen < 0) || (s.capacidad != null && s.capacidad <= 0))) return {error: 'El volumen no puede ser negativo y la capacidad debe ser positiva.'};\n    const desborde = lote.revision.protocolo.pasos.find(s => s.volumen != null && s.capacidad != null && s.volumen * lote.factor > s.capacidad);\n    if (desborde) return {error: 'El volumen escalado supera la capacidad del recipiente en un paso. Corrige la escala o crea una revisión con otro recipiente.'};\n    const copia = deepCopy(lote);\n    Object.assign(copia.ejecucion, {estado: 'enCurso', inicio: ahora(), fin: ''});\n    return {lote: copia};\n  }\n  function muestra(lote,muestra,seleccionada) {\n    if(lote.ejecucion.estado!=='preparado')return {error:'Vincula las muestras antes de empezar la ejecución.'};\n    if(!muestra || !muestra.id)return {error:'La muestra no tiene identificador.'};\n    const q=deepCopy(lote);q.ejecucion.muestrasRegistros=(q.ejecucion.muestrasRegistros || []).filter(x=>x.id!==muestra.id);\n    if(seleccionada)q.ejecucion.muestrasRegistros.push(Object.assign(Muestras.sanea(muestra),{fechaVinculo:ahora()}));\n    return {lote:q};\n  }\n  function preparaPlacas(lote) {\n    if(!lote.revision || lote.ejecucion.estado==='terminado')return {error:'El lote necesita una revisión y un registro abierto.'};\n    const q=deepCopy(lote),existentes=new Set((q.ejecucion.placas || []).map(x=>x.id));\n    q.ejecucion.placas=q.ejecucion.placas || [];\n    for(const p of q.revision.protocolo.placas || [])if(!existentes.has(p.id))q.ejecucion.placas.push(Placas.registroDePlan(p));\n    return {lote:q};\n  }\n  function fechaMedidaValida(texto) {\n    if(!texto)return true;\n    const m=/^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2})(?::(\\d{2})(?:\\.\\d{1,3})?)?(Z|[+-]\\d{2}:\\d{2})$/.exec(texto);\n    if(!m || !Number.isFinite(Date.parse(texto)))return false;\n    const d=new Date(0);d.setUTCFullYear(+m[1],+m[2],0);\n    return +m[2]>=1 && +m[2]<=12 && +m[3]>=1 && +m[3]<=d.getUTCDate() && +m[4]<24 && +m[5]<60 && +(m[6] || 0)<60;\n  }\n  function registraPozos(lote,placaId,registros) {\n    if(lote.ejecucion.estado!=='enCurso')return {error:'El registro de pozos requiere una ejecución en curso.'};\n    const placa=(lote.ejecucion.placas || []).find(x=>x.id===placaId);\n    if(!placa || !Array.isArray(registros) || !registros.length)return {error:'Selecciona una placa de esta ejecución y al menos un registro.'};\n    if(placa.historial.length+registros.length>10000)return {error:'El historial de esta placa superaría 10 000 registros. Conserva una copia antes de continuar.'};\n    const posiciones=new Set(Placas.posiciones(placa)),vistos=new Set(),preparados=[];\n    for(const {id,datos} of registros) {\n      if(!posiciones.has(id) || vistos.has(id))return {error:'Pozo inválido o repetido: '+id};vistos.add(id);\n      const x={volumenReal:datos.volumenReal ?? null,resultado:datos.resultado ?? null,unidadResultado:String(datos.unidadResultado || '').slice(0,40),muestraId:String(datos.muestraId || '').slice(0,120),nota:String(datos.nota || '').slice(0,20000),fechaMedida:String(datos.fechaMedida || ''),fechaRegistro:ahora(),origen:deepCopy(datos.origen || {tipo:'manual'})};\n      if((x.volumenReal!=null && (!Number.isFinite(x.volumenReal) || x.volumenReal<0 || (placa.capacidad!=null && x.volumenReal>placa.capacidad))) || (x.resultado!=null && !Number.isFinite(x.resultado)))return {error:id+': el volumen real debe ser no negativo y respetar la capacidad; el resultado debe ser finito.'};\n      if(x.muestraId && !(lote.ejecucion.muestrasRegistros || []).some(m=>m.id===x.muestraId))return {error:id+': la muestra no está vinculada a esta ejecución.'};\n      if(!fechaMedidaValida(x.fechaMedida))return {error:id+': la fecha de medida necesita un día válido, hora y zona explícita (Z o ±hh:mm).'};\n      if(x.volumenReal==null && x.resultado==null && !x.nota && !x.muestraId)return {error:id+': indica una medida, una muestra o una observación.'};\n      preparados.push({id,datos:x});\n    }\n    // Validar todo antes de copiar evita duplicar la revisión y el historial en cada fila.\n    const q=deepCopy(lote),p=q.ejecucion.placas.find(x=>x.id===placaId);\n    for(const {id,datos:x} of preparados){const antes=p.pozos[id] || null;p.pozos[id]=x;p.historial.push({id:uid('registro'),tipo:'registroPozo',pozo:id,fecha:x.fechaRegistro,antes:deepCopy(antes),despues:deepCopy(x)});}\n    return {lote:q,cantidad:preparados.length};\n  }\n  function pozo(lote,placaId,id,datos) { return registraPozos(lote,placaId,[{id,datos}]); }\n  function transfiere(lote,placaId,origen,destino,volumen,motivo) {\n    if(lote.ejecucion.estado!=='enCurso' || !String(motivo || '').trim())return {error:'Registra la transferencia durante la ejecución e indica qué se transfirió.'};\n    const placa=(lote.ejecucion.placas || []).find(x=>x.id===placaId);if(!placa)return {error:'La placa no pertenece a esta ejecución.'};\n    if(placa.historial.length>=10000)return {error:'El historial de esta placa alcanzó 10 000 registros. Conserva una copia antes de continuar.'};\n    const plan={...placa,pozos:Object.fromEntries(Object.entries(placa.pozos).map(([id,x])=>[id,{volumen:x.volumenReal}])),transferencias:[]};\n    const r=Placas.transfiere(plan,origen,destino,volumen);if(r.error)return r;\n    const q=deepCopy(lote),p=q.ejecucion.placas.find(x=>x.id===placaId),antes={origen:deepCopy(p.pozos[origen]),destino:deepCopy(p.pozos[destino])},fecha=ahora();\n    p.pozos[origen].volumenReal=r.placa.pozos[origen].volumen;p.pozos[origen].fechaRegistro=fecha;\n    Object.assign(p.pozos[destino],{volumenReal:r.placa.pozos[destino].volumen,resultado:null,unidadResultado:'',fechaMedida:'',fechaRegistro:fecha});\n    if(p.pozos[origen].muestraId!==p.pozos[destino].muestraId)p.pozos[destino].muestraId='';\n    p.historial.push({id:uid('registro'),tipo:'transferencia',origen,destino,volumen,motivo:String(motivo).slice(0,20000),fecha,antes,despues:{origen:deepCopy(p.pozos[origen]),destino:deepCopy(p.pozos[destino])}});\n    return {lote:q,explicacion:'Transferencia declarada registrada con volúmenes anterior y posterior. El resultado anterior del destino se conserva en el historial; después de la mezcla requiere una nueva medida.'};\n  }\n  function placaCSV(lote,placaId) {\n    const p=(lote.ejecucion.placas || []).find(x=>x.id===placaId);if(!p)return {error:'La placa no pertenece a esta ejecución.'};\n    return {texto:window.Papa.unparse({fields:['Ejecución','Placa','Pozo','Muestra ID','Volumen real (µL)','Resultado','Unidad resultado','Fecha medida','Nota','Fecha registro'],data:Placas.posiciones(p).map(id=>{const x=p.pozos[id] || {};return [lote.id,p.id,id,x.muestraId,x.volumenReal,x.resultado,x.unidadResultado,x.fechaMedida,x.nota,x.fechaRegistro];})},{escapeFormulae:true})};\n  }\n  function importaPlacaCSV(lote,placaId,texto) {\n    if(lote.ejecucion.estado!=='enCurso')return {error:'Importa medidas de placa durante una ejecución en curso.'};\n    const p=(lote.ejecucion.placas || []).find(x=>x.id===placaId);if(!p)return {error:'La placa no pertenece a esta ejecución.'};\n    const r=window.Papa.parse(texto,{header:true,skipEmptyLines:'greedy'});\n    if(r.errors.length || !r.meta.fields || !r.meta.fields.includes('Pozo') || !r.data.length)return {error:'El CSV necesita filas de datos y la columna Pozo, sin errores de lectura.'};\n    const vistos=new Set(),hash=Evidencia.sha256(new TextEncoder().encode(texto));const registros=[];\n    for(const fila of r.data) {\n      const id=String(fila.Pozo || '').trim().toUpperCase();if(vistos.has(id) || !Placas.posiciones(p).includes(id))return {error:'Pozo inválido o repetido: '+id};vistos.add(id);\n      if(fila.Ejecución && fila.Ejecución!==lote.id || fila.Placa && fila.Placa!==placaId)return {error:'El CSV identifica otra ejecución o placa. Verifica el archivo antes de importar.'};\n      const numero=v=>v==null || String(v).trim()==='' ? null : Number(v),datos={volumenReal:numero(fila['Volumen real (µL)']),resultado:numero(fila.Resultado),unidadResultado:fila['Unidad resultado'] || '',muestraId:fila['Muestra ID'] || '',fechaMedida:fila['Fecha medida'] || '',nota:fila.Nota || '',origen:{tipo:'csv',sha256TextoUTF8:hash}};\n      if(datos.volumenReal==null && datos.resultado==null && !datos.nota && !datos.muestraId)continue;\n      registros.push({id,datos});\n    }\n    if(!registros.length)return {error:'El CSV no contiene medidas, muestras ni observaciones para registrar.'};\n    const z=registraPozos(lote,placaId,registros);if(z.error)return z;\n    return {...z,explicacion:'Se registraron '+z.cantidad+' pozos. Las fechas de registro corresponden a esta importación; el hash conserva la huella del texto leído en UTF-8.'};\n  }\n  function paso(lote, pasoId, completado, nota) {\n    if (lote.ejecucion.estado !== 'enCurso') return {error: 'Inicia la ejecución para registrar pasos.'};\n    if (!lote.revision.protocolo.pasos.some(s => s.id === pasoId)) return {error: 'El paso no pertenece a esta revisión.'};\n    const flujo=Flujo.analiza(lote.revision.protocolo);if(flujo.error)return flujo;\n    const dependencias=flujo.nodos.find(n=>n.id===pasoId).dependeDe;\n    if(completado && dependencias.some(id=>!lote.ejecucion.pasos[id]?.completado))return {error:'Completa primero los pasos de los que depende éste.'};\n    if(!completado && lote.ejecucion.pasos[pasoId]?.completado && flujo.nodos.some(n=>n.dependeDe.includes(pasoId) && lote.ejecucion.pasos[n.id]?.completado))return {error:'Desmarca primero los pasos posteriores que dependen de éste.'};\n    const copia = deepCopy(lote), anterior = copia.ejecucion.pasos[pasoId];\n    copia.ejecucion.pasos[pasoId] = {completado: !!completado,\n      fecha: completado ? anterior && anterior.completado ? anterior.fecha : ahora() : '',\n      nota: nota == null ? anterior && anterior.nota || '' : String(nota).slice(0, 20000)};\n    return {lote: copia};\n  }\n  function termina(lote) {\n    if (lote.ejecucion.estado !== 'enCurso') return {error: 'La ejecución no está en curso.'};\n    const pendientes = lote.revision.protocolo.pasos.filter(s => !lote.ejecucion.pasos[s.id]?.completado);\n    if (pendientes.length) return {error: 'Quedan ' + pendientes.length + ' pasos sin completar.'};\n    const copia = deepCopy(lote);\n    Object.assign(copia.ejecucion, {estado: 'terminado', fin: ahora()});\n    return {lote: copia};\n  }\n  function resumen(lote) {\n    const pasos = lote.revision ? lote.revision.protocolo.pasos : [];\n    return {total: pasos.length, completados: pasos.filter(s => lote.ejecucion.pasos[s.id]?.completado).length,\n      estado: {preparado: 'Preparado', enCurso: 'En curso', terminado: 'Terminado'}[lote.ejecucion.estado]};\n  }\n  return {nuevoLote, vincula, inicia, paso, termina, resumen,muestra,preparaPlacas,pozo,registraPozos,transfiere,fechaMedidaValida,placaCSV,importaPlacaCSV};\n})();\n",
  "src/js/17-busqueda.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Busqueda = (() => {\n  function protocolos(lista, consulta) {\n    const ordenados = lista.slice().sort((a, b) => String(b.modificado).localeCompare(String(a.modificado)));\n    if (!String(consulta || '').trim()) return ordenados;\n    return new window.Fuse(ordenados, {keys: ['titulo', 'resumen', 'tipo'], threshold: 0.35,\n      ignoreLocation: true, ignoreDiacritics: true}).search(String(consulta).trim()).map(r => r.item);\n  }\n  return {protocolos};\n})();\n",
  "src/js/18-paquete.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\n/* Paquete de investigación siguiendo RO-Crate 1.1. Son archivos locales,\n   sin depósito ni DOI generado. La procedencia conserva lo escrito. */\nconst Paquete = (() => {\n  function investigacion(p, opciones) {\n    const o = opciones || {}, fecha = ahora();\n    const documentos = [\n      ['protocolo.json', JSON.stringify(p, null, 1) + '\\n'],\n      ['metodos.md', Redaccion.markdown(p, {idioma: o.idioma || 'es', version: o.version || '', fecha})],\n      ['lotes.csv', window.Papa.unparse({fields: ['Código', 'Fecha', 'Escala', 'Operador', 'Revisión', 'Estado', 'Masa obtenida (g)', 'Resultado', 'Unidad'],\n        data: p.lotes.map(l => [l.codigo, l.fecha, l.factor, l.operador, l.revision ? l.revision.id : 'Referencia histórica desconocida',\n          l.ejecucion.estado, l.masaObtenida, l.resultado, Lotes.protocolo(p, l).resultadoUnidad])}, {escapeFormulae: true})],\n      ['LEEME.txt', 'Paquete generado por Erlen Methods ' + (o.version || '') + '.\\n' +\n        'protocolo.json contiene la definición, las revisiones y los registros de ejecución completos.\\n' +\n        'metodos.md redacta el protocolo actual; para interpretar cada lote utiliza su revisión conservada.\\n' +\n        'lotes.csv es un resumen; sus celdas de texto se protegen contra fórmulas de hojas de cálculo.\\n' +\n        'Un lote sin revisión fija no acredita su referencia original.\\n' +\n        'Las placas guardadas son planes de distribución; sus etiquetas no son resultados medidos.\\n']\n    ];\n    const archivos = documentos.map(([nombre, contenido]) => ({'@id': nombre, '@type': 'File', name: nombre,\n      encodingFormat: nombre.endsWith('.json') ? 'application/json' : nombre.endsWith('.csv') ? 'text/csv' : 'text/plain',\n      contentSize: new TextEncoder().encode(contenido).length}));\n    const referencias = [...new Map((p.literatura || []).flatMap(c => c.fuentes || []).filter(f => f.cita || f.doi)\n      .map(f => [f.doi || f.cita, f])).values()].map((f, i) => ({'@id': '#referencia-' + (i + 1), '@type': 'CreativeWork',\n        name: f.cita || f.doi, ...(f.doi ? {identifier: f.doi} : {})}));\n    const metadatos = {'@context': 'https://w3id.org/ro/crate/1.1/context', '@graph': [\n      {'@id': 'ro-crate-metadata.json', '@type': 'CreativeWork', about: {'@id': './'}, conformsTo: {'@id': 'https://w3id.org/ro/crate/1.1'}},\n      {'@id': './', '@type': 'Dataset', name: p.titulo || 'Protocolo sin título', description: p.objetivo || 'Registro local de investigación',\n        datePublished: fecha, hasPart: archivos.map(a => ({'@id': a['@id']})), citation: referencias.map(f => ({'@id': f['@id']}))},\n      ...archivos, ...referencias\n    ]};\n    documentos.push(['ro-crate-metadata.json', JSON.stringify(metadatos, null, 1) + '\\n']);\n    return {archivos: documentos, zip: Exportar.zip(documentos),\n      explicacion: 'El paquete conserva el protocolo completo y sus ejecuciones. Las referencias son las anotadas por ti; no se inventan DOI ni una licencia para tus datos.'};\n  }\n  function completo(p, opciones) {\n    const o=opciones || {}, inicial=investigacion(p,o), archivos=inicial.archivos.filter(x=>x[0]!=='ro-crate-metadata.json');\n    const metadatos=JSON.parse(inicial.archivos.find(x=>x[0]==='ro-crate-metadata.json')[1]), grafo=metadatos['@graph'], raiz=grafo.find(x=>x['@id']==='./');\n    const identificadores=new Set(grafo.map(x=>x['@id'])), rutas=new Set(archivos.map(x=>x[0]));\n    const nodo=x=>{if(identificadores.has(x['@id']))throw new Error('Identificador repetido en el paquete: '+x['@id']);identificadores.add(x['@id']);grafo.push(x);};\n    function agrega(ruta,contenido,tipo,extra) {\n      if(rutas.has(ruta))throw new Error('Archivo repetido en el paquete: '+ruta);rutas.add(ruta);\n      const bytes=typeof contenido==='string' ? new TextEncoder().encode(contenido) : contenido;\n      archivos.push([ruta,bytes]);\n      nodo(Object.assign({'@id':ruta,'@type':'File',name:ruta,encodingFormat:tipo,contentSize:bytes.length,sha256:Evidencia.sha256(bytes)},extra || {}));\n      raiz.hasPart.push({'@id':ruta});return ruta;\n    }\n    agrega('bibliografia.csl.json',JSON.stringify(p.referencias || [],null,2)+'\\n','application/vnd.citationstyles.csl+json');\n    agrega('muestras.csv',Muestras.csv(p.muestras || []),'text/csv');\n    if((p.secuencias || []).length)agrega('secuencias.fasta',Secuencias.fasta(p.secuencias),'text/plain',{description:'Secuencias declaradas, normalizadas en mayúsculas. Los archivos originales se conservan como adjuntos cuando están vinculados.'});\n    for(const placa of p.placas || [])agrega('placas/'+encodeURIComponent(placa.id)+'.csv',Placas.csv(placa),'text/csv',{description:'Distribución prevista de placa; los valores sólo son resultados cuando están registrados como tales.'});\n    for(const lote of p.lotes) {\n      const id='#ejecucion-'+encodeURIComponent(lote.id), revision=lote.revision;\n      const ruta=agrega('ejecuciones/'+encodeURIComponent(lote.id)+'.json',JSON.stringify(lote,null,2)+'\\n','application/json');\n      for(const placa of lote.ejecucion.placas || []){const csv=Ejecucion.placaCSV(lote,placa.id);if(csv.error)throw new Error(csv.error);agrega('placas-ejecucion/'+encodeURIComponent(lote.id)+'/'+encodeURIComponent(placa.id)+'.csv',csv.texto,'text/csv',{description:'Medidas y volúmenes declarados para esta ejecución; celdas vacías permanecen desconocidas.'});}\n      const estado={preparado:'PotentialActionStatus',enCurso:'ActiveActionStatus',terminado:'CompletedActionStatus'}[lote.ejecucion.estado];\n      const accion={'@id':id,'@type':'CreateAction',name:lote.codigo || lote.id,result:{'@id':ruta},actionStatus:{'@id':'http://schema.org/'+estado}};\n      if(revision){const ref=agrega('revisiones/'+encodeURIComponent(lote.id)+'.json',JSON.stringify(revision,null,2)+'\\n','application/json');accion.object={'@id':ref};}\n      if(lote.ejecucion.inicio)accion.startTime=lote.ejecucion.inicio;if(lote.ejecucion.fin)accion.endTime=lote.ejecucion.fin;\n      if(lote.operador){const persona=id+'-operador';nodo({'@id':persona,'@type':'Person',name:lote.operador});accion.agent={'@id':persona};}\n      nodo(accion);\n    }\n    const disponibles=new Map((o.adjuntos || []).map(x=>[x.id,x.bytes])),usados=Protocolo.adjuntosUsados(p);\n    if(usados.error)throw new Error(usados.error);\n    for(const a of usados.archivos) {\n      const bytes=disponibles.get(a.id);\n      if(!bytes || bytes.length!==a.bytes || Evidencia.sha256(bytes)!==a.sha256 || a.id!=='sha256-'+a.sha256)throw new Error('Adjunto ausente o alterado: '+a.nombre);\n      agrega('adjuntos/'+a.id,bytes,a.tipo,{name:a.nombre,description:'Vínculo declarado: '+a.enlace.tipo+' '+a.enlace.id});\n    }\n    for(const r of p.referencias || []) {\n      const id='#bibliografia-'+encodeURIComponent(r.id);nodo({'@id':id,'@type':'CreativeWork',name:r.title,...(r.DOI ? {identifier:r.DOI} : {})});raiz.citation.push({'@id':id});\n    }\n    for(const [ruta,contenido] of archivos) {\n      const bytes=typeof contenido==='string' ? new TextEncoder().encode(contenido) : contenido;\n      const entidad=grafo.find(x=>x['@id']===ruta);if(entidad)entidad.sha256=Evidencia.sha256(bytes);\n    }\n    archivos.push(['ro-crate-metadata.json',JSON.stringify(metadatos,null,2)+'\\n']);\n    const manifiesto=archivos.map(([ruta,contenido])=>({ruta,bytes:(typeof contenido==='string' ? new TextEncoder().encode(contenido) : contenido).length,sha256:Evidencia.sha256(typeof contenido==='string' ? new TextEncoder().encode(contenido) : contenido)}));\n    archivos.push(['manifest-sha256.json',JSON.stringify({format:'erlen-methods-manifest-v1',archivos:manifiesto},null,2)+'\\n']);\n    return {archivos,zip:Exportar.zip(archivos),explicacion:'RO-Crate 1.1 con definición, revisiones por ejecución, muestras, placas, bibliografía y adjuntos. manifest-sha256.json verifica los archivos; no acredita identidad ni firma digital.'};\n  }\n  return {investigacion,completo};\n})();\n",
  "src/js/19-instrumentos.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Instrumentos = (() => {\n  const CAMPOS={pozo:'Pozo',resultado:'Resultado',volumen:'Volumen real',unidad:'Unidad del resultado',muestra:'Muestra ID',fecha:'Fecha de medida',nota:'Observaciones'};\n  const VOLUMENES={'µL':1,mL:1000,nL:.001};\n  function lee(texto,separador='auto') {\n    if(typeof texto!=='string' || texto.length>5*1024*1024 || !['auto',',',';','\\t'].includes(separador))return {error:'El CSV debe ser texto de hasta 5 MB con separador automático, coma, punto y coma o tabulador.'};\n    const r=window.Papa.parse(texto,{delimiter:separador==='auto' ? '' : separador,skipEmptyLines:'greedy'});\n    if(r.errors.length || r.data.length<2 || r.data.length>10001)return {error:'Se necesitan una cabecera y entre 1 y 10 000 filas, sin errores de lectura. Prueba el separador explícito.'};\n    const cabecera=r.data[0].map(x=>String(x).replace(/^\\uFEFF/,'').trim());\n    if(cabecera.length<2 || cabecera.some(x=>!x || x.length>200) || new Set(cabecera).size!==cabecera.length || r.data.slice(1).some(f=>f.length!==cabecera.length))return {error:'Cada columna necesita un nombre distinto y todas las filas deben tener el mismo número de columnas.'};\n    return {cabecera,filas:r.data.slice(1),separador:r.meta.delimiter,sha256TextoUTF8:Evidencia.sha256(new TextEncoder().encode(texto)),explicacion:'El texto se conserva sin convertir números automáticamente. Asigna columnas y declara el separador decimal antes de registrar.'};\n  }\n  function numero(texto,decimal) {\n    const t=String(texto ?? '').trim();if(!t)return {valor:null};\n    if(!['.',','].includes(decimal))return {error:'Declara punto o coma como separador decimal.'};\n    const patron=decimal===',' ? /^[+-]?(?:\\d+(?:,\\d*)?|,\\d+)(?:[eE][+-]?\\d+)?$/ : /^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][+-]?\\d+)?$/;\n    if(!patron.test(t))return {error:'Número ambiguo o ilegible: '+t.slice(0,80)+'. No se aceptan separadores de millares, hexadecimal ni fórmulas.'};\n    const valor=Number(t.replace(',','.'));if(!Number.isFinite(valor) || valor===0 && /[1-9]/.test(t.split(/[eE]/)[0]))return {error:'El número no se puede representar sin desbordarse o perderse como cero.'};\n    return {valor};\n  }\n  function prepara(lote,placaId,tabla,mapa,opciones={}) {\n    if(!tabla || tabla.error || !Array.isArray(tabla.cabecera) || !Array.isArray(tabla.filas))return {error:'Lee primero un CSV válido.'};\n    const decimal=opciones.decimal || '.',unidadVolumen=opciones.unidadVolumen || 'µL';\n    if(!['.',','].includes(decimal) || !Object.hasOwn(VOLUMENES,unidadVolumen))return {error:'Revisa el separador decimal y la unidad del volumen.'};\n    if(!mapa || !mapa.pozo || (!mapa.resultado && !mapa.volumen && !mapa.nota && !mapa.muestra))return {error:'Asigna la columna del pozo y al menos una medida, muestra u observación.'};\n    if(Object.keys(mapa).some(k=>!Object.hasOwn(CAMPOS,k)))return {error:'El mapa contiene un campo desconocido.'};\n    const elegidas=Object.values(mapa).filter(Boolean);if(elegidas.some(c=>!tabla.cabecera.includes(c)) || new Set(elegidas).size!==elegidas.length)return {error:'Cada columna asignada debe existir y usarse en un solo campo.'};\n    const indices=Object.fromEntries(Object.entries(mapa).filter(([,v])=>v).map(([k,v])=>[k,tabla.cabecera.indexOf(v)])),registros=[],configuracion={columnas:deepCopy(mapa),decimal,unidadVolumen,unidadResultado:String(opciones.unidadResultado || '').slice(0,40),separador:tabla.separador};\n    const origen={tipo:'instrumentoCSV',sha256TextoUTF8:tabla.sha256TextoUTF8,configuracion};\n    if(opciones.adjunto)Object.assign(origen,{adjuntoId:opciones.adjunto.id,sha256Archivo:opciones.adjunto.sha256});\n    for(let i=0;i<tabla.filas.length;i++) {\n      const fila=tabla.filas[i],celda=k=>Object.hasOwn(indices,k) ? String(fila[indices[k]] ?? '').trim() : '',id=celda('pozo').toUpperCase().replace(/^([A-P])0+([1-9]\\d*)$/,'$1$2');\n      const v=numero(celda('volumen'),decimal),y=numero(celda('resultado'),decimal);if(v.error || y.error)return {error:'Fila '+(i+2)+': '+(v.error || y.error)};\n      const volumenReal=v.valor==null ? null : v.valor*VOLUMENES[unidadVolumen];if(volumenReal!=null && !Number.isFinite(volumenReal))return {error:'Fila '+(i+2)+': el volumen convertido no se puede representar.'};\n      registros.push({id,datos:{volumenReal,resultado:y.valor,unidadResultado:mapa.unidad ? celda('unidad') : configuracion.unidadResultado,muestraId:celda('muestra'),fechaMedida:celda('fecha'),nota:celda('nota'),origen:{...origen,fila:i+2}}});\n    }\n    const r=Ejecucion.registraPozos(lote,placaId,registros);if(r.error)return r;\n    if(opciones.adjunto){r.lote.ejecucion.archivosOrigen=r.lote.ejecucion.archivosOrigen || [];if(!r.lote.ejecucion.archivosOrigen.some(a=>a.id===opciones.adjunto.id))r.lote.ejecucion.archivosOrigen.push(deepCopy(opciones.adjunto));}\n    return {...r,registros,configuracion,explicacion:'Se registrarán '+r.cantidad+' pozos de esta ejecución. A01 se normaliza a A1; el volumen se convierte a µL. No se calcula una hora de medida ni se identifica una muestra por su nombre.'};\n  }\n  return {CAMPOS,VOLUMENES,lee,numero,prepara};\n})();\n",
  "src/js/20-analisis.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Analisis = (() => {\n  const suma = valores => {let total=0,correccion=0;for(const valor of valores){const y=valor-correccion,t=total+y;correccion=(t-total)-y;total=t;}return total;};\n  const calibracion=(datos,ponderada)=>Estadistica.ajusteLineal(datos,ponderada);\n  const prediccion=(ajuste,x,u)=>Estadistica.prediccionLineal(ajuste,x,u);\n  const inversa=(ajuste,y,u,n)=>Estadistica.inversionLineal(ajuste,y,u,n);\n  function monteCarlo(texto,entradas,n,semilla,correlaciones) {\n    if(!Number.isInteger(n) || n<1000 || n>100000) return {error:'Usa entre 1 000 y 100 000 simulaciones.'};\n    if(!Number.isInteger(semilla) || semilla<1 || semilla>4294967295) return {error:'La semilla debe ser un entero entre 1 y 4 294 967 295.'};\n    const e=Expresion.compila(texto); if(e.error) return e;\n    if(!Array.isArray(entradas) || !entradas.length || entradas.length>32 || new Set(entradas.map(x=>x && x.nombre)).size!==entradas.length || entradas.some(x=>!x || typeof x!=='object' || !Number.isFinite(x.valor) || !Number.isFinite(x.u) || x.u<0 || !['normal','uniforme','triangular','lognormal'].includes(x.distribucion)) || e.variables.some(x=>!entradas.some(v=>v.nombre===x))) return {error:'Usa hasta 32 entradas con valor finito, incertidumbre estándar no negativa y distribución normal, uniforme, triangular o lognormal.'};\n    if(entradas.some(x=>x.distribucion==='lognormal' && (!(x.valor>0) || !Number.isFinite(x.u/x.valor)))) return {error:'Las entradas lognormales requieren una media positiva y una incertidumbre representable respecto a esa media.'};\n    const correlacion=Estadistica.matrizCorrelacion(entradas.map(x=>x.nombre),correlaciones);if(correlacion.error)return correlacion;\n    if((correlaciones || []).some(c=>[c.a,c.b].some(nombre=>entradas.find(x=>x.nombre===nombre).distribucion!=='normal')))return {error:'Las correlaciones de Pearson se admiten entre entradas normales. Las demás distribuciones se simulan independientes.'};\n    const parametros=entradas.map(x=>{const r=x.u/x.valor,sigma2=x.distribucion==='lognormal' ? (r>Math.sqrt(Number.MAX_VALUE) ? 2*Math.log(r) : Math.log1p(r*r)) : 0;return {sigma:Math.sqrt(sigma2),mu:Math.log(x.valor)-sigma2/2};});\n    let estado=semilla>>>0;\n    const aleatorio=()=>{estado=(Math.imul(1664525,estado)+1013904223)>>>0;return (estado+0.5)/4294967296;};\n    const valores=[]; let rechazadas=0;\n    for(let i=0;i<n;i++) {\n      const normales=entradas.map(()=>Math.sqrt(-2*Math.log(aleatorio()))*Math.cos(2*Math.PI*aleatorio()));\n      const v=Object.create(null); for(let j=0;j<entradas.length;j++) {\n        const x=entradas[j];let z;\n        if(x.distribucion==='normal')z=suma(correlacion.triangulo[j].slice(0,j+1).map((c,k)=>c*normales[k]));\n        else {const p=aleatorio();z=x.distribucion==='uniforme' ? (2*p-1)*Math.sqrt(3) : (p<0.5 ? Math.sqrt(2*p)-1 : 1-Math.sqrt(2*(1-p)))*Math.sqrt(6);}\n        v[x.nombre]=x.u===0 ? x.valor : x.distribucion==='lognormal' ? Math.exp(parametros[j].mu+parametros[j].sigma*normales[j]) : x.valor+x.u*z;\n      }\n      try {const y=e.evalua(v);if(Number.isFinite(y))valores.push(y);else rechazadas++;}catch(error){rechazadas++;}\n    }\n    if(rechazadas) return {error:rechazadas+' simulaciones salieron del dominio de la expresión. Revisa el modelo y las distribuciones; no se descartan para dar un intervalo sesgado.'};\n    valores.sort((a,b)=>a-b);\n    const ss=window.Bibliotecas['simple-statistics'],media=valores[0]+suma(valores.map(x=>(x-valores[0])/n)),escala=valores.reduce((a,x)=>Math.max(a,Math.abs(x-media)),0),u=escala>0 ? escala*Math.sqrt(suma(valores.map(x=>((x-media)/escala)**2/(n-1)))) : 0;\n    if(![media,u].every(Number.isFinite))return {error:'Los resultados de la simulación exceden la precisión numérica disponible.'};\n    if(u===0 && entradas.some(x=>x.u>0)){const origen=Object.fromEntries(entradas.map(x=>[x.nombre,{valor:x.valor,u:x.u}])),aproximacion=Estadistica.propaga(texto,origen,correlaciones);if(!aproximacion.error && aproximacion.uc>0)return {error:'La variación simulada queda por debajo de la resolución numérica del valor central. Centra o reescala la expresión; no se informa incertidumbre cero.'};}\n    const bajo=ss.quantileSorted(valores,0.025),alto=ss.quantileSorted(valores,0.975),minimo=valores[0],maximo=valores.at(-1),ancho=(maximo-minimo)/30;\n    if(!Number.isFinite(ancho))return {error:'El rango de la simulación no se puede representar. Reescala el modelo.'};\n    const histograma=Array.from({length:ancho>0 ? 30 : 1},(_,i)=>({desde:minimo+i*ancho,hasta:ancho>0 ? minimo+(i+1)*ancho : maximo,cantidad:0}));\n    for(const y of valores)histograma[ancho>0 ? Math.min(29,Math.floor((y-minimo)/ancho)) : 0].cantidad++;\n    return {media,u,bajo,alto,n,semilla,correlaciones:correlaciones || [],histograma,\n      errorMedia:u/Math.sqrt(n),explicacion:'Intervalo de cobertura central del 95 % por simulación. '+(correlacion.nPares ? 'Se incluyeron las correlaciones de las entradas normales; las demás entradas son independientes. ' : 'Las entradas son independientes. ')+'Semilla '+semilla+'. El error estándar de la media simulada es u/√N; no certifica la convergencia de los extremos. La distribución lognormal usa el valor como media aritmética y u como desviación estándar.'};\n  }\n  function cuantificaPlaca(lote,placaId,calibracionGuardada,opciones={}) {\n    const placa=Array.isArray(lote?.ejecucion?.placas) ? lote.ejecucion.placas.find(p=>p && p.id===placaId) : null,a=calibracionGuardada;\n    if(!placa || !placa.pozos || !lote.revision || !a || a.tipo!=='calibracion' || typeof a.ponderada!=='boolean')return {error:'Selecciona una placa de ejecución con revisión y una calibración guardada.'};\n    const {unidadRespuesta,unidadConcentracion,factorDilucion,uRespuesta}=opciones;\n    if(typeof unidadRespuesta!=='string' || !unidadRespuesta.trim() || typeof unidadConcentracion!=='string' || !unidadConcentracion.trim() || unidadRespuesta.length>40 || unidadConcentracion.length>40 || !Number.isFinite(factorDilucion) || factorDilucion<=0)return {error:'Declara las unidades de respuesta y concentración y un factor de dilución positivo; usa 1 sólo si no hubo dilución.'};\n    const ajuste=calibracion(a.datos,a.ponderada);if(ajuste.error)return ajuste;\n    const registros=Object.entries(placa.pozos).filter(([,x])=>x && x.resultado!=null);if(!registros.length)return {error:'La placa no tiene respuestas reales registradas. El plan no se usa como medida.'};\n    const resultados=[];\n    for(const [pozo,lectura] of registros) {\n      if(!lectura || lectura.unidadResultado!==unidadRespuesta)return {error:pozo+': la unidad de la lectura no coincide exactamente con la declarada para los patrones. No se convierte una respuesta sin su relación física.'};\n      const inversa=inversaPlaca(ajuste,lectura.resultado,uRespuesta);if(inversa.error)return {error:pozo+': '+inversa.error};\n      const valor=inversa.valor*factorDilucion,bajo=inversa.bajo*factorDilucion,alto=inversa.alto*factorDilucion;\n      if(![valor,bajo,alto].every(Number.isFinite) || [inversa.valor,inversa.bajo,inversa.alto].some(x=>x!==0 && x*factorDilucion===0))return {error:pozo+': el factor de dilución produce un resultado no representable.'};\n      resultados.push({pozo,lectura:deepCopy(lectura),valor,bajo,alto,extrapolacion:inversa.extrapolacion});\n    }\n    const fuente={loteId:lote.id,revisionId:lote.revision.id,placaId:placa.id,historialPlaca:deepCopy(placa.historial),archivosOrigen:deepCopy(lote.ejecucion.archivosOrigen || []),calibracion:deepCopy(a),lecturas:registros.map(([pozo,lectura])=>({pozo,lectura:deepCopy(lectura)}))};\n    const analisis={id:uid('analisis'),tipo:'cuantificacionPlaca',fecha:ahora(),fuente,sha256Fuente:Evidencia.sha256(new TextEncoder().encode(JSON.stringify(fuente))),opciones:deepCopy(opciones),ajuste,resultados,explicacion:'Concentraciones calculadas por inversión lineal y Fieller al 95 %, una lectura por pozo. El factor de dilución se trata como exacto. Las respuestas reales y los patrones quedan conservados; la unidad declarada vincula numéricamente los datos, no certifica el método. Verifica linealidad y ausencia de error relevante en x. No se restan blancos ni se mezclan réplicas automáticamente.'};\n    return {analisis};\n  }\n  const inversaPlaca=(ajuste,respuesta,u)=>inversa(ajuste,respuesta,u,1);\n  return {calibracion,prediccion,inversa,monteCarlo,cuantificaPlaca};\n})();\n",
  "src/js/21-bibliografia.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Bibliografia = (() => {\n  function importa(texto,formato) {\n    if(!['bibtex','ris','csl'].includes(formato))return {error:'Elige BibTeX, RIS o CSL JSON.'};\n    try {\n      const entrada=formato==='csl' ? JSON.parse(texto) : texto;\n      if(formato==='csl' && (!Array.isArray(entrada) || entrada.some(x=>!x || typeof x!=='object' || !x.type || !x.title))) return {error:'CSL requiere una lista de referencias con type y title.'};\n      if(formato==='bibtex' && !/^\\s*@\\w+\\s*[({]/.test(texto)) return {error:'No se reconoce una entrada BibTeX.'};\n      if(formato==='ris' && !/^\\s*TY\\s*- /m.test(texto))return {error:'No se reconoce el inicio TY de RIS.'};\n      const cita=new window.Bibliotecas['@citation-js/core'].Cite(entrada,{forceType:formato==='bibtex' ? '@bibtex/text' : formato==='ris' ? '@ris/file' : '@csl/object'});\n      const referencias=cita.data.map(x=>Object.assign({},x,{id:String(x.id || uid('ref')).slice(0,120)}));\n      if(!referencias.length || referencias.some(x=>!x.title))return {error:'Cada referencia necesita un título.'};\n      return {referencias,explicacion:'Referencias importadas del archivo local. Los campos ausentes no se completan mediante consultas remotas.'};\n    }catch(e){return {error:'No se pudo leer la bibliografía: '+e.message};}\n  }\n  function etiqueta(r) {\n    const autores=(r.author || []).map(x=>x.literal || [x.family,x.given].filter(Boolean).join(', ')).join('; ');\n    const fecha=r.issued && r.issued['date-parts'] && r.issued['date-parts'][0];\n    return [autores,fecha && fecha.join('-'),r.title,r['container-title'],r.DOI ? 'DOI: '+r.DOI : ''].filter(Boolean).join('. ');\n  }\n  function exporta(referencias,formato) {\n    try {\n      if(formato==='csl')return {texto:JSON.stringify(referencias,null,2)};\n      const c=new window.Bibliotecas['@citation-js/core'].Cite(referencias);\n      return {texto:c.format(formato==='ris' ? 'ris' : 'bibtex')};\n    }catch(e){return {error:'No se pudo exportar la bibliografía: '+e.message};}\n  }\n  return {importa,etiqueta,exporta};\n})();\n",
  "src/js/22-moleculas.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Moleculas = (() => {\n  function lee(smiles) {\n    const texto=String(smiles || '').trim();\n    if(!texto || texto.length>2000)return {error:'Introduce un SMILES de hasta 2 000 caracteres.'};\n    try {return {estructura:window.Bibliotecas['smiles-drawer'].SmilesDrawer.Parser.parse(texto),smiles:texto,\n      explicacion:'Dibujo de la estructura escrita en SMILES. Su lectura no acredita identidad, pureza, propiedades ni clasificación de peligro.'};}\n    catch(error){return {error:'SMILES no reconocido: '+error.message};}\n  }\n  return {lee};\n})();\n",
  "src/js/24-ciencia.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Ciencia = (() => {\n  function fuerzaIonica(especies) {\n    if(!Array.isArray(especies) || !especies.length || especies.some(x=>!Number.isFinite(x.c) || x.c<0 || !Number.isInteger(x.z)))return {error:'Cada ion requiere concentración no negativa en mol/L y carga entera.'};\n    const valor=0.5*especies.reduce((a,x)=>a+x.c*x.z*x.z,0);\n    if(!Number.isFinite(valor))return {error:'La fuerza iónica no se puede representar con estas concentraciones y cargas. Reescala los datos.'};\n    return {valor,explicacion:'I = ½ Σ cᵢ zᵢ², en mol/L. Se usa la concentración de cada ion disuelto, no la del compuesto antes de disociarse.'};\n  }\n  function solubilidad(ksp,ionComun) {\n    if(!Number.isFinite(ksp) || ksp<=0 || !Number.isFinite(ionComun) || ionComun<0)return {error:'Ksp debe ser positivo y la concentración del ion común no negativa.'};\n    // La forma racionalizada evita restar dos números casi iguales.\n    const raiz=Math.sqrt(ksp),c=ionComun/raiz,s=Number.isFinite(c) ? raiz/(Math.hypot(c/2,1)+c/2) : ksp/ionComun;\n    if(!Number.isFinite(s) || s<=0)return {error:'La solubilidad es demasiado pequeña o grande para representarse. Reescala las concentraciones.'};\n    return {valor:s,explicacion:'Sal 1:1 AB ⇌ A⁺ + B⁻: Ksp = s(s+c). Solubilidad en mol/L bajo aproximación ideal; se ignoran actividad, complejación y otros equilibrios.'};\n  }\n  function mezcla(componentes) {\n    if(!Array.isArray(componentes) || !componentes.length || componentes.some(x=>!Number.isFinite(x.masa) || x.masa<0 || !Number.isFinite(x.densidad) || x.densidad<=0))return {error:'Cada componente requiere masa no negativa en g y densidad positiva en g/mL.'};\n    const masa=componentes.reduce((a,x)=>a+x.masa,0),volumen=componentes.reduce((a,x)=>a+x.masa/x.densidad,0);\n    if(!Number.isFinite(masa) || !Number.isFinite(volumen) || (masa>0 && volumen===0) || !Number.isFinite(masa/volumen))return {error:'La masa, el volumen o la densidad de la mezcla no se puede representar. Reescala las cantidades.'};\n    if(!(masa>0))return {error:'La mezcla necesita masa total positiva.'};\n    return {masa,volumen,densidad:masa/volumen,explicacion:'ρ = Σmᵢ / Σ(mᵢ/ρᵢ), suponiendo volúmenes aditivos a la misma temperatura. Las densidades deben proceder de tus medidas o de fuentes citadas; no se estima contracción de mezcla.'};\n  }\n  function composicion(texto) {\n    const r=Formula.lee(texto);if(r.error)return r;\n    const total=Object.values(r.composicion).reduce((a,x)=>a+x,0);\n    if(!Number.isFinite(total) || total<=0 || !Number.isFinite(r.masaMolar) || r.masaMolar<=0)return {error:'La composición o masa molar no se puede representar. Simplifica los coeficientes de la fórmula.'};\n    return {masaMolar:r.masaMolar,elementos:Object.entries(r.composicion).map(([simbolo,n])=>({simbolo,atomos:n,fraccionAtomica:n/total,fraccionMasa:n*Formula.PESOS[simbolo]/r.masaMolar})),\n      explicacion:'Fracciones de la composición escrita, con pesos atómicos CIAAW 2021. No describen fases, pureza, cristalinidad ni un resultado medido.'};\n  }\n  function flujoTubo(datos) {\n    const {diametro,longitud,viscosidad,densidad,valor}=datos,modo=datos.modo || 'caudal',rugosidad=datos.rugosidad ?? null;\n    if(!['caudal','presion'].includes(modo) || [diametro,longitud,viscosidad,densidad].some(x=>!Number.isFinite(x) || x<=0) || !Number.isFinite(valor) || valor<0 || (rugosidad!=null && (!Number.isFinite(rugosidad) || rugosidad<0)))return {error:'Declara diámetro, longitud, viscosidad y densidad positivos, y caudal o presión no negativos. La rugosidad, si se conoce, debe ser no negativa.'};\n    const D=diametro*1e-3,L=longitud*.01,mu=viscosidad*1e-3,area=Math.PI*D*D/4,volumen=area*L,resistencia=128*mu*L/(Math.PI*D**4);\n    if([D,L,mu,area,volumen,resistencia].some(x=>!Number.isFinite(x) || x<=0))return {error:'La geometría o resistencia no se puede representar. Reescala las unidades del tubo.'};\n    const Q=modo==='caudal' ? valor*1e-6/60 : valor/resistencia,velocidad=Q/area,reynolds=densidad*velocidad*D/mu;\n    if(!Number.isFinite(Q) || !Number.isFinite(velocidad) || !Number.isFinite(reynolds) || (valor>0 && Q===0))return {error:'El caudal o número de Reynolds no se puede representar. Reescala los datos.'};\n    const regimen=reynolds===0 ? 'sin flujo' : reynolds<2300 ? 'laminar' : reynolds<4000 ? 'transición' : 'turbulento';\n    if(modo==='presion' && reynolds>=2300)return {error:'La presión indicada produciría Reynolds '+numero(reynolds)+'. La inversión de Hagen–Poiseuille requiere régimen laminar; introduce el caudal declarado para revisar otro régimen.'};\n    let factorDarcy=reynolds===0 ? null : reynolds<2300 ? 64/reynolds : null,presion=reynolds===0 ? 0 : reynolds<2300 ? resistencia*Q : null,modelo=reynolds<2300 ? 'Hagen–Poiseuille' : '';\n    if(reynolds>=4000 && rugosidad!=null) {\n      const relativo=rugosidad*1e-6/D;if(relativo>.05)return {error:'Colebrook se limita aquí a rugosidad relativa hasta 0,05. Revisa geometría y rugosidad.'};\n      let inversa=7;for(let i=0;i<80;i++){const siguiente=-2*Math.log10(relativo/3.7+2.51*inversa/reynolds);if(Math.abs(siguiente-inversa)<1e-12){inversa=siguiente;break;}inversa=siguiente;}\n      factorDarcy=1/(inversa*inversa);presion=factorDarcy*(L/D)*densidad*velocidad*velocidad/2;modelo='Darcy–Weisbach / Colebrook';\n    }\n    const tiempo=Q>0 ? volumen/Q : null,caudal=Q*60*1e6,volumenML=volumen*1e6,cizalla=reynolds>0 && reynolds<2300 ? 8*velocidad/D : null;\n    if([caudal,volumenML,velocidad,reynolds,presion,factorDarcy,tiempo,cizalla].some(x=>x!=null && !Number.isFinite(x)))return {error:'Una magnitud calculada no se puede representar. Reescala el tubo o el caudal.'};\n    return {caudal,volumenML,velocidad,reynolds,regimen,presion,factorDarcy,tiempo,cizalla,modelo,\n      explicacion:'Tubo circular, rígido y flujo estacionario de fluido newtoniano, con densidad y viscosidad declaradas a la temperatura de trabajo. No incluye pérdidas de entrada, codos ni cambios de fase. '+(regimen==='transición' ? 'En transición no se inventa una caída de presión.' : regimen==='turbulento' && rugosidad==null ? 'Sin rugosidad declarada no se estima la presión turbulenta; cero significa superficie lisa sólo si lo escribes.' : 'Modelo utilizado: '+modelo+'. El tiempo es volumen/caudal, no una duración medida.')};\n  }\n  return {fuerzaIonica,solubilidad,mezcla,composicion,flujoTubo};\n})();\n",
  "src/js/25-fusion.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Fusion = (() => {\n  const CAMPOS=['titulo','tipo','objetivo','autores','referencia','escala','rendimientoTeorico','productoFormula','equipos','notas','sinPurificar','resultadoNombre','resultadoUnidad','flujo'];\n  const LISTAS=['reactivos','disoluciones','pasos','caracterizacion','seguridad','literatura','placas','referencias'];\n  const LOCALES=['lotes','versiones','muestras','secuencias','adjuntos','analisis'];\n  function canonico(v) {\n    if(Array.isArray(v))return v.map(canonico);\n    if(v && typeof v==='object')return Object.fromEntries(Object.keys(v).sort().map(k=>[k,canonico(v[k])]));\n    return v;\n  }\n  const igual=(a,b)=>JSON.stringify(canonico(a ?? null))===JSON.stringify(canonico(b ?? null));\n  function huella(p) {return Evidencia.sha256(new TextEncoder().encode(JSON.stringify(canonico({id:p.id,campos:Object.fromEntries(CAMPOS.map(k=>[k,p[k] ?? null])),listas:Object.fromEntries(LISTAS.map(k=>[k,p[k] || []]))}))));}\n  function compara(base,local,externo) {\n    if(!base || !local || !externo || base.id!==local.id || externo.id!==local.id || [base,local,externo].some(p=>p.format!==Protocolo.FORMATO))return {error:'La base y las dos copias deben pertenecer al mismo protocolo v2. Una copia con otro identificador no acredita una base común.'};\n    for(const p of [base,local,externo]){const r=Protocolo.sanea(p);if(r.error || r.avisos.length || Protocolo.integridad(r.protocolo).length)return {error:'Una de las copias no se puede combinar sin corregir datos o referencias inválidos.'};}\n    const cambios=[],conflictos=[];\n    function decide(clave,a,b,c,etiqueta) {\n      if(igual(b,c))return;\n      if(igual(a,c))return;\n      const x={clave,etiqueta,base:deepCopy(a ?? null),local:deepCopy(b ?? null),externo:deepCopy(c ?? null)};\n      if(igual(a,b))cambios.push(x);else conflictos.push(x);\n    }\n    for(const k of CAMPOS)decide(k,base[k],local[k],externo[k],k);\n    for(const k of LISTAS) {\n      const mapas=[base,local,externo].map(p=>new Map((p[k] || []).map(x=>[String(x.id),x]))),ids=new Set(mapas.flatMap(m=>[...m.keys()]));\n      for(const id of ids)decide(k+'/'+id,mapas[0].get(id),mapas[1].get(id),mapas[2].get(id),k+' · '+((mapas[2].get(id) || mapas[1].get(id) || mapas[0].get(id)).nombre || (mapas[2].get(id) || mapas[1].get(id) || mapas[0].get(id)).texto || id));\n      if(k==='pasos')decide('$orden/pasos',...( [base,local,externo].map(p=>(p.pasos || []).map(x=>String(x.id)))), 'orden del procedimiento');\n    }\n    return {cambios,conflictos,local:deepCopy(local),baseHuella:huella(base),localHuella:huella(local),externaHuella:huella(externo),excluidos:LOCALES.filter(k=>!igual(local[k] || [],externo[k] || [])),explicacion:'Se combinan sólo definiciones del método. Cada elemento se conserva completo: no se mezclan sus campos. Ejecuciones, versiones, muestras, secuencias, archivos y análisis permanecen locales. La huella prueba contenido, no autoría.'};\n  }\n  function resuelve(plan,decisiones={},actual) {\n    if(!plan || plan.error || !plan.local || !Array.isArray(plan.conflictos))return {error:'Prepara una comparación antes de combinar.'};\n    actual=actual || plan.local;if(huella(actual)!==plan.localHuella)return {error:'El método local cambió desde la comparación. Vuelve a revisar el archivo antes de combinar.'};\n    const pendientes=plan.conflictos.filter(x=>!['local','externo'].includes(decisiones[x.clave]));if(pendientes.length)return {error:'Resuelve los '+pendientes.length+' conflictos antes de aplicar cambios.'};\n    if(Object.keys(decisiones).some(k=>!plan.conflictos.some(x=>x.clave===k)))return {error:'Una decisión no pertenece a esta comparación.'};\n    const p=deepCopy(actual),aplicar=plan.cambios.concat(plan.conflictos.filter(x=>decisiones[x.clave]==='externo'));let orden=null;\n    for(const x of aplicar) {\n      if(x.clave==='$orden/pasos'){orden=x.externo;continue;}\n      const partes=x.clave.split('/'),k=partes[0],id=partes.slice(1).join('/');\n      if(CAMPOS.includes(k) && !id)p[k]=deepCopy(x.externo);\n      else if(LISTAS.includes(k)){const i=p[k].findIndex(v=>String(v.id)===id);if(x.externo==null){if(i>=0)p[k].splice(i,1);}else if(i>=0)p[k][i]=deepCopy(x.externo);else p[k].push(deepCopy(x.externo));}\n    }\n    if(orden){const mapa=new Map(p.pasos.map(x=>[String(x.id),x])),ids=new Set(orden);p.pasos=orden.filter(id=>mapa.has(id)).map(id=>mapa.get(id)).concat(p.pasos.filter(x=>!ids.has(String(x.id))));}\n    const r=Protocolo.sanea(p);if(r.error || r.avisos.length)return {error:'La combinación requiere corregir referencias: '+(r.error || r.avisos.join(' '))};\n    const errores=Protocolo.integridad(p);if(errores.length)return {error:'La combinación no es válida: '+errores.join(' ')};\n    return {protocolo:p,cantidad:aplicar.length,explicacion:'Se aplicarán '+aplicar.length+' cambios externos. Las elecciones locales y todos los registros experimentales conservan sus valores completos.'};\n  }\n  function filasConflicto(cambio) {\n    const valores=[cambio.base,cambio.local,cambio.externo];\n    if(valores.every(v=>v==null || typeof v==='object' && !Array.isArray(v))){\n      const claves=new Set(valores.flatMap(v=>v ? Object.keys(v) : []));\n      return [...claves].filter(k=>k!=='id' && !(igual(valores[0]?.[k],valores[1]?.[k]) && igual(valores[1]?.[k],valores[2]?.[k]))).map(k=>({campo:k,valores:valores.map(v=>({ausente:v==null,valor:v?.[k] ?? null}))}));\n    }\n    return [{campo:cambio.etiqueta,valores:valores.map(v=>({ausente:false,valor:v}))}];\n  }\n  function paquete(base,actual) {\n    const r=compara(base,actual,actual);if(r.error)return r;\n    const definicion=p=>Object.fromEntries(Object.entries(Protocolo.definicion(p)).filter(([k])=>!LOCALES.includes(k)));\n    return {datos:{format:'erlen-methods-cambios-v1',baseHuella:huella(base),base:definicion(base),metodo:definicion(actual),fechaExportacion:ahora()},explicacion:'Intercambio de definiciones con base verificable. Ejecuciones, muestras, secuencias, archivos y análisis no se incluyen en este archivo.'};\n  }\n  return {CAMPOS,LISTAS,LOCALES,huella,compara,resuelve,paquete,filasConflicto};\n})();\n",
  "src/js/30-persistencia.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Persistencia = (() => {\n  let base=null, modo='localStorage', cache=new Map(), errorInicial='';\n  async function inicia(legado) {\n    if(location.protocol==='file:' || !window.indexedDB) return;\n    try {\n      const Dexie=window.Bibliotecas.dexie.Dexie;\n      base=new Dexie('erlen-methods.datos');\n      base.version(1).stores({registros:'&clave',adjuntos:'&id',meta:'&clave'});\n      await base.open();\n      const migracion=await base.meta.get('migracion');\n      if(!migracion) {\n        const registros=[],adjuntos=[];\n        for(const [clave,valor] of legado) {\n          if(clave.startsWith('erlen-methods.adjunto.')) {\n            const x=JSON.parse(valor),bytes=window.fflate.strToU8(window.atob(x.base64),true);\n            if(x.id!=='sha256-'+Evidencia.sha256(bytes) || clave!=='erlen-methods.adjunto.'+x.id)throw new Error('Un adjunto del almacenamiento anterior no coincide con su hash.');\n            adjuntos.push({id:x.id,bytes});\n          }else registros.push({clave,valor});\n        }\n        // El marcador se confirma en la misma transacción: una interrupción no migra a medias.\n        await base.transaction('rw',base.registros,base.adjuntos,base.meta,async()=>{\n          // Dos pestañas que arrancan juntas vuelven a comprobar el marcador\n          // dentro de la transacción, para que la segunda no copie el legado.\n          if(await base.meta.get('migracion'))return;\n          await base.registros.bulkPut(registros);\n          if(adjuntos.length)await base.adjuntos.bulkPut(adjuntos);\n          await base.meta.put({clave:'migracion',fecha:ahora(),version:1});\n        });\n      }\n      cache=new Map((await base.registros.toArray()).map(x=>[x.clave,x.valor]));modo='IndexedDB';\n    }catch(error) {\n      // Una base existente inaccesible no autoriza abrir copias viejas del legado.\n      if(base)base.close();base=null;\n      errorInicial='No se pudo abrir IndexedDB: '+error.message+'. Se conserva el legado; exporta un respaldo antes de continuar.';\n      modo='bloqueado';bloquea(new Error(errorInicial));\n    }\n  }\n  const lee=clave=>cache.has(clave) ? cache.get(clave) : null;\n  function prepara(cambios) { cambios.forEach(([clave,valor])=>{if(valor==null)cache.delete(clave);else cache.set(clave,valor);}); }\n  async function escribe(cambios,esperados,adjuntos) {\n    if(errorInicial)throw new Error(errorInicial);\n    if(!base)return false;\n    const copia=cambios.map(([clave,valor])=>[clave,valor]);\n    await base.transaction('rw',base.registros,base.adjuntos,async()=>{\n      for(const [clave,valor] of (esperados || [])) {\n        const actual=await base.registros.get(clave);\n        if((actual ? actual.valor : null)!==valor)throw new Error('Otra pestaña cambió estos datos. Descarga tu copia y recarga antes de continuar.');\n      }\n      if(adjuntos && adjuntos.length)await base.adjuntos.bulkPut(adjuntos.map(x=>({id:x.id,bytes:new Uint8Array(x.bytes)})));\n      for(const [clave,valor] of copia) {\n        if(valor==null)await base.registros.delete(clave);else await base.registros.put({clave,valor});\n      }\n    });\n    return true;\n  }\n  const adjunto=async id=>{\n    if(base){const x=await base.adjuntos.get(id);return x ? new Uint8Array(x.bytes) : null;}\n    try {const x=JSON.parse(localStorage.getItem('erlen-methods.adjunto.'+id) || 'null');return x ? window.fflate.strToU8(window.atob(x.base64),true) : null;}catch(error){return null;}\n  };\n  async function respaldo() {\n    if(!base) return {registros:[],adjuntos:[]};\n    return base.transaction('r',base.registros,base.adjuntos,async()=>({registros:await base.registros.toArray(),adjuntos:await base.adjuntos.toArray()}));\n  }\n  async function restaura(registros,adjuntos) {\n    if(!base)throw new Error('Restaura el respaldo completo desde Methods en la suite (IndexedDB).');\n    await base.transaction('rw',base.registros,base.adjuntos,async()=>{\n      await base.registros.clear();await base.adjuntos.clear();\n      await base.registros.bulkPut(registros);await base.adjuntos.bulkPut(adjuntos);\n    });\n    cache=new Map(registros.map(x=>[x.clave,x.valor]));\n  }\n  function bloquea(error) {errorInicial=error.message;window.dispatchEvent(new CustomEvent('erlen-methods:guardado-error',{detail:errorInicial}));}\n  function cierra(){if(base)base.close();}\n  // pagehide puede entrar en la caché de navegación: la conexión sigue viva.\n  // Los adjuntos se escriben exclusivamente en la transacción del protocolo.\n  return {cierra,bloquea,inicia,lee,prepara,escribe,adjunto,respaldo,restaura,get modo(){return modo;},get error(){return errorInicial;}};\n})();\n",
  "src/js/30-ui.js": "/* ==== 30-ui.js ==== */\n'use strict';\n/* ================= piezas de interfaz =================\n   Desde aquí el código toca el DOM. Lo mínimo para construir pantallas sin\n   marco: h() crea elementos, UI.* da campos con etiqueta, diálogos con foco\n   atrapado, toasts con «Deshacer» y descargas. Los estilos están en\n   src/css/02-controles.css y solo usan tokens de la suite. */\n\nconst $ = (s, r) => (r || document).querySelector(s);\nconst $$ = (s, r) => Array.from((r || document).querySelectorAll(s));\n\nfunction h(tag, attrs, ...kids) {\n  const el = document.createElement(tag);\n  if (attrs) for (const k in attrs) {\n    const v = attrs[k];\n    if (v == null || v === false) continue;\n    if (k === 'class') el.className = v;\n    else if (k === 'html') el.innerHTML = v;\n    else if (k.startsWith('on') && typeof v === 'function') el.addEventListener(k.slice(2), v);\n    else el.setAttribute(k, v === true ? '' : v);\n  }\n  for (const k of kids.flat(9)) {\n    if (k == null || k === false) continue;\n    el.append(k.nodeType ? k : document.createTextNode(k));\n  }\n  return el;\n}\n\n/* ---------- toasts (COHERENCIA-APPS §6) ----------\n   2,6 s, o 6,5 s si traen una acción («Deshacer»); el aviso, en ámbar. */\nfunction toast(texto, tipo, accion) {\n  const raiz = $('#toasts');\n  if (!raiz) return;\n  const t = h('div', {class: 'toast' + (tipo === 'warn' || tipo === 'danger' ? ' toast-aviso' : '')}, h('span', null, texto));\n  if (accion) t.append(h('button', {type: 'button', class: 'btn btn-sec btn-mini', onclick: () => { t.remove(); accion.fn(); }}, accion.t));\n  raiz.append(t);\n  setTimeout(() => t.remove(), accion ? 6500 : 2600);\n}\n\nconst UI = (() => {\n  let n = 0;\n  const id = () => 'c' + (++n);\n\n  /* Campo con etiqueta visible: la etiqueta nombra el control y, si hay\n     unidad, la unidad va dentro de la etiqueta para el lector de pantalla. */\n  function campo(etiqueta, control, opc) {\n    const o = opc || {};\n    const cid = control.id || (control.id = id());\n    const et = h('label', {for: cid, class: 'campo-etq'}, etiqueta, o.unidad ? h('span', {class: 'campo-unidad'}, ' (' + o.unidad + ')') : null);\n    return h('div', {class: 'campo' + (o.ancho ? ' campo-' + o.ancho : '') + (o.clase ? ' ' + o.clase : '')}, et, control, o.ayuda ? h('small', {class: 'campo-ayuda'}, o.ayuda) : null);\n  }\n  function texto(valor, alCambiar, opc) {\n    const o = opc || {};\n    const el = h(o.area ? 'textarea' : 'input', Object.assign({class: 'inp', autocomplete: 'off', spellcheck: o.area ? 'true' : 'false'}, o.area ? {rows: o.filas || 3} : {type: 'text'}, o.attrs || {}));\n    el.value = valor == null ? '' : valor;\n    if (o.placeholder) el.placeholder = o.placeholder;\n    el.addEventListener('input', () => alCambiar(el.value));\n    return el;\n  }\n  /* Número con coma o punto: «0,75» y «0.75» valen lo mismo. Vacío es null. */\n  const leeNumero = s => { const t = String(s).trim().replace(',', '.'); if (t === '') return null; if(!/^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][+-]?\\d+)?$/.test(t))return NaN;const v=Number(t);return Number.isFinite(v) && !(v===0 && /[1-9]/.test(t.split(/[eE]/)[0])) ? v : NaN; };\n  function numeroCampo(valor, alCambiar, opc) {\n    const o = opc || {};\n    const el = h('input', Object.assign({class: 'inp inp-num', type: 'text', inputmode: 'decimal', autocomplete: 'off'}, o.attrs || {}));\n    el.value = valor == null ? '' : String(valor).replace('.', ',');\n    if (o.placeholder) el.placeholder = o.placeholder;\n    el.addEventListener('input', () => {\n      const v = leeNumero(el.value);\n      const mal = Number.isNaN(v) || (o.min != null && v != null && v < o.min) || (o.max != null && v != null && v > o.max);\n      el.classList.toggle('erlen-campo-error', mal);\n      el.setAttribute('aria-invalid', mal ? 'true' : 'false');\n      if (!mal) alCambiar(v);\n    });\n    return el;\n  }\n  function selector(valor, opciones, alCambiar, opc) {\n    const el = h('select', Object.assign({class: 'inp'}, (opc && opc.attrs) || {}));\n    for (const [v, t] of opciones) el.append(h('option', {value: v, selected: v === valor ? true : null}, t));\n    el.addEventListener('change', () => alCambiar(el.value));\n    return el;\n  }\n  function casilla(etiqueta, valor, alCambiar) {\n    const c = h('input', {type: 'checkbox', class: 'casilla'});\n    c.checked = !!valor;\n    c.addEventListener('change', () => alCambiar(c.checked));\n    return h('label', {class: 'casilla-etq'}, c, ' ', etiqueta);\n  }\n  function boton(textoBoton, accion, opc) {\n    const o = opc || {};\n    return h('button', {type: 'button', class: 'btn ' + (o.tipo === 'pri' ? 'btn-pri' : o.tipo === 'peligro' ? 'btn-peligro' : o.tipo === 'suave' ? 'btn-suave' : 'btn-sec') + (o.mini ? ' btn-mini' : ''),\n      title: o.titulo || null, 'aria-label': o.aria || null, onclick: evento => {\n        const ambito=evento.currentTarget.closest('.modal') || (o.validar ? evento.currentTarget.closest('.bloque') : null);\n        const invalido=ambito && (o.validar || o.tipo==='pri' || o.tipo==='peligro') && ambito.querySelector('[aria-invalid=\"true\"]');\n        if(invalido){invalido.focus();toast('Corrige el campo marcado antes de confirmar.','warn');return;}\n        return accion(evento);\n      }}, o.icono ? h('span', {class: 'btn-ico', 'aria-hidden': 'true', html: o.icono}) : null, textoBoton);\n  }\n  /* Cabecera de pantalla: eyebrow, h2 en LM Roman y una frase. */\n  function cabecera(eyebrow, titulo, frase) {\n    return h('header', {class: 'encabezado'}, h('p', {class: 'eyebrow'}, eyebrow), h('h2', {class: 'titulo-pantalla', tabindex: '-1'}, titulo), frase ? h('p', {class: 'subtitulo'}, frase) : null);\n  }\n  function vacio(titulo, textoVacio, ...botones) {\n    return h('div', {class: 'vacio'}, h('h3', null, titulo), h('p', null, textoVacio), botones.length ? h('div', {class: 'fila-botones'}, botones) : null);\n  }\n  function aviso(tipo, contenido) {\n    return h('div', {class: 'aviso aviso-' + tipo, role: tipo === 'error' ? 'alert' : 'note'}, contenido);\n  }\n\n  /* ---------- diálogos ----------\n     role=dialog, aria-modal, título en LM Roman, ✕ «Cerrar», foco atrapado,\n     Escape, fondo inerte y el foco de vuelta a donde estaba. */\n  let vivo = null;\n  function modal(opc) {\n    if (vivo) vivo.cierra();\n    const previo = document.activeElement;\n    const tid = id();\n    const cerrar = h('button', {type: 'button', class: 'ico', 'aria-label': 'Cerrar', title: 'Cerrar (Esc)',\n      html: '<svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M6 6l12 12M18 6L6 18\"/></svg>'});\n    const caja = h('div', {class: 'modal' + (opc.tam ? ' modal-' + opc.tam : ''), role: 'dialog', 'aria-modal': 'true', 'aria-labelledby': tid},\n      h('div', {class: 'modal-cab'}, h('h2', {id: tid, class: 'modal-tit'}, opc.titulo), cerrar),\n      h('div', {class: 'modal-cuerpo'}, opc.cuerpo),\n      opc.pie ? h('div', {class: 'modal-pie'}, opc.pie) : null);\n    const fondo = h('div', {class: 'modal-fondo'}, caja);\n    const app = $('.app');\n    const inicio = $('.erlen-inicio');\n    const inertes = [app, inicio].filter(x => x && !x.hasAttribute('inert'));\n    inertes.forEach(x => x.setAttribute('inert', ''));\n    $('#modalRoot').append(fondo);\n    const enfocables = () => $$('button,[href],input,select,textarea,[tabindex]:not([tabindex=\"-1\"])', caja).filter(x => !x.disabled);\n    const cierra = () => {\n      if (!vivo || vivo.fondo !== fondo) return;\n      vivo = null;\n      fondo.remove();\n      inertes.forEach(x => x.removeAttribute('inert'));\n      if (previo && previo.isConnected) previo.focus();\n      if (opc.alCerrar) opc.alCerrar();\n    };\n    cerrar.addEventListener('click', cierra);\n    fondo.addEventListener('mousedown', e => { if (e.target === fondo) cierra(); });\n    caja.addEventListener('keydown', e => {\n      if (e.key === 'Escape') { e.preventDefault(); e.stopPropagation(); cierra(); return; }\n      if (e.key !== 'Tab') return;\n      const f = enfocables();\n      if (!f.length) return;\n      if (e.shiftKey && document.activeElement === f[0]) { e.preventDefault(); f[f.length - 1].focus(); }\n      else if (!e.shiftKey && document.activeElement === f[f.length - 1]) { e.preventDefault(); f[0].focus(); }\n    });\n    vivo = {fondo, cierra};\n    const primero = opc.foco ? $(opc.foco, caja) : enfocables().find(x => x !== cerrar) || cerrar;\n    (primero || cerrar).focus();\n    return vivo;\n  }\n  const cierraModal = () => vivo && vivo.cierra();\n  function confirma(opc) {\n    return new Promise(res => {\n      let r = false;\n      modal({titulo: opc.titulo, tam: 'sm', cuerpo: h('p', null, opc.texto),\n        pie: [boton('Cancelar', () => cierraModal()), boton(opc.si || 'Aceptar', () => { r = true; cierraModal(); }, {tipo: opc.peligro ? 'peligro' : 'pri'})],\n        alCerrar: () => res(r)});\n    });\n  }\n\n  /* ---------- archivos ---------- */\n  function descarga(nombre, contenido, tipo) {\n    const url = URL.createObjectURL(new Blob([contenido], {type: tipo || 'application/octet-stream'}));\n    const a = h('a', {href: url, download: nombre});\n    document.body.append(a);\n    a.click();\n    a.remove();\n    setTimeout(() => URL.revokeObjectURL(url), 1000);\n  }\n  async function copia(textoCopia) {\n    try { await navigator.clipboard.writeText(textoCopia); return true; }\n    catch (e) {\n      const t = h('textarea', {class: 'visualmente-oculto'});\n      t.value = textoCopia;\n      document.body.append(t);\n      t.select();\n      let ok = false;\n      try { ok = document.execCommand('copy'); } catch (e2) { ok = false; }\n      t.remove();\n      return ok;\n    }\n  }\n  const nombreArchivo = s => (String(s || 'protocolo').normalize('NFD').replace(/[̀-ͯ]/g, '').replace(/[^A-Za-z0-9]+/g, '-').replace(/^-|-$/g, '').toLowerCase().slice(0, 60) || 'protocolo');\n\n  return {campo, texto, numero: numeroCampo, leeNumero, selector, casilla, boton, cabecera, vacio, aviso, modal, cierraModal, confirma, descarga, copia, nombreArchivo};\n})();\n",
  "src/js/31-estado.js": "/* ==== 31-estado.js ==== */\n'use strict';\n/* ================= biblioteca y protocolo abierto =================\n   La biblioteca vive en este navegador (localStorage, prefijo\n   «erlen-methods.»): un índice ligero y un registro por protocolo. Borrar los\n   datos del navegador la borra; por eso «Guardar copia» descarga el .json y\n   el inicio lo recuerda.\n\n   El protocolo abierto se guarda solo, con un retraso corto, y cada cambio\n   deja una instantánea para Deshacer. Si el navegador no deja guardar (cuota\n   llena, modo privado estricto) se dice en la barra y en el inicio: nunca se\n   oculta una pérdida. */\n\nconst Almacen = (() => {\n  const PRE = 'erlen-methods.';\n  const K_INDICE = PRE + 'indice', K_PREFS = PRE + 'prefs', kP = id => PRE + 'p.' + id;\n  const bruto = k => Persistencia.modo !== 'localStorage' ? Persistencia.lee(k) : localStorage.getItem(k);\n  const lee = k => { try { return JSON.parse(bruto(k) || 'null'); } catch (e) { return null; } };\n  let cola = Promise.resolve();\n  function escribeDatos(cambios, claves, adjuntos) {\n    if(Persistencia.error) throw new Error(Persistencia.error);\n    if(Persistencia.modo !== 'IndexedDB') {\n      const todos=cambios.slice();\n      for(const a of adjuntos || []) {\n        if(a.bytes.length>1024*1024)throw new Error('En archivo local, cada adjunto admite hasta 1 MB; abre Methods desde la suite para archivos mayores.');\n        todos.push([PRE+'adjunto.'+a.id,{id:a.id,base64:window.btoa(window.fflate.strFromU8(a.bytes,true))}]);\n      }\n      transaccion(todos);return;\n    }\n    const antes = (claves || cambios.map(x => x[0])).map(k => [k, bruto(k)]);\n    const serializados = cambios.map(([k,v]) => [k,v == null ? null : JSON.stringify(v)]);\n    Persistencia.prepara(serializados);\n    const tarea = cola.then(() => Persistencia.escribe(serializados,antes,adjuntos));\n    cola = tarea.catch(error => Persistencia.bloquea(error));\n    return tarea;\n  }\n  async function inicia() {\n    recupera(); const legado = new Map();\n    try { for(let i=0;i<localStorage.length;i++) {const k=localStorage.key(i);if(k.startsWith(PRE) && k!==K_DIARIO && !k.startsWith(PRE+'recuperacion.'))legado.set(k,localStorage.getItem(k));} }catch(error){}\n    await Persistencia.inicia(legado);\n  }\n  /* Lanza con un mensaje legible si no se pudo escribir. */\n  function escribe(k, v) {\n    try { localStorage.setItem(k, JSON.stringify(v)); }\n    catch (e) {\n      throw new Error(/quota/i.test(e.name + e.message) ? 'El almacenamiento del navegador está lleno.' : 'Este navegador no deja guardar datos locales.');\n    }\n  }\n  const esperados = new Map();\n  const K_DIARIO = PRE + 'guardado-pendiente';\n  function recupera() {\n    const diario = lee(K_DIARIO);\n    if (!diario || Persistencia.modo === 'IndexedDB') return;\n    try {\n      for (const [clave, valor] of diario.anteriores) {\n        if (!clave.startsWith(PRE)) throw new Error('Registro de recuperación inválido.');\n        if (valor == null) localStorage.removeItem(clave); else localStorage.setItem(clave, valor);\n      }\n      localStorage.removeItem(K_DIARIO);\n    } catch (error) { throw new Error('No se pudo recuperar el guardado anterior. Descarga una copia antes de continuar.'); }\n  }\n  function transaccion(cambios) {\n    recupera();\n    const anteriores = cambios.map(([clave]) => [clave, localStorage.getItem(clave)]);\n    escribe(K_DIARIO, {anteriores});\n    try {\n      for (const [clave, valor] of cambios) {\n        if (valor == null) localStorage.removeItem(clave); else escribe(clave, valor);\n      }\n      localStorage.removeItem(K_DIARIO);\n    } catch (error) { recupera(); throw error; }\n  }\n  const indice = () => { const i = lee(K_INDICE); return Array.isArray(i) ? i.filter(x => x && typeof x.id === 'string') : []; };\n  async function guarda(p,adjuntos) {\n    recupera();\n    const existente = bruto(kP(p.id));\n    if (esperados.has(p.id) && esperados.get(p.id) !== existente) throw new Error('Otra pestaña cambió este protocolo. Descarga tu copia y vuelve a abrir la versión guardada.');\n    const i = indice().filter(x => x.id !== p.id);\n    i.push({id: p.id, titulo: p.titulo, resumen: Protocolo.resumen(p), modificado: p.modificado, tipo: p.tipo});\n    const tarea=escribeDatos([[kP(p.id), p], [K_INDICE, i]],undefined,adjuntos);\n    esperados.set(p.id, JSON.stringify(p));\n    await tarea;\n  }\n  function carga(id) {\n    recupera();\n    const contenido = lee(kP(id));\n    if (contenido && !esperados.has(id)) esperados.set(id, bruto(kP(id)));\n    if (!contenido) return {error: 'No se encontró el protocolo en este navegador.'};\n    return Protocolo.sanea(contenido);\n  }\n  async function borra(id) {\n    await escribeDatos([[kP(id), null], [K_INDICE, indice().filter(x => x.id !== id)]]);\n    esperados.delete(id);\n  }\n  const prefs = () => lee(K_PREFS) || {};\n  /* El laboratorio (inventario y equipos) es de todos los protocolos. */\n  const K_LAB = PRE + 'laboratorio';\n  const laboratorio = () => Laboratorio.sanea(lee(K_LAB));\n  const guardaLaboratorio = l => {const errores=Laboratorio.valida(l);if(errores.length)throw new Error(errores.join(' '));return escribeDatos([[K_LAB, l]]);};\n  function guardaPrefs(p) { try { const tarea=escribeDatos([[K_PREFS,p]],[]); if(tarea)tarea.catch(()=>{}); } catch(e){} }\n  /* Plantillas propias: protocolos sin lotes ni versiones que aparecen en el\n     inicio junto a las de la app. {id: {disciplina, tarjeta, protocolo}} */\n  const K_PL = PRE + 'plantillas';\n  const plantillas = () => { const x = lee(K_PL); return x && typeof x === 'object' && !Array.isArray(x) ? x : {}; };\n  async function guardaPlantilla(p, disciplina) {\n    const todas = plantillas();\n    const id = 'propia-' + uid('t').slice(1);\n    const copia = Object.assign(deepCopy(p), {lotes: [], versiones: []});\n    todas[id] = {disciplina: disciplina || 'Mis plantillas', tarjeta: (p.objetivo || Protocolo.resumen(p) || '').slice(0, 160), protocolo: copia};\n    await escribeDatos([[K_PL, todas]]);\n    return id;\n  }\n  async function borraPlantilla(id) { const t = plantillas(); delete t[id]; await escribeDatos([[K_PL,t]]); }\n  function restaura(registros,adjuntos) {\n    if(Persistencia.modo==='IndexedDB')return Persistencia.restaura(registros,adjuntos);\n    if(Persistencia.error)throw new Error(Persistencia.error);\n    const cambios=registros.map(r=>[r.clave,JSON.parse(r.valor)]),claves=new Set(registros.map(r=>r.clave));\n    for(let i=0;i<localStorage.length;i++){const k=localStorage.key(i);if(k.startsWith(PRE) && !claves.has(k) && k!==K_DIARIO)cambios.push([k,null]);}\n    for(const a of adjuntos){if(a.bytes.length>1024*1024)throw new Error('Este respaldo contiene adjuntos mayores de 1 MB. Restáuralo desde la suite con IndexedDB.');cambios.push([PRE+'adjunto.'+a.id,{id:a.id,base64:window.btoa(window.fflate.strFromU8(a.bytes,true))}]);}\n    transaccion(cambios);\n  }\n  return {restaura,espera:()=>cola, inicia, indice, guarda, carga, borra, prefs, guardaPrefs, laboratorio, guardaLaboratorio, plantillas, guardaPlantilla, borraPlantilla, PRE};\n})();\n\nconst Estado = (() => {\n  let p = Protocolo.nuevo();\n  /* Un ejemplo abierto desde la URL no entra en la biblioteca hasta que lo\n     editas: así «Pruébalo en vivo» del portal no llena la biblioteca de\n     copias. */\n  let efimero = true;\n  let deshacer = [], rehacer = [], grupo = null, grupoT = 0;\n  const subs = new Set();\n  let temporizador = null, colaGuardado = Promise.resolve(), revisionCambios = 0;\n  const archivosPendientes=new Map();\n  const claveRecuperacion = Almacen.PRE + 'recuperacion.' + uid('sesion');\n  const estado = {pendiente: false, error: null};\n\n  /* Dos clases de suscriptor: los que repintan la pantalla (solo tras un\n     cambio estructural: añadir, quitar, deshacer, abrir) y los «siempre»\n     (indicador de guardado, contadores de la tira, cinta), que también\n     escuchan lo que se teclea. Repintar mientras escribes robaría el foco. */\n  const llama = f => { try { f(); } catch (e) { console.error(e); } };\n  const avisa = () => subs.forEach(llama);\n  const avisaEstado = () => subs.forEach(f => { if (f.siempre) llama(f); });\n  const foto = () => JSON.stringify(p);\n  function conservaPendiente() {\n    if(efimero || (!estado.pendiente && !estado.error) || !Protocolo.tieneContenido(p))return;\n    try {localStorage.setItem(claveRecuperacion,JSON.stringify({fecha:ahora(),protocolo:p,archivosSinGuardar:[...archivosPendientes.keys()]}));}\n    catch(error){estado.error='No se pudo conservar la edición pendiente al cerrar. Descarga una copia con Archivo → Guardar copia.';avisaEstado();}\n  }\n  window.addEventListener('erlen-methods:guardado-error',e=>{estado.error=e.detail+' Descarga copias antes de recargar.';avisaEstado();});\n\n  function guardaYa() {\n    clearTimeout(temporizador); temporizador = null;\n    const tarea = colaGuardado.then(async () => {\n      if (efimero || !Protocolo.tieneContenido(p)) { estado.pendiente = false; avisaEstado(); return; }\n      const captura = deepCopy(p), revision = revisionCambios;\n      const usados=Protocolo.adjuntosUsados(captura),ids=new Set(usados.error ? [] : usados.archivos.map(x=>x.id));\n      const archivos=[...archivosPendientes.values()].filter(x=>ids.has(x.id));\n      estado.pendiente = true; avisaEstado();\n      try {if(usados.error)throw new Error(usados.error);await Almacen.guarda(captura,archivos);for(const x of archivos)if(archivosPendientes.get(x.id)===x)archivosPendientes.delete(x.id);estado.error = null; if(revisionCambios===revision){try{localStorage.removeItem(claveRecuperacion);}catch(error){/* La copia pendiente sigue disponible; la base sí confirmó. */}} }\n      catch (error) { estado.error = error.message + ' Descarga una copia con Archivo → Guardar copia.'+(archivosPendientes.size ? ' Los archivos pendientes siguen descargables desde Adjuntos mientras esta pestaña permanezca abierta.' : ''); }\n      estado.pendiente = revisionCambios !== revision;\n      avisaEstado();\n    });\n    colaGuardado = tarea.catch(error => {estado.error=error.message;avisaEstado();});\n    return tarea;\n  }\n  async function aseguraGuardado() {\n    for(let intento=0;intento<4;intento++) {\n      await guardaYa();\n      if(estado.error)return {error:estado.error};\n      if(!estado.pendiente)return {};\n    }\n    return {error:'El protocolo sigue cambiando. Espera a que termine el guardado antes de abrir otro.'};\n  }\n  async function cambiaConArchivos(fn,archivos) {\n    let total=[...archivosPendientes.values()].reduce((a,x)=>a+x.bytes.length,0);\n    for(const x of archivos || []) {\n      if(!x || !(x.bytes instanceof Uint8Array) || x.bytes.length>10*1024*1024 || x.id!=='sha256-'+Evidencia.sha256(x.bytes))return {error:'El archivo no tiene una huella válida o supera 10 MB.'};\n      if(!archivosPendientes.has(x.id))total+=x.bytes.length;\n    }\n    if(total>50*1024*1024)return {error:'Hay más de 50 MB de archivos pendientes. Guarda o descarga los anteriores antes de añadir otros.'};\n    for(const x of archivos || [])archivosPendientes.set(x.id,{id:x.id,bytes:new Uint8Array(x.bytes)});\n    cambia(fn);return aseguraGuardado();\n  }\n  async function archivo(id) {const x=archivosPendientes.get(id);return x ? new Uint8Array(x.bytes) : Persistencia.adjunto(id);}\n  function programa() {\n    estado.pendiente = true;\n    clearTimeout(temporizador);\n    temporizador = setTimeout(guardaYa, 400);\n  }\n\n  /* Aplica un cambio. Las pulsaciones seguidas en el mismo campo (misma\n     clave de grupo, menos de 1,2 s entre ellas) comparten una sola entrada de\n     Deshacer. */\n  function cambia(fn, opc) {\n    const o = opc || {};\n    const t = Date.now();\n    if (!(o.grupo && o.grupo === grupo && t - grupoT < 1200)) {\n      deshacer.push(foto());\n      if (deshacer.length > 80) deshacer.shift();\n      rehacer = [];\n    }\n    grupo = o.grupo || null;\n    grupoT = t;\n    fn(p);\n    revisionCambios++;\n    p.modificado = new Date().toISOString();\n    efimero = false;\n    programa();\n    if (o.silencioso) avisaEstado(); else avisa();\n  }\n  function mueveHistoria(de, a) {\n    if (!de.length) return false;\n    a.push(foto());\n    p = Protocolo.sanea(JSON.parse(de.pop())).protocolo;\n    grupo = null;\n    revisionCambios++;\n    efimero = false;\n    programa();\n    avisa();\n    return true;\n  }\n\n  async function reemplaza(nuevo, esEfimero) {\n    const guardado=await aseguraGuardado();\n    if (guardado.error) return guardado;\n    p = nuevo;\n    archivosPendientes.clear();\n    revisionCambios++;\n    efimero = !!esEfimero;\n    deshacer = []; rehacer = []; grupo = null;\n    if (!efimero) await guardaYa();\n    avisa();\n    return estado.error ? {error:estado.error} : {};\n  }\n  function descarta() {\n    clearTimeout(temporizador); temporizador = null; efimero = true; estado.error = null;\n    return reemplaza(Protocolo.nuevo(), true);\n  }\n  const nuevo = () => reemplaza(Protocolo.nuevo(), true);\n  async function abre(id) {\n    const r = Almacen.carga(id);\n    if (r.error) return r;\n    const cambio = await reemplaza(r.protocolo, false);\n    return cambio.error ? cambio : r;\n  }\n  async function desdePlantilla(idPlantilla, esEfimero) {\n    const pl = DATOS.plantillas[idPlantilla] || Almacen.plantillas()[idPlantilla];\n    if (!pl) return {error: 'La plantilla «' + idPlantilla + '» no existe en esta versión.'};\n    const r = Protocolo.sanea(deepCopy(pl.protocolo));\n    const t = new Date().toISOString();\n    Object.assign(r.protocolo, {id: uid('p'), creado: t, modificado: t});\n    const cambio = await reemplaza(r.protocolo, esEfimero);\n    return cambio.error ? cambio : r;\n  }\n  async function importa(textoArchivo) {\n    let bruto;\n    try { bruto = JSON.parse(textoArchivo); } catch (e) { return {error: 'El archivo no es JSON válido.'}; }\n    if(bruto && bruto.format===Protocolo.FORMATO && !ValidadorMethods(bruto))return {error:'El protocolo no cumple su formato: '+ValidadorMethods.errors.map(x=>x.instancePath+' '+x.message).join('; ')};\n    if(bruto && bruto.format===Protocolo.FORMATO){const errores=Protocolo.integridad(bruto);if(errores.length)return {error:'El protocolo no se puede importar: '+errores.join(' ') };}\n    const r = Protocolo.sanea(bruto);\n    if (r.error) return r;\n    /* Una importación es una copia: si el id ya está en la biblioteca, se da\n       otro para no pisar el protocolo que ya tenías. */\n    if (Almacen.indice().some(x => x.id === r.protocolo.id)) r.protocolo.id = uid('p');\n    const cambio = await reemplaza(r.protocolo, false);\n    return cambio.error ? cambio : r;\n  }\n  async function duplica(id) {\n    const r = id === p.id ? {protocolo: deepCopy(p)} : Almacen.carga(id);\n    if (r.error) return r;\n    const t = new Date().toISOString();\n    const copia = Object.assign(deepCopy(r.protocolo), {id: uid('p'), titulo: (r.protocolo.titulo || 'Protocolo sin título') + ' (copia)', creado: t, modificado: t, lotes: []});\n    await Almacen.guarda(copia);\n    return {protocolo: copia};\n  }\n  function restaura() {\n    const ult = Almacen.prefs().ultimo;\n    if (ult && Almacen.indice().some(x => x.id === ult)) {\n      const r = Almacen.carga(ult);\n      if (!r.error) { p = r.protocolo; efimero = false; }\n    }\n  }\n  /* Recuerda qué protocolo estaba abierto para «Continuar». */\n  const recuerda = () => { if (!efimero && Almacen.prefs().ultimo !== p.id) { const pr = Almacen.prefs(); pr.ultimo = p.id; Almacen.guardaPrefs(pr); } };\n  recuerda.siempre = true;\n  subs.add(recuerda);\n\n  return {\n    get p() { return p; }, get efimero() { return efimero; }, get pendiente() { return estado.pendiente; }, get error() { return estado.error; },\n    cambia, deshaz: () => mueveHistoria(deshacer, rehacer), rehaz: () => mueveHistoria(rehacer, deshacer),\n    puedeDeshacer: () => deshacer.length > 0, puedeRehacer: () => rehacer.length > 0,\n    suscribe: (f, o) => { if (o && o.siempre) f.siempre = true; subs.add(f); }, conservaPendiente, aseguraGuardado, guardaYa,cambiaConArchivos,archivo, nuevo, descarta, abre, desdePlantilla, importa, duplica, restaura,\n    json: () => JSON.stringify(p, null, 1) + '\\n'\n  };\n})();\n",
  "src/js/32-marco.js": "/* ==== 32-marco.js ==== */\n'use strict';\n/* ================= el marco: secciones, rutas y tira =================\n   El editor es un documento por secciones (datos generales, reactivos,\n   disoluciones, procedimiento, caracterización, seguridad, lotes) más tres\n   vistas de trabajo (sección de métodos, revisión y calculadoras). Cada una\n   es una pantalla registrada con Marco.registra; la ruta va en el hash\n   (#p/reactivos) para que el botón Atrás y los enlaces funcionen.\n\n   La tira de la izquierda es el índice del protocolo, con cuántos elementos\n   tiene cada sección y cuánto le falta para ser reproducible. */\n\nconst Marco = (() => {\n  const SECCIONES = [\n    {id: 'general', titulo: 'Datos generales', grupo: 'protocolo'},\n    {id: 'reactivos', titulo: 'Reactivos', grupo: 'protocolo', cuenta: p => p.reactivos.length},\n    {id: 'disoluciones', titulo: 'Disoluciones', grupo: 'protocolo', cuenta: p => p.disoluciones.length},\n    {id: 'procedimiento', titulo: 'Procedimiento', grupo: 'protocolo', cuenta: p => p.pasos.length},\n    {id: 'caracterizacion', titulo: 'Medición y caracterización', grupo: 'protocolo', cuenta: p => p.caracterizacion.length},\n    {id: 'seguridad', titulo: 'Seguridad', grupo: 'protocolo', cuenta: p => p.seguridad.length},\n    {id: 'lotes', titulo: 'Lotes', grupo: 'protocolo', cuenta: p => p.lotes.length},\n    {id:'flujo',titulo:'Diseñador de flujo',grupo:'trabajo'},\n    {id:'placas',titulo:'Placas y muestras',grupo:'trabajo',cuenta:p=>p.placas.length},\n    {id:'secuencias',titulo:'Secuencias biológicas',grupo:'trabajo',cuenta:p=>p.secuencias.length},\n    {id:'analisis',titulo:'Análisis de resultados',grupo:'trabajo'},\n    {id:'estructuras',titulo:'Estructuras químicas',grupo:'trabajo'},\n    {id:'bibliografia',titulo:'Bibliografía y documentos',grupo:'trabajo'},\n    {id:'archivos',titulo:'Adjuntos y respaldo',grupo:'trabajo'},\n    {id: 'biblioteca', titulo: 'Buscar protocolos', grupo: 'trabajo'},\n    {id: 'ejecucion', titulo: 'Ejecutar un lote', grupo: 'trabajo'},\n    {id: 'metodos', titulo: 'Sección de métodos', grupo: 'trabajo'},\n    {id: 'revisar', titulo: 'Revisión de reproducibilidad', grupo: 'trabajo'},\n    {id: 'calculadoras', titulo: 'Calculadoras', grupo: 'trabajo'},\n    {id: 'calidad', titulo: 'Comparar lotes', grupo: 'trabajo'},\n    {id: 'versiones', titulo: 'Versiones', grupo: 'trabajo', cuenta: p => p.versiones.length},\n    {id:'cambios',titulo:'Combinar cambios',grupo:'trabajo'},\n    {id: 'verificacion', titulo: 'Lista previa', grupo: 'trabajo'},\n    {id: 'laboratorio', titulo: 'Inventario y equipos', grupo: 'laboratorio'}\n  ];\n  const POR_ID = Object.fromEntries(SECCIONES.map(s => [s.id, s]));\n  const pantallas = {};\n  let actual = 'general';\n  let foco = null;\n\n  const registra = (id, pinta) => { pantallas[id] = pinta; };\n  const ruta = () => { const m = /^#p\\/([a-z]+)/.exec(location.hash || ''); return m && POR_ID[m[1]] ? m[1] : null; };\n\n  function pinta(opc) {\n    const o = opc || {};\n    const cont = $('#pantalla');\n    if (!cont) return;\n    const scroll = o.conservaScroll ? cont.scrollTop : 0;\n    cont.replaceChildren();\n    const fn = pantallas[actual];\n    if (fn) {\n      try { fn(cont, Estado.p); }\n      catch (e) { console.error(e); cont.append(UI.aviso('error', 'No se pudo mostrar esta sección: ' + e.message + '. Tu protocolo sigue guardado; descarga una copia desde Archivo.')); }\n    } else cont.append(UI.aviso('nota', 'Esta sección está en preparación.'));\n    document.title = (POR_ID[actual] ? POR_ID[actual].titulo : 'Protocolo') + ' · Erlen Methods';\n    cont.scrollTop = scroll;\n    pintaTira();\n    if (foco) {\n      const f = cont.querySelector('[data-ref=\"' + foco + '\"]');\n      foco = null;\n      if (f) { f.scrollIntoView({block: 'center'}); const c = f.querySelector('input,textarea,select'); (c || f).focus({preventScroll: true}); return; }\n    }\n    if (!o.sinFoco) { const t = cont.querySelector('.titulo-pantalla'); if (t) t.focus({preventScroll: true}); }\n    document.dispatchEvent(new CustomEvent('erlen-methods:pantalla', {detail: actual}));\n  }\n\n  /* irA cambia el hash; si ya estás ahí, repinta igual (por ejemplo, para\n     llevar el foco a un elemento recién añadido). */\n  function irA(id, opc) {\n    if (!POR_ID[id]) return;\n    foco = opc && opc.foco || null;\n    cierraCajon();\n    if (actual === id && ruta() === id) { pinta(); return; }\n    actual = id;\n    if (location.hash !== '#p/' + id) location.hash = '#p/' + id;\n    else pinta();\n  }\n  const repinta = () => pinta({conservaScroll: true, sinFoco: true});\n\n  /* ---------- la tira: índice del protocolo ---------- */\n  function pintaTira() {\n    const t = $('#lateral');\n    if (!t) return;\n    const p = Estado.p, rev = Protocolo.revisa(p);\n    const enlace = s => {\n      const n = s.cuenta ? s.cuenta(p) : null;\n      const a = h('a', {href: '#p/' + s.id, class: 'tira-enlace', 'aria-current': s.id === actual ? 'page' : null},\n        h('span', null, s.titulo), n != null ? h('span', {class: 'tira-cuenta', 'aria-label': n + ' elementos'}, String(n)) : null);\n      return h('li', null, a);\n    };\n    const pct = Math.round(rev.indice * 100);\n    /* replaceChildren convierte null en el texto «null»: se filtra. */\n    t.replaceChildren(...[\n      h('p', {class: 'panel-label'}, 'Protocolo'),\n      h('p', {class: 'tira-titulo'}, p.titulo || 'Protocolo sin título'),\n      h('ul', {class: 'tira-lista'}, SECCIONES.filter(s => s.grupo === 'protocolo').map(enlace)),\n      h('p', {class: 'panel-label'}, 'Trabajo'),\n      h('ul', {class: 'tira-lista'}, SECCIONES.filter(s => s.grupo === 'trabajo').map(enlace)),\n      h('p', {class: 'panel-label'}, 'Laboratorio'),\n      h('ul', {class: 'tira-lista'}, SECCIONES.filter(s => s.grupo === 'laboratorio').map(enlace)),\n      h('div', {class: 'tira-revision'},\n        h('p', {class: 'panel-label'}, 'Reproducibilidad'),\n        h('div', {class: 'barra-progreso', role: 'img', 'aria-label': pct + ' % de los campos necesarios completos'}, h('span', {style: 'width:' + pct + '%'})),\n        h('p', {class: 'tira-nota'}, rev.faltas ? rev.faltas + (rev.faltas === 1 ? ' dato impide' : ' datos impiden') + ' repetirlo · ' : 'Nada impide repetirlo · ',\n          rev.sugerencias + (rev.sugerencias === 1 ? ' sugerencia' : ' sugerencias')),\n        h('a', {href: '#p/revisar', class: 'tira-ir'}, 'Ver la revisión')),\n      Estado.efimero ? h('p', {class: 'tira-nota tira-efimero'}, 'Aún no está en tu biblioteca: se guarda en cuanto lo edites.') : null\n    ].filter(Boolean));\n  }\n\n  /* ---------- cajón móvil (≤ 920 px) ---------- */\n  const estrecha = () => { try { return window.matchMedia('(max-width: 920px)').matches; } catch (e) { return false; } };\n  function cierraCajon() { if (document.body.classList.contains('cajon-abierto')) { document.body.classList.remove('cajon-abierto'); document.dispatchEvent(new Event('erlen-methods:cajon')); } }\n  function alternaCajon() {\n    const abierto = document.body.classList.toggle('cajon-abierto');\n    document.dispatchEvent(new Event('erlen-methods:cajon'));\n    if (abierto) { const a = $('#lateral a'); if (a) a.focus(); }\n  }\n\n  function arranca() {\n    actual = ruta() || 'general';\n    window.addEventListener('hashchange', () => { const r = ruta(); if (r) { actual = r; pinta(); } });\n    Estado.suscribe(repinta);\n    const tira = () => pintaTira();\n    Estado.suscribe(tira, {siempre: true});\n    pinta({sinFoco: true});\n  }\n\n  return {SECCIONES, POR_ID, registra, irA, repinta, arranca, get actual() { return actual; }, alternaCajon, cierraCajon, cajonAbierto: () => document.body.classList.contains('cajon-abierto'), estrecha};\n})();\n",
  "src/js/33-cinta.js": "/* ==== 33-cinta.js ==== */\n'use strict';\n/* ================= la cinta de herramientas de la suite =================\n   Las herramientas viven en la cinta común de Erlen Suite\n   (diseno/suite-cinta.js, docs/COHERENCIA-APPS.md §5 del portal): «Archivo»,\n   Inicio, Insertar, las pestañas propias —Calcular, Calidad y Métodos— y\n   Vista. El\n   componente pone el aspecto, el teclado y la accesibilidad; aquí se declara\n   qué hay. Una herramienta, un sitio: nada aparece en dos pestañas (salvo\n   Deshacer y Rehacer, que la guía permite también en la barra). */\n\nconst Cinta = (() => {\n  const svg = d => '<svg viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\">' + d + '</svg>';\n  const ICONOS = {\n    inicio: svg('<path d=\"M4 11l8-7 8 7\"/><path d=\"M6 10v10h12V10\"/><path d=\"M10 20v-6h4v6\"/>'),\n    nuevo: svg('<path d=\"M14 3H6v18h12V7z\"/><path d=\"M14 3v4h4\"/><path d=\"M12 11v6M9 14h6\"/>'),\n    abrir: svg('<path d=\"M3 7V5h7l2 2h9v3\"/><path d=\"M3 7v12h16l3-9H6l-3 9\"/>'),\n    guardar: svg('<path d=\"M12 4v11\"/><path d=\"M7 10l5 5 5-5\"/><path d=\"M4 17v3h16v-3\"/>'),\n    markdown: svg('<path d=\"M3 6h18v12H3z\"/><path d=\"M6 15V9l2.5 3L11 9v6\"/><path d=\"M16 9v6M14 13l2 2 2-2\"/>'),\n    imprimir: svg('<path d=\"M7 9V3h10v6\"/><path d=\"M7 17H4V9h16v8h-3\"/><path d=\"M7 14h10v7H7z\"/>'),\n    acerca: svg('<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M12 11v6\"/><path d=\"M12 7.5v.5\"/>'),\n    fuente: svg('<path d=\"M9 7l-5 5 5 5\"/><path d=\"M15 7l5 5-5 5\"/>'),\n    deshacer: svg('<path d=\"M9 7L4 12l5 5\"/><path d=\"M4 12h11a5 5 0 0 1 0 10h-3\"/>'),\n    rehacer: svg('<path d=\"M15 7l5 5-5 5\"/><path d=\"M20 12H9a5 5 0 0 0 0 10h3\"/>'),\n    general: svg('<path d=\"M6 3h9l4 4v14H6z\"/><path d=\"M9 11h7M9 15h7M9 7h3\"/>'),\n    revisar: svg('<path d=\"M4 6l1.5 1.5L8 5\"/><path d=\"M4 12l1.5 1.5L8 11\"/><path d=\"M4 18l1.5 1.5L8 17\"/><path d=\"M11 6.5h9M11 12.5h9M11 18.5h9\"/>'),\n    reactivo: svg('<path d=\"M9 3h6\"/><path d=\"M10 3v5l-5 10a2 2 0 0 0 1.8 3h10.4a2 2 0 0 0 1.8-3L14 8V3\"/><path d=\"M7.5 15h9\"/>'),\n    disolucion: svg('<path d=\"M7 3h10\"/><path d=\"M8 3v17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V3\"/><path d=\"M8 12h8\"/><path d=\"M10 7h2\"/>'),\n    paso: svg('<path d=\"M9 6h11M9 12h11M9 18h11\"/><path d=\"M4 5.5l1 .5v3\"/><path d=\"M4 12h2l-2 2.5h2\"/><path d=\"M4 17h2v3H4\"/>'),\n    tecnica: svg('<path d=\"M4 4v16h16\"/><path d=\"M6 16l3-6 3 3 3-8 3 11\"/>'),\n    seguridad: svg('<path d=\"M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z\"/><path d=\"M12 8v5\"/><path d=\"M12 16v.5\"/>'),\n    lote: svg('<path d=\"M4 7l8-4 8 4-8 4z\"/><path d=\"M4 12l8 4 8-4\"/><path d=\"M4 17l8 4 8-4\"/>'),\n    hdl: svg('<path d=\"M3 6h18M3 12h18M3 18h18\"/><circle cx=\"7\" cy=\"9\" r=\"1\"/><circle cx=\"13\" cy=\"9\" r=\"1\"/><circle cx=\"10\" cy=\"15\" r=\"1\"/><circle cx=\"16\" cy=\"15\" r=\"1\"/>'),\n    calculadora: svg('<path d=\"M5 3h14v18H5z\"/><path d=\"M8 6h8v3H8z\"/><path d=\"M8 13h.5M12 13h.5M16 13h.5M8 17h.5M12 17h.5M16 17h.5\"/>'),\n    dilucion: svg('<path d=\"M6 4v10a3 3 0 0 0 6 0V4\"/><path d=\"M14 10v8a3 3 0 0 0 6 0v-8\"/><path d=\"M6 11h6M14 15h6\"/>'),\n    masa: svg('<path d=\"M5 20h14l-2-11H7z\"/><circle cx=\"12\" cy=\"6\" r=\"2.5\"/>'),\n    metodos: svg('<path d=\"M5 4h14v16H5z\"/><path d=\"M8 8h8M8 12h8M8 16h5\"/>'),\n    copiar: svg('<path d=\"M8 8h12v12H8z\"/><path d=\"M16 8V4H4v12h4\"/>'),\n    idioma: svg('<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M3 12h18\"/><path d=\"M12 3c2.5 2.5 3.8 5.5 3.8 9s-1.3 6.5-3.8 9c-2.5-2.5-3.8-5.5-3.8-9S9.5 5.5 12 3z\"/>'),\n    quitar: svg('<path d=\"M5 7h14M10 7V4h4v3M7 7l1 13h8l1-13\"/>'),\n    tema: svg('<circle cx=\"12\" cy=\"12\" r=\"8\"/><path d=\"M12 4a8 8 0 0 1 0 16z\" fill=\"currentColor\"/>'),\n    panel: svg('<path d=\"M4 5h16v14H4z\"/><path d=\"M9 5v14\"/><path d=\"M5.5 9h2M5.5 12h2\"/>'),\n    word: svg('<path d=\"M14 3H6v18h12V7z\"/><path d=\"M14 3v4h4\"/><path d=\"M8.5 11l1.5 6 2-4.5 2 4.5 1.5-6\"/>'),\n    latex: svg('<path d=\"M14 3H6v18h12V7z\"/><path d=\"M14 3v4h4\"/><path d=\"M9 11v6h3\"/><path d=\"M13 11h3M14.5 11v6\"/>'),\n    eln: svg('<path d=\"M14 3H6v18h12V7z\"/><path d=\"M14 3v4h4\"/><path d=\"M8 11h5M8 14h3M8 17h5\"/>'),\n    doe: svg('<path d=\"M5 5h14v14H5z\"/><circle cx=\"5\" cy=\"5\" r=\"1.6\"/><circle cx=\"19\" cy=\"5\" r=\"1.6\"/><circle cx=\"5\" cy=\"19\" r=\"1.6\"/><circle cx=\"19\" cy=\"19\" r=\"1.6\"/><circle cx=\"12\" cy=\"12\" r=\"1.6\"/>'),\n    enviar: svg('<path d=\"M4 12h13\"/><path d=\"M13 7l5 5-5 5\"/><path d=\"M20 4v16\"/>'),\n    importar: svg('<path d=\"M12 3v12\"/><path d=\"M7 10l5 5 5-5\"/><path d=\"M4 15v5h16v-5\"/>'),\n    parrafo: svg('<path d=\"M4 6h16M4 10h16M4 14h10\"/><path d=\"M17 15l3 3-3 3\"/><path d=\"M14 18h6\"/>'),\n    comparar: svg('<path d=\"M4 20V10M9 20V4M14 20v-7M19 20V8\"/>'),\n    control: svg('<path d=\"M3 7h18M3 17h18\" stroke-dasharray=\"2 2\"/><path d=\"M3 12h18\" opacity=\".5\"/><path d=\"M4 13l4-3 4 4 4-6 4 5\"/>'),\n    versiones: svg('<circle cx=\"6\" cy=\"6\" r=\"2\"/><circle cx=\"6\" cy=\"18\" r=\"2\"/><circle cx=\"18\" cy=\"12\" r=\"2\"/><path d=\"M6 8v8\"/><path d=\"M8 6h4a4 4 0 0 1 4 4v0\"/>'),\n    lista: svg('<path d=\"M9 3h6v3H9z\"/><path d=\"M7 5H5v16h14V5h-2\"/><path d=\"M8 12l2 2 4-4\"/><path d=\"M8 17h8\"/>'),\n    inventario: svg('<path d=\"M3 8l9-5 9 5v12H3z\"/><path d=\"M7 20v-7h10v7\"/><path d=\"M7 16h10\"/>'),\n    plantilla: svg('<path d=\"M5 3h14v18H5z\"/><path d=\"M5 8h14M10 8v13\"/>'),\n    quimica: svg('<path d=\"M9 3h6\"/><path d=\"M10 3v6l-5 9a2 2 0 0 0 1.8 3h10.4a2 2 0 0 0 1.8-3l-5-9V3\"/>'),\n    biologia: svg('<path d=\"M7 3c0 6 10 6 10 12s-10 6-10 6\"/><path d=\"M17 3c0 6-10 6-10 12s10 6 10 6\"/><path d=\"M8 7h8M8 17h8\"/>'),\n    medida: svg('<path d=\"M3 17L17 3l4 4L7 21z\"/><path d=\"M7 13l2 2M10 10l2 2M13 7l2 2\"/>'),\n    fisica: svg('<circle cx=\"12\" cy=\"12\" r=\"2\"/><ellipse cx=\"12\" cy=\"12\" rx=\"9\" ry=\"3.5\"/><ellipse cx=\"12\" cy=\"12\" rx=\"9\" ry=\"3.5\" transform=\"rotate(60 12 12)\"/><ellipse cx=\"12\" cy=\"12\" rx=\"9\" ry=\"3.5\" transform=\"rotate(120 12 12)\"/>')\n  };\n  const ICONO_CATEGORIA = {quimica: 'quimica', disoluciones: 'disolucion', biologia: 'biologia', medida: 'medida', fisica: 'fisica', materiales: 'hdl'};\n\n  let cinta = null, acc = {}, menuArchivo = null;\n  const boton = (tipo, id, etiqueta, icono, accion, extra) => Object.assign({tipo, id, etiqueta, icono: ICONOS[icono], accion}, extra || {});\n  const va = (seccion, extra) => () => Marco.irA(seccion, extra);\n\n  function opcionesArchivo() {\n    return [\n      {etiqueta: 'Inicio y biblioteca', icono: 'inicio', accion: () => acc.inicio('inicio')},\n      {etiqueta: 'Nuevo protocolo', icono: 'nuevo', descripcion: 'Un protocolo en blanco', accion: acc.nuevo},\n      {etiqueta: 'Abrir…', icono: 'abrir', descripcion: 'Un protocolo guardado (.json)', atajo: 'Ctrl+O', accion: acc.abrir},\n      {etiqueta: 'Guardar copia', icono: 'guardar', descripcion: 'Descarga el protocolo como archivo (.json)', atajo: 'Ctrl+S', accion: acc.guardar},\n      {etiqueta: 'Guardar como plantilla…', icono: 'plantilla', descripcion: 'Aparece en el inicio para empezar otros protocolos', accion: acc.plantilla},\n      {etiqueta: 'Eliminar este protocolo…', icono: 'quitar', descripcion: 'Lo borra de este navegador (con Deshacer)', accion: acc.eliminar},\n      {separador: true},\n      {etiqueta: 'Exportar en Markdown', icono: 'markdown', descripcion: 'El protocolo completo con la sección de métodos (.md)', accion: acc.markdown},\n      {etiqueta: 'Exportar en Word', icono: 'word', descripcion: 'Documento editable con tablas (.docx)', accion: acc.word},\n      {etiqueta: 'Exportar en LaTeX', icono: 'latex', descripcion: 'Documento con fórmulas en mhchem (.tex)', accion: acc.latex},\n      {etiqueta: 'Descargar .eln', icono: 'general', descripcion: 'Paquete de intercambio para cuadernos electrónicos (RO-Crate 1.2)', accion: acc.eln},\n      {etiqueta: 'Imprimir…', icono: 'imprimir', descripcion: 'La sección abierta, sin la interfaz', atajo: 'Ctrl+P', accion: () => window.print()},\n      {separador: true},\n      {etiqueta: 'Acerca de Erlen Methods…', icono: 'acerca', descripcion: 'Licencia, datos de referencia y atajos', accion: acc.acerca},\n      {etiqueta: 'Código fuente', icono: 'fuente', descripcion: 'Esta versión completa, con su licencia AGPLv3', accion: acc.fuente}\n    ];\n  }\n  /* Las mismas opciones, como comandos para la ayuda de Mey: un solo arreglo\n     pinta el menú y alimenta la ayuda, así que no hay rótulos repetidos. */\n  function comandosArchivo() {\n    return opcionesArchivo().filter(o => !o.separador).map(o => ({\n      clave: 'archivo › ' + o.etiqueta, pestana: '', etiqueta: o.etiqueta, ruta: [],\n      atajo: o.atajo, titulo: o.descripcion, habilitado: true, ejecutar: () => o.accion()\n    }));\n  }\n  function cierraArchivo(devolver) {\n    if (!menuArchivo) return;\n    const {m, ancla, fuera} = menuArchivo;\n    menuArchivo = null;\n    document.removeEventListener('pointerdown', fuera);\n    window.removeEventListener('resize', alRedimensionar);\n    m.remove();\n    ancla.setAttribute('aria-expanded', 'false');\n    if (devolver && ancla.isConnected) ancla.focus();\n  }\n  const alRedimensionar = () => cierraArchivo(false);\n  function abreArchivo(ancla) {\n    if (menuArchivo) { cierraArchivo(true); return; }\n    const m = h('div', {class: 'erlen-cinta-menu methods-menu-archivo', role: 'menu', 'aria-label': 'Archivo'});\n    for (const o of opcionesArchivo()) {\n      if (o.separador) { m.append(h('div', {class: 'erlen-cinta-separador', role: 'separator'})); continue; }\n      const b = h('button', {type: 'button', role: 'menuitem', class: 'erlen-cinta-opcion', tabindex: '-1'},\n        h('span', {class: 'erlen-cinta-icono', 'aria-hidden': 'true', html: ICONOS[o.icono]}),\n        h('span', {class: 'erlen-cinta-opcion-texto'}, o.etiqueta, o.descripcion ? h('small', null, o.descripcion) : null),\n        o.atajo ? h('kbd', null, o.atajo) : null);\n      b.addEventListener('click', () => { cierraArchivo(false); o.accion(); });\n      m.append(b);\n    }\n    m.addEventListener('keydown', e => {\n      const ops = $$('.erlen-cinta-opcion:not([disabled])', m), i = ops.indexOf(document.activeElement);\n      if (e.key === 'Escape') { e.preventDefault(); e.stopPropagation(); cierraArchivo(true); return; }\n      if (e.key === 'Tab') { cierraArchivo(true); return; }\n      let j = null;\n      if (e.key === 'ArrowDown') j = (i + 1) % ops.length;\n      else if (e.key === 'ArrowUp') j = (i - 1 + ops.length) % ops.length;\n      else if (e.key === 'Home') j = 0;\n      else if (e.key === 'End') j = ops.length - 1;\n      if (j != null && ops.length) { e.preventDefault(); ops[j].focus(); }\n    });\n    document.body.append(m);\n    ancla.setAttribute('aria-expanded', 'true');\n    const r = ancla.getBoundingClientRect(), w = m.offsetWidth || 300, alto = m.offsetHeight || 0;\n    const vw = window.innerWidth || document.documentElement.clientWidth, vh = window.innerHeight || document.documentElement.clientHeight;\n    m.style.left = Math.max(8, Math.min(r.left, vw - w - 8)) + 'px';\n    m.style.top = Math.max(8, r.bottom + 4 + alto > vh - 8 && r.top - 4 - alto > 8 ? r.top - 4 - alto : r.bottom + 4) + 'px';\n    const fuera = e => { if (!m.contains(e.target) && !ancla.contains(e.target)) cierraArchivo(false); };\n    menuArchivo = {m, ancla, fuera};\n    setTimeout(() => { if (menuArchivo && menuArchivo.m === m) document.addEventListener('pointerdown', fuera); }, 0);\n    window.addEventListener('resize', alRedimensionar);\n    const primero = m.querySelector('.erlen-cinta-opcion');\n    if (primero) primero.focus();\n  }\n\n  function pestanas() {\n    const TEMAS = [['auto', 'La del sistema'], ['claro', 'Clara'], ['oscuro', 'Oscura']];\n    const tecnicas = DATOS.tecnicas.orden.map(t => ({etiqueta: DATOS.tecnicas[t].nombre, accion: () => acc.inserta('tecnica', t)}));\n    /* Una pestaña Calcular con un menú por disciplina: las opciones salen del\n       registro de calculadoras, así una nueva aparece sola. */\n    const calculadoras = Calculadoras.CATEGORIAS.map(([k, t]) => ({tipo: 'menu', id: 'calc-cat-' + k, etiqueta: t, icono: ICONOS[ICONO_CATEGORIA[k]],\n      opciones: () => Calculadoras.lista().filter(d => d.categoria === k).map(d => ({etiqueta: d.titulo, accion: () => Calculadoras.abre(d.id)}))}));\n    return [\n      {id: 'inicio', etiqueta: 'Inicio', grupos: [\n        {etiqueta: 'Historial', controles: [\n          boton('pequeno', 'deshacer', 'Deshacer', 'deshacer', () => acc.deshacer(), {atajo: 'Ctrl+Z', deshabilitado: () => !Estado.puedeDeshacer()}),\n          boton('pequeno', 'rehacer', 'Rehacer', 'rehacer', () => acc.rehacer(), {atajo: 'Ctrl+Y', deshabilitado: () => !Estado.puedeRehacer()})]},\n        {etiqueta: 'Protocolo', controles: [\n          boton('grande', 'general', 'Datos generales', 'general', va('general'), {titulo: 'Título, objetivo, tipo, escala, resultado medido y condiciones publicadas'}),\n          boton('grande', 'revisar', 'Revisar', 'revisar', va('revisar'), {titulo: 'Qué le falta al protocolo para que otra persona lo repita'})]},\n        {etiqueta: 'Laboratorio', controles: [\n          boton('grande', 'laboratorio', 'Inventario y equipos', 'inventario', va('laboratorio'), {titulo: 'Reactivos disponibles con su caducidad y calibración de equipos'})]}]},\n      {id: 'insertar', etiqueta: 'Insertar', grupos: [\n        {etiqueta: 'Contenido', controles: [\n          boton('grande', 'ins-reactivo', 'Reactivo', 'reactivo', () => acc.inserta('reactivo')),\n          boton('grande', 'ins-paso', 'Paso', 'paso', () => acc.inserta('paso')),\n          boton('pequeno', 'ins-disolucion', 'Disolución', 'disolucion', () => acc.inserta('disolucion')),\n          {tipo: 'menu', id: 'ins-tecnica', etiqueta: 'Técnica de medida', icono: ICONOS.tecnica, opciones: tecnicas},\n          boton('pequeno', 'ins-seguridad', 'Nota de seguridad', 'seguridad', () => acc.inserta('seguridad'))]},\n        {etiqueta: 'Laboratorio', controles: [\n          boton('grande', 'ins-lote', 'Lote', 'lote', () => acc.inserta('lote'), {titulo: 'Registrar una ejecución del protocolo: pesadas y condiciones reales, y lo obtenido'})]},\n        {etiqueta: 'Importar', controles: [\n          boton('pequeno', 'imp-parrafo', 'Desde un párrafo…', 'parrafo', () => Importar.parrafo(), {titulo: 'Borrador de protocolo a partir del texto experimental de un artículo'}),\n          boton('pequeno', 'imp-lens', 'Condiciones publicadas…', 'importar', () => Importar.lens(), {titulo: 'Intervalos de la literatura desde un archivo de factores de Erlen Lens'}),\n          boton('pequeno', 'imp-csv', 'Lotes desde CSV…', 'comparar', () => Importar.lotesCSV(), {titulo: 'Una fila por lote: las corridas de Erlen DoE o de una hoja de cálculo'})]}]},\n      {id: 'calcular', etiqueta: 'Calcular', grupos: [\n        {etiqueta: 'Todas', controles: [\n          boton('grande', 'calc-todas', 'Calculadoras', 'calculadora', va('calculadoras'), {titulo: 'Las calculadoras de la disciplina elegida'})]},\n        {etiqueta: 'Por disciplina', controles: calculadoras}]},\n      {id: 'calidad', etiqueta: 'Calidad', grupos: [\n        {etiqueta: 'Lotes', controles: [\n          boton('grande', 'cal-comparar', 'Comparar lotes', 'control', va('calidad'), {titulo: 'Lotes lado a lado y carta de control del resultado'})]},\n        {etiqueta: 'Antes de empezar', controles: [\n          boton('grande', 'cal-lista', 'Lista previa', 'lista', va('verificacion'), {titulo: 'Lista imprimible: existencias, equipos calibrados, seguridad y disoluciones'}),\n          boton('pequeno', 'cal-seguridad', 'Seguridad y residuos', 'seguridad', va('seguridad'))]},\n        {etiqueta: 'Cambios', controles: [\n          boton('grande', 'cal-versiones', 'Versiones', 'versiones', va('versiones'), {titulo: 'Guardar, comparar y recuperar versiones del protocolo'})]}]},\n      {id: 'metodos', etiqueta: 'Métodos', grupos: [\n        {etiqueta: 'Redactar', controles: [\n          boton('grande', 'met-ver', 'Sección de métodos', 'metodos', va('metodos'), {titulo: 'La sección «Materiales y métodos» redactada a partir del protocolo'}),\n          boton('pequeno', 'met-copiar', 'Copiar el texto', 'copiar', () => acc.copiaMetodos()),\n          {tipo: 'menu', id: 'met-idioma', etiqueta: 'Idioma', icono: ICONOS.idioma, titulo: 'Idioma de la sección de métodos',\n            opciones: () => [['es', 'Español'], ['en', 'Inglés']].map(([v, t]) => ({etiqueta: t, marcado: () => (Almacen.prefs().idioma || 'es') === v, accion: () => acc.idioma(v)}))}]},\n        {etiqueta: 'Exportar', controles: [\n          boton('pequeno', 'met-md', 'Markdown', 'markdown', () => acc.markdown(), {titulo: 'El protocolo completo en Markdown (.md)'}),\n          boton('pequeno', 'met-word', 'Word', 'word', () => acc.word(), {titulo: 'El protocolo completo en Word (.docx)'}),\n          boton('pequeno', 'met-latex', 'LaTeX', 'latex', () => acc.latex(), {titulo: 'El protocolo completo en LaTeX (.tex), con fórmulas en mhchem'}),\n          boton('pequeno', 'met-eln', 'Descargar .eln', 'eln', () => acc.eln(), {titulo: 'Paquete de intercambio para cuadernos electrónicos (.eln, RO-Crate 1.2)'})]},\n        {etiqueta: 'Suite', controles: [\n          boton('grande', 'met-doe', 'Factores para DoE', 'doe', () => Importar.factoresDoE(), {titulo: 'Parámetros del protocolo como factores de un diseño de experimentos en Erlen DoE'}),\n          boton('pequeno', 'met-enviar', 'A Documentos o Pentagrama', 'enviar', () => acc.enviar(), {titulo: 'En preparación'})]}]},\n      {id: 'vista', etiqueta: 'Vista', grupos: [\n        {etiqueta: 'Apariencia', controles: [\n          {tipo: 'menu', id: 'tema', etiqueta: 'Tema', icono: ICONOS.tema, titulo: 'Tema de la interfaz: la del sistema, clara u oscura',\n            opciones: () => TEMAS.map(([v, n]) => ({etiqueta: n, marcado: () => (Almacen.prefs().tema || 'auto') === v, accion: () => acc.tema(v)}))}]},\n        {etiqueta: 'Paneles', controles: [\n          {tipo: 'interruptor', id: 'tira', etiqueta: 'Índice del protocolo', icono: ICONOS.panel, titulo: 'Mostrar u ocultar el índice de secciones',\n            activo: () => (Marco.estrecha() ? Marco.cajonAbierto() : !document.body.classList.contains('sin-tira')), accion: alternaTira}]}]}\n    ];\n  }\n\n  function alternaTira() {\n    if (Marco.estrecha()) { Marco.alternaCajon(); return; }\n    const oculta = document.body.classList.toggle('sin-tira');\n    const pr = Almacen.prefs();\n    pr.tira = !oculta;\n    Almacen.guardaPrefs(pr);\n  }\n  const actualizar = () => { if (cinta) cinta.actualizar(); };\n\n  function monta(host, acciones) {\n    if (!host || typeof erlenCinta !== 'function') return null;\n    acc = acciones || {};\n    if (Almacen.prefs().tira === false) document.body.classList.add('sin-tira');\n    cinta = erlenCinta(host, {app: 'methods', etiqueta: 'Herramientas de Erlen Methods', archivo: {etiqueta: 'Archivo', accion: abreArchivo}, pestanas: pestanas()});\n    const archivo = cinta.elemento.querySelector('.erlen-cinta-archivo');\n    if (archivo) { archivo.setAttribute('aria-haspopup', 'menu'); archivo.setAttribute('aria-expanded', 'false'); }\n    document.addEventListener('erlen-methods:pantalla', actualizar);\n    document.addEventListener('erlen-methods:cajon', actualizar);\n    Estado.suscribe(actualizar, {siempre: true});\n    try { window.matchMedia('(max-width: 920px)').addEventListener('change', actualizar); } catch (e) { /* navegador antiguo */ }\n    actualizar();\n    return cinta;\n  }\n  return {monta, actualizar, cierraArchivo, comandosArchivo, ICONOS, get cinta() { return cinta; }};\n})();\n",
  "src/js/34-portada.js": "/* ==== 34-portada.js ==== */\n'use strict';\n/* ================= la pantalla de inicio de la suite =================\n   Al abrir la app, lo primero es su inicio (docs/COHERENCIA-APPS.md §3 del\n   portal), montado con el componente común diseno/suite-inicio.js: «Nuevo\n   protocolo», las plantillas (las propias primero), la biblioteca de este navegador, los recursos\n   y «Acerca de». El componente pinta; aquí se declara qué hay. */\n\nconst Portada = (() => {\n  let inicio = null, acc = {};\n  const MATRAZ = '<svg viewBox=\"0 0 64 64\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M25 8h14v16l14 26a4 4 0 0 1-3.6 5.6H14.6A4 4 0 0 1 11 50l14-26z\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"4\" stroke-linejoin=\"round\"/><path d=\"M19 42h26l5.5 9.5H13.5z\" fill=\"currentColor\"/></svg>';\n  const arte = cuerpo => '<svg viewBox=\"0 0 120 90\" width=\"160\" height=\"120\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\">' + cuerpo + '</svg>';\n  /* Arte de las tarjetas: lo que cada plantilla hace, sin datos inventados. */\n  const ARTE = {\n    // Cubeta en el haz del espectrofotómetro.\n    bradford: arte('<path d=\"M10 45h30M80 45h30\"/><path d=\"M48 22h24v46H48z\"/><path d=\"M48 40h24\" opacity=\".5\"/><path d=\"M104 40l6 5-6 5\"/>'),\n    // Matraz de valoración con el viraje del indicador.\n    dureza: arte('<path d=\"M56 6h8v40h-8z\"/><path d=\"M60 46v10\"/><path d=\"M52 62h16l14 20H38z\"/><path d=\"M44 74h32\" opacity=\".5\"/>'),\n    // Picnómetro con su tapón capilar.\n    picnometria: arte('<path d=\"M54 8h12v10H54z\"/><path d=\"M60 18v10\"/><path d=\"M48 28h24l8 12v36a6 6 0 0 1-6 6H46a6 6 0 0 1-6-6V40z\"/><path d=\"M40 56h40\" opacity=\".5\"/>'),\n    // Láminas de hidróxido con el anión entre ellas.\n    'hdl-znal': arte('<path d=\"M14 22h92M14 30h92M14 60h92M14 68h92\"/>' + [26, 50, 74, 98].map(x => '<circle cx=\"' + x + '\" cy=\"45\" r=\"4\" fill=\"currentColor\" stroke=\"none\"/>').join('') + '<path d=\"M14 26h92M14 64h92\" opacity=\".4\"/>'),\n    // Difractograma y espectro: dos trazas sobre sus ejes.\n    'drx-ftir': arte('<path d=\"M12 10v70h96\"/><path d=\"M14 72l10-1 4-40 4 40 18-1 3-22 3 22 20 0 3-12 3 12 20-1\"/>'),\n    // Bureta sobre un matraz: la valoración.\n    'naoh-khp': arte('<path d=\"M56 6h8v40h-8z\"/><path d=\"M58 46v8M62 46v8\"/><path d=\"M60 54v4\"/><path d=\"M52 62h16l14 20H38z\"/><path d=\"M44 74h32\"/>')\n  };\n  // Plantilla propia: una hoja con una esquina doblada.\n  const ARTE_PROPIA = arte('<path d=\"M36 10h36l14 14v56H36z\"/><path d=\"M72 10v14h14\"/><path d=\"M46 40h30M46 50h30M46 60h20\"/>');\n\n  async function desdePlantilla(id) {\n    const r = await Estado.desdePlantilla(id, false);\n    if (r.error) { toast(r.error, 'warn'); return; }\n    toast('Plantilla didáctica: sustituye los datos por los de tu trabajo.', 'ok');\n    Marco.irA('general');\n  }\n  const EJEMPLOS = () => {\n    const propias = Almacen.plantillas();\n    return Object.keys(propias).map(id => ({id, disciplina: propias[id].disciplina || 'Mis plantillas', arte: ARTE_PROPIA, titulo: propias[id].protocolo.titulo || 'Plantilla sin título',\n      descripcion: propias[id].tarjeta || 'Plantilla propia guardada en este navegador.', etiqueta: 'Usar plantilla', accion: () => desdePlantilla(id)}))\n      .concat(Object.keys(DATOS.plantillas).filter(id => DATOS.plantillas[id] && DATOS.plantillas[id].protocolo).map(id => {\n        const pl = DATOS.plantillas[id];\n        return {id, disciplina: pl.disciplina, arte: ARTE[id] || '', titulo: pl.protocolo.titulo, descripcion: pl.tarjeta, etiqueta: 'Usar plantilla', accion: () => desdePlantilla(id)};\n      }));\n  };\n\n  const fecha = iso => { try { return new Date(iso).toLocaleDateString('es', {day: 'numeric', month: 'short', year: 'numeric'}); } catch (e) { return ''; } };\n  function listar() {\n    return Almacen.indice().slice().sort((a, b) => String(b.modificado).localeCompare(String(a.modificado))).map(x => ({\n      id: x.id, titulo: x.titulo || 'Protocolo sin título', detalle: x.resumen, fecha: fecha(x.modificado), miniatura: Protocolo.TIPOS[x.tipo] || '',\n      abrir: async () => { const r = await Estado.abre(x.id); if (r.error) toast(r.error, 'warn'); else Marco.irA('general'); },\n      duplicar: async () => { const r = await Estado.duplica(x.id); if (r.error) toast(r.error, 'warn'); else { toast('Copia creada: «' + r.protocolo.titulo + '».', 'ok'); if (inicio) inicio.actualizar(); } },\n      descargar: () => { const r = x.id === Estado.p.id ? {protocolo: Estado.p} : Almacen.carga(x.id); if (!r.error) UI.descarga(UI.nombreArchivo(r.protocolo.titulo) + '.json', JSON.stringify(r.protocolo, null, 1) + '\\n', 'application/json'); }\n    }));\n  }\n  const continuar = () => (!Estado.efimero && Protocolo.tieneContenido(Estado.p)\n    ? {etiqueta: 'Continuar «' + (Estado.p.titulo || 'Protocolo sin título').slice(0, 40) + '»', accion: () => {}} : null);\n\n  function asegura() {\n    Estado.guardaYa();\n    if (Estado.error && inicio) inicio.avisar('No se pudo guardar el protocolo en este navegador. Descárgalo antes de continuar: Archivo → Guardar copia. ' + Estado.error, {error: true});\n  }\n\n  function monta(acciones) {\n    if (typeof erlenInicio !== 'function') return null;\n    acc = acciones || {};\n    const v = window.ERLEN ? window.ERLEN.version : '';\n    /* Menú de la suite en el inicio solo con el catálogo de despliegue y solo si\n       nos incluye: sin catálogo no hay menú (navegación local segura, jamás\n       enlaces inventados) y un catálogo sin «methods» tampoco lo monta. */\n    const catalogo = erlenSuiteNavigation.catalogoDe(document);\n    const menuSuite = catalogo && catalogo.items.some(i => i.id === 'methods')\n      ? hueco => { try { erlenSuiteNavigation(hueco, 'methods', catalogo); } catch (e) { /* catálogo inutilizable: sin menú */ } }\n      : undefined;\n    inicio = erlenInicio(document.body, {\n      app: 'methods',\n      nombre: 'Erlen Methods', corto: 'METHODS', objetos: 'protocolos', marca: MATRAZ,\n      estado: 'Versión alfa', subtitulo: 'Protocolos de laboratorio',\n      eyebrow: 'PROTOCOLOS DE LABORATORIO · ERLEN METHODS', titulo: ['Protocolos ', 'reproducibles'],\n      lead: 'Para cualquier laboratorio: reactivos escalados por lote con su seguridad, pasos con sus parámetros, condiciones de medida, lotes comparables, calculadoras por disciplina y la sección de métodos redactada. Todo en tu navegador.',\n      nuevo: {etiqueta: 'Nuevo protocolo', detalle: 'Un protocolo en blanco', accion: acc.nuevo},\n      importar: {etiqueta: 'Abrir un protocolo (.json)…', accion: acc.abrir},\n      continuar,\n      ejemplos: EJEMPLOS(),\n      biblioteca: {listar, vacio: {titulo: 'Aquí empieza tu primer protocolo',\n        texto: 'Erlen Methods guarda tus protocolos en este navegador. Para llevarlos a otro equipo o conservarlos, descárgalos con «Guardar copia».'}},\n      recursos: [\n        {titulo: 'Buscar en la biblioteca', texto: 'Encuentra protocolos guardados por título, tipo o resumen, incluso con pequeñas diferencias de escritura.', etiqueta: 'Buscar protocolos', accion: () => { inicio.cerrar(); Marco.irA('biblioteca'); }},\n        {titulo: 'Copia del protocolo abierto', texto: 'Descarga el protocolo como archivo .json. Para restaurarlo en este u otro navegador, ábrelo con «Abrir».', etiqueta: 'Descargar el protocolo',\n          accion: () => { if (Protocolo.tieneContenido(Estado.p)) acc.guardar(); else inicio.avisar('Aún no hay protocolo que descargar: empieza uno nuevo o usa una plantilla.'); }},\n        {titulo: 'Calculadoras', texto: 'Química, disoluciones y tampones, biología, medida y estadística, física y materiales: más de veinte cálculos de laboratorio, con la explicación de cada número.', etiqueta: 'Abrir las calculadoras', accion: () => { inicio.cerrar(); Marco.irA('calculadoras'); }},\n        {titulo: 'Inventario y equipos', texto: 'Los reactivos que tienes, con su caducidad, y la calibración de balanzas, pipetas y otros equipos. Es de todos los protocolos.', etiqueta: 'Abrir el laboratorio', accion: () => { inicio.cerrar(); Marco.irA('laboratorio'); }},\n        {titulo: 'Protocolo desde un texto', texto: 'Pega el párrafo experimental de un artículo o de tu cuaderno y sale un borrador con reactivos, cantidades y condiciones para revisar.', etiqueta: 'Pegar un párrafo', accion: () => { inicio.cerrar(); Importar.parrafo(); }},\n        {titulo: 'Código fuente', texto: 'El código completo de esta versión en un JSON descargable, con su licencia AGPLv3.', etiqueta: 'Descargar el código fuente', accion: acc.fuente}\n      ],\n      acerca: {texto: 'Erlen Methods ' + v + ' (versión alfa) es la app de protocolos de laboratorio de Erlen Suite, para cualquier disciplina experimental: reactivos con fórmula, pureza y peligros GHS, cantidades escaladas por lote, pasos con temperatura, tiempo, pH y agitación, condiciones de medida, lotes con pesadas y condiciones reales, comparación y carta de control, versiones, inventario, calculadoras y la sección de métodos en español o inglés (Markdown, Word o LaTeX). Las masas molares usan los pesos atómicos abreviados de CIAAW/IUPAC 2021. Todo ocurre en este navegador: sin servidor, sin cuenta y sin telemetría. Licencia AGPL-3.0-only.',\n        enlaces: [{etiqueta: 'Repositorio en GitHub', url: 'https://github.com/erlen-frontier-ops/erlen-methods'}, {etiqueta: 'Licencia AGPLv3', url: 'LICENSE'}, {etiqueta: 'Código fuente de esta versión (JSON)', url: 'source.json'}]},\n      fuente: {url: 'source.json', licencia: 'AGPLv3'},\n      editor: _marcoSuite.elemento,   /* la raíz del marco: todo el cromo queda inert bajo el inicio */\n      menuSuite,\n      alAbrir: () => Cinta.cierraArchivo(false),\n      alCerrar: () => { const t = $('#tituloProtocolo'); if (t) t.focus({preventScroll: true}); }\n    });\n    if(Recuperacion.lista().length)inicio.avisar('Hay ediciones pendientes conservadas de una pestaña anterior. Revísalas en Adjuntos y respaldo antes de continuar.',{error:true});\n    return inicio;\n  }\n  function abrir(vista) {\n    if (!inicio) return false;\n    inicio.abrir(vista || 'inicio');\n    asegura();\n    return true;\n  }\n  return {monta, abrir, cerrar: () => inicio && inicio.cerrar(), actualizar: () => inicio && inicio.actualizar(), get abierta() { return !!(inicio && inicio.abierta); }};\n})();\n",
  "src/js/40-p-protocolo.js": "/* ==== 40-p-protocolo.js ==== */\n'use strict';\n/* ================= datos generales, reactivos y disoluciones =================\n   Cada elemento de una lista es una tarjeta con sus campos y una línea\n   calculada (masa molar, moles, lo que hay que pesar) que se actualiza al\n   escribir, sin repintar la pantalla: repintar robaría el foco. Añadir,\n   quitar o mover sí repinta. Quitar deja un toast con «Deshacer». */\n\nconst Editar = (() => {\n  const ICO = {\n    subir: '<svg viewBox=\"0 0 24 24\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 19V5M6 11l6-6 6 6\"/></svg>',\n    bajar: '<svg viewBox=\"0 0 24 24\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 5v14M6 13l6 6 6-6\"/></svg>',\n    duplicar: '<svg viewBox=\"0 0 24 24\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M8 8h12v12H8z\"/><path d=\"M16 8V4H4v12h4\"/></svg>',\n    quitar: '<svg viewBox=\"0 0 24 24\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M5 7h14M10 7V4h4v3M7 7l1 13h8l1-13\"/></svg>'\n  };\n  const item = (p, clave, id) => p[clave].find(x => x.id === id);\n\n  /* Cambio de un campo mientras se escribe: silencioso (no repinta) y\n     agrupado por campo para que Deshacer no vaya letra a letra. */\n  const campo = (clave, id, k, despues) => v => {\n    Estado.cambia(p => { const x = item(p, clave, id); if (x) x[k] = v; }, {silencioso: true, grupo: clave + id + k});\n    if (despues) despues();\n  };\n  function mueve(clave, id, d) {\n    Estado.cambia(p => {\n      const i = p[clave].findIndex(x => x.id === id), j = i + d;\n      if (i < 0 || j < 0 || j >= p[clave].length) return;\n      const [x] = p[clave].splice(i, 1);\n      p[clave].splice(j, 0, x);\n    });\n  }\n  function quita(clave, id, nombre) {\n    Estado.cambia(p => { p[clave] = p[clave].filter(x => x.id !== id); if(clave==='pasos')for(const s of p.pasos)s.dependeDe=(s.dependeDe || []).filter(x=>x!==id);if (clave === 'reactivos') for (const d of p.disoluciones) if (d.reactivo === id) d.reactivo = ''; });\n    toast('Se quitó ' + nombre + '.', 'ok', {t: 'Deshacer', fn: () => Estado.deshaz()});\n  }\n  function duplica(clave, id, seccion) {\n    const nid = uid(clave[0]);\n    Estado.cambia(p => { const i = p[clave].findIndex(x => x.id === id); if (i >= 0) p[clave].splice(i + 1, 0, Object.assign(deepCopy(p[clave][i]), {id: nid})); });\n    Marco.irA(seccion, {foco: nid});\n  }\n  const icono = (etq, svg, fn, deshab) => h('button', {type: 'button', class: 'ico', 'aria-label': etq, title: etq, disabled: deshab ? true : null, html: svg, onclick: fn});\n  /* Tarjeta de un elemento de lista, con número, título y acciones. */\n  function tarjeta(clave, x, i, total, titulo, seccion, nombre, ...cuerpo) {\n    return h('article', {class: 'tarjeta-item', 'data-ref': x.id, 'aria-label': titulo},\n      h('div', {class: 'item-cab'},\n        h('span', {class: 'item-num', 'aria-hidden': 'true'}, String(i + 1)),\n        h('h3', {class: 'item-tit'}, titulo),\n        h('div', {class: 'item-acciones'},\n          icono('Subir', ICO.subir, () => mueve(clave, x.id, -1), i === 0),\n          icono('Bajar', ICO.bajar, () => mueve(clave, x.id, 1), i === total - 1),\n          icono('Duplicar', ICO.duplicar, () => duplica(clave, x.id, seccion)),\n          icono('Quitar ' + nombre, ICO.quitar, () => quita(clave, x.id, nombre)))),\n      cuerpo);\n  }\n  const rejilla = (...campos) => h('div', {class: 'rejilla-campos'}, campos);\n  return {campo, mueve, quita, duplica, tarjeta, rejilla, item};\n})();\n\n/* ---------- datos generales ---------- */\nMarco.registra('general', (c, p) => {\n  const set = k => v => Estado.cambia(q => { q[k] = v; }, {silencioso: true, grupo: 'general' + k});\n  const calcRend = h('p', {class: 'calculado', 'aria-live': 'polite'});\n  const pintaRend = () => {\n    const q = Estado.p, f = Formula.lee(q.productoFormula || '');\n    calcRend.textContent = q.productoFormula && !f.error ? 'M(' + Formula.bonita(q.productoFormula) + ') = ' + numero(f.masaMolar, {dec: 2}) + ' g/mol.' : q.productoFormula ? f.error : '';\n  };\n  pintaRend();\n  const aviso = h('p', {class: 'calculado', 'aria-live': 'polite'});\n  const pintaAviso = () => { aviso.textContent = Calculo.avisoEscala(Estado.p.escala) || ''; };\n  pintaAviso();\n  c.append(\n    UI.cabecera('DATOS GENERALES', 'El protocolo', 'Qué es, para qué sirve y a qué escala lo vas a hacer. El resto de secciones cuelga de aquí.'),\n    h('section', {class: 'bloque'},\n      UI.campo('Título', UI.texto(p.titulo, set('titulo'), {placeholder: 'Determinación de …, síntesis de …, cultivo de …', attrs: {id: 'fTitulo'}}), {ancho: 'completo'}),\n      Editar.rejilla(\n        UI.campo('Tipo de protocolo', UI.selector(p.tipo, Object.entries(Protocolo.TIPOS), v => Estado.cambia(q => { q.tipo = v; }))),\n        UI.campo('Autoría', UI.texto(p.autores, set('autores'), {placeholder: 'Quién lo escribió o lo adaptó'})),\n        UI.campo('Referencia o procedencia', UI.texto(p.referencia, set('referencia'), {placeholder: 'DOI, norma, manual o «protocolo propio»'}))),\n      UI.campo('Objetivo', UI.texto(p.objetivo, set('objetivo'), {area: true, filas: 3, placeholder: 'Qué se obtiene y para qué'}), {ancho: 'completo'})),\n    h('section', {class: 'bloque'},\n      h('h3', null, 'Escala y rendimiento'),\n      h('p', {class: 'nota'}, 'Las cantidades que escribes son las del lote base. La escala las multiplica todas en las tablas, la hoja de pesadas y la sección de métodos; tiempos y temperaturas no cambian.'),\n      Editar.rejilla(\n        UI.campo('Escala del lote', UI.numero(p.escala, v => { if (v > 0) { Estado.cambia(q => { q.escala = v; }, {silencioso: true, grupo: 'escala'}); pintaAviso(); } }, {min: 0.000001}), {unidad: '×', ayuda: '1 = el lote base; 2 = el doble.'}),\n        UI.campo('Rendimiento teórico del lote base', UI.numero(p.rendimientoTeorico, set('rendimientoTeorico'), {min: 0}), {unidad: 'g', ayuda: 'Si el protocolo produce algo: para el rendimiento de cada lote.'}),\n        UI.campo('Fórmula del producto', UI.texto(p.productoFormula, v => { set('productoFormula')(v); pintaRend(); }, {placeholder: 'C9H8O4'}), {ayuda: 'Opcional: solo para comprobar la masa molar.'})),\n      aviso, calcRend),\n    h('section', {class: 'bloque'},\n      h('h3', null, 'Equipos y notas'),\n      UI.campo('Equipos del procedimiento', UI.texto(p.equipos, set('equipos'), {area: true, filas: 2, placeholder: 'Reactor encamisado de 250 mL, bomba peristáltica, pH-metro calibrado a pH 7 y 10…'}), {ancho: 'completo', ayuda: 'Los de caracterización van en su sección.'}),\n      UI.campo('Notas', UI.texto(p.notas, set('notas'), {area: true, filas: 3}), {ancho: 'completo'}),\n      UI.casilla('Todos los reactivos se usan sin purificación adicional (lo dice la sección de métodos)', p.sinPurificar, v => Estado.cambia(q => { q.sinPurificar = v; }, {silencioso: true}))),\n    h('section', {class: 'bloque'},\n      h('h3', null, 'Resultado de cada lote'),\n      h('p', {class: 'nota'}, 'La magnitud que mides al terminar (concentración, actividad, área superficial, absorbancia…). Con ella se comparan lotes, se hace la carta de control y Erlen DoE la recibe como respuesta. Si la dejas vacía, se usa el rendimiento.'),\n      Editar.rejilla(\n        UI.campo('Qué se mide', UI.texto(p.resultadoNombre, set('resultadoNombre'), {placeholder: 'Concentración de proteína'})),\n        UI.campo('Unidad', UI.texto(p.resultadoUnidad, set('resultadoUnidad'), {placeholder: 'mg/mL'})))),\n    literatura(p)\n  );\n});\n\n/* Condiciones publicadas: intervalos de la literatura para cada parámetro,\n   con sus fuentes. Llegan de Erlen Lens (Insertar → Condiciones publicadas) o\n   se escriben a mano. */\nfunction literatura(p) {\n  const s = h('section', {class: 'bloque', 'data-ref': 'literatura', tabindex: '-1'}, h('h3', null, 'Condiciones publicadas'));\n  if (!p.literatura.length) {\n    s.append(h('p', {class: 'nota'}, 'Intervalos de otros trabajos para cada parámetro, para situar los tuyos. Se importan desde Erlen Lens o se escriben aquí.'),\n      h('div', {class: 'fila-botones'}, UI.boton('Añadir una condición', () => nuevaCondicion(), {mini: true}), UI.boton('Importar de Erlen Lens…', () => Importar.lens(), {mini: true})));\n    return s;\n  }\n  const cf = (id, k) => v => Estado.cambia(q => { const x = q.literatura.find(c => c.id === id); if (x) x[k] = v; }, {silencioso: true, grupo: 'lit' + id + k});\n  s.append(h('div', {class: 'tabla-scroll'}, h('table', {class: 'tabla tabla-editable'},\n    h('caption', {class: 'visualmente-oculto'}, 'Condiciones publicadas'),\n    h('thead', null, h('tr', null, ['Parámetro', 'Unidad', 'Desde', 'Hasta', 'Fuentes', ''].map((t, i) => h('th', {scope: 'col', class: i >= 2 && i <= 4 ? 'num' : null}, t)))),\n    h('tbody', null, p.literatura.map((c, i) => h('tr', null,\n      h('td', null, UI.texto(c.parametro, cf(c.id, 'parametro'), {attrs: {'aria-label': 'Parámetro (fila ' + (i + 1) + ')'}})),\n      h('td', null, UI.texto(c.unidad, cf(c.id, 'unidad'), {attrs: {'aria-label': 'Unidad (fila ' + (i + 1) + ')'}})),\n      h('td', null, UI.numero(c.bajo, cf(c.id, 'bajo'), {attrs: {'aria-label': 'Desde (fila ' + (i + 1) + ')'}})),\n      h('td', null, UI.numero(c.alto, cf(c.id, 'alto'), {attrs: {'aria-label': 'Hasta (fila ' + (i + 1) + ')'}})),\n      h('td', {class: 'num', title: c.fuentes.map(f => f.cita || f.doi).filter(Boolean).join('\\n')}, String(c.fuentes.length)),\n      h('td', null, h('button', {type: 'button', class: 'ico', 'aria-label': 'Quitar la condición ' + (i + 1), title: 'Quitar', onclick: () => {\n        Estado.cambia(q => { q.literatura = q.literatura.filter(x => x.id !== c.id); });\n        toast('Condición quitada.', 'ok', {t: 'Deshacer', fn: () => Estado.deshaz()});\n      }, html: '<svg viewBox=\"0 0 24 24\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M6 6l12 12M18 6L6 18\"/></svg>'}))))))),\n    h('div', {class: 'fila-botones'}, UI.boton('Añadir una condición', () => nuevaCondicion(), {mini: true}), UI.boton('Importar de Erlen Lens…', () => Importar.lens(), {mini: true})));\n  return s;\n}\nfunction nuevaCondicion() {\n  Estado.cambia(q => { q.literatura.push(Protocolo.nuevaCondicion()); });\n  Marco.irA('general', {foco: 'literatura'});\n}\n\n/* ---------- seguridad, residuo y precio de un reactivo ----------\n   Los códigos H y P se copian de la ficha de datos de seguridad (la app no\n   clasifica sustancias); de ellos salen los pictogramas y las clases que\n   usan las incompatibilidades. Las clases que no se deducen de un código\n   (ácido, base, reductor) se marcan a mano. */\nfunction seguridadReactivo(x, cf) {\n  const pictos = h('div', {class: 'calculado', 'aria-live': 'polite'});\n  const pintaPictos = () => {\n    const r = Editar.item(Estado.p, 'reactivos', x.id);\n    if (!r) return;\n    const fila = Pictograma.fila(r.ghs);\n    const desconocidos = leidos ? leidos.desconocidos : [];\n    pictos.replaceChildren(...[fila, desconocidos.length ? h('span', {class: 'calculado-error'}, ' Códigos no reconocidos: ' + desconocidos.join(', ') + '.') : null,\n      !fila && !desconocidos.length && r.ghs.length ? h('span', null, 'Sin pictograma para estos códigos.') : null].filter(Boolean));\n  };\n  let leidos = null;\n  const codigos = UI.texto(x.ghs.concat(x.prudencia).join(' '), v => {\n    leidos = Seguridad.leeCodigos(v);\n    Estado.cambia(q => { const r = Editar.item(q, 'reactivos', x.id); if (r) { r.ghs = leidos.h; r.prudencia = leidos.p; } }, {silencioso: true, grupo: 'ghs' + x.id});\n    pintaPictos();\n  }, {placeholder: 'H302 H314 P280 P305+P351+P338'});\n  const manuales = ['acido', 'base', 'reductor', 'oxidante', 'inflamable', 'gasConAcido'];\n  const clases = h('fieldset', {class: 'grupo-casillas'}, h('legend', null, 'Clase química (para las incompatibilidades)'),\n    manuales.map(k => UI.casilla(Seguridad.CLASES[k], x.clases.includes(k), v => Estado.cambia(q => {\n      const r = Editar.item(q, 'reactivos', x.id);\n      if (!r) return;\n      r.clases = v ? [...new Set(r.clases.concat(k))] : r.clases.filter(c => c !== k);\n    }, {silencioso: true}))));\n  const sugerido = Seguridad.sugiereResiduo(x);\n  const residuo = UI.selector(x.residuo, [['', sugerido ? 'Sugerido: ' + Seguridad.RESIDUOS[sugerido] : 'Sin asignar']].concat(Object.entries(Seguridad.RESIDUOS)), cf('residuo'));\n  const det = h('details', {class: 'detalle-reactivo', open: x.ghs.length || x.precio != null || x.residuo || x.peligros ? true : null},\n    h('summary', null, 'Seguridad, residuo y precio'),\n    Editar.rejilla(\n      UI.campo('Códigos H y P', codigos, {ayuda: 'Cópialos de la ficha de datos de seguridad (sección 2).', ancho: 'completo'}),\n      UI.campo('Otras indicaciones', UI.texto(x.peligros, cf('peligros'), {placeholder: 'Higroscópico, fotosensible, manipular en campana…'}), {ancho: 'completo'}),\n      UI.campo('Residuo', residuo, {ayuda: 'La categoría final la fija tu servicio de residuos.'}),\n      UI.campo('Precio', UI.numero(x.precio, cf('precio'), {min: 0}), {ayuda: 'En tu moneda, por unidad de compra.'}),\n      UI.campo('Por cada', UI.selector(x.unidadPrecio, ['g', 'mg', 'kg', 'mL', 'µL', 'L', 'mol', 'mmol'].map(u => [u, u]), cf('unidadPrecio')))),\n    pictos, clases);\n  pintaPictos();\n  return det;\n}\n\n/* ---------- reactivos ---------- */\nMarco.registra('reactivos', (c, p) => {\n  const f = p.escala || 1;\n  c.append(UI.cabecera('REACTIVOS', 'Reactivos', 'Con fórmula y pureza la app calcula la masa molar, los moles y lo que hay que pesar a la escala del lote' + (f !== 1 ? ' (×' + numero(f) + ')' : '') + '.'));\n  if (!p.reactivos.length) {\n    c.append(UI.vacio('Todavía no hay reactivos', 'Añade cada reactivo con su fórmula, pureza y proveedor. Si das la cantidad en mmol, la app te dice cuántos gramos pesar.',\n      UI.boton('Añadir un reactivo', () => Acciones.inserta('reactivo'), {tipo: 'pri'})));\n    return;\n  }\n  p.reactivos.forEach((x, i) => {\n    const calc = h('p', {class: 'calculado', 'aria-live': 'polite'});\n    const pinta = () => {\n      const r = Editar.item(Estado.p, 'reactivos', x.id);\n      if (!r) return;\n      const fr = r.formula ? Formula.lee(r.formula) : null;\n      const M = Protocolo.masaMolar(r), mol = Protocolo.moles(r, Estado.p.escala), g = Protocolo.masaAPesar(r, Estado.p.escala);\n      const partes = [];\n      if (fr && fr.error && !(r.masaMolar > 0)) partes.push(fr.error);\n      else if (M) partes.push('M = ' + numero(M, {dec: 2}) + ' g/mol');\n      if (fr && fr.aviso) partes.push(fr.aviso);\n      if (mol != null) partes.push(numero(mol * 1000) + ' mmol');\n      if (g != null && r.unidad !== 'g') partes.push('pesar ' + numero(g) + ' g');\n      else if (g != null && Estado.p.escala !== 1) partes.push('pesar ' + numero(g) + ' g');\n      if ((r.unidad === 'mL' || r.unidad === 'µL') && r.cantidad != null && !(r.densidad > 0) && r.rol !== 'disolvente') partes.push('con la densidad se calculan los moles');\n      calc.textContent = partes.join(' · ');\n      calc.classList.toggle('calculado-error', !!(fr && fr.error && !(r.masaMolar > 0)));\n    };\n    const cf = (k, extra) => Editar.campo('reactivos', x.id, k, () => { pinta(); if (extra) extra(); });\n    const densidad = UI.campo('Densidad', UI.numero(x.densidad, cf('densidad'), {min: 0}), {unidad: 'g/mL', clase: 'campo-densidad'});\n    const mostrarDensidad = u => { densidad.hidden = !(u === 'mL' || u === 'µL'); };\n    mostrarDensidad(x.unidad);\n    c.append(Editar.tarjeta('reactivos', x, i, p.reactivos.length, x.nombre || Formula.bonita(x.formula) || 'Reactivo ' + (i + 1), 'reactivos', '«' + (x.nombre || x.formula || 'el reactivo') + '»',\n      Editar.rejilla(\n        UI.campo('Nombre', UI.texto(x.nombre, cf('nombre'), {placeholder: 'Sulfato de cobre(II) pentahidratado'})),\n        UI.campo('Fórmula', UI.texto(x.formula, cf('formula'), {placeholder: 'CuSO4·5H2O'}), {ayuda: 'Hidratos con «·» o «*».'}),\n        UI.campo('Pureza', UI.numero(x.pureza, cf('pureza'), {min: 0, max: 100}), {unidad: '%'}),\n        UI.campo('Proveedor', UI.texto(x.proveedor, cf('proveedor'))),\n        UI.campo('CAS', UI.texto(x.cas, cf('cas'), {placeholder: '7758-99-8'})),\n        UI.campo('Función', UI.selector(x.rol, Object.entries(Protocolo.ROLES), v => { cf('rol')(v); })),\n        UI.campo('Cantidad del lote base', UI.numero(x.cantidad, cf('cantidad'), {min: 0})),\n        UI.campo('Unidad', UI.selector(x.unidad, Protocolo.UNIDADES.map(u => [u, u]), v => { cf('unidad')(v); mostrarDensidad(v); })),\n        densidad,\n        UI.campo('Masa molar manual', UI.numero(x.masaMolar, cf('masaMolar'), {min: 0}), {unidad: 'g/mol', ayuda: 'Solo si la fórmula no basta (polímeros, mezclas).'})),\n      seguridadReactivo(x, cf),\n      calc));\n    pinta();\n  });\n  c.append(h('div', {class: 'fila-botones'}, UI.boton('Añadir un reactivo', () => Acciones.inserta('reactivo'))));\n});\n\n/* ---------- disoluciones ---------- */\nMarco.registra('disoluciones', (c, p) => {\n  c.append(UI.cabecera('DISOLUCIONES', 'Disoluciones', 'De un reactivo sólido, a una concentración y un volumen: la app calcula cuánto soluto pesar, con su pureza y a la escala del lote.'));\n  if (!p.reactivos.length) { c.append(UI.vacio('Primero, los reactivos', 'Una disolución apunta a un reactivo del protocolo para saber su masa molar y su pureza.', UI.boton('Ir a Reactivos', () => Marco.irA('reactivos'), {tipo: 'pri'}))); return; }\n  if (!p.disoluciones.length) {\n    c.append(UI.vacio('Todavía no hay disoluciones', 'Añade las disoluciones que preparas: la de la base, la de las sales, un tampón…', UI.boton('Añadir una disolución', () => Acciones.inserta('disolucion'), {tipo: 'pri'})));\n    return;\n  }\n  const opciones = [['', 'Elige el soluto…']].concat(p.reactivos.map(r => [r.id, r.nombre || Formula.bonita(r.formula) || 'Reactivo sin nombre']));\n  p.disoluciones.forEach((d, i) => {\n    const calc = h('p', {class: 'calculado', 'aria-live': 'polite'});\n    const pinta = () => {\n      const q = Estado.p, x = Editar.item(q, 'disoluciones', d.id);\n      if (!x) return;\n      if (!x.reactivo) { calc.textContent = 'Elige el soluto.'; return; }\n      if (x.concentracion == null || x.volumen == null) { calc.textContent = 'Con la concentración y el volumen se calcula cuánto pesar.'; return; }\n      const r = Protocolo.disolucion(q, x, q.escala);\n      calc.textContent = r.error ? r.error : r.explicacion;\n      calc.classList.toggle('calculado-error', !!r.error);\n    };\n    const cf = k => Editar.campo('disoluciones', d.id, k, pinta);\n    c.append(Editar.tarjeta('disoluciones', d, i, p.disoluciones.length, d.nombre || 'Disolución ' + (i + 1), 'disoluciones', '«' + (d.nombre || 'la disolución') + '»',\n      Editar.rejilla(\n        UI.campo('Nombre', UI.texto(d.nombre, cf('nombre'), {placeholder: 'NaOH 2 mol/L'})),\n        UI.campo('Soluto', UI.selector(d.reactivo, opciones, cf('reactivo'))),\n        UI.campo('Concentración', UI.numero(d.concentracion, cf('concentracion'), {min: 0}), {unidad: 'mol/L'}),\n        UI.campo('Volumen del lote base', UI.numero(d.volumen, cf('volumen'), {min: 0}), {unidad: 'mL'}),\n        UI.campo('Disolvente', UI.texto(d.disolvente, cf('disolvente')))),\n      calc));\n    pinta();\n  });\n  c.append(h('div', {class: 'fila-botones'}, UI.boton('Añadir una disolución', () => Acciones.inserta('disolucion'))));\n});\n",
  "src/js/41-p-procedimiento.js": "/* ==== 41-p-procedimiento.js ==== */\n'use strict';\n/* ================= procedimiento, caracterización y seguridad ================= */\n\n/* ---------- procedimiento ----------\n   Cada paso: el texto para el cuaderno (en infinitivo, si quieres), sus\n   parámetros en campos propios —así se pueden revisar y citar— y, opcional,\n   cómo se redacta en el artículo. */\nMarco.registra('procedimiento', (c, p) => {\n  c.append(UI.cabecera('PROCEDIMIENTO', 'Procedimiento', 'Un paso por acción. Temperatura, tiempo, pH, agitación y atmósfera van en sus campos: así la revisión sabe si falta alguno y la sección de métodos los escribe con sus unidades.'));\n  c.append(UI.boton('Abrir diseñador de flujo',()=>Marco.irA('flujo'),{mini:true}));\n  if (!p.pasos.length) {\n    c.append(UI.vacio('Todavía no hay pasos', 'Escribe el procedimiento paso a paso, en el orden en que lo haces.', UI.boton('Añadir un paso', () => Acciones.inserta('paso'), {tipo: 'pri'})));\n    return;\n  }\n  p.pasos.forEach((s, i) => {\n    const cf = k => Editar.campo('pasos', s.id, k);\n    const art = UI.campo('Cómo se redacta en el artículo', UI.texto(s.articulo, cf('articulo'), {area: true, filas: 2, placeholder: 'Se disolvieron … (en pasiva; si lo dejas vacío, se copia el texto del paso)'}), {ancho: 'completo'});\n    c.append(Editar.tarjeta('pasos', s, i, p.pasos.length, 'Paso ' + (i + 1) + (s.critico ? ' · crítico' : ''), 'procedimiento', 'el paso ' + (i + 1),\n      UI.campo('Qué se hace', UI.texto(s.texto, cf('texto'), {area: true, filas: 2, placeholder: 'Disolver las sales en 50 mL de agua desionizada'}), {ancho: 'completo'}),\n      Editar.rejilla(\n        UI.campo('Acción', UI.selector(s.accion, Object.entries(Protocolo.ACCIONES), cf('accion'))),\n        UI.campo('Volumen de trabajo', UI.numero(s.volumen, cf('volumen'), {min: 0}), {unidad: 'mL'}),\n        UI.campo('Capacidad del recipiente', UI.numero(s.capacidad, cf('capacidad'), {min: 0}), {unidad: 'mL'}),\n        UI.campo('Temperatura', UI.numero(s.temperatura, cf('temperatura')), {unidad: '°C'}),\n        UI.campo('Tiempo', UI.numero(s.tiempo, cf('tiempo'), {min: 0})),\n        UI.campo('Unidad de tiempo', UI.selector(s.unidadTiempo, [['s', 'segundos'], ['min', 'minutos'], ['h', 'horas'], ['d', 'días']], cf('unidadTiempo'))),\n        UI.campo('pH', UI.numero(s.ph, cf('ph'), {min: 0, max: 14})),\n        UI.campo('Agitación', UI.numero(s.agitacion, cf('agitacion'), {min: 0}), {unidad: 'rpm'}),\n        UI.campo('Atmósfera', UI.texto(s.atmosfera, cf('atmosfera'), {placeholder: 'aire, N₂, Ar…'}))),\n      UI.casilla('Paso crítico (lo que más afecta al resultado)', s.critico, v => Estado.cambia(q => { const x = Editar.item(q, 'pasos', s.id); if (x) x.critico = v; })),\n      art));\n  });\n  c.append(h('div', {class: 'fila-botones'}, UI.boton('Añadir un paso', () => Acciones.inserta('paso'))));\n});\n\n/* ---------- caracterización ----------\n   Los campos de cada técnica salen de DATOS.tecnicas; los marcados como\n   requeridos son los que un revisor pide para poder comparar. Ningún valor\n   se rellena solo: la sugerencia va como texto de ejemplo. */\nMarco.registra('caracterizacion', (c, p) => {\n  c.append(UI.cabecera('MEDICIÓN Y CARACTERIZACIÓN', 'Medición y caracterización', 'Las condiciones de medida de cada técnica: espectroscopia, cromatografía, RMN, masas, microscopía, electroquímica, análisis térmico, difracción… Los campos con asterisco son los que hacen falta para comparar tus datos con los de otros.'));\n  const menu = h('div', {class: 'fila-botones'}, DATOS.tecnicas.orden.map(t => UI.boton(DATOS.tecnicas[t].corto, () => Acciones.inserta('tecnica', t), {mini: true, titulo: 'Añadir ' + DATOS.tecnicas[t].nombre})));\n  if (!p.caracterizacion.length) {\n    c.append(UI.vacio('Todavía no hay técnicas', 'Añade las técnicas con las que caracterizas el producto.'), h('p', {class: 'nota'}, 'Añadir:'), menu);\n    return;\n  }\n  p.caracterizacion.forEach((t, i) => {\n    const def = DATOS.tecnicas[t.tecnica];\n    const cf = k => v => Estado.cambia(q => { const x = Editar.item(q, 'caracterizacion', t.id); if (!x) return; if (v == null || v === '') delete x.valores[k]; else x.valores[k] = v; }, {silencioso: true, grupo: 'car' + t.id + k});\n    const campos = def.campos.map(cd => {\n      const etq = cd.etiqueta + (cd.requerido ? ' *' : '');\n      const v = t.valores[cd.id];\n      let ctl;\n      if (cd.tipo === 'numero') ctl = UI.numero(v, cf(cd.id), {placeholder: cd.sugerido || ''});\n      else if (cd.tipo === 'opcion') ctl = UI.selector(v || '', [['', 'Elige…']].concat(cd.opciones.map(o => [o, o])), cf(cd.id));\n      else ctl = UI.texto(v, cf(cd.id), {area: cd.tipo === 'area', placeholder: cd.sugerido ? 'p. ej. ' + cd.sugerido : ''});\n      return UI.campo(etq, ctl, {unidad: cd.unidad || null, ancho: cd.tipo === 'area' ? 'completo' : null});\n    });\n    c.append(Editar.tarjeta('caracterizacion', t, i, p.caracterizacion.length, def.nombre, 'caracterizacion', def.corto, UI.campo('Instrumento del inventario', UI.selector(t.instrumentoId, [['', 'Sin vincular']].concat(Almacen.laboratorio().instrumentos.map(e => [e.id, (e.nombre || 'Instrumento') + ' · ' + e.identificador])), Editar.campo('caracterizacion', t.id, 'instrumentoId')), {ayuda: 'Su identificación y fechas de calibración se conservan al registrar un lote.'}), Editar.rejilla(...campos)));\n  });\n  c.append(h('p', {class: 'nota'}, 'Añadir otra técnica:'), menu);\n});\n\n/* ---------- seguridad ----------\n   Pictogramas deducidos de los códigos H de cada reactivo, incompatibilidades\n   dentro del protocolo, recipientes de residuos y las precauciones propias. */\nconst Pictograma = (() => {\n  /* Rombo con el número del pictograma GHS: no copia el dibujo oficial, lo\n     nombra; el nombre va siempre al lado, nunca solo el color. */\n  const svg = codigo => '<svg viewBox=\"0 0 32 32\" width=\"28\" height=\"28\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M16 2 30 16 16 30 2 16Z\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linejoin=\"round\"/><text x=\"16\" y=\"20\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"currentColor\">' + codigo.slice(3) + '</text></svg>';\n  const chip = p => h('span', {class: 'pictograma', title: p.codigo + ' · ' + p.nombre}, h('span', {class: 'pictograma-ico', html: svg(p.codigo)}), p.nombre);\n  return {chip, fila: codigosH => { const ps = Seguridad.pictogramas(codigosH); return ps.length ? h('span', {class: 'fila-pictogramas'}, ps.map(chip)) : null; }};\n})();\n\nMarco.registra('seguridad', (c, p) => {\n  c.append(UI.cabecera('SEGURIDAD', 'Seguridad y residuos', 'Los códigos H y P de cada reactivo se escriben en su tarjeta, copiados de su ficha de datos de seguridad; aquí se juntan con las incompatibilidades, los residuos y las precauciones del procedimiento.'));\n  const conGhs = p.reactivos.filter(r => r.ghs.length || r.peligros.trim());\n  if (conGhs.length) c.append(h('section', {class: 'bloque'}, h('h3', null, 'Peligros de los reactivos'),\n    h('ul', {class: 'lista-simple'}, conGhs.map(r => h('li', null, h('b', null, r.nombre || Formula.bonita(r.formula)), ' ', Pictograma.fila(r.ghs),\n      r.ghs.length ? h('div', {class: 'nota'}, r.ghs.map(x => x + ' ' + Seguridad.texto(x)).join(' ')) : null, r.peligros.trim() ? h('div', {class: 'nota'}, r.peligros) : null)))));\n  else if (p.reactivos.length) c.append(UI.aviso('nota', 'Ningún reactivo tiene códigos H. Cópialos de su ficha de datos de seguridad en la tarjeta del reactivo: con ellos salen los pictogramas y las incompatibilidades.'));\n  const inc = Seguridad.incompatibilidades(p);\n  if (inc.length) c.append(h('section', {class: 'bloque'}, h('h3', null, 'Incompatibilidades en este protocolo'),\n    h('ul', {class: 'lista-simple'}, inc.map(a => h('li', null, a.texto, h('div', {class: 'nota'}, 'Afecta a: ' + a.reactivos.join(', ')))))));\n  const res = Seguridad.residuos(p);\n  if (res.length) c.append(h('section', {class: 'bloque'}, h('h3', null, 'Residuos'),\n    h('ul', {class: 'lista-simple'}, res.map(r => h('li', null, h('b', null, r.nombre), r.sugerido ? ' (sugerido por la fórmula: confírmalo con tu servicio de residuos)' : '', ': ' + r.reactivos.join(', '))))));\n  if (!p.seguridad.length) {\n    c.append(UI.vacio('Sin precauciones anotadas', 'Anota lo que alguien que repita el protocolo necesita saber para hacerlo con seguridad: equipo de protección, campana, gestión de residuos.', UI.boton('Añadir una nota', () => Acciones.inserta('seguridad'), {tipo: 'pri'})));\n    return;\n  }\n  p.seguridad.forEach((n, i) => c.append(Editar.tarjeta('seguridad', n, i, p.seguridad.length, 'Nota ' + (i + 1), 'seguridad', 'la nota ' + (i + 1),\n    UI.campo('Precaución', UI.texto(n.texto, Editar.campo('seguridad', n.id, 'texto'), {area: true, filas: 2}), {ancho: 'completo'}))));\n  c.append(h('div', {class: 'fila-botones'}, UI.boton('Añadir una nota', () => Acciones.inserta('seguridad'))));\n});\n",
  "src/js/42-p-lotes.js": "/* ==== 42-p-lotes.js ==== */\n'use strict';\n/* ================= lotes =================\n   Cada ejecución del protocolo: su escala, lo que de verdad pesaste frente a\n   lo planeado y lo que obtuviste. La hoja de pesadas de un lote se imprime\n   sola, para llevarla a la balanza. */\n\nconst Imprimir = (() => {\n  /* Imprime solo un elemento de la pantalla (la hoja de pesadas de un lote). */\n  function solo(el) {\n    el.classList.add('imprimir-solo');\n    document.body.classList.add('imprime-seleccion');\n    const limpia = () => { el.classList.remove('imprimir-solo'); document.body.classList.remove('imprime-seleccion'); window.removeEventListener('afterprint', limpia); };\n    window.addEventListener('afterprint', limpia);\n    window.print();\n    setTimeout(limpia, 1000);\n  }\n  return {solo};\n})();\n\nMarco.registra('lotes', (c, p) => {\n  c.append(UI.cabecera('LOTES', 'Lotes', 'Cada vez que haces el protocolo: la escala, las pesadas reales frente a las planeadas y lo que obtuviste. Con varios lotes se ve si el protocolo es repetible.'));\n  if (!p.lotes.length) {\n    c.append(UI.vacio('Todavía no hay lotes', 'Registra un lote cuando vayas a ejecutar el protocolo: la hoja de pesadas sale ya calculada a su escala.', UI.boton('Registrar un lote', () => Acciones.inserta('lote'), {tipo: 'pri'})));\n    return;\n  }\n  /* Un protocolo que mide algo (un ensayo, una determinación) y no produce\n     nada no habla de rendimiento: su comparación es la del resultado. */\n  const sinRendimiento = () => Estado.p.rendimientoTeorico == null && !!Estado.p.resultadoNombre;\n  const vacio = () => sinRendimiento() ? 'Anota «' + Estado.p.resultadoNombre + '» en cada lote: con tres o más, «Comparar lotes» muestra su carta de control.' : 'Anota la masa obtenida y el rendimiento teórico para comparar lotes.';\n  const res = Lotes.resumen(p);\n  const resumen = h('p', {class: 'calculado', 'aria-live': 'polite'}, res.n ? res.explicacion : vacio());\n  c.append(resumen);\n  const refrescaResumen = () => { const r = Lotes.resumen(Estado.p); resumen.textContent = r.n ? r.explicacion : vacio(); };\n\n  p.lotes.forEach((l, i) => {\n    const base = Lotes.protocolo(p, l);\n    const rend = h('p', {class: 'calculado', 'aria-live': 'polite'});\n    const cuerpoTabla = h('tbody');\n    const leyenda = h('caption');\n    const umbral = 1;\n    const pintaPesadas = () => {\n      const q = Estado.p, x = Editar.item(q, 'lotes', l.id);\n      if (!x) return;\n      const filas = Lotes.pesadas(q, x, umbral);\n      for (const f of filas) {\n        const tr = cuerpoTabla.querySelector('[data-reactivo=\"' + f.id + '\"]');\n        if (!tr) continue;\n        tr.querySelector('.col-plan').textContent = numero(f.planeada);\n        const dv = tr.querySelector('.col-desv');\n        dv.textContent = f.desviacion == null ? '—' : (f.desviacion > 0 ? '+' : '') + numero(f.desviacion, {dec: 2}) + ' %';\n        dv.classList.toggle('fuera', f.fuera);\n      }\n      leyenda.textContent = 'Hoja de pesadas (g) a escala ×' + numero(x.factor);\n      const r = Lotes.rendimiento(q, x);\n      rend.textContent = sinRendimiento() && r.teorico == null ? '' : r.explicacion;\n      refrescaResumen();\n    };\n    const cf = k => Editar.campo('lotes', l.id, k, pintaPesadas);\n    const filas = Lotes.pesadas(p, l, umbral);\n    for (const f of filas) {\n      const real = UI.numero(l.pesadas[f.id], v => {\n        Estado.cambia(q => { const x = Editar.item(q, 'lotes', l.id); if (!x) return; if (v == null) delete x.pesadas[f.id]; else x.pesadas[f.id] = v; }, {silencioso: true, grupo: 'pes' + l.id + f.id});\n        pintaPesadas();\n      }, {min: 0, attrs: {'aria-label': 'Masa pesada de ' + f.nombre + ' (g)'}});\n      cuerpoTabla.append(h('tr', {'data-reactivo': f.id}, h('th', {scope: 'row'}, f.nombre || '—'), h('td', {class: 'num col-plan'}), h('td', {class: 'num'}, real), h('td', {class: 'num col-desv'})));\n    }\n    const tabla = filas.length\n      ? h('div', {class: 'tabla-scroll'}, h('table', {class: 'tabla'}, leyenda,\n          h('thead', null, h('tr', null, h('th', {scope: 'col'}, 'Reactivo'), h('th', {scope: 'col', class: 'num'}, 'Planeado'), h('th', {scope: 'col', class: 'num'}, 'Pesado'), h('th', {scope: 'col', class: 'num'}, 'Desviación'))), cuerpoTabla))\n      : h('p', {class: 'nota'}, 'Ningún reactivo tiene una cantidad que se pese en gramos: la hoja de pesadas aparece cuando la tengan.');\n    const k = Seguridad.costo(base, l.factor);\n    const costo = k.filas.length ? h('p', {class: 'calculado'}, k.explicacion.replace(/: ([\\d.,]+)\\./, (m, v) => ': ' + v + (Almacen.laboratorio().moneda ? ' ' + Almacen.laboratorio().moneda : '') + '.')) : null;\n    const tarjeta = Editar.tarjeta('lotes', l, i, p.lotes.length, 'Lote ' + (l.codigo || i + 1) + ' · ' + l.fecha, 'lotes', 'el lote ' + (l.codigo || i + 1),\n      Editar.rejilla(\n        UI.campo('Código', UI.texto(l.codigo, cf('codigo'), {placeholder: 'L-2026-01'})),\n        UI.campo('Fecha', UI.texto(l.fecha, cf('fecha'), {attrs: {type: 'date'}})),\n        UI.campo('Escala', UI.numero(l.factor, v => { if (v > 0) { cf('factor')(v); } }, {min: 0.000001, attrs: {'data-escala': l.id}}), {unidad: '×'}),\n        UI.campo('Operador', UI.texto(l.operador, cf('operador'))),\n        UI.campo('Masa obtenida', UI.numero(l.masaObtenida, cf('masaObtenida'), {min: 0}), {unidad: 'g'}),\n        UI.campo(base.resultadoNombre || 'Resultado medido', UI.numero(l.resultado, cf('resultado')), {unidad: base.resultadoUnidad || null, ayuda: base.resultadoNombre ? null : 'Qué se mide se define en Datos generales.'})),\n      l.revision ? UI.aviso('nota', 'Revisión fija del ' + l.revision.fecha + '. Los cambios del protocolo no alteran esta referencia.') : UI.aviso('nota', 'Lote anterior sin revisión fija: su referencia histórica es desconocida.'),\n      tabla,\n      parametrosReales(base, l),\n      UI.campo('Observaciones', UI.texto(l.observaciones, cf('observaciones'), {area: true, filas: 2, placeholder: 'Color, pH final, incidencias, desviaciones del protocolo'}), {ancho: 'completo'}),\n      rend,\n      costo,\n      h('div', {class: 'fila-botones'}, UI.boton('Abrir ejecución', () => { const pr = Almacen.prefs(); pr.ejecucionLote = l.id; Almacen.guardaPrefs(pr); Marco.irA('ejecucion'); }, {mini: true}), UI.boton('Imprimir la hoja de pesadas', () => Imprimir.solo(tarjeta), {mini: true}),\n        UI.boton('Lista previa de este lote', () => { const pr = Almacen.prefs(); pr.verificacionLote = l.id; Almacen.guardaPrefs(pr); Marco.irA('verificacion'); }, {mini: true})));\n    if (l.ejecucion.estado === 'terminado') tarjeta.querySelectorAll('input,textarea,select').forEach(el => { el.disabled = true; });\n    else if (l.ejecucion.estado === 'enCurso') { const escala = tarjeta.querySelector('input[data-escala]'); if (escala) escala.disabled = true; }\n    c.append(tarjeta);\n    pintaPesadas();\n  });\n  c.append(h('div', {class: 'fila-botones'}, UI.boton('Descargar paquete de investigación (.zip)', () => UI.descarga(UI.nombreArchivo(Estado.p.titulo) + '-investigacion.zip', Paquete.investigacion(Estado.p, {version: window.ERLEN.version, idioma: Almacen.prefs().idioma}).zip, 'application/zip')), UI.boton('Registrar otro lote', () => Acciones.inserta('lote')), UI.boton('Comparar lotes', () => Marco.irA('calidad'))));\n});\n\n/* Parámetros reales del lote: los de los pasos que tienen un valor planeado.\n   Se comparan en «Comparar lotes» y son los que DoE estudia. */\nfunction parametrosReales(p, l) {\n  const CAMPOS = [['temperatura', 'Temperatura', '°C'], ['tiempo', 'Tiempo', null], ['ph', 'pH', null], ['agitacion', 'Agitación', 'rpm']];\n  const filas = [];\n  p.pasos.forEach((s, i) => { for (const [k, etq, u] of CAMPOS) if (s[k] != null) filas.push({s, i, k, etq, u: k === 'tiempo' ? s.unidadTiempo : u}); });\n  if (!filas.length) return null;\n  const cambia = (pasoId, campo) => v => Estado.cambia(q => {\n    const x = Editar.item(q, 'lotes', l.id);\n    if (!x) return;\n    const par = x.parametros[pasoId] = x.parametros[pasoId] || {};\n    if (v == null) delete par[campo]; else par[campo] = v;\n    if (!Object.keys(par).length) delete x.parametros[pasoId];\n  }, {silencioso: true, grupo: 'par' + l.id + pasoId + campo});\n  return h('details', {class: 'detalle-reactivo', open: Object.keys(l.parametros).length ? true : null},\n    h('summary', null, 'Condiciones reales (' + filas.length + ')'),\n    h('p', {class: 'nota'}, 'Lo que de verdad marcó el termómetro, el reloj o el pH-metro. Vacío = no registrado; no se supone que coincidió con el protocolo.'),\n    h('div', {class: 'rejilla-campos'}, filas.map(f => UI.campo('Paso ' + (f.i + 1) + ' · ' + f.etq + ' (plan ' + numero(f.s[f.k]) + ')',\n      UI.numero(l.parametros[f.s.id] ? l.parametros[f.s.id][f.k] : null, cambia(f.s.id, f.k)), {unidad: f.u}))));\n}\n",
  "src/js/43-p-metodos.js": "/* ==== 43-p-metodos.js ==== */\n'use strict';\n/* ================= sección de métodos y revisión ================= */\n\nMarco.registra('metodos', (c, p) => {\n  const idioma = Almacen.prefs().idioma || 'es';\n  const bloques = Redaccion.seccion(p, idioma);\n  const rev = Protocolo.revisa(p);\n  c.append(UI.cabecera('SECCIÓN DE MÉTODOS', idioma === 'en' ? 'Materials and methods' : 'Materiales y métodos',\n    'Redactada a partir del protocolo, en pasiva e impersonal. Solo dice lo que el protocolo contiene: lo que falta no se rellena con valores típicos.'));\n  const selIdioma = UI.selector(idioma, [['es', 'Español'], ['en', 'Inglés']], v => Acciones.idioma(v));\n  c.append(h('div', {class: 'fila-herramientas'},\n    UI.campo('Idioma', selIdioma, {clase: 'campo-corto'}),\n    h('div', {class: 'fila-botones'},\n      UI.boton('Copiar el texto', () => Acciones.copiaMetodos(), {tipo: 'pri'}),\n      UI.boton('Descargar el protocolo (.md)', () => Acciones.markdown()))));\n  if (rev.faltas) c.append(UI.aviso('nota', h('span', null, rev.faltas + (rev.faltas === 1 ? ' dato impide' : ' datos impiden') + ' repetir el protocolo y no aparecerán en el texto. ', h('a', {href: '#p/revisar'}, 'Ver qué falta'), '.')));\n  if (idioma === 'en') c.append(UI.aviso('nota', 'Los nombres de los reactivos, el texto de los pasos y los campos libres se copian tal como los escribiste: tradúcelos tú. La app solo pone en inglés sus propias frases.'));\n  if (!bloques.length) { c.append(UI.vacio('Aún no hay nada que redactar', 'Añade reactivos, pasos o técnicas de caracterización y la sección aparecerá aquí.', UI.boton('Ir a Reactivos', () => Marco.irA('reactivos')))); return; }\n  c.append(h('article', {class: 'hoja-metodos erlen-lectura', lang: idioma}, bloques.map(b => h('section', null, h('h3', null, b.titulo), h('p', null, b.texto)))));\n  c.append(h('p', {class: 'nota'}, 'Revisa el texto antes de usarlo: es un borrador fiel a tus datos, no una redacción final.'));\n});\n\nMarco.registra('revisar', (c, p) => {\n  const r = Protocolo.revisa(p);\n  const pct = Math.round(r.indice * 100);\n  c.append(UI.cabecera('REVISIÓN', 'Revisión de reproducibilidad', '¿Podría otra persona repetir este protocolo sin preguntarte? «Falta» es lo que lo impide; «sugerencia», lo que lo mejora.'));\n  c.append(h('div', {class: 'metricas'},\n    h('div', {class: 'metrica'}, h('span', {class: 'metrica-valor'}, pct + ' %'), h('span', {class: 'metrica-etq'}, 'de los datos necesarios')),\n    h('div', {class: 'metrica'}, h('span', {class: 'metrica-valor'}, String(r.faltas)), h('span', {class: 'metrica-etq'}, r.faltas === 1 ? 'falta' : 'faltas')),\n    h('div', {class: 'metrica'}, h('span', {class: 'metrica-valor'}, String(r.sugerencias)), h('span', {class: 'metrica-etq'}, r.sugerencias === 1 ? 'sugerencia' : 'sugerencias'))));\n  if (!r.avisos.length) { c.append(UI.aviso('ok', 'No falta nada de lo que la app sabe comprobar. Aun así, léelo como lo leería alguien de otro laboratorio.')); return; }\n  for (const s of Marco.SECCIONES) {\n    const avs = r.avisos.filter(a => a.seccion === s.id);\n    if (!avs.length) continue;\n    c.append(h('section', {class: 'bloque'}, h('h3', null, s.titulo),\n      h('ul', {class: 'lista-revision'}, avs.sort((a, b) => (a.nivel === b.nivel ? 0 : a.nivel === 'falta' ? -1 : 1)).map(a =>\n        h('li', {class: 'rev-' + a.nivel},\n          h('span', {class: 'rev-nivel'}, a.nivel === 'falta' ? 'Falta' : 'Sugerencia'),\n          h('span', {class: 'rev-texto'}, a.texto),\n          UI.boton('Ir', () => Marco.irA(a.seccion, {foco: a.ref}), {mini: true, aria: 'Ir a ' + s.titulo + ': ' + a.texto}))))));\n  }\n});\n",
  "src/js/44-p-calculadoras.js": "/* ==== 44-p-calculadoras.js ==== */\n'use strict';\n/* ================= calculadoras =================\n   Un registro de calculadoras por disciplina. La pantalla muestra las de la\n   categoría elegida, no las veinticinco a la vez. Cada una recuerda sus\n   últimos valores en las preferencias de este navegador y trae su\n   explicación. Los valores con los que arrancan son solo ejemplos de formato:\n   la app no supone tus condiciones. Salvo la de HDL, que puede añadir sus\n   reactivos al protocolo abierto (con Deshacer), ninguna toca el protocolo. */\n\nconst Calculadoras = (() => {\n  const CATEGORIAS = [\n    ['quimica', 'Química'], ['disoluciones', 'Disoluciones y medios'], ['biologia', 'Biología'],\n    ['medida', 'Medida y estadística'], ['fisica', 'Física y radiactividad'], ['materiales', 'Materiales']\n  ];\n  const registro = [];\n  const registra = def => registro.push(def);\n  const categoriaDe = id => (registro.find(d => d.id === id) || {}).categoria;\n  const activa = () => { const c = Almacen.prefs().calcCategoria; return CATEGORIAS.some(x => x[0] === c) ? c : 'quimica'; };\n  function elige(cat) { const pr = Almacen.prefs(); pr.calcCategoria = cat; Almacen.guardaPrefs(pr); }\n  /* Abre la pantalla en la categoría de esa calculadora y lleva el foco a ella. */\n  function abre(id) { const c = categoriaDe(id); if (c) elige(c); Marco.irA('calculadoras', {foco: id}); }\n\n  const mem = id => (Almacen.prefs().calc || {})[id] || {};\n  const recuerda = (id, v) => { const pr = Almacen.prefs(); pr.calc = Object.assign(pr.calc || {}, {[id]: v}); Almacen.guardaPrefs(pr); };\n  const tarjeta = (id, titulo, frase, ...hijos) => h('section', {class: 'bloque calculadora', 'data-ref': id, tabindex: '-1', 'aria-labelledby': id + '-t'},\n    h('h3', {id: id + '-t'}, titulo), frase ? h('p', {class: 'nota'}, frase) : null, hijos);\n  const salidaVacia = () => h('div', {class: 'calc-salida', 'aria-live': 'polite'});\n  function pintaResultado(salida, r, extra) {\n    salida.replaceChildren();\n    if (!r) return;\n    if (r.error) { salida.append(h('p', {class: 'calculado calculado-error'}, r.error)); return; }\n    if (Array.isArray(r.filas)) salida.append(h('dl', {class: 'resultado'}, r.filas.map(([k, v]) => [h('dt', null, k), h('dd', null, v)])));\n    if (r.tabla) salida.append(tabla(r.tabla.cabecera, r.tabla.filas, r.tabla.titulo));\n    if (r.nodo) salida.append(r.nodo);\n    if (r.explicacion) salida.append(h('p', {class: 'explicacion'}, r.explicacion));\n    if (extra) { const e = extra(r); if (e) salida.append(e); }\n  }\n  function tabla(cabecera, filas, titulo) {\n    return h('div', {class: 'tabla-scroll',tabindex:'0'}, h('table', {class: 'tabla'}, titulo ? h('caption', null, titulo) : null,\n      h('thead', null, h('tr', null, cabecera.map((c, i) => h('th', {scope: 'col', class: i ? 'num' : null}, c)))),\n      h('tbody', null, filas.map(f => h('tr', null, f.map((v, i) => (i ? h('td', {class: 'num'}, v) : h('th', {scope: 'row'}, v))))))));\n  }\n\n  /* Calculadora de campos: [{k, etq, tipo: numero|texto|opcion|area, v, unidad, ayuda, opciones}]. */\n  function simple(c, id, titulo, frase, campos, calcula, extra) {\n    const guardado = mem(id);\n    const valores = Object.assign({}, ...campos.map(f => ({[f.k]: guardado[f.k] !== undefined ? guardado[f.k] : f.v})));\n    const salida = salidaVacia();\n    const recalcula = () => { recuerda(id, valores); let r; try { r = calcula(valores); } catch (e) { r = {error: e.message}; } pintaResultado(salida, r, extra && (res => extra(res, valores))); };\n    const ctl = f => {\n      const cambia = v => { valores[f.k] = v; if (f.alCambiar) f.alCambiar(v, valores, controles); recalcula(); };\n      if (f.tipo === 'opcion') return UI.selector(valores[f.k] == null ? '' : valores[f.k], f.opciones, cambia);\n      if (f.tipo === 'texto') return UI.texto(valores[f.k], cambia, {placeholder: f.ph || ''});\n      if (f.tipo === 'area') return UI.texto(valores[f.k], cambia, {area: true, filas: f.filas || 4, placeholder: f.ph || ''});\n      return UI.numero(valores[f.k], cambia, {min: f.min, placeholder: f.ph || ''});\n    };\n    const controles = {};\n    const campoNodos = campos.map(f => { const x = ctl(f); controles[f.k] = x; return UI.campo(f.etq, x, {unidad: f.unidad || null, ayuda: f.ayuda || null, ancho: f.tipo === 'area' ? 'completo' : null}); });\n    c.append(tarjeta(id, titulo, frase, h('div', {class: 'rejilla-campos'}, campoNodos), salida));\n    recalcula();\n  }\n  /* Lista de números escrita a mano: separados por espacios, líneas o «;»\n     (la coma es decimal). */\n  const numeros = t => String(t || '').split(/[\\s;]+/).map(s => s.trim().replace(',', '.')).filter(Boolean).map(Number).filter(v => isFinite(v));\n  const pares = t => String(t || '').split(/\\n+/).map(l => l.trim()).filter(Boolean).map(l => l.split(/[\\s;\\t]+/).map(s => Number(s.replace(',', '.')))).filter(p => p.length >= 2 && p.every(isFinite));\n\n  /* Editor de filas pequeño: columnas [{k, etq, tipo, ancho}]. */\n  function filasEditables(filasIniciales, columnas, alCambiar) {\n    const filas = filasIniciales.map(f => Object.assign({}, f));\n    const cuerpo = h('tbody');\n    const pinta = () => {\n      cuerpo.replaceChildren(...filas.map((f, i) => h('tr', null, columnas.map(col => {\n        const cambia = v => { f[col.k] = v; alCambiar(filas); };\n        const ctl = col.tipo === 'numero' ? UI.numero(f[col.k], cambia, {attrs: {'aria-label': col.etq + ' (fila ' + (i + 1) + ')'}}) : col.tipo === 'opcion'\n          ? UI.selector(f[col.k] || '', col.opciones, cambia, {attrs: {'aria-label': col.etq + ' (fila ' + (i + 1) + ')'}}) : UI.texto(f[col.k], cambia, {attrs: {'aria-label': col.etq + ' (fila ' + (i + 1) + ')'}});\n        return h('td', null, ctl);\n      }), h('td', null, h('button', {type: 'button', class: 'ico', 'aria-label': 'Quitar la fila ' + (i + 1), title: 'Quitar la fila', onclick: () => { filas.splice(i, 1); pinta(); alCambiar(filas); },\n        html: '<svg viewBox=\"0 0 24 24\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M6 6l12 12M18 6L6 18\"/></svg>'})))));\n    };\n    pinta();\n    const nodo = h('div', null, h('div', {class: 'tabla-scroll'}, h('table', {class: 'tabla tabla-editable'}, h('thead', null, h('tr', null, columnas.map(col => h('th', {scope: 'col'}, col.etq)), h('th', null, h('span', {class: 'visualmente-oculto'}, 'Acciones')))), cuerpo)),\n      UI.boton('Añadir una fila', () => { filas.push({}); pinta(); alCambiar(filas); }, {mini: true}));\n    return {nodo, filas};\n  }\n\n  /* ---------- gráficas pequeñas (SVG) ----------\n     Una sola serie: el título la nombra y no lleva leyenda. Marcas de 2 px,\n     puntos de 8 px con su valor en el title nativo, rejilla recesiva. Las\n     líneas de referencia van discontinuas en tinta atenuada. */\n  function grafica(opc) {\n    const W = 580, H = 250, m = {i: 56, d: 44, s: 14, b: 46};\n    const xs = opc.puntos.map(p => p.x).concat((opc.lineas || []).flatMap(l => [l.x1, l.x2]).filter(v => v != null));\n    const ys = opc.puntos.map(p => p.y).concat((opc.lineas || []).flatMap(l => [l.y1, l.y2]).filter(v => v != null));\n    let [x0, x1] = [Math.min(...xs), Math.max(...xs)], [y0, y1] = [Math.min(...ys), Math.max(...ys)];\n    if (x0 === x1) { x0 -= 1; x1 += 1; }\n    if (y0 === y1) { y0 -= 1; y1 += 1; }\n    const py = (y1 - y0) * 0.08; y0 -= py; y1 += py;\n    const X = v => m.i + (v - x0) / (x1 - x0) * (W - m.i - m.d), Y = v => H - m.b - (v - y0) / (y1 - y0) * (H - m.s - m.b);\n    const NS = 'http://www.w3.org/2000/svg';\n    const el = (t, a, txt) => { const n = document.createElementNS(NS, t); for (const k in a) n.setAttribute(k, a[k]); if (txt != null) n.textContent = txt; return n; };\n    const svg = el('svg', {viewBox: '0 0 ' + W + ' ' + H, class: 'grafica', role: 'img', 'aria-label': opc.titulo});\n    const ticks = (a, b) => [0, 0.25, 0.5, 0.75, 1].map(f => a + f * (b - a));\n    /* Mismos decimales en todas las marcas del eje, según su separación. */\n    const decY = Math.max(0, Math.min(8, 1 - Math.floor(Math.log10((y1 - y0) / 4))));\n    for (const t of ticks(y0, y1)) { svg.append(el('line', {x1: m.i, x2: W - m.d, y1: Y(t), y2: Y(t), class: 'g-rejilla'})); svg.append(el('text', {x: m.i - 6, y: Y(t) + 4, class: 'g-eje', 'text-anchor': 'end'}, numero(t, {dec: decY}))); }\n    for (const t of opc.ticksX || ticks(x0, x1)) svg.append(el('text', {x: X(t), y: H - m.b + 16, class: 'g-eje', 'text-anchor': 'middle'}, opc.etiquetaX ? opc.etiquetaX(t) : numero(t, {cifras: 3})));\n    svg.append(el('text', {x: (m.i + W - m.d) / 2, y: H - 4, class: 'g-titulo-eje', 'text-anchor': 'middle'}, opc.ejeX || ''));\n    for (const l of opc.lineas || []) svg.append(el('line', {x1: X(l.x1), x2: X(l.x2), y1: Y(l.y1), y2: Y(l.y2), class: l.clase || 'g-referencia'}));\n    /* Las etiquetas de las referencias, en el margen derecho: nunca sobre los datos. */\n    for (const l of opc.lineas || []) if (l.etiqueta) svg.append(el('text', {x: W - m.d + 6, y: Y(l.y2) + 4, class: 'g-eje', 'text-anchor': 'start'}, l.etiqueta));\n    if (opc.unir) svg.append(el('polyline', {points: opc.puntos.map(p => X(p.x) + ',' + Y(p.y)).join(' '), class: 'g-serie'}));\n    for (const p of opc.puntos) {\n      const g = el('g', {class: 'g-punto' + (p.alerta ? ' g-alerta' : '')});\n      g.append(el('title', {}, p.titulo || numero(p.x) + ', ' + numero(p.y)));\n      g.append(el('circle', {cx: X(p.x), cy: Y(p.y), r: 12, class: 'g-diana'}));\n      g.append(el('circle', {cx: X(p.x), cy: Y(p.y), r: 4.5, class: 'g-marca'}));\n      if (p.alerta) g.append(el('circle', {cx: X(p.x), cy: Y(p.y), r: 8, class: 'g-anillo'}));\n      svg.append(g);\n    }\n    return h('figure', {class: 'figura'}, svg, h('figcaption', null, opc.titulo));\n  }\n\n  /* ---------- la pantalla ---------- */\n  Marco.registra('calculadoras', c => {\n    const cat = activa();\n    c.append(UI.cabecera('CALCULADORAS', 'Calculadoras', 'Cálculos de laboratorio por disciplina. Cada número va con lo que significa.'));\n    c.append(h('div', {class: 'fila-categorias', role: 'group', 'aria-label': 'Disciplina'}, CATEGORIAS.map(([k, t]) =>\n      h('button', {type: 'button', class: 'btn btn-mini ' + (k === cat ? 'btn-pri' : 'btn-sec'), 'aria-pressed': k === cat ? 'true' : 'false', onclick: () => { elige(k); Marco.repinta(); }}, t))));\n    for (const d of registro.filter(x => x.categoria === cat)) {\n      try { d.pinta(c); } catch (e) { console.error(e); c.append(UI.aviso('error', 'No se pudo mostrar «' + d.titulo + '»: ' + e.message)); }\n    }\n  });\n\n  return {CATEGORIAS, registra, abre, simple, filasEditables, numeros, pares, tabla, tarjeta, salidaVacia, pintaResultado, grafica, mem, recuerda, lista: () => registro.slice()};\n})();\n\n/* ================= química ================= */\n(() => {\n  const g = v => numero(v) + ' g', mmol = v => numero(v * 1000) + ' mmol';\n  const R = Calculadoras.registra;\n\n  R({id: 'calc-masa', categoria: 'quimica', titulo: 'Masa molar y composición', pinta: c => Calculadoras.simple(c, 'calc-masa', 'Masa molar y composición', 'Pesos atómicos abreviados de CIAAW/IUPAC 2021.',\n    [{k: 'f', etq: 'Fórmula', tipo: 'texto', v: 'CuSO4·5H2O'}],\n    v => {\n      const r = Formula.lee(v.f);\n      if (r.error) return r;\n      const fr = Formula.fraccionesMasa(v.f);\n      return {filas: [['M', numero(r.masaMolar, {dec: 3}) + ' g/mol']].concat(Object.keys(r.composicion).map(k => [k + ' × ' + numero(r.composicion[k]), numero(fr[k] * 100, {dec: 2}) + ' % en masa'])),\n        explicacion: 'Composición de ' + Formula.bonita(v.f) + (r.aviso ? '. ' + r.aviso : '.')};\n    })});\n\n  R({id: 'calc-balanceo', categoria: 'quimica', titulo: 'Balancear una ecuación', pinta: c => Calculadoras.simple(c, 'calc-balanceo', 'Balancear una ecuación',\n    'Separa las especies con « + » y usa una flecha (->, → o =). Las cargas van con ^: Fe^3+, MnO4^-, e-.',\n    [{k: 'eq', etq: 'Ecuación', tipo: 'texto', v: 'KMnO4 + HCl -> KCl + MnCl2 + Cl2 + H2O'}],\n    v => Quimica.balancea(v.eq))});\n\n  R({id: 'calc-limitante', categoria: 'quimica', titulo: 'Reactivo limitante y rendimiento teórico', pinta: c => {\n    const id = 'calc-limitante', m = Calculadoras.mem(id);\n    const estado = {eq: m.eq || 'Fe2O3 + CO -> Fe + CO2', cant: m.cant || (m.eq ? {} : {Fe2O3: 10, CO: 5})};\n    const salida = Calculadoras.salidaVacia(), cantidades = h('div', {class: 'rejilla-campos'});\n    const recalcula = () => {\n      Calculadoras.recuerda(id, estado);\n      const b = Quimica.balancea(estado.eq);\n      cantidades.replaceChildren();\n      if (b.error) { Calculadoras.pintaResultado(salida, b); return; }\n      b.reactivos.forEach(r => cantidades.append(UI.campo('Masa de ' + r.texto, UI.numero(estado.cant[r.texto], v => { estado.cant[r.texto] = v; calc(); }, {min: 0}), {unidad: 'g'})));\n      calc();\n    };\n    const calc = () => {\n      Calculadoras.recuerda(id, estado);\n      const b = Quimica.balancea(estado.eq);\n      if (b.error) return;\n      const r = Quimica.limitante(estado.eq, b.reactivos.map(x => ({masa: estado.cant[x.texto]})));\n      if (r.error) { Calculadoras.pintaResultado(salida, {error: r.error, explicacion: b.explicacion}); return; }\n      Calculadoras.pintaResultado(salida, {tabla: {titulo: r.balanceo.texto, cabecera: ['Especie', 'mol', 'Sobra (g)'], filas: r.reactivos.map(x => [x.especie, numero(x.moles, {cifras: 4}), x.sobranteMasa != null ? numero(x.sobranteMasa) : '—'])\n        .concat(r.productos.map(p => [p.especie + ' (máximo)', numero(p.moles, {cifras: 4}), p.masa != null ? numero(p.masa) + ' g' : '—']))}, explicacion: r.explicacion});\n    };\n    c.append(Calculadoras.tarjeta(id, 'Reactivo limitante y rendimiento teórico', 'Escribe la ecuación sin balancear y la masa de cada reactivo.',\n      UI.campo('Ecuación', UI.texto(estado.eq, v => { estado.eq = v; recalcula(); }), {ancho: 'completo'}), cantidades, salida));\n    recalcula();\n  }});\n\n  R({id: 'calc-gases', categoria: 'quimica', titulo: 'Gases: ideal y van der Waals', pinta: c => {\n    const gases = DATOS.gases.gases;\n    Calculadoras.simple(c, 'calc-gases', 'Gas ideal', 'Deja vacía la magnitud que quieres calcular. P en bar, V en L, n en mol y T en K.',\n      [{k: 'P', etq: 'Presión', unidad: 'bar', v: 1.01325}, {k: 'V', etq: 'Volumen', unidad: 'L', v: null}, {k: 'n', etq: 'Cantidad', unidad: 'mol', v: 1}, {k: 'T', etq: 'Temperatura', unidad: 'K', v: 273.15}],\n      v => { const r = Quimica.gasIdeal(v); return r.error ? r : {filas: [[r.incognita, numero(r.valor, {cifras: 5})]], explicacion: r.explicacion}; });\n    Calculadoras.simple(c, 'calc-vdw', 'Gas real (van der Waals)', DATOS.gases.fuente + ' Da V para calcular P, o P (con V vacío) para calcular V.',\n      [{k: 'gas', etq: 'Gas', tipo: 'opcion', v: 'CO2', opciones: [['', 'Otro (escribe a y b)']].concat(Object.entries(gases).map(([k, x]) => [k, x.nombre + ' (' + k + ')']))},\n       {k: 'a', etq: 'a', unidad: 'L²·bar/mol²', v: null, ph: 'del gas elegido'}, {k: 'b', etq: 'b', unidad: 'L/mol', v: null, ph: 'del gas elegido'},\n       {k: 'n', etq: 'Cantidad', unidad: 'mol', v: 1}, {k: 'T', etq: 'Temperatura', unidad: 'K', v: 300}, {k: 'V', etq: 'Volumen', unidad: 'L', v: 1}, {k: 'P', etq: 'Presión', unidad: 'bar', v: null}],\n      v => { const x = gases[v.gas]; return Quimica.vanDerWaals(Object.assign({}, v, {a: v.a != null && v.a !== '' ? v.a : x && x.a, b: v.b != null && v.b !== '' ? v.b : x && x.b})); });\n  }});\n\n  /* ================= disoluciones y medios ================= */\n  R({id: 'calc-disolucion', categoria: 'disoluciones', titulo: 'Disolución a partir de un sólido', pinta: c => Calculadoras.simple(c, 'calc-disolucion', 'Disolución a partir de un sólido', 'm = C · V · M / pureza.',\n    [{k: 'f', etq: 'Fórmula del soluto', tipo: 'texto', v: 'NaCl'}, {k: 'p', etq: 'Pureza', unidad: '%', v: null, ayuda: 'Vacío = 100 %.'}, {k: 'C', etq: 'Concentración', unidad: 'mol/L', v: 0.15}, {k: 'V', etq: 'Volumen', unidad: 'mL', v: 500}],\n    v => { const r = Calculo.disolucion({formula: v.f, pureza: v.p, concentracion: v.C, volumen: v.V}); return r.error ? r : Object.assign(r, {filas: [['Masa a pesar', g(r.masa)], ['Soluto', mmol(r.moles)], ['M', numero(r.masaMolar, {dec: 2}) + ' g/mol']]}); })});\n\n  R({id: 'calc-dilucion', categoria: 'disoluciones', titulo: 'Dilución', pinta: c => Calculadoras.simple(c, 'calc-dilucion', 'Dilución', 'C₁V₁ = C₂V₂, en las mismas unidades de concentración.',\n    [{k: 'c1', etq: 'Concentración de partida', v: 1}, {k: 'c2', etq: 'Concentración final', v: 0.1}, {k: 'v2', etq: 'Volumen final', unidad: 'mL', v: 100}],\n    v => { const r = Calculo.dilucion(v); return r.error ? r : Object.assign(r, {filas: [['Volumen a tomar', numero(r.v1) + ' mL'], ['Disolvente', numero(r.disolvente) + ' mL']]}); })});\n\n  R({id: 'calc-concentrado', categoria: 'disoluciones', titulo: 'Ácido o base concentrado', pinta: c => Calculadoras.simple(c, 'calc-concentrado', 'Ácido o base concentrado', 'Qué volumen tomar de un reactivo comercial en % m/m con su densidad (ambos en la etiqueta o la ficha técnica).',\n    [{k: 'f', etq: 'Fórmula', tipo: 'texto', v: 'HCl'}, {k: 'w', etq: 'Porcentaje en masa', unidad: '% m/m', v: null}, {k: 'rho', etq: 'Densidad', unidad: 'g/mL', v: null}, {k: 'n', etq: 'Cantidad que necesitas', unidad: 'mmol', v: 100}],\n    v => { const r = Calculo.volumenConcentrado({formula: v.f, porcentaje: v.w, densidad: v.rho, moles: v.n == null ? null : v.n / 1000}); return r.error ? r : Object.assign(r, {filas: [['Volumen a tomar', numero(r.volumen) + ' mL'], ['Concentración del reactivo', numero(r.molaridad) + ' mol/L']]}); })});\n\n  R({id: 'calc-concentraciones', categoria: 'disoluciones', titulo: 'Conversor de concentraciones', pinta: c => Calculadoras.simple(c, 'calc-concentraciones', 'Conversor de concentraciones',\n    'Molaridad, molalidad, % m/m, % m/v, ppm, mg/L, normalidad y fracción molar, con la densidad de la disolución.',\n    [{k: 'f', etq: 'Fórmula del soluto (o su M abajo)', tipo: 'texto', v: 'H2SO4'}, {k: 'M', etq: 'Masa molar', unidad: 'g/mol', v: null, ph: 'de la fórmula'},\n     {k: 'rho', etq: 'Densidad de la disolución', unidad: 'g/mL', v: null}, {k: 'z', etq: 'Equivalentes por mol', v: 1, ayuda: 'Para la normalidad: H⁺ o e⁻ que intercambia cada mol.'},\n     {k: 'desde', etq: 'Dato que tienes', tipo: 'opcion', v: 'pmm', opciones: Object.entries(Unidades.ENTRADAS)}, {k: 'valor', etq: 'Valor', v: null}],\n    v => {\n      const M = v.M > 0 ? v.M : Formula.masaMolar(v.f);\n      const r = Unidades.concentraciones({masaMolar: M, densidad: v.rho, equivalentes: v.z, desde: v.desde, valor: v.valor});\n      if (r.error) return r;\n      const E = Unidades.ENTRADAS;\n      return Object.assign(r, {filas: [[E.molaridad, numero(r.molaridad, {cifras: 5})], [E.molalidad, numero(r.molalidad, {cifras: 5})], [E.pmm, numero(r.pmm, {cifras: 5})], [E.pmv, numero(r.pmv, {cifras: 5})],\n        [E.ppm, numero(r.ppm, {cifras: 5})], [E.mgL, numero(r.mgL, {cifras: 5})], [E.normalidad, numero(r.normalidad, {cifras: 5})], [E.fraccionMolar, numero(r.fraccionMolar, {cifras: 4})]]});\n    })});\n\n  R({id: 'calc-tampon', categoria: 'disoluciones', titulo: 'Tampones', pinta: c => {\n    const T = DATOS.tampones.tampones;\n    Calculadoras.simple(c, 'calc-tampon', 'Tampones (Henderson–Hasselbalch con temperatura y fuerza iónica)', DATOS.tampones.fuente,\n      [{k: 'tampon', etq: 'Tampón', tipo: 'opcion', v: 'tris', opciones: Object.entries(T).map(([k, x]) => [k, x.nombre + ' (pKa ' + numero(x.pKa, {dec: 2}) + ')'])},\n       {k: 'pH', etq: 'pH deseado', v: 7.4}, {k: 'C', etq: 'Concentración total', unidad: 'mol/L', v: 0.05}, {k: 'V', etq: 'Volumen', unidad: 'mL', v: 1000},\n       {k: 'T', etq: 'Temperatura de uso', unidad: '°C', v: 25}, {k: 'I', etq: 'Fuerza iónica', unidad: 'mol/L', v: null, ayuda: 'Vacía: se estima del propio tampón. Con sales añadidas, escríbela.'}],\n      v => {\n        const r = Quimica.tampon({tampon: v.tampon, pH: v.pH, concentracion: v.C, volumen: v.V, temperatura: v.T, fuerzaIonica: v.I});\n        return r.error ? r : Object.assign(r, {filas: [['pKa aparente', numero(r.pKaAparente, {dec: 3})], ['Forma ácida', mmol(r.molesAcido)], ['Forma básica', mmol(r.molesBase)],\n          ['Base fuerte (desde la forma ácida)', mmol(r.conBaseFuerte)], ['Ácido fuerte (desde la forma básica)', mmol(r.conAcidoFuerte)], ['Capacidad β', numero(r.capacidad, {cifras: 3}) + ' mol/(L·pH)']]});\n      });\n  }});\n})();\n",
  "src/js/45-p-calc-mas.js": "/* ==== 45-p-calc-mas.js ==== */\n'use strict';\n/* ================= más calculadoras =================\n   Medios y disoluciones madre, biología, medida y estadística, física y\n   materiales. Mismo patrón que 44-p-calculadoras.js: el cálculo vive en los\n   módulos 01–15; aquí solo hay campos, resultados y explicación. */\n\n(() => {\n  const R = Calculadoras.registra;\n  const g = v => numero(v) + ' g', mmol = v => numero(v * 1000) + ' mmol';\n\n  /* ---------- receta de medio o disolución madre ---------- */\n  R({id: 'calc-receta', categoria: 'disoluciones', titulo: 'Recetas de medios y disoluciones madre', pinta: c => {\n    const id = 'calc-receta', m = Calculadoras.mem(id);\n    const estado = {V: m.V != null ? m.V : 500, filas: m.filas || [{nombre: 'NaCl', formula: 'NaCl', concentracion: 137, unidad: 'mM'}, {nombre: 'KCl', formula: 'KCl', concentracion: 2.7, unidad: 'mM'}]};\n    const salida = Calculadoras.salidaVacia();\n    const calc = () => {\n      Calculadoras.recuerda(id, estado);\n      const r = Biologia.receta({volumen: estado.V, componentes: estado.filas});\n      if (r.error) { Calculadoras.pintaResultado(salida, r); return; }\n      Calculadoras.pintaResultado(salida, {tabla: {cabecera: ['Componente', 'Pesar', 'Tomar del stock'], filas: r.componentes.map(x => [x.nombre || '—', x.error ? x.error : x.masa != null ? g(x.masa) : '', x.volumen != null ? numero(x.volumen) + ' mL' : ''])}, explicacion: r.explicacion});\n    };\n    const ed = Calculadoras.filasEditables(estado.filas, [{k: 'nombre', etq: 'Componente'}, {k: 'formula', etq: 'Fórmula'}, {k: 'masaMolar', etq: 'M (g/mol)', tipo: 'numero'},\n      {k: 'concentracion', etq: 'Conc. final', tipo: 'numero'}, {k: 'unidad', etq: 'Unidad', tipo: 'opcion', opciones: [['', '—'], ['M', 'M'], ['mM', 'mM'], ['µM', 'µM'], ['g/L', 'g/L'], ['% m/v', '% m/v'], ['x', '× (veces)']]},\n      {k: 'stock', etq: 'Stock (misma unidad)', tipo: 'numero'}], filas => { estado.filas = filas; calc(); });\n    c.append(Calculadoras.tarjeta(id, 'Recetas de medios y disoluciones madre', 'Por componente: concentración final y fórmula (se pesa) o un stock en la misma unidad (se toma un volumen). Valores de ejemplo: los de un PBS.',\n      UI.campo('Volumen final', UI.numero(estado.V, v => { estado.V = v; calc(); }, {min: 0}), {unidad: 'mL'}), ed.nodo, salida));\n    calc();\n  }});\n\n  /* ================= biología ================= */\n  R({id: 'calc-seriadas', categoria: 'biologia', titulo: 'Diluciones seriadas', pinta: c => Calculadoras.simple(c, 'calc-seriadas', 'Diluciones seriadas', 'Todos los tubos quedan con el mismo volumen final.',\n    [{k: 'c', etq: 'Concentración inicial', v: 1000}, {k: 'f', etq: 'Factor por paso', v: 10}, {k: 'n', etq: 'Pasos', v: 6}, {k: 'v', etq: 'Volumen final por tubo', unidad: 'µL', v: 900}],\n    v => { const r = Biologia.dilucionesSeriadas({concentracion: v.c, factor: v.f, pasos: v.n, volumen: v.v, unidad: 'µL'}); return r.error ? r : Object.assign(r, {tabla: {cabecera: ['Tubo', 'Concentración', 'Diluyente (µL)', 'Transferir (µL)'], filas: r.tubos.map(t => [String(t.tubo), numero(t.concentracion, {cifras: 4}), numero(t.diluyente), numero(t.transferencia)])}}); })});\n\n  R({id: 'calc-placa', categoria: 'biologia', titulo: 'Mapa de placa', pinta: c => Calculadoras.simple(c, 'calc-placa', 'Mapa de placa', 'Blancos (B), patrones (S) y muestras (M) con sus réplicas, en orden por filas. Se imprime con la sección.',\n    [{k: 'formato', etq: 'Placa', tipo: 'opcion', v: '96', opciones: [['24', '24 pozos'], ['48', '48 pozos'], ['96', '96 pozos'], ['384', '384 pozos']]},\n     {k: 'blancos', etq: 'Blancos', v: 3}, {k: 'patrones', etq: 'Patrones', v: 7}, {k: 'muestras', etq: 'Muestras', v: 20}, {k: 'replicas', etq: 'Réplicas', v: 3}],\n    v => {\n      const r = Biologia.placa(v);\n      if (r.error) return r;\n      const grid = h('div', {class: 'tabla-scroll'}, h('table', {class: 'placa'}, h('caption', null, 'Mapa de la placa de ' + (r.filas * r.columnas) + ' pozos'),\n        h('thead', null, h('tr', null, h('th', null, ''), [...Array(r.columnas)].map((_, i) => h('th', {scope: 'col'}, String(i + 1))))),\n        h('tbody', null, r.pozos.map((fila, i) => h('tr', null, h('th', {scope: 'row'}, String.fromCharCode(65 + i)), fila.map(p => h('td', {class: 'pozo pozo-' + p.tipo, title: p.pozo + (p.etiqueta ? ': ' + p.etiqueta : ' vacío')}, p.etiqueta)))))));\n      return {nodo: grid, explicacion: r.explicacion};\n    })});\n\n  R({id: 'calc-celulas', categoria: 'biologia', titulo: 'Conteo celular (cámara de Neubauer)', pinta: c => Calculadoras.simple(c, 'calc-celulas', 'Conteo celular (cámara de Neubauer)', 'Células vivas por cuadro grande (1 mm²), separadas por espacios.',\n    [{k: 'conteos', etq: 'Vivas por cuadro', tipo: 'texto', v: '48 52 45 55'}, {k: 'muertas', etq: 'Muertas (total en esos cuadros)', v: null}, {k: 'dil', etq: 'Dilución (p. ej. 2 con azul tripano 1:1)', v: 2},\n     {k: 'deseadas', etq: 'Células que quieres sembrar', v: null}, {k: 'vf', etq: 'Volumen final', unidad: 'mL', v: null}],\n    v => { const r = Biologia.conteoCelular({conteos: Calculadoras.numeros(v.conteos), muertas: v.muertas, dilucion: v.dil, celulasDeseadas: v.deseadas, volumenFinal: v.vf});\n      return r.error ? r : Object.assign(r, {filas: [['Células/mL', numero(r.concentracion, {cifras: 3})]].concat(r.viabilidad != null ? [['Viabilidad', numero(r.viabilidad, {dec: 1}) + ' %']] : [])}); })});\n\n  R({id: 'calc-pcr', categoria: 'biologia', titulo: 'Mezcla maestra de PCR', pinta: c => {\n    const id = 'calc-pcr', m = Calculadoras.mem(id);\n    const estado = {vr: m.vr != null ? m.vr : 20, n: m.n != null ? m.n : 8, ex: m.ex != null ? m.ex : 10, molde: m.molde != null ? m.molde : 1,\n      filas: m.filas || [{nombre: 'Tampón', stock: 10, final: 1}, {nombre: 'dNTP (mM)', stock: 10, final: 0.2}, {nombre: 'Cebador directo (µM)', stock: 10, final: 0.5}, {nombre: 'Cebador inverso (µM)', stock: 10, final: 0.5}, {nombre: 'Polimerasa', volumen: 0.2}]};\n    const salida = Calculadoras.salidaVacia();\n    const calc = () => {\n      Calculadoras.recuerda(id, estado);\n      const r = Biologia.mezclaPCR({volumenReaccion: estado.vr, reacciones: estado.n, exceso: estado.ex, volumenMolde: estado.molde, componentes: estado.filas});\n      Calculadoras.pintaResultado(salida, r.error ? r : {tabla: {cabecera: ['Componente', 'Por reacción (µL)', 'Mezcla (µL)'], filas: r.componentes.map(x => [x.nombre || '—', numero(x.porReaccion, {cifras: 3}), numero(x.total, {cifras: 3})])}, explicacion: r.explicacion});\n    };\n    const campo = (etq, k, u) => UI.campo(etq, UI.numero(estado[k], v => { estado[k] = v; calc(); }, {min: 0}), {unidad: u});\n    const ed = Calculadoras.filasEditables(estado.filas, [{k: 'nombre', etq: 'Componente'}, {k: 'stock', etq: 'Stock', tipo: 'numero'}, {k: 'final', etq: 'Final', tipo: 'numero'}, {k: 'volumen', etq: 'o µL fijos', tipo: 'numero'}], filas => { estado.filas = filas; calc(); });\n    c.append(Calculadoras.tarjeta(id, 'Mezcla maestra de PCR', 'Stock y concentración final en la misma unidad, o un volumen fijo por reacción. Los componentes de partida son un ejemplo: pon los de tu kit.',\n      h('div', {class: 'rejilla-campos'}, campo('Volumen por reacción', 'vr', 'µL'), campo('Reacciones', 'n'), campo('Exceso', 'ex', '%'), campo('Molde por tubo', 'molde', 'µL')), ed.nodo, salida));\n    calc();\n  }});\n\n  R({id: 'calc-nucleicos', categoria: 'biologia', titulo: 'Ácidos nucleicos', pinta: c => Calculadoras.simple(c, 'calc-nucleicos', 'Ácidos nucleicos por absorbancia', 'Paso óptico de 1 cm. Factores: dsDNA 50, ssDNA 33, RNA 40 µg/mL por unidad de A260; masas molares según NEB.',\n    [{k: 'tipo', etq: 'Tipo', tipo: 'opcion', v: 'dsDNA', opciones: [['dsDNA', 'ADN de doble cadena'], ['ssDNA', 'ADN de cadena sencilla'], ['RNA', 'ARN']]},\n     {k: 'a260', etq: 'A260', v: 0.75}, {k: 'a280', etq: 'A280', v: 0.4}, {k: 'a230', etq: 'A230', v: 0.36}, {k: 'dil', etq: 'Dilución', v: 1},\n     {k: 'long', etq: 'Longitud (pb o nt)', v: null}, {k: 'masa', etq: 'Masa', unidad: 'ng', v: null}],\n    v => Biologia.acidosNucleicos({tipo: v.tipo, a260: v.a260, a280: v.a280, a230: v.a230, dilucion: v.dil, longitud: v.long, masa: v.masa}))});\n\n  /* ================= medida y estadística ================= */\n  R({id: 'calc-replicas', categoria: 'medida', titulo: 'Réplicas: media, dispersión y valor atípico', pinta: c => Calculadoras.simple(c, 'calc-replicas', 'Réplicas: media, dispersión y valor atípico',\n    'Escribe las réplicas separadas por espacios o líneas (la coma es decimal).',\n    [{k: 'x', etq: 'Réplicas', tipo: 'area', filas: 3, v: '10,12 10,08 10,15 10,11 10,31'}, {k: 'conf', etq: 'Confianza', tipo: 'opcion', v: '0.95', opciones: [['0.9', '90 %'], ['0.95', '95 %'], ['0.99', '99 %']]}],\n    v => { const r = Estadistica.replicas(Calculadoras.numeros(v.x), +v.conf); return r.error ? r : Object.assign(r, {filas: [['n', String(r.n)], ['Media', numero(r.media, {cifras: 6})], ['Desviación estándar', numero(r.desviacion, {cifras: 3})],\n      ['DER', numero(r.drs, {dec: 2}) + ' %'], ['Intervalo de confianza', numero(r.ic[0], {cifras: 6}) + ' – ' + numero(r.ic[1], {cifras: 6})], ['Mediana', numero(r.mediana, {cifras: 6})]]}); })});\n\n  R({id: 'calc-calibracion', categoria: 'medida', titulo: 'Curva de calibración', pinta: c => Calculadoras.simple(c, 'calc-calibracion', 'Curva de calibración (mínimos cuadrados)',\n    'Un patrón por línea: concentración y señal separadas por espacio o «;». LOD = 3,3·s(y/x)/m y LOQ = 10·s(y/x)/m (ICH Q2).',\n    [{k: 'datos', etq: 'Patrones (x y)', tipo: 'area', filas: 6, v: '0 0,002\\n0,25 0,198\\n0,5 0,401\\n0,75 0,597\\n1 0,806'}, {k: 'y0', etq: 'Señal del desconocido', v: 0.45}, {k: 'k', etq: 'Réplicas de esa señal', v: 3}],\n    v => {\n      const pts = Calculadoras.pares(v.datos);\n      const r = Estadistica.calibracion(pts.map(p => p[0]), pts.map(p => p[1]));\n      if (r.error) return r;\n      const out = {filas: [['Pendiente', numero(r.pendiente, {cifras: 5}) + ' ± ' + numero(r.sPendiente, {cifras: 2})], ['Ordenada', numero(r.ordenada, {cifras: 4}) + ' ± ' + numero(r.sOrdenada, {cifras: 2})],\n        ['R²', numero(r.r2, {dec: 5})], ['s(y/x)', numero(r.syx, {cifras: 3})], ['LOD', numero(r.lod, {cifras: 3})], ['LOQ', numero(r.loq, {cifras: 3})]], explicacion: r.explicacion};\n      const xs = r.x, x0 = Math.min(...xs), x1 = Math.max(...xs);\n      out.nodo = Calculadoras.grafica({titulo: 'Patrones y recta ajustada', ejeX: 'Concentración', puntos: r.x.map((x, i) => ({x, y: r.y[i], titulo: 'x = ' + numero(x) + '; y = ' + numero(r.y[i]) + '; residuo ' + numero(r.residuos[i], {cifras: 2})})),\n        lineas: [{x1: x0, y1: r.prediceRespuesta(x0), x2: x1, y2: r.prediceRespuesta(x1), clase: 'g-ajuste'}]});\n      if (v.y0 != null && v.y0 !== '') { const p = r.predice(+v.y0, +v.k); if(p.error)out.explicacion+=' No cuantificable: '+p.error;else {out.filas.push(['Desconocido',numero(p.x0,{cifras:4})+' · 95 % ['+numero(p.ic[0])+'; '+numero(p.ic[1])+']']);out.explicacion+=' '+p.explicacion;} }\n      return out;\n    })});\n\n  R({id: 'calc-gum', categoria: 'medida', titulo: 'Propagación de incertidumbre (GUM)', pinta: c => {\n    const id = 'calc-gum', m = Calculadoras.mem(id);\n    /* Ejemplo de formato (picnómetro de 25 mL, pesadas en g, agua a 20 °C): se\n       sustituye por tus valores; la app no los guarda en ningún protocolo. */\n    const EJEMPLO = {m0: {valor: 25.1234, u: 0.0001}, m1: {valor: 50.0921, u: 0.0001}, m2: {valor: 45.6612, u: 0.0001}, rho: {valor: 0.99820, u: 0.00002}};\n    const estado = {correlaciones: m.correlaciones || '', f: m.f || '(m2 - m0)/(m1 - m0) * rho', vars:Object.assign(Object.create(null),m.vars || (m.f ? {} : deepCopy(EJEMPLO)))};\n    const salida = Calculadoras.salidaVacia(), tablaVars = h('div');\n    const calc = () => {\n      Calculadoras.recuerda(id, estado);\n      const pares = estado.correlaciones.trim() ? estado.correlaciones.trim().split(/\\n/).map(linea => { const [a, b, rho, extra] = linea.trim().split(/\\s+/); return {a, b, rho: extra || rho == null ? NaN : Number(rho.replace(',', '.'))}; }) : [];\n      const r = Estadistica.propaga(estado.f, estado.vars, pares);\n      if (r.error) { Calculadoras.pintaResultado(salida, r); return; }\n      Calculadoras.pintaResultado(salida, {filas: [['Resultado', r.redondeo.texto], ['u combinada', numero(r.uc, {cifras: 3})], ['k', numero(r.k, {dec: 3})]],\n        tabla: {titulo: 'Presupuesto de incertidumbre', cabecera: ['Variable', 'Valor', 'u', 'Coef. de sensibilidad', 'Aporte a u²'], filas: r.aportes.map(a => [a.variable, numero(a.valor, {cifras: 6}), numero(a.u, {cifras: 3}), numero(a.coeficiente, {cifras: 4}), numero(a.porcentaje, {dec: 1}) + ' %'])},\n        explicacion: r.explicacion});\n    };\n    const pintaVars = () => {\n      const e = Expresion.compila(estado.f);\n      tablaVars.replaceChildren();\n      if (e.error) { Calculadoras.pintaResultado(salida, {error: 'Fórmula: ' + e.error}); return; }\n      tablaVars.append(h('div', {class: 'rejilla-campos'}, e.variables.map(n => {\n        const x = estado.vars[n] = estado.vars[n] || {};\n        return h('fieldset', {class: 'grupo-var'}, h('legend', null, n),\n          UI.campo('Valor', UI.numero(x.valor, v => { x.valor = v; calc(); })), UI.campo('Incertidumbre estándar u', UI.numero(x.u, v => { x.u = v; calc(); }, {min: 0})),\n          UI.campo('Grados de libertad', UI.numero(x.gl, v => { x.gl = v; calc(); }, {min: 0}), {ayuda: 'Opcional (tipo A: n − 1).'}));\n      })));\n      calc();\n    };\n    c.append(Calculadoras.tarjeta(id, 'Propagación de incertidumbre (GUM)', 'Escribe el modelo de medida con las variables que quieras (+ − * / ^, sqrt, ln, log, exp; separa argumentos con «;»). Correlaciones opcionales entre pares de variables. Ejemplo: densidad por picnometría.',\n      UI.campo('Modelo y =', UI.texto(estado.f, v => { estado.f = v; pintaVars(); }), {ancho: 'completo'}), tablaVars, UI.campo('Correlaciones (una pareja por línea: variable variable coeficiente)', UI.texto(estado.correlaciones, v => { estado.correlaciones = v; calc(); }, {area: true, filas: 3, placeholder: 'm0 m1 0,5'}), {ayuda: 'Coeficientes entre −1 y 1. Los pares omitidos se consideran no correlacionados.'}), salida));\n    pintaVars();\n  }});\n\n  R({id: 'calc-cifras', categoria: 'medida', titulo: 'Cifras significativas y redondeo', pinta: c => Calculadoras.simple(c, 'calc-cifras', 'Cifras significativas y redondeo',\n    'Cuenta las cifras de un número tal como lo escribiste y redondea un resultado con su incertidumbre (dos cifras en u, GUM 7.2.6).',\n    [{k: 'num', etq: 'Número escrito', tipo: 'texto', v: '0,004500'}, {k: 'valor', etq: 'Resultado', v: 12.34567}, {k: 'u', etq: 'Incertidumbre', v: 0.02345}, {k: 'n', etq: 'Redondear a cifras', v: 3}],\n    v => {\n      const q = Estadistica.cuentaCifras(v.num), filas = [];\n      if (!q.error) filas.push(['Cifras de «' + v.num + '»', String(q.cifras) + (q.ambiguo ? ' (ambiguo)' : '')]);\n      if (v.valor != null && v.u > 0) filas.push(['Resultado con u', Estadistica.redondeaConIncertidumbre(+v.valor, +v.u).texto]);\n      if (v.valor != null && v.n > 0) filas.push([numero(+v.n) + ' cifras', Estadistica.aCifras(+v.valor, +v.n)]);\n      return {filas, explicacion: q.error ? q.error : (q.explicacion || 'Los ceros a la izquierda no cuentan; los de la derecha tras la coma, sí.')};\n    })});\n\n  R({id: 'calc-unidades', categoria: 'medida', titulo: 'Conversor de unidades', pinta: c => Calculadoras.simple(c, 'calc-unidades', 'Conversor de unidades',\n    'Con prefijos SI y unidades compuestas: kJ/mol, g/cm^3, µmol/(L·min), psi, Torr, °C, eV… Solo convierte magnitudes iguales.',\n    [{k: 'v', etq: 'Valor', v: 1}, {k: 'de', etq: 'De', tipo: 'texto', v: 'kcal/mol'}, {k: 'a', etq: 'A', tipo: 'texto', v: 'kJ/mol'}],\n    v => { const r = Unidades.convierte(v.v, v.de, v.a); return r.error ? r : Object.assign(r, {filas: [['Resultado', numero(r.valor, {cifras: 8}) + ' ' + v.a]]}); })});\n\n  /* ================= física y radiactividad ================= */\n  R({id: 'calc-centrifuga', categoria: 'fisica', titulo: 'Centrífuga: rpm y × g', pinta: c => Calculadoras.simple(c, 'calc-centrifuga', 'Centrífuga: rpm y × g', 'RCF = 1,118·10⁻⁵ · r · rpm² (r en cm, del eje al fondo del tubo). Da las rpm o la fuerza.',\n    [{k: 'r', etq: 'Radio del rotor', unidad: 'cm', v: 8.5}, {k: 'rpm', etq: 'Velocidad', unidad: 'rpm', v: 13000}, {k: 'g', etq: 'Fuerza', unidad: '× g', v: null}],\n    v => { const r = Quimica.centrifuga({radio: v.r, rpm: v.rpm, rcf: v.rpm > 0 ? null : v.g}); return r.error ? r : Object.assign(r, {filas: [[r.rcf != null ? 'Fuerza' : 'Velocidad', r.rcf != null ? numero(r.rcf, {cifras: 4}) + ' × g' : numero(r.rpm, {cifras: 4}) + ' rpm']]}); })});\n\n  R({id: 'calc-radiactividad', categoria: 'fisica', titulo: 'Decaimiento radiactivo', pinta: c => {\n    const I = DATOS.isotopos.isotopos;\n    Calculadoras.simple(c, 'calc-radiactividad', 'Decaimiento radiactivo', DATOS.isotopos.fuente,\n      [{k: 'iso', etq: 'Isótopo', tipo: 'opcion', v: 'P-32', opciones: [['', 'Otro (escribe la semivida)']].concat(Object.entries(I).map(([k, x]) => [k, k + ' · ' + numero(x.t) + ' ' + x.u]))},\n       {k: 'th', etq: 'Semivida', v: null, ph: 'del isótopo elegido'}, {k: 'uth', etq: 'Unidad de la semivida', tipo: 'opcion', v: '', opciones: [['', 'la del isótopo'], ['s', 's'], ['min', 'min'], ['h', 'h'], ['d', 'días'], ['año', 'años']]},\n       {k: 'A0', etq: 'Actividad inicial', v: 1, ayuda: 'En la unidad que uses (MBq, mCi…).'}, {k: 't', etq: 'Tiempo transcurrido', v: 7}, {k: 'ut', etq: 'Unidad del tiempo', tipo: 'opcion', v: 'd', opciones: [['s', 's'], ['min', 'min'], ['h', 'h'], ['d', 'días'], ['año', 'años']]}],\n      v => { const x = I[v.iso]; return Quimica.decaimiento({actividad: v.A0, semivida: v.th != null && v.th !== '' ? v.th : x && x.t, unidadSemivida: v.uth || (x && x.u) || 'd', tiempo: v.t, unidadTiempo: v.ut}); });\n    Calculadoras.simple(c, 'calc-atenuacion', 'Atenuación por blindaje', 'Con la capa hemirreductora (HVL) que da tu fuente de datos para esa energía y ese material; la app no supone ninguna.',\n      [{k: 'hvl', etq: 'Capa hemirreductora', unidad: 'cm', v: null}, {k: 'x', etq: 'Espesor', unidad: 'cm', v: null}],\n      v => Quimica.atenuacion({hvl: v.hvl, espesor: v.x}));\n  }});\n\n  /* ================= materiales ================= */\n  R({id: 'calc-hdl', categoria: 'materiales', titulo: 'Coprecipitación de un HDL M²⁺/M³⁺', pinta: c => Calculadoras.simple(c, 'calc-hdl', 'Coprecipitación de un hidróxido doble laminar M²⁺/M³⁺',\n    'Sales, base y fuente del anión para [M²⁺₁₋ₓM³⁺ₓ(OH)₂](Aⁿ⁻)ₓ/ₙ·mH₂O con x = 1/(1 + R). El OH⁻ es el estequiométrico: a pH constante gastarás lo que pida el pH.',\n    [{k: 'sal2', etq: 'Sal del M²⁺', tipo: 'texto', v: 'Mg(NO3)2·6H2O'}, {k: 'p2', etq: 'Pureza de la sal M²⁺', unidad: '%', v: null},\n     {k: 'sal3', etq: 'Sal del M³⁺', tipo: 'texto', v: 'Al(NO3)3·9H2O'}, {k: 'p3', etq: 'Pureza de la sal M³⁺', unidad: '%', v: null},\n     {k: 'R', etq: 'Relación M²⁺/M³⁺ (R)', v: 2}, {k: 'C', etq: 'Concentración total de metales', unidad: 'mol/L', v: 1}, {k: 'V', etq: 'Volumen de la disolución de sales', unidad: 'mL', v: 50},\n     {k: 'anion', etq: 'Anión interlaminar', tipo: 'opcion', v: 'CO3', opciones: [['CO3', 'Carbonato (CO₃²⁻)'], ['NO3', 'Nitrato (NO₃⁻)'], ['Cl', 'Cloruro (Cl⁻)']]},\n     {k: 'm', etq: 'Agua interlaminar m', v: null, ayuda: 'De tu TGA; vacío = sin agua.'},\n     {k: 'base', etq: 'Base', tipo: 'texto', v: 'NaOH'}, {k: 'pb', etq: 'Pureza de la base', unidad: '%', v: null},\n     {k: 'fuente', etq: 'Fuente del anión', tipo: 'texto', v: 'Na2CO3', ayuda: 'Vacío si el anión viene de las sales.'}, {k: 'pf', etq: 'Pureza de la fuente', unidad: '%', v: null},\n     {k: 'exceso', etq: 'Exceso de la fuente del anión', unidad: '×', v: 1}],\n    v => {\n      const r = Calculo.coprecipitacionHDL({sal2: {formula: v.sal2, pureza: v.p2}, sal3: {formula: v.sal3, pureza: v.p3}, R: v.R, concentracion: v.C, volumen: v.V,\n        anion: v.anion, agua: v.m, base: v.base ? {formula: v.base, pureza: v.pb} : null, fuenteAnion: v.fuente ? {formula: v.fuente, pureza: v.pf, exceso: v.exceso} : null});\n      if (r.error) return r;\n      const filas = [['x (fracción de M³⁺)', numero(r.x, {dec: 4})],\n        [Formula.bonita(r.sal2.formula), g(r.sal2.masa) + ' (' + mmol(r.sal2.moles) + ' de ' + r.sal2.metal + ')'],\n        [Formula.bonita(r.sal3.formula), g(r.sal3.masa) + ' (' + mmol(r.sal3.moles) + ' de ' + r.sal3.metal + ')'], ['OH⁻ estequiométrico', mmol(r.nOH)]];\n      if (r.base) filas.push([r.base.error ? 'Base' : Formula.bonita(r.base.formula) + ' (mínimo)', r.base.error || g(r.base.masa)]);\n      filas.push([r.anion + ' necesario', mmol(r.nAnion)]);\n      if (r.fuenteAnion) filas.push([r.fuenteAnion.error ? 'Fuente del anión' : Formula.bonita(r.fuenteAnion.formula) + (r.fuenteAnion.exceso !== 1 ? ' (×' + numero(r.fuenteAnion.exceso) + ')' : ''), r.fuenteAnion.error || g(r.fuenteAnion.masa)]);\n      filas.push(['Producto', Formula.bonita(r.producto) + ' · ' + numero(r.masaMolarProducto, {dec: 2}) + ' g/mol'], ['Rendimiento teórico', g(r.rendimientoTeorico)]);\n      return Object.assign(r, {filas});\n    },\n    (r, v) => UI.boton('Añadir al protocolo abierto', () => Acciones.aplicaHDL(r, v), {titulo: 'Añade las sales, la base y la fuente del anión como reactivos (en mmol) y fija el rendimiento teórico'}))});\n})();\n",
  "src/js/46-p-calidad.js": "/* ==== 46-p-calidad.js ==== */\n'use strict';\n/* ================= calidad, versiones, lista previa y laboratorio ================= */\n\n/* ---------- calidad: comparación entre lotes y carta de control ---------- */\nMarco.registra('calidad', (c, p) => {\n  c.append(UI.cabecera('CALIDAD', 'Comparar lotes', 'Qué cambió de un lote a otro y si el resultado se mantiene dentro de control.'));\n  if (!p.lotes.length) {\n    c.append(UI.vacio('Todavía no hay lotes', 'Registra lotes (o impórtalos desde un CSV de DoE o de una hoja) para compararlos.',\n      UI.boton('Registrar un lote', () => Acciones.inserta('lote'), {tipo: 'pri'}), UI.boton('Importar lotes desde CSV…', () => Importar.lotesCSV())));\n    return;\n  }\n  const grupos = new Map();\n  for (const lote of p.lotes) {\n    const clave = Protocolo.claveRevision(Lotes.protocolo(p, lote));\n    if (!grupos.has(clave)) grupos.set(clave, []);\n    grupos.get(clave).push(lote);\n  }\n  if (grupos.size > 1) {\n    const lista = [...grupos.values()], preferencia = Almacen.prefs().calidadRevision || '';\n    const elegido = lista.find(g => g[0].id === preferencia);\n    c.append(UI.campo('Referencia que comparar', UI.selector(elegido ? preferencia : '', [['', 'Todas (la carta no mezcla referencias)']].concat(lista.map(g =>\n      [g[0].id, (g[0].revision ? 'Revisión del ' + g[0].revision.fecha : 'Referencia actual, historia desconocida') + ' · ' + g.length + ' lotes'])), valor => {\n        const pr = Almacen.prefs(); pr.calidadRevision = valor; Almacen.guardaPrefs(pr); Marco.repinta();\n      })));\n    if (elegido) p = Object.assign({}, Lotes.protocolo(p, elegido[0]), {lotes: elegido, versiones: p.versiones});\n  }\n  if (!p.resultadoNombre) c.append(UI.aviso('nota', h('span', null, 'Define el resultado que mides en cada lote (una pureza, un área, una actividad…) en ', h('a', {href: '#p/general'}, 'Datos generales'), '. Mientras tanto, la carta usa el rendimiento.')));\n  const cmp = Lotes.comparacion(p);\n  const conMasa = cmp.filas.some(f => f.masa != null), conRend = cmp.filas.some(f => f.rendimiento != null);\n  const cab = ['Lote', 'Fecha', 'Escala'].concat(conMasa ? ['Masa (g)'] : [], conRend ? ['Rendimiento'] : []).concat(cmp.columnasResultado.map(col => col.nombre + (col.unidad ? ' (' + col.unidad + ')' : '')))\n    .concat(cmp.columnas.map(col => col.etiqueta + (col.unidad ? ' (' + col.unidad + ')' : '') + (col.planeado != null ? ' · plan ' + numero(col.planeado) : '')));\n  const filas = cmp.filas.map(f => [f.codigo, f.fecha, '×' + numero(f.factor)].concat(conMasa ? [f.masa != null ? numero(f.masa) : '—'] : [], conRend ? [f.rendimiento != null ? numero(f.rendimiento, {dec: 1}) + ' %' : '—'] : [])\n    .concat(f.resultados.map(v => v != null ? numero(v) : '—'))\n    .concat(f.valores.map(v => (v.real == null ? '—' : numero(v.real) + (v.desvio ? ' (' + (v.desvio > 0 ? '+' : '') + numero(v.desvio) + ')' : '')))));\n  c.append(h('section', {class: 'bloque'}, h('h3', null, 'Lotes lado a lado'), Calculadoras.tabla(cab, filas),\n    h('p', {class: 'nota'}, 'Entre paréntesis, la diferencia con lo planeado en el protocolo. Los parámetros reales se anotan en cada lote.'),\n    h('div', {class: 'fila-botones'}, UI.boton('Importar lotes desde CSV…', () => Importar.lotesCSV(), {mini: true}))));\n  const k = Lotes.control(p);\n  const bloque = h('section', {class: 'bloque'}, h('h3', null, 'Carta de control · ' + (k.magnitud || '')));\n  if (k.referenciaConocida === false) bloque.append(UI.aviso('nota', 'Hay lotes sin una referencia histórica registrada. El cálculo usa el método actual para esos lotes; verifica su magnitud y unidades antes de interpretar los límites.'));\n  if (k.error) bloque.append(h('p', {class: 'calculado'}, k.error));\n  else {\n    const n = k.valores.length;\n    const paso = Math.max(1, Math.ceil(n / 12));\n    bloque.append(Calculadoras.grafica({titulo: k.magnitud + ' por lote, con su media y límites ±2,66·MR̄', ejeX: 'Lote', unir: true,\n      ticksX: [...Array(n)].map((_, i) => i + 1).filter(i => (i - 1) % paso === 0),\n      etiquetaX: t => { const i = Math.round(t); return Math.abs(t - i) < 1e-9 && k.etiquetas[i - 1] ? k.etiquetas[i - 1] : ''; },\n      puntos: k.valores.map((v, i) => ({x: i + 1, y: v, alerta: k.fuera.includes(i), titulo: (k.etiquetas[i] || 'Lote ' + (i + 1)) + ': ' + numero(v) + (k.fuera.includes(i) ? ' · fuera de control' : '')})),\n      lineas: [{x1: 1, x2: n, y1: k.centro, y2: k.centro, clase: 'g-centro', etiqueta: 'media'}, {x1: 1, x2: n, y1: k.lcs, y2: k.lcs, etiqueta: 'LCS'}, {x1: 1, x2: n, y1: k.lci, y2: k.lci, etiqueta: 'LCI'}]}),\n      Calculadoras.tabla(['Lote', 'Valor', 'Estado'], k.valores.map((v, i) => [k.etiquetas[i] || 'Lote ' + (i + 1), numero(v), k.fuera.includes(i) ? 'Fuera de control' : 'En control'])),\n      h('p', {class: 'explicacion'}, k.explicacion));\n  }\n  c.append(bloque);\n});\n\n/* ---------- versiones ---------- */\nMarco.registra('versiones', (c, p) => {\n  c.append(UI.cabecera('VERSIONES', 'Versiones del protocolo', 'Guarda una versión cuando cambies algo que importa, con una nota de por qué. Comparar dice qué cambió; abrir una versión crea una copia.'));\n  const nota = UI.texto('', () => {}, {placeholder: 'Qué cambió y por qué (p. ej. «pH 10 → 9,5 por baja cristalinidad»)'});\n  c.append(h('section', {class: 'bloque'}, UI.campo('Nota de la versión', nota, {ancho: 'completo'}),\n    h('div', {class: 'fila-botones'}, UI.boton('Guardar esta versión', () => {\n      if(Estado.p.versiones.length>=50){toast('El protocolo alcanzó 50 versiones. Exporta una copia completa antes de continuar en otro protocolo. No se borró ninguna versión.','warn');return;}\n      const v = Versiones.instantanea(Estado.p, nota.value);\n      Estado.cambia(q => { q.versiones.push(v); });\n      toast('Versión guardada.', 'ok', {t: 'Deshacer', fn: () => Estado.deshaz()});\n    }, {tipo: 'pri'}))));\n  if (!p.versiones.length) { c.append(UI.vacio('Sin versiones guardadas', 'La primera versión es el punto de partida contra el que comparar los cambios.')); return; }\n  const actual = h('div', {class: 'calc-salida', 'aria-live': 'polite'});\n  p.versiones.slice().reverse().forEach(v => {\n    const fecha = new Date(v.fecha).toLocaleString('es', {dateStyle: 'medium', timeStyle: 'short'});\n    c.append(h('article', {class: 'tarjeta-item'}, h('div', {class: 'item-cab'}, h('h3', {class: 'item-tit'}, fecha + (v.nota ? ' · ' + v.nota : ''))),\n      h('div', {class: 'fila-botones'},\n        UI.boton('Comparar con la actual', () => {\n          const d = Versiones.diferencias(v.protocolo, Estado.p);\n          actual.replaceChildren(h('h3', null, 'De la versión del ' + fecha + ' a la actual'), d.length ? h('ul', {class: 'lista-simple'}, d.map(x => h('li', null, h('b', null, x.seccion + ': '), x.texto))) : h('p', null, 'No hay diferencias.'));\n          actual.scrollIntoView({block: 'nearest'});\n        }, {mini: true}),\n        UI.boton('Abrir como copia', async () => {\n          const t = new Date().toISOString();\n          const copia = Object.assign(deepCopy(v.protocolo), {id: uid('p'), titulo: (v.protocolo.titulo || 'Protocolo') + ' (versión del ' + fecha + ')', versiones: [], lotes: [], creado: t, modificado: t});\n          await Almacen.guarda(copia); await Estado.abre(copia.id); Marco.irA('general');\n          toast('Se abrió la versión como un protocolo nuevo; el original no cambió.', 'ok');\n        }, {mini: true}))));\n  });\n  c.append(actual);\n});\n\n/* ---------- lista de verificación previa ---------- */\nMarco.registra('verificacion', (c, p) => {\n  const lab = Almacen.laboratorio();\n  const pr = Almacen.prefs();\n  const loteId = pr.verificacionLote && p.lotes.some(l => l.id === pr.verificacionLote) ? pr.verificacionLote : '';\n  const lote=loteId ? p.lotes.find(l=>l.id===loteId) : null,base=lote ? Lotes.protocolo(p,lote) : p;\n  const factor = loteId ? p.lotes.find(l => l.id === loteId).factor : (p.escala || 1);\n  c.append(UI.cabecera('LISTA PREVIA', 'Antes de empezar', 'Lo que hay que tener listo para ejecutar el protocolo: cantidades a la escala del lote, existencias, calibraciones y precauciones. Imprímela y márcala.'));\n  c.append(h('div', {class: 'fila-herramientas'}, UI.campo('Para', UI.selector(loteId, [['', 'La escala del protocolo (×' + numero(p.escala || 1) + ')']].concat(p.lotes.map(l => [l.id, 'Lote ' + (l.codigo || l.fecha) + ' (×' + numero(l.factor) + ')'])),\n    v => { const q = Almacen.prefs(); q.verificacionLote = v; Almacen.guardaPrefs(q); Marco.repinta(); }), {clase: 'campo-corto'}),\n    h('div', {class: 'fila-botones'}, UI.boton('Imprimir la lista', () => window.print(), {tipo: 'pri'}))));\n  if (!lab.inventario.length) c.append(UI.aviso('nota', h('span', null, 'Sin inventario no se comprueban las existencias. Regístralo en ', h('a', {href: '#p/laboratorio'}, 'Laboratorio'), '.')));\n  const hoja = h('article', {class: 'hoja-verificacion'}, h('h3', null, (p.titulo || 'Protocolo sin título') + ' · escala ×' + numero(factor)));\n  if(lote)hoja.append(h('p',{class:'nota'},lote.revision ? 'Referencia conservada: '+lote.revision.id+' · inventario comprobado ahora, excluidas reservas de otros lotes.' : 'Referencia histórica desconocida: la lista usa el método actual y no acredita las condiciones originales.'));\n  for (const g of Laboratorio.listaVerificacion(base, lab, factor,undefined,{lote})) {\n    hoja.append(h('section', null, h('h4', null, g.titulo), h('ul', {class: 'lista-verificacion'}, g.items.map(it => h('li', {class: it.alerta ? 'lv-alerta' : null},\n      h('label', null, h('input', {type: 'checkbox', class: 'casilla'}), ' ', h('span', null, it.texto, it.detalle ? h('small', null, it.detalle) : null)))))));\n  }\n  hoja.append(h('p', {class: 'nota'}, 'Fecha: ____________   Operador: ______________________   Lote: __________'));\n  c.append(hoja);\n});\n\n/* ---------- laboratorio: inventario e instrumentos ---------- */\nMarco.registra('laboratorio', c => {\n  const lab = Almacen.laboratorio();\n  const guarda = async (fn, silencioso) => { const l = Almacen.laboratorio(); fn(l); try { await Almacen.guardaLaboratorio(l); } catch (e) { toast(e.message + ' Descarga el laboratorio (.json).', 'warn'); } if (!silencioso) Marco.repinta(); };\n  c.append(UI.cabecera('LABORATORIO', 'Inventario y equipos', 'Existencias, caducidades y calibraciones del laboratorio. Es común a todos tus protocolos y vive en este navegador.'));\n  const alertas = Laboratorio.alertas(lab);\n  if (alertas.length) c.append(UI.aviso(alertas.some(a => a.tipo === 'caducado' || a.tipo === 'calibracion') ? 'error' : 'nota', h('ul', {class: 'lista-simple'}, alertas.map(a => h('li', null, a.texto)))));\n  const campoFila = (coleccion, x, k, tipo, extra) => {\n    const cambia = v => guarda(l => { const y = l[coleccion].find(z => z.id === x.id); if (y) y[k] = v; }, true);\n    const attrs = {'aria-label': (extra && extra.etq) + ' de ' + (x.nombre || 'la fila')};\n    if(coleccion==='inventario' && k==='cantidad')return h('span',{class:'calculado'},x.cantidad==null ? 'Sin recuento' : numero(x.cantidad));\n    if(coleccion==='inventario' && k==='unidad' && (x.cantidad!=null || lab.movimientos.some(m=>m.articuloId===x.id)))return h('span',null,x.unidad);\n    if (tipo === 'numero') return UI.numero(x[k], cambia, {attrs});\n    if (tipo === 'fecha') return UI.texto(x[k], cambia, {attrs: Object.assign({type: 'date'}, attrs)});\n    if (tipo === 'opcion') return UI.selector(x[k], extra.opciones, cambia, {attrs});\n    return UI.texto(x[k], cambia, {attrs});\n  };\n  const quitar = (coleccion, x) => h('button', {type: 'button', class: 'ico', 'aria-label': 'Quitar ' + (x.nombre || 'la fila'), title: 'Quitar',\n    html: '<svg viewBox=\"0 0 24 24\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M5 7h14M10 7V4h4v3M7 7l1 13h8l1-13\"/></svg>',\n    onclick: () => {\n      if(coleccion==='inventario'){\n        const r=Laboratorio.archiva(Almacen.laboratorio(),x.id,!x.archivado);if(r.error){toast(r.error,'warn');return;}\n        guarda(l=>Object.assign(l,r.laboratorio));\n      }else guarda(l => { l[coleccion] = l[coleccion].filter(z => z.id !== x.id); });\n    }});\n  const tablaEd = (coleccion, cols) => h('div', {class: 'tabla-scroll'}, h('table', {class: 'tabla tabla-editable'},\n    h('thead', null, h('tr', null, cols.map(col => h('th', {scope: 'col'}, col.etq)), h('th', null, h('span', {class: 'visualmente-oculto'}, 'Acciones')))),\n    h('tbody', null, lab[coleccion].map(x => h('tr', null, cols.map(col => h('td', null, campoFila(coleccion, x, col.k, col.tipo, col))), h('td', null, coleccion==='inventario' ? UI.boton(x.archivado ? 'Reactivar' : 'Archivar',()=>{\n      const r=Laboratorio.archiva(Almacen.laboratorio(),x.id,!x.archivado);if(r.error)toast(r.error,'warn');else guarda(l=>Object.assign(l,r.laboratorio));\n    },{mini:true}) : quitar(coleccion, x)))))));\n  c.append(h('section', {class: 'bloque'}, h('h3', null, 'Inventario de reactivos (' + lab.inventario.length + ')'),\n    lab.inventario.length ? tablaEd('inventario', [{k: 'nombre', etq: 'Nombre'}, {k: 'formula', etq: 'Fórmula'}, {k: 'cas', etq: 'CAS'}, {k: 'cantidad', etq: 'Cantidad', tipo: 'numero'},\n      {k: 'unidad', etq: 'Unidad', tipo: 'opcion', opciones: Laboratorio.UNIDADES.map(u => [u, u])}, {k: 'ubicacion', etq: 'Ubicación'}, {k: 'lote', etq: 'Lote'}, {k: 'apertura', etq: 'Abierto', tipo: 'fecha'}, {k: 'caducidad', etq: 'Caduca', tipo: 'fecha'}])\n      : h('p', {class: 'nota'}, 'Sin reactivos registrados.'),\n    h('div', {class: 'fila-botones'}, UI.boton('Añadir un reactivo', () => guarda(l => l.inventario.push(Laboratorio.nuevoArticulo())), {mini: true}),\n      UI.boton('Añadir los reactivos del protocolo abierto', () => guarda(l => {\n        let n = 0;\n        for (const r of Estado.p.reactivos) if (!Laboratorio.busca(l, r).length && (r.nombre || r.formula)) { l.inventario.push(Laboratorio.nuevoArticulo({nombre: r.nombre, formula: r.formula, cas: r.cas, unidad: ['mmol', 'mol'].includes(r.unidad) ? 'g' : r.unidad})); n++; }\n        toast(n ? 'Se añadieron ' + n + ' reactivos: completa sus existencias.' : 'Todos los reactivos del protocolo ya están en el inventario.', 'ok');\n      }), {mini: true}))));\n  c.append(h('section', {class: 'bloque'}, h('h3', null, 'Instrumentos y material volumétrico (' + lab.instrumentos.length + ')'),\n    lab.instrumentos.length ? tablaEd('instrumentos', [{k: 'nombre', etq: 'Nombre'}, {k: 'tipo', etq: 'Tipo', tipo: 'opcion', opciones: [['instrumento', 'Instrumento'], ['volumetrico', 'Volumétrico']]},\n      {k: 'identificador', etq: 'Identificador'}, {k: 'nominal', etq: 'Nominal', tipo: 'numero'}, {k: 'tolerancia', etq: 'Tolerancia ±', tipo: 'numero'}, {k: 'unidad', etq: 'Unidad'},\n      {k: 'ultimaCalibracion', etq: 'Última calibración', tipo: 'fecha'}, {k: 'proximaCalibracion', etq: 'Próxima', tipo: 'fecha'}])\n      : h('p', {class: 'nota'}, 'Sin equipos registrados. Anota balanzas, pH-metros, pipetas y matraces con la tolerancia de su certificado o de su clase.'),\n    h('div', {class: 'fila-botones'}, UI.boton('Añadir un equipo', () => guarda(l => l.instrumentos.push(Laboratorio.nuevoInstrumento())), {mini: true}))));\n  LaboratorioUI.pinta(c,lab);\n  c.append(h('section', {class: 'bloque'}, h('h3', null, 'Moneda y respaldo'),\n    UI.campo('Moneda de los precios', UI.texto(lab.moneda, v => guarda(l => { l.moneda = v; }, true), {placeholder: 'MXN, EUR, USD…'}), {clase: 'campo-corto'}),\n    h('div', {class: 'fila-botones'}, UI.boton('Descargar el laboratorio (.json)', () => UI.descarga('erlen-laboratorio.json', JSON.stringify(Almacen.laboratorio(), null, 1) + '\\n', 'application/json'), {mini: true}),\n      UI.boton('Restaurar desde un archivo…', () => Importar.laboratorio(), {mini: true}))));\n});\n",
  "src/js/47-importar.js": "/* ==== 47-importar.js ==== */\n'use strict';\n/* ================= importar y enviar =================\n   Diálogos con vista previa: nada se crea ni se reemplaza hasta confirmar.\n   - Un párrafo experimental → borrador de protocolo (nuevo o añadido).\n   - Factores de Erlen Lens (erlen-doe-factores-v1) → condiciones publicadas.\n   - Un CSV de corridas (de DoE o de una hoja) → lotes.\n   - El laboratorio desde su respaldo.\n   - Parámetros del protocolo → factores para Erlen DoE. */\n\nconst Importar = (() => {\n  function eligeArchivo(accept) {\n    return new Promise(res => {\n      const i = h('input', {type: 'file', accept, class: 'visualmente-oculto'});\n      i.addEventListener('change', async () => { const f = i.files && i.files[0]; i.remove(); res(f ? {nombre: f.name, texto: await f.text()} : null); });\n      document.body.append(i);\n      i.click();\n    });\n  }\n\n  /* ---------- párrafo experimental ---------- */\n  function parrafo() {\n    const area = UI.texto('', () => previa(), {area: true, filas: 8, placeholder: 'Pega aquí el párrafo experimental de un artículo, una tesis o tu cuaderno.'});\n    const vista = h('div', {class: 'calc-salida', 'aria-live': 'polite'});\n    let borrador = null;\n    const previa = () => {\n      borrador = area.value.trim() ? Exportar.extrae(area.value) : null;\n      vista.replaceChildren();\n      if (!borrador) return;\n      vista.append(h('p', {class: 'explicacion'}, borrador.explicacion));\n      if (borrador.reactivos.length) vista.append(Calculadoras.tabla(['Reactivo', 'Fórmula', 'Cantidad'], borrador.reactivos.map(r => [r.nombre || '—', r.formula ? Formula.bonita(r.formula) : '—', numero(r.cantidad) + ' ' + r.unidad + (r.pureza != null ? ' (' + numero(r.pureza) + ' %)' : '')])));\n      if (borrador.pasos.length) vista.append(h('ol', {class: 'lista-simple'}, borrador.pasos.map(s => h('li', null, s.texto, h('small', {class: 'nota'}, ' ' + Redaccion.parametros(s, 'es').join(' · '))))));\n    };\n    const crear = async anadir => {\n      if (!borrador || !(borrador.reactivos.length || borrador.pasos.length)) { toast('No se reconoció nada en el texto.', 'warn'); return; }\n      if (anadir) Estado.cambia(q => { q.reactivos.push(...borrador.reactivos); q.pasos.push(...borrador.pasos); });\n      else {\n        const p = Protocolo.nuevo({titulo: 'Protocolo desde un párrafo', reactivos: borrador.reactivos, pasos: borrador.pasos, notas: 'Texto de origen:\\n' + area.value.trim()});\n        await Almacen.guarda(p); await Estado.abre(p.id);\n      }\n      UI.cierraModal(); Portada.cerrar(); Marco.irA('reactivos');\n      toast('Borrador creado: revisa cada cantidad contra el texto original.', 'ok', anadir ? {t: 'Deshacer', fn: () => Estado.deshaz()} : null);\n    };\n    UI.modal({titulo: 'Protocolo desde un párrafo', tam: 'md', cuerpo: [h('p', {class: 'nota'}, 'Reconoce cantidades con unidad seguidas de «de …» (o «of …»), fórmulas entre paréntesis y, por frase, temperatura, tiempo, pH, agitación y atmósfera. Es un borrador por patrones: no entiende el contexto.'), UI.campo('Texto', area, {ancho: 'completo'}), vista],\n      pie: [UI.boton('Cancelar', () => UI.cierraModal()), UI.boton('Añadir al protocolo abierto', () => crear(true)), UI.boton('Crear protocolo nuevo', () => crear(false), {tipo: 'pri'})]});\n  }\n\n  /* ---------- condiciones publicadas (Erlen Lens) ---------- */\n  async function lens() {\n    const f = await eligeArchivo('.json,application/json');\n    if (!f) return;\n    const r = Exportar.literaturaDesdeLens(f.texto);\n    if (r.error) { toast(r.error, 'warn'); return; }\n    UI.modal({titulo: 'Condiciones publicadas', tam: 'md', cuerpo: [h('p', null, r.explicacion),\n      Calculadoras.tabla(['Parámetro', 'Intervalo', 'Fuentes'], r.literatura.map(x => [x.parametro + (x.unidad ? ' (' + x.unidad + ')' : ''), x.bajo != null ? numero(x.bajo) + ' – ' + numero(x.alto) : x.niveles.join(', ') || '—', String(x.fuentes.length)]))],\n      pie: [UI.boton('Cancelar', () => UI.cierraModal()), UI.boton('Añadir al protocolo', () => {\n        Estado.cambia(q => { q.literatura.push(...r.literatura); });\n        UI.cierraModal(); Marco.irA('general', {foco: 'literatura'});\n        toast('Condiciones añadidas a Datos generales.', 'ok', {t: 'Deshacer', fn: () => Estado.deshaz()});\n      }, {tipo: 'pri'})]});\n  }\n\n  /* ---------- lotes desde CSV ---------- */\n  async function lotesCSV() {\n    const f = await eligeArchivo('.csv,.tsv,.txt,text/csv');\n    if (!f) return;\n    const csv = Exportar.leeCSV(f.texto);\n    if (csv.error) { toast(csv.error, 'warn'); return; }\n    const p = Estado.p;\n    const cols = [['', '— ninguna —']].concat(csv.columnas.map((c, i) => [String(i), c || 'Columna ' + (i + 1)]));\n    const mapeo = {codigo: null, fecha: null, resultado: null, masa: null, parametros: []};\n    const destinos = [['', 'no importar']];\n    p.pasos.forEach((s, i) => { for (const [k, t] of [['temperatura', 'temperatura'], ['tiempo', 'tiempo'], ['ph', 'pH'], ['agitacion', 'agitación']]) destinos.push([s.id + '|' + k, 'Paso ' + (i + 1) + ' · ' + t]); });\n    const porColumna = {};\n    const adivina = n => { const t = n.toLowerCase(); if (/^(lote|corrida|run|id|código|codigo)/.test(t)) return 'codigo'; if (/masa|mass|obten/.test(t)) return 'masa'; return null; };\n    csv.columnas.forEach((n, i) => { const a = adivina(n); if (a && mapeo[a] == null) mapeo[a] = i; });\n    const fila = (etq, clave) => UI.campo(etq, UI.selector(mapeo[clave] == null ? '' : String(mapeo[clave]), cols, v => { mapeo[clave] = v === '' ? null : +v; }));\n    const tablaCols = h('div', {class: 'rejilla-campos'}, csv.columnas.map((n, i) => UI.campo('«' + n + '» →', UI.selector('', destinos, v => { porColumna[i] = v; }))));\n    UI.modal({titulo: 'Lotes desde «' + f.nombre + '»', tam: 'md', cuerpo: [\n      h('p', null, csv.filas.length + ' filas y ' + csv.columnas.length + ' columnas. Una fila será un lote. Elige qué columna es qué; los valores de los pasos se guardan como parámetros reales del lote.'),\n      h('p', {class: 'nota'}, 'La referencia original y las fechas ausentes quedan desconocidas. La fecha de importación no se utiliza como fecha del experimento.'),\n      h('div', {class: 'rejilla-campos'}, fila('Código del lote', 'codigo'), fila('Fecha de ejecución (AAAA-MM-DD)', 'fecha'), fila((p.resultadoNombre || 'Resultado') + ' del lote', 'resultado'), fila('Masa obtenida (g)', 'masa')),\n      h('h3', null, 'Columnas con parámetros del procedimiento'), tablaCols],\n    pie: [UI.boton('Cancelar', () => UI.cierraModal()), UI.boton('Crear los lotes', () => {\n      mapeo.parametros = Object.entries(porColumna).filter(([, v]) => v).map(([col, v]) => { const [pasoId, campo] = v.split('|'); return {col: +col, pasoId, campo}; });\n      const r = Exportar.lotesDesdeCSV(Estado.p, csv, mapeo);\n      if (r.avisos.length) {\n        UI.modal({titulo: 'Revisa el CSV antes de importar', tam: 'md', cuerpo: [h('p', null, 'No se creó ningún lote. Corrige los valores indicados y vuelve a importar el archivo.'),\n          h('ul', {class: 'lista-simple'}, r.avisos.map(aviso => h('li', null, aviso)))], pie: [UI.boton('Cerrar', () => UI.cierraModal())]});\n        return;\n      }\n      Estado.cambia(q => { q.lotes.push(...r.lotes); });\n      UI.cierraModal(); Marco.irA('calidad');\n      toast(r.lotes.length + ' lotes importados' + (r.avisos.length ? ' con ' + r.avisos.length + ' avisos: ' + r.avisos[0] : '.'), r.avisos.length ? 'warn' : 'ok', {t: 'Deshacer', fn: () => Estado.deshaz()});\n    }, {tipo: 'pri'})]});\n  }\n\n  /* ---------- laboratorio ---------- */\n  async function laboratorio() {\n    const f = await eligeArchivo('.json,application/json');\n    if (!f) return;\n    let d;\n    try { d = JSON.parse(f.texto); } catch (e) { toast('El archivo no es JSON válido.', 'warn'); return; }\n    if (!d || d.format !== Laboratorio.FORMATO) { toast('Se esperaba un respaldo «' + Laboratorio.FORMATO + '».', 'warn'); return; }\n    const errores=Laboratorio.valida(Object.assign({movimientos:[],reservas:[]},d));\n    if(errores.length){toast('No se restauró el laboratorio: '+errores.join(' '),'warn');return;}\n    const l = Laboratorio.sanea(d);\n    if (!(await UI.confirma({titulo: 'Restaurar el laboratorio', texto: 'Se reemplazan el inventario (' + l.inventario.length + ') y los equipos (' + l.instrumentos.length + ') de este navegador por los del archivo.', si: 'Reemplazar', peligro: true}))) return;\n    try { await Almacen.guardaLaboratorio(l); } catch (e) { toast(e.message, 'warn'); return; }\n    Marco.irA('laboratorio');\n    toast('Laboratorio restaurado.', 'ok');\n  }\n\n  /* ---------- factores para Erlen DoE ---------- */\n  function factoresDoE() {\n    const p = Estado.p;\n    const sel = [];\n    const opciones = [];\n    p.pasos.forEach((s, i) => { for (const k of Object.keys(Exportar.CAMPOS_PASO)) if (s[k] != null) opciones.push({pasoId: s.id, campo: k, etq: 'Paso ' + (i + 1) + ' · ' + Exportar.CAMPOS_PASO[k][0] + ' (hoy ' + numero(s[k]) + (k === 'tiempo' ? ' ' + s.unidadTiempo : Exportar.CAMPOS_PASO[k][1] ? ' ' + Exportar.CAMPOS_PASO[k][1] : '') + ')', valor: s[k]}); });\n    p.reactivos.forEach(r => { if (r.cantidad != null && r.rol !== 'disolvente') opciones.push({reactivoId: r.id, etq: 'Cantidad de ' + (r.nombre || r.formula) + ' (hoy ' + numero(r.cantidad) + ' ' + r.unidad + ')', valor: r.cantidad}); });\n    if (!opciones.length) { toast('El protocolo no tiene parámetros con valor ni cantidades: no hay factores que proponer.', 'warn'); return; }\n    const filas = opciones.map(o => {\n      const s = {pasoId: o.pasoId, campo: o.campo, reactivoId: o.reactivoId, bajo: null, alto: null, usar: false};\n      sel.push(s);\n      return h('fieldset', {class: 'grupo-var'}, h('legend', null, UI.casilla(o.etq, false, v => { s.usar = v; })),\n        UI.campo('Nivel bajo', UI.numero(null, v => { s.bajo = v; })), UI.campo('Nivel alto', UI.numero(null, v => { s.alto = v; })));\n    });\n    UI.modal({titulo: 'Factores para Erlen DoE', tam: 'md', cuerpo: [h('p', null, 'Marca los parámetros que quieres estudiar y sus niveles. Se descarga un archivo que Erlen DoE abre con Archivo → Abrir, el mismo formato que usa Erlen Lens.' + (p.resultadoNombre ? ' La respuesta será «' + p.resultadoNombre + '».' : ' Define el resultado del lote en Datos generales para que DoE lo reciba como respuesta.')),\n      h('div', {class: 'rejilla-campos'}, filas)],\n      pie: [UI.boton('Cancelar', () => UI.cierraModal()), UI.boton('Descargar los factores', () => {\n        const r = Exportar.factoresDoE(p, sel.filter(s => s.usar));\n        if (!r.archivo.factors.length) { toast(r.avisos[0] || 'Marca al menos un parámetro con dos niveles distintos.', 'warn'); return; }\n        UI.descarga('factores-doe-' + UI.nombreArchivo(p.titulo) + '.json', JSON.stringify(r.archivo, null, 1) + '\\n', 'application/json');\n        UI.cierraModal();\n        toast(r.archivo.factors.length + ' factores descargados. Ábrelos en Erlen DoE con Archivo → Abrir.' + (r.avisos.length ? ' ' + r.avisos[0] : ''), 'ok');\n      }, {tipo: 'pri'})]});\n  }\n\n  return {eligeArchivo, parrafo, lens, lotesCSV, laboratorio, factoresDoE};\n})();\n",
  "src/js/48-p-ejecucion.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\n\nMarco.registra('ejecucion', (c, p) => {\n  c.append(UI.cabecera('EJECUCIÓN', 'Ejecutar un lote', 'La referencia se fija al registrar el lote. Anota las muestras, los equipos utilizados y cada paso completado; las mediciones quedan en la ficha del lote.'));\n  if (!p.lotes.length) {\n    c.append(UI.vacio('Sin ejecuciones', 'Registra un lote para empezar.', UI.boton('Registrar un lote', () => Acciones.inserta('lote'), {tipo: 'pri'})));\n    return;\n  }\n  const preferencias = Almacen.prefs();\n  const lote = p.lotes.find(l => l.id === preferencias.ejecucionLote) || p.lotes.at(-1);\n  c.append(UI.campo('Lote', UI.selector(lote.id, p.lotes.map(l => [l.id, (l.codigo || 'Sin código') + ' · ' + l.fecha]), id => {\n    preferencias.ejecucionLote = id; Almacen.guardaPrefs(preferencias); Marco.repinta();\n  })));\n  const modifica = resultado => {\n    if (resultado.error) { toast(resultado.error, 'warn'); Marco.repinta(); return; }\n    Estado.cambia(q => { const i = q.lotes.findIndex(l => l.id === lote.id); if (i >= 0) q.lotes[i] = resultado.lote; });\n  };\n  if (!lote.revision) {\n    c.append(UI.aviso('nota', 'Este lote no conserva su protocolo original. Vincularlo ahora documenta la referencia elegida hoy; no reconstruye su historia.'),\n      UI.boton('Vincular la revisión actual', async () => {\n        if (await UI.confirma({titulo: 'Vincular revisión', texto: 'Se conservará la definición actual como referencia elegida posteriormente para este lote.'})) modifica(Ejecucion.vincula(Estado.p, lote));\n      }));\n    return;\n  }\n  const base = lote.revision.protocolo, e = lote.ejecucion, resumen = Ejecucion.resumen(lote);\n  c.append(h('p', {class: 'calculado', 'aria-live': 'polite'}, resumen.estado + ' · ' + resumen.completados + '/' + resumen.total + ' pasos · escala ×' + numero(lote.factor)),\n    h('p', {class: 'nota'}, 'Revisión ' + lote.revision.id + ' · ' + lote.revision.fecha + (lote.revision.nota ? ' · ' + lote.revision.nota : '')));\n  const muestras = UI.texto(e.muestras, v => Estado.cambia(q => { q.lotes.find(l => l.id === lote.id).ejecucion.muestras = v; }, {silencioso: true, grupo: 'muestras' + lote.id}), {area: true, filas: 2});\n  muestras.disabled = e.estado === 'terminado';\n  c.append(UI.campo('Identificadores de las muestras', muestras, {ayuda: 'Escribe tus identificadores reales y su procedencia. No se generan datos de muestra.'}));\n  const lab = Almacen.laboratorio();\n  if (e.estado === 'preparado' && lab.instrumentos.length) c.append(h('section', {class: 'bloque'}, h('h3', null, 'Equipos que se utilizarán'),\n    lab.instrumentos.map(instrumento => UI.casilla((instrumento.nombre || 'Instrumento') + ' · ' + instrumento.identificador,\n      e.equipos.some(x => x.id === instrumento.id), seleccionado => Estado.cambia(q => {\n        const x = q.lotes.find(l => l.id === lote.id).ejecucion;\n        x.equipos = x.equipos.filter(i => i.id !== instrumento.id);\n        if (seleccionado) x.equipos.push(deepCopy(instrumento));\n      })))));\n  if (e.equipos.length) c.append(h('section', {class: 'bloque'}, h('h3', null, 'Identificación y calibración conservadas'),\n    h('ul', {class: 'lista-simple'}, e.equipos.map(i => h('li', null, (i.nombre || 'Instrumento') + ' · ' + i.identificador,\n      h('p', {class: 'nota'}, 'Última calibración: ' + (i.ultimaCalibracion || 'sin registrar') + ' · próxima: ' + (i.proximaCalibracion || 'sin registrar')))))));\n  if (e.estado === 'preparado') c.append(UI.boton('Empezar ejecución', () => modifica(Ejecucion.inicia(Estado.p.lotes.find(l => l.id === lote.id))), {tipo: 'pri'}));\n  else c.append(h('p', {class: 'nota'}, 'Inicio: ' + e.inicio + (e.fin ? ' · final: ' + e.fin : '')));\n  const flujo=Flujo.analiza(base);if(flujo.error)c.append(UI.aviso('error',flujo.error));else c.append(h('p',{class:'nota'},'Orden conservado: '+Flujo.MODOS[flujo.modo]));\n  base.pasos.forEach((paso, i) => {\n    const registro = e.pasos[paso.id] || {completado: false, nota: '', fecha: ''};\n    const casilla = UI.casilla('Paso ' + (i + 1) + ' completado', registro.completado, valor => modifica(Ejecucion.paso(Estado.p.lotes.find(l => l.id === lote.id), paso.id, valor)));\n    const pendientes=flujo.error ? [] : flujo.nodos.find(n=>n.id===paso.id).dependeDe.filter(id=>!e.pasos[id]?.completado);\n    casilla.querySelector('input').disabled = e.estado !== 'enCurso' || (!registro.completado && pendientes.length>0);\n    const notas = UI.texto(registro.nota, valor => {\n      const actual = Estado.p.lotes.find(l => l.id === lote.id);\n      const resultado = Ejecucion.paso(actual, paso.id, !!actual.ejecucion.pasos[paso.id]?.completado, valor);\n      if (resultado.error) { toast(resultado.error, 'warn'); return; }\n      Estado.cambia(q => { q.lotes[q.lotes.findIndex(l => l.id === lote.id)] = resultado.lote; }, {silencioso: true, grupo: 'ejecucion' + lote.id + paso.id});\n    }, {area: true, filas: 2});\n    notas.disabled = e.estado !== 'enCurso';\n    c.append(h('section', {class: 'bloque'}, h('h3', null, 'Paso ' + (i + 1) + ' · ' + Protocolo.ACCIONES[paso.accion] + (paso.critico ? ' · crítico' : '')),\n      h('p', null, paso.texto),pendientes.length ? h('p',{class:'nota'},'Espera a los pasos '+pendientes.map(id=>String(base.pasos.findIndex(s=>s.id===id)+1)).join(', ')+'.') : null, casilla, registro.fecha ? h('p', {class: 'nota'}, registro.fecha) : null,\n      UI.campo('Observaciones de este paso', notas)));\n  });\n  if (e.estado === 'enCurso') c.append(UI.boton('Finalizar ejecución', async () => {\n    const resultado = Ejecucion.termina(Estado.p.lotes.find(l => l.id === lote.id));\n    if (resultado.error) { toast(resultado.error, 'warn'); return; }\n    if (await UI.confirma({titulo: 'Finalizar ejecución', texto: 'Se cerrarán el registro de pasos y las mediciones del lote. Revisa los datos antes de finalizar.'})) modifica(resultado);\n  }, {tipo: 'pri'}));\n  c.append(h('div', {class: 'fila-botones'}, UI.boton('Pesadas y mediciones del lote', () => Marco.irA('lotes')),\n    UI.boton('Descargar registro (.json)', () => UI.descarga('ejecucion-' + lote.id + '.json', JSON.stringify({format: 'erlen-methods-ejecucion-v1', lote: Estado.p.lotes.find(l => l.id === lote.id)}, null, 1), 'application/json'))));\n  pintaConsumos(c, base, lote, lab);\n  RegistroPlacasUI.pinta(c,lote);\n});\n\nfunction pintaConsumos(c, base, lote, lab) {\n  const movimientos = lab.movimientos.filter(m => m.loteId === lote.id);\n  if (movimientos.length) c.append(h('section', {class: 'bloque'}, h('h3', null, 'Consumos confirmados'),\n    h('ul', {class: 'lista-simple'}, movimientos.map(m => h('li', null, numero(-m.cantidad) + ' ' + m.unidad + ' · ' + m.fecha + ' · ' + m.motivo)))));\n  if (lote.ejecucion.estado !== 'enCurso') return;\n  const filas = base.reactivos.map(r => {\n    const clave = lote.id + ':' + r.id;\n    if (lab.movimientos.some(m => m.clave === clave)) return null;\n    const frascos = Laboratorio.busca(lab, r);\n    if (!frascos.length) return null;\n    let frascoId = frascos[0].id, cantidad = null;\n    const ayuda = h('p', {class: 'nota'});\n    const actualiza = () => { const a = frascos.find(f => f.id === frascoId); ayuda.textContent = 'Disponible: ' + (a.cantidad == null ? 'sin registrar' : numero(a.cantidad)) + ' ' + a.unidad + ' · cantidad planeada: ' + (Laboratorio.necesario(r, lote.factor, a.unidad) == null ? 'no convertible' : numero(Laboratorio.necesario(r, lote.factor, a.unidad)) + ' ' + a.unidad); };\n    actualiza();\n    return h('section', {class: 'bloque'}, h('h3', null, r.nombre || r.formula),\n      UI.campo('Frasco', UI.selector(frascoId, frascos.map(a => [a.id, (a.lote || 'Sin lote') + ' · ' + a.ubicacion + ' · ' + a.unidad]), id => { frascoId = id; actualiza(); })),\n      ayuda, UI.campo('Cantidad realmente consumida (unidad del frasco)', UI.numero(null, valor => { cantidad = valor; }, {min: 0})),\n      UI.boton('Confirmar consumo', async () => {\n        const actual = Almacen.laboratorio();\n        const datos = {articuloId: frascoId, loteId: lote.id, cantidad, clave, motivo: (r.nombre || r.formula) + ' · ' + (lote.codigo || lote.id)};\n        const resultado = Laboratorio.consume(actual, datos);\n        if (resultado.error) { toast(resultado.error, 'warn'); return; }\n        const frasco = actual.inventario.find(a => a.id === frascoId);\n        if (!(await UI.confirma({titulo: 'Confirmar consumo', texto: 'Descontar ' + numero(cantidad) + ' ' + frasco.unidad + ' del frasco ' + (frasco.lote || frasco.id) + ' para este lote.'}))) return;\n        // Volver a leer tras el diálogo evita sobrescribir otro consumo local.\n        const definitivo = Laboratorio.consume(Almacen.laboratorio(), datos);\n        if (definitivo.error) { toast(definitivo.error, 'warn'); return; }\n        try { await Almacen.guardaLaboratorio(definitivo.laboratorio); Marco.repinta(); }\n        catch (error) { toast(error.message + ' El consumo no se ha guardado.', 'warn'); }\n      }, {mini: true}));\n  }).filter(Boolean);\n  if (filas.length) c.append(h('h3', null, 'Registrar consumo por frasco'), h('p', {class: 'nota'}, 'Un consumo confirmado por reactivo y ejecución. La cantidad planeada sirve de referencia; introduce la cantidad real.'), ...filas);\n}\n",
  "src/js/49-p-biblioteca.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nMarco.registra('biblioteca', c => {\n  c.append(UI.cabecera('BIBLIOTECA', 'Buscar protocolos', 'Busca por título, tipo o resumen. Se admiten pequeñas diferencias de escritura; todos los datos permanecen en este navegador.'));\n  const resultados = h('div', {'aria-live': 'polite'});\n  const pinta = consulta => {\n    const lista = Busqueda.protocolos(Almacen.indice(), consulta);\n    resultados.replaceChildren(h('p', {class: 'nota'}, lista.length + ' protocolos encontrados'), ...lista.map(p =>\n      h('article', {class: 'tarjeta-item'}, h('h3', null, p.titulo || 'Protocolo sin título'), h('p', {class: 'nota'}, p.resumen),\n        h('div', {class: 'fila-botones'}, UI.boton('Abrir protocolo', async () => {\n          const resultado = await Estado.abre(p.id);\n          if (resultado.error) toast(resultado.error, 'warn'); else Marco.irA('general');\n        }, {mini: true})))));\n  };\n  c.append(UI.campo('Buscar', UI.texto('', pinta, {placeholder: 'Título, disciplina o tipo…'})), resultados);\n  pinta('');\n});\n",
  "src/js/50-p-placas.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nMarco.registra('placas',(c,p)=>{\n  c.append(UI.cabecera('DISEÑO EXPERIMENTAL','Placas y muestras','Distribución, controles y réplicas. Los volúmenes son previstos; los resultados sólo se registran cuando los escribes o importas.'));\n  let formato='96';\n  c.append(Editar.rejilla(UI.campo('Formato de la placa',UI.selector(formato,Object.keys(Placas.FORMATOS).map(x=>[x,x+' pozos']),v=>{formato=v;}))),\n    UI.boton('Crear placa',()=>Estado.cambia(q=>{q.placas.push(Placas.nueva(+formato,''));})));\n  for(const placa of p.placas) {\n    const cambia=(fn,silencioso)=>Estado.cambia(q=>{const x=q.placas.find(x=>x.id===placa.id);if(x)fn(x);},{silencioso:!!silencioso,grupo:'placa-'+placa.id});\n    const posiciones=Placas.posiciones(placa),[filas,columnas]=Placas.FORMATOS[placa.formato];\n    const mapa=h('div',{class:'placa-scroll'},h('table',{class:'tabla placa-mapa'},\n      h('caption',null,placa.nombre || 'Placa de '+placa.formato+' pozos'),\n      h('thead',null,h('tr',null,h('th',{scope:'col'},'Fila'),Array.from({length:columnas},(_,i)=>h('th',{scope:'col'},String(i+1))))),\n      h('tbody',null,Array.from({length:filas},(_,i)=>h('tr',null,h('th',{scope:'row'},String.fromCharCode(65+i)),Array.from({length:columnas},(_,j)=>{\n        const id=String.fromCharCode(65+i)+(j+1),x=placa.pozos[id] || {};\n        return h('td',null,UI.boton(id+(x.muestra ? ' · '+x.muestra : '')+(x.rol && x.rol!=='muestra' ? ' · '+x.rol : ''),()=>editaPozo(placa,id),{mini:true,aria:'Editar pozo '+id+(x.muestra ? ', muestra '+x.muestra : '')}));\n      }))))));\n    c.append(h('section',{class:'bloque'},Editar.rejilla(\n      UI.campo('Nombre de la placa',UI.texto(placa.nombre,v=>cambia(x=>{x.nombre=v;},true))),\n      UI.campo('Capacidad por pozo',UI.numero(placa.capacidad,v=>cambia(x=>{x.capacidad=v;},true),{min:0}),{unidad:'µL'})),mapa,\n      h('div',{class:'fila-botones'},UI.boton('Diseñar dilución seriada',()=>seriePlaca(placa),{mini:true}),UI.boton('Planificar transferencia',()=>transferenciaPlaca(placa),{mini:true}),\n        UI.boton('Exportar placa CSV',()=>UI.descarga(UI.nombreArchivo(placa.nombre || 'placa')+'.csv',Placas.csv(placa),'text/csv'),{mini:true}),\n        UI.boton('Importar placa CSV',async()=>{\n          const f=await Importar.eligeArchivo('.csv,text/csv');if(!f)return;\n          const r=Placas.importaCSV(placa,f.texto);if(r.error){toast(r.error,'warn');return;}\n          if(!await UI.confirma({titulo:'Importar valores de placa',texto:'Se actualizarán los pozos indicados en el CSV de esta placa.',si:'Importar'}))return;\n          cambia(x=>Object.assign(x,r.placa));\n        },{mini:true}),UI.boton('Quitar placa',async()=>{if(await UI.confirma({titulo:'Quitar placa',texto:'Se quitará este diseño del protocolo. Puedes deshacer el cambio.',si:'Quitar'}))Estado.cambia(q=>{q.placas=q.placas.filter(x=>x.id!==placa.id);});},{mini:true})),\n      placa.transferencias.length ? Calculadoras.tabla(['Origen','Destino','Volumen previsto (µL)','Fecha del plan'],placa.transferencias.map(x=>[x.origen,x.destino,numero(x.volumen),x.fecha])) : null));\n  }\n  c.append(h('section',{class:'bloque'},h('h3',null,'Registro de muestras'),\n    UI.boton('Añadir muestra',()=>Estado.cambia(q=>{q.muestras.push(Muestras.nueva());}),{mini:true}),\n    p.muestras.map(x=>h('article',{class:'tarjeta-item'},Editar.rejilla(\n      UI.campo('Identificador de muestra',UI.texto(x.nombre,Editar.campo('muestras',x.id,'nombre'))),\n      UI.campo('Origen de la muestra',UI.texto(x.origen,Editar.campo('muestras',x.id,'origen'))),\n      UI.campo('Ejecución de la muestra',UI.selector(x.loteId,[['','Sin vincular']].concat(p.lotes.map(l=>[l.id,l.codigo || l.id])),Editar.campo('muestras',x.id,'loteId')))),\n      UI.campo('Notas de la muestra',UI.texto(x.notas,Editar.campo('muestras',x.id,'notas'),{area:true})),\n      MuestrasUI.ficha(x)))));\n});\nfunction editaPozo(placa,id) {\n  const x=Object.assign({muestra:'',grupo:'',rol:'muestra',replica:null,volumen:null,concentracion:null,unidadConcentracion:'',resultado:null},placa.pozos[id] || {});\n  const muestras=[['','Sin muestra']].concat(Estado.p.muestras.map(m=>[m.id,m.nombre || m.id]));\n  UI.modal({titulo:'Pozo '+id,tam:'md',cuerpo:[Editar.rejilla(\n    UI.campo('Muestra del pozo',UI.selector(x.muestra,muestras,v=>{x.muestra=v;})),UI.campo('Grupo experimental',UI.texto(x.grupo,v=>{x.grupo=v;})),\n    UI.campo('Función del pozo',UI.selector(x.rol,[['muestra','Muestra'],['blanco','Blanco'],['controlPositivo','Control positivo'],['controlNegativo','Control negativo'],['patron','Patrón']],v=>{x.rol=v;})),\n    UI.campo('Réplica',UI.numero(x.replica,v=>{x.replica=v;},{min:1})),UI.campo('Volumen inicial previsto',UI.numero(x.volumen,v=>{x.volumen=v;},{min:0}),{unidad:'µL'}),\n    UI.campo('Concentración prevista',UI.numero(x.concentracion,v=>{x.concentracion=v;},{min:0})),UI.campo('Unidad de concentración',UI.texto(x.unidadConcentracion,v=>{x.unidadConcentracion=v;})),\n    UI.campo('Resultado medido',UI.numero(x.resultado,v=>{x.resultado=v;})))],pie:[UI.boton('Cancelar',()=>UI.cierraModal()),UI.boton('Guardar pozo',()=>{\n      if((x.volumen!=null && (x.volumen<0 || (placa.capacidad!=null && x.volumen>placa.capacidad))) || (x.replica!=null && (!Number.isInteger(x.replica) || x.replica<1)) || (x.concentracion!=null && x.concentracion<0)){toast('Revisa volumen, capacidad, concentración y réplica.','warn');return;}\n      Estado.cambia(q=>{q.placas.find(y=>y.id===placa.id).pozos[id]=x;});UI.cierraModal();\n    },{tipo:'pri'})]});\n}\nfunction transferenciaPlaca(placa) {\n  let origen='',destino='',volumen=null;const posiciones=[['','Elige…']].concat(Placas.posiciones(placa).map(x=>[x,x]));\n  UI.modal({titulo:'Planificar transferencia',tam:'md',cuerpo:[Editar.rejilla(UI.campo('Pozo de origen',UI.selector(origen,posiciones,v=>{origen=v;})),UI.campo('Pozo de destino',UI.selector(destino,posiciones,v=>{destino=v;})),UI.campo('Volumen a transferir',UI.numero(volumen,v=>{volumen=v;}),{unidad:'µL'})),h('p',{class:'nota'},'Actualiza volúmenes previstos y conserva el plan. La transferencia real se registra durante la ejecución.')],pie:[UI.boton('Cancelar',()=>UI.cierraModal()),UI.boton('Aplicar transferencia',()=>{\n    const actual=Estado.p.placas.find(x=>x.id===placa.id),r=Placas.transfiere(actual,origen,destino,volumen);if(r.error){toast(r.error,'warn');return;}\n    Estado.cambia(q=>{q.placas[q.placas.findIndex(x=>x.id===placa.id)]=r.placa;});UI.cierraModal();toast(r.explicacion,'ok');\n  },{tipo:'pri'})]});\n}\nfunction seriePlaca(placa) {\n  let pozos='',inicial=null,factor=2,unidad='';\n  UI.modal({titulo:'Diseñar dilución seriada',tam:'md',cuerpo:[Editar.rejilla(UI.campo('Pozos en orden',UI.texto(pozos,v=>{pozos=v;},{placeholder:'A1, A2, A3…'})),UI.campo('Concentración inicial',UI.numero(inicial,v=>{inicial=v;})),UI.campo('Factor de dilución',UI.numero(factor,v=>{factor=v;})),UI.campo('Unidad de concentración',UI.texto(unidad,v=>{unidad=v;})))],pie:[UI.boton('Cancelar',()=>UI.cierraModal()),UI.boton('Aplicar serie',()=>{\n    const ids=pozos.split(/[,;\\s]+/).filter(Boolean).map(x=>x.toUpperCase()),r=Placas.serie(Estado.p.placas.find(x=>x.id===placa.id),ids,inicial,factor,unidad);if(r.error){toast(r.error,'warn');return;}\n    Estado.cambia(q=>{q.placas[q.placas.findIndex(x=>x.id===placa.id)]=r.placa;});UI.cierraModal();toast(r.explicacion,'ok');\n  },{tipo:'pri'})]});\n}\n",
  "src/js/51-p-analisis.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Graficas = (()=>{\n  let instancias=[];\n  function limpia(){for(const x of instancias)x.dispose();instancias=[];}\n  function puntos(nodo,datos,tipo,etiquetaX,etiquetaY) {\n    const color=getComputedStyle(document.documentElement).getPropertyValue('--tinta').trim() || 'currentColor';\n    const grafica=window.Bibliotecas.echarts.init(nodo,null,{renderer:'svg'});instancias.push(grafica);\n    grafica.setOption({animation:false,textStyle:{color},grid:{left:65,right:20,bottom:70,top:30},xAxis:{type:'value',name:etiquetaX,nameLocation:'middle',nameGap:35},yAxis:{type:'value',name:etiquetaY},dataZoom:[{type:'inside'},{type:'slider',height:18}],series:[{type:tipo,data:datos,symbolSize:7,lineStyle:{width:2}}]});\n    return grafica;\n  }\n  document.addEventListener('erlen-methods:pantalla',()=>{if(Marco.actual!=='analisis')limpia();});\n  window.addEventListener('resize',()=>instancias.forEach(x=>x.resize()));\n  return {puntos,limpia};\n})();\nMarco.registra('analisis',(c,p)=>{\n  Graficas.limpia();\n  c.append(UI.cabecera('RESULTADOS','Análisis de resultados','Ajustes y diagnósticos con datos escritos por ti. Conserva el modelo, las entradas y sus supuestos junto al protocolo.'));\n  let texto='',ponderada=false,consulta=null,uNueva=null,respuesta=null,repeticiones=1;\n  const salida=h('div',{'aria-live':'polite'});\n  c.append(h('section',{class:'bloque'},h('h3',null,'Calibración y residuos'),UI.campo('Datos de calibración',UI.texto(texto,v=>{texto=v;},{area:true,filas:5,placeholder:'Una fila por patrón: x; y; u(y), separados por punto y coma. Usa punto decimal.'}),{ayuda:'La tercera columna se requiere en ajuste ponderado.'}),\n    UI.casilla('Usar incertidumbres conocidas para ponderar',ponderada,v=>{ponderada=v;}),Editar.rejilla(UI.campo('x de una nueva respuesta',UI.numero(consulta,v=>{consulta=v;})),UI.campo('Incertidumbre de la nueva respuesta',UI.numero(uNueva,v=>{uNueva=v;}))),\n    Editar.rejilla(UI.campo('Respuesta media de la muestra',UI.numero(respuesta,v=>{respuesta=v;})),UI.campo('Lecturas independientes de la muestra',UI.numero(repeticiones,v=>{repeticiones=v;},{min:1,max:100000}))),\n    UI.boton('Calcular calibración',()=>{\n      const filas=texto.split(/\\n/).filter(x=>x.trim()).map(x=>x.split(';').map(v=>v.trim())),datos=filas.map(x=>({x:x[0] ? UI.leeNumero(x[0]) : NaN,y:x[1] ? UI.leeNumero(x[1]) : NaN,u:x[2] ? UI.leeNumero(x[2]) : null}));\n      if(filas.some(x=>x.length<2 || x.length>3)){toast('Cada fila requiere x; y y, opcionalmente, u(y).','warn');return;}\n      const r=Analisis.calibracion(datos,ponderada);salida.replaceChildren();if(r.error){salida.append(UI.aviso('error',r.error));return;}\n      salida.append(Calculadoras.tabla(['Magnitud','Valor'],[['Pendiente',numero(r.pendiente)],['Intercepto',numero(r.intercepto)],['R²',numero(r.r2)],['Grados de libertad',String(r.gl)]]),h('p',{class:'explicacion'},r.explicacion));\n      const pred=consulta==null ? null : Analisis.prediccion(r,consulta,uNueva);\n      if(pred)salida.append(h('p',{class:'calculado'},pred.error || 'Respuesta prevista: '+numero(pred.valor)+' ± '+numero(pred.intervalo)),h('p',{class:'explicacion'},pred.explicacion || ''));\n      const inversa=respuesta==null ? null : Analisis.inversa(r,respuesta,uNueva,repeticiones);\n      if(inversa)salida.append(h('p',{class:'calculado'},inversa.error || 'x de la muestra: '+numero(inversa.valor)+' · intervalo 95 % ['+numero(inversa.bajo)+'; '+numero(inversa.alto)+']'),h('p',{class:'explicacion'},inversa.explicacion || ''));\n      if(pred && pred.extrapolacion || inversa && inversa.extrapolacion)salida.append(UI.aviso('nota','El valor o su intervalo queda fuera del rango de los patrones. Comprueba el método antes de usar esta extrapolación.'));\n      const puntos=h('div',{class:'grafica-cientifica',role:'img','aria-label':'Patrones de calibración; los valores se muestran en la tabla siguiente'}),residuos=h('div',{class:'grafica-cientifica',role:'img','aria-label':'Residuos del ajuste; los valores se muestran en la tabla siguiente'});\n      salida.append(puntos,residuos,Calculadoras.tabla(['x','y','Ajustado','Residuo','Palanca','Residuo estándar','Distancia de Cook'],r.residuos.map(x=>[numero(x.x),numero(x.y),numero(x.ajustado),numero(x.residuo),numero(x.palanca),numero(x.residuoEstandar),numero(x.cook)])),h('p',{class:'nota'},'La palanca y la distancia de Cook ayudan a revisar patrones influyentes. No eliminan observaciones automáticamente. La distancia de Cook utiliza la dispersión residual estimada.'));\n      Graficas.limpia();Graficas.puntos(puntos,datos.map(x=>[x.x,x.y]),'scatter','x','y');const gr=Graficas.puntos(residuos,r.residuos.map(x=>[x.x,x.residuo]),'scatter','x','Residuo');\n      salida.append(UI.boton('Exportar gráfica de residuos SVG',()=>UI.descarga('residuos.svg',gr.renderToSVGString(),'image/svg+xml'),{mini:true}),UI.boton('Guardar análisis',()=>{if(Estado.p.analisis.length>=100){toast('Se alcanzaron 100 análisis. Exporta una copia antes de continuar.','warn');return;}Estado.cambia(q=>{q.analisis.push({id:uid('analisis'),tipo:'calibracion',fecha:ahora(),datos,ponderada,resultado:r,consulta,prediccion:pred,respuesta,uNueva,repeticiones,inversa});});},{mini:true}));\n    },{tipo:'pri',validar:true}),salida));\n  let expresion='',entradas='',pares='',n=10000,semilla=12345;const sim=h('div',{'aria-live':'polite'});\n  c.append(h('section',{class:'bloque'},h('h3',null,'Incertidumbre por Monte Carlo'),Editar.rejilla(UI.campo('Expresión del modelo',UI.texto(expresion,v=>{expresion=v;},{placeholder:'x*y'})),UI.campo('Simulaciones',UI.numero(n,v=>{n=v;})),UI.campo('Semilla reproducible',UI.numero(semilla,v=>{semilla=v;}))),\n    UI.campo('Entradas del modelo',UI.texto(entradas,v=>{entradas=v;},{area:true,filas:4,placeholder:'Una fila: nombre; valor; u estándar; normal, uniforme, triangular o lognormal'}),{ayuda:'Uniforme y triangular simétricas: el valor es su centro. Lognormal: el valor es su media aritmética positiva. u siempre es la desviación estándar.'}),\n    UI.campo('Correlaciones entre entradas normales',UI.texto(pares,v=>{pares=v;},{area:true,filas:3,placeholder:'Opcional, una fila: variable A; variable B; rho'}),{ayuda:'rho entre −1 y 1. La matriz completa debe ser semidefinida positiva.'}),UI.boton('Simular incertidumbre',()=>{\n      const filas=entradas.split(/\\n/).filter(x=>x.trim()).map(x=>x.split(';').map(y=>y.trim()));\n      const filasPares=pares.split(/\\n/).filter(x=>x.trim()).map(x=>x.split(';').map(y=>y.trim()));\n      if(filas.some(x=>x.length!==4) || filasPares.some(x=>x.length!==3)){toast('Cada entrada requiere cuatro campos y cada correlación tres, separados por punto y coma.','warn');return;}\n      const v=filas.map(x=>({nombre:x[0],valor:x[1] ? UI.leeNumero(x[1]) : NaN,u:x[2] ? UI.leeNumero(x[2]) : NaN,distribucion:x[3]}));\n      const correlaciones=filasPares.map(x=>({a:x[0],b:x[1],rho:x[2] ? UI.leeNumero(x[2]) : NaN}));\n      const r=Analisis.monteCarlo(expresion,v,n,semilla,correlaciones);sim.replaceChildren();if(r.error){sim.append(UI.aviso('error',r.error));return;}\n      sim.append(Calculadoras.tabla(['Magnitud','Valor'],[['Media',numero(r.media)],['Incertidumbre estándar',numero(r.u)],['Límite inferior 95 %',numero(r.bajo)],['Límite superior 95 %',numero(r.alto)],['Error estándar de la media simulada',numero(r.errorMedia)]]),h('p',{class:'explicacion'},r.explicacion),UI.boton('Guardar simulación',()=>{if(Estado.p.analisis.length>=100){toast('Se alcanzaron 100 análisis. Exporta una copia antes de continuar.','warn');return;}Estado.cambia(q=>{q.analisis.push({id:uid('analisis'),tipo:'monteCarlo',fecha:ahora(),expresion,entradas:v,correlaciones,resultado:r});});},{mini:true}));\n      const hist=h('div',{class:'grafica-cientifica',role:'img','aria-label':'Frecuencias por intervalo de la simulación; recuentos en la tabla siguiente'});sim.append(hist,Calculadoras.tabla(['Desde','Hasta','Simulaciones','Frecuencia'],r.histograma.map(x=>[numero(x.desde),numero(x.hasta),String(x.cantidad),numero(x.cantidad/r.n)])));\n      Graficas.puntos(hist,r.histograma.map(x=>[x.desde+(x.hasta-x.desde)/2,x.cantidad/r.n]),'line','Resultado','Frecuencia');\n    },{validar:true}),sim));\n  const valores=p.lotes.filter(x=>x.resultado!=null),grupos=new Map();\n  for(const l of valores){const clave=l.revision ? Protocolo.claveRevision(l.revision.protocolo) : 'desconocida';if(!grupos.has(clave))grupos.set(clave,[]);grupos.get(clave).push(l);}\n  if(grupos.size){c.append(h('h3',null,'Tendencias por revisión'));for(const [clave,lotes] of grupos){const nodo=h('div',{class:'grafica-cientifica',role:'img','aria-label':'Resultados en orden de registro; valores en la tabla'});c.append(h('p',{class:'nota'},clave==='desconocida' ? 'Referencia histórica desconocida; no se calculan límites de control.' : 'Revisión conservada '+lotes[0].revision.id),nodo,Calculadoras.tabla(['Orden','Lote','Fecha','Resultado'],lotes.map((l,i)=>[String(i+1),l.codigo,l.fecha,numero(l.resultado)])));Graficas.puntos(nodo,lotes.map((l,i)=>[i+1,l.resultado]),'line','Orden de registro','Resultado');}}\n  if(p.analisis.length)c.append(h('section',{class:'bloque'},h('h3',null,'Análisis conservados'),p.analisis.map(x=>h('article',{class:'tarjeta-item'},h('p',null,x.tipo+' · '+x.fecha),x.tipo==='cuantificacionPlaca' && Array.isArray(x.resultados) ? CuantificacionUI.tabla(x) : null,UI.boton('Descargar análisis JSON',()=>UI.descarga(x.id+'.json',JSON.stringify(x,null,2),'application/json'),{mini:true}),UI.boton('Quitar análisis',()=>Editar.quita('analisis',x.id,'el análisis'),{mini:true})))));\n});\n",
  "src/js/52-p-bibliografia.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Documentos = (()=>{\n  async function word(p,opciones) {\n    const d=window.Bibliotecas.docx, o=opciones || {}, hijos=[];\n    const parrafo=(texto,nivel)=>new d.Paragraph({text:String(texto || ''),heading:nivel});\n    const tabla=(cabecera,filas)=>new d.Table({rows:[cabecera,...filas].map((fila,i)=>new d.TableRow({tableHeader:i===0,children:fila.map(c=>new d.TableCell({children:[new d.Paragraph({children:[new d.TextRun({text:String(c ?? ''),bold:i===0})]})]}))}))});\n    hijos.push(parrafo(p.titulo || 'Protocolo sin título',d.HeadingLevel.TITLE),parrafo(p.objetivo),parrafo(p.autores));\n    for(const b of Redaccion.seccion(p,o.idioma || 'es'))hijos.push(parrafo(b.titulo,d.HeadingLevel.HEADING_1),parrafo(b.texto));\n    if(p.reactivos.length)hijos.push(parrafo('Reactivos del lote base',d.HeadingLevel.HEADING_1),tabla(['Reactivo','Fórmula','Cantidad','Unidad','Pureza (%)'],p.reactivos.map(r=>[r.nombre,r.formula,r.cantidad==null ? '' : r.cantidad,r.unidad,r.pureza==null ? '' : r.pureza])));\n    if(p.muestras.length){\n      hijos.push(parrafo('Muestras declaradas',d.HeadingLevel.HEADING_1),tabla(['ID','Nombre','Origen declarado','Derivada de','Ubicación','Cantidad','Unidad','Estado'],p.muestras.map(x=>[x.id,x.nombre,x.origen,x.derivadaDe,x.ubicacion,x.cantidad,x.unidad,x.estado])));\n      for(const m of p.muestras){\n        if(m.derivacion)hijos.push(parrafo('Procedencia conservada de '+m.nombre+': '+m.derivacion.nombre+' · '+m.derivacion.cantidadTransferida+' '+m.derivacion.unidad+' · '+m.derivacion.fecha+' · '+m.derivacion.motivo));\n        if(m.notas)hijos.push(parrafo(m.nombre+' · '+m.notas));\n        for(const x of m.historial || [])hijos.push(parrafo(x.fecha+' · '+m.nombre+' · '+x.tipo+' · '+x.motivo));\n      }\n    }\n    if((p.secuencias || []).length)hijos.push(parrafo('Secuencias declaradas',d.HeadingLevel.HEADING_1),tabla(['Identificador','Alfabeto','Longitud','Muestra ID','SHA-256 normalizado'],p.secuencias.map(s=>[s.identificador,s.tipo,String(s.secuencia.length),s.muestraId,s.sha256])));\n    if(p.lotes.length)hijos.push(parrafo('Registros de ejecución',d.HeadingLevel.HEADING_1),tabla(['Lote','Fecha','Revisión','Estado','Resultado','Unidad'],p.lotes.map(l=>[l.codigo,l.fecha,l.revision ? l.revision.id : 'Referencia histórica desconocida',l.ejecucion.estado,l.resultado==null ? '' : l.resultado,Lotes.protocolo(p,l).resultadoUnidad])));\n    const revisiones=new Map();\n    for(const l of p.lotes){\n      hijos.push(parrafo('Ejecución '+(l.codigo || l.id),d.HeadingLevel.HEADING_2),parrafo(l.observaciones),parrafo(l.ejecucion.muestras));\n      if(l.operador)hijos.push(parrafo('Operador declarado: '+l.operador));\n      if(l.ejecucion.inicio)hijos.push(parrafo('Inicio registrado: '+l.ejecucion.inicio));if(l.ejecucion.fin)hijos.push(parrafo('Final registrado: '+l.ejecucion.fin));\n      for(const [id,x] of Object.entries(l.ejecucion.pasos || {}))hijos.push(parrafo(id+' · '+(x.completado ? 'Completado '+x.fecha : 'Pendiente')+' · '+x.nota));\n      if((l.ejecucion.muestrasRegistros || []).length)hijos.push(parrafo('Muestras conservadas',d.HeadingLevel.HEADING_3),tabla(['ID','Nombre','Origen declarado','Derivada de','Ubicación','Cantidad','Unidad'],l.ejecucion.muestrasRegistros.map(x=>[x.id,x.nombre,x.origen,x.derivadaDe,x.ubicacion,x.cantidad,x.unidad])));\n      if(l.ejecucion.equipos.length)hijos.push(parrafo('Equipos y calibración conservados',d.HeadingLevel.HEADING_3),tabla(['Identificador','Nombre','Última calibración','Próxima calibración','Tolerancia','Unidad'],l.ejecucion.equipos.map(x=>[x.identificador,x.nombre,x.ultimaCalibracion,x.proximaCalibracion,x.tolerancia,x.unidad])));\n      for(const placa of l.ejecucion.placas || []) {\n        hijos.push(parrafo('Registros reales de placa · '+(placa.nombre || placa.id),d.HeadingLevel.HEADING_3),tabla(['Pozo','Muestra ID','Volumen real (µL)','Resultado','Unidad','Fecha medida','Fecha registro'],Object.entries(placa.pozos).map(([id,x])=>[id,x.muestraId,x.volumenReal,x.resultado,x.unidadResultado,x.fechaMedida,x.fechaRegistro])));\n        for(const x of placa.historial)hijos.push(parrafo(x.fecha+' · '+(x.tipo==='registroPozo' ? 'Registro '+x.pozo : 'Transferencia '+x.origen+' → '+x.destino+' · '+x.volumen+' µL')+' · '+(x.motivo || '')));\n      }\n      if(l.revision){const clave=Protocolo.claveRevision(l.revision.protocolo);if(!revisiones.has(clave))revisiones.set(clave,{revision:l.revision,lotes:[]});revisiones.get(clave).lotes.push(l.codigo || l.id);}\n    }\n    if(revisiones.size)hijos.push(parrafo('Definiciones conservadas por ejecución',d.HeadingLevel.HEADING_1));\n    for(const {revision,lotes} of revisiones.values()){\n      hijos.push(parrafo('Revisión '+revision.id+' · lotes '+lotes.join(', '),d.HeadingLevel.HEADING_2),parrafo(revision.fecha+' · '+revision.nota));\n      for(const b of Redaccion.seccion(revision.protocolo,o.idioma || 'es'))hijos.push(parrafo(b.titulo,d.HeadingLevel.HEADING_3),parrafo(b.texto));\n      for(const r of revision.protocolo.referencias || [])hijos.push(parrafo('Referencia conservada: '+Bibliografia.etiqueta(r)));\n    }\n    for(const placa of p.placas)hijos.push(parrafo('Placa '+(placa.nombre || placa.id),d.HeadingLevel.HEADING_1),parrafo('Distribución prevista; resultados sólo cuando están registrados.'),tabla(['Pozo','Muestra','Grupo','Volumen previsto (µL)','Resultado'],Placas.posiciones(placa).filter(id=>placa.pozos[id]).map(id=>{const x=placa.pozos[id];return [id,x.muestra,x.grupo,x.volumen==null ? '' : x.volumen,x.resultado==null ? '' : x.resultado];})));\n    if(p.referencias.length)hijos.push(parrafo('Referencias',d.HeadingLevel.HEADING_1),...p.referencias.map((r,i)=>parrafo('['+(i+1)+'] '+Bibliografia.etiqueta(r))));\n    const usados=Protocolo.adjuntosUsados(p);if(usados.error)throw new Error(usados.error);\n    if(usados.archivos.length)hijos.push(parrafo('Índice de archivos adjuntos del protocolo y sus revisiones',d.HeadingLevel.HEADING_1),...usados.archivos.map(x=>parrafo(x.nombre+' · '+x.bytes+' bytes · SHA-256 '+x.sha256)));\n    if(p.analisis.length)hijos.push(parrafo('Análisis conservados',d.HeadingLevel.HEADING_1));\n    for(const a of p.analisis){\n      hijos.push(parrafo(a.tipo+' · '+a.fecha,d.HeadingLevel.HEADING_2));\n      if(a.tipo==='cuantificacionPlaca' && a.fuente && a.opciones && Array.isArray(a.resultados) && a.resultados.every(x=>x && x.lectura && [x.valor,x.bajo,x.alto].every(Number.isFinite))){\n        hijos.push(parrafo('Concentraciones calculadas; las respuestas originales se conservan por separado.'),parrafo('Ejecución '+a.fuente.loteId+' · revisión '+a.fuente.revisionId+' · placa '+a.fuente.placaId),parrafo('Factor de dilución declarado: '+a.opciones.factorDilucion+'; se trata como exacto.'),tabla(['Pozo','Respuesta original','Unidad respuesta','Concentración','Inferior 95 %','Superior 95 %','Unidad concentración','Rango'],a.resultados.map(x=>[x.pozo,x.lectura.resultado,x.lectura.unidadResultado,x.valor,x.bajo,x.alto,a.opciones.unidadConcentracion,x.extrapolacion ? 'Fuera de calibración' : 'Dentro de calibración'])),parrafo(a.explicacion),parrafo('SHA-256 de las fuentes conservadas: '+a.sha256Fuente));\n        if(Array.isArray(a.fuente.calibracion?.datos))hijos.push(parrafo('Patrones conservados de la cuantificación'),tabla(['x declarado','y declarado','u(y) declarada'],a.fuente.calibracion.datos.map(x=>[x.x,x.y,x.u])));\n      }else if(a.tipo==='calibracion' && a.resultado){\n        hijos.push(tabla(['Patrón x','Respuesta y','u(y)'],(a.datos || []).map(x=>[x.x,x.y,x.u])),tabla(['Magnitud','Valor'],[['Pendiente',a.resultado.pendiente],['Intercepto',a.resultado.intercepto],['R²',a.resultado.r2],['Grados de libertad',a.resultado.gl]]),parrafo(a.resultado.explicacion));\n        if(a.inversa)hijos.push(parrafo(a.inversa.error || 'Concentración por inversión: '+a.inversa.valor+' · intervalo 95 % ['+a.inversa.bajo+'; '+a.inversa.alto+']'),parrafo(a.inversa.explicacion));\n      }else if(a.tipo==='monteCarlo' && a.resultado){\n        if((a.correlaciones || []).length)hijos.push(tabla(['Entrada A','Entrada B','Correlación declarada'],a.correlaciones.map(x=>[x.a,x.b,x.rho])));\n        const r=a.resultado;hijos.push(parrafo('Modelo: '+a.expresion),tabla(['Entrada','Valor','u estándar','Distribución'],(a.entradas || []).map(x=>[x.nombre,x.valor,x.u,x.distribucion])),tabla(['Magnitud','Valor'],[['Media',r.media],['u estándar',r.u],['Inferior 95 %',r.bajo],['Superior 95 %',r.alto],['Simulaciones',r.n],['Semilla',r.semilla]]),parrafo(r.explicacion));\n      }else hijos.push(parrafo('Los datos completos de este análisis se conservan en su JSON y en el paquete de investigación.'));\n    }\n\n    const doc=new d.Document({creator:p.autores || undefined,title:p.titulo || undefined,styles:{default:{document:{run:{font:'Times New Roman',size:24}}}},sections:[{children:hijos}]});\n    return new Uint8Array(await d.Packer.toArrayBuffer(doc));\n  }\n  return {word};\n})();\nMarco.registra('bibliografia',(c,p)=>{\n  c.append(UI.cabecera('PUBLICACIÓN','Bibliografía y documentos','Importa y exporta referencias locales, vincula las condiciones a sus fuentes y redacta documentos con anexos de ejecución.'));\n  let formato='bibtex',texto='';\n  c.append(h('section',{class:'bloque'},Editar.rejilla(UI.campo('Formato bibliográfico',UI.selector(formato,[['bibtex','BibTeX'],['ris','RIS'],['csl','CSL JSON']],v=>{formato=v;}))),UI.campo('Bibliografía para importar',UI.texto(texto,v=>{texto=v;},{area:true,filas:6})),\n    h('div',{class:'fila-botones'},UI.boton('Leer archivo bibliográfico',async()=>{const f=await Importar.eligeArchivo('.bib,.ris,.json,text/plain');if(f){texto=f.texto;const area=c.querySelector('textarea');if(area)area.value=texto;}}),\n      UI.boton('Importar referencias',()=>{const r=Bibliografia.importa(texto,formato);if(r.error){toast(r.error,'warn');return;}Estado.cambia(q=>{for(const x of r.referencias){const existe=q.referencias.find(y=>x.DOI && y.DOI===x.DOI);if(!existe){if(q.referencias.some(y=>y.id===x.id))x.id=uid('ref');q.referencias.push(x);}}});toast(r.explicacion,'ok');},{tipo:'pri'}))));\n  if(p.referencias.length) {\n    c.append(h('section',{class:'bloque'},h('h3',null,'Referencias conservadas'),p.referencias.map((r,i)=>h('article',{class:'tarjeta-item'},h('p',null,'['+(i+1)+'] '+Bibliografia.etiqueta(r)),UI.boton('Vincular a una condición',()=>{\n      let condicion='',valor='',pagina='';UI.modal({titulo:'Vincular fuente a una condición',tam:'md',cuerpo:[Editar.rejilla(UI.campo('Condición publicada',UI.selector(condicion,[['','Elige…']].concat(Estado.p.literatura.map(x=>[x.id,x.parametro || x.id])),v=>{condicion=v;})),UI.campo('Valor citado',UI.texto(valor,v=>{valor=v;})),UI.campo('Página o sección',UI.texto(pagina,v=>{pagina=v;})))],pie:[UI.boton('Cancelar',()=>UI.cierraModal()),UI.boton('Vincular referencia',()=>{if(!condicion){toast('Elige una condición publicada de Datos generales.','warn');return;}Estado.cambia(q=>{const x=q.literatura.find(x=>x.id===condicion);if(x)x.fuentes.push({referenciaId:r.id,cita:Bibliografia.etiqueta(r),doi:r.DOI || '',valor:valor || null,pagina:pagina || null});});UI.cierraModal();},{tipo:'pri'})]});\n    },{mini:true}),UI.boton('Quitar referencia',()=>{\n      if(p.literatura.some(x=>x.fuentes.some(f=>f.referenciaId===r.id))){toast('La referencia está vinculada a condiciones publicadas; conserva la procedencia o quita esos vínculos primero.','warn');return;}\n      Editar.quita('referencias',r.id,'la referencia');\n    },{mini:true}))),h('div',{class:'fila-botones'},['bibtex','ris','csl'].map(f=>UI.boton('Exportar '+f.toUpperCase(),()=>{const r=Bibliografia.exporta(p.referencias,f);if(r.error)toast(r.error,'warn');else UI.descarga('referencias.'+(f==='csl' ? 'json' : f==='bibtex' ? 'bib' : f),r.texto,'text/plain');},{mini:true})))));\n  }\n  let ecuacion='';const vista=h('div',{class:'ecuacion-mathml','aria-live':'polite'});\n  c.append(h('section',{class:'bloque'},h('h3',null,'Vista de ecuaciones'),UI.campo('Ecuación LaTeX',UI.texto(ecuacion,v=>{ecuacion=v;},{placeholder:'u_c^2 = \\\\sum_i c_i^2 u_i^2'})),UI.boton('Mostrar ecuación',()=>{\n    try {vista.innerHTML=window.Bibliotecas.katex.renderToString(ecuacion,{output:'mathml',throwOnError:true,trust:false,strict:'error',maxExpand:1000});}\n    catch(error){vista.replaceChildren(UI.aviso('error','No se pudo leer la ecuación: '+error.message));}\n  }),vista));\n  c.append(h('div',{class:'fila-botones'},UI.boton('Descargar Word con anexos',async()=>{\n    try{UI.descarga(UI.nombreArchivo(p.titulo)+'-completo.docx',await Documentos.word(Estado.p,{idioma:Almacen.prefs().idioma}),'application/vnd.openxmlformats-officedocument.wordprocessingml.document');}catch(error){toast('No se pudo generar Word: '+error.message,'warn');}\n  },{tipo:'pri'}),UI.boton('Descargar Markdown',()=>Acciones.markdown()),UI.boton('Descargar LaTeX',()=>Acciones.latex())));\n});\n",
  "src/js/53-p-estructuras.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nMarco.registra('estructuras',(c,p)=>{\n  c.append(UI.cabecera('QUÍMICA','Estructuras químicas','Estructuras asociadas a los reactivos. Conserva el SMILES escrito y revisa la representación antes de usarla en documentos.'));\n  if(!p.reactivos.length){c.append(UI.vacio('Añade primero un reactivo','Su estructura se conservará dentro del protocolo.',UI.boton('Ir a Reactivos',()=>Marco.irA('reactivos'))));return;}\n  for(const r of p.reactivos) {\n    const vista=h('div',{'aria-live':'polite'});\n    const dibuja=()=>{\n      const actual=Editar.item(Estado.p,'reactivos',r.id),z=Moleculas.lee(actual.smiles);vista.replaceChildren();\n      if(z.error){if(actual.smiles)vista.append(UI.aviso('error',z.error));return;}\n      try {\n        const svg=document.createElementNS('http://www.w3.org/2000/svg','svg');svg.setAttribute('class','estructura-molecular');svg.setAttribute('role','img');svg.setAttribute('aria-label','Estructura de '+(r.nombre || r.formula || 'reactivo'));\n        vista.append(svg);const drawer=new window.Bibliotecas['smiles-drawer'].SmilesDrawer.SvgDrawer({width:420,height:240});drawer.draw(z.estructura,svg,'light');\n        vista.append(h('p',{class:'explicacion'},z.explicacion),UI.boton('Exportar estructura SVG',()=>UI.descarga(UI.nombreArchivo(r.nombre || 'estructura')+'.svg',new XMLSerializer().serializeToString(svg),'image/svg+xml'),{mini:true}));\n      }catch(error){vista.append(UI.aviso('error','No se pudo dibujar la estructura: '+error.message));}\n    };\n    c.append(h('section',{class:'bloque'},h('h3',null,r.nombre || r.formula || 'Reactivo'),\n      UI.campo('SMILES de '+(r.nombre || r.id),UI.texto(r.smiles,Editar.campo('reactivos',r.id,'smiles'),{placeholder:'Escribe el SMILES de tu sustancia'})),\n      h('div',{class:'fila-botones'},UI.boton('Dibujar estructura',dibuja),UI.boton('Importar archivo SMILES',async()=>{\n        const f=await Importar.eligeArchivo('.smi,.smiles,text/plain');if(!f)return;\n        const lineas=f.texto.trim().split(/\\n/).filter(x=>x.trim());if(lineas.length!==1){toast('Importa un archivo con una estructura por reactivo.','warn');return;}\n        const smiles=lineas[0].trim().split(/\\s+/)[0],z=Moleculas.lee(smiles);if(z.error){toast(z.error,'warn');return;}\n        Estado.cambia(q=>{Editar.item(q,'reactivos',r.id).smiles=smiles;});\n      },{mini:true}),UI.boton('Exportar SMILES',()=>UI.descarga(UI.nombreArchivo(r.nombre || 'estructura')+'.smi',r.smiles+'\\n','text/plain'),{mini:true})),vista));\n    if(r.smiles)dibuja();\n  }\n});\n",
  "src/js/54-p-archivos.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst Respaldos = (()=>{\n  const FORMATO='erlen-methods-respaldo-v1', MAXIMO=100*1024*1024;\n  async function crea() {\n    const guardado=await Estado.aseguraGuardado();if(guardado.error)throw new Error(guardado.error);\n    await Almacen.espera();\n    let datos=await Persistencia.respaldo();\n    if(Persistencia.modo!=='IndexedDB') {\n      datos={registros:[],adjuntos:[]};\n      for(let i=0;i<localStorage.length;i++){const k=localStorage.key(i);if(!k.startsWith(Almacen.PRE))continue;if(k.startsWith(Almacen.PRE+'adjunto.')){const x=JSON.parse(localStorage.getItem(k));datos.adjuntos.push({id:x.id,bytes:await Persistencia.adjunto(x.id)});}else if(k!==Almacen.PRE+'guardado-pendiente')datos.registros.push({clave:k,valor:localStorage.getItem(k)});}\n    }\n    const archivos=[['datos.json',JSON.stringify(datos.registros)]], partes=[];\n    datos.registros=datos.registros.filter(x=>!x.clave.startsWith(Almacen.PRE+'recuperacion.'));\n    archivos[0][1]=JSON.stringify(datos.registros);\n    for(const a of datos.adjuntos){const bytes=new Uint8Array(a.bytes),ruta='adjuntos/'+a.id;archivos.push([ruta,bytes]);partes.push({id:a.id,ruta,bytes:bytes.length,sha256:Evidencia.sha256(bytes)});}\n    const contenido=new TextEncoder().encode(archivos[0][1]);\n    archivos.push(['manifest.json',JSON.stringify({format:FORMATO,fecha:ahora(),version:window.ERLEN.version,datos:{bytes:contenido.length,sha256:Evidencia.sha256(contenido)},adjuntos:partes},null,2)]);\n    return Exportar.zip(archivos);\n  }\n  function lee(bytes) {\n    if(bytes.length>50*1024*1024)return {error:'El respaldo comprimido supera 50 MB.'};\n    try {\n      let total=0;\n      const archivos=window.fflate.unzipSync(bytes,{filter:f=>{total+=f.originalSize;if(total>MAXIMO)throw new Error('El respaldo descomprimido supera 100 MB.');return true;}});\n      if(!archivos['manifest.json'] || !archivos['datos.json'])throw new Error('Falta manifest.json o datos.json.');\n      const m=JSON.parse(new TextDecoder().decode(archivos['manifest.json']));\n      if(m.format!==FORMATO || !m.datos || !Array.isArray(m.adjuntos))throw new Error('Formato de respaldo desconocido.');\n      if(archivos['datos.json'].length!==m.datos.bytes || Evidencia.sha256(archivos['datos.json'])!==m.datos.sha256)throw new Error('Los datos no coinciden con su hash.');\n      const registros=JSON.parse(new TextDecoder().decode(archivos['datos.json'])),claves=new Set();\n      if(!Array.isArray(registros))throw new Error('Los registros no son una lista.');\n      for(const r of registros) {\n        if(!r || !r.clave || !r.clave.startsWith(Almacen.PRE) || claves.has(r.clave) || typeof r.valor!=='string')throw new Error('Clave de respaldo inválida o repetida.');claves.add(r.clave);\n        const v=JSON.parse(r.valor);\n        if(r.clave.startsWith(Almacen.PRE+'p.')) {if(v.format===Protocolo.FORMATO && (!ValidadorMethods(v) || Protocolo.integridad(v).length))throw new Error('Protocolo inválido en '+r.clave);const s=Protocolo.sanea(v);if(s.error || s.avisos.length)throw new Error('El protocolo no se puede restaurar sin cambios: '+r.clave);if(r.clave!==Almacen.PRE+'p.'+v.id)throw new Error('El identificador del protocolo no coincide con su clave.');}\n        if(r.clave===Almacen.PRE+'laboratorio' && (!v || v.format!==Laboratorio.FORMATO || !Array.isArray(v.inventario) || !Array.isArray(v.instrumentos)))throw new Error('Laboratorio inválido.');\n      }\n      const indice=registros.find(r=>r.clave===Almacen.PRE+'indice');\n      if(indice){const lista=JSON.parse(indice.valor);if(!Array.isArray(lista) || lista.some(x=>!x.id || !claves.has(Almacen.PRE+'p.'+x.id)))throw new Error('El índice apunta a protocolos ausentes.');}\n      const adjuntos=[],vistos=new Set();\n      for(const a of m.adjuntos) {\n        if(!a || !/^sha256-[a-f0-9]{64}$/.test(a.id) || a.ruta!=='adjuntos/'+a.id || vistos.has(a.id))throw new Error('Identificador de adjunto inválido.');vistos.add(a.id);\n        const b=archivos[a.ruta];if(!b || b.length!==a.bytes || Evidencia.sha256(b)!==a.sha256 || a.id!=='sha256-'+a.sha256)throw new Error('Adjunto ausente o alterado: '+a.id);adjuntos.push({id:a.id,bytes:b});\n      }\n      for(const r of registros.filter(r=>r.clave.startsWith(Almacen.PRE+'p.'))){const usados=Protocolo.adjuntosUsados(JSON.parse(r.valor));if(usados.error)throw new Error(usados.error);for(const a of usados.archivos)if(!vistos.has(a.id))throw new Error('Un protocolo o revisión referencia un adjunto ausente: '+a.nombre);}\n      return {registros,adjuntos,fecha:m.fecha,protocolos:registros.filter(x=>x.clave.startsWith(Almacen.PRE+'p.')).length};\n    }catch(error){return {error:'Respaldo rechazado: '+error.message};}\n  }\n  return {FORMATO,crea,lee};\n})();\nconst Recuperacion = (()=>{\n  function lista() {\n    const copias=[];\n    try {for(let i=0;i<localStorage.length;i++){\n      const clave=localStorage.key(i);if(!clave.startsWith(Almacen.PRE+'recuperacion.'))continue;\n      try {const x=JSON.parse(localStorage.getItem(clave));if(x && x.protocolo && typeof x.protocolo==='object')copias.push({clave,...x,valida:!!ValidadorMethods(x.protocolo)});}catch(error){/* Un registro ilegible no se borra. */}\n    }}catch(error){return [];}\n    return copias.sort((a,b)=>String(b.fecha).localeCompare(String(a.fecha)));\n  }\n  async function abre(clave) {\n    const x=lista().find(x=>x.clave===clave);if(!x)return {error:'La copia pendiente ya no está disponible.'};\n    const usados=Protocolo.adjuntosUsados(x.protocolo);if(usados.error)return usados;\n    for(const a of usados.archivos){const bytes=await Estado.archivo(a.id);if(!bytes || bytes.length!==a.bytes || Evidencia.sha256(bytes)!==a.sha256)return {error:'La copia cita un archivo ausente o con hash/tamaño incorrectos: '+a.nombre+'. Descarga la edición pendiente para conservar sus datos; no se abrió ni borró la copia.'};}\n    const p=deepCopy(x.protocolo);p.id=uid('p');p.titulo=(p.titulo || 'Protocolo')+' (copia recuperada)';p.modificado=ahora();\n    const r=await Estado.importa(JSON.stringify(p));\n    if(!r.error)localStorage.removeItem(clave);\n    return r;\n  }\n  return {lista,abre};\n})();\nMarco.registra('archivos',(c,p)=>{\n  c.append(UI.cabecera('ARCHIVOS','Adjuntos y respaldo','Archivos locales vinculados a protocolo, ejecución, muestra o instrumento. El hash verifica sus bytes; conserva copias fuera del navegador.'));\n  c.append(h('p',{class:'nota'},'Almacenamiento activo: '+Persistencia.modo+(Persistencia.error ? '. '+Persistencia.error : '.')));\n  const recuperables=Recuperacion.lista();\n  if(recuperables.length)c.append(h('section',{class:'bloque'},h('h3',null,'Ediciones pendientes de recuperación'),h('p',{class:'nota'},'Conservadas al cerrar o al ocultar una pestaña. Abre una copia para revisar sus cambios junto a la versión guardada.'),recuperables.map(x=>h('article',{class:'tarjeta-item'},h('h4',null,x.protocolo.titulo || 'Protocolo sin título'),h('p',{class:'nota'},x.fecha),!x.valida ? UI.aviso('nota','Esta edición contiene valores que no cumplen el formato. Descarga la copia para conservar todo su contenido.') : null,h('div',{class:'fila-botones'},x.valida ? UI.boton('Abrir copia recuperada',async()=>{const r=await Recuperacion.abre(x.clave);if(r.error)toast(r.error,'warn');else Marco.irA('general');}) : null,UI.boton('Descargar edición pendiente',()=>UI.descarga(UI.nombreArchivo(x.protocolo.titulo)+'-pendiente.json',JSON.stringify(x.protocolo,null,2),'application/json')))))));\n  if(Persistencia.modo==='localStorage')c.append(h('p',{class:'nota'},'Como archivo local, los adjuntos admiten hasta 1 MB cada uno y comparten la cuota de este navegador. Desde la suite se usa IndexedDB y el límite por archivo es 10 MB.'));\n  let tipo='protocolo',enlace=p.id;\n  const opciones=()=>tipo==='protocolo' ? [[p.id,p.titulo || 'Protocolo']] : tipo==='lote' ? p.lotes.map(x=>[x.id,x.codigo || x.id]) : tipo==='muestra' ? p.muestras.map(x=>[x.id,x.nombre || x.id]) : Almacen.laboratorio().instrumentos.map(x=>[x.id,x.nombre || x.id]);\n  const sel=UI.selector(enlace,opciones(),v=>{enlace=v;});\n  c.append(h('section',{class:'bloque'},Editar.rejilla(UI.campo('Vincular adjunto a',UI.selector(tipo,[['protocolo','Protocolo'],['lote','Ejecución'],['muestra','Muestra'],['instrumento','Instrumento']],v=>{tipo=v;const ops=opciones();enlace=ops.length ? ops[0][0] : '';sel.replaceChildren(...ops.map(x=>h('option',{value:x[0]},x[1])));})),UI.campo('Registro vinculado',sel)),\n    UI.boton('Añadir archivo adjunto',async()=>{\n      const i=h('input',{type:'file'});i.addEventListener('change',async()=>{\n        const f=i.files && i.files[0];i.remove();if(!f)return;if(!enlace){toast('Primero crea o selecciona el registro al que se vincula.','warn');return;}\n        const protocoloId=p.id;\n        if(f.size>10*1024*1024){toast('El adjunto supera 10 MB.','warn');return;}\n        try {\n          const bytes=new Uint8Array(await f.arrayBuffer()),r=Evidencia.adjunto(f.name,bytes,f.type,{tipo,id:enlace});if(r.error){toast(r.error,'warn');return;}\n          const guardado=await Estado.aseguraGuardado();if(guardado.error)throw new Error(guardado.error);\n          if(Estado.p.id!==protocoloId)throw new Error('El protocolo abierto cambió. Añade el archivo desde el protocolo al que pertenece.');\n          if(Estado.p.adjuntos.some(x=>x.id===r.archivo.id)){toast('Este archivo ya está vinculado al protocolo.','warn');return;}\n          const registro=await Estado.cambiaConArchivos(q=>{q.adjuntos.push(r.archivo);},[{id:r.archivo.id,bytes}]);if(registro.error)throw new Error(registro.error);\n          toast('Adjunto guardado y verificado: '+r.archivo.nombre,'ok');\n        }catch(error){toast('No se pudo guardar el adjunto: '+error.message,'warn');}\n      });document.body.append(i);i.click();\n    },{tipo:'pri'})));\n  for(const a of p.adjuntos)c.append(h('article',{class:'tarjeta-item'},h('h3',null,a.nombre),h('p',{class:'nota'},a.bytes+' bytes · '+a.enlace.tipo+' '+a.enlace.id),h('p',{class:'nota'},'SHA-256 '+a.sha256),h('div',{class:'fila-botones'},UI.boton('Descargar adjunto',async()=>{\n    try{const b=await Estado.archivo(a.id);if(!b || Evidencia.sha256(b)!==a.sha256)throw new Error('El archivo no está disponible o no coincide con su hash.');UI.descarga(a.nombre,b,a.tipo);}catch(error){toast(error.message,'warn');}\n  },{mini:true}),UI.boton('Quitar vínculo del adjunto',()=>Editar.quita('adjuntos',a.id,'el vínculo del adjunto'),{mini:true}))));\n  c.append(h('section',{class:'bloque'},h('h3',null,'Respaldo de todo el espacio de trabajo'),h('p',{class:'nota'},'Incluye biblioteca, laboratorio, plantillas, preferencias y archivos adjuntos. La restauración reemplaza el espacio de este navegador en una transacción.'),\n    h('div',{class:'fila-botones'},UI.boton('Descargar respaldo completo',async()=>{try{UI.descarga('erlen-methods-respaldo.zip',await Respaldos.crea(),'application/zip');}catch(error){toast(error.message,'warn');}},{tipo:'pri'}),\n      UI.boton('Restaurar respaldo completo',()=>{\n        const i=h('input',{type:'file',accept:'.zip,application/zip'});i.addEventListener('change',async()=>{\n          const f=i.files && i.files[0];i.remove();if(!f)return;\n          const r=Respaldos.lee(new Uint8Array(await f.arrayBuffer()));if(r.error){toast(r.error,'warn');return;}\n          if(!await UI.confirma({titulo:'Reemplazar el espacio de trabajo',texto:r.protocolos+' protocolos y '+r.adjuntos.length+' adjuntos del respaldo sustituirán los datos de este navegador. Descarga antes un respaldo si quieres conservarlos.',si:'Restaurar',peligro:true}))return;\n          try{await Estado.guardaYa();if(Estado.error)throw new Error(Estado.error);await Almacen.espera();\n            UI.modal({titulo:'Restaurando el espacio de trabajo',tam:'md',cuerpo:[h('p',{role:'status'},'Se están recuperando los protocolos, el laboratorio y sus archivos.')]});\n            await Almacen.restaura(r.registros,r.adjuntos);await Estado.descarta();location.reload();\n          }catch(error){UI.cierraModal();toast(error.message,'warn');}\n        });document.body.append(i);i.click();\n      })),UI.boton('Descargar paquete de investigación',async()=>{try{const p=deepCopy(Estado.p),adjuntos=[],usados=Protocolo.adjuntosUsados(p);if(usados.error)throw new Error(usados.error);for(const a of usados.archivos)adjuntos.push({id:a.id,bytes:await Estado.archivo(a.id)});const r=Paquete.completo(p,{adjuntos,version:window.ERLEN.version,idioma:Almacen.prefs().idioma});UI.descarga(UI.nombreArchivo(p.titulo)+'-investigacion.zip',r.zip,'application/zip');}catch(error){toast(error.message,'warn');}})));\n});\n",
  "src/js/55-p-laboratorio.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst LaboratorioUI = (()=>{\n  async function guarda(resultado) {\n    if(resultado.error){toast(resultado.error,'warn');return false;}\n    try{await Almacen.guardaLaboratorio(resultado.laboratorio);Marco.repinta();return true;}\n    catch(error){toast(error.message+' Descarga el laboratorio antes de recargar.','warn');return false;}\n  }\n  const nombre=a=>(a.nombre || a.formula || a.id)+(a.lote ? ' · '+a.lote : '')+' · '+a.unidad;\n  function movimiento() {\n    const activos=Almacen.laboratorio().inventario.filter(x=>!x.archivado);\n    if(!activos.length){toast('Añade un frasco activo al inventario.','warn');return;}\n    let articuloId=activos[0].id,tipo='entrada',cantidad=null,motivo='';const clave=uid('operacion');\n    const unidad=h('p',{class:'nota','aria-live':'polite'});\n    const actualiza=()=>{const a=Almacen.laboratorio().inventario.find(x=>x.id===articuloId);unidad.textContent=a ? 'Unidad del frasco: '+a.unidad+'. '+(tipo==='ajuste' ? 'Introduce el total del recuento, no la diferencia.' : 'Introduce la cantidad que se suma.') : 'El frasco ya no está disponible.';};actualiza();\n    const confirmar=UI.boton('Registrar movimiento',async()=>{\n      const datos={articuloId,tipo,cantidad,motivo,clave},r=Laboratorio.mueve(Almacen.laboratorio(),datos);\n      if(r.error){toast(r.error,'warn');return;}\n      confirmar.disabled=true;\n      try{if(await guarda(r)){UI.cierraModal();toast('Movimiento registrado con cantidad anterior y posterior.','ok');}}\n      finally{confirmar.disabled=false;}\n    },{tipo:'pri'});\n    UI.modal({titulo:'Entrada, devolución o recuento',tam:'md',cuerpo:[Editar.rejilla(\n      UI.campo('Frasco del movimiento',UI.selector(articuloId,activos.map(x=>[x.id,nombre(x)]),v=>{articuloId=v;actualiza();})),\n      UI.campo('Tipo de movimiento',UI.selector(tipo,[['entrada','Entrada'],['devolucion','Devolución'],['ajuste','Recuento: cantidad total']],v=>{tipo=v;actualiza();})),\n      UI.campo('Cantidad del movimiento',UI.numero(cantidad,v=>{cantidad=v;},{min:0}))),unidad,\n      UI.campo('Motivo del movimiento',UI.texto(motivo,v=>{motivo=v;},{area:true,filas:2}))],pie:[UI.boton('Cancelar',()=>UI.cierraModal()),confirmar]});\n  }\n  function reserva() {\n    const lab=Almacen.laboratorio(),activos=lab.inventario.filter(x=>!x.archivado),lotes=[];\n    for(const x of Almacen.indice()){const r=Almacen.carga(x.id);if(r.error)continue;for(const l of r.protocolo.lotes)if(l.ejecucion.estado==='preparado')lotes.push([l.id,(r.protocolo.titulo || 'Protocolo')+' · '+(l.codigo || l.id)]);}\n    if(!activos.length || !lotes.length){toast('Necesitas un frasco activo y una ejecución preparada guardada en la biblioteca.','warn');return;}\n    let articuloId=activos[0].id,loteId=lotes[0][0],cantidad=null;\n    const disponibilidad=h('p',{class:'nota','aria-live':'polite'});\n    const actualiza=()=>{const l=Almacen.laboratorio(),a=l.inventario.find(x=>x.id===articuloId);disponibilidad.textContent=a ? 'Libre de reservas: '+(a.cantidad==null ? 'desconocido' : numero(a.cantidad-Laboratorio.reservado(l,a.id)))+' '+a.unidad : 'Frasco ausente.';};actualiza();\n    UI.modal({titulo:'Reservar para una ejecución',tam:'md',cuerpo:[Editar.rejilla(\n      UI.campo('Frasco reservado',UI.selector(articuloId,activos.map(x=>[x.id,nombre(x)]),v=>{articuloId=v;actualiza();})),\n      UI.campo('Ejecución que reserva',UI.selector(loteId,lotes,v=>{loteId=v;})),\n      UI.campo('Cantidad reservada (unidad del frasco)',UI.numero(cantidad,v=>{cantidad=v;},{min:0}))),disponibilidad,\n      h('p',{class:'nota'},'Una reserva aparta existencias para el lote; no registra una pesada ni descuenta un consumo real.')],pie:[UI.boton('Cancelar',()=>UI.cierraModal()),UI.boton('Confirmar reserva',async()=>{\n        if(await guarda(Laboratorio.reserva(Almacen.laboratorio(),articuloId,loteId,cantidad)))UI.cierraModal();\n      },{tipo:'pri'})]});\n  }\n  function convierte() {\n    const inventario=Almacen.laboratorio().inventario.filter(x=>!x.archivado);\n    if(!inventario.length){toast('Añade un frasco activo.','warn');return;}\n    let id=inventario[0].id,unidad='',motivo='';\n    UI.modal({titulo:'Convertir la unidad del frasco',tam:'md',cuerpo:[Editar.rejilla(\n      UI.campo('Frasco que convertir',UI.selector(id,inventario.map(x=>[x.id,nombre(x)]),v=>{id=v;})),\n      UI.campo('Nueva unidad del frasco',UI.selector(unidad,[['','Elige…']].concat(Laboratorio.UNIDADES.map(x=>[x,x])),v=>{unidad=v;}))),\n      UI.campo('Motivo de la conversión',UI.texto(motivo,v=>{motivo=v;})),h('p',{class:'nota'},'Sólo entre unidades de la misma magnitud: masa, volumen o cantidad de sustancia. Convierte también las reservas y conserva las unidades de los movimientos anteriores.')],pie:[UI.boton('Cancelar',()=>UI.cierraModal()),UI.boton('Convertir existencias y reservas',async()=>{\n        const r=Laboratorio.convierte(Almacen.laboratorio(),id,unidad,motivo,uid('operacion'));\n        if(await guarda(r)){UI.cierraModal();toast(r.explicacion,'ok');}\n      },{tipo:'pri'})]});\n  }\n  function pinta(c,lab) {\n    const activos=lab.inventario.filter(x=>!x.archivado),reservas=lab.reservas.filter(x=>x.estado==='activa');\n    c.append(h('section',{class:'bloque'},h('h3',null,'Movimientos y disponibilidad'),h('p',{class:'nota'},'Las cantidades se cambian mediante movimientos con motivo. Los frascos archivados conservan su historial y quedan fuera de las existencias disponibles.'),\n      h('div',{class:'fila-botones'},UI.boton('Registrar entrada, devolución o recuento',movimiento,{tipo:'pri'}),UI.boton('Reservar para una ejecución',reserva),UI.boton('Convertir unidad de un frasco',convierte)),\n      activos.length ? Calculadoras.tabla(['Frasco','Existencias','Reservado','Libre'],activos.map(a=>{const r=Laboratorio.reservado(lab,a.id);return [nombre(a),a.cantidad==null ? 'Desconocidas' : numero(a.cantidad),numero(r),a.cantidad==null ? 'Desconocido' : numero(a.cantidad-r)];})) : null));\n    if(lab.reservas.length)c.append(h('section',{class:'bloque'},h('h3',null,'Reservas de existencias'),Calculadoras.tabla(['Frasco','Ejecución','Cantidad','Estado','Fecha'],lab.reservas.map(r=>{const a=lab.inventario.find(x=>x.id===r.articuloId);return [a ? nombre(a) : r.articuloId,r.loteId,numero(r.cantidad)+(a ? ' '+a.unidad : ''),r.estado,r.fecha];})),reservas.map(r=>UI.boton('Liberar reserva '+r.id,async()=>{\n      if(await UI.confirma({titulo:'Liberar la reserva',texto:'La cantidad apartada vuelve a estar disponible. Las existencias físicas no cambian.',si:'Liberar'}))await guarda(Laboratorio.libera(Almacen.laboratorio(),r.id));\n    },{mini:true}))));\n    if(lab.movimientos.length)c.append(h('section',{class:'bloque'},h('h3',null,'Historial de movimientos'),Calculadoras.tabla(['Fecha','Tipo','Frasco conservado','Ejecución','Cambio','Antes','Después','Motivo'],lab.movimientos.slice().reverse().map(m=>[\n      m.fecha,m.tipo,m.articulo ? [m.articulo.nombre || m.articulo.formula,m.articulo.lote].filter(Boolean).join(' · ') : m.articuloId+' (identidad histórica sin registrar)',m.loteId,\n      m.cantidad==null ? 'Sin delta comparable' : numero(m.cantidad)+' '+m.unidad,m.antes==null ? 'Desconocido' : numero(m.antes)+' '+(m.unidadAntes || m.unidad),m.despues==null ? 'Desconocido' : numero(m.despues)+' '+(m.unidadDespues || m.unidad),m.motivo\n    ])),UI.boton('Exportar movimientos CSV',()=>UI.descarga('erlen-methods-movimientos.csv',window.Papa.unparse({fields:['ID','Fecha','Tipo','Frasco','Ejecución','Cambio','Unidad','Antes','Unidad antes','Después','Unidad después','Motivo'],data:lab.movimientos.map(m=>[m.id,m.fecha,m.tipo,m.articuloId,m.loteId,m.cantidad,m.unidad,m.antes,m.unidadAntes || m.unidad,m.despues,m.unidadDespues || m.unidad,m.motivo])},{escapeFormulae:true}),'text/csv'),{mini:true})));\n  }\n  return {pinta};\n})();\n",
  "src/js/56-p-ciencia.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst CienciaUI = (()=>{\n  function filas(texto,campos) {\n    const lineas=String(texto || '').split(/\\n/).filter(x=>x.trim()),datos=[];\n    for(const linea of lineas){\n      const c=linea.split(';').map(x=>x.trim());\n      if(c.length!==campos.length || c.some(x=>!x || !Number.isFinite(Number(x))))return {error:'Cada fila necesita '+campos.length+' números separados por punto y coma. Usa punto decimal.'};\n      datos.push(Object.fromEntries(campos.map((x,i)=>[x,Number(c[i])])));\n    }\n    return {datos};\n  }\n  return {filas};\n})();\nCalculadoras.registra({id:'fuerza-ionica',categoria:'disoluciones',pinta:c=>Calculadoras.simple(c,'fuerza-ionica','Fuerza iónica de una disolución','Escribe los iones presentes después de la disociación y sus concentraciones individuales. No se deduce la especiación.',[\n  {k:'iones',etq:'Iones: concentración (mol/L); carga',tipo:'area',v:'',ph:'Una fila por ion, con punto decimal.'}\n],v=>{\n  const datos=CienciaUI.filas(v.iones,['c','z']);if(datos.error)return datos;\n  const r=Ciencia.fuerzaIonica(datos.datos);return r.error ? r : {...r,filas:[['Fuerza iónica',numero(r.valor)+' mol/L']]};\n})});\nCalculadoras.registra({id:'solubilidad-ion-comun',categoria:'disoluciones',pinta:c=>Calculadoras.simple(c,'solubilidad-ion-comun','Solubilidad ideal con ion común','Modelo de una sal 1:1. Ksp corresponde a la temperatura y al convenio de concentración de tu fuente; este cálculo no evalúa actividades.',[\n  {k:'ksp',etq:'Ksp de la sal 1:1',v:null,min:0},{k:'ion',etq:'Concentración inicial del ion común',unidad:'mol/L',v:null,min:0}\n],v=>{\n  const r=Ciencia.solubilidad(v.ksp,v.ion);return r.error ? r : {...r,filas:[['Solubilidad calculada',numero(r.valor)+' mol/L']]};\n})});\nCalculadoras.registra({id:'densidad-mezcla',categoria:'fisica',pinta:c=>Calculadoras.simple(c,'densidad-mezcla','Densidad de mezcla con volúmenes aditivos','Usa masas y densidades declaradas a la misma temperatura. No predice contracción, reacción ni cambio de fase.',[\n  {k:'componentes',etq:'Componentes: masa (g); densidad (g/mL)',tipo:'area',v:'',ph:'Una fila por componente, con punto decimal.'}\n],v=>{\n  const datos=CienciaUI.filas(v.componentes,['masa','densidad']);if(datos.error)return datos;\n  const r=Ciencia.mezcla(datos.datos);return r.error ? r : {...r,filas:[['Masa total',numero(r.masa)+' g'],['Volumen aditivo',numero(r.volumen)+' mL'],['Densidad calculada',numero(r.densidad)+' g/mL']]};\n})});\nCalculadoras.registra({id:'composicion-elemental',categoria:'materiales',pinta:c=>Calculadoras.simple(c,'composicion-elemental','Composición elemental de una fórmula','Fracciones atómicas y másicas de la composición escrita. No determina fases ni describe un análisis experimental.',[\n  {k:'formula',etq:'Fórmula para composición',tipo:'texto',v:''}\n],v=>{\n  const r=Ciencia.composicion(v.formula);return r.error ? r : {...r,filas:[['Masa molar',numero(r.masaMolar)+' g/mol']],tabla:{cabecera:['Elemento','Átomos por fórmula','Fracción atómica','Fracción másica'],filas:r.elementos.map(x=>[x.simbolo,numero(x.atomos),numero(x.fraccionAtomica),numero(x.fraccionMasa)])}};\n})});\nCalculadoras.registra({id:'flujo-tubo',categoria:'fisica',pinta:c=>Calculadoras.simple(c,'flujo-tubo','Flujo y presión en un tubo','Reynolds, caída de presión y residencia con propiedades que declares. La presión no incluye accesorios ni pérdidas de entrada.',[\n {k:'modo',etq:'Dato conocido del flujo',tipo:'opcion',v:'caudal',opciones:[['caudal','Caudal (mL/min)'],['presion','Caída de presión laminar (Pa)']]},\n {k:'valor',etq:'Valor del dato conocido del flujo',v:null,min:0},\n {k:'diametro',etq:'Diámetro interior del tubo',unidad:'mm',v:null,min:0},\n {k:'longitud',etq:'Longitud del tubo',unidad:'cm',v:null,min:0},\n {k:'viscosidad',etq:'Viscosidad dinámica del fluido',unidad:'mPa·s',v:null,min:0},\n {k:'densidad',etq:'Densidad del fluido del tubo',unidad:'kg/m³',v:null,min:0},\n {k:'rugosidad',etq:'Rugosidad absoluta del tubo',unidad:'µm',v:null,min:0,ayuda:'Opcional. Cero declara tubo liso; vacío conserva rugosidad desconocida.'}\n],v=>{\n const r=Ciencia.flujoTubo(v);return r.error ? r : {...r,filas:[['Caudal',numero(r.caudal)+' mL/min'],['Velocidad media',numero(r.velocidad)+' m/s'],['Reynolds',numero(r.reynolds)+' · '+r.regimen],['Caída de presión',r.presion==null ? 'No estimada' : numero(r.presion)+' Pa'],['Volumen interior',numero(r.volumenML)+' mL'],['Tiempo volumen/caudal',r.tiempo==null ? 'Sin flujo: no hay tiempo de paso' : numero(r.tiempo)+' s'],['Factor de fricción Darcy',r.factorDarcy==null ? 'No estimado' : numero(r.factorDarcy)],['Cizalla en la pared (laminar)',r.cizalla==null ? 'No estimada' : numero(r.cizalla)+' s⁻¹']]};\n})});\n",
  "src/js/57-p-registro-placas.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst RegistroPlacasUI = (()=>{\n  const identidad=l=>({protocoloId:Estado.p.id,loteId:l.id});\n  function actual(i) {\n    const l=Estado.p.id===i.protocoloId && Estado.p.lotes.find(x=>x.id===i.loteId);\n    if(!l)toast('El lote ya no está abierto. Vuelve a su ejecución antes de registrar datos.','warn');\n    return l || null;\n  }\n  function aplica(i,r) {\n    if(r.error){toast(r.error,'warn');return false;}if(!actual(i))return false;\n    Estado.cambia(q=>{q.lotes[q.lotes.findIndex(x=>x.id===i.loteId)]=r.lote;});\n    if(r.explicacion)toast(r.explicacion,'ok');return true;\n  }\n  function edita(lote,p,id) {\n    const i=identidad(lote),x=Object.assign({volumenReal:null,resultado:null,unidadResultado:'',muestraId:'',nota:'',fechaMedida:''},p.pozos[id] || {});\n    const plan=lote.revision.protocolo.placas.find(x=>x.id===p.id),previsto=plan && plan.pozos[id];\n    UI.modal({titulo:'Registro real del pozo '+id,tam:'md',cuerpo:[\n      h('p',{class:'nota'},'Previsto: '+(previsto && previsto.volumen!=null ? numero(previsto.volumen*lote.factor)+' µL' : 'volumen desconocido')+'. Los campos siguientes son registros de esta ejecución.'),\n      Editar.rejilla(UI.campo('Muestra medida en el pozo',UI.selector(x.muestraId,[['','Sin identificar']].concat((lote.ejecucion.muestrasRegistros || []).map(m=>[m.id,m.nombre || m.id])),v=>{x.muestraId=v;})),\n        UI.campo('Volumen real del pozo',UI.numero(x.volumenReal,v=>{x.volumenReal=v;},{min:0}),{unidad:'µL'}),\n        UI.campo('Resultado medido del pozo',UI.numero(x.resultado,v=>{x.resultado=v;})),UI.campo('Unidad del resultado del pozo',UI.texto(x.unidadResultado,v=>{x.unidadResultado=v;})),\n        UI.campo('Fecha de medida del pozo',UI.texto(x.fechaMedida,v=>{x.fechaMedida=v;},{placeholder:'Fecha, hora y zona: AAAA-MM-DDThh:mm:ssZ'}),{ayuda:'Opcional: se conserva la hora que escribas; la fecha de registro se anota aparte.'})),\n      UI.campo('Observaciones del pozo',UI.texto(x.nota,v=>{x.nota=v;},{area:true,filas:2}))],pie:[UI.boton('Cancelar',()=>UI.cierraModal()),UI.boton('Guardar medida del pozo',()=>{\n        const l=actual(i);if(l && aplica(i,Ejecucion.pozo(l,p.id,id,x)))UI.cierraModal();\n      },{tipo:'pri'})]});\n  }\n  function transferencia(lote,p) {\n    const i=identidad(lote),posiciones=[['','Elige…']].concat(Placas.posiciones(p).map(x=>[x,x]));let origen='',destino='',volumen=null,motivo='';\n    UI.modal({titulo:'Registrar transferencia real de placa',tam:'md',cuerpo:[Editar.rejilla(\n      UI.campo('Pozo real de origen',UI.selector(origen,posiciones,v=>{origen=v;})),UI.campo('Pozo real de destino',UI.selector(destino,posiciones,v=>{destino=v;})),\n      UI.campo('Volumen realmente transferido',UI.numero(volumen,v=>{volumen=v;},{min:0}),{unidad:'µL'})),\n      UI.campo('Qué se transfirió y observaciones',UI.texto(motivo,v=>{motivo=v;},{area:true,filas:2})),\n      h('p',{class:'nota'},'Requiere volúmenes reales de ambos pozos y capacidad conocida. Conserva el antes y después; tras mezclar, el resultado anterior del destino pasa al historial.')],pie:[UI.boton('Cancelar',()=>UI.cierraModal()),UI.boton('Confirmar transferencia real',()=>{\n        const l=actual(i);if(l && aplica(i,Ejecucion.transfiere(l,p.id,origen,destino,volumen,motivo)))UI.cierraModal();\n      },{tipo:'pri'})]});\n  }\n  function pinta(c,lote) {\n    const e=lote.ejecucion,i=identidad(lote),muestras=Estado.p.muestras;\n    if(e.estado==='preparado' && muestras.length)c.append(h('section',{class:'bloque'},h('h3',null,'Muestras vinculadas a esta ejecución'),h('p',{class:'nota'},'Su identificación y procedencia se conservarán por lote. Cambiar después el registro de muestras del protocolo no cambia esta copia.'),muestras.map(m=>UI.casilla(m.nombre || m.id,(e.muestrasRegistros || []).some(x=>x.id===m.id),v=>{\n      const l=actual(i);if(l)aplica(i,Ejecucion.muestra(l,m,v));\n    }))));\n    if((e.muestrasRegistros || []).length)c.append(h('section',{class:'bloque'},h('h3',null,'Identificación de muestras conservada'),Calculadoras.tabla(['Muestra ID','Nombre','Origen declarado','Vinculada el'],e.muestrasRegistros.map(x=>[x.id,x.nombre,x.origen,x.fechaVinculo]))));\n    if(e.estado!=='terminado' && (lote.revision.protocolo.placas || []).some(p=>!(e.placas || []).some(x=>x.id===p.id)))c.append(UI.boton('Preparar registro de las placas de la revisión',()=>{\n      const l=actual(i);if(l)aplica(i,Ejecucion.preparaPlacas(l));\n    }));\n    for(const p of e.placas || []) {\n      const [filas,columnas]=Placas.FORMATOS[p.formato],abierta=e.estado==='enCurso';\n      const mapa=h('div',{class:'placa-scroll',tabindex:'0'},h('table',{class:'tabla placa-mapa'},h('caption',null,(p.nombre || 'Placa')+' · medidas de '+(lote.codigo || lote.id)),\n        h('thead',null,h('tr',null,h('th',{scope:'col'},'Fila'),Array.from({length:columnas},(_,j)=>h('th',{scope:'col'},String(j+1))))),\n        h('tbody',null,Array.from({length:filas},(_,f)=>h('tr',null,h('th',{scope:'row'},String.fromCharCode(65+f)),Array.from({length:columnas},(_,j)=>{\n          const id=String.fromCharCode(65+f)+(j+1),x=p.pozos[id],etiqueta=id+(x && x.resultado!=null ? ' · '+numero(x.resultado) : ' · sin resultado');\n          return h('td',null,abierta ? UI.boton(etiqueta,()=>edita(lote,p,id),{mini:true,aria:'Registrar medida del pozo '+id+' de '+(p.nombre || p.id)}) : h('span',null,etiqueta));\n        }))))));\n      c.append(h('section',{class:'bloque'},h('h3',null,'Registro de placa · '+(p.nombre || p.id)),h('p',{class:'nota'},'Las celdas vacías son desconocidas. Los volúmenes previstos pertenecen a la revisión; las medidas e importaciones se conservan en este lote.'),mapa,\n        Object.keys(p.pozos).length ? Calculadoras.tabla(['Pozo','Muestra ID','Volumen real (µL)','Resultado','Unidad','Medido el','Registrado el'],Object.entries(p.pozos).map(([id,x])=>[id,x.muestraId,x.volumenReal==null ? 'Desconocido' : numero(x.volumenReal),x.resultado==null ? 'Desconocido' : numero(x.resultado),x.unidadResultado,x.fechaMedida,x.fechaRegistro])) : null,\n        h('div',{class:'fila-botones'},UI.boton('Cuantificar con calibración',()=>CuantificacionUI.abre(lote,p)),abierta ? UI.boton('Importar CSV de instrumento',()=>InstrumentosUI.importa(lote,p)) : null,abierta ? UI.boton('Registrar transferencia real',()=>transferencia(lote,p)) : null,\n          abierta ? UI.boton('Importar medidas de placa CSV',async()=>{\n            const f=await Importar.eligeArchivo('.csv,text/csv');if(!f)return;let l=actual(i);if(!l)return;\n            const r=Ejecucion.importaPlacaCSV(l,p.id,f.texto);if(r.error){toast(r.error,'warn');return;}\n            if(!await UI.confirma({titulo:'Importar medidas de placa',texto:'Se registrarán '+r.cantidad+' pozos en este lote. Se conservarán los valores anteriores en el historial.',si:'Importar medidas'}))return;\n            l=actual(i);if(l)aplica(i,Ejecucion.importaPlacaCSV(l,p.id,f.texto));\n          }) : null,UI.boton('Exportar medidas de placa CSV',()=>{const l=actual(i);if(!l)return;const r=Ejecucion.placaCSV(l,p.id);if(r.error)toast(r.error,'warn');else UI.descarga(UI.nombreArchivo(p.nombre || p.id)+'-medidas.csv',r.texto,'text/csv');})),\n        p.historial.length ? h('details',null,h('summary',null,'Historial de esta placa · '+p.historial.length+' registros'),Calculadoras.tabla(['Registrado el','Acción','Pozo u origen','Destino','Volumen (µL)','Observaciones'],p.historial.map(x=>[x.fecha,x.tipo==='registroPozo' ? 'Registro de pozo' : 'Transferencia',x.pozo || x.origen,x.destino || '',x.volumen==null ? '' : numero(x.volumen),x.motivo || x.despues && x.despues.nota || '']))) : null));\n    }\n  }\n  return {pinta};\n})();\n",
  "src/js/58-p-muestras.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst MuestrasUI = (()=>{\n  const ETIQUETAS={registrada:'Registrada · cantidad desconocida',disponible:'Disponible',agotada:'Agotada',descartada:'Descartada'};\n  function botonMuestra(texto,accion,m,etiqueta) {\n    const boton=UI.boton(texto,accion,{mini:true,aria:etiqueta+(m.nombre || m.id)});boton.dataset.muestraId=m.id;boton.dataset.accionMuestra=etiqueta;return boton;\n  }\n  Estado.suscribe(()=>{for(const boton of document.querySelectorAll('[data-muestra-id][data-accion-muestra]')){const m=Estado.p.muestras.find(x=>x.id===boton.dataset.muestraId);if(m)boton.setAttribute('aria-label',boton.dataset.accionMuestra+(m.nombre || m.id));}},{siempre:true});\n  function aplica(protocoloId,id,datos,alicuota) {\n    if(Estado.p.id!==protocoloId){toast('La muestra pertenece a otro protocolo. Vuelve a abrirlo para registrar el movimiento.','warn');return;}\n    const r=alicuota ? Muestras.alicuota(Estado.p.muestras,id,datos) : Muestras.movimiento(Estado.p.muestras,id,datos);\n    if(r.error){toast(r.error,'warn');return;}Estado.cambia(q=>{q.muestras=r.muestras;});UI.cierraModal();toast(r.explicacion,'ok');\n  }\n  function movimiento(m,alicuota) {\n    const protocoloId=Estado.p.id,datos={tipo:'recuento',cantidad:null,unidad:m.unidad,motivo:'',nombre:'',ubicacion:''};\n    const unidad=UI.selector(datos.unidad,Muestras.UNIDADES.map(x=>[x,x || 'Elige unidad…']),v=>{datos.unidad=v;});unidad.disabled=!!m.unidad;\n    UI.modal({titulo:alicuota ? 'Registrar alícuota de muestra' : 'Movimiento de muestra',tam:'md',cuerpo:[\n      h('p',{class:'nota'},(m.nombre || m.id)+' · '+(m.cantidad==null ? 'Cantidad inicial desconocida' : numero(m.cantidad)+' '+m.unidad)+' · '+(m.ubicacion || 'Ubicación sin registrar')),\n      alicuota ? UI.campo('Identificador de la alícuota',UI.texto(datos.nombre,v=>{datos.nombre=v;})) : UI.campo('Movimiento de la muestra',UI.selector(datos.tipo,[['recuento','Recuento real'],['entrada','Entrada adicional'],['consumo','Consumo'],['ubicacion','Cambio de ubicación'],['descartar','Descarte']],v=>{datos.tipo=v;})),\n      Editar.rejilla(UI.campo('Cantidad del movimiento de muestra',UI.numero(datos.cantidad,v=>{datos.cantidad=v;},{min:0})),UI.campo('Unidad de la cantidad de muestra',unidad),UI.campo(alicuota ? 'Ubicación de la alícuota' : 'Nueva ubicación de la muestra',UI.texto(datos.ubicacion,v=>{datos.ubicacion=v;}))),\n      UI.campo('Motivo del movimiento de muestra',UI.texto(datos.motivo,v=>{datos.motivo=v;},{area:true,filas:3})),\n      h('p',{class:'nota'},'El recuento declara la cantidad observada; no se supone cero cuando falta. Entradas y consumos requieren una cantidad inicial conocida. Las alícuotas descuentan la misma cantidad del origen y conservan su procedencia.')],pie:[UI.boton('Cancelar',()=>UI.cierraModal()),UI.boton(alicuota ? 'Guardar alícuota' : 'Registrar movimiento de muestra',()=>aplica(protocoloId,m.id,datos,alicuota),{tipo:'pri'})]});\n  }\n  function ficha(m) {\n    const ubicacion=h('p',{class:'calculado'},(ETIQUETAS[m.estado] || 'Registrada')+' · '+(m.cantidad==null ? 'Cantidad desconocida' : numero(m.cantidad)+' '+m.unidad)+' · '+(m.ubicacion || 'Ubicación sin registrar'));\n    const cuerpo=h('div',null,Editar.rejilla(UI.campo('Tipo de muestra',UI.texto(m.tipo,Editar.campo('muestras',m.id,'tipo'))),UI.campo('Fecha de recepción de muestra',UI.texto(m.fechaRecepcion,Editar.campo('muestras',m.id,'fechaRecepcion'),{attrs:{type:'date'}}))),ubicacion);\n    if(m.derivacion)cuerpo.append(h('p',{class:'nota'},'Derivada de '+(m.derivacion.nombre || m.derivadaDe)+' · '+numero(m.derivacion.cantidadTransferida)+' '+m.derivacion.unidad+' · '+m.derivacion.fecha+' · '+m.derivacion.motivo));\n    cuerpo.append(h('div',{class:'fila-botones'},m.estado!=='descartada' ? botonMuestra('Registrar movimiento de muestra',()=>movimiento(m,false),m,'Registrar movimiento de ') : null,\n      m.estado!=='descartada' ? botonMuestra('Crear alícuota',()=>movimiento(m,true),m,'Crear alícuota de ') : null,\n      UI.boton('Exportar muestras CSV',()=>UI.descarga('muestras.csv',Muestras.csv(Estado.p.muestras),'text/csv'),{mini:true})));\n    if(m.historial && m.historial.length)cuerpo.append(h('details',null,h('summary',null,'Historial de muestra · '+m.historial.length+' registros'),Calculadoras.tabla(['Registrado el','Acción','Cantidad anterior','Cantidad posterior','Ubicación posterior','Motivo'],m.historial.map(x=>[x.fecha,x.tipo,x.antes && x.antes.cantidad!=null ? numero(x.antes.cantidad)+' '+x.antes.unidad : 'Desconocida',x.despues && x.despues.cantidad!=null ? numero(x.despues.cantidad)+' '+x.despues.unidad : 'Desconocida',x.despues && x.despues.ubicacion || '',x.motivo]))));\n    else cuerpo.append(UI.boton('Quitar muestra sin movimientos',()=>Editar.quita('muestras',m.id,'la muestra'),{mini:true}));\n    return cuerpo;\n  }\n  return {ficha};\n})();\n",
  "src/js/59-p-secuencias.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nMarco.registra('secuencias',(c,p)=>{\n  c.append(UI.cabecera('BIOLOGÍA','Secuencias biológicas','Importa FASTA local, conserva su origen y vincula secuencias a muestras. Las transformaciones son cálculos sobre la secuencia declarada.'));\n  let texto='',tipo='ADN',archivo=null;const vista=h('div',{'aria-live':'polite'}),area=UI.texto(texto,v=>{texto=v;archivo=null;},{area:true,filas:6,placeholder:'>identificador y descripción declarados\\nSecuencia IUPAC'});\n  c.append(h('section',{class:'bloque'},Editar.rejilla(UI.campo('Alfabeto del FASTA',UI.selector(tipo,Secuencias.TIPOS.map(t=>[t,t==='proteina' ? 'Proteína' : t]),v=>{tipo=v;}))),UI.campo('Texto FASTA para importar',area),\n    h('div',{class:'fila-botones'},UI.boton('Leer archivo FASTA',()=>{\n      const input=h('input',{type:'file',accept:'.fa,.fasta,.fna,.faa,.txt,text/plain'});input.addEventListener('change',async()=>{\n        const f=input.files && input.files[0];input.remove();if(!f)return;if(f.size>5*1024*1024){toast('El FASTA supera 5 MB.','warn');return;}\n        try{const bytes=new Uint8Array(await f.arrayBuffer());texto=new TextDecoder('utf-8',{fatal:true}).decode(bytes);archivo={nombre:f.name,bytes,texto};area.value=texto;vista.replaceChildren();}catch(error){toast('No se pudo leer el FASTA como texto UTF-8: '+error.message,'warn');}\n      });document.body.append(input);input.click();\n    }),UI.boton('Previsualizar FASTA',()=>{\n      const r=Secuencias.importaFASTA(texto,tipo);vista.replaceChildren();if(r.error){vista.append(UI.aviso('error',r.error));return;}\n      const protocoloId=Estado.p.id,textoLeido=texto,tipoLeido=tipo,original=archivo && archivo.texto===texto ? archivo : {nombre:'texto-fasta-importado.fasta',bytes:new TextEncoder().encode(texto)};\n      vista.append(Calculadoras.tabla(['Identificador','Alfabeto','Símbolos'],r.secuencias.map(s=>[s.identificador,s.tipo,String(s.secuencia.length)])),h('p',{class:'explicacion'},r.explicacion),UI.boton('Incorporar secuencias y origen',async()=>{\n        if(Estado.p.id!==protocoloId || texto!==textoLeido || tipo!==tipoLeido){toast('El protocolo o los datos cambiaron. Vuelve a previsualizar el FASTA.','warn');return;}\n        if(Estado.p.secuencias.length+r.secuencias.length>200){toast('El protocolo admite hasta 200 secuencias. Separa el siguiente archivo en otro protocolo.','warn');return;}\n        if(Estado.p.secuencias.concat(r.secuencias).reduce((n,s)=>n+s.secuencia.length,0)>2000000){toast('El protocolo supera dos millones de símbolos. Divide el trabajo para conservar una edición fluida.','warn');return;}\n        if(r.secuencias.some(s=>Estado.p.secuencias.some(x=>x.tipo===s.tipo && x.identificador===s.identificador && x.sha256===s.sha256))){toast('Una secuencia del archivo ya está conservada. No se duplicó la importación.','warn');return;}\n        const adjunto=Evidencia.adjunto(original.nombre,original.bytes,'text/plain',{tipo:'protocolo',id:protocoloId});if(adjunto.error){toast(adjunto.error,'warn');return;}\n        for(const s of r.secuencias)Object.assign(s.origen,{adjuntoId:adjunto.archivo.id,sha256Archivo:adjunto.archivo.sha256});\n        const guardado=await Estado.cambiaConArchivos(q=>{q.secuencias.push(...r.secuencias);if(!q.adjuntos.some(x=>x.id===adjunto.archivo.id))q.adjuntos.push(adjunto.archivo);},[{id:adjunto.archivo.id,bytes:original.bytes}]);\n        if(guardado.error)toast('La importación sigue sin guardar: '+guardado.error,'warn');else toast('Secuencias y archivo original guardados juntos.','ok');\n      },{tipo:'pri'}));\n    },{tipo:'pri'})),vista));\n  if(p.secuencias.length)c.append(UI.boton('Exportar secuencias FASTA',()=>UI.descarga('secuencias.fasta',Secuencias.fasta(Estado.p.secuencias),'text/plain')));\n  for(const s of p.secuencias) {\n    const r=Secuencias.resumen(s),salida=h('div',{'aria-live':'polite'});let tabla=1,marco=1,cds=false;\n    const bloque=h('section',{class:'bloque'},h('h3',{class:'secuencia-identificador'},s.identificador),h('p',{class:'nota secuencia-huella'},s.cabecera),Editar.rejilla(\n      UI.campo('Muestra de la secuencia '+s.identificador,UI.selector(s.muestraId,[['','Sin vincular']].concat(p.muestras.map(m=>[m.id,m.nombre || m.id])),Editar.campo('secuencias',s.id,'muestraId')))),\n      r.error ? UI.aviso('error',r.error) : Calculadoras.tabla(['Magnitud','Valor'],[['Longitud',String(r.longitud)],['Símbolos ambiguos',String(r.ambiguas)],...(s.tipo==='proteina' ? [['Paradas',String(r.paradas)]] : [['GC mínimo (%)',numero(r.gcMin)],['GC máximo (%)',numero(r.gcMax)],['GC equiprobable (%)',numero(r.gcEquiprobable)]])]),h('p',{class:'explicacion'},r.explicacion || ''),\n      h('details',null,h('summary',null,'Secuencia y huellas de procedencia'),h('p',{class:'nota secuencia-huella'},'SHA-256 de la secuencia normalizada: '+s.sha256),h('p',{class:'nota secuencia-huella'},'SHA-256 del texto UTF-8 leído: '+s.origen.sha256TextoUTF8),h('pre',{class:'secuencia-texto',tabindex:'0'},s.secuencia.slice(0,2000)+(s.secuencia.length>2000 ? '\\nVista previa: primeros 2 000 símbolos. Exporta FASTA para la secuencia completa.' : ''))),\n      UI.campo('Notas de la secuencia '+s.identificador,UI.texto(s.notas,Editar.campo('secuencias',s.id,'notas'),{area:true,filas:2})));\n    if(s.tipo!=='proteina')bloque.append(Editar.rejilla(UI.campo('Tabla genética de '+s.identificador,UI.selector(String(tabla),Object.entries(Secuencias.TABLAS).map(([id,t])=>[id,id+' · '+t.nombre]),v=>{tabla=Number(v);})),UI.campo('Marco de lectura de '+s.identificador,UI.selector(String(marco),[1,2,3,-1,-2,-3].map(x=>[String(x),String(x)]),v=>{marco=Number(v);}))),UI.casilla('Validar CDS completa de '+s.identificador,cds,v=>{cds=v;}),h('div',{class:'fila-botones'},UI.boton('Traducir '+s.identificador,()=>{\n      const r=Secuencias.traduce(s,tabla,marco,cds);salida.replaceChildren();if(r.error){salida.append(UI.aviso('error',r.error));return;}salida.append(h('pre',{class:'secuencia-texto',tabindex:'0'},r.secuencia.slice(0,2000)+(r.secuencia.length>2000 ? '\\nVista previa: primeros 2 000 símbolos. Descarga la secuencia completa.' : '')),h('p',{class:'explicacion'},r.explicacion),UI.boton('Guardar traducción de '+s.identificador,()=>{\n        if(Estado.p.analisis.length>=100){toast('El protocolo alcanzó 100 análisis. Conserva una copia antes de continuar.','warn');return;}\n        Estado.cambia(q=>{q.analisis.push({id:uid('analisis'),tipo:'traduccion',fecha:ahora(),secuenciaId:s.id,sha256Entrada:s.sha256,resultado:r});});\n      },{mini:true}),UI.boton('Descargar traducción de '+s.identificador,()=>UI.descarga(UI.nombreArchivo(s.identificador)+'-traduccion.faa','>'+s.identificador+' traducción computada tabla='+r.tabla+' marco='+r.marco+'\\n'+r.secuencia+'\\n','text/plain'),{mini:true}));\n    }),UI.boton('Complemento inverso de '+s.identificador,()=>{const r=Secuencias.complementoInverso(s.secuencia,s.tipo);salida.replaceChildren(r.error ? UI.aviso('error',r.error) : h('pre',{class:'secuencia-texto',tabindex:'0'},r.secuencia.slice(0,2000)+(r.secuencia.length>2000 ? '\\nVista previa: primeros 2 000 símbolos. Descarga la secuencia completa.' : '')),h('p',{class:'explicacion'},r.explicacion || ''));})),salida);\n    bloque.append(h('div',{class:'fila-botones'},s.origen.adjuntoId ? UI.boton('Descargar origen de '+s.identificador,async()=>{try{const bytes=await Estado.archivo(s.origen.adjuntoId);if(!bytes || Evidencia.sha256(bytes)!==s.origen.sha256Archivo)throw new Error('El archivo original no está disponible o no coincide con su huella.');UI.descarga('origen-'+UI.nombreArchivo(s.identificador)+'.fasta',bytes,'text/plain');}catch(error){toast(error.message,'warn');}},{mini:true}) : null,UI.boton('Quitar secuencia '+s.identificador,()=>Editar.quita('secuencias',s.id,'la secuencia'),{mini:true})));\n    c.append(bloque);\n  }\n});\n",
  "src/js/60-p-flujo.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst FlujoUI = (()=>{\n  const svg=(nombre,atributos,texto)=>{const el=document.createElementNS('http://www.w3.org/2000/svg',nombre);for(const [k,v] of Object.entries(atributos || {}))el.setAttribute(k,String(v));if(texto!=null)el.textContent=texto;return el;};\n  function dependencias(id) {\n    const protocoloId=Estado.p.id,s=Estado.p.pasos.find(x=>x.id===id);if(!s)return;\n    const seleccion=new Set(s.dependeDe || []);\n    UI.modal({titulo:'Dependencias del paso '+(Estado.p.pasos.indexOf(s)+1),tam:'md',cuerpo:[h('p',null,s.texto || 'Paso sin texto'),h('p',{class:'nota'},'El paso podrá completarse después de todos los seleccionados. Este cambio activa dependencias explícitas.'),h('div',{class:'lista-dependencias'},Estado.p.pasos.filter(x=>x.id!==id).map(x=>UI.casilla('Paso '+(Estado.p.pasos.indexOf(x)+1)+' · '+(x.texto || 'Sin texto'),seleccion.has(x.id),v=>{if(v)seleccion.add(x.id);else seleccion.delete(x.id);})))],pie:[UI.boton('Cancelar',()=>UI.cierraModal()),UI.boton('Guardar dependencias',()=>{\n      if(Estado.p.id!==protocoloId){toast('El protocolo abierto cambió. Vuelve al diseñador del protocolo original.','warn');return;}\n      const r=Flujo.defineDependencias(Estado.p,id,[...seleccion]);if(r.error){toast(r.error,'warn');return;}Estado.cambia(q=>{q.pasos=r.pasos;q.flujo=r.flujo;});UI.cierraModal();toast(r.explicacion,'ok');\n    },{tipo:'pri'})]});\n  }\n  function mapa(r) {\n    const anchoNodo=260,altoNodo=90,separacion=60,filas=new Map(),posiciones=new Map();\n    for(const n of r.nodos){const fila=filas.get(n.nivel) || 0;filas.set(n.nivel,fila+1);posiciones.set(n.id,{x:20+n.nivel*(anchoNodo+separacion),y:20+fila*(altoNodo+24)});}\n    const ancho=Math.max(360,40+(Math.max(0,...r.nodos.map(n=>n.nivel))+1)*(anchoNodo+separacion)),alto=Math.max(130,40+Math.max(0,...filas.values())*(altoNodo+24));\n    const dibujo=svg('svg',{viewBox:'0 0 '+ancho+' '+alto,width:ancho,height:alto,role:'group','aria-label':'Pasos y dependencias. Cada nodo abre sus dependencias con Enter o espacio.'});\n    const defs=svg('defs'),marca=svg('marker',{id:'flecha-flujo',viewBox:'0 0 10 10',refX:9,refY:5,markerWidth:7,markerHeight:7,orient:'auto-start-reverse'});marca.append(svg('path',{d:'M 0 0 L 10 5 L 0 10 z',fill:'currentColor'}));defs.append(marca);dibujo.append(defs);\n    for(const a of r.aristas){const o=posiciones.get(a.origen),d=posiciones.get(a.destino),x=o.x+anchoNodo,y=o.y+altoNodo/2;dibujo.append(svg('path',{d:'M '+x+' '+y+' C '+(x+30)+' '+y+', '+(d.x-30)+' '+(d.y+altoNodo/2)+', '+d.x+' '+(d.y+altoNodo/2),fill:'none',stroke:'currentColor','stroke-width':1.5,'marker-end':'url(#flecha-flujo)','aria-hidden':'true'}));}\n    for(const n of r.nodos){const pos=posiciones.get(n.id),grupo=svg('g',{transform:'translate('+pos.x+' '+pos.y+')',role:'button',tabindex:0,'aria-label':'Dependencias del paso '+(n.indice+1)+' · '+(n.texto || 'Sin texto'),class:'flujo-nodo'+(n.critico ? ' flujo-nodo-critico' : '')});\n      grupo.append(svg('rect',{width:anchoNodo,height:altoNodo,rx:6}),svg('text',{x:12,y:22},'Paso '+(n.indice+1)+(n.critico ? ' · camino crítico' : '')),svg('text',{x:12,y:45},String(n.texto || 'Sin texto').slice(0,34)),svg('text',{x:12,y:68},n.duracion==null ? 'Tiempo sin registrar' : numero(n.duracion)+' s previstos'));\n      grupo.addEventListener('click',()=>dependencias(n.id));grupo.addEventListener('keydown',e=>{if(e.key==='Enter' || e.key===' '){e.preventDefault();dependencias(n.id);}});dibujo.append(grupo);\n    }\n    return h('div',{class:'flujo-scroll',tabindex:'0'},dibujo);\n  }\n  return {mapa,dependencias};\n})();\nMarco.registra('flujo',(c,p)=>{\n  c.append(UI.cabecera('DISEÑO','Diseñador de flujo','Declara el orden y las dependencias del procedimiento. El diseño queda fijado por revisión al registrar un lote.'));\n  const modo=p.flujo && p.flujo.modo || 'libre';\n  c.append(UI.campo('Orden de ejecución del método',UI.selector(modo,Object.entries(Flujo.MODOS),valor=>{\n    const r=Flujo.analiza({...Estado.p,flujo:{modo:valor}});if(r.error){toast(r.error,'warn');Marco.repinta();return;}Estado.cambia(q=>{q.flujo={modo:valor};});\n  })),h('div',{class:'fila-botones'},UI.boton('Añadir paso al flujo',()=>{Estado.cambia(q=>{q.pasos.push(Protocolo.nuevoPaso());});}),UI.boton('Editar el procedimiento',()=>Marco.irA('procedimiento'))));\n  if(!p.pasos.length){c.append(UI.vacio('Sin pasos de procedimiento','Añade las acciones reales de tu método para diseñar sus dependencias.'));return;}\n  const r=Flujo.analiza(p);if(r.error){c.append(UI.aviso('error',r.error));return;}\n  c.append(h('p',{class:'explicacion'},r.explicacion),r.duracion!=null ? h('p',{class:'calculado'},'Duración mínima prevista: '+numero(r.duracion)+' s · '+r.criticos.length+' pasos con holgura cero') : null,\n    FlujoUI.mapa(r),Calculadoras.tabla(['Paso','Acción','Depende de','Tiempo (s)','Inicio relativo (s)','Holgura (s)'],r.nodos.map(n=>[String(n.indice+1),n.texto,n.dependeDe.map(id=>String(r.nodos.find(x=>x.id===id).indice+1)).join(', ') || '—',n.duracion==null ? 'Desconocido' : numero(n.duracion),n.inicio==null ? 'Desconocido' : numero(n.inicio),n.holgura==null ? 'Desconocida' : numero(n.holgura)])));\n  c.append(h('section',{class:'bloque'},h('h3',null,'Orden y dependencias accesibles'),h('p',{class:'nota'},'Arrastra una fila sobre otra para cambiar el orden; Subir y Bajar ofrecen la misma operación con teclado. El modo explícito conserva sus enlaces por identidad.'),p.pasos.map((s,i)=>{\n    const fila=h('article',{class:'flujo-fila',draggable:'true','data-paso-id':s.id},h('p',null,'Paso '+(i+1)+' · '+(s.texto || 'Sin texto')),h('div',{class:'fila-botones'},UI.boton('Dependencias del paso '+(i+1),()=>FlujoUI.dependencias(s.id),{mini:true}),UI.boton('Subir paso '+(i+1),()=>Editar.mueve('pasos',s.id,-1),{mini:true}),UI.boton('Bajar paso '+(i+1),()=>Editar.mueve('pasos',s.id,1),{mini:true})));\n    fila.querySelectorAll('button')[1].disabled=i===0;fila.querySelectorAll('button')[2].disabled=i===p.pasos.length-1;\n    fila.addEventListener('dragstart',e=>{e.dataTransfer.setData('application/x-erlen-paso',JSON.stringify({protocoloId:p.id,pasoId:s.id}));e.dataTransfer.effectAllowed='move';});\n    fila.addEventListener('dragover',e=>{if([...e.dataTransfer.types].includes('application/x-erlen-paso')){e.preventDefault();e.dataTransfer.dropEffect='move';}});\n    fila.addEventListener('drop',e=>{e.preventDefault();try{const dato=JSON.parse(e.dataTransfer.getData('application/x-erlen-paso'));if(dato.protocoloId!==Estado.p.id || dato.pasoId===s.id)return;const orden=Estado.p.pasos.map(x=>x.id),origen=orden.indexOf(dato.pasoId),destino=orden.indexOf(s.id);if(origen<0 || destino<0)return;orden.splice(origen,1);orden.splice(destino,0,dato.pasoId);const r=Flujo.reordena(Estado.p,orden);if(r.error){toast(r.error,'warn');return;}Estado.cambia(q=>{q.pasos=r.pasos;});}catch(error){toast('No se pudo leer la fila arrastrada.','warn');}});return fila;\n  })));\n  c.append(h('div',{class:'fila-botones'},UI.boton('Exportar flujo Mermaid',()=>{const r=Flujo.mermaid(Estado.p);if(r.error)toast(r.error,'warn');else UI.descarga('flujo.mmd',r.texto,'text/plain');}),UI.boton('Exportar diseño de flujo JSON',()=>UI.descarga('flujo.json',JSON.stringify(Flujo.analiza(Estado.p),null,2),'application/json'))));\n});\n",
  "src/js/61-p-instrumentos.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst InstrumentosUI = (()=>{\n  function importa(lote,placa) {\n    const protocoloId=Estado.p.id,loteId=lote.id,placaId=placa.id;let archivo=null,separador='auto',decimal='.',unidadVolumen='µL',unidadResultado='',mapa={},tabla=null;\n    const vista=h('div',{'aria-live':'polite'}),columnas=h('div'),nombre=h('p',{class:'nota'},'Selecciona un CSV local.');\n    const actual=()=>Estado.p.id===protocoloId && Estado.p.lotes.find(x=>x.id===loteId);\n    const invalida=()=>vista.replaceChildren();\n    function lee() {\n      columnas.replaceChildren();invalida();tabla=archivo && Instrumentos.lee(archivo.texto,separador);if(!tabla)return;if(tabla.error){columnas.append(UI.aviso('error',tabla.error));return;}\n      mapa={};const opciones=[['','Sin asignar']].concat(tabla.cabecera.map(x=>[x,x]));\n      columnas.append(h('p',{class:'explicacion'},tabla.explicacion),Editar.rejilla(Object.entries(Instrumentos.CAMPOS).map(([campo,etiqueta])=>UI.campo('Columna para '+etiqueta,UI.selector('',opciones,v=>{mapa[campo]=v;invalida();})))));\n    }\n    UI.modal({titulo:'Importar datos de instrumento',tam:'lg',cuerpo:[h('p',null,'Destino: '+(lote.codigo || loteId)+' / '+(placa.nombre || placaId)+'. Se conserva el archivo original y cada corrección mantiene el valor anterior.'),\n      UI.boton('Elegir CSV de instrumento',()=>{const input=h('input',{type:'file',accept:'.csv,.tsv,.txt,text/csv,text/plain'});input.addEventListener('change',async()=>{const f=input.files && input.files[0];input.remove();if(!f)return;if(f.size>5*1024*1024){toast('El archivo supera 5 MB.','warn');return;}try{const bytes=new Uint8Array(await f.arrayBuffer()),texto=new TextDecoder('utf-8',{fatal:true}).decode(bytes);if(!actual())return;archivo={bytes,texto,nombre:f.name};nombre.textContent=f.name+' · '+f.size+' bytes';lee();}catch(error){toast('No se pudo leer el CSV como UTF-8: '+error.message,'warn');}});document.body.append(input);input.click();}),nombre,\n      Editar.rejilla(UI.campo('Separador de columnas del instrumento',UI.selector(separador,[['auto','Detectar'],[',','Coma'],[';','Punto y coma'],['\\t','Tabulador']],v=>{separador=v;lee();})),UI.campo('Separador decimal del instrumento',UI.selector(decimal,[['.','Punto'],[',','Coma']],v=>{decimal=v;invalida();})),UI.campo('Unidad del volumen del instrumento',UI.selector(unidadVolumen,Object.keys(Instrumentos.VOLUMENES).map(x=>[x,x]),v=>{unidadVolumen=v;invalida();})),UI.campo('Unidad común del resultado del instrumento',UI.texto(unidadResultado,v=>{unidadResultado=v;invalida();}))),columnas,\n      UI.boton('Previsualizar datos del instrumento',()=>{\n        const l=actual();if(!l || !archivo){toast('Selecciona un archivo y conserva abierta esta ejecución.','warn');return;}\n        const adjunto=Evidencia.adjunto(archivo.nombre,archivo.bytes,'text/csv',{tipo:'lote',id:loteId});if(adjunto.error){toast(adjunto.error,'warn');return;}\n        const opciones={decimal,unidadVolumen,unidadResultado,adjunto:adjunto.archivo},r=Instrumentos.prepara(l,placaId,tabla,mapa,opciones);invalida();if(r.error){vista.append(UI.aviso('error',r.error));return;}\n        const captura={tabla,mapa:deepCopy(mapa),opciones,archivo};\n        vista.append(Calculadoras.tabla(['Pozo','Resultado','Unidad','Volumen (µL)','Muestra ID','Fecha declarada'],r.registros.slice(0,30).map(({id,datos:x})=>[id,x.resultado==null ? 'Desconocido' : numero(x.resultado),x.unidadResultado,x.volumenReal==null ? 'Desconocido' : numero(x.volumenReal),x.muestraId,x.fechaMedida])),h('p',{class:'explicacion'},r.explicacion+(r.cantidad>30 ? ' La vista muestra los primeros 30 pozos.' : '')),h('p',{class:'nota secuencia-huella'},'SHA-256 del archivo original: '+adjunto.archivo.sha256),UI.boton('Registrar datos y archivo original',async()=>{\n          const l=actual();if(!l){toast('El protocolo abierto cambió.','warn');return;}const definitivo=Instrumentos.prepara(l,placaId,captura.tabla,captura.mapa,captura.opciones);if(definitivo.error){toast(definitivo.error,'warn');return;}\n          const guardado=await Estado.cambiaConArchivos(q=>{q.lotes[q.lotes.findIndex(x=>x.id===loteId)]=definitivo.lote;if(!q.adjuntos.some(x=>x.id===adjunto.archivo.id))q.adjuntos.push(adjunto.archivo);},[{id:adjunto.archivo.id,bytes:captura.archivo.bytes}]);UI.cierraModal();toast(guardado.error ? 'Los datos siguen sin guardar: '+guardado.error : 'Medidas y archivo original guardados juntos.',guardado.error ? 'warn' : 'ok');\n        },{tipo:'pri'}));\n      },{tipo:'pri'}),vista],pie:[UI.boton('Cerrar',()=>UI.cierraModal())]});\n  }\n  return {importa};\n})();\n",
  "src/js/62-p-cambios.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nMarco.registra('cambios',(c,p)=>{\n  c.append(UI.cabecera('REVISIÓN','Combinar cambios del método','Revisa una copia local y otra recibida frente a una versión común conservada. Cada conflicto requiere una elección antes de cambiar el método.'));\n  c.append(h('p',{class:'nota'},'El archivo de cambios contiene sólo la definición del método. La combinación conserva completas las ejecuciones, versiones, muestras, secuencias, archivos y análisis locales. El inventario permanece en el espacio del laboratorio. Los archivos recibidos no acreditan autoría ni una firma.'));\n  if(!p.versiones.length){c.append(UI.vacio('Hace falta una versión común','Guarda una versión antes de compartir el método. Las dos copias deben conservar el mismo identificador.',UI.boton('Abrir versiones',()=>Marco.irA('versiones'))));return;}\n  let versionId=p.versiones[0].id;const vista=h('div',{'aria-live':'polite'}),protocoloId=p.id;\n  c.append(UI.campo('Versión común para exportar cambios',UI.selector(versionId,p.versiones.map(v=>[v.id,(v.nota || 'Versión')+' · '+v.fecha]),v=>{versionId=v;})),h('div',{class:'fila-botones'},UI.boton('Exportar cambios con base común',()=>{\n    const base=Estado.p.versiones.find(v=>v.id===versionId);if(!base){toast('La versión común ya no está disponible.','warn');return;}const r=Fusion.paquete(base.protocolo,Estado.p);if(r.error)toast(r.error,'warn');else UI.descarga(UI.nombreArchivo(Estado.p.titulo)+'-cambios.json',JSON.stringify(r.datos,null,2),'application/json');\n  }),UI.boton('Revisar archivo de cambios',()=>{\n    const input=h('input',{type:'file',accept:'.json,application/json'});input.addEventListener('change',async()=>{\n      const f=input.files && input.files[0];input.remove();if(!f)return;if(f.size>5*1024*1024){toast('El archivo supera 5 MB.','warn');return;}\n      try {\n        const bytes=new Uint8Array(await f.arrayBuffer()),datos=JSON.parse(new TextDecoder('utf-8',{fatal:true}).decode(bytes));if(Estado.p.id!==protocoloId){toast('El protocolo abierto cambió.','warn');return;}\n        if(datos.format!=='erlen-methods-cambios-v1' || !datos.base || !datos.metodo || datos.baseHuella!==Fusion.huella(datos.base))throw new Error('El formato o la huella de la base no coincide.');\n        for(const x of [datos.base,datos.metodo])if(!ValidadorMethods({...x,lotes:[],versiones:[]}))throw new Error('La definición recibida no cumple el esquema del protocolo.');\n        const base=Estado.p.versiones.find(v=>Fusion.huella(v.protocolo)===datos.baseHuella);if(!base)throw new Error('Ninguna versión guardada coincide con la base. Conserva el archivo y revisa las copias por separado.');\n        const plan=Fusion.compara(base.protocolo,Estado.p,datos.metodo);if(plan.error)throw new Error(plan.error);const decisiones={};vista.replaceChildren(h('h3',null,'Revisión de '+f.name),h('p',{class:'explicacion'},plan.explicacion),h('p',{class:'calculado'},plan.cambios.length+' cambios externos compatibles · '+plan.conflictos.length+' conflictos'),h('p',{class:'nota secuencia-huella'},'Base común SHA-256: '+plan.baseHuella));\n        const etiquetas={cantidad:'Cantidad',nombre:'Nombre',texto:'Acción',pureza:'Pureza (%)',unidad:'Unidad',formula:'Fórmula',masaMolar:'Masa molar',dependeDe:'Dependencias',unidadTiempo:'Unidad de tiempo',ghs:'Códigos H',prudencia:'Códigos P',flujo:'Orden de ejecución',sinPurificar:'Sin purificación adicional'};\n        const etiqueta=k=>etiquetas[k] || k.replace(/([a-záéíóúñ])([A-ZÁÉÍÓÚÑ])/g,'$1 $2').replace(/^./,x=>x.toUpperCase());\n        const muestra=(v,nivel=0)=>v==null || v==='' ? 'No declarado' : typeof v==='boolean' ? v ? 'Sí' : 'No' : typeof v==='number' ? numero(v) : Array.isArray(v) ? v.map(x=>muestra(x,nivel+1)).join(', ') || 'Sin elementos' : typeof v==='object' ? nivel>2 ? 'Contenido estructurado' : Object.entries(v).map(([k,x])=>etiqueta(k)+': '+muestra(x,nivel+1)).join('; ') : String(v);\n        const tabla=x=>Calculadoras.tabla(['Dato','Base común','Copia local','Copia recibida'],Fusion.filasConflicto(x).map(f=>[etiqueta(f.campo),...f.valores.map(v=>v.ausente ? 'Elemento ausente' : muestra(v.valor))]));\n        if(plan.cambios.length)vista.append(h('details',null,h('summary',null,'Cambios externos compatibles'),...plan.cambios.map(x=>h('article',{class:'bloque'},h('h4',null,x.etiqueta),tabla(x)))));\n        for(const [i,x] of plan.conflictos.entries())vista.append(h('section',{class:'bloque'},h('h4',null,'Conflicto '+(i+1)+' · '+x.etiqueta),h('details',null,h('summary',null,'Ver base común y ambas copias'),tabla(x)),h('p',{class:'nota'},'La elección conserva el elemento completo de una copia. La tabla muestra los datos que difieren.'),UI.campo('Resolver conflicto '+(i+1),UI.selector('',[['','Elige una copia'],['local','Conservar copia local'],['externo','Tomar copia recibida']],v=>{decisiones[x.clave]=v;}))));\n        const hashArchivo=Evidencia.sha256(bytes);vista.append(UI.boton('Aplicar combinación revisada',async()=>{\n          if(Estado.p.id!==protocoloId || !Estado.p.versiones.some(v=>Fusion.huella(v.protocolo)===plan.baseHuella)){toast('La base o el protocolo abierto cambiaron. Vuelve a revisar el archivo.','warn');return;}\n          if(Estado.p.versiones.length>=50){toast('No queda espacio para conservar la versión anterior. Exporta una copia completa; no se borró ninguna versión.','warn');return;}\n          const r=Fusion.resuelve(plan,decisiones,Estado.p);if(r.error){toast(r.error,'warn');return;}if(!ValidadorMethods(r.protocolo)){toast('La combinación no cumple el esquema y no se aplicó.','warn');return;}\n          const anterior=Versiones.instantanea(Estado.p,'Antes de combinar cambios; archivo SHA-256 '+hashArchivo);\n          Estado.cambia(q=>{for(const k of Fusion.CAMPOS.concat(Fusion.LISTAS))q[k]=deepCopy(r.protocolo[k]);q.versiones.push(anterior);});const guardado=await Estado.aseguraGuardado();toast(guardado.error ? 'La combinación sigue sin guardar: '+guardado.error : 'Combinación guardada. La versión anterior y los registros locales se conservan.',guardado.error ? 'warn' : 'ok');\n        },{tipo:'pri'}));\n      }catch(error){vista.replaceChildren(UI.aviso('error','Archivo rechazado: '+error.message));}\n    });document.body.append(input);input.click();\n  })),vista);\n});\n",
  "src/js/63-p-cuantificacion.js": "/* SPDX-License-Identifier: AGPL-3.0-only */\n'use strict';\nconst CuantificacionUI = (()=>{\n  const tabla=a=>!a.opciones || !a.resultados.every(x=>x && x.lectura && [x.valor,x.bajo,x.alto].every(Number.isFinite)) ? UI.aviso('error','La cuantificación recibida es incompleta. Conserva el JSON y revisa su origen.') : Calculadoras.tabla(['Pozo','Respuesta original','Concentración','Inferior 95 %','Superior 95 %','Rango'],a.resultados.map(x=>[x.pozo,numero(x.lectura.resultado)+' '+x.lectura.unidadResultado,numero(x.valor)+' '+a.opciones.unidadConcentracion,numero(x.bajo),numero(x.alto),x.extrapolacion ? 'Fuera de calibración' : 'Dentro de calibración']));\n  function abre(lote,placa) {\n    const calibraciones=Estado.p.analisis.filter(a=>a.tipo==='calibracion');if(!calibraciones.length){toast('Guarda una calibración en Análisis de resultados antes de cuantificar.','warn');return;}\n    const protocoloId=Estado.p.id,loteId=lote.id,placaId=placa.id;let calibracionId='',opciones={unidadRespuesta:'',unidadConcentracion:'',factorDilucion:null,uRespuesta:null};const vista=h('div',{'aria-live':'polite'}),invalida=()=>vista.replaceChildren();\n    const calcula=()=>Estado.p.id!==protocoloId ? {error:'El protocolo abierto cambió.'} : Analisis.cuantificaPlaca(Estado.p.lotes.find(l=>l.id===loteId),placaId,Estado.p.analisis.find(a=>a.id===calibracionId),opciones);\n    UI.modal({titulo:'Cuantificar respuestas reales de placa',tam:'lg',cuerpo:[h('p',null,'Placa: '+(placa.nombre || placaId)+'. El cálculo conserva sus lecturas originales y los patrones; no modifica los resultados medidos. Declara las unidades de los patrones y la dilución real.'),\n      UI.campo('Calibración conservada',UI.selector('',[['','Elige una calibración']].concat(calibraciones.map(a=>[a.id,a.fecha+' · '+a.datos.length+' patrones'+(a.ponderada ? ' · ponderada' : '')])),v=>{calibracionId=v;invalida();})),Editar.rejilla(\n      UI.campo('Unidad de respuesta de los patrones',UI.texto('',v=>{opciones.unidadRespuesta=v;invalida();})),UI.campo('Unidad de concentración de los patrones',UI.texto('',v=>{opciones.unidadConcentracion=v;invalida();})),UI.campo('Factor de dilución declarado',UI.numero(null,v=>{opciones.factorDilucion=v;invalida();},{min:0}),{ayuda:'1 si no hubo dilución; concentración original = calculada × factor.'}),UI.campo('Incertidumbre individual de respuesta',UI.numero(null,v=>{opciones.uRespuesta=v;invalida();},{min:0}),{ayuda:'Obligatoria y positiva en calibración ponderada, en la unidad de respuesta.'})),\n      UI.boton('Previsualizar cuantificación',()=>{const r=calcula();invalida();if(r.error){vista.append(UI.aviso('error',r.error));return;}const captura=r.analisis;\n        vista.append(tabla(captura),h('p',{class:'explicacion'},captura.explicacion),...(captura.resultados.some(x=>x.extrapolacion) ? [UI.aviso('nota','Hay intervalos fuera del rango de los patrones. Comprueba la validez del método antes de usar esos resultados.')] : []),UI.boton('Conservar cuantificación independiente',async()=>{\n          if(Estado.p.analisis.length>=100){toast('Se alcanzaron 100 análisis. Exporta una copia antes de continuar; no se borró ningún análisis.','warn');return;}\n          const actual=calcula();if(actual.error){toast(actual.error,'warn');return;}if(actual.analisis.sha256Fuente!==captura.sha256Fuente){vista.replaceChildren(UI.aviso('error','Las lecturas o la calibración cambiaron. Previsualiza de nuevo.'));return;}\n          Estado.cambia(q=>{q.analisis.push(actual.analisis);});const guardado=await Estado.aseguraGuardado();UI.cierraModal();toast(guardado.error ? 'La cuantificación sigue sin guardar: '+guardado.error : 'Cuantificación conservada; las lecturas originales permanecen.',guardado.error ? 'warn' : 'ok');\n        },{tipo:'pri'}));\n      },{tipo:'pri',validar:true}),vista],pie:[UI.boton('Cerrar',()=>UI.cierraModal())]});\n  }\n  return {abre,tabla};\n})();\n",
  "src/js/90-main.js": "/* ==== 90-main.js ==== */\n'use strict';\n/* ================= acciones y arranque =================\n   Orden: tema (antes de pintar, para no destellar en claro), protocolo\n   recordado, menú de la suite, cabecera y cinta, plantilla pedida por URL, el\n   marco y, encima, la pantalla de inicio de la suite, salvo que la URL pida\n   ir directo a algo (#p/<sección> o ?plantilla=). */\n\nconst meyEvento=tipo=>window.dispatchEvent(new window.CustomEvent('erlen-mey-evento',{detail:{tipo}}));\nlet meyPrevio='';\nconst Acciones = (() => {\n  /* ---------- tema ---------- */\n  const TEMAS = ['auto', 'claro', 'oscuro'];\n  function aplicaTema() {\n    const t = Almacen.prefs().tema || 'auto', raiz = document.documentElement;\n    if (t === 'claro') raiz.setAttribute('data-theme', 'light');\n    else if (t === 'oscuro') raiz.setAttribute('data-theme', 'dark');\n    else raiz.removeAttribute('data-theme');\n  }\n  function tema(t) {\n    if (!TEMAS.includes(t)) return;\n    const pr = Almacen.prefs(); pr.tema = t; Almacen.guardaPrefs(pr);\n    aplicaTema();\n    Cinta.actualizar();\n  }\n  function idioma(v) {\n    const pr = Almacen.prefs(); pr.idioma = v === 'en' ? 'en' : 'es'; Almacen.guardaPrefs(pr);\n    Cinta.actualizar();\n    if (Marco.actual === 'metodos') Marco.repinta();\n  }\n\n  /* ---------- insertar ---------- */\n  function inserta(tipo, extra) {\n    const mapa = {\n      reactivo: ['reactivos', () => Protocolo.nuevoReactivo(), 'reactivos'],\n      disolucion: ['disoluciones', () => Protocolo.nuevaDisolucion(), 'disoluciones'],\n      paso: ['pasos', () => Protocolo.nuevoPaso(), 'procedimiento'],\n      tecnica: ['caracterizacion', () => Protocolo.nuevaTecnica(extra || 'otra'), 'caracterizacion'],\n      seguridad: ['seguridad', () => Protocolo.nuevaNota(), 'seguridad'],\n      lote: ['lotes', () => Ejecucion.nuevoLote(Estado.p, Almacen.laboratorio()), 'lotes']\n    };\n    const m = mapa[tipo];\n    if (!m) return;\n    if (tipo === 'disolucion' && !Estado.p.reactivos.length) { toast('Primero añade el reactivo que vas a disolver.', 'warn'); Marco.irA('reactivos'); return; }\n    const x = m[1]();\n    Estado.cambia(p => { p[m[0]].push(x); });\n    Marco.irA(m[2], {foco: x.id});\n  }\n\n  /* La calculadora de HDL añade sus reactivos en mmol (la masa la calcula la\n     tarjeta con la pureza) y fija el rendimiento teórico. */\n  function aplicaHDL(r, v) {\n    const nuevos = [\n      Protocolo.nuevoReactivo({formula: r.sal2.formula, pureza: v.p2, rol: 'precursor', cantidad: redondea(r.sal2.moles * 1000, 6), unidad: 'mmol'}),\n      Protocolo.nuevoReactivo({formula: r.sal3.formula, pureza: v.p3, rol: 'precursor', cantidad: redondea(r.sal3.moles * 1000, 6), unidad: 'mmol'})];\n    if (r.fuenteAnion && !r.fuenteAnion.error) nuevos.push(Protocolo.nuevoReactivo({formula: r.fuenteAnion.formula, pureza: v.pf, rol: 'precipitante', cantidad: redondea(r.fuenteAnion.moles * 1000, 6), unidad: 'mmol'}));\n    if (r.base && !r.base.error) nuevos.push(Protocolo.nuevoReactivo({formula: r.base.formula, pureza: v.pb, rol: 'precipitante'}));\n    Estado.cambia(p => {\n      p.reactivos.push(...nuevos);\n      p.rendimientoTeorico = redondea(r.rendimientoTeorico, 6);\n      p.productoFormula = r.producto;\n    });\n    toast('Se añadieron ' + nuevos.length + ' reactivos y el rendimiento teórico. La base queda sin cantidad: a pH constante se dosifica según el pH.', 'ok', {t: 'Deshacer', fn: () => Estado.deshaz()});\n    Marco.irA('reactivos', {foco: nuevos[0].id});\n  }\n\n  /* ---------- archivo ---------- */\n  function guardar() {\n    const p = Estado.p;\n    UI.descarga(UI.nombreArchivo(p.titulo) + '.json', Estado.json(), 'application/json');\n    toast('Copia descargada.', 'ok');\n  }\n  function markdown() {\n    const p = Estado.p;\n    const md = Redaccion.markdown(p, {idioma: Almacen.prefs().idioma || 'es', version: window.ERLEN ? window.ERLEN.version : ''});\n    UI.descarga(UI.nombreArchivo(p.titulo) + '.md', md, 'text/markdown;charset=utf-8');\n    toast('Protocolo exportado en Markdown.', 'ok');\n  }\n  const opcExport = () => ({idioma: Almacen.prefs().idioma || 'es', version: window.ERLEN ? window.ERLEN.version : ''});\n  async function word() {\n    const p = Estado.p;\n    UI.descarga(UI.nombreArchivo(p.titulo) + '.docx', await Documentos.word(p, opcExport()), 'application/vnd.openxmlformats-officedocument.wordprocessingml.document');\n    toast('Protocolo exportado en Word.', 'ok');\n  }\n  function latex() {\n    const p = Estado.p;\n    UI.descarga(UI.nombreArchivo(p.titulo) + '.tex', Exportar.latex(p, opcExport()), 'application/x-tex;charset=utf-8');\n    toast('Protocolo exportado en LaTeX (usa el paquete mhchem para las fórmulas).', 'ok');\n  }\n  async function eln() {\n    try {\n      const p = Estado.p;\n      const slug = UI.nombreArchivo(p.titulo || 'protocolo');\n      UI.descarga(slug + '.eln', await Exportar.eln(p, opcExport()), 'application/vnd.eln+zip');\n      toast('Archivo .eln descargado.', 'ok');\n    } catch (error) {\n      toast(error.message, 'warn');\n    }\n  }\n  /* Enviar a Documentos o Pentagrama necesita que el transporte de la suite\n     acepte a Methods como origen; mientras, se dice y se ofrece la salida. */\n  function enviar() {\n    toast('En preparación: el intercambio de la suite todavía no acepta Erlen Methods. Mientras tanto, exporta en Word, LaTeX o Markdown.', 'warn');\n  }\n  /* Plantillas propias: el protocolo abierto, sin lotes ni versiones. */\n  function plantilla() {\n    const p = Estado.p;\n    if (!Protocolo.tieneContenido(p)) { toast('El protocolo está vacío: no hay nada que guardar como plantilla.', 'warn'); return; }\n    const disciplina = UI.texto('', () => {}, {placeholder: 'Mis plantillas, Microbiología, Química analítica…'});\n    const propias = Almacen.plantillas();\n    const lista = Object.keys(propias).length ? h('div', null, h('h3', null, 'Tus plantillas'), h('ul', {class: 'lista-simple'}, Object.entries(propias).map(([id, x]) => h('li', null,\n      (x.protocolo.titulo || 'Plantilla sin título') + ' · ' + (x.disciplina || 'Mis plantillas') + ' ',\n      UI.boton('Quitar', async () => { try { await Almacen.borraPlantilla(id); } catch (e) { toast(e.message, 'warn'); return; } UI.cierraModal(); Portada.actualizar(); toast('Plantilla quitada.', 'ok'); }, {mini: true}))))) : null;\n    UI.modal({titulo: 'Guardar como plantilla', tam: 'md', cuerpo: [\n      h('p', null, '«' + (p.titulo || 'Protocolo sin título') + '» aparecerá en el inicio, con las plantillas de la app, para empezar otros protocolos. Se guarda sin lotes ni versiones, solo en este navegador.'),\n      UI.campo('Disciplina o grupo', disciplina, {ancho: 'completo'}), lista],\n      pie: [UI.boton('Cancelar', () => UI.cierraModal()), UI.boton('Guardar la plantilla', async () => {\n        try { await Almacen.guardaPlantilla(p, disciplina.value.trim()); } catch (e) { toast(e.message, 'warn'); return; }\n        UI.cierraModal(); Portada.actualizar();\n        toast('Plantilla guardada: la verás en el inicio.', 'ok');\n      }, {tipo: 'pri'})]});\n  }\n  async function copiaMetodos() {\n    const t = Redaccion.textoPlano(Estado.p, Almacen.prefs().idioma || 'es');\n    if (!t) { toast('Aún no hay texto que copiar: añade reactivos, pasos o técnicas.', 'warn'); return; }\n    toast(await UI.copia(t) ? 'Sección de métodos copiada.' : 'No se pudo copiar: selecciona el texto en «Sección de métodos».', 'ok');\n  }\n  function abrir() { const inp = $('#abrirArchivo'); if (inp) inp.click(); }\n  async function nuevo() {\n    const resultado = await Estado.nuevo();\n    if (resultado.error) { toast(resultado.error, 'warn'); return; }\n    Portada.cerrar();\n    Marco.irA('general');\n    const t = $('#fTitulo');\n    if (t) t.focus();\n  }\n  async function eliminar() {\n    const p = Estado.p;\n    if (Estado.efimero) { toast('Este protocolo aún no está en tu biblioteca.', 'warn'); return; }\n    if (!(await UI.confirma({titulo: 'Eliminar el protocolo', texto: '«' + (p.titulo || 'Protocolo sin título') + '» se borrará de este navegador. Si quieres conservarlo, descarga antes una copia.', si: 'Eliminar', peligro: true}))) return;\n    const copia = deepCopy(p);\n    await Almacen.borra(p.id);\n    await Estado.descarta();\n    Portada.abrir('biblioteca');\n    toast('Protocolo eliminado.', 'ok', {t: 'Deshacer', fn: async () => { await Almacen.guarda(copia); await Estado.abre(copia.id); Portada.actualizar(); }});\n  }\n  function fuente() {\n    const v = window.ERLEN ? window.ERLEN.version : '';\n    const a = h('a', {href: 'source.json', download: 'erlen-methods-' + v + '-fuente.json'});\n    document.body.append(a); a.click(); a.remove();\n  }\n  function acerca() {\n    const v = window.ERLEN ? window.ERLEN.version : '';\n    UI.modal({titulo: 'Acerca de Erlen Methods', tam: 'md', cuerpo: [\n      h('p', null, h('b', null, 'Erlen Methods ' + v), ' · versión alfa · software libre bajo ', h('b', null, 'AGPL-3.0-only'), '.'),\n      h('p', null, 'Protocolos de laboratorio reproducibles para cualquier disciplina: reactivos con fórmula, pureza y peligros GHS, cantidades escaladas por lote, pasos con sus parámetros, condiciones de medida, lotes con pesadas y condiciones reales, comparación y carta de control, versiones, inventario, calculadoras y la sección de métodos en español o inglés.'),\n      h('p', null, 'Todo ocurre en este navegador: sin servidor, sin cuenta y sin telemetría. La biblioteca se guarda con el prefijo «erlen-methods.»; borrar los datos del navegador la borra, así que conserva copias descargadas.'),\n      h('h3', null, 'Datos de referencia'),\n      h('ul', {class: 'lista-simple'}, [DATOS.elementos.fuente, DATOS.ghs.fuente, DATOS.tampones.fuente, DATOS.gases.fuente, DATOS.isotopos.fuente].filter(Boolean).map(t => h('li', null, t))),\n      h('p', {class: 'nota'}, 'Las clasificaciones de peligro las escribes tú desde la ficha de datos de seguridad: la app no clasifica sustancias. Los cálculos no sustituyen el criterio de tu laboratorio.'),\n      h('h3', null, 'Código fuente'),\n      h('p', null, 'La licencia AGPL te da derecho al código fuente correspondiente de esta versión: ', h('a', {href: 'source.json', download: 'erlen-methods-' + v + '-fuente.json'}, 'source.json'), ' · ', h('a', {href: 'LICENSE', target: '_blank', rel: 'noopener'}, 'licencia'), '. Las fuentes tipográficas (Latin Modern, Computer Modern Unicode) llevan sus licencias en la carpeta licenses/.'),\n      h('h3', null, 'Atajos'),\n      h('ul', {class: 'lista-simple'},\n        h('li', null, h('kbd', null, 'Ctrl+Z'), ' deshacer · ', h('kbd', null, 'Ctrl+Y'), ' rehacer'),\n        h('li', null, h('kbd', null, 'Ctrl+O'), ' abrir un protocolo · ', h('kbd', null, 'Ctrl+S'), ' descargar una copia'),\n        h('li', null, h('kbd', null, 'Ctrl+F1'), ' plegar la cinta · ', h('kbd', null, 'Esc'), ' cerrar un diálogo o un menú'))],\n      pie: UI.boton('Cerrar', () => UI.cierraModal(), {tipo: 'pri'})});\n  }\n  function inicio(vista) { Cinta.cierraArchivo(false); Portada.abrir(vista); }\n  function deshacer() { if (!Estado.deshaz()) toast('No hay nada que deshacer.'); }\n  function rehacer() { if (!Estado.rehaz()) toast('No hay nada que rehacer.'); }\n\n  return {aplicaTema, tema, idioma, inserta, aplicaHDL, guardar, markdown, word, latex, eln, enviar, plantilla, copiaMetodos, abrir, nuevo, eliminar, fuente, acerca, inicio, deshacer, rehacer};\n})();\n\n/* ---------- el marco común de la suite ----------\n   erlenMarco (diseno/suite-marco.js) reorganiza los nodos que la app ya tiene\n   —sin clonarlos ni reconstruirlos— en la forma común de COHERENCIA-APPS §4:\n   cabecera (marca, nombre, menú de suite, título, guardado y acciones), cinta,\n   índice del protocolo a la izquierda, pantalla al centro y pie. La marca del\n   marco vuelve al inicio común; el editor conserva sus listeners, su historial\n   y sus atajos.\n\n   El catálogo de despliegue viaja en el HTML (script application/json con\n   id=\"erlen-suite-catalog\" en el <head>, lo embebe herramientas/build.mjs con\n   ERLEN_SUITE_CATALOG). Lo lee erlenSuiteNavigation.catalogoDe: devuelve\n   {items, home} o null si falta o es inválido; sin catálogo el menú cae a su\n   detección standalone — cero peticiones y nunca se inventan enlaces. */\nlet _marcoSuite = null;\n/* Comandos de la ayuda de Mey: las opciones del menú Archivo de la cinta (el\n   mismo arreglo que lo pinta) y el botón «Métodos» de la cabecera, que se lee\n   del DOM y se pulsa para usar su propio manejador. */\nfunction comandosAyuda() {\n  const comandos = Cinta.comandosArchivo();\n  const metodos = $('#metodosBtn');\n  if (metodos) comandos.push({\n    clave: 'metodos-cabecera', pestana: '', etiqueta: metodos.textContent.trim(), ruta: [],\n    titulo: metodos.title, habilitado: !metodos.disabled, ejecutar: () => metodos.click()\n  });\n  return comandos;\n}\nfunction montaMarco() {\n  const catalogo = erlenSuiteNavigation.catalogoDe(document);\n  _marcoSuite = erlenMarco($('.app'), {\n    app: 'methods', nombre: 'Erlen Methods',\n    inicio: () => Acciones.inicio('inicio'),\n    elementos: {\n      titulo: $('#tituloProtocolo'),\n      estado: $('#estadoGuardado'),\n      acciones: $('.barra-acciones'),\n      cinta: $('#cinta'),\n      navegacion: $('#lateral'),\n      trabajo: $('#pantalla'),\n      pie: $('#pie-contenido')\n    },\n    navegacionSuite: catalogo || undefined,\n    ayuda: {\n      cinta: () => Cinta.cinta,\n      pasos: [\n        {control: 'general', pestana: 'inicio', texto: 'Rellenar los datos generales del protocolo'},\n        {control: 'ins-reactivo', pestana: 'insertar', texto: 'Insertar un reactivo'},\n        {control: 'ins-paso', pestana: 'insertar', texto: 'Insertar un paso del procedimiento'},\n        {control: 'calc-todas', pestana: 'calcular', texto: 'Abrir las calculadoras de la disciplina'},\n        {control: 'met-ver', pestana: 'metodos', texto: 'Ver la sección de métodos redactada'}\n      ],\n      extras: comandosAyuda\n    }\n  });\n}\n\nconst Arranque = (() => {\n  const enlaza = (sel, ev, fn) => { const el = $(sel); if (el) el.addEventListener(ev, fn); };\n  /* «Guardando…» → «Guardado ✓» / «Sin guardar» en ámbar (COHERENCIA-APPS §8). */\n  function pintaGuardado() {\n    const s = $('#estadoGuardado');\n    if (!s) return;\n    const texto = Estado.error ? 'Sin guardar' : Estado.efimero ? 'Sin cambios' : Estado.pendiente ? 'Guardando…' : 'Guardado ✓';\n    if (s.textContent !== texto) s.textContent = texto;\n    s.toggleAttribute('data-error', !!Estado.error);\n    s.title = Estado.error || (Estado.efimero ? 'Se guarda en este navegador en cuanto lo edites.' : 'Se guarda solo en este navegador. Para llevarlo a otro equipo, usa «Guardar copia».');\n    const error=!!Estado.error;const actual=error?'error':Estado.pendiente?'guardando':'guardado';if(actual!==meyPrevio){if(actual==='error')meyEvento('error');else if(actual==='guardado'&&meyPrevio==='guardando')meyEvento('guardado');meyPrevio=actual;}\n  }\n  function cabecera() {\n    enlaza('.salta', 'click', e => { e.preventDefault(); const m = $('#pantalla'); if (m) m.focus(); });\n    enlaza('#acercaBtn', 'click', Acciones.acerca);\n    enlaza('#metodosBtn', 'click', () => Marco.irA('metodos'));\n    enlaza('#deshacerBtn', 'click', Acciones.deshacer);\n    enlaza('#rehacerBtn', 'click', Acciones.rehacer);\n    enlaza('#abrirArchivo', 'change', async e => {\n      const f = e.target.files && e.target.files[0];\n      e.target.value = '';\n      if (!f) return;\n      try {\n        const r = await Estado.importa(await f.text());\n        if (r.error) { toast('No se pudo abrir «' + f.name + '»: ' + r.error, 'danger'); return; }\n        Portada.cerrar();\n        Marco.irA('general');\n        toast(r.avisos.length ? 'Abierto con ' + r.avisos.length + ' aviso(s): ' + r.avisos[0] : 'Protocolo abierto como copia en tu biblioteca.', r.avisos.length ? 'warn' : 'ok');\n      } catch (err) { toast('No se pudo leer «' + f.name + '»: ' + err.message, 'danger'); }\n    });\n    const t = $('#tituloProtocolo');\n    if (t) {\n      /* Se sincroniza con todo cambio que no venga de este mismo campo (la\n         plantilla puede abrirse con el foco aquí, al cerrar el inicio). */\n      let propio = false;\n      const sincroniza = () => { if (propio) { propio = false; return; } if (t.value !== Estado.p.titulo) t.value = Estado.p.titulo; };\n      t.value = Estado.p.titulo;\n      t.addEventListener('input', () => { propio = true; Estado.cambia(p => { p.titulo = t.value; }, {silencioso: true, grupo: 'titulo'}); });\n      Estado.suscribe(sincroniza, {siempre: true});\n    }\n    const botones = () => {\n      const d = $('#deshacerBtn'), r = $('#rehacerBtn');\n      if (d) d.disabled = !Estado.puedeDeshacer();\n      if (r) r.disabled = !Estado.puedeRehacer();\n    };\n    Estado.suscribe(botones, {siempre: true});\n    Estado.suscribe(pintaGuardado, {siempre: true});\n    botones();\n    pintaGuardado();\n    /* Con el inicio abierto el editor está inerte y sus atajos no actúan. */\n    window.addEventListener('keydown', e => {\n      if (!Portada.abierta || !(e.ctrlKey || e.metaKey)) return;\n      if (['s', 'o', 'z', 'y', 'f1'].includes(e.key.toLowerCase())) { e.preventDefault(); e.stopPropagation(); }\n    }, true);\n    document.addEventListener('keydown', e => {\n      if (!(e.ctrlKey || e.metaKey) || e.altKey) return;\n      const k = e.key.toLowerCase();\n      /* Dentro de un campo, Ctrl+Z es el deshacer del propio campo mientras\n         escribes; el global actúa fuera de los campos. */\n      const enCampo = /^(INPUT|TEXTAREA|SELECT)$/.test((document.activeElement || {}).tagName || '');\n      if (k === 's') { e.preventDefault(); Acciones.guardar(); }\n      else if (k === 'o') { e.preventDefault(); Acciones.abrir(); }\n      else if (k === 'z' && !e.shiftKey && !enCampo) { e.preventDefault(); Acciones.deshacer(); }\n      else if ((k === 'y' || (k === 'z' && e.shiftKey)) && !enCampo) { e.preventDefault(); Acciones.rehacer(); }\n    });\n  }\n\n  /* ?plantilla=<id> (o ?ejemplo=, el nombre del portal) abre la plantilla\n     sin guardarla: entra en la biblioteca cuando la editas. Así el\n     «Pruébalo en vivo» del portal no llena tu biblioteca de copias. */\n  async function plantillaDeUrl() {\n    let id = null;\n    try { const q = new URLSearchParams(location.search); id = q.get('plantilla') || q.get('ejemplo'); } catch (e) { id = null; }\n    if (!id) return false;\n    const r = await Estado.desdePlantilla(id, true);\n    if (r.error) { toast(r.error + ' Se abre el inicio.', 'warn'); return false; }\n    toast('Ejemplo didáctico: sustituye los datos por los de tu trabajo.', 'ok');\n    if (!location.hash) history.replaceState(null, '', location.pathname + location.search + '#p/general');\n    return true;\n  }\n\n  async function arranca() {\n    await Almacen.inicia();\n    Acciones.aplicaTema();\n    Estado.restaura();\n    /* Primero el marco común: mueve los nodos de la app a sus huecos y monta el\n       menú de la suite; después la cinta y, encima, el inicio común. */\n    montaMarco();\n    cabecera();\n    const acciones = {inicio: Acciones.inicio, nuevo: Acciones.nuevo, abrir: Acciones.abrir, guardar: Acciones.guardar, markdown: Acciones.markdown,\n      acerca: Acciones.acerca, fuente: Acciones.fuente, tema: Acciones.tema, idioma: Acciones.idioma, inserta: Acciones.inserta,\n      copiaMetodos: Acciones.copiaMetodos, deshacer: Acciones.deshacer, rehacer: Acciones.rehacer, eliminar: Acciones.eliminar,\n      word: Acciones.word, latex: Acciones.latex, eln: Acciones.eln, enviar: Acciones.enviar, plantilla: Acciones.plantilla};\n    Cinta.monta($('#cinta'), acciones);\n    Portada.monta(acciones);\n    const directo = await plantillaDeUrl() || /^#p\\//.test(location.hash || '');\n    Marco.arranca();\n    window.addEventListener('hashchange', () => { if (Portada.abierta && /^#p\\//.test(location.hash)) Portada.cerrar(); });\n    window.addEventListener('pagehide', () => {Estado.conservaPendiente();Estado.guardaYa();});\n    document.addEventListener('visibilitychange',()=>{if(document.visibilityState==='hidden'){Estado.conservaPendiente();Estado.guardaYa();}});\n    if (!directo) Portada.abrir('inicio');\n  }\n  return {arranca};\n})();\n\nif (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', Arranque.arranca); else Arranque.arranca();\n",
  "src/modelo/protocolo-v2.schema.json": "{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n  \"$id\": \"erlen-methods-protocolo-v2\",\n  \"title\": \"Protocolo y registros de ejecución de Erlen Methods\",\n  \"type\": \"object\",\n  \"required\": [\n    \"format\",\n    \"id\",\n    \"titulo\",\n    \"reactivos\",\n    \"pasos\",\n    \"lotes\"\n  ],\n  \"properties\": {\n    \"format\": {\n      \"const\": \"erlen-methods-protocolo-v2\"\n    },\n    \"id\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"titulo\": {\n      \"type\": \"string\"\n    },\n    \"escala\": {\n      \"type\": \"number\",\n      \"exclusiveMinimum\": 0\n    },\n    \"reactivos\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"id\"\n        ],\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"maxLength\": 120\n          },\n          \"smiles\": {\n            \"type\": \"string\"\n          },\n          \"cantidad\": {\n            \"type\": [\n              \"number\",\n              \"null\"\n            ],\n            \"minimum\": 0\n          },\n          \"pureza\": {\n            \"type\": [\n              \"number\",\n              \"null\"\n            ],\n            \"minimum\": 0,\n            \"maximum\": 100\n          },\n          \"masaMolar\": {\n            \"type\": [\n              \"number\",\n              \"null\"\n            ],\n            \"exclusiveMinimum\": 0\n          },\n          \"densidad\": {\n            \"type\": [\n              \"number\",\n              \"null\"\n            ],\n            \"exclusiveMinimum\": 0\n          }\n        }\n      }\n    },\n    \"pasos\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"id\"\n        ],\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"maxLength\": 120\n          },\n          \"volumen\": {\n            \"type\": [\n              \"number\",\n              \"null\"\n            ],\n            \"minimum\": 0\n          },\n          \"capacidad\": {\n            \"type\": [\n              \"number\",\n              \"null\"\n            ],\n            \"exclusiveMinimum\": 0\n          },\n          \"dependeDe\": {\n            \"type\": \"array\",\n            \"maxItems\": 1000,\n            \"uniqueItems\": true,\n            \"items\": {\n              \"type\": \"string\",\n              \"minLength\": 1,\n              \"maxLength\": 120\n            }\n          }\n        }\n      }\n    },\n    \"lotes\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"id\"\n        ],\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"maxLength\": 120\n          },\n          \"factor\": {\n            \"type\": \"number\",\n            \"exclusiveMinimum\": 0\n          },\n          \"resultado\": {\n            \"type\": [\n              \"number\",\n              \"null\"\n            ]\n          },\n          \"revision\": {\n            \"type\": [\n              \"object\",\n              \"null\"\n            ]\n          },\n          \"ejecucion\": {\n            \"type\": \"object\",\n            \"properties\": {\n              \"estado\": {\n                \"enum\": [\n                  \"preparado\",\n                  \"enCurso\",\n                  \"terminado\"\n                ]\n              },\n              \"inicio\": {\n                \"type\": \"string\"\n              },\n              \"fin\": {\n                \"type\": \"string\"\n              },\n              \"pasos\": {\n                \"type\": \"object\",\n                \"additionalProperties\": {\n                  \"type\": \"object\",\n                  \"properties\": {\n                    \"completado\": {\n                      \"type\": \"boolean\"\n                    },\n                    \"fecha\": {\n                      \"type\": \"string\"\n                    },\n                    \"nota\": {\n                      \"type\": \"string\"\n                    }\n                  }\n                }\n              },\n              \"muestrasRegistros\": {\n                \"type\": \"array\",\n                \"maxItems\": 5000,\n                \"items\": {\n                  \"type\": \"object\",\n                  \"required\": [\n                    \"id\",\n                    \"nombre\"\n                  ],\n                  \"properties\": {\n                    \"id\": {\n                      \"type\": \"string\",\n                      \"minLength\": 1,\n                      \"maxLength\": 120\n                    },\n                    \"nombre\": {\n                      \"type\": \"string\"\n                    },\n                    \"fechaVinculo\": {\n                      \"type\": \"string\"\n                    },\n                    \"loteId\": {\n                      \"type\": \"string\"\n                    },\n                    \"origen\": {\n                      \"type\": \"string\",\n                      \"maxLength\": 500\n                    },\n                    \"tipo\": {\n                      \"type\": \"string\",\n                      \"maxLength\": 120\n                    },\n                    \"ubicacion\": {\n                      \"type\": \"string\",\n                      \"maxLength\": 300\n                    },\n                    \"cantidad\": {\n                      \"type\": [\n                        \"number\",\n                        \"null\"\n                      ],\n                      \"minimum\": 0\n                    },\n                    \"unidad\": {\n                      \"enum\": [\n                        \"\",\n                        \"µL\",\n                        \"mL\",\n                        \"L\",\n                        \"mg\",\n                        \"g\",\n                        \"unidades\"\n                      ]\n                    },\n                    \"estado\": {\n                      \"enum\": [\n                        \"registrada\",\n                        \"disponible\",\n                        \"agotada\",\n                        \"descartada\"\n                      ]\n                    },\n                    \"fechaRecepcion\": {\n                      \"type\": \"string\",\n                      \"pattern\": \"^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$\"\n                    },\n                    \"derivadaDe\": {\n                      \"type\": \"string\",\n                      \"maxLength\": 120\n                    },\n                    \"derivacion\": {\n                      \"type\": [\n                        \"object\",\n                        \"null\"\n                      ]\n                    },\n                    \"historial\": {\n                      \"type\": \"array\",\n                      \"maxItems\": 10000,\n                      \"items\": {\n                        \"type\": \"object\",\n                        \"required\": [\n                          \"id\",\n                          \"tipo\",\n                          \"fecha\",\n                          \"motivo\"\n                        ],\n                        \"properties\": {\n                          \"id\": {\n                            \"type\": \"string\",\n                            \"minLength\": 1\n                          },\n                          \"tipo\": {\n                            \"type\": \"string\"\n                          },\n                          \"fecha\": {\n                            \"type\": \"string\"\n                          },\n                          \"motivo\": {\n                            \"type\": \"string\"\n                          }\n                        }\n                      }\n                    }\n                  }\n                }\n              },\n              \"placas\": {\n                \"type\": \"array\",\n                \"maxItems\": 100,\n                \"items\": {\n                  \"type\": \"object\",\n                  \"required\": [\n                    \"id\",\n                    \"formato\",\n                    \"pozos\"\n                  ],\n                  \"properties\": {\n                    \"id\": {\n                      \"type\": \"string\",\n                      \"minLength\": 1,\n                      \"maxLength\": 120\n                    },\n                    \"formato\": {\n                      \"enum\": [\n                        6,\n                        12,\n                        24,\n                        48,\n                        96,\n                        384\n                      ]\n                    },\n                    \"capacidad\": {\n                      \"type\": [\n                        \"number\",\n                        \"null\"\n                      ],\n                      \"exclusiveMinimum\": 0\n                    },\n                    \"pozos\": {\n                      \"type\": \"object\",\n                      \"additionalProperties\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                          \"volumenReal\": {\n                            \"type\": [\n                              \"number\",\n                              \"null\"\n                            ],\n                            \"minimum\": 0\n                          },\n                          \"resultado\": {\n                            \"type\": [\n                              \"number\",\n                              \"null\"\n                            ]\n                          },\n                          \"muestraId\": {\n                            \"type\": \"string\"\n                          },\n                          \"unidadResultado\": {\n                            \"type\": \"string\"\n                          },\n                          \"fechaMedida\": {\n                            \"type\": \"string\"\n                          },\n                          \"fechaRegistro\": {\n                            \"type\": \"string\"\n                          },\n                          \"origen\": {\n                            \"type\": \"object\"\n                          }\n                        }\n                      },\n                      \"propertyNames\": {\n                        \"pattern\": \"^[A-P]([1-9]|1[0-9]|2[0-4])$\"\n                      }\n                    },\n                    \"historial\": {\n                      \"type\": \"array\",\n                      \"maxItems\": 10000,\n                      \"items\": {\n                        \"type\": \"object\"\n                      }\n                    }\n                  }\n                }\n              },\n              \"archivosOrigen\": {\n                \"type\": \"array\",\n                \"items\": {\n                  \"type\": \"object\",\n                  \"required\": [\n                    \"id\",\n                    \"nombre\",\n                    \"sha256\",\n                    \"bytes\"\n                  ],\n                  \"properties\": {\n                    \"id\": {\n                      \"type\": \"string\",\n                      \"pattern\": \"^sha256-[a-f0-9]{64}$\"\n                    },\n                    \"nombre\": {\n                      \"type\": \"string\"\n                    },\n                    \"sha256\": {\n                      \"type\": \"string\",\n                      \"pattern\": \"^[a-f0-9]{64}$\"\n                    },\n                    \"bytes\": {\n                      \"type\": \"integer\",\n                      \"minimum\": 0,\n                      \"maximum\": 10485760\n                    },\n                    \"enlace\": {\n                      \"type\": \"object\",\n                      \"required\": [\n                        \"tipo\",\n                        \"id\"\n                      ],\n                      \"properties\": {\n                        \"tipo\": {\n                          \"enum\": [\n                            \"protocolo\",\n                            \"lote\",\n                            \"muestra\",\n                            \"instrumento\"\n                          ]\n                        },\n                        \"id\": {\n                          \"type\": \"string\",\n                          \"minLength\": 1,\n                          \"maxLength\": 120\n                        }\n                      }\n                    },\n                    \"tipo\": {\n                      \"type\": \"string\",\n                      \"maxLength\": 100\n                    }\n                  }\n                },\n                \"maxItems\": 1000\n              }\n            }\n          }\n        }\n      }\n    },\n    \"placas\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"id\",\n          \"formato\",\n          \"pozos\"\n        ],\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"maxLength\": 120\n          },\n          \"formato\": {\n            \"enum\": [\n              6,\n              12,\n              24,\n              48,\n              96,\n              384\n            ]\n          },\n          \"capacidad\": {\n            \"type\": [\n              \"number\",\n              \"null\"\n            ],\n            \"exclusiveMinimum\": 0\n          },\n          \"pozos\": {\n            \"type\": \"object\",\n            \"additionalProperties\": {\n              \"type\": \"object\",\n              \"properties\": {\n                \"volumen\": {\n                  \"type\": [\n                    \"number\",\n                    \"null\"\n                  ],\n                  \"minimum\": 0\n                },\n                \"resultado\": {\n                  \"type\": [\n                    \"number\",\n                    \"null\"\n                  ]\n                },\n                \"muestra\": {\n                  \"type\": \"string\",\n                  \"maxLength\": 120\n                },\n                \"replica\": {\n                  \"type\": [\n                    \"integer\",\n                    \"null\"\n                  ],\n                  \"minimum\": 1\n                },\n                \"concentracion\": {\n                  \"type\": [\n                    \"number\",\n                    \"null\"\n                  ],\n                  \"minimum\": 0\n                },\n                \"rol\": {\n                  \"enum\": [\n                    \"muestra\",\n                    \"blanco\",\n                    \"controlPositivo\",\n                    \"controlNegativo\",\n                    \"patron\"\n                  ]\n                }\n              }\n            },\n            \"propertyNames\": {\n              \"pattern\": \"^[A-P]([1-9]|1[0-9]|2[0-4])$\"\n            }\n          },\n          \"transferencias\": {\n            \"type\": \"array\",\n            \"items\": {\n              \"type\": \"object\",\n              \"required\": [\n                \"id\",\n                \"origen\",\n                \"destino\",\n                \"volumen\"\n              ],\n              \"properties\": {\n                \"id\": {\n                  \"type\": \"string\",\n                  \"minLength\": 1,\n                  \"maxLength\": 120\n                },\n                \"origen\": {\n                  \"type\": \"string\"\n                },\n                \"destino\": {\n                  \"type\": \"string\"\n                },\n                \"volumen\": {\n                  \"type\": \"number\",\n                  \"exclusiveMinimum\": 0\n                },\n                \"fecha\": {\n                  \"type\": \"string\"\n                }\n              }\n            }\n          }\n        }\n      },\n      \"maxItems\": 100\n    },\n    \"muestras\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"id\",\n          \"nombre\"\n        ],\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"maxLength\": 120\n          },\n          \"nombre\": {\n            \"type\": \"string\"\n          },\n          \"loteId\": {\n            \"type\": \"string\"\n          },\n          \"origen\": {\n            \"type\": \"string\",\n            \"maxLength\": 500\n          },\n          \"tipo\": {\n            \"type\": \"string\",\n            \"maxLength\": 120\n          },\n          \"ubicacion\": {\n            \"type\": \"string\",\n            \"maxLength\": 300\n          },\n          \"cantidad\": {\n            \"type\": [\n              \"number\",\n              \"null\"\n            ],\n            \"minimum\": 0\n          },\n          \"unidad\": {\n            \"enum\": [\n              \"\",\n              \"µL\",\n              \"mL\",\n              \"L\",\n              \"mg\",\n              \"g\",\n              \"unidades\"\n            ]\n          },\n          \"estado\": {\n            \"enum\": [\n              \"registrada\",\n              \"disponible\",\n              \"agotada\",\n              \"descartada\"\n            ]\n          },\n          \"fechaRecepcion\": {\n            \"type\": \"string\",\n            \"pattern\": \"^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$\"\n          },\n          \"derivadaDe\": {\n            \"type\": \"string\",\n            \"maxLength\": 120\n          },\n          \"derivacion\": {\n            \"type\": [\n              \"object\",\n              \"null\"\n            ]\n          },\n          \"historial\": {\n            \"type\": \"array\",\n            \"maxItems\": 10000,\n            \"items\": {\n              \"type\": \"object\",\n              \"required\": [\n                \"id\",\n                \"tipo\",\n                \"fecha\",\n                \"motivo\"\n              ],\n              \"properties\": {\n                \"id\": {\n                  \"type\": \"string\",\n                  \"minLength\": 1\n                },\n                \"tipo\": {\n                  \"type\": \"string\"\n                },\n                \"fecha\": {\n                  \"type\": \"string\"\n                },\n                \"motivo\": {\n                  \"type\": \"string\"\n                }\n              }\n            }\n          }\n        }\n      },\n      \"maxItems\": 5000\n    },\n    \"referencias\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"id\",\n          \"type\",\n          \"title\"\n        ],\n        \"properties\": {\n          \"id\": {\n            \"type\": [\n              \"string\",\n              \"number\"\n            ]\n          },\n          \"type\": {\n            \"type\": \"string\"\n          },\n          \"title\": {\n            \"type\": \"string\"\n          }\n        }\n      },\n      \"maxItems\": 1000\n    },\n    \"adjuntos\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"id\",\n          \"nombre\",\n          \"sha256\",\n          \"bytes\"\n        ],\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"pattern\": \"^sha256-[a-f0-9]{64}$\"\n          },\n          \"nombre\": {\n            \"type\": \"string\"\n          },\n          \"sha256\": {\n            \"type\": \"string\",\n            \"pattern\": \"^[a-f0-9]{64}$\"\n          },\n          \"bytes\": {\n            \"type\": \"integer\",\n            \"minimum\": 0,\n            \"maximum\": 10485760\n          },\n          \"enlace\": {\n            \"type\": \"object\",\n            \"required\": [\n              \"tipo\",\n              \"id\"\n            ],\n            \"properties\": {\n              \"tipo\": {\n                \"enum\": [\n                  \"protocolo\",\n                  \"lote\",\n                  \"muestra\",\n                  \"instrumento\"\n                ]\n              },\n              \"id\": {\n                \"type\": \"string\",\n                \"minLength\": 1,\n                \"maxLength\": 120\n              }\n            }\n          },\n          \"tipo\": {\n            \"type\": \"string\",\n            \"maxLength\": 100\n          }\n        }\n      },\n      \"maxItems\": 1000\n    },\n    \"analisis\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"maxLength\": 120\n          },\n          \"tipo\": {\n            \"type\": \"string\"\n          },\n          \"fecha\": {\n            \"type\": \"string\"\n          }\n        }\n      },\n      \"maxItems\": 100\n    },\n    \"secuencias\": {\n      \"type\": \"array\",\n      \"maxItems\": 200,\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"id\",\n          \"tipo\",\n          \"secuencia\",\n          \"sha256\",\n          \"cabecera\",\n          \"identificador\"\n        ],\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"maxLength\": 120\n          },\n          \"identificador\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"maxLength\": 2000\n          },\n          \"cabecera\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"maxLength\": 2000\n          },\n          \"tipo\": {\n            \"enum\": [\n              \"ADN\",\n              \"ARN\",\n              \"proteina\"\n            ]\n          },\n          \"secuencia\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"maxLength\": 1000000\n          },\n          \"sha256\": {\n            \"type\": \"string\",\n            \"pattern\": \"^[a-f0-9]{64}$\"\n          },\n          \"muestraId\": {\n            \"type\": \"string\",\n            \"maxLength\": 120\n          },\n          \"origen\": {\n            \"type\": \"object\"\n          },\n          \"notas\": {\n            \"type\": \"string\"\n          }\n        }\n      }\n    },\n    \"flujo\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"modo\"\n      ],\n      \"properties\": {\n        \"modo\": {\n          \"enum\": [\n            \"libre\",\n            \"secuencial\",\n            \"dependencias\"\n          ]\n        }\n      }\n    }\n  }\n}\n",
  "src/preludio.js": "",
  "herramientas/ampliacion-bibliotecas.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport {createRequire} from 'node:module';\nimport {readFileSync,writeFileSync,mkdirSync,existsSync} from 'node:fs';\nimport {dirname,join} from 'node:path';\nimport {fileURLToPath} from 'node:url';\nconst raiz=fileURLToPath(new URL('../',import.meta.url));\nconst requiere=createRequire(import.meta.url);\nexport const modulos=[\n {nombre:'dexie',version:'4.4.6',licencia:'Apache-2.0',entrada:\"import Dexie from 'dexie'; export {Dexie};\",uso:'Almacenamiento transaccional, migración y adjuntos',repositorio:'https://github.com/dexie/Dexie.js'},\n {nombre:'smiles-drawer',version:'2.4.1',licencia:'MIT',entrada:\"import SmilesDrawer from 'smiles-drawer'; export {SmilesDrawer};\",uso:'Dibujo local de estructuras SMILES',repositorio:'https://github.com/reymond-group/smilesDrawer'},\n {nombre:'@citation-js/core',version:'0.9.0',licencia:'MIT',entrada:\"import {Cite} from '@citation-js/core'; import '@citation-js/plugin-bibtex'; import '@citation-js/plugin-ris'; export {Cite};\",uso:'Bibliografía local BibTeX, RIS y CSL',repositorio:'https://github.com/citation-js/citation-js'},\n {nombre:'docx',version:'9.8.1',licencia:'MIT',entrada:\"export {Document,Packer,Paragraph,TextRun,Table,TableRow,TableCell,HeadingLevel} from 'docx';\",uso:'Documentos Word con tablas, bibliografía y anexos',repositorio:'https://github.com/dolanmiu/docx'},\n {nombre:'katex',version:'0.18.9',licencia:'MIT',entrada:\"export {renderToString} from 'katex';\",uso:'Ecuaciones con salida MathML nativa, sin fuentes remotas',repositorio:'https://github.com/KaTeX/KaTeX'},\n {nombre:'echarts',version:'6.1.0',licencia:'Apache-2.0',entrada:\"import {init,use} from 'echarts/core'; import {LineChart,ScatterChart} from 'echarts/charts'; import {GridComponent,DataZoomComponent} from 'echarts/components'; import {SVGRenderer} from 'echarts/renderers'; use([LineChart,ScatterChart,GridComponent,DataZoomComponent,SVGRenderer]); export {init};\",uso:'Gráficas de calibración, residuos y tendencias mediante SVG',repositorio:'https://github.com/apache/echarts'},\n {nombre:'simple-statistics',version:'7.12.1',licencia:'ISC',entrada:\"export {mean,sampleStandardDeviation,quantileSorted} from 'simple-statistics';\",uso:'Resumen de simulaciones de incertidumbre',repositorio:'https://github.com/simple-statistics/simple-statistics'}\n];\nexport function raizPaquete(nombre,archivoEntrada) {\n let ruta=dirname(archivoEntrada || requiere.resolve(nombre));\n while(!existsSync(join(ruta,'package.json')) || JSON.parse(readFileSync(join(ruta,'package.json'),'utf8')).name!==nombre) {\n  const anterior=ruta;ruta=dirname(ruta);if(ruta===anterior)throw new Error('No se encontró '+nombre);\n }\n return ruta;\n}\nexport function textoLicencia(ruta) {\n for(const nombre of ['LICENSE','LICENSE.txt','LICENSE.md','LICENSE-MIT','LICENSE-MIT.txt','LICENCE','license','license.txt','license.md','License.txt']) if(existsSync(join(ruta,nombre))) return readFileSync(join(ruta,nombre),'utf8');\n const paquete=JSON.parse(readFileSync(join(ruta,'package.json'),'utf8'));\n if(paquete.name==='@citation-js/name')return readFileSync(join(raiz,'herramientas/licencias/citation-js-name-LICENSE.txt'),'utf8');\n if(paquete.name==='@citation-js/date' && paquete.license==='MIT')return 'Package: '+paquete.name+' '+paquete.version+'\\nLicense declared by package.json: MIT. Author: '+JSON.stringify(paquete.author)+'\\nNo copyright year is inferred.\\n'+readFileSync(join(raiz,'herramientas/licencias/citation-js-name-LICENSE.txt'),'utf8').split('Permission is hereby')[1].replace(/^/, 'Permission is hereby');\n throw new Error('Falta la licencia de '+ruta);\n}\nexport async function ampliacionBibliotecas() {\n const resultados=[];\n for(const d of modulos) {\n  const carpeta=join(raiz,'vendor',d.nombre);\n  if(existsSync(join(carpeta,'erlen-bundle.js'))) {\n   const paquete=JSON.parse(readFileSync(join(carpeta,'package.json'),'utf8'));\n   if(paquete.version!==d.version)throw new Error('Versión vendor inesperada');\n   resultados.push({...d,paquete,fuente:readFileSync(join(carpeta,'erlen-bundle.js'),'utf8'),textoLicencia:readFileSync(join(carpeta,'LICENSE'),'utf8')});continue;\n  }\n  const {build}=await import('esbuild');\n  const paqueteRaiz=raizPaquete(d.nombre), paquete=JSON.parse(readFileSync(join(paqueteRaiz,'package.json'),'utf8'));\n  if(paquete.version!==d.version)throw new Error('Versión inesperada de '+d.nombre);\n  const resultado=await build({stdin:{contents:d.entrada,resolveDir:raiz,loader:'js'},bundle:true,minify:true,legalComments:'inline',format:'iife',globalName:'_bibliotecaMethods',platform:'browser',write:false,metafile:true,target:['chrome110','firefox110']});\n  const licencias=new Map([[d.nombre,textoLicencia(paqueteRaiz)]]);\n  // Los paquetes transitivos también conservan su licencia en el artefacto.\n  for(const entrada of Object.keys(resultado.metafile.inputs)) {\n   if(!entrada.includes('node_modules/'))continue;\n   let ruta=dirname(join(raiz,entrada));\n   while(!existsSync(join(ruta,'package.json'))) {const anterior=ruta;ruta=dirname(ruta);if(ruta===anterior)break;}\n   if(existsSync(join(ruta,'package.json'))) {const p=JSON.parse(readFileSync(join(ruta,'package.json'),'utf8'));if(p.name && !licencias.has(p.name))licencias.set(p.name,textoLicencia(ruta));}\n  }\n  const fuente='(function(){'+resultado.outputFiles[0].text+';window.Bibliotecas=window.Bibliotecas||{};window.Bibliotecas['+JSON.stringify(d.nombre)+']=_bibliotecaMethods;})();\\n';\n  const texto=[...licencias].map(([n,t])=>'===== '+n+' =====\\n'+t).join('\\n\\n');\n  resultados.push({...d,paquete,fuente,textoLicencia:texto});\n }\n return resultados;\n}\n",
  "herramientas/bibliotecas.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport {readFileSync, existsSync} from 'node:fs';\nimport {createRequire} from 'node:module';\nimport {dirname, join} from 'node:path';\nimport {fileURLToPath} from 'node:url';\nimport {createHash} from 'node:crypto';\nimport {ampliacionBibliotecas} from './ampliacion-bibliotecas.mjs';\n\nconst requiere = createRequire(import.meta.url);\nconst declaraciones = [\n  {nombre: 'papaparse', version: '5.5.3', archivo: 'papaparse.min.js', licencia: 'MIT', uso: 'CSV con comillas, saltos de línea y diagnóstico de errores', repositorio: 'https://github.com/mholt/PapaParse'},\n  {nombre: 'fuse.js', version: '7.1.0', archivo: 'dist/fuse.basic.min.js', licencia: 'Apache-2.0', uso: 'Búsqueda local tolerante a errores en la biblioteca', repositorio: 'https://github.com/krisk/Fuse'},\n  {nombre: 'fflate', version: '0.8.3', archivo: 'umd/index.js', licencia: 'MIT', uso: 'Exportación ZIP comprimida de documentos y paquetes de investigación', repositorio: 'https://github.com/101arrowz/fflate'}\n];\n\nexport async function bibliotecas() {\n  const originales = declaraciones.map(d => {\n    let raiz = join(fileURLToPath(new URL('../', import.meta.url)), 'vendor', d.nombre);\n    if (!existsSync(join(raiz, 'package.json'))) {\n      raiz = dirname(requiere.resolve(d.nombre));\n      while (!existsSync(join(raiz, 'package.json'))) raiz = dirname(raiz);\n    }\n    if (JSON.parse(readFileSync(join(raiz, 'package.json'), 'utf8')).name !== d.nombre) throw new Error('No se encontró el paquete ' + d.nombre);\n    const paquete = JSON.parse(readFileSync(join(raiz, 'package.json'), 'utf8'));\n    if (paquete.version !== d.version) throw new Error('Versión inesperada de ' + d.nombre);\n    const fuente = readFileSync(join(raiz, d.archivo), 'utf8');\n    const licencia = readFileSync(join(raiz, 'LICENSE'), 'utf8');\n    return {...d, paquete, fuente, textoLicencia: licencia, sha256: createHash('sha256').update(fuente).digest('hex')};\n  });\n  return originales.concat((await ampliacionBibliotecas()).map(b => ({...b,archivo:'erlen-bundle.js',sha256:createHash('sha256').update(b.fuente).digest('hex')})));\n}\n\nexport async function fuentesBibliotecas() {\n  return Object.fromEntries((await bibliotecas()).flatMap(b => [\n    ['vendor/' + b.nombre + '/' + b.archivo, b.fuente],\n    ['vendor/' + b.nombre + '/LICENSE', b.textoLicencia],\n    ['vendor/' + b.nombre + '/package.json', JSON.stringify(b.paquete, null, 2) + '\\n']\n  ]));\n}\n",
  "herramientas/build.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\n/* Un solo archivo HTML autocontenido: sin servidor, sin CDN y sin cuenta. Un\n   protocolo de laboratorio es trabajo inédito del grupo; que no salga del\n   equipo es parte del diseño, no una limitación.\n\n   Las bibliotecas se fijan por versión, se incrustan y viajan con sus licencias.\n   Los modelos científicos se implementan en los módulos del producto y se\n   contrastan con oráculos independientes. El diseño compartido vive en\n   src/diseno/; se sincroniza desde la suite y nunca se edita a mano. */\nimport {readFileSync as read, writeFileSync as write, mkdirSync, cpSync, readdirSync, rmSync} from 'node:fs';\nimport {fileURLToPath} from 'node:url';\nimport {join, dirname} from 'node:path';\nimport {createHash} from 'node:crypto';\nimport {bibliotecas} from './bibliotecas.mjs';\nimport {validador} from './validacion.mjs';\nimport {fuenteCorrespondiente} from './fuente.mjs';\n\nconst root = join(dirname(fileURLToPath(import.meta.url)), '..');\nconst get = p => read(join(root, p), 'utf8');\nconst paquete = JSON.parse(get('package.json'));\nconst version = paquete.version;\nconst lista = p => get(p).trim().split('\\n').map(s => s.trim()).filter(n => n && !n.startsWith('#'));\nconst orden = lista('src/js/_orden.txt');\nconst ordenCss = lista('src/css/_orden.txt');\n\n/* Las entradas «diseno/…» de _orden.txt apuntan a la copia sincronizada del\n   paquete de diseño (docs/DISENO-PAQUETE.md del portal): tokens, fuentes de\n   Knuth en base64, cromo base, movimiento, menú, cinta e inicio como IIFE. */\nconst enSrc = (carpeta, n) => n.startsWith('diseno/') ? 'src/' + n : 'src/' + carpeta + '/' + n;\nconst diseno = JSON.parse(get('src/diseno/diseno.json'));\nconst css = get('src/css/_preludio.css') + ordenCss.map(n => get(enSrc('css', n))).join('\\n');\n/* Datos de referencia (pesos atómicos, técnicas, plantillas): JSON en\n   src/datos/, incrustados como DATOS. Se eliminan sólo espacios del JSON:\n   los valores y las fuentes legibles permanecen completos. */\nconst datos = readdirSync(join(root, 'src/datos')).filter(n => n.endsWith('.json')).sort()\n  .map(n => JSON.stringify(n.replace(/\\.json$/, '')) + ':' + JSON.stringify(JSON.parse(get('src/datos/' + n)))).join(',\\n');\nconst dependencias = await bibliotecas();\nconst terceros = dependencias.map(b => b.fuente).join('\\n;\\n') + '\\n;\\n';\nconst js = terceros + await validador() + get('src/preludio.js') + 'const DATOS = Object.freeze({' + datos + '});\\n' + orden.map(n => get(enSrc('js', n))).join('\\n');\n\n/* El matraz de la marca como icono de pestaña, incrustado: sin petición al\n   servidor y disponible también con el archivo suelto. */\nconst FAVICON = '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\">'\n + '<rect width=\"64\" height=\"64\" rx=\"12\" fill=\"#faf9f5\"/>'\n + '<path d=\"M25 10h14v15l13 24a4 4 0 0 1-3.5 6H15.5a4 4 0 0 1-3.5-6l13-24z\" fill=\"none\" stroke=\"#141413\" stroke-width=\"4\" stroke-linejoin=\"round\"/>'\n + '<path d=\"M20 42h24l5 9H15z\" fill=\"#1f7a4d\"/><circle cx=\"26\" cy=\"47\" r=\"2.2\" fill=\"#faf9f5\"/><circle cx=\"34\" cy=\"47\" r=\"2.2\" fill=\"#faf9f5\"/><circle cx=\"30\" cy=\"43\" r=\"2.2\" fill=\"#faf9f5\"/></svg>';\nconst ICONO = '<link rel=\"icon\" href=\"data:image/svg+xml,' + encodeURIComponent(FAVICON).replace(/'/g, '%27') + '\">';\nconst script = s => '<script>' + s.replace(/<\\/script/gi, '<\\\\/script') + '</script>';\n\n/* ---------- catálogo de despliegue ----------\n   ERLEN_SUITE_CATALOG apunta al JSON {items, home} que escribe el runner del\n   workspace con las apps realmente desplegadas: el menú de la suite las enlaza.\n   Se embebe en el <head> como script application/json (id\n   «erlen-suite-catalog») y la app lo lee al arrancar con\n   erlenSuiteNavigation.catalogoDe (src/js/90-main.js). Sin la variable no se\n   embebe nada y el menú conserva su detección standalone: nunca se inventan\n   enlaces. */\nlet catalogoHtml = '', catalogoEfectivo = null;\nif (process.env.ERLEN_SUITE_CATALOG) {\n  const catalogo = JSON.parse(read(process.env.ERLEN_SUITE_CATALOG, 'utf8'));\n  const vistos = new Set();\n  const items = catalogo && Array.isArray(catalogo.items) ? catalogo.items : null;\n  const bueno = i => i && typeof i.id === 'string' && /^[a-z][a-z0-9-]*$/.test(i.id) && typeof i.label === 'string' && i.label\n    && typeof i.href === 'string' && i.href && !vistos.has(i.id);\n  if (!items || !items.length || !catalogo.home || typeof catalogo.home.href !== 'string' || !catalogo.home.href\n    || !items.every(i => { const v = bueno(i); if (v) vistos.add(i.id); return v; }))\n    throw new Error('ERLEN_SUITE_CATALOG debe ser {items:[{id,label,href}], home:{href}} con ids únicos');\n  catalogoEfectivo = catalogo;\n  /* \\u003c: ningún «<» dentro del script, así el JSON no puede cerrarlo. */\n  catalogoHtml = '<script type=\"application/json\" id=\"erlen-suite-catalog\">' + JSON.stringify(catalogo).replace(/</g, '\\\\u003c') + '</script>';\n}\n\nconst html = '<!doctype html><html lang=\"es\"><head><meta charset=\"utf-8\">'\n + '<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">'\n + '<title>Erlen Methods · Protocolos de laboratorio</title>' + ICONO\n + '<meta name=\"description\" content=\"Protocolos de laboratorio reproducibles para cualquier disciplina, en el navegador: reactivos escalados por lote con su seguridad, pasos con parámetros, lotes comparables, calculadoras y la sección de métodos redactada. Sin cuenta y sin subir datos.\">'\n + '<style>body{margin:0}img{max-width:100%}[hidden]{display:none!important}</style>'\n + '<style>' + css + '</style>' + catalogoHtml + '</head><body>'\n + get('src/cuerpo.html').replaceAll('__VERSION__', version)\n + script('window.ERLEN={producto:\"methods\",version:' + JSON.stringify(version) + ',telemetria:false};')\n + script(js)\n + '</body></html>\\n';\n\nconst out = join(root, 'public');\nrmSync(out, {recursive: true, force: true});\nmkdirSync(out, {recursive: true});\nwrite(join(out, 'index.html'), html);\ncpSync(join(root, 'LICENSE'), join(out, 'LICENSE'));\n/* Las licencias de las fuentes y del cromo del paquete de diseño viajan con\n   la app: sus woff2 van incrustados en el HTML. */\ncpSync(join(root, 'src/diseno/licencias'), join(out, 'licenses'), {recursive: true});\n\nfor (const b of dependencias) write(join(out, 'licenses', b.nombre.replaceAll('/', '-') + '-LICENSE.txt'), b.textoLicencia);\nwrite(join(out, 'third-party.json'), JSON.stringify({schemaVersion: 1, libraries: dependencias.map(({nombre, version, licencia, repositorio, uso, sha256}) => ({name: nombre, version, license: licencia, repository: repositorio, usage: uso, sha256, bundled: 'index.html'}))}, null, 2) + '\\n');\n\n/* ---------- contrato de Erlen Suite (docs/CONTRATO-APP.md del portal) ----------\n   El manifiesto con id, versión, licencia, ruta de montaje y estado; el código\n   fuente correspondiente (el repositorio es privado y la AGPL obliga a\n   ofrecerlo a quien use el programa por red); y build.json con el sha256 del\n   HTML. Se generan aquí y no a mano: una versión que no coincida entre\n   package.json, el manifiesto y el tag de la release no se despliega. */\nconst MANIFIESTO = {\n  schemaVersion: 1,\n  id: 'methods',\n  name: 'Erlen Methods',\n  version,\n  status: 'alpha',\n  license: paquete.license,\n  repository: paquete.repository.url.replace(/\\.git$/, ''),\n  mountPath: '/methods/',\n  entrypoint: 'index.html',\n  storageNamespace: 'erlen-methods.',\n  suiteRepository: 'https://github.com/erlen-frontier-ops/erlen-suite',\n  design: {version: diseno.version}\n};\nwrite(join(out, 'erlen-tool.json'), JSON.stringify(MANIFIESTO, null, 2) + '\\n');\nwrite(join(out, 'source.json'), JSON.stringify(await fuenteCorrespondiente(root, catalogoEfectivo), null, 1) + '\\n');\nwrite(join(out, 'build.json'), JSON.stringify({\n  id: 'methods', status: 'alpha',\n  version, modulos: orden.length, estilos: ordenCss.length,\n  bytes: Buffer.byteLength(html),\n  sha256: createHash('sha256').update(html).digest('hex'),\n  bibliotecas: dependencias.map(({nombre, version, licencia, repositorio, uso, sha256}) => ({nombre, version, licencia, repositorio, uso, sha256}))\n}, null, 2) + '\\n');\n\nconst kib = n => (n / 1024).toFixed(0);\nconsole.log(`Erlen Methods ${version}: ${orden.length} módulos, ${kib(Buffer.byteLength(html))} KiB en un archivo · diseño de la suite ${diseno.version}`);\nconsole.log('  '+dependencias.length+' bibliotecas incrustadas con sus licencias; sin CDN ni peticiones externas');\n",
  "herramientas/contrato.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\n/* Autocomprobación del contrato de app de Erlen Suite sobre el ZIP «web».\n\n   El portal ejecuta su propio comprobador (herramientas/comprobar-app.mjs de\n   erlen-suite) antes de integrar una release, y una release que no lo pasa no\n   se despliega. Esto es la misma lista de exigencias, comprobada aquí y en\n   cada empuje, para enterarse antes de etiquetar y no después.\n\n     node herramientas/contrato.mjs [dist/erlen-methods-<v>-web.zip]\n\n   Sale con 1 si algo falla. Reglas (docs/CONTRATO-APP.md §1 y §3 del portal):\n   index.html, LICENSE, build.json, erlen-tool.json y source.json en la raíz;\n   rutas relativas; sha256 de build.json igual al de index.html; sin recursos\n   externos (https:// en src, href de recursos, url() o @import); sin rutas\n   absolutas del portal; ZIP ≤ 25 MB e index.html ≤ 3,25 MiB. */\nimport {readFileSync, statSync, readdirSync} from 'node:fs';\nimport {join, dirname} from 'node:path';\nimport {createHash} from 'node:crypto';\nimport {fileURLToPath} from 'node:url';\nimport {unzipSync} from 'fflate';\n\nconst root = join(dirname(fileURLToPath(import.meta.url)), '..');\nconst MB = 1024 * 1024;\nconst version = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8')).version;\nconst rutaZip = process.argv[2] || join(root, 'dist', `erlen-methods-${version}-web.zip`);\nconst txt = d => new TextDecoder().decode(d);\n\nexport function compruebaContrato(zipBytes) {\n  const ok = [], fallos = [];\n  const files = unzipSync(zipBytes);\n  const nombres = Object.keys(files).filter(n => !n.endsWith('/'));\n  const malas = Object.keys(files).filter(n => n.startsWith('/') || n.includes('\\\\') || n.includes(':') || n.split('/').some(p => p === '..' || p === '.'));\n  if (malas.length) fallos.push('rutas inválidas: ' + malas.slice(0, 5).join(', ')); else ok.push(nombres.length + ' archivos con rutas relativas');\n  for (const r of ['index.html', 'LICENSE', 'build.json', 'erlen-tool.json', 'source.json']) {\n    if (files[r]) ok.push(r + ' presente'); else fallos.push('falta ' + r);\n  }\n  if (files['erlen-tool.json']) {\n    const t = JSON.parse(txt(files['erlen-tool.json']));\n    if (t.id !== 'methods') fallos.push('erlen-tool.json: id «' + t.id + '», se esperaba «methods»');\n    if (t.version !== version) fallos.push('erlen-tool.json: version ' + t.version + ' ≠ package.json ' + version);\n    if (t.mountPath !== '/methods/') fallos.push('erlen-tool.json: mountPath debe ser /methods/');\n    if (!['alpha', 'beta', 'stable'].includes(t.status)) fallos.push('erlen-tool.json: status inválido');\n    if (t.license !== 'AGPL-3.0-only') fallos.push('erlen-tool.json: license debe ser AGPL-3.0-only');\n    if (!fallos.some(f => f.startsWith('erlen-tool'))) ok.push('erlen-tool.json: methods ' + t.version + ' ' + t.status);\n  }\n  if (files['build.json'] && files['index.html']) {\n    const b = JSON.parse(txt(files['build.json']));\n    const sha = createHash('sha256').update(files['index.html']).digest('hex');\n    if (b.sha256 === sha) ok.push('build.json: sha256 coincide con index.html'); else fallos.push('build.json: sha256 no coincide con index.html');\n    if (b.version !== version) fallos.push('build.json: version ' + b.version + ' ≠ ' + version);\n  }\n  if (files['source.json']) {\n    const s = JSON.parse(txt(files['source.json']));\n    if (s.format !== 'erlen-source-v1' || !s.files || !s.files['herramientas/build.mjs']) fallos.push('source.json: falta el formato o herramientas/build.mjs');\n    else ok.push('source.json: ' + Object.keys(s.files).length + ' archivos de código fuente');\n  }\n  if (zipBytes.length <= 25 * MB) ok.push('ZIP de ' + (zipBytes.length / MB).toFixed(1) + ' MB ≤ 25 MB'); else fallos.push('ZIP supera 25 MB');\n  if (files['index.html']) {\n    const n = files['index.html'].length;\n    if (n <= 3.25 * MB) ok.push('index.html de ' + (n / MB).toFixed(2) + ' MiB ≤ 3,25 MiB'); else fallos.push('index.html supera 3,25 MiB');\n  }\n  const externos = [], portal = [];\n  const EXT = /^(https?:)?\\/\\//i;\n  const esPortal = v => ['/suite.css', '/diseno/', '/libre/', '/fuentes/'].some(r => v === r || v.startsWith(r) || v === r.replace(/\\/$/, ''));\n  for (const name of nombres) {\n    const ext = name.slice(name.lastIndexOf('.') + 1).toLowerCase();\n    if (!['html', 'htm', 'css', 'js', 'mjs'].includes(ext)) continue;\n    const t = txt(files[name]);\n    if (ext === 'html' || ext === 'htm') {\n      for (const [, tag, attrs] of t.matchAll(/<(link|script|img|source|video|iframe|audio|embed)\\b([^>]*)>/gi)) {\n        for (const [, attr, v1, v2, v3] of attrs.matchAll(/\\b(src|href|srcset)\\s*=\\s*(?:\"([^\"]*)\"|'([^']*)'|([^\\s>]+))/gi)) {\n          const v = (v1 ?? v2 ?? v3 ?? '').trim();\n          if (EXT.test(v)) externos.push(name + ': <' + tag + ' ' + attr + '=\"' + v.slice(0, 60) + '\">');\n          else if (esPortal(v)) portal.push(name + ': ' + v);\n        }\n      }\n    }\n    for (const m of t.matchAll(/url\\(\\s*(?:\"([^\"]*)\"|'([^']*)'|([^)\\s\"']+))\\s*\\)/gi)) { const v = (m[1] ?? m[2] ?? m[3] ?? '').trim(); if (EXT.test(v)) externos.push(name + ': url(' + v.slice(0, 60) + ')'); else if (esPortal(v)) portal.push(name + ': url(' + v + ')'); }\n    for (const m of t.matchAll(/@import\\s+(?:url\\(\\s*)?[\"']?([^\"')\\s;]+)/gi)) { if (EXT.test(m[1])) externos.push(name + ': @import ' + m[1].slice(0, 60)); }\n  }\n  if (externos.length) fallos.push('recursos externos:\\n    ' + [...new Set(externos)].slice(0, 8).join('\\n    ')); else ok.push('sin recursos externos');\n  if (portal.length) fallos.push('rutas absolutas del portal:\\n    ' + [...new Set(portal)].slice(0, 8).join('\\n    ')); else ok.push('sin rutas absolutas del portal');\n  return {ok, fallos};\n}\n\nif (process.argv[1] && fileURLToPath(import.meta.url) === process.argv[1]) {\n  let bytes;\n  try { bytes = readFileSync(rutaZip); } catch (e) { console.error('✖ no existe ' + rutaZip + ' (ejecuta npm run package)'); process.exit(1); }\n  const r = compruebaContrato(bytes);\n  console.log('Contrato de app · ' + rutaZip.split('/').pop());\n  for (const l of r.ok) console.log('  ✔ ' + l);\n  for (const l of r.fallos) console.log('  ✖ ' + l);\n  console.log(r.fallos.length ? `✖ ${r.fallos.length} fallo(s): el paquete NO cumple el contrato.` : `✔ ${r.ok.length} comprobaciones en verde.`);\n  process.exit(r.fallos.length ? 1 : 0);\n}\n",
  "herramientas/fuente.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\n/* Código fuente correspondiente, dentro del paquete.\n\n   El repositorio es privado y la aplicación se sirve por red desde Erlen Suite:\n   la cláusula 13 de la AGPL obliga a ofrecer el código fuente a quien la use.\n   El contrato de la suite (docs/CONTRATO-APP.md §1) lo resuelve con un\n   `source.json` que viaja en el ZIP: el código completo, archivo por archivo,\n   para que cualquiera pueda reconstruir el HTML sin pedir permiso a nadie.\n\n   Solo entra texto. Las capturas de docs/images son documentación, no código,\n   y pesan más que todo lo demás junto. */\nimport {fuentesBibliotecas} from './bibliotecas.mjs';\nimport {validador} from './validacion.mjs';\nimport {readFileSync, readdirSync, statSync} from 'node:fs';\nimport {join, relative, extname} from 'node:path';\n\nconst TEXTO = new Set(['.js', '.mjs', '.css', '.html', '.json', '.md', '.txt', '.cff', '.py', '.yml', '.yaml', '.csv', '.tex']);\nconst SUELTOS = ['package.json', 'package-lock.json', 'AGENTS.md', 'README.md', 'LICENSE', 'CITATION.cff',\n  'THIRD_PARTY_NOTICES.md', 'SECURITY.md', '.zenodo.json', '.gitignore'];\nconst CARPETAS = ['src', 'herramientas', 'tests', 'docs', 'examples', '.github'];\n\nfunction* archivosDe(raiz, carpeta) {\n  const abs = join(raiz, carpeta);\n  let entradas;\n  try { entradas = readdirSync(abs, {withFileTypes: true}); } catch (e) { return; }\n  for (const e of entradas.sort((a, b) => a.name.localeCompare(b.name))) {\n    const ruta = join(carpeta, e.name);\n    if (e.isDirectory()) yield* archivosDe(raiz, ruta);\n    else if (e.isFile() && (TEXTO.has(extname(e.name)) || e.name === 'LICENSE' || e.name === '_orden.txt')) yield ruta.replaceAll('\\\\', '/');\n  }\n}\n\n/* Devuelve el objeto de source.json: {format, files:{ruta: texto}}. */\nexport async function fuenteCorrespondiente(raiz, catalogo) {\n  const files = await fuentesBibliotecas();\n  files['vendor/validacion.js'] = await validador();\n  for (const n of SUELTOS) {\n    try { if (statSync(join(raiz, n)).isFile()) files[n] = readFileSync(join(raiz, n), 'utf8'); } catch (e) { /* opcional */ }\n  }\n  for (const c of CARPETAS) for (const r of archivosDe(raiz, c)) files[r] = readFileSync(join(raiz, r), 'utf8');\n  if (catalogo) files['erlen-suite-catalog.json'] = JSON.stringify(catalogo, null, 2) + '\\n';\n  const paquete = JSON.parse(files['package.json']);\n  return {\n    format: 'erlen-source-v1',\n    id: 'methods',\n    version: paquete.version,\n    license: paquete.license,\n    repository: paquete.repository && paquete.repository.url,\n    repositoryVisibility: 'private',\n    build: 'Monorepo: npm ci desde la raíz y npm run package --workspace @erlen/methods. Fuente descargada: node herramientas/build.mjs reconstruye el HTML autocontenido sin instalar paquetes. Para el ZIP de producción (esbuild y Python): node herramientas/minificar.mjs && python3 herramientas/package-release.py. Para reproducir el catálogo del despliegue: ERLEN_SUITE_CATALOG=erlen-suite-catalog.json node herramientas/build.mjs.',\n    files\n  };\n}\n",
  "herramientas/licencias/citation-js-name-LICENSE.txt": "The MIT License (MIT)\n\nPackage: @citation-js/name 0.4.2\nAuthor declared by package.json: Lars Willighagen\nLicense declared by package.json: MIT\nUpstream: https://github.com/citation-js/name\nThe npm package and upstream repository do not provide a separate copyright notice.\nThe following is the standard MIT permission text; no copyright year is inferred.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n",
  "herramientas/minificar.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport {readFileSync, writeFileSync} from 'node:fs';\nimport {fileURLToPath} from 'node:url';\nimport {dirname, join} from 'node:path';\nimport {transform} from 'esbuild';\n\nconst root = join(dirname(fileURLToPath(import.meta.url)), '..');\nconst html = readFileSync(join(root, 'public/index.html'), 'utf8');\nconst scripts = [...html.matchAll(/<script>([\\s\\S]*?)<\\/script>/g)];\nconst app = scripts.at(-1);\nif (!app) throw new Error('No se encontró el script autocontenido de Methods.');\n\nconst {code} = await transform(app[1], {\n  loader: 'js',\n  minifyWhitespace: true,\n  minifySyntax: true,\n  minifyIdentifiers: false,\n  legalComments: 'inline',\n  target: ['chrome110', 'firefox110']\n});\nconst compact = '<script>' + code.replace(/<\\/script/gi, '<\\\\/script') + '</script>';\nconst result = html.slice(0, app.index) + compact + html.slice(app.index + app[0].length);\nwriteFileSync(join(root, 'public/index.min.html'), result);\nconsole.log(`Methods release HTML: ${Buffer.byteLength(result)} bytes`);\n",
  "herramientas/nucleo.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\n/* Carga los módulos de cálculo sin DOM en un ámbito único, igual que los\n   concatena el build, para probarlos con node --test sin navegador.\n\n   Convención (ver AGENTS.md): los archivos 01–29 de src/js/_orden.txt no tocan\n   el DOM al cargarse y cada uno expone un único espacio de nombres\n   `const Nombre = (() => { … return {…}; })();`. Aquí se recogen todos esos\n   nombres automáticamente, más las utilidades de 01-util.js. */\nimport Papa from 'papaparse';\nimport Fuse from 'fuse.js';\nimport * as fflate from 'fflate';\nimport * as estadistica from 'simple-statistics';\nimport {Cite} from '@citation-js/core';\nimport '@citation-js/plugin-bibtex';\nimport '@citation-js/plugin-ris';\nimport SmilesDrawer from 'smiles-drawer';\nimport {readFileSync, readdirSync} from 'node:fs';\n\nconst leer = r => readFileSync(new URL('../' + r, import.meta.url), 'utf8');\nconst orden = leer('src/js/_orden.txt').trim().split('\\n').map(s => s.trim()).filter(n => n && !n.startsWith('#'));\nexport const ARCHIVOS = orden.filter(n => /^[0-2]\\d-/.test(n));\nconst datos = readdirSync(new URL('../src/datos/', import.meta.url)).filter(n => n.endsWith('.json')).sort()\n  .map(n => JSON.stringify(n.replace(/\\.json$/, '')) + ':' + leer('src/datos/' + n).trim()).join(',\\n');\nconst fuente = 'const DATOS = Object.freeze({' + datos + '});\\n' + ARCHIVOS.map(n => leer('src/js/' + n)).join('\\n');\nconst nombres = [...fuente.matchAll(/^const ([A-Z][A-Za-z0-9]*) = \\(\\(\\) =>/gm)].map(m => m[1]);\nconst UTIL = ['DATOS', 'esc', 'deepCopy', 'redondea', 'cifras', 'numero', 'uid', 'ahora'];\nexport const N = new Function('window', fuente + '\\nreturn {' + UTIL.concat(nombres).join(',') + '};')({ERLEN: {version: 'test'}, Papa, Fuse, fflate, Bibliotecas:{'simple-statistics':estadistica,'@citation-js/core':{Cite},'smiles-drawer':{SmilesDrawer}}});\nexport const NOMBRES = nombres;\n\n/* Comparación con tolerancia relativa que dice dónde falla. */\nexport function cerca(real, esperado, tol = 1e-9, donde = '') {\n  if (typeof real !== 'number' || !(Math.abs(real - esperado) <= tol * Math.max(1, Math.abs(esperado))))\n    throw new Error(`${donde}: ${real} ≠ ${esperado} (tol ${tol})`);\n  return true;\n}\n",
  "herramientas/oraculos-biologia.py": "# SPDX-License-Identifier: AGPL-3.0-only\n\"\"\"Referencias reproducibles de Biopython/Biotite; no son dependencias del HTML.\"\"\"\nimport io\nimport json\nimport os\nimport tempfile\nfrom importlib.metadata import version\nfrom itertools import product\nfrom pathlib import Path\n\nos.environ.setdefault('MPLCONFIGDIR', str(Path(tempfile.gettempdir()) / 'erlen-methods-matplotlib'))\nfrom Bio import SeqIO\nfrom Bio.Data import CodonTable\nfrom Bio.Seq import Seq\nfrom Bio.SeqUtils import gc_fraction\nfrom biotite.sequence import NucleotideSequence\n\nfasta = '>ref_01 Descripción declarada\\nATGGCCAAATAA\\n>ref_02 Ambigüedad declarada\\nACGTRYSWKMBDHVN\\n'\ncasos = []\nfor tipo, texto in [('ADN', 'ATGGCCAAATAA'), ('ADN', 'ACGTRYSWKMBDHVN'), ('ARN', 'AUGGCCAAAUAA'), ('ADN', 'RAYSARWTAGCNTARNNN')]:\n    secuencia = Seq(texto)\n    complemento = str(secuencia.reverse_complement_rna() if tipo == 'ARN' else secuencia.reverse_complement())\n    traducciones = []\n    for tabla in [1, 2, 11]:\n        for marco in [1, 2, 3, -1, -2, -3]:\n            orientada = Seq(complemento if marco < 0 else texto)[abs(marco) - 1:]\n            completa = orientada[:len(orientada) // 3 * 3]\n            traducciones.append({'tabla': tabla, 'marco': marco, 'secuencia': str(completa.translate(table=tabla)), 'resto': len(orientada) % 3})\n    caso = {'tipo': tipo, 'secuencia': texto, 'complemento': complemento, 'gcEquiprobable': 100 * gc_fraction(texto, ambiguous='weighted'), 'traducciones': traducciones}\n    if tipo == 'ADN' and set(texto).issubset(set('ACGT')):\n        independiente = NucleotideSequence(texto)\n        caso['complementoBiotite'] = str(independiente.complement()[::-1].copy())\n        caso['traduccionBiotite'] = str(independiente.translate(complete=True))\n    casos.append(caso)\n\ncodones = [''.join(c) for c in product('TCAG', repeat=3)]\ntablas = []\nfor numero in [1, 2, 11]:\n    tabla = CodonTable.unambiguous_dna_by_id[numero]\n    tablas.append({'numero': numero, 'codones': {c: tabla.forward_table.get(c, '*') for c in codones}, 'inicios': tabla.start_codons, 'paradas': tabla.stop_codons})\n\nreferencias = {\n    'format': 'erlen-methods-oraculos-biologia-v1',\n    'versiones': {p: version(p) for p in ['biopython', 'biotite']},\n    'fuenteCodigos': 'NCBI Genetic Codes: https://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi',\n    'fasta': {'texto': fasta, 'registros': [{'identificador': r.id, 'cabecera': r.description, 'secuencia': str(r.seq)} for r in SeqIO.parse(io.StringIO(fasta), 'fasta')]},\n    'secuencias': casos,\n    'tablas': tablas,\n    'cds': [{'tabla': tabla, 'secuencia': texto, 'proteina': str(Seq(texto).translate(table=tabla, cds=True))} for tabla, texto in [(1, 'ATGGCCAAATAA'), (2, 'ATATGAAAATAG'), (11, 'GTGAAATAA')]],\n}\nsalida = Path(__file__).resolve().parents[1] / 'tests/fixtures/oraculos-biologia.json'\nsalida.write_text(json.dumps(referencias, indent=2, ensure_ascii=False) + '\\n')\nprint(salida)\n",
  "herramientas/oraculos-cientificos.py": "# SPDX-License-Identifier: AGPL-3.0-only\n\"\"\"Genera referencias independientes; no se distribuye Python en la aplicación.\n\nEjecutar con las versiones de oraculos-requisitos.txt en un entorno virtual.\nLas masas atómicas de otras tablas no se usan como verdad sobre CIAAW 2021.\n\"\"\"\nimport json\nfrom importlib.metadata import version\nfrom pathlib import Path\n\nimport numpy as np\nimport scipy.stats as estadistica\nimport statsmodels.api as modelos\nfrom chempy.electrolytes import ionic_strength\nfrom chemicals.utils import mixing_simple\nfrom pymatgen.core import Composition\nfrom uncertainties import correlated_values\n\ncasos = []\nfor ponderada in [False, True]:\n    x = np.array([0.0, 1.0, 2.0, 4.0, 6.0, 9.0])\n    y = np.array([0.23, 1.91, 4.37, 8.05, 12.52, 17.81])\n    u = np.array([0.08, 0.13, 0.17, 0.21, 0.3, 0.4])\n    matriz = modelos.add_constant(x)\n    ajuste = (modelos.WLS(y, matriz, weights=1 / u**2) if ponderada else modelos.OLS(y, matriz)).fit()\n    covarianza = ajuste.cov_params(scale=1.0) if ponderada else ajuste.cov_params()\n    punto, u_nueva = 3.25, 0.2\n    fila = np.array([1.0, punto])\n    k = estadistica.norm.ppf(0.975) if ponderada else estadistica.t.ppf(0.975, len(x) - 2)\n    varianza_nueva = u_nueva**2 if ponderada else ajuste.scale\n    respuesta, repeticiones = 7.2, 3\n    a, b = ajuste.params[1], respuesta - ajuste.params[0]\n    polinomio = [a*a-k*k*covarianza[1,1], -2*a*b-2*k*k*covarianza[0,1], b*b-k*k*(covarianza[0,0]+varianza_nueva/repeticiones)]\n    extremos = sorted(float(v) for v in np.roots(polinomio))\n    casos.append({\n        'ponderada': ponderada,\n        'datos': [{'x': float(a), 'y': float(b), 'u': float(c)} for a, b, c in zip(x, y, u)],\n        'intercepto': float(ajuste.params[0]), 'pendiente': float(ajuste.params[1]),\n        'covarianza': covarianza.tolist(), 'r2': float(ajuste.rsquared),\n        'inversa': {'y': respuesta, 'uNueva': u_nueva, 'repeticiones': repeticiones, 'valor': float(b/a), 'bajo': extremos[0], 'alto': extremos[1]},\n        'palancas': (1/np.sum(1/u**2) + (x-np.average(x,weights=1/u**2))**2/np.sum((x-np.average(x,weights=1/u**2))**2/u**2)).__mul__(1/u**2).tolist() if ponderada else ajuste.get_influence().hat_matrix_diag.tolist(),\n        'cook': None if ponderada else ajuste.get_influence().cooks_distance[0].tolist(),\n        'prediccion': {'x': punto, 'uNueva': u_nueva, 'valor': float(fila @ ajuste.params),\n                       'intervalo': float(k * np.sqrt(fila @ covarianza @ fila + varianza_nueva)), 'k': float(k)},\n    })\ncorrelacion = np.array([[0.04, -0.024], [-0.024, 0.09]])\na, b = correlated_values([4.0, 2.0], correlacion)\nz = a * b\niones = [{'c': 0.03, 'z': 2}, {'c': 0.06, 'z': -1}]\nformulas = ['Fe2(SO4)3', 'Ca(OH)2', 'C6H12O6', 'Zn0.75Al0.25(OH)2']\nreferencias = {\n    'format': 'erlen-methods-oraculos-v1',\n    'versiones': {p: version(p) for p in ['numpy', 'scipy', 'statsmodels', 'uncertainties', 'chempy', 'chemicals', 'pymatgen', 'pint', 'rocrate']},\n    'calibracion': casos,\n    'gum': {'expresion': 'a*b', 'entradas': [{'nombre': 'a', 'valor': 4, 'u': 0.2}, {'nombre': 'b', 'valor': 2, 'u': 0.3}],\n            'correlaciones': [{'a': 'a', 'b': 'b', 'rho': -0.4}], 'valor': z.nominal_value, 'uc': z.std_dev},\n    'fuerzaIonica': {'especies': iones, 'valor': float(ionic_strength([v['c'] for v in iones], [v['z'] for v in iones]))},\n    'composicion': [{'formula': f, 'elementos': Composition(f).get_el_amt_dict()} for f in formulas],\n    'mezcla': {'componentes': [{'masa': 10, 'densidad': 0.8}, {'masa': 40, 'densidad': 1.1}],\n               'densidad': float(1 / mixing_simple([0.2, 0.8], [1 / 0.8, 1 / 1.1]))},\n}\nsalida = Path(__file__).resolve().parents[1] / 'tests/fixtures/oraculos-cientificos.json'\nsalida.parent.mkdir(parents=True, exist_ok=True)\nsalida.write_text(json.dumps(referencias, indent=2, ensure_ascii=False) + '\\n')\nprint(salida)\n",
  "herramientas/oraculos-dimensionales.py": "#!/usr/bin/env python3\n\"\"\"SPDX-License-Identifier: AGPL-3.0-only. Referencias externas de unidades y derivadas.\"\"\"\nimport json\nfrom importlib.metadata import version\nfrom pathlib import Path\nimport pint\nimport sympy as s\n\nu=pint.UnitRegistry()\nconversiones=[]\nfor valor,origen,destino,a,b in [\n (1,'g/cm^3','kg/m^3','g/cm**3','kg/m**3'),(2.5,'mL','µL','mL','microliter'),\n (20,'µM','mol/m^3','micromole/liter','mole/meter**3'),(3,'kJ/mol','J/mol','kJ/mol','J/mol'),\n (4,'mol/(L·s)','mol/(m^3·h)','mol/(liter*second)','mol/(meter**3*hour)'),\n (10,'J/(g·K)','kJ/(kg·K)','J/(g*K)','kJ/(kg*K)'),(2,'m/s²','cm/min²','m/s**2','cm/min**2'),\n (1,'atm','Pa','atm','Pa'),(1,'Torr','Pa','torr','Pa'),(1,'mmHg','Pa','mmHg','Pa'),\n (100,'psi','bar','psi','bar'),(1,'eV','J','electron_volt','J'),(5,'cal','J','thermochemical_calorie','J'),\n (1,'kWh','J','kilowatt_hour','J'),(1,'gal','mL','gallon','mL'),(1,'lb','g','lb','g'),\n (25,'°C','K','degC','K'),(32,'°F','°C','degF','degC'),(-40,'°C','°F','degC','degF'),\n (300,'K','°C','K','degC'),(1,'Å','nm','angstrom','nm'),(1,'Ω','mΩ','ohm','milliohm'),\n (1,'ppm','%','ppm','percent'),(1,'S','A/V','siemens','ampere/volt')]:\n conversiones.append({'valor':valor,'origen':origen,'destino':destino,'esperado':float(u.Quantity(valor,a).to(b).magnitude)})\n\ncasos=[('log(x)',{'x':1e308}),('atan(x)',{'x':1e155}),('1e12+x',{'x':1}),('sqrt(x)',{'x':1e-14}),('ln(x)',{'x':1e-30}),('log(x)',{'x':1e-20}),\n ('x^3',{'x':1e-14}),('x^3',{'x':-2}),('x^y',{'x':2,'y':3}),('x/y',{'x':3e-9,'y':2e-12}),\n ('exp(x)*sin(y)',{'x':1,'y':.3}),('cos(x)+tan(y)',{'x':.4,'y':.6}),\n ('asin(x)+acos(y)+atan(z)',{'x':.2,'y':-.4,'z':3}),('abs(x)',{'x':-3}),\n ('pow(x;3)+min(x;y)+max(x;y)',{'x':2,'y':5}),('sqrt(a*b)/c',{'a':2e-20,'b':3e-20,'c':5e-6})]\nderivadas=[]\nfor texto,valores in casos:\n simbolos={n:s.Symbol(n,real=True) for n in valores}\n funciones={'ln':s.log,'log':lambda x:s.log(x,10),'pow':lambda x,y:x**y,'min':s.Min,'max':s.Max,'abs':s.Abs}\n expresion=s.sympify(texto.replace('^','**').replace(';',','),locals={**simbolos,**funciones})\n sustitucion={simbolos[n]:v for n,v in valores.items()}\n derivadas.append({'texto':texto,'valores':valores,'resultado':float(expresion.subs(sustitucion)),\n   'sensibilidades':{n:float(s.diff(expresion,simbolos[n]).subs(sustitucion)) for n in valores}})\ndatos={'format':'erlen-methods-oraculos-dimensionales-v1','versiones':{p:version(p) for p in ['pint','sympy']},'conversiones':conversiones,'derivadas':derivadas,\n 'alcance':'Pint contrasta unidades compatibles y temperaturas absolutas; SymPy deriva las fórmulas independientemente. No se incluyen singularidades como si fueran diferenciables.'}\n(Path(__file__).resolve().parents[1]/'tests/fixtures/oraculos-dimensionales.json').write_text(json.dumps(datos,ensure_ascii=False,indent=2)+'\\n')\n",
  "herramientas/oraculos-fluidos.py": "#!/usr/bin/env python3\n\"\"\"SPDX-License-Identifier: AGPL-3.0-only. Contraste de tubos con fluids.\"\"\"\nimport json\nimport math\nfrom importlib.metadata import version\nfrom pathlib import Path\nfrom fluids import Reynolds,K_from_f,dP_from_K\nfrom fluids.friction import friction_factor\n\ncasos=[]\nfor nombre,diametro,longitud,viscosidad,densidad,caudal,rugosidad in [\n ('microtubo',.5,20,1,998,1,None),('laminar',10,100,10,1000,300,None),\n ('turbulento_liso',10,100,1,1000,10000,0),('turbulento_rugoso',10,100,1,1000,10000,50),\n ('turbulento_desconocido',10,100,1,1000,10000,None),\n ('transicion',10,100,1,1000,3000*math.pi*.01*.001/(4*1000)*60e6,None),\n ('sin_flujo',.5,20,1,998,0,None)]:\n D=diametro*1e-3;L=longitud*.01;mu=viscosidad*1e-3;Q=caudal*1e-6/60\n area=math.pi*D*D/4;V=Q/area;Re=Reynolds(V,D,rho=densidad,mu=mu)\n f=friction_factor(Re,eD=(rugosidad or 0)*1e-6/D) if Re and (Re<2300 or (Re>=4000 and rugosidad is not None)) else None\n presion=0 if not Q else dP_from_K(K_from_f(f,L,D),densidad,V) if f else None\n casos.append({'nombre':nombre,'datos':{'modo':'caudal','diametro':diametro,'longitud':longitud,'viscosidad':viscosidad,'densidad':densidad,'valor':caudal,'rugosidad':rugosidad},\n   'reynolds':Re,'velocidad':V,'factorDarcy':f,'presion':presion,'volumenML':area*L*1e6,'tiempo':area*L/Q if Q else None})\ndatos={'format':'erlen-methods-oraculos-fluidos-v1','versiones':{'fluids':version('fluids')},'funciones':['Reynolds','friction_factor','K_from_f','dP_from_K'],'casos':casos,\n 'alcance':'Propiedades declaradas; fluids contrasta Reynolds, fricción Darcy y presión. En transición o con rugosidad turbulenta desconocida no se estima presión.'}\n(Path(__file__).resolve().parents[1]/'tests/fixtures/oraculos-fluidos.json').write_text(json.dumps(datos,ensure_ascii=False,indent=2)+'\\n')\n",
  "herramientas/oraculos-flujo.py": "# SPDX-License-Identifier: AGPL-3.0-only\n\"\"\"Contraste de orden, niveles y camino crítico con NetworkX.\"\"\"\nimport json\nfrom importlib.metadata import version\nfrom pathlib import Path\nimport networkx as nx\n\ncasos=[]\nfor nombre, tiempos, aristas in [\n    ('bifurcacion', {'a':10,'b':30,'c':20,'d':5}, [('a','b'),('a','c'),('b','d'),('c','d')]),\n    ('ramas_independientes', {'a':12,'b':7,'c':20,'d':3,'e':4}, [('a','b'),('c','d'),('b','e'),('d','e')]),\n    ('tiempos_cero', {'a':0,'b':0,'c':0}, [('a','b'),('b','c')]),\n]:\n    grafo=nx.DiGraph();grafo.add_nodes_from(tiempos);grafo.add_edges_from(aristas)\n    generaciones=list(nx.topological_generations(grafo))\n    # Grafo de actividades con aristas de duración: cada paso tiene inicio/fin.\n    actividades=nx.DiGraph();actividades.add_node('inicio');actividades.add_node('fin')\n    for paso, tiempo in tiempos.items():\n        actividades.add_edge(paso+':inicio',paso+':fin',weight=tiempo)\n        if grafo.in_degree(paso)==0:actividades.add_edge('inicio',paso+':inicio',weight=0)\n        if grafo.out_degree(paso)==0:actividades.add_edge(paso+':fin','fin',weight=0)\n    for a,b in aristas:actividades.add_edge(a+':fin',b+':inicio',weight=0)\n    casos.append({'nombre':nombre,'tiempos':tiempos,'aristas':aristas,'niveles':{paso:i for i,g in enumerate(generaciones) for paso in g},'duracion':nx.dag_longest_path_length(actividades,weight='weight'),'camino':nx.dag_longest_path(actividades,weight='weight')})\nsalida=Path(__file__).resolve().parents[1]/'tests/fixtures/oraculos-flujo.json'\nsalida.write_text(json.dumps({'format':'erlen-methods-oraculos-flujo-v1','networkx':version('networkx'),'casos':casos},indent=2,ensure_ascii=False)+'\\n')\nprint(salida)\n",
  "herramientas/oraculos-requisitos.txt": "# Sólo desarrollo: versiones usadas al generar las referencias independientes.\nnumpy==2.3.5\nscipy==1.17.0\nstatsmodels==0.15.0\nuncertainties==3.2.3\nchempy==0.10.2\nchemicals==1.5.2\npymatgen==2026.9.24\npint==0.26.1\nrocrate==0.15.1\nbiopython==1.88\nbiotite==1.7.1\nnetworkx==3.7\nsympy==1.14.0\nfluids==1.3.1\n",
  "herramientas/package-release.py": "\"\"\"Construye un archivo listo para servir desde public/.\n\nEl ZIP se escribe de forma reproducible: misma entrada, mismo sha256. Las fechas\nde modificación quedan fijadas porque public/ se regenera en cada build y, si\nviajaran dentro del ZIP, el checksum publicado cambiaría sin que cambie una sola\nlínea y nadie podría comprobarlo.\n\"\"\"\nfrom pathlib import Path\nimport zipfile, hashlib, json\n\nroot = Path(__file__).resolve().parent.parent\nversion = json.loads((root / 'package.json').read_text())['version']\nout = root / 'dist'\nout.mkdir(exist_ok=True)\nzip_path = out / f'erlen-methods-{version}-web.zip'\nFECHA = (1980, 1, 1, 0, 0, 0)\n\n\ndef add(z, contenido, nombre):\n    info = zipfile.ZipInfo(str(nombre).replace('\\\\', '/'), date_time=FECHA)\n    info.compress_type = zipfile.ZIP_DEFLATED\n    info.external_attr = 0o644 << 16\n    z.writestr(info, contenido)\n\n\npublic = root / 'public'\nminificado = public / 'index.min.html'\nhtml_release = minificado.read_bytes() if minificado.exists() else None\nsha_release = hashlib.sha256(html_release).hexdigest() if html_release else None\n\n\ndef add_public(z, ruta):\n    nombre = ruta.relative_to(public)\n    if ruta == minificado:\n        return\n    if nombre.as_posix() == 'index.html' and html_release is not None:\n        contenido = html_release\n    elif nombre.as_posix() == 'build.json' and sha_release is not None:\n        build = json.loads(ruta.read_text())\n        build['sha256'] = sha_release\n        contenido = (json.dumps(build, ensure_ascii=False, indent=2) + '\\n').encode()\n    else:\n        contenido = ruta.read_bytes()\n    add(z, contenido, nombre)\n\n\nwith zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED, compresslevel=6) as z:\n    for f in sorted(public.rglob('*')):\n        if f.is_file():\n            add_public(z, f)\n    for name in ['README.md', 'THIRD_PARTY_NOTICES.md', 'CITATION.cff']:\n        p = root / name\n        if p.exists():\n            add(z, p.read_bytes(), name)\n    for dirname in ['docs', 'examples']:\n        d = root / dirname\n        if not d.exists():\n            continue\n        for f in sorted(d.rglob('*')):\n            if f.is_file():\n                add(z, f.read_bytes(), f.relative_to(root))\n\nchecksum = hashlib.sha256(zip_path.read_bytes()).hexdigest()\n(out / (zip_path.name + '.sha256')).write_text(checksum + '  ' + zip_path.name + '\\n')\nprint(zip_path, zip_path.stat().st_size, 'bytes', checksum)\n",
  "herramientas/serve.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport http from 'node:http';\nimport {readFile, stat} from 'node:fs/promises';\nimport {resolve, extname, sep} from 'node:path';\nimport {fileURLToPath} from 'node:url';\nconst root = fileURLToPath(new URL('../public/', import.meta.url));\nconst port = Number(process.env.PORT || 8151);\nconst mime = {'.html': 'text/html; charset=utf-8', '.js': 'text/javascript; charset=utf-8', '.css': 'text/css; charset=utf-8', '.json': 'application/json', '.svg': 'image/svg+xml', '.png': 'image/png'};\nhttp.createServer(async (req, res) => {\n  try {\n    const name = decodeURIComponent(new URL(req.url, 'http://localhost').pathname);\n    let p = resolve(root, '.' + name);\n    if (!p.startsWith(root.replace(/\\/$/, '') + sep) && p !== root.replace(/\\/$/, '')) { res.writeHead(403).end(); return; }\n    if ((await stat(p)).isDirectory()) p = resolve(p, 'index.html');\n    res.writeHead(200, {'Content-Type': mime[extname(p)] || 'application/octet-stream', 'X-Content-Type-Options': 'nosniff'}).end(await readFile(p));\n  } catch { res.writeHead(404).end('Archivo no encontrado'); }\n}).listen(port, '127.0.0.1', () => console.log(`Erlen Methods: http://127.0.0.1:${port}`));\n",
  "herramientas/servidor-pruebas.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport {spawn} from 'node:child_process';\nimport {fileURLToPath} from 'node:url';\n\nexport async function iniciaServidor() {\n  if (process.env.ERLEN_METHODS_TEST_ORIGIN) {\n    const url=new URL(process.env.ERLEN_METHODS_TEST_ORIGIN);\n    if(url.protocol!=='http:' || !['127.0.0.1','localhost','[::1]'].includes(url.hostname) || url.username || url.password || url.pathname!=='/' || url.search || url.hash) throw new Error('El origen de pruebas debe ser un servidor HTTP local.');\n    return {origen:url.origin,cierra(){}};\n  }\n  const puerto=Number(process.env.ERLEN_METHODS_TEST_PORT || 4201);\n  if(!Number.isInteger(puerto) || puerto<1024 || puerto>65535)throw new Error('Puerto de pruebas no válido.');\n  const proceso=spawn(process.execPath,[fileURLToPath(new URL('./serve.mjs',import.meta.url))],{env:{...process.env,PORT:String(puerto)},stdio:['ignore','pipe','pipe']});\n  let errores='';proceso.stderr.on('data',dato=>{errores=(errores+dato.toString()).slice(-10000);});\n  try {\n    await new Promise((resuelve,rechaza)=>{\n      const plazo=setTimeout(()=>rechaza(new Error('El servidor de pruebas no respondió. '+errores)),10000);\n      const falla=error=>{clearTimeout(plazo);rechaza(error);};\n      proceso.once('error',falla);proceso.once('exit',codigo=>falla(new Error('El servidor de pruebas terminó: '+codigo+'. '+errores)));\n      proceso.stdout.once('data',()=>{clearTimeout(plazo);resuelve();});\n    });\n  } catch(error) {proceso.kill();throw error;}\n  return {origen:'http://127.0.0.1:'+puerto,cierra(){proceso.kill();}};\n}\n",
  "herramientas/validacion.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport {readFileSync,existsSync} from 'node:fs';\nimport {fileURLToPath} from 'node:url';\nimport {createRequire} from 'node:module';\nconst requiere=createRequire(import.meta.url);\nexport async function validador() {\n const vendor=fileURLToPath(new URL('../vendor/validacion.js',import.meta.url));\n if(existsSync(vendor))return readFileSync(vendor,'utf8');\n const {default:Ajv}=await import('ajv'),{default:standalone}=await import('ajv/dist/standalone/index.js');\n const esquema=JSON.parse(readFileSync(fileURLToPath(new URL('../src/modelo/protocolo-v2.schema.json',import.meta.url)),'utf8'));\n const ajv=new Ajv({allowUnionTypes:true,allErrors:true,code:{source:true}}), valida=ajv.compile(esquema);\n const {build}=await import('esbuild');\n const generado=standalone(ajv,valida);\n const resultado=await build({stdin:{contents:generado,resolveDir:fileURLToPath(new URL('../',import.meta.url)),loader:'js'},bundle:true,minify:true,format:'iife',globalName:'ValidadorMethods',platform:'browser',write:false});\n return resultado.outputFiles[0].text+'\\n';\n}\n",
  "herramientas/verificar-ampliacion.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport {createRequire} from 'node:module';\nconst require=createRequire(new URL('../package.json',import.meta.url));\nconst {chromium,firefox}=require('playwright');\nimport assert from 'node:assert/strict';\nconst axe=require('axe-core');\nimport {mkdir,writeFile} from 'node:fs/promises';\nconst {unzipSync,strFromU8}=require('fflate');\nimport {iniciaServidor} from './servidor-pruebas.mjs';\nconst servidor=await iniciaServidor(),origen=servidor.origen;\nconst salida=new URL('../.local/navegadores-ampliacion/',import.meta.url);await mkdir(salida,{recursive:true});const resultados=[];\ntry{\nfor(const [nombre,motor] of [['Chromium',chromium],['Firefox',firefox]]){\n const navegador=await motor.launch({headless:true,args:nombre==='Chromium' ? ['--no-sandbox'] : [],env:{...process.env,XDG_CONFIG_HOME:new URL('config/',salida).pathname,XDG_CACHE_HOME:new URL('cache/',salida).pathname}});\n try{for(const ancho of [320,390,768,1440]){\n  const contexto=await navegador.newContext({viewport:{width:ancho,height:1000}}),p=await contexto.newPage(),errores=[],externos=[];\n  p.on('pageerror',e=>errores.push(e.message));p.on('request',r=>{if(/^https?:/.test(r.url()) && !r.url().startsWith(origen+'/'))externos.push(r.url());});\n  await p.goto(origen+'/?plantilla=bradford#p/laboratorio');await p.getByRole('heading',{name:'Inventario y equipos',exact:true}).waitFor();\n  await p.getByRole('button',{name:'Añadir un reactivo',exact:true}).click();await p.getByLabel('Nombre de la fila',{exact:true}).fill('Sal de prueba');await p.evaluate(()=>Almacen.espera());\n  await p.getByRole('button',{name:'Registrar entrada, devolución o recuento',exact:true}).click();await p.getByLabel('Tipo de movimiento',{exact:true}).selectOption('ajuste');await p.getByLabel('Cantidad del movimiento',{exact:true}).fill('10');await p.getByLabel('Motivo del movimiento',{exact:true}).fill('Recuento de prueba');await p.getByRole('dialog').getByRole('button',{name:'Registrar movimiento',exact:true}).click();await p.getByRole('dialog').waitFor({state:'hidden'});\n  assert.equal(await p.evaluate(()=>Almacen.laboratorio().inventario[0].cantidad),10);\n  await p.evaluate(async()=>{Estado.cambia(q=>{q.titulo='Ensayo de prueba';q.reactivos=[Protocolo.nuevoReactivo({id:'r1',nombre:'Sal de prueba',cantidad:2,unidad:'g'})];q.pasos=[Protocolo.nuevoPaso({id:'s1',texto:'Medir la muestra de prueba'})];q.lotes=[Ejecucion.nuevoLote(q,Almacen.laboratorio())];q.lotes[0].codigo='L1 de prueba';});await Estado.guardaYa();await Almacen.espera();});\n  await p.getByRole('button',{name:'Reservar para una ejecución',exact:true}).click();await p.getByLabel('Cantidad reservada (unidad del frasco)',{exact:true}).fill('6');await p.getByRole('dialog').getByRole('button',{name:'Confirmar reserva',exact:true}).click();await p.getByRole('dialog').waitFor({state:'hidden'});\n  assert.equal(await p.evaluate(()=>Laboratorio.reservado(Almacen.laboratorio(),Almacen.laboratorio().inventario[0].id)),6);\n  await p.getByRole('button',{name:'Convertir unidad de un frasco',exact:true}).click();await p.getByLabel('Nueva unidad del frasco',{exact:true}).selectOption('mg');await p.getByLabel('Motivo de la conversión',{exact:true}).fill('Conversión de prueba');await p.getByRole('dialog').getByRole('button',{name:'Convertir existencias y reservas',exact:true}).click();await p.getByRole('dialog').waitFor({state:'hidden'});\n  assert.equal(await p.evaluate(()=>Almacen.laboratorio().inventario[0].cantidad),10000);assert.equal(await p.evaluate(()=>Almacen.laboratorio().reservas[0].cantidad),6000);\n  await p.evaluate(()=>Marco.irA('analisis'));await p.getByLabel('Datos de calibración',{exact:true}).fill('0;0.1\\n1;2.1\\n2;3.8\\n3;6.2');await p.getByLabel('Respuesta media de la muestra',{exact:true}).fill('3');await p.getByLabel('Lecturas independientes de la muestra',{exact:true}).fill('3');await p.getByRole('button',{name:'Calcular calibración',exact:true}).click();assert.ok(await p.locator('.grafica-cientifica svg').count()>=2);await p.getByRole('button',{name:'Guardar análisis',exact:true}).click();assert.ok(await p.evaluate(()=>Estado.p.analisis[0].inversa.bajo<Estado.p.analisis[0].inversa.alto));\n  await p.getByLabel('Expresión del modelo',{exact:true}).fill('x+y');await p.getByLabel('Entradas del modelo',{exact:true}).fill('x;10;0.5;normal\\ny;4;0.2;normal');await p.getByLabel('Correlaciones entre entradas normales',{exact:true}).fill('x;y;0.7');await p.getByRole('button',{name:'Simular incertidumbre',exact:true}).click();await p.getByRole('button',{name:'Guardar simulación',exact:true}).click();assert.equal(await p.evaluate(()=>Estado.p.analisis[1].resultado.histograma.reduce((a,x)=>a+x.cantidad,0)),10000);\n  await p.evaluate(()=>Marco.irA('bibliografia'));await p.getByLabel('Bibliografía para importar',{exact:true}).fill('@article{prueba,title={Referencia de prueba},author={Doe, Jane},year={2020}}');await p.getByRole('button',{name:'Importar referencias',exact:true}).click();await p.getByText('Referencia de prueba',{exact:false}).first().waitFor();\n  const descargaWord=p.waitForEvent('download');await p.getByRole('button',{name:'Descargar Word con anexos',exact:true}).click();const word=await descargaWord;await word.saveAs(new URL(`${nombre}-${ancho}.docx`,salida).pathname);assert.equal(await word.failure(),null);\n  await p.evaluate(()=>Marco.irA('archivos'));const selector=p.waitForEvent('filechooser');await p.getByRole('button',{name:'Añadir archivo adjunto',exact:true}).click();await (await selector).setFiles({name:'dato-de-prueba.bin',mimeType:'application/octet-stream',buffer:Buffer.from([0,128,255])});await p.getByRole('heading',{name:'dato-de-prueba.bin',exact:true}).waitFor();assert.equal(await p.evaluate(()=>Estado.p.adjuntos.length),1);\n  const descargaZip=p.waitForEvent('download');await p.getByRole('button',{name:'Descargar paquete de investigación',exact:true}).click();const zip=await descargaZip;await zip.saveAs(new URL(`${nombre}-${ancho}-investigacion.zip`,salida).pathname);assert.equal(await zip.failure(),null);\n  for(const seccion of ['laboratorio','placas','analisis','estructuras','bibliografia','archivos']){\n   await p.evaluate(s=>Marco.irA(s),seccion);await p.evaluate(axe.source);const problemas=await p.evaluate(async()=> (await axe.run(document.querySelector('#pantalla'),{runOnly:{type:'tag',values:['wcag2a','wcag2aa']}})).violations.map(x=>({id:x.id,impacto:x.impact,nodos:x.nodes.map(n=>n.target)})));assert.deepEqual(problemas,[],nombre+' '+ancho+' '+seccion);\n   assert.ok(await p.evaluate(()=>document.documentElement.scrollWidth-innerWidth)<=1,'sin desbordamiento global '+seccion);await p.screenshot({path:new URL(`${nombre}-${ancho}-${seccion}.png`,salida).pathname,fullPage:true});\n  }\n  await p.evaluate(async()=>{await Estado.aseguraGuardado();await Almacen.espera();history.replaceState(null,'','/#p/archivos');});await p.reload();await p.getByRole('heading',{name:'Adjuntos y respaldo',exact:true}).waitFor();assert.equal(await p.evaluate(()=>Estado.p.adjuntos.length),1);\n  const respaldo=p.waitForEvent('download');await p.getByRole('button',{name:'Descargar respaldo completo',exact:true}).click();const descarga=await respaldo,rutaRespaldo=new URL(`${nombre}-${ancho}-respaldo.zip`,salida).pathname;await descarga.saveAs(rutaRespaldo);\n  await p.evaluate(async()=>{localStorage.setItem('erlen-doe.prueba','conservada');Estado.cambia(q=>{q.titulo='Edición posterior al respaldo';});await Estado.guardaYa();await Almacen.espera();});\n  const restaurar=p.waitForEvent('filechooser');await p.getByRole('button',{name:'Restaurar respaldo completo',exact:true}).click();await (await restaurar).setFiles(rutaRespaldo);await Promise.all([p.waitForEvent('load'),p.getByRole('dialog').getByRole('button',{name:'Restaurar',exact:true}).click()]);await p.getByRole('heading',{name:'Adjuntos y respaldo',exact:true}).waitFor();\n  assert.equal(await p.evaluate(()=>Estado.p.titulo),'Ensayo de prueba');assert.equal(await p.evaluate(()=>localStorage.getItem('erlen-doe.prueba')),'conservada');assert.equal(await p.evaluate(()=>Estado.p.adjuntos.length),1);assert.equal(await p.evaluate(()=>Estado.p.analisis.length),2);\n  assert.deepEqual(errores,[]);assert.deepEqual(externos,[]);resultados.push({motor:nombre,ancho,estado:'correcto'});await contexto.close();console.log(nombre,ancho,'correcto');\n }}finally{await navegador.close();}\n}\nawait writeFile(new URL('resultados.json',salida),JSON.stringify(resultados,null,2));\n\n}finally{servidor.cierra();}\n",
  "herramientas/verificar-biologia.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport assert from 'node:assert/strict';\nimport {chromium,firefox} from 'playwright';\nimport axe from 'axe-core';\nimport {unzipSync,strFromU8} from 'fflate';\nimport {mkdir,writeFile,readFile} from 'node:fs/promises';\nimport {iniciaServidor} from './servidor-pruebas.mjs';\nconst servidor=await iniciaServidor(),origen=servidor.origen,salida=new URL('../.local/navegadores-biologia/',import.meta.url),resultados=[];\nawait mkdir(salida,{recursive:true});\ntry {\nfor(const [nombre,motor] of [['Chromium',chromium],['Firefox',firefox]]) {\n const navegador=await motor.launch({headless:true,args:nombre==='Chromium' ? ['--no-sandbox'] : [],env:{...process.env,XDG_CONFIG_HOME:new URL('config/',salida).pathname,XDG_CACHE_HOME:new URL('cache/',salida).pathname}});\n try {for(const ancho of [320,390,768,1440]) {\n  const contexto=await navegador.newContext({viewport:{width:ancho,height:1000}}),p=await contexto.newPage(),errores=[],externos=[];\n  p.on('pageerror',e=>errores.push(e.message));p.on('request',r=>{if(/^https?:/.test(r.url()) && !r.url().startsWith(origen+'/'))externos.push(r.url());});\n  await p.goto(origen+'/?plantilla=bradford#p/placas');await p.getByRole('button',{name:'Añadir muestra',exact:true}).click();\n  await p.getByLabel('Identificador de muestra',{exact:true}).fill('Muestra de prueba');await p.getByLabel('Origen de la muestra',{exact:true}).fill('Origen declarado de prueba');\n  await p.getByRole('button',{name:'Registrar movimiento de Muestra de prueba',exact:true}).click();await p.getByLabel('Cantidad del movimiento de muestra',{exact:true}).fill('10');await p.getByLabel('Unidad de la cantidad de muestra',{exact:true}).selectOption('mL');await p.getByLabel('Motivo del movimiento de muestra',{exact:true}).fill('Recuento declarado de prueba');\n  await p.getByLabel('Cantidad del movimiento de muestra',{exact:true}).fill('dato no numérico');await p.getByRole('dialog').getByRole('button',{name:'Registrar movimiento de muestra',exact:true}).click();assert.equal(await p.getByRole('dialog').count(),1);assert.equal(await p.evaluate(()=>Estado.p.muestras[0].cantidad),null);\n  await p.getByLabel('Cantidad del movimiento de muestra',{exact:true}).fill('10');await p.getByRole('dialog').getByRole('button',{name:'Registrar movimiento de muestra',exact:true}).click();await p.getByRole('dialog').waitFor({state:'hidden'});\n  await p.getByRole('button',{name:'Crear alícuota de Muestra de prueba',exact:true}).click();await p.getByLabel('Identificador de la alícuota',{exact:true}).fill('Alícuota de prueba');await p.getByLabel('Cantidad del movimiento de muestra',{exact:true}).fill('3');await p.getByLabel('Ubicación de la alícuota',{exact:true}).fill('Congelador de prueba');await p.getByLabel('Motivo del movimiento de muestra',{exact:true}).fill('Separación declarada de prueba');await p.getByRole('button',{name:'Guardar alícuota',exact:true}).click();await p.getByRole('dialog').waitFor({state:'hidden'});\n  assert.deepEqual(await p.evaluate(()=>Estado.p.muestras.map(x=>x.cantidad)),[7,3]);assert.equal(await p.evaluate(()=>Estado.p.muestras[1].derivacion.nombre),'Muestra de prueba');\n  await p.evaluate(()=>Marco.irA('secuencias'));const elegir=p.waitForEvent('filechooser');await p.getByRole('button',{name:'Leer archivo FASTA',exact:true}).click();const bytes=Buffer.from('\\uFEFF>adn_de_prueba Descripción declarada\\r\\natggccaaataa\\r\\n','utf8');await (await elegir).setFiles({name:'origen-de-prueba.fasta',mimeType:'text/plain',buffer:bytes});await p.waitForFunction(()=>document.querySelector('textarea').value.includes('adn_de_prueba'));await p.getByRole('button',{name:'Previsualizar FASTA',exact:true}).click();await p.getByRole('button',{name:'Incorporar secuencias y origen',exact:true}).click();await p.getByRole('heading',{name:'adn_de_prueba',exact:true}).waitFor();\n  await p.getByLabel('Muestra de la secuencia adn_de_prueba',{exact:true}).selectOption({label:'Alícuota de prueba'});await p.getByRole('checkbox',{name:'Validar CDS completa de adn_de_prueba',exact:true}).check();await p.getByRole('button',{name:'Traducir adn_de_prueba',exact:true}).click();await p.getByRole('button',{name:'Guardar traducción de adn_de_prueba',exact:true}).click();assert.equal(await p.evaluate(()=>Estado.p.analisis[0].resultado.secuencia),'MAK');\n  const archivoOriginal=p.waitForEvent('download');await p.getByRole('button',{name:'Descargar origen de adn_de_prueba',exact:true}).click();const descargado=await archivoOriginal,rutaOriginal=new URL(`${nombre}-${ancho}-origen.fasta`,salida).pathname;await descargado.saveAs(rutaOriginal);assert.deepEqual(await readFile(rutaOriginal),bytes);\n  for(const seccion of ['placas','secuencias']){await p.evaluate(s=>Marco.irA(s),seccion);await p.evaluate(axe.source);assert.deepEqual(await p.evaluate(async()=> (await axe.run(document.querySelector('#pantalla'),{runOnly:{type:'tag',values:['wcag2a','wcag2aa']}})).violations.map(x=>({id:x.id,nodos:x.nodes.map(n=>n.target)}))),[]);assert.ok(await p.evaluate(()=>document.documentElement.scrollWidth-innerWidth)<=1);await p.screenshot({path:new URL(`${nombre}-${ancho}-${seccion}.png`,salida).pathname,fullPage:true});}\n  await p.evaluate(async()=>{await Estado.aseguraGuardado();history.replaceState(null,'','/#p/secuencias');});await p.reload();await p.getByRole('heading',{name:'adn_de_prueba',exact:true}).waitFor();assert.deepEqual(await p.evaluate(()=>Estado.p.muestras.map(x=>x.cantidad)),[7,3]);assert.equal(await p.evaluate(()=>Estado.p.secuencias[0].secuencia),'ATGGCCAAATAA');assert.equal(await p.evaluate(()=>Estado.p.analisis[0].resultado.secuencia),'MAK');\n  await p.evaluate(()=>Marco.irA('bibliografia'));const word=p.waitForEvent('download');await p.getByRole('button',{name:'Descargar Word con anexos',exact:true}).click();const documento=await word,rutaWord=new URL(`${nombre}-${ancho}.docx`,salida).pathname;await documento.saveAs(rutaWord);const xml=strFromU8(unzipSync(await readFile(rutaWord))['word/document.xml']);assert.ok(xml.includes('Separación declarada de prueba'));assert.ok(xml.includes('adn_de_prueba'));assert.ok(xml.includes('Congelador de prueba'));\n  assert.deepEqual(errores,[]);assert.deepEqual(externos,[]);resultados.push({motor:nombre,ancho,estado:'correcto'});console.log(nombre,ancho,'correcto');await contexto.close();\n }}finally{await navegador.close();}\n}\nawait writeFile(new URL('resultados.json',salida),JSON.stringify(resultados,null,2));\n}finally{servidor.cierra();}\n",
  "herramientas/verificar-cambios.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport assert from 'node:assert/strict';\nimport {chromium,firefox} from 'playwright';\nimport axe from 'axe-core';\nimport {mkdir,writeFile,readFile} from 'node:fs/promises';\nimport {iniciaServidor} from './servidor-pruebas.mjs';\nconst servidor=await iniciaServidor(),origen=servidor.origen,salida=new URL('../.local/navegadores-cambios/',import.meta.url),resultados=[];\nawait mkdir(salida,{recursive:true});\ntry {\nfor(const [nombre,motor] of [['Chromium',chromium],['Firefox',firefox]]) {\n const navegador=await motor.launch({headless:true,args:nombre==='Chromium' ? ['--no-sandbox'] : [],env:{...process.env,XDG_CONFIG_HOME:new URL('config/',salida).pathname,XDG_CACHE_HOME:new URL('cache/',salida).pathname}});\n try {for(const ancho of [320,390,768,1440]) {\n  const contexto=await navegador.newContext({viewport:{width:ancho,height:1000}}),p=await contexto.newPage(),errores=[],externos=[];\n  p.on('pageerror',e=>errores.push(e.message));p.on('request',r=>{if(/^https?:/.test(r.url()) && !r.url().startsWith(origen+'/'))externos.push(r.url());});\n  await p.goto(origen+'/?plantilla=bradford#p/cambios');await p.getByRole('heading',{name:'Combinar cambios del método',exact:true}).waitFor();\n  const datos=await p.evaluate(()=>{const base=Protocolo.nuevo({titulo:'Método de prueba',objetivo:'Base',pasos:[Protocolo.nuevoPaso({id:'paso',texto:'Medir dato de prueba'})],reactivos:[Protocolo.nuevoReactivo({id:'reactivo',nombre:'Reactivo de prueba',cantidad:1})]});const local=deepCopy(base),externo=deepCopy(base);local.reactivos[0].cantidad=2;externo.reactivos[0].cantidad=3;externo.objetivo='Cambio compatible recibido';local.versiones=[Versiones.instantanea(base,'Base común de prueba')];local.lotes=[Ejecucion.nuevoLote(local,Almacen.laboratorio())];Estado.cambia(q=>Object.assign(q,local));return Fusion.paquete(base,externo).datos;});\n  const elegir=p.waitForEvent('filechooser');await p.getByRole('button',{name:'Revisar archivo de cambios',exact:true}).click();await (await elegir).setFiles({name:'cambios-de-prueba.json',mimeType:'application/json',buffer:Buffer.from(JSON.stringify(datos))});await p.getByLabel('Resolver conflicto 1',{exact:true}).waitFor();await p.getByRole('button',{name:'Aplicar combinación revisada',exact:true}).click();assert.equal(await p.evaluate(()=>Estado.p.objetivo),'Base');assert.equal(await p.evaluate(()=>Estado.p.reactivos[0].cantidad),2);\n  await p.getByLabel('Resolver conflicto 1',{exact:true}).selectOption('externo');await p.getByText('Ver base común y ambas copias',{exact:true}).click();await p.getByRole('button',{name:'Aplicar combinación revisada',exact:true}).scrollIntoViewIfNeeded();await p.evaluate(axe.source);assert.deepEqual(await p.evaluate(async()=> (await axe.run(document.querySelector('#pantalla'),{runOnly:{type:'tag',values:['wcag2a','wcag2aa']}})).violations.map(x=>({id:x.id,nodos:x.nodes.map(n=>n.target)}))),[]);assert.ok(await p.evaluate(()=>document.documentElement.scrollWidth-innerWidth)<=1);await p.screenshot({path:new URL(`${nombre}-${ancho}-conflicto.png`,salida).pathname,fullPage:true});\n  // Un nuevo registro local durante la revisión no puede ser sustituido por la foto antigua.\n  await p.evaluate(()=>{Estado.cambia(q=>{q.lotes[0].observaciones='Registro local conservado durante la revisión';},{silencioso:true});});await p.getByRole('button',{name:'Aplicar combinación revisada',exact:true}).click();await p.waitForFunction(()=>Estado.p.objetivo==='Cambio compatible recibido');assert.equal(await p.evaluate(()=>Estado.p.reactivos[0].cantidad),3);assert.equal(await p.evaluate(()=>Estado.p.lotes[0].observaciones),'Registro local conservado durante la revisión');assert.equal(await p.evaluate(()=>Estado.p.lotes[0].revision.protocolo.reactivos[0].cantidad),2);assert.equal(await p.evaluate(()=>Estado.p.versiones.at(-1).protocolo.reactivos[0].cantidad),2);\n  await p.evaluate(async()=>{await Estado.aseguraGuardado();history.replaceState(null,'','/#p/cambios');});await p.reload();await p.getByRole('heading',{name:'Combinar cambios del método',exact:true}).waitFor();assert.equal(await p.evaluate(()=>Estado.p.objetivo),'Cambio compatible recibido');assert.equal(await p.evaluate(()=>Estado.p.reactivos[0].cantidad),3);const descargar=p.waitForEvent('download');await p.getByRole('button',{name:'Exportar cambios con base común',exact:true}).click();const archivo=await descargar,ruta=new URL(`${nombre}-${ancho}-cambios.json`,salida).pathname;await archivo.saveAs(ruta);const recibido=JSON.parse(await readFile(ruta,'utf8'));assert.equal(recibido.format,'erlen-methods-cambios-v1');assert.equal(recibido.metodo.reactivos[0].cantidad,3);assert.equal(recibido.metodo.lotes,undefined);\n  assert.deepEqual(errores,[]);assert.deepEqual(externos,[]);resultados.push({motor:nombre,ancho,estado:'correcto'});console.log(nombre,ancho,'correcto');await contexto.close();\n }}finally{await navegador.close();}\n}\nawait writeFile(new URL('resultados.json',salida),JSON.stringify(resultados,null,2));\n}finally{servidor.cierra();}\n",
  "herramientas/verificar-ciencia.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport assert from 'node:assert/strict';\nimport {chromium,firefox} from 'playwright';\nimport axe from 'axe-core';\nimport {mkdir,writeFile} from 'node:fs/promises';\nimport {iniciaServidor} from './servidor-pruebas.mjs';\nconst servidor=await iniciaServidor(),origen=servidor.origen,salida=new URL('../.local/navegadores-ciencia/',import.meta.url),resultados=[];\nawait mkdir(salida,{recursive:true});\ntry {\nfor(const [nombre,motor] of [['Chromium',chromium],['Firefox',firefox]]) {\n const navegador=await motor.launch({headless:true,args:nombre==='Chromium' ? ['--no-sandbox'] : [],env:{...process.env,XDG_CONFIG_HOME:new URL('config/',salida).pathname,XDG_CACHE_HOME:new URL('cache/',salida).pathname}});\n try {for(const ancho of [320,390,768,1440]) {\n  const contexto=await navegador.newContext({viewport:{width:ancho,height:1000}}),p=await contexto.newPage(),errores=[];p.on('pageerror',e=>errores.push(e.message));\n  await p.goto(origen+'/?plantilla=bradford#p/calculadoras');await p.getByRole('heading',{name:'Calculadoras',exact:true}).waitFor();await p.evaluate(()=>Calculadoras.abre('flujo-tubo'));\n  for(const [campo,valor] of [['Diámetro interior del tubo','0.5'],['Longitud del tubo','20'],['Viscosidad dinámica del fluido','1'],['Densidad del fluido del tubo','998'],['Valor del dato conocido del flujo','1']])await p.getByLabel(campo,{exact:false}).fill(valor);\n  const salidaFlujo=p.locator('[data-ref=flujo-tubo] .calc-salida');await p.getByLabel('Valor del dato conocido del flujo',{exact:true}).scrollIntoViewIfNeeded();assert.match(await salidaFlujo.textContent(),/laminar/);assert.match(await salidaFlujo.textContent(),/Hagen/);const presion=await p.evaluate(()=>Ciencia.flujoTubo(Almacen.prefs().calc['flujo-tubo']).presion);\n  await p.getByLabel('Dato conocido del flujo',{exact:true}).selectOption('presion');await p.getByLabel('Valor del dato conocido del flujo',{exact:true}).fill(String(presion));assert.ok(Math.abs(await p.evaluate(()=>Ciencia.flujoTubo(Almacen.prefs().calc['flujo-tubo']).caudal)-1)<1e-10);\n  await p.getByLabel('Dato conocido del flujo',{exact:true}).selectOption('caudal');await p.getByLabel('Diámetro interior del tubo',{exact:false}).fill('10');await p.getByLabel('Valor del dato conocido del flujo',{exact:true}).fill('10000');assert.match(await salidaFlujo.textContent(),/Sin rugosidad/);assert.match(await salidaFlujo.textContent(),/No estimada/);await p.getByLabel('Rugosidad absoluta del tubo',{exact:false}).fill('0');assert.match(await salidaFlujo.textContent(),/Colebrook/);assert.ok(await p.evaluate(()=>Ciencia.flujoTubo(Almacen.prefs().calc['flujo-tubo']).presion)>0);\n  await p.evaluate(axe.source);assert.deepEqual(await p.evaluate(async()=> (await axe.run(document.querySelector('#pantalla'),{runOnly:{type:'tag',values:['wcag2a','wcag2aa']}})).violations.map(x=>({id:x.id,nodos:x.nodes.map(n=>n.target)}))),[]);assert.ok(await p.evaluate(()=>document.documentElement.scrollWidth-innerWidth)<=1);await p.screenshot({path:new URL(`${nombre}-${ancho}-fluidos.png`,salida).pathname,fullPage:true});\n  await p.evaluate(()=>Calculadoras.abre('calc-gum'));const gum=p.locator('[data-ref=calc-gum]');await gum.getByLabel('Modelo y =',{exact:true}).fill('1e12+x');const grupo=gum.getByRole('group',{name:'x',exact:true});await grupo.getByLabel('Valor',{exact:true}).fill('1');await grupo.getByLabel('Incertidumbre estándar u',{exact:true}).fill('0.1');assert.equal(await p.evaluate(()=>Estadistica.propaga(Almacen.prefs().calc['calc-gum'].f,Almacen.prefs().calc['calc-gum'].vars).uc),.1);assert.ok(await gum.getByText('u combinada',{exact:true}).count());\n  await gum.getByLabel('Modelo y =',{exact:true}).fill('sqrt(x)');await grupo.getByLabel('Valor',{exact:true}).fill('1e-14');await grupo.getByLabel('Incertidumbre estándar u',{exact:true}).fill('1e-16');assert.ok(Math.abs(await p.evaluate(()=>Estadistica.propaga(Almacen.prefs().calc['calc-gum'].f,Almacen.prefs().calc['calc-gum'].vars).uc)-5e-10)<1e-20);assert.equal(await gum.locator('.calculado-error').count(),0);\n  await gum.getByLabel('Modelo y =',{exact:true}).fill('constructor');const especial=gum.getByRole('group',{name:'constructor',exact:true});await especial.getByLabel('Valor',{exact:true}).fill('1');await especial.getByLabel('Incertidumbre estándar u',{exact:true}).fill('0.1');assert.equal(await p.evaluate(()=>Object.hasOwn(Object,'valor')),false);assert.equal(await p.evaluate(()=>Estadistica.propaga(Almacen.prefs().calc['calc-gum'].f,Almacen.prefs().calc['calc-gum'].vars).uc),.1);\n  await especial.getByLabel('Incertidumbre estándar u',{exact:true}).fill('1e-999');assert.equal(await especial.getByLabel('Incertidumbre estándar u',{exact:true}).getAttribute('aria-invalid'),'true');assert.equal(await p.evaluate(()=>Almacen.prefs().calc['calc-gum'].vars.constructor.u),.1);await especial.getByLabel('Incertidumbre estándar u',{exact:true}).fill('0.1');\n  await p.evaluate(()=>Calculadoras.abre('calc-calibracion'));const curva=p.locator('[data-ref=calc-calibracion]');await curva.getByLabel('Patrones (x y)',{exact:true}).fill('1000000000000 1.1\\n1000000000001 2.9\\n1000000000002 5.1\\n1000000000003 6.9\\n1000000000004 9.1');await curva.getByLabel('Señal del desconocido',{exact:true}).fill('5');await curva.getByLabel('Réplicas de esa señal',{exact:true}).fill('1');assert.match(await curva.locator('.calc-salida').textContent(),/Fieller/);assert.equal(await curva.locator('.calculado-error').count(),0);await curva.getByLabel('Patrones (x y)',{exact:true}).fill('0 1\\n1 2\\n2 1\\n3 2\\n4 1');await curva.getByLabel('Señal del desconocido',{exact:true}).fill('1.5');assert.match(await curva.locator('.calc-salida').textContent(),/No cuantificable/);\n  assert.deepEqual(errores,[]);resultados.push({motor:nombre,ancho,estado:'correcto'});console.log(nombre,ancho,'correcto');await contexto.close();\n }}finally{await navegador.close();}\n}\nawait writeFile(new URL('resultados.json',salida),JSON.stringify(resultados,null,2));\n}finally{servidor.cierra();}\n",
  "herramientas/verificar-cuantificacion.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport assert from 'node:assert/strict';\nimport {chromium,firefox} from 'playwright';\nimport axe from 'axe-core';\nimport {unzipSync} from 'fflate';\nimport {mkdir,writeFile,readFile} from 'node:fs/promises';\nimport {iniciaServidor} from './servidor-pruebas.mjs';\nconst servidor=await iniciaServidor(),origen=servidor.origen,salida=new URL('../.local/navegadores-cuantificacion/',import.meta.url),resultados=[];\nawait mkdir(salida,{recursive:true});\ntry {\nfor(const [nombre,motor] of [['Chromium',chromium],['Firefox',firefox]]) {\n const navegador=await motor.launch({headless:true,args:nombre==='Chromium' ? ['--no-sandbox'] : [],env:{...process.env,XDG_CONFIG_HOME:new URL('config/',salida).pathname,XDG_CACHE_HOME:new URL('cache/',salida).pathname}});\n try {for(const ancho of [320,390,768,1440]) {\n  const contexto=await navegador.newContext({viewport:{width:ancho,height:1000}}),p=await contexto.newPage(),errores=[];p.on('pageerror',e=>errores.push(e.message));\n  await p.goto(origen+'/?plantilla=bradford#p/ejecucion');await p.getByRole('heading',{name:'Ejecutar un lote',exact:true}).waitFor();\n  await p.evaluate(async()=>{\n   const q=Protocolo.nuevo({titulo:'Cuantificación — datos de prueba',pasos:[Protocolo.nuevoPaso({id:'paso',texto:'Medir datos de prueba'})]}),placa=Placas.nueva(6,'Placa de prueba');placa.id='placa';q.placas=[placa];const lote=Ejecucion.inicia(Ejecucion.nuevoLote(q,Almacen.laboratorio())).lote,bytes=new TextEncoder().encode('Well;Signal\\nA1;2\\nA2;0\\n'),archivo=Evidencia.adjunto('lecturas-de-prueba.csv',bytes,'text/csv',{tipo:'lote',id:lote.id}).archivo;\n   q.lotes=[Instrumentos.prepara(lote,'placa',Instrumentos.lee(new TextDecoder().decode(bytes)),{pozo:'Well',resultado:'Signal'},{unidadResultado:'A',adjunto:archivo}).lote];q.analisis=[{id:'cal',tipo:'calibracion',fecha:'2026-09-30T10:00:00Z',datos:[0,1,2,3].map(x=>({x,y:2*x})),ponderada:false}];q.adjuntos=[archivo];const guardado=await Estado.cambiaConArchivos(p=>Object.assign(p,q),[{id:archivo.id,bytes}]);if(guardado.error)throw Error(guardado.error);\n  });\n  await p.getByRole('button',{name:'Cuantificar con calibración',exact:true}).click();await p.getByLabel('Calibración conservada',{exact:true}).selectOption('cal');await p.getByLabel('Unidad de respuesta de los patrones',{exact:true}).fill('mV');await p.getByLabel('Unidad de concentración de los patrones',{exact:true}).fill('mg/L');await p.getByLabel('Factor de dilución declarado',{exact:true}).fill('10');await p.getByRole('button',{name:'Previsualizar cuantificación',exact:true}).click();await p.getByText(/la unidad de la lectura no coincide/).waitFor();assert.equal(await p.evaluate(()=>Estado.p.analisis.length),1);\n  await p.getByLabel('Unidad de respuesta de los patrones',{exact:true}).fill('A');await p.getByRole('button',{name:'Previsualizar cuantificación',exact:true}).click();await p.getByRole('button',{name:'Conservar cuantificación independiente',exact:true}).waitFor();await p.evaluate(()=>{Estado.cambia(q=>{q.lotes[0]=Ejecucion.pozo(q.lotes[0],'placa','A1',{resultado:4,unidadResultado:'A'}).lote;},{silencioso:true});});await p.getByRole('button',{name:'Conservar cuantificación independiente',exact:true}).click();await p.getByText('Las lecturas o la calibración cambiaron. Previsualiza de nuevo.',{exact:true}).waitFor();assert.equal(await p.evaluate(()=>Estado.p.analisis.length),1);\n  await p.getByRole('button',{name:'Previsualizar cuantificación',exact:true}).click();assert.ok(!/\\b(null|undefined)\\b/.test(await p.getByRole('dialog').textContent()));await p.evaluate(axe.source);assert.deepEqual(await p.evaluate(async()=> (await axe.run(document.querySelector('.modal'),{runOnly:{type:'tag',values:['wcag2a','wcag2aa']}})).violations.map(x=>({id:x.id,nodos:x.nodes.map(n=>n.target)}))),[]);assert.ok(await p.evaluate(()=>document.documentElement.scrollWidth-innerWidth)<=1);await p.getByRole('button',{name:'Conservar cuantificación independiente',exact:true}).scrollIntoViewIfNeeded();await p.screenshot({path:new URL(`${nombre}-${ancho}-cuantificacion.png`,salida).pathname,fullPage:true});await p.getByRole('button',{name:'Conservar cuantificación independiente',exact:true}).click();await p.getByRole('dialog').waitFor({state:'hidden'});assert.deepEqual(await p.evaluate(()=>Estado.p.analisis.at(-1).resultados.map(x=>x.valor)),[20,0]);assert.equal(await p.evaluate(()=>Estado.p.lotes[0].ejecucion.placas[0].pozos.A1.resultado),4);\n  await p.evaluate(async()=>{const guardado=await Estado.aseguraGuardado();if(guardado.error)throw Error(guardado.error);history.replaceState(null,'','/#p/analisis');});await p.reload();await p.getByRole('heading',{name:'Análisis conservados',exact:true}).waitFor();assert.equal(await p.evaluate(()=>Estado.p.analisis.at(-1).resultados[0].valor),20);assert.ok(await p.getByText('20 mg/L',{exact:true}).count());\n  await p.evaluate(()=>{Estado.cambia(q=>{q.lotes=[];q.adjuntos=[];});Marco.irA('archivos');});const descargar=p.waitForEvent('download');await p.getByRole('button',{name:'Descargar paquete de investigación',exact:true}).click();const archivo=await descargar,ruta=new URL(`${nombre}-${ancho}-investigacion.zip`,salida).pathname;await archivo.saveAs(ruta);const partes=unzipSync(await readFile(ruta)),original=Object.keys(partes).find(x=>x.startsWith('adjuntos/'));assert.ok(original);assert.equal(new TextDecoder().decode(partes[original]),'Well;Signal\\nA1;2\\nA2;0\\n');const protocolo=JSON.parse(new TextDecoder().decode(partes['protocolo.json']));assert.equal(protocolo.analisis.at(-1).resultados[0].valor,20);\n  await p.evaluate(()=>Marco.irA('bibliografia'));const descargarWord=p.waitForEvent('download');await p.getByRole('button',{name:'Descargar Word con anexos',exact:true}).click();const word=await descargarWord,rutaWord=new URL(`${nombre}-${ancho}-cuantificacion.docx`,salida).pathname;await word.saveAs(rutaWord);const documento=unzipSync(await readFile(rutaWord)),xml=new TextDecoder().decode(documento['word/document.xml']);assert.match(xml,/Concentraciones calculadas/);assert.match(xml,/Respuesta original/);assert.match(xml,/mg\\/L/);assert.match(xml,/lecturas-de-prueba.csv/);assert.match(xml,/Patrones conservados/);assert.ok(!xml.includes('undefined'));\n  assert.deepEqual(errores,[]);resultados.push({motor:nombre,ancho,estado:'correcto'});console.log(nombre,ancho,'correcto');await contexto.close();\n }}finally{await navegador.close();}\n}\nawait writeFile(new URL('resultados.json',salida),JSON.stringify(resultados,null,2));\n}finally{servidor.cierra();}\n",
  "herramientas/verificar-flujo.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport assert from 'node:assert/strict';\nimport {chromium,firefox} from 'playwright';\nimport axe from 'axe-core';\nimport {mkdir,writeFile,readFile} from 'node:fs/promises';\nimport {iniciaServidor} from './servidor-pruebas.mjs';\nconst servidor=await iniciaServidor(),origen=servidor.origen,salida=new URL('../.local/navegadores-flujo/',import.meta.url),resultados=[];\nawait mkdir(salida,{recursive:true});\ntry {\nfor(const [nombre,motor] of [['Chromium',chromium],['Firefox',firefox]]) {\n const navegador=await motor.launch({headless:true,args:nombre==='Chromium' ? ['--no-sandbox'] : [],env:{...process.env,XDG_CONFIG_HOME:new URL('config/',salida).pathname,XDG_CACHE_HOME:new URL('cache/',salida).pathname}});\n try {for(const ancho of [320,390,768,1440]) {\n  const contexto=await navegador.newContext({viewport:{width:ancho,height:1000}}),p=await contexto.newPage(),errores=[],externos=[];\n  p.on('pageerror',e=>errores.push(e.message));p.on('request',r=>{if(/^https?:/.test(r.url()) && !r.url().startsWith(origen+'/'))externos.push(r.url());});\n  await p.goto(origen+'/?plantilla=bradford#p/flujo');await p.getByRole('heading',{name:'Diseñador de flujo',exact:true}).waitFor();\n  await p.evaluate(()=>{Estado.cambia(q=>{q.flujo={modo:'dependencias'};q.pasos=['Preparar','Incubar','Medir'].map((texto,i)=>Protocolo.nuevoPaso({id:'paso'+i,texto,tiempo:[10,20,5][i],unidadTiempo:'s',dependeDe:i ? ['paso'+(i-1)] : []}));q.lotes=[];});});\n  await p.getByText('Duración mínima prevista: 35 s · 3 pasos con holgura cero',{exact:true}).waitFor();\n  const nodo=p.getByRole('button',{name:'Dependencias del paso 1 · Preparar',exact:true});await nodo.focus();await nodo.press('Enter');await p.getByRole('checkbox',{name:'Paso 3 · Medir',exact:true}).check();await p.getByRole('button',{name:'Guardar dependencias',exact:true}).click();assert.equal(await p.getByRole('dialog').count(),1);assert.deepEqual(await p.evaluate(()=>Estado.p.pasos[0].dependeDe),[]);await p.getByRole('button',{name:'Cancelar',exact:true}).click();\n  await p.getByRole('button',{name:'Subir paso 3',exact:true}).click();assert.deepEqual(await p.evaluate(()=>Estado.p.pasos.map(x=>x.id)),['paso0','paso2','paso1']);assert.deepEqual(await p.evaluate(()=>Estado.p.pasos[1].dependeDe),['paso1']);await p.getByRole('button',{name:'Bajar paso 2',exact:true}).click();\n  await p.locator('.flujo-fila').nth(2).dragTo(p.locator('.flujo-fila').nth(0));assert.deepEqual(await p.evaluate(()=>Estado.p.pasos.map(x=>x.id)),['paso2','paso0','paso1']);await p.getByRole('button',{name:'Bajar paso 1',exact:true}).click();await p.getByRole('button',{name:'Bajar paso 2',exact:true}).click();\n  const descarga=p.waitForEvent('download');await p.getByRole('button',{name:'Exportar flujo Mermaid',exact:true}).click();const archivo=await descarga,ruta=new URL(`${nombre}-${ancho}.mmd`,salida).pathname;await archivo.saveAs(ruta);assert.match(await readFile(ruta,'utf8'),/paso1 --> paso2/);\n  await p.evaluate(axe.source);assert.deepEqual(await p.evaluate(async()=> (await axe.run(document.querySelector('#pantalla'),{runOnly:{type:'tag',values:['wcag2a','wcag2aa']}})).violations.map(x=>({id:x.id,nodos:x.nodes.map(n=>n.target)}))),[]);assert.ok(await p.evaluate(()=>document.documentElement.scrollWidth-innerWidth)<=1);await p.getByRole('heading',{name:'Diseñador de flujo',exact:true}).scrollIntoViewIfNeeded();await p.screenshot({path:new URL(`${nombre}-${ancho}-flujo.png`,salida).pathname,fullPage:true});\n  await p.emulateMedia({colorScheme:'dark'});await p.waitForFunction(()=>getComputedStyle(document.querySelector('.btn-sec')).backgroundColor==='rgb(20, 28, 24)');assert.deepEqual(await p.evaluate(async()=> (await axe.run(document.querySelector('#pantalla'),{runOnly:{type:'tag',values:['wcag2a','wcag2aa']}})).violations.map(x=>({id:x.id,nodos:x.nodes.map(n=>n.target)}))),[]);await p.screenshot({path:new URL(`${nombre}-${ancho}-flujo-oscuro.png`,salida).pathname,fullPage:true});\n  await p.evaluate(()=>{Estado.cambia(q=>{q.lotes=[Ejecucion.nuevoLote(q,Almacen.laboratorio())];});Marco.irA('ejecucion');});await p.getByRole('button',{name:'Empezar ejecución',exact:true}).click();assert.ok(await p.getByRole('checkbox',{name:'Paso 2 completado',exact:true}).isDisabled());await p.getByRole('checkbox',{name:'Paso 1 completado',exact:true}).check();await p.getByRole('checkbox',{name:'Paso 2 completado',exact:true}).check();await p.getByRole('checkbox',{name:'Paso 1 completado',exact:true}).click();assert.ok(await p.getByRole('checkbox',{name:'Paso 1 completado',exact:true}).isChecked());assert.equal(await p.evaluate(()=>Estado.p.lotes[0].ejecucion.pasos.paso0.completado),true);\n  await p.evaluate(()=>{Estado.cambia(q=>{q.flujo={modo:'libre'};q.pasos=[];});});assert.ok(await p.getByRole('checkbox',{name:'Paso 3 completado',exact:true}).isEnabled());await p.getByRole('checkbox',{name:'Paso 3 completado',exact:true}).check();await p.evaluate(async()=>{await Estado.aseguraGuardado();history.replaceState(null,'','/#p/ejecucion');});await p.reload();await p.getByRole('checkbox',{name:'Paso 3 completado',exact:true}).waitFor();assert.equal(await p.evaluate(()=>Estado.p.lotes[0].revision.protocolo.flujo.modo),'dependencias');assert.ok(await p.getByRole('checkbox',{name:'Paso 3 completado',exact:true}).isChecked());\n  assert.deepEqual(errores,[]);assert.deepEqual(externos,[]);resultados.push({motor:nombre,ancho,estado:'correcto'});console.log(nombre,ancho,'correcto');await contexto.close();\n }}finally{await navegador.close();}\n}\nawait writeFile(new URL('resultados.json',salida),JSON.stringify(resultados,null,2));\n}finally{servidor.cierra();}\n",
  "herramientas/verificar-fuente.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\n/* Reconstruye el HTML en una carpeta sin node_modules usando source.json. */\nimport assert from 'node:assert/strict';\nimport {readFile,mkdtemp,mkdir,writeFile,rm} from 'node:fs/promises';\nimport {tmpdir} from 'node:os';\nimport {join,resolve,sep} from 'node:path';\nimport {execFile} from 'node:child_process';\nimport {promisify} from 'node:util';\nimport {createHash} from 'node:crypto';\nconst ejecuta=promisify(execFile),fuente=JSON.parse(await readFile(new URL('../public/source.json',import.meta.url),'utf8'));\nassert.equal(fuente.format,'erlen-source-v1');\nconst carpeta=await mkdtemp(join(tmpdir(),'erlen-methods-fuente-'));\ntry {\n  for(const [ruta,texto] of Object.entries(fuente.files)) {\n    const destino=resolve(carpeta,ruta);\n    assert.ok(destino.startsWith(carpeta+sep) && typeof texto==='string','Ruta y contenido de fuente válidos: '+ruta);\n    await mkdir(resolve(destino,'..'),{recursive:true});await writeFile(destino,texto);\n  }\n  const entorno={...process.env};delete entorno.ERLEN_SUITE_CATALOG;\n  if(fuente.files['erlen-suite-catalog.json'])entorno.ERLEN_SUITE_CATALOG=join(carpeta,'erlen-suite-catalog.json');\n  await ejecuta(process.execPath,['herramientas/build.mjs'],{cwd:carpeta,env:entorno,timeout:60000,maxBuffer:1024*1024});\n  const original=await readFile(new URL('../public/index.html',import.meta.url)),reconstruido=await readFile(join(carpeta,'public/index.html'));\n  assert.deepEqual(reconstruido,original,'El código fuente debe reconstruir exactamente el HTML distribuido.');\n  console.log('Reconstrucción sin dependencias externas: '+original.length+' bytes · SHA-256 '+createHash('sha256').update(original).digest('hex'));\n} finally {await rm(carpeta,{recursive:true,force:true});}\n",
  "herramientas/verificar-instrumentos.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport assert from 'node:assert/strict';\nimport {chromium,firefox} from 'playwright';\nimport axe from 'axe-core';\nimport {unzipSync} from 'fflate';\nimport {mkdir,writeFile,readFile} from 'node:fs/promises';\nimport {iniciaServidor} from './servidor-pruebas.mjs';\nconst servidor=await iniciaServidor(),origen=servidor.origen,salida=new URL('../.local/navegadores-instrumentos/',import.meta.url),resultados=[];\nawait mkdir(salida,{recursive:true});\nconst bytes=Buffer.from('\\uFEFFWell;Signal;Volume;When;Comment\\r\\nA01;0,25;0,05;2026-09-29T10:00:00Z;\"medida; declarada\"\\r\\nA02;0;0;;cero declarado\\r\\n','utf8');\ntry {\nfor(const [nombre,motor] of [['Chromium',chromium],['Firefox',firefox]]) {\n const navegador=await motor.launch({headless:true,args:nombre==='Chromium' ? ['--no-sandbox'] : [],env:{...process.env,XDG_CONFIG_HOME:new URL('config/',salida).pathname,XDG_CACHE_HOME:new URL('cache/',salida).pathname}});\n try {for(const ancho of [320,390,768,1440]) {\n  const contexto=await navegador.newContext({viewport:{width:ancho,height:1000}}),p=await contexto.newPage(),errores=[],externos=[];\n  p.on('pageerror',e=>errores.push(e.message));p.on('request',r=>{if(/^https?:/.test(r.url()) && !r.url().startsWith(origen+'/'))externos.push(r.url());});\n  await p.goto(origen+'/?plantilla=bradford#p/ejecucion');await p.getByRole('heading',{name:'Ejecutar un lote',exact:true}).waitFor();await p.evaluate(()=>{Estado.cambia(q=>{q.pasos=[Protocolo.nuevoPaso({id:'paso',texto:'Medir'})];const placa=Placas.nueva(6,'Placa de prueba');placa.capacidad=100;q.placas=[placa];q.lotes=[Ejecucion.nuevoLote(q,Almacen.laboratorio())];});});await p.getByRole('button',{name:'Empezar ejecución',exact:true}).click();await p.getByRole('button',{name:'Importar CSV de instrumento',exact:true}).click();\n  const elegir=p.waitForEvent('filechooser');await p.getByRole('button',{name:'Elegir CSV de instrumento',exact:true}).click();await (await elegir).setFiles({name:'instrumento-original.csv',mimeType:'text/csv',buffer:bytes});await p.getByLabel('Columna para Pozo',{exact:true}).waitFor();\n  for(const [campo,columna] of [['Pozo','Well'],['Resultado','Signal'],['Volumen real','Volume'],['Fecha de medida','When'],['Observaciones','Comment']])await p.getByLabel('Columna para '+campo,{exact:true}).selectOption(columna);\n  await p.getByLabel('Unidad del volumen del instrumento',{exact:true}).selectOption('mL');await p.getByLabel('Unidad común del resultado del instrumento',{exact:true}).fill('A');await p.getByRole('button',{name:'Previsualizar datos del instrumento',exact:true}).click();assert.equal(await p.getByRole('button',{name:'Registrar datos y archivo original',exact:true}).count(),0);assert.deepEqual(await p.evaluate(()=>Estado.p.lotes[0].ejecucion.placas[0].pozos),{});\n  await p.getByLabel('Separador decimal del instrumento',{exact:true}).selectOption(',');await p.getByRole('button',{name:'Previsualizar datos del instrumento',exact:true}).click();await p.getByRole('button',{name:'Registrar datos y archivo original',exact:true}).waitFor();await p.evaluate(axe.source);assert.deepEqual(await p.evaluate(async()=> (await axe.run(document.querySelector('.modal'),{runOnly:{type:'tag',values:['wcag2a','wcag2aa']}})).violations.map(x=>({id:x.id,nodos:x.nodes.map(n=>n.target)}))),[]);assert.ok(await p.evaluate(()=>document.documentElement.scrollWidth-innerWidth)<=1);await p.getByRole('button',{name:'Registrar datos y archivo original',exact:true}).scrollIntoViewIfNeeded();await p.screenshot({path:new URL(`${nombre}-${ancho}-previa.png`,salida).pathname,fullPage:true});\n  await p.getByRole('button',{name:'Registrar datos y archivo original',exact:true}).click();await p.getByRole('dialog').waitFor({state:'hidden'});assert.deepEqual(await p.evaluate(()=>{const x=Estado.p.lotes[0].ejecucion.placas[0].pozos;return [x.A1.resultado,x.A1.volumenReal,x.A2.resultado,x.A2.volumenReal];}),[.25,50,0,0]);\n  await p.evaluate(async()=>{await Estado.aseguraGuardado();history.replaceState(null,'','/#p/archivos');});await p.reload();await p.getByRole('heading',{name:'instrumento-original.csv',exact:true}).waitFor();const descargar=p.waitForEvent('download');await p.getByRole('button',{name:'Descargar adjunto',exact:true}).click();const archivo=await descargar,ruta=new URL(`${nombre}-${ancho}-original.csv`,salida).pathname;await archivo.saveAs(ruta);assert.deepEqual(await readFile(ruta),bytes);\n  await p.evaluate(()=>{Estado.cambia(q=>{q.adjuntos=[];});});const paquete=p.waitForEvent('download');await p.getByRole('button',{name:'Descargar paquete de investigación',exact:true}).click();const zip=await paquete,rutaZip=new URL(`${nombre}-${ancho}-investigacion.zip`,salida).pathname;await zip.saveAs(rutaZip);const partes=unzipSync(await readFile(rutaZip)),adjunto=Object.keys(partes).find(x=>x.startsWith('adjuntos/'));assert.ok(adjunto);assert.deepEqual(Buffer.from(partes[adjunto]),bytes);assert.equal(await p.evaluate(()=>Estado.p.lotes[0].ejecucion.placas[0].historial.length),2);\n  assert.deepEqual(errores,[]);assert.deepEqual(externos,[]);resultados.push({motor:nombre,ancho,estado:'correcto'});console.log(nombre,ancho,'correcto');await contexto.close();\n }}finally{await navegador.close();}\n}\nawait writeFile(new URL('resultados.json',salida),JSON.stringify(resultados,null,2));\n}finally{servidor.cierra();}\n",
  "herramientas/verificar-navegador.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\n/* Prueba del flujo de ejecución, persistencia y HTML offline en ambos motores. */\nimport assert from 'node:assert/strict';\nimport {chromium, firefox} from 'playwright';\nimport axe from 'axe-core';\nimport {iniciaServidor} from './servidor-pruebas.mjs';\nimport {fileURLToPath} from 'node:url';\nimport {join} from 'node:path';\nimport {writeFile, mkdir,readFile} from 'node:fs/promises';\nconst raiz = fileURLToPath(new URL('../', import.meta.url));\nconst salida = join(raiz, '.local', 'navegadores');\nawait mkdir(salida, {recursive: true});\nawait mkdir(join(salida, 'config'), {recursive: true});\nawait mkdir(join(salida, 'cache'), {recursive: true});\nconst servidor=await iniciaServidor(),origen=servidor.origen;\nconst resultados = [];\nconst abiertos = [];\ntry {\nfor (const [nombre, motor] of [['Chromium', chromium], ['Firefox', firefox]]) {\n  const navegador = await motor.launch({headless: true, timeout: 30000, args: nombre === 'Chromium' ? ['--no-sandbox'] : [], env: {...process.env, XDG_CONFIG_HOME: join(salida, 'config'), XDG_CACHE_HOME: join(salida, 'cache')}});\n  abiertos.push(navegador);\n  for (const ancho of [320, 390, 768, 1440]) {\n    const contexto = await navegador.newContext({viewport: {width: ancho, height: 1000}});\n    const pagina = await contexto.newPage(), errores = [], externos = [];\n    pagina.on('pageerror', error => errores.push(error.message));\n    pagina.on('request', request => { if (/^https?:/.test(request.url()) && !request.url().startsWith(origen)) externos.push(request.url()); });\n    await pagina.goto(origen + '/?plantilla=bradford#p/lotes');\n    await pagina.getByRole('button', {name: 'Registrar un lote', exact: true}).click();\n    await pagina.evaluate(() => Marco.irA('ejecucion'));\n    await pagina.getByRole('button', {name: 'Empezar ejecución', exact: true}).click();\n    await pagina.getByLabel('Identificadores de las muestras').fill('M-001 (dato de prueba)');\n    await pagina.getByLabel('Observaciones de este paso', {exact: true}).first().fill('Registro de prueba, sin datos experimentales');\n    for (const indice of [0,1,2,3,4,5,6,7,8,9]) {\n      const casilla = pagina.getByRole('checkbox', {name: /Paso \\d+ completado/}).nth(indice);\n      if (!(await casilla.count())) break;\n      await casilla.check();\n    }\n    assert.equal(await pagina.evaluate(() => Object.values(Estado.p.lotes[0].ejecucion.pasos)[0].nota), 'Registro de prueba, sin datos experimentales');\n    await pagina.screenshot({path: join(salida, `${nombre}-${ancho}-ejecucion.png`), fullPage: true});\n    await pagina.evaluate(axe.source);\n    const accesibilidad = await pagina.evaluate(async () => (await axe.run(document.querySelector('#pantalla'), {runOnly: {type: 'tag', values: ['wcag2a', 'wcag2aa']}})).violations.map(v => ({id: v.id, impacto: v.impact, elementos: v.nodes.map(n => n.target)})));\n    assert.deepEqual(accesibilidad, [], nombre + ' ' + ancho + ': accesibilidad de la ejecución');\n    const exceso = await pagina.evaluate(() => document.documentElement.scrollWidth - innerWidth);\n    assert.ok(exceso <= 1, `${nombre} ${ancho}: desbordamiento horizontal ${exceso}`);\n    await pagina.getByRole('button', {name: 'Finalizar ejecución', exact: true}).click();\n    await pagina.getByRole('dialog').getByRole('button', {name: 'Aceptar', exact: true}).click();\n    await pagina.getByText(/^Terminado ·/).waitFor();\n    assert.equal(await pagina.evaluate(() => Estado.p.lotes[0].ejecucion.estado), 'terminado');\n    for (const seccion of ['lotes','procedimiento','caracterizacion','calidad','versiones','laboratorio','biblioteca','calculadoras']) {\n      await pagina.evaluate(id => Marco.irA(id), seccion);\n      await pagina.waitForFunction(id => document.title.includes(Marco.POR_ID[id].titulo), seccion);\n      assert.ok(!(await pagina.locator('#pantalla').textContent()).includes('No se pudo mostrar esta sección'));\n    }\n    assert.equal((await pagina.evaluate(() => Estado.aseguraGuardado())).error,undefined);\n    await pagina.evaluate(() => history.replaceState(null, '', '/#p/lotes'));\n    await pagina.reload();\n    await pagina.waitForFunction(()=>Estado.p.lotes.length>0 && document.querySelector('#cinta [role=tablist]'));\n    assert.equal(await pagina.evaluate(() => Estado.p.lotes[0].ejecucion.estado), 'terminado');\n    // La recuperación debe bloquear metadatos incompatibles sin eliminar la copia.\n    const guardadoId=await pagina.evaluate(async()=>{const bytes=new Uint8Array([0,255,10]),a=Evidencia.adjunto('recuperacion-de-prueba.bin',bytes,'application/octet-stream',{tipo:'protocolo',id:Estado.p.id}).archivo;const r=await Estado.cambiaConArchivos(p=>{p.adjuntos.push(a);},[{id:a.id,bytes}]);if(r.error)throw Error(r.error);const p=deepCopy(Estado.p);p.titulo='Recuperación — datos de prueba';p.adjuntos[0].bytes=99;localStorage.setItem('erlen-methods.recuperacion.prueba',JSON.stringify({fecha:ahora(),protocolo:p}));Marco.irA('archivos');return Estado.p.id;});\n    await pagina.getByRole('article').filter({has:pagina.getByRole('heading',{name:'Recuperación — datos de prueba',exact:true})}).getByRole('button',{name:'Abrir copia recuperada',exact:true}).click();await pagina.getByText(/archivo ausente o con hash/).waitFor();assert.equal(await pagina.evaluate(()=>Estado.p.id),guardadoId);assert.ok(await pagina.evaluate(()=>localStorage.getItem('erlen-methods.recuperacion.prueba')));\n    // El modelo cambia antes de terminar el guardado; la navegación confirma la recuperación completa.\n    await pagina.evaluate(()=>{const x=JSON.parse(localStorage.getItem('erlen-methods.recuperacion.prueba'));x.protocolo.adjuntos[0].bytes=3;localStorage.setItem('erlen-methods.recuperacion.prueba',JSON.stringify(x));Marco.repinta();});await pagina.getByRole('article').filter({has:pagina.getByRole('heading',{name:'Recuperación — datos de prueba',exact:true})}).getByRole('button',{name:'Abrir copia recuperada',exact:true}).click();await pagina.waitForFunction(id=>Estado.p.id!==id,guardadoId);await pagina.waitForFunction(()=>location.hash==='#p/general');assert.match(await pagina.evaluate(()=>Estado.p.titulo),/copia recuperada/);assert.equal(await pagina.evaluate(()=>localStorage.getItem('erlen-methods.recuperacion.prueba')),null);assert.deepEqual(await pagina.evaluate(async()=>Array.from(await Estado.archivo(Estado.p.adjuntos[0].id))),[0,255,10]);\n    assert.deepEqual(errores, []); assert.deepEqual(externos, []);\n    resultados.push({motor: nombre, ancho, estado: 'correcto', errores, peticionesExternas: externos.length});\n    await contexto.close();\n  }\n  const local = await navegador.newContext({offline: true}); const pagina = await local.newPage();\n  const errores = []; pagina.on('pageerror', error => errores.push(error.message));\n  await pagina.goto('file://' + raiz + '/public/index.html?plantilla=bradford#p/procedimiento');\n  await pagina.getByRole('heading', {name:'Procedimiento', exact:true}).waitFor();\n  assert.equal(await pagina.evaluate(()=>Persistencia.modo),'localStorage');\n  assert.equal(await pagina.evaluate(()=>Estadistica.propaga('1e12+x',{x:{valor:1,u:.1}}).uc),.1);\n  await pagina.evaluate(()=>Marco.irA('secuencias'));const elegir=pagina.waitForEvent('filechooser');await pagina.getByRole('button',{name:'Leer archivo FASTA',exact:true}).click();const bytes=Buffer.from('\\uFEFF>offline Secuencia de prueba\\r\\nATGGCCAAATAA\\r\\n','utf8');await (await elegir).setFiles({name:'offline.fasta',mimeType:'text/plain',buffer:bytes});await pagina.waitForFunction(()=>document.querySelector('textarea').value.includes('>offline'));\n  await pagina.getByRole('button',{name:'Previsualizar FASTA',exact:true}).click();await pagina.getByRole('button',{name:'Incorporar secuencias y origen',exact:true}).click();await pagina.getByRole('heading',{name:'offline',exact:true}).waitFor();assert.equal((await pagina.evaluate(()=>Estado.aseguraGuardado())).error,undefined);\n  const original=pagina.waitForEvent('download');await pagina.getByRole('button',{name:'Descargar origen de offline',exact:true}).click();const fichero=await original,ruta=join(salida,nombre+'-offline.fasta');await fichero.saveAs(ruta);assert.deepEqual(await readFile(ruta),bytes);\n  await pagina.evaluate(()=>{const u=new URL(location.href);u.search='';u.hash='p/secuencias';history.replaceState(null,'',u.href);});await pagina.reload();await pagina.getByRole('heading',{name:'offline',exact:true}).waitFor();assert.equal(await pagina.evaluate(()=>Estado.p.secuencias[0].secuencia),'ATGGCCAAATAA');\n  await pagina.evaluate(()=>Marco.irA('bibliografia'));const descargar=pagina.waitForEvent('download');await pagina.getByRole('button',{name:'Descargar Word con anexos',exact:true}).click();const word=await descargar;await word.saveAs(join(salida,nombre+'-offline.docx'));assert.equal(await word.failure(),null);\n  assert.deepEqual(errores, []); resultados.push({motor: nombre, modo: 'HTML local sin red', estado: 'correcto',FASTA:'bytes originales conservados',GUM:'sensibilidad automática',Word:'descarga correcta'});\n  await local.close(); await navegador.close();\n}\n} finally {\n  for (const navegador of abiertos) await navegador.close();\n  servidor.cierra();\n  await writeFile(join(salida, 'verificacion.json'), JSON.stringify(resultados, null, 2));\n}\nconsole.log(JSON.stringify(resultados));\n",
  "herramientas/verificar-placas.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport {createRequire} from 'node:module';\nimport assert from 'node:assert/strict';\nimport {mkdir,writeFile,readFile} from 'node:fs/promises';\nconst requiere=createRequire(new URL('../package.json',import.meta.url)),{chromium,firefox}=requiere('playwright'),axe=requiere('axe-core'),{unzipSync,strFromU8}=requiere('fflate');\nimport {iniciaServidor} from './servidor-pruebas.mjs';\nconst servidor=await iniciaServidor(),origen=servidor.origen;\nconst salida=new URL('../.local/navegadores-placas/',import.meta.url);await mkdir(salida,{recursive:true});const resultados=[];\ntry{\nfor(const [nombre,motor] of [['Chromium',chromium],['Firefox',firefox]]){\n const navegador=await motor.launch({headless:true,args:nombre==='Chromium' ? ['--no-sandbox'] : [],env:{...process.env,XDG_CONFIG_HOME:new URL('config/',salida).pathname,XDG_CACHE_HOME:new URL('cache/',salida).pathname}});\n try{for(const ancho of [320,390,768,1440]){\n  const contexto=await navegador.newContext({viewport:{width:ancho,height:1000}}),p=await contexto.newPage(),errores=[];p.on('pageerror',e=>errores.push(e.message));\n  await p.goto(origen+'/?plantilla=bradford#p/placas');await p.getByRole('heading',{name:'Placas y muestras',exact:true}).waitFor();\n  await p.getByLabel('Formato de la placa',{exact:true}).selectOption('6');await p.getByRole('button',{name:'Crear placa',exact:true}).click();await p.getByLabel('Nombre de la placa',{exact:true}).fill('Placa de prueba');await p.getByLabel('Capacidad por pozo (µL)',{exact:true}).fill('100');\n  await p.getByRole('button',{name:'Añadir muestra',exact:true}).click();await p.getByLabel('Identificador de muestra',{exact:true}).fill('Muestra de prueba');await p.getByLabel('Origen de la muestra',{exact:true}).fill('Origen declarado de prueba');\n  await p.evaluate(()=>{Estado.cambia(q=>{q.pasos=[Protocolo.nuevoPaso({id:'paso',texto:'Medir dato de prueba'})];q.lotes=[Ejecucion.nuevoLote(q,Almacen.laboratorio())];q.lotes[0].codigo='Lote de prueba';});Marco.irA('ejecucion');});\n  await p.getByRole('checkbox',{name:'Muestra de prueba',exact:true}).check();await p.getByRole('button',{name:'Empezar ejecución',exact:true}).click();\n  for(const [pozo,volumen,resultado] of [['A1','80','2'],['A2','10','7']]){\n   await p.getByRole('button',{name:'Registrar medida del pozo '+pozo+' de Placa de prueba',exact:true}).click();await p.getByLabel('Volumen real del pozo (µL)',{exact:true}).fill(volumen);await p.getByLabel('Resultado medido del pozo',{exact:true}).fill(resultado);await p.getByLabel('Unidad del resultado del pozo',{exact:true}).fill('A');await p.getByLabel('Muestra medida en el pozo',{exact:true}).selectOption({label:'Muestra de prueba'});await p.getByRole('button',{name:'Guardar medida del pozo',exact:true}).click();await p.getByRole('dialog').waitFor({state:'hidden'});\n  }\n  await p.getByRole('button',{name:'Registrar transferencia real',exact:true}).click();await p.getByLabel('Pozo real de origen',{exact:true}).selectOption('A1');await p.getByLabel('Pozo real de destino',{exact:true}).selectOption('A2');await p.getByLabel('Volumen realmente transferido (µL)',{exact:true}).fill('30');await p.getByLabel('Qué se transfirió y observaciones',{exact:true}).fill('Transferencia declarada de prueba');await p.getByRole('button',{name:'Confirmar transferencia real',exact:true}).click();await p.getByRole('dialog').waitFor({state:'hidden'});\n  assert.deepEqual(await p.evaluate(()=>[Estado.p.lotes[0].ejecucion.placas[0].pozos.A1.volumenReal,Estado.p.lotes[0].ejecucion.placas[0].pozos.A2.volumenReal,Estado.p.lotes[0].ejecucion.placas[0].pozos.A2.resultado]),[50,40,null]);\n  const csv=p.waitForEvent('download');await p.getByRole('button',{name:'Exportar medidas de placa CSV',exact:true}).click();const archivo=await csv;await archivo.saveAs(new URL(`${nombre}-${ancho}-medidas.csv`,salida).pathname);\n  await p.evaluate(axe.source);assert.deepEqual(await p.evaluate(async()=> (await axe.run(document.querySelector('#pantalla'),{runOnly:{type:'tag',values:['wcag2a','wcag2aa']}})).violations.map(x=>({id:x.id,nodos:x.nodes.map(n=>n.target)}))),[]);\n  assert.ok(await p.evaluate(()=>document.documentElement.scrollWidth-innerWidth)<=1);await p.screenshot({path:new URL(`${nombre}-${ancho}-ejecucion.png`,salida).pathname,fullPage:true});\n  await p.getByRole('checkbox',{name:'Paso 1 completado',exact:true}).check();await p.getByRole('button',{name:'Finalizar ejecución',exact:true}).click();await p.getByRole('dialog').getByRole('button',{name:'Aceptar',exact:true}).click();await p.getByText(/^Terminado ·/).waitFor();assert.equal(await p.getByRole('button',{name:/Registrar medida del pozo/}).count(),0);\n  await p.evaluate(async()=>{await Estado.guardaYa();await Almacen.espera();history.replaceState(null,'','/#p/ejecucion');});await p.reload();await p.getByText(/^Terminado ·/).waitFor();assert.equal(await p.evaluate(()=>Estado.p.lotes[0].ejecucion.placas[0].historial.length),3);assert.equal(await p.evaluate(()=>Estado.p.lotes[0].ejecucion.muestrasRegistros[0].nombre),'Muestra de prueba');\n  await p.evaluate(()=>Marco.irA('bibliografia'));const word=p.waitForEvent('download');await p.getByRole('button',{name:'Descargar Word con anexos',exact:true}).click();const doc=await word,ruta=new URL(`${nombre}-${ancho}.docx`,salida).pathname;await doc.saveAs(ruta);const xml=strFromU8(unzipSync(await readFile(ruta))['word/document.xml']);assert.ok(xml.includes('Transferencia declarada de prueba'));assert.ok(xml.includes('Origen declarado de prueba'));assert.ok(xml.includes('Registros reales de placa'));\n  assert.deepEqual(errores,[]);resultados.push({motor:nombre,ancho,estado:'correcto'});console.log(nombre,ancho,'correcto');await contexto.close();\n }}finally{await navegador.close();}\n}\nawait writeFile(new URL('resultados.json',salida),JSON.stringify(resultados,null,2));\n\n}finally{servidor.cierra();}\n",
  "herramientas/verificar-preparacion.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport assert from 'node:assert/strict';\nimport {chromium,firefox} from 'playwright';\nimport axe from 'axe-core';\nimport {mkdir,writeFile} from 'node:fs/promises';\nimport {iniciaServidor} from './servidor-pruebas.mjs';\nconst servidor=await iniciaServidor(),origen=servidor.origen,salida=new URL('../.local/navegadores-preparacion/',import.meta.url),resultados=[];\nawait mkdir(salida,{recursive:true});\ntry {\nfor(const [nombre,motor] of [['Chromium',chromium],['Firefox',firefox]]) {\n const navegador=await motor.launch({headless:true,args:nombre==='Chromium' ? ['--no-sandbox'] : [],env:{...process.env,XDG_CONFIG_HOME:new URL('config/',salida).pathname,XDG_CACHE_HOME:new URL('cache/',salida).pathname}});\n try {for(const ancho of [320,390,768,1440]) {\n  const contexto=await navegador.newContext({viewport:{width:ancho,height:1000}}),p=await contexto.newPage(),errores=[];p.on('pageerror',e=>errores.push(e.message));\n  await p.goto(origen+'/?plantilla=bradford#p/verificacion');await p.getByRole('heading',{name:'Antes de empezar',exact:true,level:2}).waitFor();\n  await p.evaluate(async()=>{\n   const q=Protocolo.nuevo({titulo:'Preparación — datos de prueba',reactivos:[Protocolo.nuevoReactivo({id:'r',nombre:'Sal de prueba',cantidad:7,unidad:'g'})],pasos:[Protocolo.nuevoPaso({id:'paso',texto:'Medir dato de prueba',tiempo:5,unidadTiempo:'min'})],flujo:{modo:'secuencial'}}),lab=Laboratorio.nuevo();lab.inventario=[Laboratorio.nuevoArticulo({id:'frasco',nombre:'Sal de prueba',cantidad:10,unidad:'g'})];lab.instrumentos=[Laboratorio.nuevoInstrumento({id:'equipo',nombre:'Equipo utilizado de prueba',proximaCalibracion:'2025-01-01'}),Laboratorio.nuevoInstrumento({id:'ajeno',nombre:'Equipo ajeno de prueba',proximaCalibracion:'2020-01-01'})];q.caracterizacion=[Protocolo.nuevaTecnica('uvvis',{instrumentoId:'equipo'})];q.muestras=[Muestras.nueva({id:'m',nombre:'Muestra conservada de prueba',cantidad:2,unidad:'mL',estado:'disponible',ubicacion:'Lugar de prueba'})];q.lotes=[Ejecucion.muestra(Ejecucion.nuevoLote(q,lab),q.muestras[0],true).lote];q.lotes[0].codigo='Preparación de prueba';lab.reservas=[{id:'a',articuloId:'frasco',loteId:q.lotes[0].id,cantidad:6,estado:'activa'},{id:'b',articuloId:'frasco',loteId:'ajeno',cantidad:2,estado:'activa'}];lab.instrumentos[0].proximaCalibracion='2027-01-01';await Almacen.guardaLaboratorio(lab);q.pasos[0].tiempo=1;q.muestras[0].nombre='Nombre actual diferente';Estado.cambia(p=>Object.assign(p,q));const prefs=Almacen.prefs();prefs.verificacionLote=q.lotes[0].id;Almacen.guardaPrefs(prefs);Marco.repinta();\n  });\n  const hoja=p.locator('.hoja-verificacion');assert.match(await hoja.textContent(),/8 g libres/);assert.match(await hoja.textContent(),/300 s/);assert.match(await hoja.textContent(),/2025-01-01/);assert.match(await hoja.textContent(),/2027-01-01/);assert.match(await hoja.textContent(),/Muestra conservada de prueba/);assert.ok(!(await hoja.textContent()).includes('Equipo ajeno de prueba'));assert.match(await hoja.textContent(),/Referencia conservada/);\n  await hoja.getByRole('checkbox').first().check();assert.equal(await p.evaluate(()=>Estado.p.lotes[0].ejecucion.estado),'preparado');await p.evaluate(axe.source);assert.deepEqual(await p.evaluate(async()=> (await axe.run(document.querySelector('#pantalla'),{runOnly:{type:'tag',values:['wcag2a','wcag2aa']}})).violations.map(x=>({id:x.id,nodos:x.nodes.map(n=>n.target)}))),[]);assert.ok(await p.evaluate(()=>document.documentElement.scrollWidth-innerWidth)<=1);await p.screenshot({path:new URL(`${nombre}-${ancho}-preparacion.png`,salida).pathname,fullPage:true});\n  await p.getByLabel('Para',{exact:true}).selectOption('');assert.match(await hoja.textContent(),/2 g libres/);await p.evaluate(()=>{Estado.cambia(q=>{q.lotes[0].revision=null;});const prefs=Almacen.prefs();prefs.verificacionLote=Estado.p.lotes[0].id;Almacen.guardaPrefs(prefs);Marco.repinta();});assert.match(await hoja.textContent(),/Referencia histórica desconocida/);assert.equal(await p.evaluate(()=>Almacen.laboratorio().inventario[0].cantidad),10);\n  assert.deepEqual(errores,[]);resultados.push({motor:nombre,ancho,estado:'correcto'});console.log(nombre,ancho,'correcto');await contexto.close();\n }}finally{await navegador.close();}\n}\nawait writeFile(new URL('resultados.json',salida),JSON.stringify(resultados,null,2));\n}finally{servidor.cierra();}\n",
  "herramientas/verificar-rocrate.py": "#!/usr/bin/env python3\n\"\"\"SPDX-License-Identifier: AGPL-3.0-only. Lectura externa y comprobación de integridad.\n\nEjecutar con rocrate==0.15.1 y uno o más ZIP de investigación generados por Methods.\nNo declara conformidad con un perfil adicional, firma ni autenticidad de los datos.\n\"\"\"\nimport hashlib\nimport json\nimport sys\nfrom importlib.metadata import version\nfrom pathlib import Path\nfrom zipfile import ZipFile\nfrom urllib.parse import quote\nfrom rocrate.rocrate import ROCrate\n\nresultados=[]\nfor argumento in sys.argv[1:]:\n ruta=Path(argumento)\n with ZipFile(ruta) as z:\n  metadatos=json.loads(z.read('ro-crate-metadata.json'))\n  grafo=metadatos['@graph'];ids=[x['@id'] for x in grafo]\n  assert len(ids)==len(set(ids)), 'Identificadores repetidos en el grafo'\n  raiz=next(x for x in grafo if x['@id']=='./')\n  archivos={x['@id']:x for x in grafo if x.get('@type')=='File'}\n  assert {x['@id'] for x in raiz['hasPart']}==set(archivos),'hasPart no coincide con los archivos'\n  for nombre,entidad in archivos.items():\n   contenido=z.read(nombre)\n   assert entidad['sha256']==hashlib.sha256(contenido).hexdigest(),nombre+' SHA-256 incorrecto'\n   assert int(entidad['contentSize'])==len(contenido),nombre+' tamaño incorrecto'\n  protocolo=json.loads(z.read('protocolo.json'))\n  for lote in protocolo['lotes']:\n   accion=next(x for x in grafo if x['@id']=='#ejecucion-'+quote(lote['id'],safe=\"~!*'()\"))\n   estado={'preparado':'PotentialActionStatus','enCurso':'ActiveActionStatus','terminado':'CompletedActionStatus'}[lote['ejecucion']['estado']]\n   assert accion['actionStatus']['@id'].endswith('/'+estado),'Estado no coincide con la ejecución'\n   for origen,destino in [('inicio','startTime'),('fin','endTime')]:\n    esperado=lote['ejecucion'][origen]\n    assert accion.get(destino,'')==esperado,'Fecha inventada o perdida'\n   if not lote['operador']:assert 'agent' not in accion,'Operador inventado'\n crate=ROCrate(ruta)\n assert crate.root_dataset.id=='./'\n assert len(crate.data_entities)==len(archivos),'El lector externo no conserva todos los archivos'\n resultados.append({'archivo':ruta.name,'archivosVerificados':len(archivos),'entidadesLeidas':len(crate.get_entities()),'estado':'correcto'})\nif not resultados:raise SystemExit('Indica al menos un ZIP de investigación generado por Methods.')\nprint(json.dumps({'herramienta':'ResearchObject/ro-crate-py','version':version('rocrate'),'alcance':'Lectura externa, archivos, hashes, tamaños y acciones; no es certificación completa de un perfil.','resultados':resultados},ensure_ascii=False,indent=2))\n",
  "tests/ampliacion.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {createHash} from 'node:crypto';\nimport {readFileSync} from 'node:fs';\nimport {unzipSync,strFromU8} from 'fflate';\nimport {N,cerca} from '../herramientas/nucleo.mjs';\nconst {Placas,Analisis,Bibliografia,Moleculas,Evidencia,Ciencia,Protocolo,Ejecucion,Laboratorio,Paquete,Estadistica}=N;\nconst referencias=JSON.parse(readFileSync(new URL('fixtures/oraculos-cientificos.json',import.meta.url),'utf8'));\n\ntest('SHA-256 coincide con crypto en los límites de bloque y bytes binarios',()=>{\n for(const n of [0,1,3,55,56,63,64,65,119,120,127,128,129,1024,1048576]){\n  const bytes=Uint8Array.from({length:n},(_,i)=>(i*31+i%19)&255);\n  assert.equal(Evidencia.sha256(bytes),createHash('sha256').update(bytes).digest('hex'),'longitud '+n);\n }\n});\ntest('plan de transferencia conserva volumen, capacidad y concentración desconocida',()=>{\n const p=Placas.nueva(6,'Ensayo');p.capacidad=100;p.pozos={A1:{volumen:80,concentracion:2},B1:{volumen:10,concentracion:1}};\n const r=Placas.transfiere(p,'A1','B1',30);assert.equal(r.error,undefined);\n assert.equal(r.placa.pozos.A1.volumen,50);assert.equal(r.placa.pozos.B1.volumen,40);assert.equal(r.placa.pozos.B1.concentracion,null);assert.equal(p.pozos.A1.volumen,80);\n for(const [a,b,v] of [['A1','A1',1],['P24','B1',1],['A1','B1',-1],['A1','B1',81]])assert.ok(Placas.transfiere(p,a,b,v).error);\n p.pozos.B1.volumen=null;assert.match(Placas.transfiere(p,'A1','B1',1).error,/inicial/);\n});\ntest('todos los formatos de placa tienen posiciones únicas dentro de su geometría',()=>{\n for(const n of [6,12,24,48,96,384]){\n  const p=Placas.nueva(n),ids=Placas.posiciones(p);assert.equal(ids.length,n);assert.equal(new Set(ids).size,n);\n  const r=Placas.importaCSV(p,'Pozo,Volumen (µL)\\n'+ids.at(-1)+',0');assert.equal(r.error,undefined);assert.equal(r.placa.pozos[ids.at(-1)].volumen,0);\n }\n});\ntest('CSV de placa distingue cero y vacío, rechaza duplicados y protege fórmulas',()=>{\n const p=Placas.nueva(6,'=SUM(1,1)');p.capacidad=100;\n let r=Placas.importaCSV(p,'Pozo,Volumen (µL),Resultado\\nA1,0,0\\nA2,,');assert.equal(r.error,undefined);\n assert.equal(r.placa.pozos.A1.volumen,0);assert.equal(r.placa.pozos.A2.volumen,null);assert.equal(r.placa.pozos.A2.resultado,null);\n assert.match(Placas.csv(r.placa),/'=SUM/);\n for(const texto of ['Pozo,Volumen (µL)\\nA1,1\\nA1,2','Pozo,Volumen (µL)\\nA1,101','Pozo,Resultado\\nA1,inventado'])assert.ok(Placas.importaCSV(p,texto).error);\n assert.deepEqual(p.pozos,{});\n});\ntest('dilución seriada exige pozos únicos y no inventa volúmenes ni resultados',()=>{\n const p=Placas.nueva(6),r=Placas.serie(p,['A1','A2','A3'],8,2,'mg/mL');assert.equal(r.error,undefined);\n assert.deepEqual(['A1','A2','A3'].map(x=>r.placa.pozos[x].concentracion),[8,4,2]);assert.equal(r.placa.pozos.A1.volumen,undefined);\n assert.ok(Placas.serie(p,['A1','A1'],8,2,'mg/mL').error);assert.ok(Placas.serie(p,['A1'],8,1,'mg/mL').error);\n});\nfor(const caso of referencias.calibracion)test('calibración '+(caso.ponderada ? 'ponderada' : 'ordinaria')+' y predicción coinciden con statsmodels/SciPy',()=>{\n const r=Analisis.calibracion(caso.datos,caso.ponderada);assert.equal(r.error,undefined);cerca(r.pendiente,caso.pendiente,1e-11);cerca(r.intercepto,caso.intercepto,1e-11);cerca(r.r2,caso.r2,1e-11);\n r.covarianza.forEach((fila,i)=>fila.forEach((v,j)=>cerca(v,caso.covarianza[i][j],1e-10)));\n const p=Analisis.prediccion(r,caso.prediccion.x,caso.prediccion.uNueva);cerca(p.valor,caso.prediccion.valor,1e-11);cerca(p.intervalo,caso.prediccion.intervalo,1e-7);cerca(p.k,caso.prediccion.k,1e-7);\n});\ntest('Monte Carlo es reproducible y coincide con la incertidumbre de una combinación lineal',()=>{\n const entradas=[{nombre:'x',valor:10,u:0.5,distribucion:'normal'},{nombre:'y',valor:4,u:0.2,distribucion:'uniforme'}];\n const r=Analisis.monteCarlo('2*x+y',entradas,50000,14591);assert.equal(r.error,undefined);assert.deepEqual(Analisis.monteCarlo('2*x+y',entradas,50000,14591),r);\n assert.ok(Math.abs(r.media-24)<5*r.errorMedia);assert.ok(Math.abs(r.u-Math.sqrt(1.04))<0.025);\n assert.ok(r.bajo<r.media && r.alto>r.media);\n assert.match(Analisis.monteCarlo('sqrt(x)',[{nombre:'x',valor:0,u:1,distribucion:'normal'}],1000,1).error,/dominio/);\n assert.ok(Analisis.monteCarlo('x',entradas,999,1).error);assert.match(Analisis.monteCarlo('x+y',entradas,1000,1,[{a:'x',b:'y',rho:0.2}]).error,/entre entradas normales/);\n});\ntest('GUM correlacionado coincide con uncertainties sin suponer entradas independientes',()=>{\n const c=referencias.gum,entradas=Object.fromEntries(c.entradas.map(x=>[x.nombre,{valor:x.valor,u:x.u}])),r=Estadistica.propaga(c.expresion,entradas,c.correlaciones);\n assert.equal(r.error,undefined);cerca(r.valor,c.valor,1e-11);cerca(r.uc,c.uc,1e-7);\n});\ntest('fuerza iónica, mezcla y composición coinciden con oráculos independientes',()=>{\n cerca(Ciencia.fuerzaIonica(referencias.fuerzaIonica.especies).valor,referencias.fuerzaIonica.valor,1e-12);\n cerca(Ciencia.mezcla(referencias.mezcla.componentes).densidad,referencias.mezcla.densidad,1e-12);\n for(const c of referencias.composicion){const r=Ciencia.composicion(c.formula);assert.equal(r.error,undefined);assert.deepEqual(Object.fromEntries(r.elementos.map(x=>[x.simbolo,x.atomos])),c.elementos);cerca(r.elementos.reduce((a,x)=>a+x.fraccionAtomica,0),1);cerca(r.elementos.reduce((a,x)=>a+x.fraccionMasa,0),1);}\n});\ntest('solubilidad con ion común satisface el equilibrio incluso con cancelación extrema',()=>{\n for(const [k,c] of [[1e-10,0],[1e-10,0.1],[1e-30,1e4]]){const r=Ciencia.solubilidad(k,c);assert.equal(r.error,undefined);assert.ok(Math.abs(r.valor*(r.valor+c)/k-1)<1e-12);}\n assert.ok(Ciencia.solubilidad(-1,0).error);assert.ok(Ciencia.fuerzaIonica([{c:1,z:0.5}]).error);assert.ok(Ciencia.mezcla([{masa:0,densidad:1}]).error);\n});\ntest('bibliografía local conserva autores, DOI y fecha sin completar campos ausentes',()=>{\n const r=Bibliografia.importa('@article{ensayo, title={Local assay}, author={Doe, Jane}, year={2020}, doi={10.1000/local}}','bibtex');assert.equal(r.error,undefined);\n const [c]=r.referencias;assert.equal(c.title,'Local assay');assert.equal(c.DOI,'10.1000/local');assert.equal(c.author[0].family,'Doe');assert.deepEqual(c.issued['date-parts'][0],[2020]);\n const ris=Bibliografia.exporta(r.referencias,'ris');assert.equal(ris.error,undefined);assert.equal(Bibliografia.importa(ris.texto,'ris').referencias[0].DOI,c.DOI);\n const sinFecha=Bibliografia.importa('[{\"id\":\"r\",\"type\":\"article\",\"title\":\"Sin fecha\"}]','csl');assert.equal(sinFecha.error,undefined);assert.equal(sinFecha.referencias[0].issued,undefined);\n assert.ok(Bibliografia.importa('10.1000/solo-doi','bibtex').error);\n});\ntest('SMILES inválido devuelve un diagnóstico y el válido conserva la entrada',()=>{\n const r=Moleculas.lee('CC(=O)O');assert.equal(r.error,undefined);assert.equal(r.smiles,'CC(=O)O');assert.ok(r.estructura);\n for(const t of ['', 'C(', 'texto no químico', 'C'.repeat(2001)])assert.ok(Moleculas.lee(t).error);\n});\ntest('el paquete completo incluye revisión y adjuntos verificados con manifiesto íntegro',()=>{\n const p=Protocolo.nuevo({titulo:'Ensayo',pasos:[Protocolo.nuevoPaso({id:'paso',texto:'Medir'})]});p.lotes.push(Ejecucion.nuevoLote(p,Laboratorio.nuevo()));\n const bytes=new Uint8Array([0,128,255]),a=Evidencia.adjunto('lectura.bin',bytes,'application/octet-stream',{tipo:'protocolo',id:p.id}).archivo;p.adjuntos.push(a);\n p.referencias.push({id:'ref',type:'article',title:'Fuente declarada',DOI:'10.1000/local'});p.placas.push(Placas.nueva(6,'Placa'));\n const r=Paquete.completo(p,{adjuntos:[{id:a.id,bytes}]}),archivos=unzipSync(r.zip),manifest=JSON.parse(strFromU8(archivos['manifest-sha256.json']));\n for(const f of manifest.archivos){assert.equal(archivos[f.ruta].length,f.bytes);assert.equal(Evidencia.sha256(archivos[f.ruta]),f.sha256);}\n assert.deepEqual(Array.from(archivos['adjuntos/'+a.id]),Array.from(bytes));assert.ok(archivos['revisiones/'+p.lotes[0].id+'.json']);\n const metadata=JSON.parse(strFromU8(archivos['ro-crate-metadata.json']));assert.equal(new Set(metadata['@graph'].map(x=>x['@id'])).size,metadata['@graph'].length);\n const accion=metadata['@graph'].find(x=>x['@type']==='CreateAction');assert.equal(accion.startTime,undefined);assert.equal(accion.actionStatus['@id'],'http://schema.org/PotentialActionStatus');\n assert.throws(()=>Paquete.completo(p),/Adjunto ausente/);assert.throws(()=>Paquete.completo(p,{adjuntos:[{id:a.id,bytes:new Uint8Array([1,2,3])}]}),/alterado/);\n});\ntest('todas las nuevas colecciones se conservan tras exportar y abrir el protocolo',()=>{\n const p=Protocolo.nuevo();p.placas.push(Placas.sanea(Placas.serie(Placas.nueva(6,'Plan'),['A1'],2,2,'mg/mL').placa));p.muestras.push(N.Muestras.nueva({id:'m1',nombre:'Muestra',origen:'Declarado',loteId:'',notas:''}));p.referencias.push({id:'r1',type:'article',title:'Fuente'});\n p.analisis.push({id:'a1',tipo:'calibracion',fecha:'',resultado:{pendiente:2}});p.reactivos.push(Protocolo.nuevoReactivo({smiles:'CCO'}));\n const r=Protocolo.sanea(JSON.parse(JSON.stringify(p)));assert.deepEqual(r.avisos,[]);\n for(const k of ['placas','muestras','referencias','analisis','reactivos'])assert.deepEqual(r.protocolo[k],p[k],k);\n assert.equal(Protocolo.tieneContenido(Protocolo.nuevo({referencias:p.referencias})),true);\n});\ntest('el paquete conserva adjuntos que siguen citados por revisiones aunque se retire el vínculo actual',()=>{\n const bytes=new Uint8Array([7,8,9]),p=Protocolo.nuevo({titulo:'Historia conservada',pasos:[Protocolo.nuevoPaso({texto:'Medir'})]}),a=Evidencia.adjunto('historia.bin',bytes,'application/octet-stream',{tipo:'protocolo',id:p.id}).archivo;\n p.adjuntos.push(a);p.lotes.push(Ejecucion.nuevoLote(p,Laboratorio.nuevo()));p.adjuntos=[];\n const usados=Protocolo.adjuntosUsados(p);assert.equal(usados.archivos.length,1);assert.equal(usados.archivos[0].nombre,'historia.bin');\n const zip=unzipSync(Paquete.completo(p,{adjuntos:[{id:a.id,bytes}]}).zip);assert.deepEqual(Array.from(zip['adjuntos/'+a.id]),Array.from(bytes));\n assert.throws(()=>Paquete.completo(p),/Adjunto ausente/);\n});\n",
  "tests/app.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\n/* La app construida arranca en JSDOM sin errores, con el inicio de la suite,\n   la cinta y el menú, y los recorridos básicos funcionan: plantilla por URL,\n   edición con autoguardado, deshacer, biblioteca e importación como copia.\n   JSDOM no valida el aspecto: eso se revisa en un navegador real. */\nimport test, {after} from 'node:test';\nimport assert from 'node:assert/strict';\nimport {readFileSync, existsSync} from 'node:fs';\nimport {execFileSync} from 'node:child_process';\nimport {JSDOM, VirtualConsole} from 'jsdom';\n\nconst raiz = new URL('../', import.meta.url);\nif (!existsSync(new URL('public/index.html', raiz))) execFileSync(process.execPath, ['herramientas/build.mjs'], {cwd: raiz});\nconst html = readFileSync(new URL('public/index.html', raiz), 'utf8');\n/* Desde el paquete de diseño 1.8.0 Mey se anima con temporizadores propios: sin cerrar\n   las ventanas, el proceso de pruebas no termina nunca. */\nconst abiertas = [];\nafter(() => { for (const w of abiertas) w.close(); });\n\nasync function abre(url, almacen) {\n  const errores = [];\n  const vc = new VirtualConsole();\n  vc.on('jsdomError', e => errores.push(e.message));\n  vc.on('error', e => errores.push(String(e)));\n  const dom = new JSDOM(html, {url: url || 'https://erlensuite.com/methods/', runScripts: 'dangerously', pretendToBeVisual: true, virtualConsole: vc,\n    beforeParse(w) {\n      if (almacen) for (const [k, v] of Object.entries(almacen)) w.localStorage.setItem(k, v);\n      w.print = () => {};\n      /* Lo que JSDOM no trae y cualquier navegador sí. */\n      w.Element.prototype.scrollIntoView = function () {};\n      if (!w.TextEncoder) w.TextEncoder = TextEncoder;\n    }});\n  /* El arranque espera a DOMContentLoaded, que JSDOM despacha después. */\n  if (dom.window.document.readyState === 'loading') await new Promise(r => dom.window.document.addEventListener('DOMContentLoaded', () => setTimeout(r, 0)));\n  abiertas.push(dom.window);\n  return {dom, w: dom.window, d: dom.window.document, errores};\n}\nconst espera = ms => new Promise(r => setTimeout(r, ms));\n\ntest('arranca en el inicio de la suite, con cinta, menú y un solo documento', async () => {\n  const {d, errores} = await abre();\n  assert.deepEqual(errores, []);\n  assert.equal(d.documentElement.lang, 'es');\n  const inicio = d.querySelector('.erlen-inicio');\n  assert.ok(inicio && !inicio.hidden, 'el inicio se abre primero');\n  assert.ok(d.querySelector('.erlen-marco').hasAttribute('inert'), 'el editor queda inerte bajo el inicio');\n  assert.equal(d.title, 'Inicio · Erlen Methods');\n  assert.ok(d.querySelector('#cinta [role=\"tablist\"]'), 'cinta montada');\n  const pestanas = [...d.querySelectorAll('#cinta [role=\"tab\"]')].map(t => t.textContent.trim());\n  assert.deepEqual(pestanas, ['Inicio', 'Insertar', 'Calcular', 'Calidad', 'Métodos', 'Vista']);\n  assert.ok(d.querySelector('.erlen-marco-suite erlen-suite-nav'), 'menú de la suite en /methods/');\n  assert.equal(d.querySelectorAll('.erlen-inicio .erlen-inicio-ejemplo, .erlen-inicio [class*=\"ejemplo\"] h2').length >= 3, true);\n});\n\ntest('?plantilla= abre la plantilla sin guardarla hasta que se edita', async () => {\n  const {w, d, errores} = await abre('https://erlensuite.com/methods/?plantilla=hdl-znal');\n  assert.deepEqual(errores, []);\n  assert.ok(d.querySelector('.erlen-inicio').hidden, 'va directo al editor');\n  assert.equal(d.querySelector('#tituloProtocolo').value, 'Síntesis de HDL Zn-Al-CO₃ (R = 3) por coprecipitación a pH constante');\n  await espera(500);\n  assert.equal(w.localStorage.getItem('erlen-methods.indice'), null, 'no llena la biblioteca');\n  const t = d.querySelector('#fTitulo');\n  t.value = 'Mi HDL';\n  t.dispatchEvent(new w.Event('input'));\n  await espera(500);\n  const indice = JSON.parse(w.localStorage.getItem('erlen-methods.indice'));\n  assert.equal(indice.length, 1);\n  assert.equal(indice[0].titulo, 'Mi HDL');\n  assert.equal(d.querySelector('#tituloProtocolo').value, 'Mi HDL', 'la cabecera sigue al campo');\n  assert.equal(d.querySelector('#estadoGuardado').textContent, 'Guardado ✓');\n});\n\ntest('las secciones se pintan sin errores y los cálculos aparecen en las tarjetas', async () => {\n  const {w, d, errores} = await abre('https://erlensuite.com/methods/?plantilla=hdl-znal');\n  for (const s of ['general', 'reactivos', 'disoluciones', 'procedimiento', 'caracterizacion', 'seguridad', 'lotes', 'metodos', 'revisar', 'calculadoras', 'calidad', 'versiones', 'verificacion', 'laboratorio', 'ejecucion', 'biblioteca','placas','analisis','estructuras','bibliografia','archivos']) {\n    w.location.hash = '#p/' + s;\n    await espera(20);\n    assert.ok(!d.querySelector('#pantalla .aviso-error'), s);\n    assert.equal(d.title.endsWith(' · Erlen Methods'), true, s);\n  }\n  assert.deepEqual(errores, []);\n  w.location.hash = '#p/reactivos';\n  await espera(20);\n  assert.match(d.querySelector('#pantalla .tarjeta-item > .calculado').textContent, /M = 297,48 g\\/mol · 37,5 mmol · pesar 11,38 g/);\n  w.location.hash = '#p/metodos';\n  await espera(20);\n  assert.match(d.querySelector('.hoja-metodos').textContent, /11,38 g \\(37,5 mmol\\)/);\n});\n\ntest('insertar, quitar con «Deshacer» y el deshacer global', async () => {\n  const {w, d} = await abre('https://erlensuite.com/methods/?plantilla=drx-ftir');\n  w.location.hash = '#p/procedimiento';\n  await espera(20);\n  const antes = d.querySelectorAll('#pantalla .tarjeta-item').length;\n  [...d.querySelectorAll('#pantalla .fila-botones button')].find(b => b.textContent === 'Añadir un paso').click();\n  await espera(20);\n  assert.equal(d.querySelectorAll('#pantalla .tarjeta-item').length, antes + 1);\n  d.querySelector('#pantalla .tarjeta-item [aria-label=\"Quitar el paso 1\"]').click();\n  await espera(20);\n  assert.equal(d.querySelectorAll('#pantalla .tarjeta-item').length, antes);\n  const toast = [...d.querySelectorAll('#toasts .toast')].find(t => /Se quitó/.test(t.textContent));\n  toast.querySelector('button').click();\n  await espera(20);\n  assert.equal(d.querySelectorAll('#pantalla .tarjeta-item').length, antes + 1);\n  assert.match(d.querySelector('#pantalla .tarjeta-item textarea').value, /Moler la muestra/);\n});\n\ntest('importar un .json lo abre como copia sin pisar el que ya tenías', async () => {\n  const {w, d} = await abre('https://erlensuite.com/methods/?plantilla=naoh-khp');\n  const t = d.querySelector('#fTitulo');\n  t.value = 'Original';\n  t.dispatchEvent(new w.Event('input'));\n  await espera(500);\n  const id = JSON.parse(w.localStorage.getItem('erlen-methods.indice'))[0].id;\n  const copia = JSON.parse(w.localStorage.getItem('erlen-methods.p.' + id));\n  const r = await w.eval('Estado.importa(' + JSON.stringify(JSON.stringify(Object.assign(copia, {titulo: 'Importado'}))) + ')');\n  assert.equal(r.error, undefined);\n  await espera(500);\n  const indice = JSON.parse(w.localStorage.getItem('erlen-methods.indice'));\n  assert.equal(indice.length, 2);\n  assert.deepEqual(indice.map(x => x.titulo).sort(), ['Importado', 'Original']);\n});\n\ntest('sin almacenamiento la pérdida se dice: «Sin guardar»', async () => {\n  const {w, d} = await abre('https://erlensuite.com/methods/?plantilla=naoh-khp');\n  // En Storage, asignar una propiedad guarda un dato: hay que sustituir el método del prototipo.\n  w.Storage.prototype.setItem = () => { const e = new Error('lleno'); e.name = 'QuotaExceededError'; throw e; };\n  const t = d.querySelector('#fTitulo');\n  t.value = 'No cabe';\n  t.dispatchEvent(new w.Event('input'));\n  await espera(500);\n  const s = d.querySelector('#estadoGuardado');\n  assert.equal(s.textContent, 'Sin guardar');\n  assert.match(s.title, /lleno/);\n});\n\ntest('el índice del protocolo no pinta «null» ni «undefined»', async () => {\n  const {d} = await abre('https://erlensuite.com/methods/?plantilla=hdl-znal');\n  const t = d.querySelector('#lateral').textContent;\n  assert.doesNotMatch(t, /null|undefined|NaN/);\n  assert.match(t, /Aún no está en tu biblioteca/);\n});\n\ntest('todas las calculadoras se pintan en su disciplina y dan resultado sin errores', async () => {\n  const {w, d, errores} = await abre('https://erlensuite.com/methods/#p/calculadoras');\n  const lista = w.eval('Calculadoras.lista().map(x => ({id: x.id, categoria: x.categoria}))');\n  assert.ok(lista.length >= 22, 'hay ' + lista.length + ' calculadoras');\n  for (const cat of w.eval('Calculadoras.CATEGORIAS.map(c => c[0])')) {\n    w.eval('Calculadoras.abre(' + JSON.stringify(lista.find(x => x.categoria === cat).id) + ')');\n    await espera(20);\n    for (const x of lista.filter(y => y.categoria === cat)) assert.ok(d.querySelector('#pantalla [data-ref=\"' + x.id + '\"]'), x.id);\n    assert.ok(!d.querySelector('#pantalla .aviso-error'), cat);\n    assert.equal(d.querySelectorAll('#pantalla .fila-categorias [aria-pressed=\"true\"]').length, 1);\n  }\n  w.eval('Calculadoras.abre(\"calc-balanceo\")');\n  await espera(20);\n  assert.match(d.querySelector('[data-ref=\"calc-balanceo\"] .calc-salida').textContent, /2 KMnO4 \\+ 16 HCl/);\n  assert.deepEqual(errores, []);\n});\n\ntest('los códigos H del reactivo dan pictogramas, incompatibilidades y el Markdown los lleva', async () => {\n  const {w, d, errores} = await abre('https://erlensuite.com/methods/?plantilla=naoh-khp#p/reactivos');\n  await espera(20);\n  const inp = [...d.querySelectorAll('#pantalla .detalle-reactivo input')].find(i => /H302/.test(i.placeholder));\n  inp.value = 'H290 H314 P280';\n  inp.dispatchEvent(new w.Event('input'));\n  await espera(20);\n  assert.match(inp.closest('.detalle-reactivo').textContent, /Corrosivo/);\n  const r = w.eval('Estado.p.reactivos[0]');\n  assert.deepEqual([...r.ghs], ['H290', 'H314']);\n  assert.deepEqual([...r.prudencia], ['P280']);\n  w.location.hash = '#p/seguridad';\n  await espera(20);\n  assert.match(d.querySelector('#pantalla').textContent, /H314/);\n  const md = w.eval('Redaccion.markdown(Estado.p, {})');\n  assert.match(md, /GHS05/);\n  assert.deepEqual(errores, []);\n});\n\ntest('lotes: resultado, condiciones reales, comparación y carta de control', async () => {\n  const {w, d, errores} = await abre('https://erlensuite.com/methods/?plantilla=naoh-khp#p/general');\n  w.eval(`Estado.cambia(p => {\n    p.resultadoNombre = 'Concentración'; p.resultadoUnidad = 'mol/L';\n    if (!p.pasos.length) p.pasos.push(Protocolo.nuevoPaso());\n    p.pasos[0].temperatura = 25;\n    [0.1012, 0.1009, 0.1015, 0.1011].forEach((v, i) => p.lotes.push(Protocolo.nuevoLote({codigo: 'L' + (i + 1), resultado: v, parametros: {[p.pasos[0].id]: {temperatura: 24 + i}}})));\n  })`);\n  w.location.hash = '#p/lotes';\n  await espera(20);\n  assert.match(d.querySelector('#pantalla').textContent, /Condiciones reales/);\n  w.location.hash = '#p/calidad';\n  await espera(20);\n  const pant = d.querySelector('#pantalla');\n  assert.ok(pant.querySelector('svg.grafica'), 'carta de control');\n  assert.match(pant.textContent, /Concentración \\(mol\\/L\\)/);\n  assert.match(pant.textContent, /En control/);\n  assert.deepEqual(errores, []);\n});\n\ntest('versiones, lista previa, inventario y exportaciones', async () => {\n  const {w, d, errores} = await abre('https://erlensuite.com/methods/?plantilla=bradford#p/versiones');\n  await espera(20);\n  [...d.querySelectorAll('#pantalla button')].find(b => b.textContent === 'Guardar esta versión').click();\n  await espera(20);\n  w.eval('Estado.cambia(p => { p.titulo = \"Cambiado\"; })');\n  await espera(20);\n  [...d.querySelectorAll('#pantalla button')].find(b => b.textContent === 'Comparar con la actual').click();\n  assert.match(d.querySelector('#pantalla').textContent, /Cambiado/);\n  w.location.hash = '#p/verificacion';\n  await espera(20);\n  assert.ok(d.querySelector('#pantalla .hoja-verificacion input[type=checkbox]'));\n  w.location.hash = '#p/laboratorio';\n  await espera(20);\n  assert.ok(!d.querySelector('#pantalla .aviso-error'));\n  const docx = w.eval('Exportar.docx(Estado.p, {})');\n  assert.equal(docx[0], 0x50);\n  assert.match(w.eval('Exportar.latex(Estado.p, {})'), /\\\\documentclass/);\n  assert.deepEqual(errores, []);\n});\n\ntest('guardar como plantilla la pone en el inicio', async () => {\n  const {w, d} = await abre('https://erlensuite.com/methods/?plantilla=dureza');\n  w.eval('Estado.cambia(p => { p.titulo = \"Mi método de dureza\"; })');\n  w.eval('Acciones.plantilla()');\n  const modal = d.querySelector('.modal');\n  modal.querySelector('input').value = 'Aguas';\n  [...modal.querySelectorAll('button')].find(b => b.textContent === 'Guardar la plantilla').click();\n  const propias = JSON.parse(w.localStorage.getItem('erlen-methods.plantillas'));\n  const id = Object.keys(propias)[0];\n  assert.equal(propias[id].disciplina, 'Aguas');\n  assert.equal(propias[id].protocolo.lotes.length, 0);\n  w.eval('Portada.abrir(\"inicio\")');\n  await espera(20);\n  assert.match(d.body.textContent, /Mi método de dureza/);\n  assert.equal((await w.eval('Estado.desdePlantilla(' + JSON.stringify(id) + ', true)')).error, undefined);\n});\n\ntest('ejecución: las notas sobreviven a completar un paso y el cierre conserva su revisión', async () => {\n  const {w, d, errores} = await abre('https://erlensuite.com/methods/?plantilla=bradford#p/lotes');\n  w.eval(\"Acciones.inserta('lote')\");\n  w.location.hash = '#p/ejecucion'; await espera(20);\n  d.querySelector('#pantalla button.btn-pri').click();\n  const nota = [...d.querySelectorAll('#pantalla textarea')].find(t => t.closest('section'));\n  nota.value = 'Se registró la muestra real'; nota.dispatchEvent(new w.Event('input'));\n  const casillas = [...d.querySelectorAll('#pantalla input[type=checkbox]')];\n  for (const casilla of casillas) { casilla.click(); }\n  // Completar repinta: usar las casillas vigentes para los siguientes pasos.\n  while (d.querySelector('#pantalla input[type=checkbox]:not(:checked)')) d.querySelector('#pantalla input[type=checkbox]:not(:checked)').click();\n  assert.equal(w.eval('Estado.p.lotes[0].ejecucion.pasos[Estado.p.lotes[0].revision.protocolo.pasos[0].id].nota'), 'Se registró la muestra real');\n  const terminar = [...d.querySelectorAll('#pantalla button')].find(b => b.textContent === 'Finalizar ejecución');\n  terminar.click(); await espera(0);\n  assert.match(d.querySelector('[role=dialog]').textContent, /Se cerrarán/);\n  d.querySelector('[role=dialog] button.btn-pri').click(); await espera(0);\n  assert.equal(w.eval('Estado.p.lotes[0].ejecucion.estado'), 'terminado');\n  assert.ok([...d.querySelectorAll('#pantalla input[type=checkbox]')].every(x => x.disabled));\n  assert.deepEqual(errores, []);\n});\n\ntest('una escritura fallida restaura protocolo e índice y mantiene el aviso de guardado', async () => {\n  const {w, errores} = await abre('https://erlensuite.com/methods/?plantilla=bradford');\n  await w.eval(\"Estado.cambia(p => {p.titulo = 'Antes';}); Estado.guardaYa()\");\n  const clave = 'erlen-methods.p.' + w.eval('Estado.p.id');\n  const antes = w.localStorage.getItem(clave), indice = w.localStorage.getItem('erlen-methods.indice');\n  const escribe = w.Storage.prototype.setItem;\n  let fallo = false;\n  w.Storage.prototype.setItem = function(k, v) {\n    if (k === 'erlen-methods.indice' && !fallo) { fallo = true; throw new w.DOMException('Cuota llena', 'QuotaExceededError'); }\n    return escribe.call(this, k, v);\n  };\n  await w.eval(\"Estado.cambia(p => {p.titulo = 'Después';}); Estado.guardaYa()\");\n  assert.ok(w.eval('Estado.error'));\n  assert.equal(w.localStorage.getItem(clave), antes);\n  assert.equal(w.localStorage.getItem('erlen-methods.indice'), indice);\n  assert.equal(w.localStorage.getItem('erlen-methods.guardado-pendiente'), null);\n  w.Storage.prototype.setItem = escribe;\n  assert.deepEqual(errores, []);\n});\n\ntest('detecta cambios de otra pestaña antes de sobrescribir y protege el documento al abrir otro', async () => {\n  const {w} = await abre('https://erlensuite.com/methods/?plantilla=bradford');\n  await w.eval(\"Estado.cambia(p => {p.titulo = 'Mi documento';}); Estado.guardaYa()\");\n  const id = w.eval('Estado.p.id'), clave = 'erlen-methods.p.' + id;\n  const remoto = JSON.parse(w.localStorage.getItem(clave)); remoto.titulo = 'Edición de otra pestaña';\n  w.localStorage.setItem(clave, JSON.stringify(remoto));\n  await w.eval(\"Estado.cambia(p => {p.titulo = 'Mi edición pendiente';}); Estado.guardaYa()\");\n  assert.match(w.eval('Estado.error'), /Otra pestaña/);\n  assert.equal(JSON.parse(w.localStorage.getItem(clave)).titulo, 'Edición de otra pestaña');\n  const resultado = await w.eval('Estado.desdePlantilla(\"dureza\", true)');\n  assert.ok(resultado.error);\n  assert.equal(w.eval('Estado.p.id'), id);\n});\n\ntest('recupera protocolo e índice de un guardado interrumpido antes de restaurar la biblioteca', async () => {\n  const anterior = JSON.stringify({format: 'erlen-methods-protocolo-v1', id: 'p-prueba', titulo: 'Versión recuperada'});\n  const indice = JSON.stringify([{id: 'p-prueba', titulo: 'Versión recuperada'}]);\n  const {w} = await abre('https://erlensuite.com/methods/', {\n    'erlen-methods.p.p-prueba': JSON.stringify({id: 'p-prueba', titulo: 'Cambio incompleto'}),\n    'erlen-methods.indice': indice,\n    'erlen-methods.prefs': JSON.stringify({ultimo: 'p-prueba'}),\n    'erlen-methods.guardado-pendiente': JSON.stringify({anteriores: [['erlen-methods.p.p-prueba', anterior], ['erlen-methods.indice', indice]]})\n  });\n  assert.equal(w.eval('Estado.p.titulo'), 'Versión recuperada');\n  assert.equal(w.localStorage.getItem('erlen-methods.guardado-pendiente'), null);\n});\n\ntest('eliminar un protocolo no lo vuelve a guardar durante el cambio de documento', async () => {\n  const {w, d} = await abre('https://erlensuite.com/methods/?plantilla=bradford');\n  await w.eval(\"Estado.cambia(p => {p.titulo = 'Para eliminar';}); Estado.guardaYa()\");\n  const id = w.eval('Estado.p.id');\n  w.eval('Acciones.eliminar()'); await espera(0);\n  d.querySelector('[role=dialog] button.btn-peligro').click(); await espera(0);\n  assert.equal(w.localStorage.getItem('erlen-methods.p.' + id), null);\n  assert.equal(w.eval('Almacen.indice().some(p => p.id === ' + JSON.stringify(id) + ')'), false);\n});\n",
  "tests/calculo.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\n/* Fórmulas, masas molares y cálculos de laboratorio. Los valores de\n   referencia se calcularon aparte, a mano, con los pesos atómicos\n   abreviados de CIAAW 2021 (Zn 65,38; Al 26,982; N 14,007; O 15,999;\n   H 1,008; Na 22,990; C 12,011; K 39,098; Cu 63,546; S 32,06). */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {N, cerca} from '../herramientas/nucleo.mjs';\n\nconst {Formula, Calculo} = N;\n\ntest('masas molares de sales hidratadas, complejos y fórmulas no enteras', () => {\n  cerca(Formula.masaMolar('Zn(NO3)2·6H2O'), 297.478, 1e-9, 'nitrato de zinc');\n  cerca(Formula.masaMolar('Al(NO3)3*9H2O'), 375.129, 1e-9, 'nitrato de aluminio con *');\n  cerca(Formula.masaMolar('Na2CO3'), 105.988, 1e-9, 'carbonato');\n  cerca(Formula.masaMolar('C8H5KO4'), 204.222, 1e-9, 'KHP');\n  cerca(Formula.masaMolar('[Co(NH3)6]Cl3'), 267.469, 1e-9, 'corchetes');\n  cerca(Formula.masaMolar('Zn0.75Al0.25(OH)2(CO3)0.125·0.5H2O'), 106.303, 1e-9, 'HDL');\n  cerca(Formula.masaMolar('Zn(NO₃)₂·6H₂O'), 297.478, 1e-9, 'subíndices Unicode');\n  cerca(Formula.masaMolar('Na2CO3.H2O'), 105.988 + 18.015, 1e-9, 'punto ASCII de hidrato');\n});\n\ntest('las fórmulas ilegibles se explican con la posición y no dan un número', () => {\n  for (const [f, re] of [['Zn(NO3', /Falta «\\)»/], ['Mg1-xAlx(OH)2', /Carácter inesperado|valor numérico/], ['Xx2O', /Elemento desconocido/], ['', /Escribe una fórmula/]]) {\n    const r = Formula.lee(f);\n    assert.ok(r.error, f);\n    assert.match(r.error, re, f);\n  }\n  assert.ok(Number.isNaN(Formula.masaMolar('Zn(NO3')));\n  assert.match(Formula.lee('CuSO4.5H2O').aviso, /hidrato/);\n  cerca(Formula.masaMolar('CuSO4*5H2O'), 249.677, 1e-9, 'sulfato de cobre pentahidratado');\n});\n\ntest('formato de lectura con subíndices, sin tocar el coeficiente del hidrato', () => {\n  assert.equal(Formula.bonita('Zn(NO3)2·6H2O'), 'Zn(NO₃)₂·6H₂O');\n  assert.equal(Formula.bonita('Na2CO3'), 'Na₂CO₃');\n});\n\ntest('masa para n moles con pureza, disolución, concentrado y dilución', () => {\n  const a = Calculo.masaParaMoles({formula: 'NaOH', pureza: 97, moles: 0.1});\n  cerca(a.masa, 0.1 * 39.997 / 0.97, 1e-12, 'NaOH 97 %');\n  const d = Calculo.disolucion({formula: 'NaOH', pureza: 97, concentracion: 0.1, volumen: 1000});\n  cerca(d.masa, 0.1 * 39.997 / 0.97, 1e-12, 'disolución');\n  assert.match(d.explicacion, /se pesan/);\n  // HNO3 65 % m/m, ρ = 1,39 g/mL → 14,34 mol/L.\n  const c = Calculo.volumenConcentrado({formula: 'HNO3', porcentaje: 65, densidad: 1.39, moles: 0.1});\n  cerca(c.molaridad, 0.65 * 1.39 * 1000 / 63.012, 1e-9, 'molaridad HNO3');\n  cerca(c.volumen, 0.1 / c.molaridad * 1000, 1e-9, 'volumen HNO3');\n  const dl = Calculo.dilucion({c1: 2, c2: 0.5, v2: 100});\n  cerca(dl.v1, 25, 1e-12, 'C1V1');\n  cerca(dl.disolvente, 75, 1e-12, 'disolvente');\n  assert.match(Calculo.dilucion({c1: 0.1, c2: 1, v2: 10}).error, /no puede concentrar/);\n  assert.match(Calculo.masaParaMoles({formula: 'NaOH', pureza: 0, moles: 1}).error, /pureza/);\n  assert.match(Calculo.disolucion({formula: 'NaOH', concentracion: 0.1}).error, /volumen/);\n});\n\ntest('coprecipitación de HDL Zn-Al (R = 3, 1 mol/L, 50 mL)', () => {\n  const r = Calculo.coprecipitacionHDL({\n    sal2: {formula: 'Zn(NO3)2·6H2O', pureza: 98}, sal3: {formula: 'Al(NO3)3·9H2O', pureza: 98},\n    R: 3, concentracion: 1, volumen: 50, anion: 'CO3', agua: 0.5,\n    base: {formula: 'NaOH', pureza: 97}, fuenteAnion: {formula: 'Na2CO3', pureza: 99.5, exceso: 2}\n  });\n  assert.equal(r.error, undefined);\n  cerca(r.x, 0.25, 1e-12, 'x');\n  cerca(r.sal2.moles, 0.0375, 1e-12, 'mol Zn');\n  cerca(r.sal3.moles, 0.0125, 1e-12, 'mol Al');\n  cerca(r.sal2.masa, 0.0375 * 297.478 / 0.98, 1e-9, 'g sal de Zn');\n  cerca(r.sal3.masa, 0.0125 * 375.129 / 0.98, 1e-9, 'g sal de Al');\n  cerca(r.nOH, 2 * 0.0375 + 3 * 0.0125, 1e-12, 'OH estequiométrico');\n  cerca(r.base.masa, 0.1125 * 39.997 / 0.97, 1e-9, 'g NaOH');\n  cerca(r.nAnion, 0.00625, 1e-12, 'mol carbonato');\n  cerca(r.fuenteAnion.masa, 0.0125 * 105.988 / 0.995, 1e-9, 'g Na2CO3 con exceso 2');\n  assert.equal(r.producto, 'Zn0.75Al0.25(OH)2(CO3)0.125·0.5H2O');\n  cerca(r.masaMolarProducto, 106.303, 1e-9, 'M del HDL');\n  cerca(r.rendimientoTeorico, 0.05 * 106.303, 1e-9, 'rendimiento teórico');\n  assert.match(r.explicacion, /cota orientativa/);\n});\n\ntest('coprecipitación: sal con dos metales, R imposible y anión desconocido se explican', () => {\n  const base = {sal2: {formula: 'Zn(NO3)2·6H2O'}, sal3: {formula: 'Al(NO3)3·9H2O'}, R: 2, concentracion: 1, volumen: 10};\n  assert.match(Calculo.coprecipitacionHDL({...base, sal3: {formula: 'KAl(SO4)2·12H2O'}}).error, /único metal/);\n  assert.match(Calculo.coprecipitacionHDL({...base, R: 0}).error, /mayor que cero/);\n  assert.match(Calculo.coprecipitacionHDL({...base, anion: 'SO4'}).error, /Anión desconocido/);\n  const sinAgua = Calculo.coprecipitacionHDL(base);\n  assert.match(sinAgua.explicacion, /sin agua interlaminar/);\n  assert.equal(sinAgua.producto.includes('H2O'), false);\n});\n",
  "tests/calibracion-avanzada.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {readFileSync} from 'node:fs';\nimport {N,cerca} from '../herramientas/nucleo.mjs';\nconst {Analisis}=N,oraculos=JSON.parse(readFileSync(new URL('fixtures/oraculos-cientificos.json',import.meta.url),'utf8'));\nfor(const c of oraculos.calibracion)test('calibración inversa y palanca '+(c.ponderada ? 'ponderada' : 'ordinaria')+' contrastadas con statsmodels, SciPy y raíces de NumPy',()=>{\n const r=Analisis.calibracion(c.datos,c.ponderada),f=c.inversa,i=Analisis.inversa(r,f.y,f.uNueva,f.repeticiones);\n assert.equal(i.error,undefined);for(const k of ['valor','bajo','alto'])cerca(i[k],f[k],1e-7,k);\n r.residuos.forEach((x,j)=>{cerca(x.palanca,c.palancas[j],1e-10);if(c.cook)cerca(x.cook,c.cook[j],1e-9);});\n const una=Analisis.inversa(r,f.y,f.uNueva,1);assert.ok(una.alto-una.bajo>i.alto-i.bajo);\n});\ntest('la predicción centrada conserva el intervalo cuando x tiene un desplazamiento grande',()=>{\n const datos=[0,1,2,3,4,5].map((x,i)=>({x,y:2*x+[0.1,-0.1,0.2,-0.2,0.1,-0.1][i]}));\n const a=Analisis.calibracion(datos,false),b=Analisis.calibracion(datos.map(d=>({...d,x:d.x+1e12})),false);\n const u=Analisis.prediccion(a,2.5),v=Analisis.prediccion(b,1e12+2.5);cerca(u.valor,v.valor,1e-10);cerca(u.intervalo,v.intervalo,1e-10);\n const i=Analisis.inversa(a,5,null,1),j=Analisis.inversa(b,5,null,1);assert.ok(Math.abs(j.valor-1e12-i.valor)<0.0002);assert.ok(Math.abs((j.alto-j.bajo)-(i.alto-i.bajo))<0.0003);\n});\ntest('una pendiente compatible con cero impide cuantificar y nunca presenta un intervalo acotado falso',()=>{\n const r=Analisis.calibracion([0,1,2,3,4].map((x,i)=>({x,y:[1,2,1,2,1][i]})),false);\n assert.match(Analisis.inversa(r,1.5,null,1).error,/no es acotado/);\n for(const repeticiones of [0,1.2,Infinity,100001])assert.ok(Analisis.inversa(r,1.5,null,repeticiones).error);\n});\ntest('el ajuste ponderado normaliza pesos y rechaza magnitudes fuera de la representación',()=>{\n const datos=[0,1,2,3].map(x=>({x,y:2*x,u:1e150})),r=Analisis.calibracion(datos,true);assert.equal(r.error,undefined);cerca(r.pendiente,2);\n assert.ok(Analisis.calibracion(datos.map(d=>({...d,u:1e-200})),true).error);\n assert.ok(Analisis.calibracion(datos.map(d=>({...d,u:1e200})),true).error);\n assert.ok(Analisis.prediccion(r,2,1e200).error);\n assert.ok(Analisis.inversa(r,2,0,1).error);\n});\ntest('un ajuste exacto admite el punto inverso y declara extrapolaciones',()=>{\n const r=Analisis.calibracion([0,1,2,3].map(x=>({x,y:2*x})),false);\n const i=Analisis.inversa(r,0,null,1);assert.deepEqual([i.valor,i.bajo,i.alto],[0,0,0]);assert.equal(Analisis.prediccion(r,8).extrapolacion,true);\n assert.equal(Analisis.inversa(r,16,null,1).extrapolacion,true);\n});\n\ntest('calculadora y análisis comparten la inversión Fieller contrastada sin descartar filas inválidas',()=>{\n const c=oraculos.calibracion.find(c=>!c.ponderada),r=N.Estadistica.calibracion(c.datos.map(d=>d.x),c.datos.map(d=>d.y)),i=r.predice(c.inversa.y,c.inversa.repeticiones);assert.equal(i.error,undefined);cerca(i.x0,c.inversa.valor,1e-7);cerca(i.ic[0],c.inversa.bajo,1e-7);cerca(i.ic[1],c.inversa.alto,1e-7);for(const [x,y] of [[[0,1,2],[0,2]],[[0,1,2],[0,null,4]],[[0,1,2],[0,'mal',4]]])assert.ok(N.Estadistica.calibracion(x,y).error);\n});\ntest('calculadora centrada conserva residuos y detecta intervalos no acotados con desplazamiento grande',()=>{\n const x=[0,1,2,3,4],y=[1.1,2.9,5.1,6.9,9.1],a=N.Estadistica.calibracion(x,y),b=N.Estadistica.calibracion(x.map(v=>v+1e12),y);cerca(a.syx,b.syx,1e-12);cerca(b.prediceRespuesta(1e12+2),a.prediceRespuesta(2),1e-12);const i=a.predice(5,1),j=b.predice(5,1);assert.ok(Math.abs(j.x0-1e12-i.x0)<.0002);assert.ok(Math.abs(j.ic[1]-j.ic[0]-(i.ic[1]-i.ic[0]))<.0003);assert.ok(b.predice(5,1.5).error);const plana=N.Estadistica.calibracion(x,[1,2,1,2,1]);assert.match(plana.predice(1.5).error,/no es acotado/);assert.ok(N.Estadistica.calibracion(x,y,1).error);assert.ok(Analisis.calibracion([null,null,null],false).error);assert.ok(Analisis.prediccion(null,1).error);\n});\n",
  "tests/calidad-revisiones.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {N} from '../herramientas/nucleo.mjs';\nconst {Protocolo,Ejecucion,Laboratorio,Lotes}=N;\nconst prepara=()=>Protocolo.nuevo({resultadoNombre:'Actividad',resultadoUnidad:'U/mL',pasos:[Protocolo.nuevoPaso({id:'s',texto:'Incubar',tiempo:2,unidadTiempo:'min'})]});\ntest('comparar lotes conserva unidades por revisión y no mezcla minutos con horas',()=>{\n const p=prepara(),a=Ejecucion.nuevoLote(p,Laboratorio.nuevo());a.parametros={s:{tiempo:3}};a.resultado=2;\n p.pasos[0].unidadTiempo='h';p.pasos[0].tiempo=1;p.resultadoNombre='Concentración';p.resultadoUnidad='mg/mL';\n const b=Ejecucion.nuevoLote(p,Laboratorio.nuevo());b.parametros={s:{tiempo:1.5}};b.resultado=4;p.lotes=[a,b];\n p.pasos[0].unidadTiempo='s';p.resultadoNombre='';p.resultadoUnidad='';\n const c=Lotes.comparacion(p);assert.deepEqual(c.columnas.map(x=>x.unidad),['min','h']);\n assert.deepEqual(c.filas.map(f=>f.valores.map(v=>v.real)),[[3,null],[null,1.5]]);\n assert.deepEqual(c.filas.map(f=>f.valores.map(v=>v.desvio)),[[1,null],[null,0.5]]);\n assert.deepEqual(c.columnasResultado.map(x=>[x.nombre,x.unidad]),[['Actividad','U/mL'],['Concentración','mg/mL']]);\n assert.deepEqual(c.filas.map(f=>f.resultados),[[2,null],[null,4]]);assert.ok(Lotes.control(p).error);\n});\ntest('el plan de cada lote prevalece y un encabezado no presenta planes diferentes como uno',()=>{\n const p=prepara(),a=Ejecucion.nuevoLote(p,Laboratorio.nuevo());a.parametros={s:{tiempo:3}};\n p.pasos[0].tiempo=10;const b=Ejecucion.nuevoLote(p,Laboratorio.nuevo());b.parametros={s:{tiempo:12}};p.lotes=[a,b];\n const c=Lotes.comparacion(p);assert.equal(c.columnas.length,1);assert.equal(c.columnas[0].planeado,null);assert.deepEqual(c.filas.map(f=>f.valores[0].planeado),[2,10]);\n assert.deepEqual(c.filas.map(f=>f.valores[0].desvio),[1,2]);\n});\ntest('un lote anterior sin revisión sigue disponible y su referencia queda explícitamente desconocida',()=>{\n const p=prepara();p.lotes=[1,2,3].map(resultado=>Protocolo.nuevoLote({resultado}));\n assert.equal(Lotes.control(p).referenciaConocida,false);assert.equal(Lotes.comparacion(p).filas[0].referenciaConocida,false);\n});\n",
  "tests/contrato-presupuesto.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {readFileSync} from 'node:fs';\nimport {createHash} from 'node:crypto';\nimport {zipSync,strToU8} from 'fflate';\nimport {compruebaContrato} from '../herramientas/contrato.mjs';\n\nconst MiB=1024*1024;\nconst version=JSON.parse(readFileSync(new URL('../package.json',import.meta.url))).version;\nfunction paqueteConHtml(bytes){\n  const html=new Uint8Array(bytes).fill(32);\n  html.set(strToU8('<!doctype html><html lang=\"es\"><head><title>Presupuesto</title></head><body>Prueba de contrato</body></html>'));\n  const json=valor=>strToU8(JSON.stringify(valor));\n  return zipSync({\n    'index.html':html,\n    'LICENSE':strToU8('AGPL-3.0-only'),\n    'build.json':json({version,sha256:createHash('sha256').update(html).digest('hex')}),\n    'erlen-tool.json':json({id:'methods',version,mountPath:'/methods/',status:'alpha',license:'AGPL-3.0-only'}),\n    'source.json':json({format:'erlen-source-v1',files:{'herramientas/build.mjs':'// fuente de prueba'}})\n  });\n}\ntest('el paquete acepta HTML entre 3 y 3,25 MiB, como el contrato vigente del Portal',()=>{\n  assert.deepEqual(compruebaContrato(paqueteConHtml(3*MiB+1024)).fallos,[]);\n});\ntest('el paquete conserva el límite finito y rechaza HTML mayor de 3,25 MiB',()=>{\n  assert.deepEqual(compruebaContrato(paqueteConHtml(3.25*MiB+1)).fallos,['index.html supera 3,25 MiB']);\n});\n",
  "tests/cuantificacion.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {readFileSync} from 'node:fs';\nimport {N,cerca} from '../herramientas/nucleo.mjs';\nconst {Protocolo,Placas,Laboratorio,Ejecucion,Analisis,Evidencia}=N;\nconst oraculos=JSON.parse(readFileSync(new URL('fixtures/oraculos-cientificos.json',import.meta.url),'utf8'));\nconst prepara=()=>{const p=Protocolo.nuevo({pasos:[Protocolo.nuevoPaso({texto:'Medir'})]}),placa=Placas.nueva(6,'Placa');placa.id='placa';p.placas=[placa];return Ejecucion.inicia(Ejecucion.nuevoLote(p,Laboratorio.nuevo())).lote;};\nconst opciones={unidadRespuesta:'A',unidadConcentracion:'mg/L',factorDilucion:10,uRespuesta:null};\nfor(const c of oraculos.calibracion)test('cuantificación de placa '+(c.ponderada ? 'ponderada' : 'ordinaria')+' conserva lectura y escala intervalo contrastado con NumPy/SciPy',()=>{\n let lote=prepara();const f=c.inversa;lote=Ejecucion.pozo(lote,'placa','A1',{resultado:f.y,unidadResultado:'A'}).lote;\n // El oráculo aporta una media de n lecturas: OLS usa n=1 aquí. WLS usa u individual/sqrt(n) como u de esta respuesta media explícita.\n const a={id:'calibracion',tipo:'calibracion',ponderada:c.ponderada,datos:c.datos,resultado:{pendiente:999}},r=Analisis.cuantificaPlaca(lote,'placa',a,{...opciones,uRespuesta:c.ponderada ? f.uNueva/Math.sqrt(f.repeticiones) : null});assert.equal(r.error,undefined);cerca(r.analisis.resultados[0].valor,f.valor*10,1e-7);if(c.ponderada){cerca(r.analisis.resultados[0].bajo,f.bajo*10,1e-7);cerca(r.analisis.resultados[0].alto,f.alto*10,1e-7);}else{assert.ok(r.analisis.resultados[0].bajo<f.bajo*10);assert.ok(r.analisis.resultados[0].alto>f.alto*10);}\n assert.equal(lote.ejecucion.placas[0].pozos.A1.resultado,f.y);assert.equal(r.analisis.fuente.calibracion.resultado.pendiente,999);assert.notEqual(r.analisis.ajuste.pendiente,999);assert.equal(r.analisis.sha256Fuente,Evidencia.sha256(new TextEncoder().encode(JSON.stringify(r.analisis.fuente))));\n a.datos[0].y+=1;assert.notEqual(r.analisis.fuente.calibracion.datos[0].y,a.datos[0].y);\n});\ntest('cuantificación ignora planes y distingue cero de desconocido, sin modificar la ejecución',()=>{\n const lote=prepara(),a={id:'a',tipo:'calibracion',ponderada:false,datos:[0,1,2,3].map(x=>({x,y:2*x}))};assert.ok(Analisis.cuantificaPlaca(lote,'placa',a,opciones).error);const l=Ejecucion.pozo(lote,'placa','A1',{resultado:0,unidadResultado:'A'}).lote;const r=Analisis.cuantificaPlaca(l,'placa',a,opciones);assert.equal(r.error,undefined);assert.equal(r.analisis.resultados[0].valor,0);assert.equal(r.analisis.resultados.length,1);assert.deepEqual(lote.ejecucion.placas[0].pozos,{});assert.equal(Protocolo.sanea({...Protocolo.nuevo(),analisis:[r.analisis]}).avisos.length,0);\n});\ntest('una fila incompatible rechaza toda la cuantificación y detecta alteraciones posteriores del origen',()=>{\n const a={id:'a',tipo:'calibracion',ponderada:false,datos:[0,1,2,3].map(x=>({x,y:2*x}))};let l=Ejecucion.pozo(prepara(),'placa','A1',{resultado:2,unidadResultado:'A'}).lote;const primero=Analisis.cuantificaPlaca(l,'placa',a,opciones).analisis;l=Ejecucion.pozo(l,'placa','A2',{resultado:4,unidadResultado:'mV'}).lote;assert.match(Analisis.cuantificaPlaca(l,'placa',a,opciones).error,/A2/);l=Ejecucion.pozo(l,'placa','A2',{resultado:4,unidadResultado:'A'}).lote;assert.notEqual(Analisis.cuantificaPlaca(l,'placa',a,opciones).analisis.sha256Fuente,primero.sha256Fuente);assert.equal(primero.resultados.length,1);\n for(const cambio of [{unidadRespuesta:''},{unidadConcentracion:''},{factorDilucion:0},{factorDilucion:Infinity}])assert.ok(Analisis.cuantificaPlaca(l,'placa',a,{...opciones,...cambio}).error);\n});\ntest('pendiente no distinguible de cero, dilución fuera de representación y extrapolación se explican',()=>{\n const a={id:'a',tipo:'calibracion',ponderada:false,datos:[0,1,2,3,4].map((x,i)=>({x,y:[1,2,1,2,1][i]}))},l=Ejecucion.pozo(prepara(),'placa','A1',{resultado:8,unidadResultado:'A'}).lote;assert.match(Analisis.cuantificaPlaca(l,'placa',a,opciones).error,/no es acotado/);a.datos=[0,1,2,3].map(x=>({x,y:2*x}));const r=Analisis.cuantificaPlaca(l,'placa',a,opciones);assert.equal(r.analisis.resultados[0].extrapolacion,true);assert.match(Analisis.cuantificaPlaca(l,'placa',a,{...opciones,factorDilucion:Number.MAX_VALUE}).error,/no representable/);\n});\n",
  "tests/dimensiones-sensibilidad.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {readFileSync} from 'node:fs';\nimport {N} from '../herramientas/nucleo.mjs';\nconst {Expresion,Unidades,Estadistica}=N,datos=JSON.parse(readFileSync(new URL('fixtures/oraculos-dimensionales.json',import.meta.url),'utf8'));\nconst relativo=(a,b,t=2e-12)=>assert.ok(Number.isFinite(a) && Math.abs(a-b)<=Math.max(Number.MIN_VALUE,t*Math.abs(b)),`${a} != ${b}`);\ntest('24 conversiones simples, compuestas y con cero desplazado coinciden con Pint',()=>{\n for(const c of datos.conversiones){const r=Unidades.convierte(c.valor,c.origen,c.destino);assert.equal(r.error,undefined,JSON.stringify(c));if(Math.abs(c.esperado)<1e-12)assert.ok(Math.abs(r.valor-c.esperado)<1e-12);else relativo(r.valor,c.esperado,2e-10);}\n});\ntest('sensibilidades automáticas de fórmulas compuestas y escalas pequeñas coinciden con SymPy',()=>{\n for(const c of datos.derivadas){const e=Expresion.compila(c.texto);assert.equal(e.error,undefined,c.texto);relativo(e.evalua(c.valores),c.resultado,3e-12);for(const [n,d] of Object.entries(c.sensibilidades))relativo(Expresion.derivada(e,c.valores,n),d,3e-12);}\n});\ntest('GUM no pierde sensibilidad ante un offset grande y no perturba concentraciones pequeñas fuera del dominio',()=>{\n const a=Estadistica.propaga('1e12+x',{x:{valor:1,u:.1}});assert.equal(a.error,undefined);relativo(a.uc,.1);assert.equal(a.aportes[0].coeficiente,1);\n const b=Estadistica.propaga('sqrt(x)',{x:{valor:1e-14,u:1e-16}});assert.equal(b.error,undefined);relativo(b.aportes[0].coeficiente,5e6);relativo(b.uc,5e-10);\n});\ntest('puntos no diferenciables se rechazan y ramas iguales conservan derivadas válidas',()=>{\n for(const texto of ['abs(x)','sqrt(x)','min(x;-x)','max(x;-x)'])assert.ok(Estadistica.propaga(texto,{x:{valor:0,u:.1}}).error,texto);\n assert.equal(Expresion.derivada(Expresion.compila('min(x;x)'),{x:0},'x'),1);assert.equal(Expresion.derivada(Expresion.compila('x^0'),{x:0},'x'),0);\n assert.equal(Expresion.derivada(Expresion.compila('x^1'),{x:0},'x'),1);assert.equal(Expresion.derivada(Expresion.compila('x^2'),{x:0},'x'),0);\n});\ntest('números no representables y sensibilidades perdidas no se convierten en cero',()=>{\n for(const s of ['1e-999+x','1e999+x'])assert.ok(Expresion.compila(s).error);assert.equal(Expresion.compila('0e-999+x').evalua({x:1}),1);assert.ok(Estadistica.propaga('atan(x)',{x:{valor:1e200,u:1e100}}).error);assert.ok(Estadistica.propaga('x^-1',{x:{valor:1e200,u:1e100}}).error);assert.ok(Estadistica.propaga('exp(x)',{x:{valor:-750,u:1}}).error);\n const r=Estadistica.propaga('atan(x)',{x:{valor:1e155,u:1e155}});assert.equal(r.error,undefined);relativo(r.uc,1e-155,1e-10);\n});\ntest('propiedades del prototipo no se interpretan como funciones, constantes ni unidades',()=>{\n for(const t of ['constructor(1)','toString(1)','__proto__(1)'])assert.ok(Expresion.compila(t).error,t);\n const e=Expresion.compila('constructor+toString+__proto__');assert.deepEqual(e.variables,['constructor','toString','__proto__']);assert.equal(e.evalua(Object.fromEntries([['constructor',1],['toString',2],['__proto__',3]])),6);assert.throws(()=>e.evalua(Object.create({constructor:1,toString:2,__proto__:3})),/Falta/);\n for(const t of ['constructor','toString','__proto__','kconstructor'])assert.ok(Unidades.lee(t).error,t);\n});\ntest('unidades y conversiones desbordadas o demasiado pequeñas producen un error explicable',()=>{\n for(const t of ['Ym^100','ym^100','m^'+('9'.repeat(400))])assert.ok(Unidades.lee(t).error,t);\n for(const a of [[1e308,'Ym','m'],[1e-300,'ym','m'],['1','m','cm'],[Infinity,'m','cm']])assert.ok(Unidades.convierte(...a).error);\n});\ntest('equilibrio ideal conserva raíces representables y rechaza mezclas o concentraciones desbordadas',()=>{\n relativo(N.Ciencia.solubilidad(1e-10,1e200).valor,1e-210);relativo(N.Ciencia.solubilidad(1e308,0).valor,1e154);relativo(N.Ciencia.solubilidad(1,1e308).valor,1e-308);\n assert.ok(N.Ciencia.solubilidad(5e-324,1e300).error);assert.ok(N.Ciencia.fuerzaIonica([{c:1e308,z:10}]).error);assert.ok(N.Ciencia.mezcla([{masa:1e308,densidad:1},{masa:1e308,densidad:1}]).error);assert.ok(N.Ciencia.mezcla([{masa:5e-324,densidad:1e308}]).error);\n});\ntest('GUM conserva incertidumbres representables aunque sus cuadrados desborden o se pierdan',()=>{\n for(const u of [1e200,1e-200,1e-300]){const r=Estadistica.propaga('x',{x:{valor:0,u}});assert.equal(r.error,undefined);relativo(r.uc,u);assert.ok(!/NaN|Infinity/.test(r.redondeo.texto));assert.equal(r.aportes[0].porcentaje,100);}\n const r=Estadistica.propaga('x+y',{x:{valor:0,u:1e200},y:{valor:0,u:1e200}},[{a:'x',b:'y',rho:-1}]);assert.equal(r.error,undefined);assert.equal(r.uc,0);assert.equal(r.cruzados,null);assert.equal(r.cruzadosNormalizados,-2);assert.ok(!/NaN/.test(r.explicacion));\n const s=Estadistica.propaga('x+y',{x:{valor:0,u:1e200},y:{valor:0,u:1e200}},[{a:'x',b:'y',rho:-.999999999999}]);assert.equal(s.error,undefined);relativo(s.uc,1e200*Math.sqrt(2*(1-.999999999999)),1e-6);\n assert.ok(Estadistica.propaga('x',{x:{valor:0,u:1e308}}).error);\n});\ntest('redondeo científico y cifras no lanzan errores en los límites finitos',()=>{\n for(const [v,u] of [[1e-300,1e-301],[1e300,1e299],[0,5e-324],[1e-300,1e300]]){const r=Estadistica.redondeaConIncertidumbre(v,u);assert.equal(r.error,undefined);assert.ok(Number.isFinite(r.valor));assert.ok(Number.isFinite(r.u));assert.ok(!/NaN|Infinity/.test(r.texto));}\n assert.ok(Estadistica.redondeaConIncertidumbre(1,Number.MAX_VALUE).error);assert.equal(Estadistica.aCifras(1e-300,3),'1,00e-300');assert.equal(Estadistica.aCifras(1e300,3),'1,00e+300');assert.equal(Estadistica.aCifras(1,1000),'—');\n const r=Estadistica.redondeaConIncertidumbre(1234.567,9.99);assert.equal(r.texto,'1235 ± 10');\n});\ntest('Monte Carlo conserva dispersión grande o pequeña y rechaza falsos ceros por precisión',()=>{\n for(const u of [1e200,1e-200]){const r=N.Analisis.monteCarlo('x',[{nombre:'x',valor:0,u,distribucion:'normal'}],10000,1234);assert.equal(r.error,undefined);relativo(r.u,u,.03);assert.equal(r.histograma.reduce((a,x)=>a+x.cantidad,0),10000);}\n assert.match(N.Analisis.monteCarlo('1e12+x',[{nombre:'x',valor:0,u:1e-8,distribucion:'normal'}],1000,1234).error,/resolución numérica/);\n const cero=N.Analisis.monteCarlo('x-x',[{nombre:'x',valor:1,u:.1,distribucion:'normal'}],1000,1234);assert.equal(cero.error,undefined);assert.equal(cero.u,0);\n});\n",
  "tests/empaquetado.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {readFileSync, mkdirSync, writeFileSync, mkdtempSync, rmSync} from 'node:fs';\nimport {tmpdir} from 'node:os';\nimport {join, dirname, resolve, sep} from 'node:path';\nimport {execFileSync} from 'node:child_process';\n\ntest('el código descargable reconstruye el mismo HTML sin instalar dependencias', () => {\n  const fuente = JSON.parse(readFileSync(new URL('../public/source.json', import.meta.url), 'utf8'));\n  const carpeta = mkdtempSync(join(tmpdir(), 'methods-fuente-'));\n  try {\n    for (const [nombre, contenido] of Object.entries(fuente.files)) {\n      const destino = resolve(carpeta, nombre);\n      assert.ok(destino.startsWith(carpeta + sep), 'Ruta de fuente relativa');\n      mkdirSync(dirname(destino), {recursive: true}); writeFileSync(destino, contenido);\n    }\n    const entorno = {...process.env};\n    if (fuente.files['erlen-suite-catalog.json']) entorno.ERLEN_SUITE_CATALOG = 'erlen-suite-catalog.json';\n    else delete entorno.ERLEN_SUITE_CATALOG;\n    execFileSync(process.execPath, ['herramientas/build.mjs'], {cwd: carpeta, env: entorno, stdio: 'pipe'});\n    assert.deepEqual(readFileSync(join(carpeta, 'public/index.html')), readFileSync(new URL('../public/index.html', import.meta.url)));\n    const terceros = JSON.parse(readFileSync(join(carpeta, 'public/third-party.json'), 'utf8'));\n    assert.deepEqual(terceros.libraries.map(x=>x.name).sort(), ['papaparse','fuse.js','fflate','dexie','smiles-drawer','@citation-js/core','docx','katex','echarts','simple-statistics'].sort());\n    for (const biblioteca of terceros.libraries) assert.ok(readFileSync(join(carpeta, 'public/licenses', biblioteca.name.replaceAll('/', '-') + '-LICENSE.txt'), 'utf8').length > 100);\n  } finally { rmSync(carpeta, {recursive: true, force: true}); }\n});\n",
  "tests/fixtures/oraculos-biologia.json": "{\n  \"format\": \"erlen-methods-oraculos-biologia-v1\",\n  \"versiones\": {\n    \"biopython\": \"1.88\",\n    \"biotite\": \"1.7.1\"\n  },\n  \"fuenteCodigos\": \"NCBI Genetic Codes: https://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi\",\n  \"fasta\": {\n    \"texto\": \">ref_01 Descripción declarada\\nATGGCCAAATAA\\n>ref_02 Ambigüedad declarada\\nACGTRYSWKMBDHVN\\n\",\n    \"registros\": [\n      {\n        \"identificador\": \"ref_01\",\n        \"cabecera\": \"ref_01 Descripción declarada\",\n        \"secuencia\": \"ATGGCCAAATAA\"\n      },\n      {\n        \"identificador\": \"ref_02\",\n        \"cabecera\": \"ref_02 Ambigüedad declarada\",\n        \"secuencia\": \"ACGTRYSWKMBDHVN\"\n      }\n    ]\n  },\n  \"secuencias\": [\n    {\n      \"tipo\": \"ADN\",\n      \"secuencia\": \"ATGGCCAAATAA\",\n      \"complemento\": \"TTATTTGGCCAT\",\n      \"gcEquiprobable\": 33.33333333333333,\n      \"traducciones\": [\n        {\n          \"tabla\": 1,\n          \"marco\": 1,\n          \"secuencia\": \"MAK*\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": 2,\n          \"secuencia\": \"WPN\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": 3,\n          \"secuencia\": \"GQI\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": -1,\n          \"secuencia\": \"LFGH\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": -2,\n          \"secuencia\": \"YLA\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": -3,\n          \"secuencia\": \"IWP\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": 1,\n          \"secuencia\": \"MAK*\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": 2,\n          \"secuencia\": \"WPN\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": 3,\n          \"secuencia\": \"GQM\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": -1,\n          \"secuencia\": \"LFGH\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": -2,\n          \"secuencia\": \"YLA\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": -3,\n          \"secuencia\": \"IWP\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": 1,\n          \"secuencia\": \"MAK*\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": 2,\n          \"secuencia\": \"WPN\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": 3,\n          \"secuencia\": \"GQI\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": -1,\n          \"secuencia\": \"LFGH\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": -2,\n          \"secuencia\": \"YLA\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": -3,\n          \"secuencia\": \"IWP\",\n          \"resto\": 1\n        }\n      ],\n      \"complementoBiotite\": \"TTATTTGGCCAT\",\n      \"traduccionBiotite\": \"MAK*\"\n    },\n    {\n      \"tipo\": \"ADN\",\n      \"secuencia\": \"ACGTRYSWKMBDHVN\",\n      \"complemento\": \"NBDHVKMWSRYACGT\",\n      \"gcEquiprobable\": 50.0,\n      \"traducciones\": [\n        {\n          \"tabla\": 1,\n          \"marco\": 1,\n          \"secuencia\": \"TXXXX\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": 2,\n          \"secuencia\": \"RXXX\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": 3,\n          \"secuencia\": \"VXXX\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": -1,\n          \"secuencia\": \"XXXXR\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": -2,\n          \"secuencia\": \"XXXX\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": -3,\n          \"secuencia\": \"XXXT\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": 1,\n          \"secuencia\": \"TXXXX\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": 2,\n          \"secuencia\": \"RXXX\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": 3,\n          \"secuencia\": \"VXXX\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": -1,\n          \"secuencia\": \"XXXXR\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": -2,\n          \"secuencia\": \"XXXX\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": -3,\n          \"secuencia\": \"XXXT\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": 1,\n          \"secuencia\": \"TXXXX\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": 2,\n          \"secuencia\": \"RXXX\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": 3,\n          \"secuencia\": \"VXXX\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": -1,\n          \"secuencia\": \"XXXXR\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": -2,\n          \"secuencia\": \"XXXX\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": -3,\n          \"secuencia\": \"XXXT\",\n          \"resto\": 1\n        }\n      ]\n    },\n    {\n      \"tipo\": \"ARN\",\n      \"secuencia\": \"AUGGCCAAAUAA\",\n      \"complemento\": \"UUAUUUGGCCAU\",\n      \"gcEquiprobable\": 33.33333333333333,\n      \"traducciones\": [\n        {\n          \"tabla\": 1,\n          \"marco\": 1,\n          \"secuencia\": \"MAK*\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": 2,\n          \"secuencia\": \"WPN\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": 3,\n          \"secuencia\": \"GQI\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": -1,\n          \"secuencia\": \"LFGH\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": -2,\n          \"secuencia\": \"YLA\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": -3,\n          \"secuencia\": \"IWP\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": 1,\n          \"secuencia\": \"MAK*\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": 2,\n          \"secuencia\": \"WPN\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": 3,\n          \"secuencia\": \"GQM\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": -1,\n          \"secuencia\": \"LFGH\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": -2,\n          \"secuencia\": \"YLA\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": -3,\n          \"secuencia\": \"IWP\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": 1,\n          \"secuencia\": \"MAK*\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": 2,\n          \"secuencia\": \"WPN\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": 3,\n          \"secuencia\": \"GQI\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": -1,\n          \"secuencia\": \"LFGH\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": -2,\n          \"secuencia\": \"YLA\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": -3,\n          \"secuencia\": \"IWP\",\n          \"resto\": 1\n        }\n      ]\n    },\n    {\n      \"tipo\": \"ADN\",\n      \"secuencia\": \"RAYSARWTAGCNTARNNN\",\n      \"complemento\": \"NNNYTANGCTAWYTSRTY\",\n      \"gcEquiprobable\": 38.88888888888889,\n      \"traducciones\": [\n        {\n          \"tabla\": 1,\n          \"marco\": 1,\n          \"secuencia\": \"BZJA*X\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": 2,\n          \"secuencia\": \"XX*XX\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": 3,\n          \"secuencia\": \"XXSXX\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": -1,\n          \"secuencia\": \"XLXXXX\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": -2,\n          \"secuencia\": \"XXAXX\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 1,\n          \"marco\": -3,\n          \"secuencia\": \"XXLXX\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": 1,\n          \"secuencia\": \"BZXA*X\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": 2,\n          \"secuencia\": \"XX*XX\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": 3,\n          \"secuencia\": \"XXSXX\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": -1,\n          \"secuencia\": \"XLXXXX\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": -2,\n          \"secuencia\": \"XXAXX\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 2,\n          \"marco\": -3,\n          \"secuencia\": \"XXLXX\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": 1,\n          \"secuencia\": \"BZJA*X\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": 2,\n          \"secuencia\": \"XX*XX\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": 3,\n          \"secuencia\": \"XXSXX\",\n          \"resto\": 1\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": -1,\n          \"secuencia\": \"XLXXXX\",\n          \"resto\": 0\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": -2,\n          \"secuencia\": \"XXAXX\",\n          \"resto\": 2\n        },\n        {\n          \"tabla\": 11,\n          \"marco\": -3,\n          \"secuencia\": \"XXLXX\",\n          \"resto\": 1\n        }\n      ]\n    }\n  ],\n  \"tablas\": [\n    {\n      \"numero\": 1,\n      \"codones\": {\n        \"TTT\": \"F\",\n        \"TTC\": \"F\",\n        \"TTA\": \"L\",\n        \"TTG\": \"L\",\n        \"TCT\": \"S\",\n        \"TCC\": \"S\",\n        \"TCA\": \"S\",\n        \"TCG\": \"S\",\n        \"TAT\": \"Y\",\n        \"TAC\": \"Y\",\n        \"TAA\": \"*\",\n        \"TAG\": \"*\",\n        \"TGT\": \"C\",\n        \"TGC\": \"C\",\n        \"TGA\": \"*\",\n        \"TGG\": \"W\",\n        \"CTT\": \"L\",\n        \"CTC\": \"L\",\n        \"CTA\": \"L\",\n        \"CTG\": \"L\",\n        \"CCT\": \"P\",\n        \"CCC\": \"P\",\n        \"CCA\": \"P\",\n        \"CCG\": \"P\",\n        \"CAT\": \"H\",\n        \"CAC\": \"H\",\n        \"CAA\": \"Q\",\n        \"CAG\": \"Q\",\n        \"CGT\": \"R\",\n        \"CGC\": \"R\",\n        \"CGA\": \"R\",\n        \"CGG\": \"R\",\n        \"ATT\": \"I\",\n        \"ATC\": \"I\",\n        \"ATA\": \"I\",\n        \"ATG\": \"M\",\n        \"ACT\": \"T\",\n        \"ACC\": \"T\",\n        \"ACA\": \"T\",\n        \"ACG\": \"T\",\n        \"AAT\": \"N\",\n        \"AAC\": \"N\",\n        \"AAA\": \"K\",\n        \"AAG\": \"K\",\n        \"AGT\": \"S\",\n        \"AGC\": \"S\",\n        \"AGA\": \"R\",\n        \"AGG\": \"R\",\n        \"GTT\": \"V\",\n        \"GTC\": \"V\",\n        \"GTA\": \"V\",\n        \"GTG\": \"V\",\n        \"GCT\": \"A\",\n        \"GCC\": \"A\",\n        \"GCA\": \"A\",\n        \"GCG\": \"A\",\n        \"GAT\": \"D\",\n        \"GAC\": \"D\",\n        \"GAA\": \"E\",\n        \"GAG\": \"E\",\n        \"GGT\": \"G\",\n        \"GGC\": \"G\",\n        \"GGA\": \"G\",\n        \"GGG\": \"G\"\n      },\n      \"inicios\": [\n        \"TTG\",\n        \"CTG\",\n        \"ATG\"\n      ],\n      \"paradas\": [\n        \"TAA\",\n        \"TAG\",\n        \"TGA\"\n      ]\n    },\n    {\n      \"numero\": 2,\n      \"codones\": {\n        \"TTT\": \"F\",\n        \"TTC\": \"F\",\n        \"TTA\": \"L\",\n        \"TTG\": \"L\",\n        \"TCT\": \"S\",\n        \"TCC\": \"S\",\n        \"TCA\": \"S\",\n        \"TCG\": \"S\",\n        \"TAT\": \"Y\",\n        \"TAC\": \"Y\",\n        \"TAA\": \"*\",\n        \"TAG\": \"*\",\n        \"TGT\": \"C\",\n        \"TGC\": \"C\",\n        \"TGA\": \"W\",\n        \"TGG\": \"W\",\n        \"CTT\": \"L\",\n        \"CTC\": \"L\",\n        \"CTA\": \"L\",\n        \"CTG\": \"L\",\n        \"CCT\": \"P\",\n        \"CCC\": \"P\",\n        \"CCA\": \"P\",\n        \"CCG\": \"P\",\n        \"CAT\": \"H\",\n        \"CAC\": \"H\",\n        \"CAA\": \"Q\",\n        \"CAG\": \"Q\",\n        \"CGT\": \"R\",\n        \"CGC\": \"R\",\n        \"CGA\": \"R\",\n        \"CGG\": \"R\",\n        \"ATT\": \"I\",\n        \"ATC\": \"I\",\n        \"ATA\": \"M\",\n        \"ATG\": \"M\",\n        \"ACT\": \"T\",\n        \"ACC\": \"T\",\n        \"ACA\": \"T\",\n        \"ACG\": \"T\",\n        \"AAT\": \"N\",\n        \"AAC\": \"N\",\n        \"AAA\": \"K\",\n        \"AAG\": \"K\",\n        \"AGT\": \"S\",\n        \"AGC\": \"S\",\n        \"AGA\": \"*\",\n        \"AGG\": \"*\",\n        \"GTT\": \"V\",\n        \"GTC\": \"V\",\n        \"GTA\": \"V\",\n        \"GTG\": \"V\",\n        \"GCT\": \"A\",\n        \"GCC\": \"A\",\n        \"GCA\": \"A\",\n        \"GCG\": \"A\",\n        \"GAT\": \"D\",\n        \"GAC\": \"D\",\n        \"GAA\": \"E\",\n        \"GAG\": \"E\",\n        \"GGT\": \"G\",\n        \"GGC\": \"G\",\n        \"GGA\": \"G\",\n        \"GGG\": \"G\"\n      },\n      \"inicios\": [\n        \"ATT\",\n        \"ATC\",\n        \"ATA\",\n        \"ATG\",\n        \"GTG\"\n      ],\n      \"paradas\": [\n        \"TAA\",\n        \"TAG\",\n        \"AGA\",\n        \"AGG\"\n      ]\n    },\n    {\n      \"numero\": 11,\n      \"codones\": {\n        \"TTT\": \"F\",\n        \"TTC\": \"F\",\n        \"TTA\": \"L\",\n        \"TTG\": \"L\",\n        \"TCT\": \"S\",\n        \"TCC\": \"S\",\n        \"TCA\": \"S\",\n        \"TCG\": \"S\",\n        \"TAT\": \"Y\",\n        \"TAC\": \"Y\",\n        \"TAA\": \"*\",\n        \"TAG\": \"*\",\n        \"TGT\": \"C\",\n        \"TGC\": \"C\",\n        \"TGA\": \"*\",\n        \"TGG\": \"W\",\n        \"CTT\": \"L\",\n        \"CTC\": \"L\",\n        \"CTA\": \"L\",\n        \"CTG\": \"L\",\n        \"CCT\": \"P\",\n        \"CCC\": \"P\",\n        \"CCA\": \"P\",\n        \"CCG\": \"P\",\n        \"CAT\": \"H\",\n        \"CAC\": \"H\",\n        \"CAA\": \"Q\",\n        \"CAG\": \"Q\",\n        \"CGT\": \"R\",\n        \"CGC\": \"R\",\n        \"CGA\": \"R\",\n        \"CGG\": \"R\",\n        \"ATT\": \"I\",\n        \"ATC\": \"I\",\n        \"ATA\": \"I\",\n        \"ATG\": \"M\",\n        \"ACT\": \"T\",\n        \"ACC\": \"T\",\n        \"ACA\": \"T\",\n        \"ACG\": \"T\",\n        \"AAT\": \"N\",\n        \"AAC\": \"N\",\n        \"AAA\": \"K\",\n        \"AAG\": \"K\",\n        \"AGT\": \"S\",\n        \"AGC\": \"S\",\n        \"AGA\": \"R\",\n        \"AGG\": \"R\",\n        \"GTT\": \"V\",\n        \"GTC\": \"V\",\n        \"GTA\": \"V\",\n        \"GTG\": \"V\",\n        \"GCT\": \"A\",\n        \"GCC\": \"A\",\n        \"GCA\": \"A\",\n        \"GCG\": \"A\",\n        \"GAT\": \"D\",\n        \"GAC\": \"D\",\n        \"GAA\": \"E\",\n        \"GAG\": \"E\",\n        \"GGT\": \"G\",\n        \"GGC\": \"G\",\n        \"GGA\": \"G\",\n        \"GGG\": \"G\"\n      },\n      \"inicios\": [\n        \"TTG\",\n        \"CTG\",\n        \"ATT\",\n        \"ATC\",\n        \"ATA\",\n        \"ATG\",\n        \"GTG\"\n      ],\n      \"paradas\": [\n        \"TAA\",\n        \"TAG\",\n        \"TGA\"\n      ]\n    }\n  ],\n  \"cds\": [\n    {\n      \"tabla\": 1,\n      \"secuencia\": \"ATGGCCAAATAA\",\n      \"proteina\": \"MAK\"\n    },\n    {\n      \"tabla\": 2,\n      \"secuencia\": \"ATATGAAAATAG\",\n      \"proteina\": \"MWK\"\n    },\n    {\n      \"tabla\": 11,\n      \"secuencia\": \"GTGAAATAA\",\n      \"proteina\": \"MK\"\n    }\n  ]\n}\n",
  "tests/fixtures/oraculos-cientificos.json": "{\n  \"format\": \"erlen-methods-oraculos-v1\",\n  \"versiones\": {\n    \"numpy\": \"2.3.5\",\n    \"scipy\": \"1.17.0\",\n    \"statsmodels\": \"0.15.0\",\n    \"uncertainties\": \"3.2.3\",\n    \"chempy\": \"0.10.2\",\n    \"chemicals\": \"1.5.2\",\n    \"pymatgen\": \"2026.9.24\",\n    \"pint\": \"0.26.1\",\n    \"rocrate\": \"0.15.1\"\n  },\n  \"calibracion\": [\n    {\n      \"ponderada\": false,\n      \"datos\": [\n        {\n          \"x\": 0.0,\n          \"y\": 0.23,\n          \"u\": 0.08\n        },\n        {\n          \"x\": 1.0,\n          \"y\": 1.91,\n          \"u\": 0.13\n        },\n        {\n          \"x\": 2.0,\n          \"y\": 4.37,\n          \"u\": 0.17\n        },\n        {\n          \"x\": 4.0,\n          \"y\": 8.05,\n          \"u\": 0.21\n        },\n        {\n          \"x\": 6.0,\n          \"y\": 12.52,\n          \"u\": 0.3\n        },\n        {\n          \"x\": 9.0,\n          \"y\": 17.81,\n          \"u\": 0.4\n        }\n      ],\n      \"intercepto\": 0.21250000000000302,\n      \"pendiente\": 1.9824999999999993,\n      \"covarianza\": [\n        [\n          0.03583637354651169,\n          -0.005713045058139543\n        ],\n        [\n          -0.005713045058139543,\n          0.00155810319767442\n        ]\n      ],\n      \"r2\": 0.9984167784633723,\n      \"inversa\": {\n        \"y\": 7.2,\n        \"uNueva\": 0.2,\n        \"repeticiones\": 3,\n        \"valor\": 3.524590163934426,\n        \"bajo\": 3.2276165309366567,\n        \"alto\": 3.8206927742133314\n      },\n      \"palancas\": [\n        0.40116279069767463,\n        0.2906976744186048,\n        0.21511627906976755,\n        0.16860465116279075,\n        0.2616279069767442,\n        0.6627906976744186\n      ],\n      \"cook\": [\n        0.0019175459463729875,\n        0.26268489659900296,\n        0.07242536539560843,\n        0.011681656419483323,\n        0.4570334824570888,\n        1.958285792676132\n      ],\n      \"prediccion\": {\n        \"x\": 3.25,\n        \"uNueva\": 0.2,\n        \"valor\": 6.655625000000001,\n        \"intervalo\": 0.8974847344352758,\n        \"k\": 2.7764451051977934\n      }\n    },\n    {\n      \"ponderada\": true,\n      \"datos\": [\n        {\n          \"x\": 0.0,\n          \"y\": 0.23,\n          \"u\": 0.08\n        },\n        {\n          \"x\": 1.0,\n          \"y\": 1.91,\n          \"u\": 0.13\n        },\n        {\n          \"x\": 2.0,\n          \"y\": 4.37,\n          \"u\": 0.17\n        },\n        {\n          \"x\": 4.0,\n          \"y\": 8.05,\n          \"u\": 0.21\n        },\n        {\n          \"x\": 6.0,\n          \"y\": 12.52,\n          \"u\": 0.3\n        },\n        {\n          \"x\": 9.0,\n          \"y\": 17.81,\n          \"u\": 0.4\n        }\n      ],\n      \"intercepto\": 0.17954598710945846,\n      \"pendiente\": 1.9914024749611874,\n      \"covarianza\": [\n        [\n          0.0047548145634579465,\n          -0.001108740155451617\n        ],\n        [\n          -0.001108740155451617,\n          0.000940368734627825\n        ]\n      ],\n      \"r2\": 0.9980202410157054,\n      \"inversa\": {\n        \"y\": 7.2,\n        \"uNueva\": 0.2,\n        \"repeticiones\": 3,\n        \"valor\": 3.5253817855315117,\n        \"bajo\": 3.3815963218234164,\n        \"alto\": 3.673445751810099\n      },\n      \"palancas\": [\n        0.7429397755403039,\n        0.20578124184512048,\n        0.14122245260078814,\n        0.2478637885235876,\n        0.28114674605155826,\n        0.3810459954386417\n      ],\n      \"cook\": null,\n      \"prediccion\": {\n        \"x\": 3.25,\n        \"uNueva\": 0.2,\n        \"valor\": 6.651604030733317,\n        \"intervalo\": 0.4270772240150949,\n        \"k\": 1.959963984540054\n      }\n    }\n  ],\n  \"gum\": {\n    \"expresion\": \"a*b\",\n    \"entradas\": [\n      {\n        \"nombre\": \"a\",\n        \"valor\": 4,\n        \"u\": 0.2\n      },\n      {\n        \"nombre\": \"b\",\n        \"valor\": 2,\n        \"u\": 0.3\n      }\n    ],\n    \"correlaciones\": [\n      {\n        \"a\": \"a\",\n        \"b\": \"b\",\n        \"rho\": -0.4\n      }\n    ],\n    \"valor\": 8.0,\n    \"uc\": 1.1027239001672178\n  },\n  \"fuerzaIonica\": {\n    \"especies\": [\n      {\n        \"c\": 0.03,\n        \"z\": 2\n      },\n      {\n        \"c\": 0.06,\n        \"z\": -1\n      }\n    ],\n    \"valor\": 0.09\n  },\n  \"composicion\": [\n    {\n      \"formula\": \"Fe2(SO4)3\",\n      \"elementos\": {\n        \"Fe\": 2.0,\n        \"S\": 3.0,\n        \"O\": 12.0\n      }\n    },\n    {\n      \"formula\": \"Ca(OH)2\",\n      \"elementos\": {\n        \"Ca\": 1.0,\n        \"O\": 2.0,\n        \"H\": 2.0\n      }\n    },\n    {\n      \"formula\": \"C6H12O6\",\n      \"elementos\": {\n        \"C\": 6.0,\n        \"H\": 12.0,\n        \"O\": 6.0\n      }\n    },\n    {\n      \"formula\": \"Zn0.75Al0.25(OH)2\",\n      \"elementos\": {\n        \"Zn\": 0.75,\n        \"Al\": 0.25,\n        \"O\": 2.0,\n        \"H\": 2.0\n      }\n    }\n  ],\n  \"mezcla\": {\n    \"componentes\": [\n      {\n        \"masa\": 10,\n        \"densidad\": 0.8\n      },\n      {\n        \"masa\": 40,\n        \"densidad\": 1.1\n      }\n    ],\n    \"densidad\": 1.0232558139534884\n  }\n}\n",
  "tests/fixtures/oraculos-dimensionales.json": "{\n  \"format\": \"erlen-methods-oraculos-dimensionales-v1\",\n  \"versiones\": {\n    \"pint\": \"0.26.1\",\n    \"sympy\": \"1.14.0\"\n  },\n  \"conversiones\": [\n    {\n      \"valor\": 1,\n      \"origen\": \"g/cm^3\",\n      \"destino\": \"kg/m^3\",\n      \"esperado\": 999.9999999999999\n    },\n    {\n      \"valor\": 2.5,\n      \"origen\": \"mL\",\n      \"destino\": \"µL\",\n      \"esperado\": 2500.0\n    },\n    {\n      \"valor\": 20,\n      \"origen\": \"µM\",\n      \"destino\": \"mol/m^3\",\n      \"esperado\": 0.019999999999999997\n    },\n    {\n      \"valor\": 3,\n      \"origen\": \"kJ/mol\",\n      \"destino\": \"J/mol\",\n      \"esperado\": 3000.0\n    },\n    {\n      \"valor\": 4,\n      \"origen\": \"mol/(L·s)\",\n      \"destino\": \"mol/(m^3·h)\",\n      \"esperado\": 14399999.999999998\n    },\n    {\n      \"valor\": 10,\n      \"origen\": \"J/(g·K)\",\n      \"destino\": \"kJ/(kg·K)\",\n      \"esperado\": 10.0\n    },\n    {\n      \"valor\": 2,\n      \"origen\": \"m/s²\",\n      \"destino\": \"cm/min²\",\n      \"esperado\": 720000.0\n    },\n    {\n      \"valor\": 1,\n      \"origen\": \"atm\",\n      \"destino\": \"Pa\",\n      \"esperado\": 101325.0\n    },\n    {\n      \"valor\": 1,\n      \"origen\": \"Torr\",\n      \"destino\": \"Pa\",\n      \"esperado\": 133.32236842105263\n    },\n    {\n      \"valor\": 1,\n      \"origen\": \"mmHg\",\n      \"destino\": \"Pa\",\n      \"esperado\": 133.322387415\n    },\n    {\n      \"valor\": 100,\n      \"origen\": \"psi\",\n      \"destino\": \"bar\",\n      \"esperado\": 6.8947572931683645\n    },\n    {\n      \"valor\": 1,\n      \"origen\": \"eV\",\n      \"destino\": \"J\",\n      \"esperado\": 1.602176634e-19\n    },\n    {\n      \"valor\": 5,\n      \"origen\": \"cal\",\n      \"destino\": \"J\",\n      \"esperado\": 20.92\n    },\n    {\n      \"valor\": 1,\n      \"origen\": \"kWh\",\n      \"destino\": \"J\",\n      \"esperado\": 3600000.0\n    },\n    {\n      \"valor\": 1,\n      \"origen\": \"gal\",\n      \"destino\": \"mL\",\n      \"esperado\": 3785.411783999999\n    },\n    {\n      \"valor\": 1,\n      \"origen\": \"lb\",\n      \"destino\": \"g\",\n      \"esperado\": 453.5923700000001\n    },\n    {\n      \"valor\": 25,\n      \"origen\": \"°C\",\n      \"destino\": \"K\",\n      \"esperado\": 298.15\n    },\n    {\n      \"valor\": 32,\n      \"origen\": \"°F\",\n      \"destino\": \"°C\",\n      \"esperado\": 5.684341886080802e-14\n    },\n    {\n      \"valor\": -40,\n      \"origen\": \"°C\",\n      \"destino\": \"°F\",\n      \"esperado\": -40.000000000000064\n    },\n    {\n      \"valor\": 300,\n      \"origen\": \"K\",\n      \"destino\": \"°C\",\n      \"esperado\": 26.850000000000023\n    },\n    {\n      \"valor\": 1,\n      \"origen\": \"Å\",\n      \"destino\": \"nm\",\n      \"esperado\": 0.09999999999999999\n    },\n    {\n      \"valor\": 1,\n      \"origen\": \"Ω\",\n      \"destino\": \"mΩ\",\n      \"esperado\": 1000.0\n    },\n    {\n      \"valor\": 1,\n      \"origen\": \"ppm\",\n      \"destino\": \"%\",\n      \"esperado\": 9.999999999999999e-05\n    },\n    {\n      \"valor\": 1,\n      \"origen\": \"S\",\n      \"destino\": \"A/V\",\n      \"esperado\": 1.0\n    }\n  ],\n  \"derivadas\": [\n    {\n      \"texto\": \"log(x)\",\n      \"valores\": {\n        \"x\": 1e+308\n      },\n      \"resultado\": 308.0,\n      \"sensibilidades\": {\n        \"x\": 4.34294481903252e-309\n      }\n    },\n    {\n      \"texto\": \"atan(x)\",\n      \"valores\": {\n        \"x\": 1e+155\n      },\n      \"resultado\": 1.5707963267948966,\n      \"sensibilidades\": {\n        \"x\": 1e-310\n      }\n    },\n    {\n      \"texto\": \"1e12+x\",\n      \"valores\": {\n        \"x\": 1\n      },\n      \"resultado\": 1000000000001.0,\n      \"sensibilidades\": {\n        \"x\": 1.0\n      }\n    },\n    {\n      \"texto\": \"sqrt(x)\",\n      \"valores\": {\n        \"x\": 1e-14\n      },\n      \"resultado\": 1e-07,\n      \"sensibilidades\": {\n        \"x\": 5000000.0\n      }\n    },\n    {\n      \"texto\": \"ln(x)\",\n      \"valores\": {\n        \"x\": 1e-30\n      },\n      \"resultado\": -69.07755278982137,\n      \"sensibilidades\": {\n        \"x\": 9.999999999999999e+29\n      }\n    },\n    {\n      \"texto\": \"log(x)\",\n      \"valores\": {\n        \"x\": 1e-20\n      },\n      \"resultado\": -20.0,\n      \"sensibilidades\": {\n        \"x\": 4.342944819032519e+19\n      }\n    },\n    {\n      \"texto\": \"x^3\",\n      \"valores\": {\n        \"x\": 1e-14\n      },\n      \"resultado\": 1e-42,\n      \"sensibilidades\": {\n        \"x\": 3e-28\n      }\n    },\n    {\n      \"texto\": \"x^3\",\n      \"valores\": {\n        \"x\": -2\n      },\n      \"resultado\": -8.0,\n      \"sensibilidades\": {\n        \"x\": 12.0\n      }\n    },\n    {\n      \"texto\": \"x^y\",\n      \"valores\": {\n        \"x\": 2,\n        \"y\": 3\n      },\n      \"resultado\": 8.0,\n      \"sensibilidades\": {\n        \"x\": 12.0,\n        \"y\": 5.545177444479562\n      }\n    },\n    {\n      \"texto\": \"x/y\",\n      \"valores\": {\n        \"x\": 3e-09,\n        \"y\": 2e-12\n      },\n      \"resultado\": 1500.0,\n      \"sensibilidades\": {\n        \"x\": 500000000000.0,\n        \"y\": -750000000000000.0\n      }\n    },\n    {\n      \"texto\": \"exp(x)*sin(y)\",\n      \"valores\": {\n        \"x\": 1,\n        \"y\": 0.3\n      },\n      \"resultado\": 0.803307207709981,\n      \"sensibilidades\": {\n        \"x\": 0.803307207709981,\n        \"y\": 2.596873818453997\n      }\n    },\n    {\n      \"texto\": \"cos(x)+tan(y)\",\n      \"valores\": {\n        \"x\": 0.4,\n        \"y\": 0.6\n      },\n      \"resultado\": 1.6051978023445774,\n      \"sensibilidades\": {\n        \"x\": -0.3894183423086505,\n        \"y\": 1.4680431725279575\n      }\n    },\n    {\n      \"texto\": \"asin(x)+acos(y)+atan(z)\",\n      \"valores\": {\n        \"x\": 0.2,\n        \"y\": -0.4,\n        \"z\": 3\n      },\n      \"resultado\": 3.4327168660509697,\n      \"sensibilidades\": {\n        \"x\": 1.0206207261596576,\n        \"y\": -1.091089451179962,\n        \"z\": 0.1\n      }\n    },\n    {\n      \"texto\": \"abs(x)\",\n      \"valores\": {\n        \"x\": -3\n      },\n      \"resultado\": 3.0,\n      \"sensibilidades\": {\n        \"x\": -1.0\n      }\n    },\n    {\n      \"texto\": \"pow(x;3)+min(x;y)+max(x;y)\",\n      \"valores\": {\n        \"x\": 2,\n        \"y\": 5\n      },\n      \"resultado\": 15.0,\n      \"sensibilidades\": {\n        \"x\": 13.0,\n        \"y\": 1.0\n      }\n    },\n    {\n      \"texto\": \"sqrt(a*b)/c\",\n      \"valores\": {\n        \"a\": 2e-20,\n        \"b\": 3e-20,\n        \"c\": 5e-06\n      },\n      \"resultado\": 4.8989794855663555e-15,\n      \"sensibilidades\": {\n        \"a\": 122474.4871391589,\n        \"b\": 81649.65809277259,\n        \"c\": -9.79795897113271e-10\n      }\n    }\n  ],\n  \"alcance\": \"Pint contrasta unidades compatibles y temperaturas absolutas; SymPy deriva las fórmulas independientemente. No se incluyen singularidades como si fueran diferenciables.\"\n}\n",
  "tests/fixtures/oraculos-fluidos.json": "{\n  \"format\": \"erlen-methods-oraculos-fluidos-v1\",\n  \"versiones\": {\n    \"fluids\": \"1.3.1\"\n  },\n  \"funciones\": [\n    \"Reynolds\",\n    \"friction_factor\",\n    \"K_from_f\",\n    \"dP_from_K\"\n  ],\n  \"casos\": [\n    {\n      \"nombre\": \"microtubo\",\n      \"datos\": {\n        \"modo\": \"caudal\",\n        \"diametro\": 0.5,\n        \"longitud\": 20,\n        \"viscosidad\": 1,\n        \"densidad\": 998,\n        \"valor\": 1,\n        \"rugosidad\": null\n      },\n      \"reynolds\": 42.356435521523075,\n      \"velocidad\": 0.08488263631567751,\n      \"factorDarcy\": 1.5109864466163336,\n      \"presion\": 2172.9954896813447,\n      \"volumenML\": 0.03926990816987242,\n      \"tiempo\": 2.3561944901923453\n    },\n    {\n      \"nombre\": \"laminar\",\n      \"datos\": {\n        \"modo\": \"caudal\",\n        \"diametro\": 10,\n        \"longitud\": 100,\n        \"viscosidad\": 10,\n        \"densidad\": 1000,\n        \"valor\": 300,\n        \"rugosidad\": null\n      },\n      \"reynolds\": 63.66197723675811,\n      \"velocidad\": 0.06366197723675812,\n      \"factorDarcy\": 1.005309649148734,\n      \"presion\": 203.718327157626,\n      \"volumenML\": 78.53981633974485,\n      \"tiempo\": 15.70796326794897\n    },\n    {\n      \"nombre\": \"turbulento_liso\",\n      \"datos\": {\n        \"modo\": \"caudal\",\n        \"diametro\": 10,\n        \"longitud\": 100,\n        \"viscosidad\": 1,\n        \"densidad\": 1000,\n        \"valor\": 10000,\n        \"rugosidad\": 0\n      },\n      \"reynolds\": 21220.659078919376,\n      \"velocidad\": 2.1220659078919373,\n      \"factorDarcy\": 0.025510963441450037,\n      \"presion\": 5744.002248320274,\n      \"volumenML\": 78.53981633974485,\n      \"tiempo\": 0.4712388980384691\n    },\n    {\n      \"nombre\": \"turbulento_rugoso\",\n      \"datos\": {\n        \"modo\": \"caudal\",\n        \"diametro\": 10,\n        \"longitud\": 100,\n        \"viscosidad\": 1,\n        \"densidad\": 1000,\n        \"valor\": 10000,\n        \"rugosidad\": 50\n      },\n      \"reynolds\": 21220.659078919376,\n      \"velocidad\": 2.1220659078919373,\n      \"factorDarcy\": 0.034266225833039426,\n      \"presion\": 7715.321245242676,\n      \"volumenML\": 78.53981633974485,\n      \"tiempo\": 0.4712388980384691\n    },\n    {\n      \"nombre\": \"turbulento_desconocido\",\n      \"datos\": {\n        \"modo\": \"caudal\",\n        \"diametro\": 10,\n        \"longitud\": 100,\n        \"viscosidad\": 1,\n        \"densidad\": 1000,\n        \"valor\": 10000,\n        \"rugosidad\": null\n      },\n      \"reynolds\": 21220.659078919376,\n      \"velocidad\": 2.1220659078919373,\n      \"factorDarcy\": null,\n      \"presion\": null,\n      \"volumenML\": 78.53981633974485,\n      \"tiempo\": 0.4712388980384691\n    },\n    {\n      \"nombre\": \"transicion\",\n      \"datos\": {\n        \"modo\": \"caudal\",\n        \"diametro\": 10,\n        \"longitud\": 100,\n        \"viscosidad\": 1,\n        \"densidad\": 1000,\n        \"valor\": 1413.7166941154069,\n        \"rugosidad\": null\n      },\n      \"reynolds\": 2999.9999999999995,\n      \"velocidad\": 0.29999999999999993,\n      \"factorDarcy\": null,\n      \"presion\": null,\n      \"volumenML\": 78.53981633974485,\n      \"tiempo\": 3.3333333333333344\n    },\n    {\n      \"nombre\": \"sin_flujo\",\n      \"datos\": {\n        \"modo\": \"caudal\",\n        \"diametro\": 0.5,\n        \"longitud\": 20,\n        \"viscosidad\": 1,\n        \"densidad\": 998,\n        \"valor\": 0,\n        \"rugosidad\": null\n      },\n      \"reynolds\": 0.0,\n      \"velocidad\": 0.0,\n      \"factorDarcy\": null,\n      \"presion\": 0,\n      \"volumenML\": 0.03926990816987242,\n      \"tiempo\": null\n    }\n  ],\n  \"alcance\": \"Propiedades declaradas; fluids contrasta Reynolds, fricción Darcy y presión. En transición o con rugosidad turbulenta desconocida no se estima presión.\"\n}\n",
  "tests/fixtures/oraculos-flujo.json": "{\n  \"format\": \"erlen-methods-oraculos-flujo-v1\",\n  \"networkx\": \"3.7\",\n  \"casos\": [\n    {\n      \"nombre\": \"bifurcacion\",\n      \"tiempos\": {\n        \"a\": 10,\n        \"b\": 30,\n        \"c\": 20,\n        \"d\": 5\n      },\n      \"aristas\": [\n        [\n          \"a\",\n          \"b\"\n        ],\n        [\n          \"a\",\n          \"c\"\n        ],\n        [\n          \"b\",\n          \"d\"\n        ],\n        [\n          \"c\",\n          \"d\"\n        ]\n      ],\n      \"niveles\": {\n        \"a\": 0,\n        \"b\": 1,\n        \"c\": 1,\n        \"d\": 2\n      },\n      \"duracion\": 45,\n      \"camino\": [\n        \"inicio\",\n        \"a:inicio\",\n        \"a:fin\",\n        \"b:inicio\",\n        \"b:fin\",\n        \"d:inicio\",\n        \"d:fin\"\n      ]\n    },\n    {\n      \"nombre\": \"ramas_independientes\",\n      \"tiempos\": {\n        \"a\": 12,\n        \"b\": 7,\n        \"c\": 20,\n        \"d\": 3,\n        \"e\": 4\n      },\n      \"aristas\": [\n        [\n          \"a\",\n          \"b\"\n        ],\n        [\n          \"c\",\n          \"d\"\n        ],\n        [\n          \"b\",\n          \"e\"\n        ],\n        [\n          \"d\",\n          \"e\"\n        ]\n      ],\n      \"niveles\": {\n        \"a\": 0,\n        \"c\": 0,\n        \"b\": 1,\n        \"d\": 1,\n        \"e\": 2\n      },\n      \"duracion\": 27,\n      \"camino\": [\n        \"inicio\",\n        \"c:inicio\",\n        \"c:fin\",\n        \"d:inicio\",\n        \"d:fin\",\n        \"e:inicio\",\n        \"e:fin\"\n      ]\n    },\n    {\n      \"nombre\": \"tiempos_cero\",\n      \"tiempos\": {\n        \"a\": 0,\n        \"b\": 0,\n        \"c\": 0\n      },\n      \"aristas\": [\n        [\n          \"a\",\n          \"b\"\n        ],\n        [\n          \"b\",\n          \"c\"\n        ]\n      ],\n      \"niveles\": {\n        \"a\": 0,\n        \"b\": 1,\n        \"c\": 2\n      },\n      \"duracion\": 0,\n      \"camino\": [\n        \"inicio\"\n      ]\n    }\n  ]\n}\n",
  "tests/fluidos.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {readFileSync} from 'node:fs';\nimport {N} from '../herramientas/nucleo.mjs';\nconst datos=JSON.parse(readFileSync(new URL('fixtures/oraculos-fluidos.json',import.meta.url),'utf8'));\nconst relativo=(a,b)=>assert.ok(Number.isFinite(a) && Math.abs(a-b)<=2e-10*Math.max(Math.abs(b),1e-300),`${a} != ${b}`);\nfor(const caso of datos.casos)test('flujo '+caso.nombre+' coincide con fluids sin inventar propiedades',()=>{\n const r=N.Ciencia.flujoTubo(caso.datos);assert.equal(r.error,undefined);for(const k of ['reynolds','velocidad','factorDarcy','presion','volumenML','tiempo'])if(caso[k]==null)assert.equal(r[k],null,k);else if(caso[k]===0)assert.equal(r[k],0,k);else relativo(r[k],caso[k]);\n if(caso.nombre==='transicion')assert.equal(r.regimen,'transición');\n if(caso.nombre==='turbulento_desconocido')assert.match(r.explicacion,/Sin rugosidad/);\n});\ntest('inversión laminar recupera caudal y rechaza extrapolar a turbulencia',()=>{\n const caso=datos.casos[0],r=N.Ciencia.flujoTubo({...caso.datos,modo:'presion',valor:caso.presion});assert.equal(r.error,undefined);relativo(r.caudal,caso.datos.valor);assert.match(N.Ciencia.flujoTubo({...caso.datos,modo:'presion',valor:1e8}).error,/requiere régimen laminar/);\n});\ntest('tubo rechaza números incompletos, geometría no representable y rugosidad fuera de alcance',()=>{\n const d=datos.casos[2].datos;\n for(const cambia of [{diametro:null},{longitud:0},{viscosidad:-1},{densidad:Infinity},{valor:-1},{rugosidad:NaN},{rugosidad:1e6},{modo:'constructor'},{diametro:1e-300},{valor:1e308}])assert.ok(N.Ciencia.flujoTubo({...d,...cambia}).error,JSON.stringify(cambia));\n});\n",
  "tests/flujo.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {readFileSync} from 'node:fs';\nimport {N,cerca} from '../herramientas/nucleo.mjs';\nconst {Protocolo,Flujo,Ejecucion,Laboratorio}=N,oraculos=JSON.parse(readFileSync(new URL('fixtures/oraculos-flujo.json',import.meta.url),'utf8'));\nconst prepara=()=>Protocolo.nuevo({pasos:['a','b','c'].map(id=>Protocolo.nuevoPaso({id,texto:id,tiempo:10,unidadTiempo:'s'}))});\nfor(const caso of oraculos.casos)test('niveles y duración del flujo '+caso.nombre+' coinciden con NetworkX',()=>{\n const p=Protocolo.nuevo({flujo:{modo:'dependencias'},pasos:Object.entries(caso.tiempos).map(([id,tiempo])=>Protocolo.nuevoPaso({id,texto:id,tiempo,unidadTiempo:'s',dependeDe:caso.aristas.filter(a=>a[1]===id).map(a=>a[0])}))});\n const r=Flujo.analiza(p);assert.equal(r.error,undefined);assert.equal(r.duracion,caso.duracion);assert.deepEqual(Object.fromEntries(r.nodos.map(n=>[n.id,n.nivel])),caso.niveles);\n for(const a of r.aristas)assert.ok(r.orden.indexOf(a.origen)<r.orden.indexOf(a.destino));assert.ok(r.nodos.every(n=>n.holgura>=0));\n if(caso.nombre==='bifurcacion'){assert.deepEqual(r.criticos,['a','b','d']);assert.equal(r.nodos.find(x=>x.id==='c').holgura,10);}\n});\ntest('libre no inventa orden ni duración; secuencial respeta unidades y tiempos desconocidos',()=>{\n const p=prepara();assert.equal(Flujo.analiza(p).duracion,null);assert.deepEqual(Flujo.analiza(p).aristas,[]);\n p.flujo={modo:'secuencial'};p.pasos[0].tiempo=1;p.pasos[0].unidadTiempo='min';p.pasos[1].tiempo=1;p.pasos[1].unidadTiempo='h';assert.equal(Flujo.analiza(p).duracion,3670);\n p.pasos[1].tiempo=null;const r=Flujo.analiza(p);assert.equal(r.error,undefined);assert.equal(r.duracion,null);assert.equal(r.nodos[0].inicio,null);assert.match(r.explicacion,/Falta/);\n});\ntest('ciclos, identificadores repetidos, referencias ausentes y tiempos desbordados se rechazan',()=>{\n for(const cambia of [p=>{p.flujo={modo:'constructor'};},p=>{p.pasos[1].id='a';},p=>{p.pasos[0].dependeDe=['ausente'];},p=>{p.pasos[0].dependeDe=['a'];},p=>{p.pasos[0].dependeDe=['b','b'];},p=>{p.pasos[0].dependeDe=['c'];p.pasos[1].dependeDe=['a'];p.pasos[2].dependeDe=['b'];},p=>{p.pasos[0].tiempo=-1;},p=>{p.pasos[0].tiempo=1e308;p.pasos[0].unidadTiempo='h';}]){const p=prepara();p.flujo={modo:'dependencias'};cambia(p);assert.ok(Flujo.analiza(p).error);}\n const p=prepara();p.flujo={modo:'secuencial'};p.pasos.forEach(s=>{s.tiempo=1e308;});assert.ok(Flujo.analiza(p).error);\n});\ntest('conectar un ciclo y reordenar incompleto no modifican el protocolo original',()=>{\n const p=prepara(),r=Flujo.defineDependencias(p,'b',['a']);assert.equal(r.error,undefined);assert.deepEqual(p.pasos[1].dependeDe,[]);\n const q={...p,pasos:r.pasos,flujo:r.flujo};assert.ok(Flujo.defineDependencias(q,'a',['b']).error);\n assert.ok(Flujo.reordena(q,['a','b']).error);assert.ok(Flujo.reordena(q,['a','b','b']).error);\n const movido=Flujo.reordena(q,['c','b','a']);assert.equal(movido.error,undefined);assert.deepEqual(movido.pasos[1].dependeDe,['a']);assert.deepEqual(p.pasos.map(s=>s.id),['a','b','c']);\n});\ntest('ejecución cumple dependencias fijadas y no deja desmarcar un requisito de otro paso completo',()=>{\n const p=prepara();p.flujo={modo:'dependencias'};p.pasos[1].dependeDe=['a'];p.pasos[2].dependeDe=['a'];let l=Ejecucion.inicia(Ejecucion.nuevoLote(p,Laboratorio.nuevo())).lote;\n assert.ok(Ejecucion.paso(l,'b',true).error);l=Ejecucion.paso(l,'a',true).lote;l=Ejecucion.paso(l,'c',true).lote;\n assert.ok(Ejecucion.paso(l,'a',false).error);l=Ejecucion.paso(l,'b',true).lote;\n p.pasos[1].dependeDe=[];p.flujo.modo='libre';assert.deepEqual(l.revision.protocolo.pasos[1].dependeDe,['a']);assert.equal(l.revision.protocolo.flujo.modo,'dependencias');\n const r=Protocolo.sanea(JSON.parse(JSON.stringify(p)));assert.deepEqual(r.avisos,[]);assert.deepEqual(r.protocolo.flujo,p.flujo);assert.deepEqual(Protocolo.integridad(r.protocolo),[]);\n assert.equal(Ejecucion.termina(l).error,undefined);\n});\ntest('Mermaid exporta identificadores propios y escapa texto que podría convertirse en marcado',()=>{\n const p=prepara();p.pasos[0].texto='<img src=x> \"dato\" & origen';p.flujo={modo:'secuencial'};const r=Flujo.mermaid(p);assert.equal(r.error,undefined);assert.match(r.texto,/paso1 --> paso2/);assert.match(r.texto,/&lt;img/);assert.ok(!r.texto.includes('<img'));assert.match(r.texto,/&quot;dato&quot;/);\n});\n",
  "tests/fusion.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {N} from '../herramientas/nucleo.mjs';\nconst {Protocolo,Fusion,Versiones,Ejecucion,Laboratorio,Muestras}=N;\nconst copia=x=>JSON.parse(JSON.stringify(x));\nconst prepara=()=>{const base=Protocolo.nuevo({titulo:'Método',objetivo:'Base',pasos:[Protocolo.nuevoPaso({id:'a',texto:'Preparar'}),Protocolo.nuevoPaso({id:'b',texto:'Medir'})],reactivos:[Protocolo.nuevoReactivo({id:'r',nombre:'Reactivo',cantidad:1})]});return {base,local:copia(base),externo:copia(base)};};\ntest('cambios independientes se combinan y conservan identidad, ejecuciones y versiones locales',()=>{\n const {base,local,externo}=prepara();local.objetivo='Cambio local';externo.pasos[1].texto='Cambio externo';local.versiones=[Versiones.instantanea(base,'Base común')];local.lotes=[Ejecucion.nuevoLote(local,Laboratorio.nuevo())];externo.lotes=[Ejecucion.nuevoLote(externo,Laboratorio.nuevo())];\n // Los registros de la otra copia no se combinan ni sustituyen los locales.\n const plan=Fusion.compara(base,local,externo);assert.equal(plan.error,undefined);assert.equal(plan.conflictos.length,0);const r=Fusion.resuelve(plan);assert.equal(r.error,undefined);assert.equal(r.protocolo.objetivo,'Cambio local');assert.equal(r.protocolo.pasos[1].texto,'Cambio externo');assert.deepEqual(r.protocolo.lotes,local.lotes);assert.deepEqual(r.protocolo.versiones,local.versiones);assert.equal(local.pasos[1].texto,'Medir');assert.equal(r.protocolo.id,local.id);\n});\ntest('un elemento modificado por ambas copias exige elección completa y no mezcla cantidad con identidad',()=>{\n const {base,local,externo}=prepara();local.reactivos[0].cantidad=2;externo.reactivos[0].nombre='Otra identidad';const plan=Fusion.compara(base,local,externo);assert.equal(plan.conflictos.length,1);assert.ok(Fusion.resuelve(plan).error);\n const a=Fusion.resuelve(plan,{'reactivos/r':'local'});assert.equal(a.protocolo.reactivos[0].cantidad,2);assert.equal(a.protocolo.reactivos[0].nombre,'Reactivo');const b=Fusion.resuelve(plan,{'reactivos/r':'externo'});assert.equal(b.protocolo.reactivos[0].cantidad,1);assert.equal(b.protocolo.reactivos[0].nombre,'Otra identidad');assert.ok(Fusion.resuelve(plan,{'reactivos/r':'externo',inventado:'local'}).error);\n});\ntest('borrado frente a edición y adiciones con identidad compartida son conflictos explícitos',()=>{\n const {base,local,externo}=prepara();local.reactivos[0].cantidad=2;externo.reactivos=[];const plan=Fusion.compara(base,local,externo);assert.equal(plan.conflictos[0].externo,null);assert.equal(Fusion.resuelve(plan,{'reactivos/r':'local'}).protocolo.reactivos.length,1);assert.equal(Fusion.resuelve(plan,{'reactivos/r':'externo'}).protocolo.reactivos.length,0);\n local.seguridad=[Protocolo.nuevaNota({id:'n',texto:'Local'})];externo.seguridad=[Protocolo.nuevaNota({id:'n',texto:'Externa'})];assert.ok(Fusion.compara(base,local,externo).conflictos.some(x=>x.clave==='seguridad/n'));\n});\ntest('reordenaciones incompatibles se eligen y nuevas identidades conservan un orden explícito',()=>{\n const {base,local,externo}=prepara();base.pasos.push(Protocolo.nuevoPaso({id:'c',texto:'Cerrar'}));local.pasos=copia(base.pasos).reverse();externo.pasos=[copia(base.pasos[1]),copia(base.pasos[0]),copia(base.pasos[2])];const plan=Fusion.compara(base,local,externo);assert.ok(plan.conflictos.some(x=>x.clave==='$orden/pasos'));const r=Fusion.resuelve(plan,{'$orden/pasos':'externo'});assert.equal(r.error,undefined);assert.deepEqual(r.protocolo.pasos.map(x=>x.id),['b','a','c']);\n});\ntest('método cambiado durante la revisión bloquea aplicar; medidas locales nuevas permanecen completas',()=>{\n const {base,local,externo}=prepara();externo.objetivo='Cambio recibido';const plan=Fusion.compara(base,local,externo),actual=copia(local);actual.muestras=[Muestras.nueva({cantidad:10,unidad:'mL',estado:'disponible'})];actual.lotes=[Ejecucion.nuevoLote(actual,Laboratorio.nuevo())];const r=Fusion.resuelve(plan,{},actual);assert.equal(r.error,undefined);assert.deepEqual(r.protocolo.muestras,actual.muestras);assert.deepEqual(r.protocolo.lotes,actual.lotes);assert.equal(r.protocolo.objetivo,'Cambio recibido');actual.notas='Edición concurrente';assert.match(Fusion.resuelve(plan,{},actual).error,/cambió/);\n});\ntest('combinar enlaces crea un ciclo y se rechaza sin modificar ninguna copia',()=>{\n const {base,local,externo}=prepara();base.flujo={modo:'dependencias'};local.flujo=copia(base.flujo);externo.flujo=copia(base.flujo);local.pasos[1].dependeDe=['a'];externo.pasos[0].dependeDe=['b'];const plan=Fusion.compara(base,local,externo);assert.equal(plan.error,undefined);assert.equal(plan.conflictos.length,0);assert.match(Fusion.resuelve(plan).error,/ciclo/);assert.deepEqual(local.pasos[0].dependeDe,[]);assert.deepEqual(externo.pasos[1].dependeDe,[]);\n});\ntest('base de otro protocolo, identificadores repetidos y copias ilegibles no acreditan una combinación',()=>{\n const {base,local,externo}=prepara();externo.id='otro';assert.ok(Fusion.compara(base,local,externo).error);externo.id=local.id;externo.pasos[1].id='a';assert.ok(Fusion.compara(base,local,externo).error);assert.ok(Fusion.resuelve(null).error);\n});\ntest('huellas ignoran orden de propiedades y datos locales, pero conservan el orden del procedimiento',()=>{\n const {base,local}=prepara();const otro=Object.fromEntries(Object.entries(base).reverse());otro.modificado='otra fecha';otro.lotes=[{id:'datos excluidos'}];assert.equal(Fusion.huella(base),Fusion.huella(otro));local.pasos.reverse();assert.notEqual(Fusion.huella(base),Fusion.huella(local));const p=Fusion.paquete(base,local);assert.equal(p.error,undefined);assert.equal(p.datos.baseHuella,Fusion.huella(base));assert.equal(p.datos.format,'erlen-methods-cambios-v1');assert.equal(p.datos.metodo.lotes,undefined);for(const k of Fusion.LOCALES){assert.equal(p.datos.base[k],undefined);assert.equal(p.datos.metodo[k],undefined);}\n});\ntest('lectura de más de 50 versiones advierte antes de descartar y conserva el original recibido',()=>{\n const {base}=prepara();base.versiones=Array.from({length:51},()=>Versiones.instantanea({...base,versiones:[]},'Versión'));const r=Protocolo.sanea(base);assert.ok(r.avisos.some(x=>/50 versiones/.test(x)));assert.equal(r.protocolo.versiones.length,50);assert.equal(base.versiones.length,51);\n});\ntest('vista de conflicto compara sólo datos distintos y distingue ausencia de cero',()=>{\n const {base,local,externo}=prepara();local.reactivos[0].cantidad=0;externo.reactivos[0].cantidad=3;const r=Fusion.compara(base,local,externo),filas=Fusion.filasConflicto(r.conflictos[0]);assert.equal(filas.length,1);assert.equal(filas[0].campo,'cantidad');assert.deepEqual(filas[0].valores.map(x=>x.valor),[1,0,3]);externo.reactivos=[];const t=Fusion.filasConflicto(Fusion.compara(base,local,externo).conflictos[0]);assert.ok(t.some(x=>x.campo==='nombre'));assert.equal(t.find(x=>x.campo==='cantidad').valores[2].ausente,true);\n});\n",
  "tests/herramientas.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\n/* Las herramientas de ciencia general. Cada valor de referencia se obtuvo\n   aparte: tablas publicadas (t de Student, Grubbs), constantes exactas del SI\n   o cuentas a mano que se escriben junto a la prueba. */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {unzipSync, strFromU8} from 'fflate';\nimport {N, cerca} from '../herramientas/nucleo.mjs';\n\nconst {Expresion, Estadistica, Unidades, Quimica, Biologia, Seguridad, Versiones, Exportar, Laboratorio, Lotes, Protocolo, DATOS} = N;\nconst plantilla = id => Protocolo.sanea(JSON.parse(JSON.stringify(DATOS.plantillas[id].protocolo))).protocolo;\n\ntest('expresiones: precedencia, funciones, errores y derivada', () => {\n  const e = Expresion.compila('a*b^2/c + sqrt(d) - 2^-1');\n  assert.deepEqual(e.variables.sort(), ['a', 'b', 'c', 'd']);\n  cerca(e.evalua({a: 2, b: 3, c: 6, d: 16}), 2 * 9 / 6 + 4 - 0.5, 1e-15, 'evalúa');\n  cerca(Expresion.compila('2^3^2').evalua(), 512, 0, 'potencia asociativa a la derecha');\n  cerca(Expresion.compila('ln(e) + log(1000) + pow(2; 10)').evalua(), 1 + 3 + 1024, 1e-12, 'funciones');\n  cerca(Expresion.compila('0,5 * 4').evalua(), 2, 0, 'coma decimal');\n  assert.match(Expresion.compila('2 +').error, /incompleta/);\n  assert.match(Expresion.compila('foo(2)').error, /Función desconocida/);\n  assert.match(Expresion.compila('2 # 3').error, /Carácter inesperado/);\n  const f = Expresion.compila('x^3');\n  cerca(Expresion.derivada(f, {x: 2}, 'x'), 12, 1e-6, 'derivada de x³ en 2');\n});\n\ntest('t de Student y Grubbs contra tablas', () => {\n  cerca(Estadistica.tCuantil(0.975, 10), 2.228138852, 1e-8, 't 0,975 con 10 gl');\n  cerca(Estadistica.tCuantil(0.975, 2), 4.302652730, 1e-8, 't 0,975 con 2 gl');\n  cerca(Estadistica.tCuantil(0.995, 5), 4.032142984, 1e-8, 't 0,995 con 5 gl');\n  // Valor crítico de Grubbs (dos colas, α = 0,05) para n = 10: 2,290 en las tablas.\n  cerca(Estadistica.grubbs([1, 2, 3, 4, 5, 6, 7, 8, 9, 30]).critico, 2.290, 5e-4, 'G crítico n = 10');\n  assert.equal(Estadistica.grubbs([1, 2, 3, 4, 5, 6, 7, 8, 9, 30]).atipico, true);\n  assert.equal(Estadistica.grubbs([10.1, 10.2, 10.0, 10.3, 10.1]).atipico, false);\n  const r = Estadistica.replicas([10.1, 10.2, 10.0, 10.3, 10.1]);\n  cerca(r.media, 10.14, 1e-12, 'media');\n  cerca(r.desviacion, Math.sqrt(0.052 / 4), 1e-12, 'desviación estándar');\n  assert.match(Estadistica.replicas([1]).error, /dos réplicas/);\n});\n\ntest('calibración: recta exacta, LOD/LOQ y desconocido', () => {\n  const c = Estadistica.calibracion([0, 1, 2, 3, 4], [1, 3, 5, 7, 9]);\n  cerca(c.pendiente, 2, 1e-12, 'pendiente'); cerca(c.ordenada, 1, 1e-12, 'ordenada'); cerca(c.r2, 1, 1e-12, 'R²');\n  cerca(c.predice(6).x0, 2.5, 1e-12, 'x0');\n  // Con ruido: y = [2.1, 3.9, 6.2, 7.8, 10.1] sobre x = 1..5 → m = 1,99; b = 0,05; s(y/x) calculado a mano.\n  const d = Estadistica.calibracion([1, 2, 3, 4, 5], [2.1, 3.9, 6.2, 7.8, 10.1]);\n  cerca(d.pendiente, 1.99, 1e-12, 'm'); cerca(d.ordenada, 0.05, 1e-12, 'b');\n  const res = [2.1 - 2.04, 3.9 - 4.03, 6.2 - 6.02, 7.8 - 8.01, 10.1 - 10.0];\n  const syx = Math.sqrt(res.reduce((a, r) => a + r * r, 0) / 3);\n  cerca(d.syx, syx, 1e-10, 's(y/x)'); cerca(d.lod, 3.3 * syx / 1.99, 1e-10, 'LOD'); cerca(d.loq, 10 * syx / 1.99, 1e-10, 'LOQ');\n  assert.match(Estadistica.calibracion([1, 1, 1], [1, 2, 3]).error, /misma concentración/);\n});\n\ntest('carta de control I-MR y propagación GUM', () => {\n  const c = Estadistica.cartaControl([10, 12, 11, 13, 12, 30]);\n  const mr = (2 + 1 + 2 + 1 + 18) / 5, m = 88 / 6;\n  cerca(c.centro, m, 1e-12, 'centro'); cerca(c.lcs, m + 2.66 * mr, 1e-12, 'LCS');\n  const p = Estadistica.propaga('a*b', {a: {valor: 2, u: 0.1}, b: {valor: 3, u: 0.2}});\n  cerca(p.valor, 6, 1e-12, 'valor'); cerca(p.uc, 0.5, 1e-6, 'u_c = √(0,3² + 0,4²)');\n  cerca(p.U, 1.0, 1e-5, 'U con k = 2');\n  assert.equal(p.aportes.find(a => a.variable === 'b').porcentaje > 60, true);\n  assert.match(Estadistica.propaga('a/b', {a: {valor: 1, u: 0}}).error, /Falta el valor de «b»/);\n  assert.equal(Estadistica.redondeaConIncertidumbre(12.3456, 0.0234).texto, '12,346 ± 0,023');\n  assert.equal(Estadistica.cuentaCifras('0,00450').cifras, 3);\n  assert.equal(Estadistica.cuentaCifras('1500').ambiguo, true);\n  assert.equal(Estadistica.aCifras(0.0123456, 3), '0,0123');\n});\n\ntest('unidades con análisis dimensional y concentraciones', () => {\n  cerca(Unidades.convierte(1, 'atm', 'Torr').valor, 760, 1e-12, 'atm → Torr');\n  cerca(Unidades.convierte(25, '°C', '°F').valor, 77, 1e-12, '°C → °F');\n  cerca(Unidades.convierte(300, 'K', '°C').valor, 26.85, 1e-12, 'K → °C');\n  cerca(Unidades.convierte(1, 'kcal/mol', 'kJ/mol').valor, 4.184, 1e-12, 'kcal → kJ');\n  cerca(Unidades.convierte(1, 'g/cm^3', 'kg/m³').valor, 1000, 1e-12, 'densidad');\n  cerca(Unidades.convierte(2, 'mM', 'µmol/mL').valor, 2, 1e-12, 'mM = µmol/mL');\n  cerca(Unidades.convierte(1, 'psi', 'kPa').valor, 6.894757293168361, 1e-12, 'psi');\n  assert.match(Unidades.convierte(1, 'm', 's').error, /No son la misma magnitud/);\n  assert.match(Unidades.convierte(1, 'J/(g·°C)', 'J/(g·K)').error, /usa K/);\n  // NaCl 1 mol/L, ρ = 1,0369 g/mL: w = 58,44/1036,9.\n  const c = Unidades.concentraciones({masaMolar: 58.44, densidad: 1.0369, desde: 'molaridad', valor: 1});\n  cerca(c.w, 58.44 / 1036.9, 1e-12, 'w'); cerca(c.molalidad, 1000 * (58.44 / 1036.9) / ((1 - 58.44 / 1036.9) * 58.44), 1e-12, 'molalidad');\n  const ida = Unidades.concentraciones({masaMolar: 98.079, densidad: 1.84, desde: 'pmm', valor: 96, equivalentes: 2});\n  const vuelta = Unidades.concentraciones({masaMolar: 98.079, densidad: 1.84, desde: 'normalidad', valor: ida.normalidad, equivalentes: 2});\n  cerca(vuelta.pmm, 96, 1e-10, 'ida y vuelta por normalidad');\n  assert.match(Unidades.concentraciones({masaMolar: 58.44, densidad: 1, desde: 'molaridad', valor: 100}).error, /más soluto/);\n});\n\ntest('balanceo, reactivo limitante y gases', () => {\n  assert.equal(Quimica.balancea('C3H8 + O2 -> CO2 + H2O').texto, 'C3H8 + 5 O2 → 3 CO2 + 4 H2O');\n  assert.equal(Quimica.balancea('KMnO4 + HCl -> KCl + MnCl2 + Cl2 + H2O').texto, '2 KMnO4 + 16 HCl → 2 KCl + 2 MnCl2 + 5 Cl2 + 8 H2O');\n  assert.equal(Quimica.balancea('MnO4^- + Fe^2+ + H^+ -> Mn^2+ + Fe^3+ + H2O').texto, 'MnO4^- + 5 Fe^2+ + 8 H^+ → Mn^2+ + 5 Fe^3+ + 4 H2O');\n  assert.match(Quimica.balancea('H2 + O2 -> H2O2 + H2O').error, /más de un balanceo/);\n  assert.match(Quimica.balancea('Na + Cl2 -> KCl').error, /solo aparece/);\n  const l = Quimica.limitante('H2 + O2 -> H2O', [{masa: 4}, {masa: 32}]);\n  assert.equal(l.limitante, 'H2');\n  cerca(l.productos[0].masa, 4 / 2.016 * 18.015, 1e-9, 'agua máxima');\n  const g = Quimica.gasIdeal({P: 1.01325, n: 1, T: 273.15});\n  cerca(g.valor, 22.414, 2e-5, 'volumen molar');\n  const v = Quimica.vanDerWaals({a: 3.658, b: 0.04286, n: 1, T: 300, V: 1});\n  cerca(v.P, 0.08314462618 * 300 / (1 - 0.04286) - 3.658, 1e-12, 'P de van der Waals');\n  const w = Quimica.vanDerWaals({a: 3.658, b: 0.04286, n: 1, T: 300, P: v.P});\n  cerca(w.V, 1, 1e-8, 'V por Newton');\n});\n\ntest('tampones: van\\'t Hoff y Davies; radiactividad; centrífuga', () => {\n  const t = DATOS.tampones.tampones.tris;\n  const pk37 = t.pKa + 47450 / (Math.LN10 * 8.314462618) * (1 / 310.15 - 1 / 298.15);\n  cerca(Quimica.pKaAparente(t, 37, 0).pKa, pk37, 1e-12, 'Tris a 37 °C, I = 0');\n  cerca(Quimica.aDavies(25), 0.5100, 2e-3, 'A de Davies a 25 °C');\n  const b = Quimica.tampon({tampon: 'acetato', pH: 4.756, concentracion: 0.1, volumen: 1000, temperatura: 25, fuerzaIonica: 1e-12});\n  cerca(b.fraccionBase, 0.5, 1e-4, 'pH = pKa → mitad y mitad');\n  const a = Quimica.tampon({tampon: 'acetato', pH: 4.756, concentracion: 0.1, volumen: 1000, temperatura: 25});\n  assert.ok(a.pKaAparente < 4.756, 'la fuerza iónica baja el pKa aparente de un ácido neutro');\n  assert.match(Quimica.tampon({tampon: 'tris', pH: 5, concentracion: 0.05, volumen: 100}).explicacion, /capacidad amortiguadora es baja/);\n  cerca(Quimica.decaimiento({actividad: 100, semivida: 10, unidadSemivida: 'd', tiempo: 20, unidadTiempo: 'd'}).actividad, 25, 1e-12, 'dos semividas');\n  cerca(Quimica.atenuacion({hvl: 0.5, espesor: 1.5}).fraccion, 0.125, 1e-12, 'tres capas hemirreductoras');\n  cerca(Quimica.centrifuga({radio: 10, rpm: 10000}).rcf, 10 * 1e8 * Math.pow(2 * Math.PI / 60, 2) / 100 / 9.80665, 1e-9, 'RCF');\n  cerca(Quimica.centrifuga({radio: 10, rcf: 11182.4}).rpm, 10000, 1e-3, 'rpm');\n});\n\ntest('biología: diluciones, placa, células, PCR, ácidos nucleicos y recetas', () => {\n  const d = Biologia.dilucionesSeriadas({concentracion: 1000, factor: 10, pasos: 3, volumen: 900});\n  cerca(d.transferencia, 100, 1e-12, 'transferencia'); cerca(d.tubos[2].concentracion, 1, 1e-12, 'último tubo');\n  const p = Biologia.placa({formato: 96, blancos: 2, patrones: 6, muestras: 10, replicas: 3});\n  assert.equal(p.usados, 2 + 18 + 30);\n  assert.equal(p.pozos[0][0].pozo, 'A1'); assert.equal(p.pozos[0][2].etiqueta, 'S1');\n  assert.match(Biologia.placa({formato: 96, muestras: 40, replicas: 3}).error, /120 pozos/);\n  const c = Biologia.conteoCelular({conteos: [50, 60, 55, 45], dilucion: 2, muertas: 10, celulasDeseadas: 1e5, volumenFinal: 2});\n  cerca(c.concentracion, 52.5 * 2 * 1e4, 1e-9, 'células/mL'); cerca(c.viabilidad, 210 / 220 * 100, 1e-9, 'viabilidad');\n  cerca(c.volumenSuspension, 1e5 / 1.05e6 * 1000, 1e-9, 'µL de suspensión');\n  const m = Biologia.mezclaPCR({volumenReaccion: 20, reacciones: 10, exceso: 10, volumenMolde: 2,\n    componentes: [{nombre: 'Tampón 10×', stock: 10, final: 1}, {nombre: 'dNTP', stock: 10, final: 0.2}, {nombre: 'Polimerasa', volumen: 0.2}]});\n  cerca(m.componentes[0].porReaccion, 2, 1e-12, 'tampón'); cerca(m.componentes[1].porReaccion, 0.4, 1e-12, 'dNTP');\n  cerca(m.componentes[3].porReaccion, 20 - 2 - 0.4 - 0.2 - 2, 1e-12, 'agua'); cerca(m.componentes[0].total, 2 * 11, 1e-12, 'total con exceso');\n  const a = Biologia.acidosNucleicos({tipo: 'dsDNA', a260: 0.5, a280: 0.27, dilucion: 10, longitud: 1000, masa: 1000});\n  cerca(a.concentracion, 250, 1e-12, 'ng/µL'); cerca(a.masaMolar, 1000 * 617.96 + 36.04, 1e-9, 'M'); cerca(a.pmol, 1000 / (617996.04) * 1000, 1e-12, 'pmol');\n  const r = Biologia.receta({volumen: 500, componentes: [{nombre: 'NaCl', formula: 'NaCl', concentracion: 150, unidad: 'mM'}, {nombre: 'Tris 1 M', concentracion: 20, unidad: 'mM', stock: 1000}]});\n  cerca(r.componentes[0].masa, 0.075 * (22.990 + 35.45), 1e-12, 'NaCl'); cerca(r.componentes[1].volumen, 10, 1e-12, 'mL de Tris 1 M');\n});\n\ntest('seguridad: códigos H/P, pictogramas, incompatibilidades, residuos y costo', () => {\n  const c = Seguridad.leeCodigos('H302, H314; P280 H999 EUH031 H360FD');\n  assert.deepEqual(c.h, ['H302', 'H314', 'EUH031', 'H360']); assert.deepEqual(c.p, ['P280']); assert.deepEqual(c.desconocidos, ['H999']);\n  assert.deepEqual(Seguridad.pictogramas(['H301', 'H302']).map(x => x.codigo), ['GHS06'], 'la calavera excluye la exclamación');\n  assert.deepEqual(Seguridad.pictogramas(['H225', 'H319']).map(x => x.codigo), ['GHS02', 'GHS07']);\n  const p = Protocolo.nuevo({reactivos: [\n    Protocolo.nuevoReactivo({nombre: 'Nitrato de amonio', formula: 'NH4NO3', ghs: ['H272']}),\n    Protocolo.nuevoReactivo({nombre: 'Etanol', formula: 'C2H5OH', ghs: ['H225'], rol: 'disolvente'}),\n    Protocolo.nuevoReactivo({nombre: 'HCl', formula: 'HCl', clases: ['acido']}),\n    Protocolo.nuevoReactivo({nombre: 'Cianuro de sodio', formula: 'NaCN', ghs: ['EUH032']})],\n    pasos: [Protocolo.nuevoPaso({texto: 'Calentar', temperatura: 70})]});\n  const inc = Seguridad.incompatibilidades(p).map(a => a.texto).join(' ');\n  assert.match(inc, /incendio o explosión/); assert.match(inc, /gases tóxicos/); assert.match(inc, /nunca con llama/);\n  assert.equal(Seguridad.sugiereResiduo(Protocolo.nuevoReactivo({formula: 'CH2Cl2', rol: 'disolvente'})), 'organicoHalogenado');\n  assert.equal(Seguridad.sugiereResiduo(Protocolo.nuevoReactivo({formula: 'CuSO4'})), 'acuosoMetales');\n  const q = Protocolo.nuevo({escala: 2, reactivos: [Protocolo.nuevoReactivo({formula: 'NaCl', cantidad: 5, unidad: 'g', precio: 0.5, unidadPrecio: 'g'}),\n    Protocolo.nuevoReactivo({formula: 'C2H5OH', cantidad: 10, unidad: 'mL', precio: 20, unidadPrecio: 'L'})]});\n  cerca(Seguridad.costo(q).total, 5 * 2 * 0.5 + 0.02 * 20, 1e-12, 'costo con escala y unidades');\n});\n\ntest('versiones: las diferencias se dicen por elemento, no por posición', () => {\n  const a = plantilla('hdl-znal');\n  const v = Versiones.instantanea(a, 'original');\n  const b = JSON.parse(JSON.stringify(a));\n  b.pasos[2].ph = 9.5;\n  b.pasos.reverse();\n  b.reactivos.push(Protocolo.nuevoReactivo({nombre: 'Urea'}));\n  const d = Versiones.diferencias(v.protocolo, b).map(x => x.texto).join(' | ');\n  assert.match(d, /pH 10 → 9,5/); assert.match(d, /Se añadió Urea/); assert.match(d, /pasó a ser el/);\n  assert.equal(v.protocolo.lotes, undefined);\n});\n\ntest('exportar: LaTeX, .docx válido, factores para DoE y CSV', () => {\n  const p = plantilla('hdl-znal');\n  const tex = Exportar.latex(p, {version: '0.2.0'});\n  assert.match(tex, /\\\\ce\\{Zn\\(NO3\\)2\\.6H2O\\}/); assert.match(tex, /\\\\usepackage\\[version=4\\]\\{mhchem\\}/); assert.match(tex, /98 \\\\%/);\n  assert.doesNotMatch(tex, /[₀-₉]/);\n  const z = unzipSync(Exportar.docx(p, {version: '0.2.0'}));\n  assert.ok(z['word/document.xml'] && z['[Content_Types].xml'] && z['word/styles.xml']);\n  assert.match(strFromU8(z['word/document.xml']), /Síntesis de HDL Zn-Al-CO₃/);\n  cerca(Exportar.crc32(new TextEncoder().encode('123456789')), 0xCBF43926, 0, 'CRC-32 de referencia');\n  const f = Exportar.factoresDoE(p, [{pasoId: 's3', campo: 'ph', bajo: 8, alto: 10}, {pasoId: 's4', campo: 'temperatura', bajo: 80, alto: 40}, {pasoId: 's4', campo: 'tiempo', bajo: 5, alto: 5}]);\n  assert.equal(f.archivo.format, 'erlen-doe-factores-v1');\n  assert.equal(f.archivo.factors.length, 2); assert.equal(f.archivo.factors[1].low, 40); assert.equal(f.avisos.length, 1);\n  const csv = Exportar.leeCSV('corrida;pH;\"rend, %\"\\n1;8;\"71,5\"\\n2;10;80\\n');\n  assert.deepEqual(csv.columnas, ['corrida', 'pH', 'rend, %']);\n  const l = Exportar.lotesDesdeCSV(p, csv, {codigo: 0, resultado: 2, parametros: [{col: 1, pasoId: 's3', campo: 'ph'}]});\n  assert.equal(l.lotes.length, 2); assert.equal(l.lotes[0].resultado, 71.5); assert.equal(l.lotes[1].parametros.s3.ph, 10);\n});\n\ntest('exportar: paquete .eln (RO-Crate 1.2), estructura, sumas SHA-256 y lotes', async () => {\n\n  const p = Protocolo.sanea({\n    titulo: 'Extracción y purificación',\n    objetivo: 'Separar componentes activos con reflujo',\n    autores: 'Marie Curie',\n    reactivos: [\n      {nombre: 'Etanol', formula: 'C2H6O', cantidad: 100, unidad: 'mL'},\n      {nombre: 'Agua', formula: 'H2O', cantidad: 50, unidad: 'mL'},\n      {nombre: 'Muestra vegetal', formula: '', cantidad: 10, unidad: 'g'}\n    ],\n    lotes: [\n      {codigo: 'L1', factor: 1, masaObtenida: 8.5, resultado: 95.2},\n      {codigo: 'L2', factor: 1.5, masaObtenida: 12.8, resultado: 94.8}\n    ]\n  }).protocolo;\n\n  const fechaFija = '2026-09-30T12:00:00.000Z';\n  const bytes1 = await Exportar.eln(p, {fecha: fechaFija});\n  const bytes2 = await Exportar.eln(p, {fecha: fechaFija});\n  assert.deepEqual(bytes1, bytes2, 'el ZIP de .eln es determinista');\n\n  const entradas = unzipSync(bytes1);\n  const nombresEntradas = Object.keys(entradas);\n\n  const carpetasRaiz = new Set(nombresEntradas.map(k => k.split('/')[0] + '/'));\n  assert.equal(carpetasRaiz.size, 1);\n  const slug = 'extraccion-y-purificacion';\n  const root = slug + '.eln/';\n  assert.ok(carpetasRaiz.has(root));\n\n  const metaBytes = entradas[root + 'ro-crate-metadata.json'];\n  assert.ok(metaBytes, 'ro-crate-metadata.json existe');\n  const crate = JSON.parse(new TextDecoder().decode(metaBytes));\n  assert.equal(crate['@context'], 'https://w3id.org/ro/crate/1.2/context');\n  const rootDataset = crate['@graph'].find(n => n['@id'] === './');\n  assert.deepEqual(rootDataset.hasPart, [{'@id': './' + slug + '/'}], 'la raíz enumera solo el Dataset del experimento');\n  const desc = crate['@graph'].find(n => n['@id'] === 'ro-crate-metadata.json');\n  assert.ok(desc);\n  assert.equal(desc['@type'], 'CreativeWork');\n  assert.equal(desc.about['@id'], './');\n  assert.equal(desc.conformsTo['@id'], 'https://w3id.org/ro/crate/1.2');\n\n  for (const n of crate['@graph']) {\n    if (n.hasPart) {\n      for (const item of n.hasPart) {\n        const id = item['@id'];\n        const rutaZip = root + id.replace(/^\\.\\//, '');\n        assert.ok(entradas[rutaZip] !== undefined, `hasPart id \"${id}\" resuelto como \"${rutaZip}\" existe en el ZIP`);\n      }\n    }\n  }\n\n  const nodosFile = crate['@graph'].filter(n => n['@type'] === 'File');\n  assert.ok(nodosFile.length >= 3);\n  for (const f of nodosFile) {\n    const rutaZip = root + f['@id'].replace(/^\\.\\//, '');\n    const bytesArchivo = entradas[rutaZip];\n    assert.ok(bytesArchivo, `archivo ${rutaZip} presente en ZIP`);\n    assert.equal(f.contentSize, String(bytesArchivo.length));\n    const digestBuf = await crypto.subtle.digest('SHA-256', bytesArchivo);\n    const digestHex = Array.from(new Uint8Array(digestBuf)).map(b => b.toString(16).padStart(2, '0')).join('');\n    assert.equal(f.sha256, digestHex);\n  }\n\n  const expDataset = crate['@graph'].find(n => n['@id'] === './' + slug + '/');\n  assert.ok(expDataset);\n  assert.equal(expDataset['@type'], 'Dataset');\n  assert.equal(expDataset.name, p.titulo);\n  assert.equal(expDataset.author['@id'], '#author');\n  const autorNodo = crate['@graph'].find(n => n['@id'] === '#author');\n  assert.ok(autorNodo);\n  assert.equal(autorNodo['@type'], 'Person');\n  assert.equal(autorNodo.name, 'Marie Curie');\n\n  assert.ok(entradas[root + slug + '/batches.csv']);\n  assert.ok(expDataset.hasPart.some(x => x['@id'] === './' + slug + '/batches.csv'));\n\n  const protoJsonBytes = entradas[root + slug + '/protocol.json'];\n  const pRestaurado = JSON.parse(new TextDecoder().decode(protoJsonBytes));\n  assert.deepEqual(pRestaurado, p);\n\n  const pSinAutoresSinLotes = JSON.parse(JSON.stringify(p));\n  pSinAutoresSinLotes.autores = '';\n  pSinAutoresSinLotes.lotes = [];\n  const bytesSinLotes = await Exportar.eln(pSinAutoresSinLotes, {fecha: fechaFija});\n  const entradas2 = unzipSync(bytesSinLotes);\n  const crate2 = JSON.parse(new TextDecoder().decode(entradas2[root + 'ro-crate-metadata.json']));\n  const expDataset2 = crate2['@graph'].find(n => n['@id'] === './' + slug + '/');\n\n  assert.equal(expDataset2.author, undefined, 'sin autores no hay propiedad author');\n  assert.equal(crate2['@graph'].find(n => n['@id'] === '#author'), undefined, 'sin autores no hay nodo #author');\n  assert.ok(!expDataset2.hasPart.some(x => x['@id'].includes('batches.csv')), 'sin lotes no hay batches.csv en hasPart');\n  assert.equal(crate2['@graph'].find(n => n['@id'] === './' + slug + '/batches.csv'), undefined, 'sin lotes no hay nodo batches.csv');\n  assert.equal(entradas2[root + slug + '/batches.csv'], undefined, 'sin lotes no hay archivo batches.csv en ZIP');\n});\n\ntest('extracción de un párrafo experimental y condiciones de Lens', () => {\n  const t = 'Zn(NO3)2·6H2O (2.97 g, 10 mmol) was dissolved in 50 mL of water. Then, 1.20 g of NaOH (97%) was added dropwise at 25 °C under N2. The suspension was aged at 65 °C for 18 h with stirring at 500 rpm, keeping pH 10.';\n  const e = Exportar.extrae(t);\n  assert.equal(e.pasos.length, 3);\n  const naoh = e.reactivos.find(r => r.formula === 'NaOH');\n  assert.ok(naoh); assert.equal(naoh.cantidad, 1.2); assert.equal(naoh.unidad, 'g'); assert.equal(naoh.pureza, 97);\n  assert.equal(e.pasos[1].temperatura, 25); assert.equal(e.pasos[1].atmosfera, 'N2');\n  assert.equal(e.pasos[2].temperatura, 65); assert.equal(e.pasos[2].tiempo, 18); assert.equal(e.pasos[2].unidadTiempo, 'h'); assert.equal(e.pasos[2].agitacion, 500); assert.equal(e.pasos[2].ph, 10);\n  const lens = Exportar.literaturaDesdeLens({format: 'erlen-doe-factores-v1', factors: [{name: 'pH', unit: '', low: 8, high: 10, provenance: [{value: 9, cite: 'Autor (2020)', page: 3, doi: '10.1/x'}]}]});\n  assert.equal(lens.literatura[0].alto, 10); assert.equal(lens.literatura[0].fuentes[0].cita, 'Autor (2020)');\n  assert.match(Exportar.literaturaDesdeLens({format: 'otro'}).error, /erlen-doe-factores-v1/);\n});\n\ntest('laboratorio: existencias, caducidad, calibraciones y lista previa', () => {\n  const p = plantilla('hdl-znal');\n  const lab = Laboratorio.sanea({inventario: [\n    {nombre: 'Nitrato de zinc', formula: 'Zn(NO3)2*6H2O', cantidad: 500, unidad: 'g', ubicacion: 'Estante A'},\n    {nombre: 'Nitrato de aluminio', formula: 'Al(NO3)3·9H2O', cantidad: 2, unidad: 'g', caducidad: '2030-01-01'},\n    {nombre: 'Carbonato de sodio', formula: 'Na2CO3', cantidad: 100, unidad: 'g', caducidad: '2020-01-01'}],\n    instrumentos: [{nombre: 'Balanza', proximaCalibracion: '2026-01-01'}]});\n  const ex = Laboratorio.existencias(p, lab, 1, '2026-09-24');\n  assert.equal(ex.find(x => x.id === 'r-zn').estado, 'suficiente');\n  assert.equal(ex.find(x => x.id === 'r-al').estado, 'insuficiente');\n  assert.equal(ex.find(x => x.id === 'r-carb').estado, 'caducado');\n  assert.equal(ex.find(x => x.id === 'r-naoh').estado, 'sinRegistro');\n  assert.match(Laboratorio.alertas(lab, '2026-09-24').map(a => a.texto).join(' '), /calibración vencida/);\n  const lista = Laboratorio.listaVerificacion(p, lab, 1, '2026-09-24');\n  assert.ok(lista.some(g => g.titulo === 'Calibraciones'));\n  assert.ok(lista[0].items.some(i => i.alerta && /NO alcanza/.test(i.detalle)));\n});\n\ntest('lotes: comparación de parámetros reales y carta de control', () => {\n  const p = plantilla('hdl-znal');\n  p.resultadoNombre = 'Área BET'; p.resultadoUnidad = 'm²/g';\n  p.lotes = [70, 72, 69, 71].map((v, i) => Protocolo.nuevoLote({codigo: 'L' + (i + 1), resultado: v, parametros: i === 1 ? {s3: {ph: 10.4}} : {}}));\n  const c = Lotes.comparacion(p);\n  assert.equal(c.columnas.length, 1); assert.equal(c.columnas[0].etiqueta, 'pH paso 3');\n  cerca(c.filas[1].valores[0].desvio, 0.4, 1e-12, 'desvío de pH');\n  const k = Lotes.control(p);\n  assert.equal(k.magnitud, 'Área BET (m²/g)'); cerca(k.centro, 70.5, 1e-12, 'centro');\n});\n",
  "tests/instrumentos.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {N} from '../herramientas/nucleo.mjs';\nconst {Instrumentos,Protocolo,Placas,Laboratorio,Ejecucion,Evidencia}=N;\nconst prepara=()=>{const p=Protocolo.nuevo({pasos:[Protocolo.nuevoPaso({id:'paso',texto:'Medir'})]});const placa=Placas.nueva(6,'Placa');placa.id='placa';placa.capacidad=100;p.placas.push(placa);return {p,lote:Ejecucion.inicia(Ejecucion.nuevoLote(p,Laboratorio.nuevo())).lote};};\nconst texto='\\uFEFFWell;Signal;Volume;When;Comment\\r\\nA01;0,25;0,05;2026-09-29T10:00:00Z;\"medida; declarada\"\\r\\nA02;0;0;;cero declarado\\r\\n',mapa={pozo:'Well',resultado:'Signal',volumen:'Volume',fecha:'When',nota:'Comment'};\ntest('CSV instrumental conserva columnas, comillas y huella sin convertir números antes del mapa',()=>{\n const t=Instrumentos.lee(texto);assert.equal(t.error,undefined);assert.equal(t.separador,';');assert.equal(t.filas[0][1],'0,25');assert.equal(t.filas[0][4],'medida; declarada');assert.match(t.sha256TextoUTF8,/^[a-f0-9]{64}$/);\n for(const s of ['a,a\\n1,2','a,b\\n1,2,3','a,b\\n\"sin cerrar,2','a\\n1','a,b','a,b\\n1,2']){const r=Instrumentos.lee(s);if(s==='a,b\\n1,2')assert.equal(r.error,undefined);else assert.ok(r.error,s);}\n});\ntest('números instrumentales distinguen vacío, cero, notación científica y separador decimal',()=>{\n for(const [t,d,esperado] of [['',',',null],['0','.',0],['-1,25e-2',',',-.0125],['.5','.',.5],['+1E3','.',1000]])assert.equal(Instrumentos.numero(t,d).valor,esperado);\n for(const [t,d] of [['1,000.3','.'],['0x10','.'],['Infinity','.'],['1,2','.'],['1.2',','],['=3+2','.'],['1e999','.'],['1e-999','.'],['3','constructor']])assert.ok(Instrumentos.numero(t,d).error,t);\n});\ntest('mapa convierte mL a µL, conserva ceros y registra procedencia original por fila',()=>{\n const {p,lote}=prepara(),bytes=new TextEncoder().encode(texto),a=Evidencia.adjunto('instrumento.csv',bytes,'text/csv',{tipo:'lote',id:lote.id}).archivo;\n const r=Instrumentos.prepara(lote,'placa',Instrumentos.lee(texto),mapa,{decimal:',',unidadVolumen:'mL',unidadResultado:'A',adjunto:a});assert.equal(r.error,undefined);assert.equal(r.cantidad,2);\n const pozos=r.lote.ejecucion.placas[0].pozos;assert.equal(pozos.A1.resultado,.25);assert.equal(pozos.A1.volumenReal,50);assert.equal(pozos.A2.resultado,0);assert.equal(pozos.A2.volumenReal,0);assert.equal(pozos.A1.fechaMedida,'2026-09-29T10:00:00Z');assert.equal(pozos.A1.origen.fila,2);assert.equal(pozos.A1.origen.adjuntoId,a.id);assert.deepEqual(pozos.A1.origen.configuracion.columnas,mapa);\n assert.deepEqual(lote.ejecucion.placas[0].pozos,{});p.lotes=[r.lote];const leido=Protocolo.sanea(JSON.parse(JSON.stringify(p)));assert.deepEqual(leido.avisos,[]);assert.deepEqual(leido.protocolo.lotes[0].ejecucion,r.lote.ejecucion);assert.deepEqual(Protocolo.adjuntosUsados(leido.protocolo).archivos,[a]);\n});\ntest('importación instrumental rechaza íntegramente mapas ambiguos, pozos duplicados y valores inválidos',()=>{\n const {lote}=prepara(),t=Instrumentos.lee(texto);\n for(const [tabla,m,opciones] of [[t,{resultado:'Signal'},{}],[t,{pozo:'Well',resultado:'Well'},{}],[t,{pozo:'Well',resultado:'ausente'},{}],[t,mapa,{decimal:'.'}],[Instrumentos.lee(texto.replace('A02','A01')),mapa,{decimal:','}],[Instrumentos.lee(texto.replace('A02','P24')),mapa,{decimal:','}],[Instrumentos.lee(texto.replace('0,05','9')),mapa,{decimal:',',unidadVolumen:'mL'}],[t,mapa,{decimal:',',unidadVolumen:'constructor'}]])assert.ok(Instrumentos.prepara(lote,'placa',tabla,m,opciones).error);\n assert.deepEqual(lote.ejecucion.placas[0].pozos,{});assert.equal(lote.ejecucion.placas[0].historial.length,0);\n});\ntest('384 registros se validan en un lote, preservan correcciones y rechazan el límite completo del historial',()=>{\n const {p}=prepara(),placa=Placas.nueva(384,'Placa 384');placa.id='grande';p.placas=[placa];let l=Ejecucion.inicia(Ejecucion.nuevoLote(p,Laboratorio.nuevo())).lote;\n const registros=Placas.posiciones(placa).map((id,i)=>({id,datos:{resultado:i}}));const r=Ejecucion.registraPozos(l,'grande',registros);assert.equal(r.error,undefined);assert.equal(r.cantidad,384);assert.equal(r.lote.ejecucion.placas[0].historial.length,384);assert.equal(Object.keys(r.lote.ejecucion.placas[0].pozos).length,384);assert.deepEqual(l.ejecucion.placas[0].pozos,{});\n l=r.lote;const z=Ejecucion.registraPozos(l,'grande',registros.map(x=>({...x,datos:{resultado:99}})));assert.equal(z.lote.ejecucion.placas[0].historial[385].antes.resultado,1);assert.equal(l.ejecucion.placas[0].pozos.A2.resultado,1);\n l.ejecucion.placas[0].historial=Array.from({length:9700},()=>({}));assert.ok(Ejecucion.registraPozos(l,'grande',registros).error);assert.equal(l.ejecucion.placas[0].historial.length,9700);\n});\n",
  "tests/laboratorio-ampliado.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {N,cerca} from '../herramientas/nucleo.mjs';\nconst {Laboratorio}=N;\nconst inicial=()=>Object.assign(Laboratorio.nuevo(),{inventario:[Laboratorio.nuevoArticulo({id:'frasco',nombre:'Sal',lote:'F-01',cantidad:10,unidad:'g'})]});\ntest('entradas y recuentos conservan identidad histórica e idempotencia del movimiento',()=>{\n const lab=inicial(),datos={articuloId:'frasco',tipo:'entrada',cantidad:2,motivo:'Recepción registrada',clave:'entrada-1'};\n const r=Laboratorio.mueve(lab,datos);assert.equal(r.error,undefined);assert.equal(r.laboratorio.inventario[0].cantidad,12);assert.equal(lab.inventario[0].cantidad,10);\n r.laboratorio.inventario[0].nombre='Nombre cambiado';assert.equal(r.laboratorio.movimientos[0].articulo.nombre,'Sal');\n assert.equal(Laboratorio.mueve(r.laboratorio,datos).repetido,true);assert.ok(Laboratorio.mueve(r.laboratorio,{...datos,cantidad:4}).error);\n const ajuste=Laboratorio.mueve(r.laboratorio,{...datos,tipo:'ajuste',cantidad:9,clave:'recuento-1'});assert.equal(ajuste.laboratorio.inventario[0].cantidad,9);assert.equal(ajuste.laboratorio.movimientos.at(-1).cantidad,-3);\n assert.deepEqual(Laboratorio.sanea(ajuste.laboratorio),ajuste.laboratorio);\n});\ntest('cantidades desconocidas requieren recuento y no se tratan como cero',()=>{\n const lab=inicial();lab.inventario[0].cantidad=null;\n const datos={articuloId:'frasco',tipo:'entrada',cantidad:2,motivo:'Recepción',clave:'entrada'};assert.ok(Laboratorio.mueve(lab,datos).error);\n const r=Laboratorio.mueve(lab,{...datos,tipo:'ajuste'});assert.equal(r.laboratorio.inventario[0].cantidad,2);assert.equal(r.laboratorio.movimientos[0].antes,null);assert.equal(r.laboratorio.movimientos[0].cantidad,null);\n});\ntest('reservas protegen otros lotes y se reducen sólo por consumo propio',()=>{\n let lab=inicial();lab=Laboratorio.reserva(lab,'frasco','lote-A',6).laboratorio;\n assert.ok(Laboratorio.reserva(lab,'frasco','lote-B',5).error);assert.ok(Laboratorio.reserva(lab,'frasco','lote-A',1).error);\n assert.ok(Laboratorio.consume(lab,{articuloId:'frasco',loteId:'lote-B',cantidad:5,clave:'B'}).error);\n lab=Laboratorio.consume(lab,{articuloId:'frasco',loteId:'lote-A',cantidad:2,clave:'A-1'}).laboratorio;assert.equal(lab.inventario[0].cantidad,8);assert.equal(Laboratorio.reservado(lab,'frasco'),4);\n lab=Laboratorio.reserva(lab,'frasco','lote-B',4).laboratorio;assert.equal(Laboratorio.reservado(lab,'frasco'),8);\n lab=Laboratorio.consume(lab,{articuloId:'frasco',loteId:'lote-A',cantidad:4,clave:'A-2'}).laboratorio;assert.equal(lab.inventario[0].cantidad,4);assert.equal(lab.reservas[0].estado,'consumida');assert.equal(Laboratorio.reservado(lab,'frasco'),4);\n assert.deepEqual(Laboratorio.valida(lab),[]);\n});\ntest('un recuento no puede dejar menos cantidad que las reservas',()=>{\n const lab=Laboratorio.reserva(inicial(),'frasco','lote-A',7).laboratorio;\n assert.ok(Laboratorio.mueve(lab,{articuloId:'frasco',tipo:'ajuste',cantidad:6,clave:'ajuste',motivo:'Recuento'}).error);\n const r=Laboratorio.libera(lab,lab.reservas[0].id);assert.equal(Laboratorio.reservado(r.laboratorio,'frasco'),0);assert.equal(r.laboratorio.inventario[0].cantidad,10);assert.ok(Laboratorio.libera(r.laboratorio,lab.reservas[0].id).error);\n});\ntest('convertir unidades conserva cantidades físicas, reservas y unidades del historial',()=>{\n let lab=Laboratorio.reserva(inicial(),'frasco','lote-A',3).laboratorio;\n lab=Laboratorio.mueve(lab,{articuloId:'frasco',tipo:'entrada',cantidad:2,clave:'entrada',motivo:'Recepción'}).laboratorio;\n const r=Laboratorio.convierte(lab,'frasco','mg','Expresar en miligramos','convertir');assert.equal(r.error,undefined);\n assert.equal(r.laboratorio.inventario[0].cantidad,12000);assert.equal(r.laboratorio.reservas[0].cantidad,3000);assert.equal(r.laboratorio.movimientos[0].unidad,'g');\n assert.equal(r.laboratorio.movimientos.at(-1).unidadAntes,'g');assert.equal(r.laboratorio.movimientos.at(-1).unidadDespues,'mg');\n const vuelve=Laboratorio.convierte(r.laboratorio,'frasco','g','Restaurar unidad','volver');cerca(vuelve.laboratorio.inventario[0].cantidad,12);assert.equal(vuelve.laboratorio.reservas[0].cantidad,3);\n assert.ok(Laboratorio.convierte(lab,'frasco','mL','Magnitud incompatible','fallo').error);assert.deepEqual(Laboratorio.sanea(r.laboratorio),r.laboratorio);\n});\ntest('archivar conserva historial, excluye existencias y exige liberar reservas',()=>{\n let lab=Laboratorio.reserva(inicial(),'frasco','lote-A',3).laboratorio;assert.ok(Laboratorio.archiva(lab,'frasco',true).error);\n lab=Laboratorio.libera(lab,lab.reservas[0].id).laboratorio;const r=Laboratorio.archiva(lab,'frasco',true);assert.equal(r.laboratorio.inventario.length,1);assert.equal(r.laboratorio.inventario[0].archivado,true);\n assert.equal(Laboratorio.busca(r.laboratorio,{nombre:'Sal'}).length,0);assert.ok(Laboratorio.consume(r.laboratorio,{articuloId:'frasco',loteId:'lote-A',cantidad:1,clave:'consumo'}).error);\n assert.equal(Laboratorio.archiva(r.laboratorio,'frasco',false).laboratorio.inventario[0].archivado,false);\n});\ntest('desbordamientos y cantidades menores que la precisión no crean movimientos ficticios',()=>{\n const lab=inicial();lab.inventario[0].cantidad=1e308;\n assert.ok(Laboratorio.mueve(lab,{articuloId:'frasco',tipo:'entrada',cantidad:1e308,clave:'overflow',motivo:'Entrada'}).error);\n assert.ok(Laboratorio.consume(lab,{articuloId:'frasco',loteId:'L',cantidad:1,clave:'minimo'}).error);\n assert.ok(Laboratorio.convierte(lab,'frasco','mg','Cambio','conv').error);assert.equal(lab.movimientos.length,0);\n assert.ok(Laboratorio.valida({...lab,reservas:'ilegible'}).length);\n});\n",
  "tests/montecarlo-avanzado.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {N,cerca} from '../herramientas/nucleo.mjs';\nconst {Analisis,Estadistica}=N;\nconst entradas=(distribucion='normal')=>[{nombre:'x',valor:10,u:0.5,distribucion},{nombre:'y',valor:4,u:0.2,distribucion}];\ntest('Monte Carlo correlacionado reproduce la varianza analítica y las correlaciones perfectas',()=>{\n for(const rho of [-1,-0.6,0.7,1]){\n  const r=Analisis.monteCarlo('2*x+y',entradas(),50000,4567,[{a:'x',b:'y',rho}]);assert.equal(r.error,undefined);\n  assert.ok(Math.abs(r.media-24)<5*r.errorMedia);assert.ok(Math.abs(r.u-Math.sqrt(1.04+0.4*rho))<0.025);\n  assert.equal(r.histograma.reduce((a,x)=>a+x.cantidad,0),r.n);\n }\n const r=Analisis.monteCarlo('x-y',[{nombre:'x',valor:0,u:1,distribucion:'normal'},{nombre:'y',valor:0,u:1,distribucion:'normal'}],1000,1,[{a:'x',b:'y',rho:1}]);\n assert.equal(r.media,0);assert.equal(r.u,0);assert.equal(r.histograma.length,1);assert.equal(r.histograma[0].cantidad,1000);\n});\ntest('uniforme, triangular y lognormal conservan media y desviación estándar declaradas',()=>{\n for(const distribucion of ['uniforme','triangular','lognormal']){\n  const r=Analisis.monteCarlo('x',[{nombre:'x',valor:10,u:0.5,distribucion}],60000,48765);assert.equal(r.error,undefined);\n  assert.ok(Math.abs(r.media-10)<5*r.errorMedia,distribucion);assert.ok(Math.abs(r.u-0.5)<0.012,distribucion);\n  if(distribucion==='uniforme')assert.ok(r.bajo>10-Math.sqrt(3)*0.5 && r.alto<10+Math.sqrt(3)*0.5);\n  if(distribucion==='triangular')assert.ok(r.bajo>10-Math.sqrt(6)*0.5 && r.alto<10+Math.sqrt(6)*0.5);\n  if(distribucion==='lognormal'){\n   const sigma=Math.sqrt(Math.log1p(0.05**2)),mu=Math.log(10)-sigma*sigma/2;\n   assert.ok(Math.abs(r.bajo-Math.exp(mu-1.959963984540054*sigma))<0.035);assert.ok(Math.abs(r.alto-Math.exp(mu+1.959963984540054*sigma))<0.035);\n  }\n }\n});\ntest('matrices inválidas, pares repetidos y correlaciones no normales se rechazan sin ignorarlos',()=>{\n const v=entradas().concat({nombre:'z',valor:1,u:1,distribucion:'normal'});\n for(const pares of [[{a:'x',b:'y',rho:0.9},{a:'x',b:'z',rho:0.9},{a:'y',b:'z',rho:-0.9}], [{a:'x',b:'y',rho:0.1},{a:'y',b:'x',rho:0.2}], [{a:'x',b:'ausente',rho:0.2}], [null],{}])assert.ok(Analisis.monteCarlo('x+y+z',v,1000,1,pares).error);\n assert.match(Analisis.monteCarlo('x+y',entradas('uniforme'),1000,1,[{a:'x',b:'y',rho:0.2}]).error,/entre entradas normales/);\n assert.ok(Estadistica.matrizCorrelacion(null,[]).error);\n});\ntest('simulación de distribución positiva y entradas inválidas no produce valores ocultos',()=>{\n for(const entrada of [null,{nombre:'x',valor:-1,u:1,distribucion:'lognormal'},{nombre:'x',valor:1,u:-1,distribucion:'normal'},{nombre:'x',valor:1,u:1,distribucion:'desconocida'}])assert.ok(Analisis.monteCarlo('x',[entrada],1000,1).error);\n const r=Analisis.monteCarlo('x',[{nombre:'x',valor:3,u:0,distribucion:'lognormal'}],1000,1);cerca(r.media,3);assert.equal(r.u,0);\n assert.match(Analisis.monteCarlo('x*x',[{nombre:'x',valor:1e200,u:0,distribucion:'normal'}],1000,1).error,/dominio/);\n});\n",
  "tests/muestras.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {N} from '../herramientas/nucleo.mjs';\nconst {Muestras,Protocolo,Ejecucion,Laboratorio}=N;\nconst muestra=()=>Muestras.nueva({id:'m1',nombre:'Muestra declarada',origen:'Campo declarado',ubicacion:'Congelador declarado'});\ntest('una cantidad desconocida exige recuento antes de entradas, consumos o alícuotas',()=>{\n const m=muestra();assert.equal(m.cantidad,null);assert.equal(m.fechaRecepcion,'');\n for(const tipo of ['entrada','consumo'])assert.match(Muestras.movimiento([m],m.id,{tipo,cantidad:2,unidad:'mL',motivo:'Prueba'}).error,/desconocida/);\n const r=Muestras.movimiento([m],m.id,{tipo:'recuento',cantidad:10,unidad:'mL',motivo:'Lectura declarada'});assert.equal(r.error,undefined);assert.equal(r.muestras[0].cantidad,10);assert.equal(r.muestras[0].historial[0].antes.cantidad,null);assert.equal(m.cantidad,null);\n});\ntest('alícuotas conservan cantidad total y procedencia frente a cambios del nombre original',()=>{\n const padre=Muestras.nueva({...muestra(),cantidad:10,unidad:'mL',estado:'disponible'}),r=Muestras.alicuota([padre],padre.id,{nombre:'Alícuota declarada',cantidad:3,unidad:'mL',ubicacion:'Otro congelador',motivo:'Separación declarada'});\n assert.equal(r.error,undefined);assert.equal(r.muestras[0].cantidad,7);assert.equal(r.muestras[1].cantidad,3);assert.equal(r.muestras[1].derivadaDe,padre.id);assert.equal(r.muestras[0].historial[0].destinoId,r.id);\n r.muestras[0].nombre='Nombre modificado';assert.equal(r.muestras[1].derivacion.nombre,'Muestra declarada');assert.equal(r.muestras[1].derivacion.ubicacion,'Congelador declarado');assert.equal(padre.cantidad,10);\n const nieta=Muestras.alicuota(r.muestras,r.id,{nombre:'Subalícuota',cantidad:1,unidad:'mL',motivo:'Separación declarada'});assert.equal(nieta.error,undefined);assert.equal(nieta.muestras.reduce((a,m)=>a+m.cantidad,0),10);\n});\ntest('unidades, fracciones de unidades, consumos excesivos y cambios no representables se rechazan',()=>{\n const m=Muestras.nueva({...muestra(),cantidad:10,unidad:'mL'});\n for(const datos of [{tipo:'consumo',cantidad:11},{tipo:'entrada',cantidad:-1},{tipo:'recuento',cantidad:1,unidad:'g'},{tipo:'recuento',cantidad:NaN},{tipo:'entrada',cantidad:1e-100},{tipo:'recuento',cantidad:1,motivo:''}])assert.ok(Muestras.movimiento([m],m.id,{unidad:'mL',motivo:'Prueba',...datos}).error);\n assert.ok(Muestras.valida(Muestras.nueva({cantidad:1.5,unidad:'unidades'})).error);\n assert.ok(Muestras.movimiento([Muestras.nueva({...m,cantidad:1e308})],m.id,{tipo:'entrada',cantidad:1e308,unidad:'mL',motivo:'Prueba'}).error);\n});\ntest('ubicación, descarte y agotamiento conservan el historial sin simular desaparición de una cantidad',()=>{\n const m=Muestras.nueva({...muestra(),cantidad:10,unidad:'mL'}),r=Muestras.movimiento([m],m.id,{tipo:'ubicacion',ubicacion:'Laboratorio declarado',motivo:'Traslado declarado'});\n assert.equal(r.muestras[0].historial[0].antes.ubicacion,'Congelador declarado');assert.equal(r.muestras[0].ubicacion,'Laboratorio declarado');\n const descartada=Muestras.movimiento(r.muestras,m.id,{tipo:'descartar',motivo:'Descarte declarado'});assert.equal(descartada.muestras[0].estado,'descartada');assert.equal(descartada.muestras[0].cantidad,10);assert.ok(Muestras.alicuota(descartada.muestras,m.id,{nombre:'Otra',cantidad:1,motivo:'Prueba'}).error);\n const agotada=Muestras.movimiento([m],m.id,{tipo:'consumo',cantidad:10,motivo:'Consumo declarado'});assert.equal(agotada.muestras[0].estado,'agotada');assert.equal(agotada.muestras[0].cantidad,0);\n});\ntest('recepción valida fechas reales, CSV protege fórmulas y saneado preserva el historial',()=>{\n for(const fechaRecepcion of ['2026-02-30','2026-02-29','2026-13-01'])assert.ok(Muestras.valida(Muestras.nueva({fechaRecepcion})).error);\n assert.equal(Muestras.valida(Muestras.nueva({fechaRecepcion:'2024-02-29'})).error,undefined);\n const m=Muestras.nueva({...muestra(),nombre:'=SUM(1,1)',cantidad:10,unidad:'mL'}),r=Muestras.alicuota([m],m.id,{nombre:'Alícuota',cantidad:2,motivo:'Separación'}),p=Protocolo.nuevo({muestras:r.muestras});\n assert.match(Muestras.csv(p.muestras),/'=SUM/);const q=Protocolo.sanea(JSON.parse(JSON.stringify(p)));assert.deepEqual(q.avisos,[]);assert.deepEqual(q.protocolo.muestras,p.muestras);assert.deepEqual(Protocolo.integridad(q.protocolo),[]);\n});\ntest('la ejecución conserva ubicación, cantidad y procedencia de alícuota en su copia de muestra',()=>{\n const p=Protocolo.nuevo(),m=Muestras.nueva({...muestra(),cantidad:10,unidad:'mL'}),r=Muestras.alicuota([m],m.id,{nombre:'Alícuota',cantidad:2,motivo:'Separación'});p.muestras=r.muestras;\n p.lotes=[Ejecucion.muestra(Ejecucion.nuevoLote(p,Laboratorio.nuevo()),p.muestras[1],true).lote];p.muestras[1].ubicacion='Cambio posterior';p.muestras[1].cantidad=0;\n const q=Protocolo.sanea(JSON.parse(JSON.stringify(p)));assert.deepEqual(q.avisos,[]);const conservada=q.protocolo.lotes[0].ejecucion.muestrasRegistros[0];assert.equal(conservada.cantidad,2);assert.equal(conservada.derivacion.nombre,'Muestra declarada');assert.equal(conservada.ubicacion,'');\n});\n",
  "tests/persistencia.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test,{after} from 'node:test';\nimport assert from 'node:assert/strict';\nimport {readFileSync} from 'node:fs';\nimport {JSDOM,VirtualConsole} from 'jsdom';\nimport {IDBFactory,IDBKeyRange} from 'fake-indexeddb';\nimport {createHash} from 'node:crypto';\nconst html=readFileSync(new URL('../public/index.html',import.meta.url),'utf8'),ventanas=[];\nafter(()=>{for(const w of ventanas){w.eval('Persistencia.cierra()');w.close();}});\nasync function abre(fabrica=new IDBFactory(),legado,protocolo='http:') {\n const errores=[],vc=new VirtualConsole();vc.on('jsdomError',e=>errores.push(e.message));vc.on('error',e=>errores.push(String(e)));\n const dom=new JSDOM(html,{url:protocolo==='file:' ? 'file:///tmp/methods.html' : 'https://erlensuite.com/methods/?plantilla=bradford',runScripts:'dangerously',pretendToBeVisual:true,virtualConsole:vc,beforeParse(w){\n   w.indexedDB=fabrica;w.IDBKeyRange=IDBKeyRange;w.structuredClone=structuredClone;w.TextEncoder=TextEncoder;w.TextDecoder=TextDecoder;w.Element.prototype.scrollIntoView=function(){};\n   if(legado)for(const [k,v] of Object.entries(legado))w.localStorage.setItem(k,v);\n }});\n const w=dom.window;ventanas.push(w);\n for(let i=0;i<200 && !w.document.querySelector('#cinta [role=tablist]');i++)await new Promise(r=>setTimeout(r,10));\n assert.ok(w.document.querySelector('#cinta [role=tablist]'),'arranque completo');\n return {w,d:w.document,errores};\n}\nconst datos=w=>w.eval('Persistencia.respaldo()');\ntest('migra todo el legado una vez y conserva la copia anterior',async()=>{\n const fabrica=new IDBFactory(),p={format:'erlen-methods-protocolo-v1',id:'p-antiguo',titulo:'Trabajo previo',reactivos:[],pasos:[],lotes:[]};\n const legado={'erlen-methods.p.p-antiguo':JSON.stringify(p),'erlen-methods.indice':JSON.stringify([{id:p.id,titulo:p.titulo}]),'erlen-methods.prefs':JSON.stringify({ultimo:p.id})};\n const {w,errores}=await abre(fabrica,legado);\n assert.equal(w.eval('Persistencia.modo'),'IndexedDB');assert.equal(w.localStorage.getItem('erlen-methods.p.p-antiguo'),legado['erlen-methods.p.p-antiguo']);\n assert.equal(w.eval('Almacen.carga(\"p-antiguo\").protocolo.titulo'),'Trabajo previo');\n await w.eval('Estado.abre(\"p-antiguo\")');await w.eval('Estado.cambia(p=>{p.titulo=\"Edición migrada\"});Estado.guardaYa()');\n w.eval('Persistencia.cierra()');\n const segundo=await abre(fabrica,legado);\n assert.equal(segundo.w.eval('Almacen.carga(\"p-antiguo\").protocolo.titulo'),'Edición migrada');assert.deepEqual(errores,[]);assert.deepEqual(segundo.errores,[]);\n});\ntest('las ediciones durante un guardado no pierden campos ni dejan un falso estado guardado',async()=>{\n const {w}=await abre();\n await w.eval('Estado.cambia(p=>{p.titulo=\"Primero\"});Estado.guardaYa()');\n const primer=w.eval('Estado.cambia(p=>{p.objetivo=\"A\"});Estado.guardaYa()');\n w.eval('Estado.cambia(p=>{p.notas=\"B\"})');\n await primer;await w.eval('Estado.guardaYa()');\n const r=await datos(w),p=JSON.parse(r.registros.find(x=>x.clave==='erlen-methods.p.'+w.eval('Estado.p.id')).valor);\n assert.equal(p.objetivo,'A');assert.equal(p.notas,'B');assert.equal(w.eval('Estado.error'),null);assert.equal(w.eval('Estado.pendiente'),false);\n});\ntest('dos pestañas no pueden sobrescribir el mismo protocolo',async()=>{\n const fabrica=new IDBFactory(),uno=await abre(fabrica);\n await uno.w.eval('Estado.cambia(p=>{p.titulo=\"Base compartida\"});Estado.guardaYa()');const id=uno.w.eval('Estado.p.id');\n const dos=await abre(fabrica);await dos.w.eval('Estado.abre('+JSON.stringify(id)+')');\n await uno.w.eval('Estado.cambia(p=>{p.titulo=\"Cambio de primera pestaña\"});Estado.guardaYa()');\n await dos.w.eval('Estado.cambia(p=>{p.titulo=\"Cambio concurrente\"});Estado.guardaYa()');\n assert.match(dos.w.eval('Estado.error'),/Otra pestaña/);\n const r=await datos(uno.w);assert.equal(JSON.parse(r.registros.find(x=>x.clave==='erlen-methods.p.'+id).valor).titulo,'Cambio de primera pestaña');\n assert.equal(dos.w.eval('Estado.p.titulo'),'Cambio concurrente','la edición rechazada sigue disponible para descargar');\n});\ntest('un adjunto y su protocolo se confirman juntos; un conflicto revierte ambos',async()=>{\n const fabrica=new IDBFactory(),uno=await abre(fabrica);\n await uno.w.eval('Estado.cambia(p=>{p.titulo=\"Original\"});Estado.guardaYa()');const id=uno.w.eval('Estado.p.id');\n const dos=await abre(fabrica);await dos.w.eval('Estado.abre('+JSON.stringify(id)+')');\n await uno.w.eval('Estado.cambia(p=>{p.titulo=\"Remoto\"});Estado.guardaYa()');\n await assert.rejects(dos.w.eval('Almacen.guarda(Object.assign({},Estado.p,{titulo:\"Conflicto\"}),[{id:\"archivo-de-prueba\",bytes:new Uint8Array([1,2,3])}])'),/Otra pestaña/);\n assert.equal(await uno.w.eval('Persistencia.adjunto(\"archivo-de-prueba\")'),null);\n assert.equal((await datos(uno.w)).adjuntos.length,0);\n});\ntest('un respaldo completo conserva hashes y restaura adjuntos sin modificar otra app',async()=>{\n const {w}=await abre();w.localStorage.setItem('erlen-doe.proyecto','datos de otra app');await w.eval('Estado.cambia(p=>{p.titulo=\"Con archivo\"});Estado.guardaYa()');\n await w.eval('Almacen.guarda(Estado.p,[{id:\"sha256-\"+Evidencia.sha256(new Uint8Array([0,255,10])),bytes:new Uint8Array([0,255,10])}])');\n const bytes=await w.eval('Respaldos.crea()');w.bytesPrueba=bytes;const r=w.eval('Respaldos.lee(bytesPrueba)');assert.equal(r.error,undefined);assert.equal(r.adjuntos.length,1);\n w.respaldoPrueba=r;await w.eval('Almacen.restaura(respaldoPrueba.registros,respaldoPrueba.adjuntos)');\n assert.deepEqual(Array.from((await datos(w)).adjuntos[0].bytes),[0,255,10]);\n assert.equal(w.localStorage.getItem('erlen-doe.proyecto'),'datos de otra app');\n const archivos=w.eval('window.fflate.unzipSync(bytesPrueba)');archivos['datos.json'][0]^=1;w.archivosAlterados=archivos;\n const rechazo=w.eval('Respaldos.lee(window.fflate.zipSync(archivosAlterados))');assert.match(rechazo.error,/hash/);\n assert.deepEqual(Array.from((await datos(w)).adjuntos[0].bytes),[0,255,10],'rechazar no modifica la base');\n});\ntest('la migración convierte adjuntos base64 a bytes sin modificar el legado',async()=>{\n const bytes=Buffer.from([0,255,128,65]),id='sha256-'+createHash('sha256').update(bytes).digest('hex'),clave='erlen-methods.adjunto.'+id;\n const valor=JSON.stringify({id,base64:bytes.toString('base64')}),{w}=await abre(new IDBFactory(),{[clave]:valor});\n w.idPrueba=id;assert.deepEqual(Array.from(await w.eval('Persistencia.adjunto(idPrueba)')),Array.from(bytes));\n assert.equal(w.localStorage.getItem(clave),valor);assert.ok(!(await datos(w)).registros.some(r=>r.clave===clave));\n});\ntest('un adjunto legado alterado bloquea la migración completa y conserva el original',async()=>{\n const id='sha256-'+'0'.repeat(64),clave='erlen-methods.adjunto.'+id,valor=JSON.stringify({id,base64:'AQID'});\n const {w}=await abre(new IDBFactory(),{[clave]:valor});assert.equal(w.eval('Persistencia.modo'),'bloqueado');\n assert.match(w.eval('Persistencia.error'),/hash/);assert.equal(w.localStorage.getItem(clave),valor);\n assert.equal(w.eval('Almacen.indice().length'),0,'no abre una biblioteca obsoleta como si fuera la base');\n});\ntest('dos pestañas no pueden pisar movimientos de laboratorio',async()=>{\n const fabrica=new IDBFactory(),uno=await abre(fabrica),dos=await abre(fabrica);\n await uno.w.eval('Almacen.guardaLaboratorio(Object.assign(Laboratorio.nuevo(),{moneda:\"EUR\"}))');\n await assert.rejects(dos.w.eval('Almacen.guardaLaboratorio(Object.assign(Laboratorio.nuevo(),{moneda:\"USD\"}))'),/Otra pestaña/);\n assert.equal(JSON.parse((await datos(uno.w)).registros.find(r=>r.clave==='erlen-methods.laboratorio').valor).moneda,'EUR');\n assert.match(dos.w.eval('Estado.error'),/Otra pestaña/);\n});\ntest('pagehide conserva una edición pendiente como copia recuperable y no cierra la base',async()=>{\n const {w}=await abre();await w.eval('Estado.cambia(p=>{p.titulo=\"Antes de cerrar\"});Estado.guardaYa()');\n w.eval('Estado.cambia(p=>{p.notas=\"Texto pendiente\"});Estado.conservaPendiente()');\n const copias=w.eval('Recuperacion.lista()');assert.equal(copias.length,1);assert.equal(copias[0].protocolo.notas,'Texto pendiente');\n assert.equal((await datos(w)).registros.some(x=>x.clave.startsWith('erlen-methods.recuperacion.')),false);\n await w.eval('Estado.guardaYa()');assert.equal(w.eval('Recuperacion.lista().length'),0);\n w.dispatchEvent(new w.PageTransitionEvent('pagehide',{persisted:true}));await w.eval('Estado.guardaYa()');\n assert.equal(w.eval('Estado.error'),null);assert.ok((await datos(w)).registros.length);\n});\ntest('abrir otro protocolo espera las ediciones que llegan durante el guardado',async()=>{\n const {w}=await abre();await w.eval('Estado.cambia(p=>{p.titulo=\"Protocolo original\"});Estado.guardaYa()');const id=w.eval('Estado.p.id');\n const pendiente=w.eval('Estado.cambia(p=>{p.notas=\"Primera edición\"});Estado.nuevo()');\n w.eval('Estado.cambia(p=>{p.notas=\"Última edición\"})');await pendiente;\n w.idPrueba=id;assert.equal(w.eval('Almacen.carga(idPrueba).protocolo.notas'),'Última edición');\n assert.equal(w.eval('Estado.p.titulo'),'');assert.equal(w.eval('Estado.error'),null);\n});\ntest('un fallo de cuota local revierte protocolo e índice y mantiene la edición para descargar',async()=>{\n const {w}=await abre(null);assert.equal(w.eval('Persistencia.modo'),'localStorage');\n await w.eval('Estado.cambia(p=>{p.titulo=\"Versión guardada\"});Estado.guardaYa()');const id=w.eval('Estado.p.id'),clave='erlen-methods.p.'+id;\n const antes=w.localStorage.getItem(clave),indice=w.localStorage.getItem('erlen-methods.indice'),original=w.Storage.prototype.setItem;let fallo=true;\n w.Storage.prototype.setItem=function(k,v){if(k==='erlen-methods.indice' && fallo){fallo=false;throw new w.DOMException('quota','QuotaExceededError');}return original.call(this,k,v);};\n await w.eval('Estado.cambia(p=>{p.titulo=\"Edición sin guardar\"});Estado.guardaYa()');\n assert.match(w.eval('Estado.error'),/lleno/);assert.equal(w.eval('Estado.p.titulo'),'Edición sin guardar');assert.equal(w.localStorage.getItem(clave),antes);assert.equal(w.localStorage.getItem('erlen-methods.indice'),indice);assert.equal(w.localStorage.getItem('erlen-methods.guardado-pendiente'),null);\n w.Storage.prototype.setItem=original;await w.eval('Estado.guardaYa()');assert.equal(w.eval('Estado.error'),null);assert.equal(JSON.parse(w.localStorage.getItem(clave)).titulo,'Edición sin guardar');\n});\ntest('el modo local guarda y restaura adjuntos dentro del diario, con límite explícito',async()=>{\n const {w}=await abre(null);await w.eval('Estado.cambia(p=>{p.titulo=\"Archivo local\"});Estado.guardaYa()');\n await w.eval('Almacen.guarda(Estado.p,[{id:\"sha256-\"+Evidencia.sha256(new Uint8Array([0,128,255])),bytes:new Uint8Array([0,128,255])}])');\n const bytes=await w.eval('Respaldos.crea()');w.bytesPrueba=bytes;const r=w.eval('Respaldos.lee(bytesPrueba)');assert.equal(r.error,undefined);assert.equal(r.adjuntos.length,1);\n w.respaldoPrueba=r;await w.eval('Almacen.restaura(respaldoPrueba.registros,respaldoPrueba.adjuntos)');w.idPrueba=r.adjuntos[0].id;assert.deepEqual(Array.from(await w.eval('Persistencia.adjunto(idPrueba)')),[0,128,255]);\n const antes=w.localStorage.getItem('erlen-methods.indice');await assert.rejects(w.eval('Almacen.guarda(Estado.p,[{id:\"grande\",bytes:new Uint8Array(1048577)}])'),/1 MB/);assert.equal(w.localStorage.getItem('erlen-methods.indice'),antes);\n});\ntest('un protocolo inválido se rechaza antes de reemplazar la edición abierta',async()=>{\n const {w}=await abre();const id=w.eval('Estado.p.id');\n for(const crea of ['p.placas=[Object.assign(Placas.nueva(6),{pozos:{P24:{volumen:1}}})]','p.reactivos=[Protocolo.nuevoReactivo({id:\"igual\"}),Protocolo.nuevoReactivo({id:\"igual\"})]','p.adjuntos=[{id:\"sha256-\"+\"0\".repeat(64),sha256:\"1\".repeat(64),nombre:\"Alterado\",bytes:1}]']){\n  const r=await w.eval('(()=>{const p=Protocolo.nuevo();'+crea+';return Estado.importa(JSON.stringify(p));})()');assert.ok(r.error);assert.equal(w.eval('Estado.p.id'),id);\n }\n});\ntest('una importación con archivo guarda definición y bytes juntos sin perder ediciones que llegan durante el guardado',async()=>{\n const {w}=await abre();await w.eval('Estado.cambia(p=>{p.titulo=\"Antes de importar\"});Estado.guardaYa()');\n const pendiente=w.eval('(()=>{const bytes=new Uint8Array([0,255,128]),a=Evidencia.adjunto(\"origen.bin\",bytes,\"application/octet-stream\",{tipo:\"protocolo\",id:Estado.p.id}).archivo;return Estado.cambiaConArchivos(p=>{p.objetivo=\"Importación declarada\";p.adjuntos.push(a);},[{id:a.id,bytes}]);})()');\n w.eval('Estado.cambia(p=>{p.notas=\"Edición durante importación\"})');const r=await pendiente;assert.equal(r.error,undefined);\n await w.eval('Estado.aseguraGuardado()');\n const respaldo=await datos(w),p=JSON.parse(respaldo.registros.find(x=>x.clave==='erlen-methods.p.'+w.eval('Estado.p.id')).valor);assert.equal(p.objetivo,'Importación declarada');assert.equal(p.notas,'Edición durante importación');assert.equal(p.adjuntos.length,1);assert.deepEqual(Array.from(respaldo.adjuntos[0].bytes),[0,255,128]);assert.equal(w.eval('Estado.pendiente'),false);\n});\ntest('un archivo rechazado por cuota sigue descargable en memoria y se reintenta junto al protocolo',async()=>{\n const {w}=await abre(null);await w.eval('Estado.cambia(p=>{p.titulo=\"Antes del fallo\"});Estado.guardaYa()');\n const original=w.Storage.prototype.setItem;let fallo=true;w.Storage.prototype.setItem=function(k,v){if(k.startsWith('erlen-methods.adjunto.') && fallo){fallo=false;throw new w.DOMException('quota','QuotaExceededError');}return original.call(this,k,v);};\n const r=await w.eval('(()=>{const bytes=new Uint8Array([0,255,128]),a=Evidencia.adjunto(\"pendiente.bin\",bytes,\"application/octet-stream\",{tipo:\"protocolo\",id:Estado.p.id}).archivo;return Estado.cambiaConArchivos(p=>{p.adjuntos.push(a);},[{id:a.id,bytes}]);})()');assert.match(r.error,/lleno/);assert.equal(w.eval('Estado.p.adjuntos.length'),1);assert.deepEqual(Array.from(await w.eval('Estado.archivo(Estado.p.adjuntos[0].id)')),[0,255,128]);\n assert.equal(JSON.parse(w.localStorage.getItem('erlen-methods.p.'+w.eval('Estado.p.id'))).adjuntos.length,0,'el fallo revierte los metadatos guardados');\n w.Storage.prototype.setItem=original;await w.eval('Estado.guardaYa()');assert.equal(w.eval('Estado.error'),null);assert.deepEqual(Array.from(await w.eval('Persistencia.adjunto(Estado.p.adjuntos[0].id)')),[0,255,128]);\n});\ntest('una huella de archivo falsa se rechaza antes de cambiar la edición abierta',async()=>{\n const {w}=await abre();const titulo=w.eval('Estado.p.titulo');const r=await w.eval('Estado.cambiaConArchivos(p=>{p.titulo=\"Cambio incorrecto\";},[{id:\"sha256-\"+\"0\".repeat(64),bytes:new Uint8Array([1,2,3])}])');assert.ok(r.error);assert.equal(w.eval('Estado.p.titulo'),titulo);\n});\ntest('recuperar una edición con archivo ausente conserva la copia y la edición abierta',async()=>{\n const {w}=await abre();await w.eval('Estado.cambia(p=>{p.titulo=\"Edición abierta\"});Estado.guardaYa()');const id=w.eval('Estado.p.id');\n w.eval('(()=>{const bytes=new Uint8Array([1,2,3]),a=Evidencia.adjunto(\"archivo-ausente.bin\",bytes,\"application/octet-stream\",{tipo:\"protocolo\",id:Estado.p.id}).archivo,p=deepCopy(Estado.p);p.titulo=\"Pendiente con archivo\";p.adjuntos=[a];localStorage.setItem(\"erlen-methods.recuperacion.prueba\",JSON.stringify({fecha:ahora(),protocolo:p,archivosSinGuardar:[a.id]}));})()');\n const anterior=w.localStorage.getItem('erlen-methods.recuperacion.prueba'),r=await w.eval('Recuperacion.abre(\"erlen-methods.recuperacion.prueba\")');assert.match(r.error,/archivo ausente/);assert.equal(w.eval('Estado.p.id'),id);assert.equal(w.eval('Estado.p.titulo'),'Edición abierta');assert.equal(w.localStorage.getItem('erlen-methods.recuperacion.prueba'),anterior);\n});\ntest('recuperación comprueba tamaño y hash antes de abrir; un archivo válido se comparte sin borrarlo',async()=>{\n const {w}=await abre();await w.eval('Estado.cambia(p=>{p.titulo=\"Base guardada\"});Estado.guardaYa()');\n await w.eval('(()=>{const bytes=new Uint8Array([0,255,10]),a=Evidencia.adjunto(\"guardado.bin\",bytes,\"application/octet-stream\",{tipo:\"protocolo\",id:Estado.p.id}).archivo;return Estado.cambiaConArchivos(p=>{p.adjuntos.push(a);},[{id:a.id,bytes}]);})()');const id=w.eval('Estado.p.id');\n w.eval('(()=>{const p=deepCopy(Estado.p);p.titulo=\"Edición recuperable\";p.adjuntos[0].bytes=99;localStorage.setItem(\"erlen-methods.recuperacion.prueba\",JSON.stringify({fecha:ahora(),protocolo:p}));})()');\n let r=await w.eval('Recuperacion.abre(\"erlen-methods.recuperacion.prueba\")');assert.match(r.error,/archivo/);assert.equal(w.eval('Estado.p.id'),id);assert.ok(w.localStorage.getItem('erlen-methods.recuperacion.prueba'));\n w.eval('(()=>{const x=JSON.parse(localStorage.getItem(\"erlen-methods.recuperacion.prueba\"));x.protocolo.adjuntos[0].bytes=3;localStorage.setItem(\"erlen-methods.recuperacion.prueba\",JSON.stringify(x));})()');r=await w.eval('Recuperacion.abre(\"erlen-methods.recuperacion.prueba\")');assert.equal(r.error,undefined);assert.notEqual(w.eval('Estado.p.id'),id);assert.match(w.eval('Estado.p.titulo'),/copia recuperada/);assert.equal(w.localStorage.getItem('erlen-methods.recuperacion.prueba'),null);assert.deepEqual(Array.from(await w.eval('Estado.archivo(Estado.p.adjuntos[0].id)')),[0,255,10]);w.idPrueba=id;assert.equal(w.eval('Almacen.carga(idPrueba).protocolo.titulo'),'Base guardada');\n});\n",
  "tests/placas-ejecucion.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {N} from '../herramientas/nucleo.mjs';\nconst {Protocolo,Placas,Ejecucion,Laboratorio}=N;\nconst prepara=()=>{\n const p=Protocolo.nuevo({titulo:'Ensayo por pozo',pasos:[Protocolo.nuevoPaso({id:'paso',texto:'Medir'})]});\n const placa=Placas.nueva(6,'Placa de prueba');placa.id='placa';placa.capacidad=100;placa.pozos={A1:{volumen:50,resultado:999}};p.placas.push(Placas.sanea(placa));\n return {p,lote:Ejecucion.nuevoLote(p,Laboratorio.nuevo())};\n};\nconst datos=(extras={})=>({volumenReal:40,resultado:2,unidadResultado:'A',muestraId:'',nota:'Medición declarada',fechaMedida:'',...extras});\ntest('las ejecuciones nuevas conservan la geometría prevista sin heredar resultados anteriores',()=>{\n const {p,lote}=prepara();assert.equal(lote.revision.protocolo.placas[0].pozos.A1.resultado,999);assert.deepEqual(lote.ejecucion.placas[0].pozos,{});\n p.placas[0].capacidad=200;p.placas[0].nombre='Otro nombre';assert.equal(lote.ejecucion.placas[0].capacidad,100);assert.equal(lote.ejecucion.placas[0].nombre,'Placa de prueba');\n});\ntest('el inicio comprueba volúmenes escalados de placa y cantidades representables',()=>{\n const {lote}=prepara();lote.factor=3;assert.match(Ejecucion.inicia(lote).error,/volumen previsto/);\n lote.factor=1;assert.equal(Ejecucion.inicia(lote).error,undefined);\n lote.revision.protocolo.reactivos=[Protocolo.nuevoReactivo({cantidad:1e308})];lote.factor=10;assert.match(Ejecucion.inicia(lote).error,/representar/);\n});\ntest('muestras vinculadas conservan identidad y procedencia antes del inicio',()=>{\n const {lote}=prepara(),m={id:'m1',nombre:'Muestra original',origen:'Origen declarado',loteId:'',notas:''};\n const r=Ejecucion.muestra(lote,m,true);assert.equal(r.error,undefined);assert.equal(lote.ejecucion.muestrasRegistros.length,0);\n m.nombre='Nombre cambiado';assert.equal(r.lote.ejecucion.muestrasRegistros[0].nombre,'Muestra original');assert.ok(r.lote.ejecucion.muestrasRegistros[0].fechaVinculo);\n assert.ok(Ejecucion.muestra(Ejecucion.inicia(r.lote).lote,m,false).error);\n});\ntest('medidas por pozo requieren ejecución abierta, capacidad y muestra vinculada',()=>{\n const {lote}=prepara();assert.ok(Ejecucion.pozo(lote,'placa','A1',datos()).error);\n const l=Ejecucion.inicia(lote).lote;\n for(const [placa,id,d] of [['otra','A1',datos()],['placa','P24',datos()],['placa','A1',datos({volumenReal:101})],['placa','A1',datos({resultado:NaN})],['placa','A1',datos({muestraId:'ausente'})]])assert.ok(Ejecucion.pozo(l,placa,id,d).error);\n assert.deepEqual(l.ejecucion.placas[0].pozos,{});\n});\ntest('una medida corregida conserva el valor anterior y distingue fecha medida de registro',()=>{\n const l=Ejecucion.inicia(prepara().lote).lote;\n const primero=Ejecucion.pozo(l,'placa','A1',datos({fechaMedida:'2026-09-29T10:30:00+02:00'})).lote;\n const r=Ejecucion.pozo(primero,'placa','A1',datos({resultado:3}));assert.equal(r.error,undefined);\n const p=r.lote.ejecucion.placas[0];assert.equal(p.pozos.A1.resultado,3);assert.equal(p.historial.length,2);assert.equal(p.historial[1].antes.resultado,2);assert.equal(p.historial[0].despues.fechaMedida,'2026-09-29T10:30:00+02:00');assert.equal(p.historial[0].despues.fechaRegistro.includes('Z'),true);\n assert.equal(primero.ejecucion.placas[0].pozos.A1.resultado,2);\n});\ntest('transferencia real conserva volumen e historial y exige una nueva lectura después de mezclar',()=>{\n let l=Ejecucion.inicia(prepara().lote).lote;\n l=Ejecucion.pozo(l,'placa','A1',datos({volumenReal:80})).lote;l=Ejecucion.pozo(l,'placa','A2',datos({volumenReal:10,resultado:7})).lote;\n const r=Ejecucion.transfiere(l,'placa','A1','A2',30,'Transferencia declarada');assert.equal(r.error,undefined);\n const p=r.lote.ejecucion.placas[0];assert.equal(p.pozos.A1.volumenReal,50);assert.equal(p.pozos.A2.volumenReal,40);assert.equal(p.pozos.A2.resultado,null);assert.equal(p.historial.at(-1).antes.destino.resultado,7);assert.equal(p.historial.at(-1).volumen,30);\n assert.ok(Ejecucion.transfiere(l,'placa','A1','A2',100,'Exceso').error);assert.ok(Ejecucion.transfiere(l,'placa','A1','A2',1,'').error);\n});\ntest('CSV de medidas se importa entero o se rechaza sin cambiar el lote',()=>{\n const l=Ejecucion.inicia(prepara().lote).lote;\n const correcto='Pozo,Volumen real (µL),Resultado,Unidad resultado\\nA1,0,0,A\\nA2,,4,A';\n const r=Ejecucion.importaPlacaCSV(l,'placa',correcto);assert.equal(r.error,undefined);assert.equal(r.cantidad,2);assert.equal(r.lote.ejecucion.placas[0].pozos.A1.volumenReal,0);assert.equal(r.lote.ejecucion.placas[0].pozos.A2.volumenReal,null);assert.equal(r.lote.ejecucion.placas[0].pozos.A2.origen.tipo,'csv');assert.match(r.lote.ejecucion.placas[0].pozos.A2.origen.sha256TextoUTF8,/^[a-f0-9]{64}$/);\n for(const texto of [correcto+'\\nP24,1,2,A',correcto+'\\nA1,1,2,A',correcto.replace(',,4',',,inválido'),'Ejecución,Pozo,Resultado\\notra,A1,2'])assert.ok(Ejecucion.importaPlacaCSV(l,'placa',texto).error);\n assert.deepEqual(l.ejecucion.placas[0].pozos,{});\n const csv=Ejecucion.placaCSV(r.lote,'placa').texto,vuelve=Ejecucion.importaPlacaCSV(l,'placa',csv);assert.equal(vuelve.error,undefined);assert.equal(vuelve.cantidad,2);\n});\ntest('fechas de medida requieren zona explícita y un día existente',()=>{\n for(const f of ['2026-02-28T12:00:00Z','2024-02-29T23:59:59+02:00','2026-09-30T12:00-05:00'])assert.equal(Ejecucion.fechaMedidaValida(f),true,f);\n for(const f of ['2026-02-29T12:00:00Z','2026-02-30T12:00:00Z','2026-09-30T12:00','2026-13-01T12:00:00Z','2026-09-30T25:00:00Z'])assert.equal(Ejecucion.fechaMedidaValida(f),false,f);\n});\ntest('saneado y exportación preservan todas las medidas, muestras e historial',()=>{\n const {p,lote}=prepara();let l=Ejecucion.muestra(lote,{id:'m1',nombre:'Muestra',origen:'Origen',loteId:'',notas:''},true).lote;l=Ejecucion.inicia(l).lote;l=Ejecucion.pozo(l,'placa','A1',datos({muestraId:'m1'})).lote;p.lotes.push(l);\n const r=Protocolo.sanea(JSON.parse(JSON.stringify(p)));assert.deepEqual(r.avisos,[]);assert.deepEqual(r.protocolo.lotes[0].ejecucion,l.ejecucion);\n l=Ejecucion.paso(l,'paso',true).lote;l=Ejecucion.termina(l).lote;assert.ok(Ejecucion.pozo(l,'placa','A1',datos()).error);assert.ok(Ejecucion.transfiere(l,'placa','A1','A2',1,'Transferir').error);\n});\n",
  "tests/preparacion.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {N} from '../herramientas/nucleo.mjs';\nconst {Laboratorio,Protocolo,Ejecucion,Placas,Muestras}=N;\nconst prepara=()=>{const p=Protocolo.nuevo({reactivos:[Protocolo.nuevoReactivo({id:'r',nombre:'Sal',cantidad:7,unidad:'g'})],pasos:[Protocolo.nuevoPaso({id:'paso',texto:'Medir',tiempo:5,unidadTiempo:'min'})],flujo:{modo:'secuencial'}}),lab=Laboratorio.nuevo();lab.inventario=[Laboratorio.nuevoArticulo({id:'frasco',nombre:'Sal',cantidad:10,unidad:'g'})];return {p,lab};};\ntest('lista previa excluye reservas ajenas y conserva las propias al comprobar un lote',()=>{\n const {p,lab}=prepara();lab.reservas=[{id:'a',articuloId:'frasco',loteId:'propio',cantidad:6,estado:'activa'},{id:'b',articuloId:'frasco',loteId:'ajeno',cantidad:2,estado:'activa'}];\n const general=Laboratorio.existencias(p,lab,1,'2026-09-30')[0],propio=Laboratorio.existencias(p,lab,1,'2026-09-30','propio')[0];assert.equal(general.disponible,2);assert.equal(general.estado,'insuficiente');assert.equal(propio.disponible,8);assert.equal(propio.estado,'suficiente');\n const lista=Laboratorio.listaVerificacion(p,lab,1,'2026-09-30',{lote:{id:'propio',ejecucion:{equipos:[],muestrasRegistros:[]}}});assert.match(lista[0].items[0].detalle,/8 g libres/);assert.equal(lista[0].items[0].alerta,false);assert.equal(lab.inventario[0].cantidad,10);\n});\ntest('frascos caducados no eligen una unidad incompatible frente a los vigentes',()=>{\n const {p,lab}=prepara();p.reactivos[0].densidad=1;lab.inventario[0].caducidad='2020-01-01';lab.inventario.push(Laboratorio.nuevoArticulo({nombre:'Sal',cantidad:10,unidad:'mL'}));const r=Laboratorio.existencias(p,lab,1,'2026-09-30')[0];assert.equal(r.unidad,'mL');assert.equal(r.estado,'suficiente');\n});\ntest('lista de ejecución usa certificados y muestras conservados, con placas y orden fijo',()=>{\n const {p,lab}=prepara();const equipo=Laboratorio.nuevoInstrumento({id:'equipo',nombre:'Instrumento utilizado',proximaCalibracion:'2025-01-01'});lab.instrumentos=[equipo,Laboratorio.nuevoInstrumento({id:'ajeno',nombre:'Equipo ajeno',proximaCalibracion:'2020-01-01'})];p.caracterizacion=[Protocolo.nuevaTecnica('uvvis',{instrumentoId:equipo.id})];p.muestras=[Muestras.nueva({id:'m',nombre:'Muestra conservada',cantidad:2,unidad:'mL',estado:'disponible',ubicacion:'Lugar conservado'})];const placa=Placas.nueva(6,'Placa prevista');placa.capacidad=100;placa.pozos={A1:{volumen:80}};p.placas=[Placas.sanea(placa)];let lote=Ejecucion.muestra(Ejecucion.nuevoLote(p,lab),p.muestras[0],true).lote;lote.factor=2;\n lab.instrumentos[0].proximaCalibracion='2027-01-01';p.muestras[0].nombre='Nombre cambiado';p.pasos[0].tiempo=1;\n const lista=Laboratorio.listaVerificacion(lote.revision.protocolo,lab,lote.factor,'2026-09-30',{lote}),cal=lista.find(x=>x.titulo==='Calibraciones de esta ejecución');assert.equal(cal.items.length,1);assert.equal(cal.items[0].alerta,true);assert.match(cal.items[0].detalle,/2027-01-01/);assert.match(cal.items[0].texto,/2025-01-01/);assert.ok(!JSON.stringify(lista).includes('Equipo ajeno'));assert.match(lista.find(x=>x.titulo==='Orden del procedimiento').items[0].detalle,/300 s/);assert.equal(lista.find(x=>x.titulo==='Placas previstas').items[0].alerta,true);assert.match(lista.find(x=>x.titulo==='Muestras conservadas en la ejecución').items[0].texto,/Muestra conservada/);\n});\ntest('fechas imposibles del inventario y calibración se rechazan antes de guardar',()=>{\n const {lab}=prepara();lab.inventario[0].caducidad='2026-02-30';assert.ok(Laboratorio.valida(lab).some(x=>/caducidad/.test(x)));lab.inventario[0].caducidad='2024-02-29';assert.deepEqual(Laboratorio.valida(lab),[]);lab.instrumentos=[Laboratorio.nuevoInstrumento({proximaCalibracion:'2026-13-01'})];assert.ok(Laboratorio.valida(lab).some(x=>/calibración/.test(x)));\n});\n\ntest('inventario rechaza nombres heredados de propiedades como unidades antes de restaurar',()=>{\n const {lab}=prepara();for(const unidad of ['constructor','toString','__proto__']){lab.inventario[0].unidad=unidad;assert.ok(Laboratorio.valida(lab).some(x=>/unidad inválida/.test(x)));assert.equal(Laboratorio.necesario(Protocolo.nuevoReactivo({cantidad:1,unidad}),1,'g'),null);}\n});\n",
  "tests/protocolo.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\n/* El modelo del protocolo: saneado de archivos ajenos, cantidades escaladas,\n   revisión de reproducibilidad, sección de métodos y lotes. */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {N, cerca} from '../herramientas/nucleo.mjs';\n\nconst {Protocolo, Redaccion, Lotes, DATOS} = N;\nconst plantilla = id => Protocolo.sanea(JSON.parse(JSON.stringify(DATOS.plantillas[id].protocolo))).protocolo;\n\ntest('las tres plantillas se sanean sin avisos', () => {\n  for (const id of Object.keys(DATOS.plantillas)) {\n    const r = Protocolo.sanea(DATOS.plantillas[id].protocolo);\n    assert.equal(r.error, undefined, id);\n    assert.deepEqual(r.avisos, [], id);\n    assert.ok(r.protocolo.titulo, id);\n  }\n});\n\ntest('sanea rechaza lo que no es un protocolo y avisa de lo que descarta', () => {\n  assert.match(Protocolo.sanea(null).error, /no contiene/);\n  assert.match(Protocolo.sanea({format: 'otra-cosa'}).error, /no reconocido/);\n  const r = Protocolo.sanea({titulo: 'x', reactivos: 'no-lista', caracterizacion: [{tecnica: 'tecnica-inexistente', valores: {condiciones: 'a'}}],\n    disoluciones: [{nombre: 'huérfana', reactivo: 'no-existe', concentracion: 1}], pasos: [{texto: 'a', temperatura: 'abc', unidadTiempo: 'años'}]});\n  assert.equal(r.protocolo.reactivos.length, 0);\n  assert.equal(r.protocolo.caracterizacion[0].tecnica, 'otra');\n  assert.equal(r.protocolo.disoluciones[0].reactivo, '');\n  assert.equal(r.protocolo.pasos[0].temperatura, null);\n  assert.equal(r.protocolo.pasos[0].unidadTiempo, 'h');\n  assert.equal(r.avisos.length, 3);\n});\n\ntest('cantidades del lote: mmol a gramos con pureza y escala', () => {\n  const p = plantilla('hdl-znal');\n  const zn = p.reactivos.find(r => r.id === 'r-zn');\n  cerca(Protocolo.masaAPesar(zn, 1), 0.0375 * 297.478 / 0.98, 1e-9, 'Zn base');\n  cerca(Protocolo.masaAPesar(zn, 2), 2 * 0.0375 * 297.478 / 0.98, 1e-9, 'Zn ×2');\n  cerca(Protocolo.moles(zn, 2), 0.075, 1e-12, 'mol ×2');\n  const naoh = p.reactivos.find(r => r.id === 'r-naoh');\n  assert.equal(Protocolo.masaAPesar(naoh, 1), null, 'sin cantidad no se inventa');\n  const d = Protocolo.disolucion(p, p.disoluciones[0], 1);\n  cerca(d.masa, 0.2 * 39.997 / 0.97, 1e-9, 'NaOH 2 mol/L, 100 mL');\n});\n\ntest('la revisión de reproducibilidad señala lo que falta y deja de hacerlo al completarlo', () => {\n  const p = plantilla('hdl-znal');\n  const r = Protocolo.revisa(p);\n  assert.ok(r.faltas > 0, 'faltan los equipos de DRX, FTIR y TGA');\n  assert.ok(r.avisos.some(a => a.seccion === 'caracterizacion' && /DRX: falta «difractómetro/.test(a.texto)));\n  assert.ok(r.avisos.some(a => /proveedor/.test(a.texto) && a.nivel === 'sugerencia'));\n  for (const c of p.caracterizacion) c.valores.equipo = 'Equipo de prueba';\n  const r2 = Protocolo.revisa(p);\n  assert.ok(r2.faltas < r.faltas);\n  assert.ok(r2.indice > r.indice);\n  const vacio = Protocolo.revisa(Protocolo.nuevo());\n  assert.ok(vacio.avisos.some(a => /no tiene título/.test(a.texto)));\n  assert.ok(vacio.avisos.some(a => /no tiene pasos/.test(a.texto)));\n});\n\ntest('la sección de métodos solo dice lo que el protocolo contiene', () => {\n  const p = plantilla('hdl-znal');\n  const es = Redaccion.textoPlano(p, 'es');\n  assert.match(es, /nitrato de zinc hexahidratado \\(Zn\\(NO₃\\)₂·6H₂O, 98 %\\)/);\n  assert.match(es, /sin purificación adicional/);\n  assert.match(es, /11,38 g \\(37,5 mmol\\) de Zn\\(NO₃\\)₂·6H₂O/);\n  assert.match(es, /Se utilizaron nitrato de zinc hexahidratado/);\n  assert.match(es, /La suspensión se envejeció \\(65 °C, 18 h, con agitación a 300 rpm\\)\\./);\n  assert.match(es, /\\(1 mol\\/L en metal total\\), con agitación a 300 rpm\\./);\n  // Los pasos en infinitivo sin redacción para el artículo se señalan.\n  const sinArticulo = plantilla('drx-ftir');\n  assert.ok(Protocolo.revisa(sinArticulo).avisos.some(a => /infinitivo/.test(a.texto)));\n  assert.match(es, /\\(25 °C, pH 10,0, con agitación a 500 rpm, en atmósfera de N₂\\)/);\n  assert.match(es, /de 2θ = 5 a 70°, con paso de 0,02°/);\n  assert.doesNotMatch(es, /undefined|NaN|null/);\n  const en = Redaccion.textoPlano(p, 'en');\n  assert.match(en, /pH 10\\.0, stirring at 500 rpm, under N₂/);\n  assert.match(en, /over 2θ = 5–70° with a step of 0\\.02°/);\n  assert.doesNotMatch(en, /undefined|NaN|null/);\n  // Un campo vacío se omite: la plantilla de DRX sin datos no inventa condiciones.\n  const vacia = Redaccion.textoPlano(plantilla('drx-ftir'), 'es');\n  assert.match(vacia, /Los difractogramas de rayos X de polvo se registraron\\./);\n  assert.doesNotMatch(vacia, /Cu Kα/);\n});\n\ntest('el Markdown lleva la tabla de pesadas escalada y la procedencia', () => {\n  const p = plantilla('naoh-khp');\n  p.escala = 2;\n  const md = Redaccion.markdown(p, {version: '0.1.0', fecha: '2026-09-23'});\n  assert.match(md, /^# Preparación y valoración/);\n  assert.match(md, /\\| Biftalato de potasio.* \\| 0,8 g \\|/);\n  assert.match(md, /\\| NaOH 0,1 mol\\/L \\| Hidróxido de sodio \\| 0,1 \\| 2000 \\| 8,247 \\|/);\n  assert.match(md, /Generado con Erlen Methods 0\\.1\\.0 el 2026-09-23/);\n});\n\ntest('lotes: desviación de las pesadas y rendimiento frente al teórico', () => {\n  const p = plantilla('hdl-znal');\n  const l = Protocolo.nuevoLote({factor: 1, pesadas: {'r-zn': 11.50}, masaObtenida: 4.9});\n  const ps = Lotes.pesadas(p, l, 1);\n  const zn = ps.find(x => x.id === 'r-zn');\n  cerca(zn.desviacion, (11.50 - 0.0375 * 297.478 / 0.98) / (0.0375 * 297.478 / 0.98) * 100, 1e-9, 'desviación');\n  assert.equal(zn.fuera, true);\n  assert.match(Lotes.rendimiento(p, l).explicacion, /Sin rendimiento teórico/);\n  p.rendimientoTeorico = 5.315;\n  const r = Lotes.rendimiento(p, l);\n  cerca(r.porcentaje, 4.9 / 5.315 * 100, 1e-12, 'rendimiento');\n  p.lotes = [l, Protocolo.nuevoLote({factor: 2, masaObtenida: 10.2})];\n  const s = Lotes.resumen(p);\n  assert.equal(s.n, 2);\n  cerca(s.media, (4.9 / 5.315 + 10.2 / 10.63) / 2 * 100, 1e-9, 'media');\n});\n",
  "tests/secuencias.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {readFileSync} from 'node:fs';\nimport {createHash} from 'node:crypto';\nimport {unzipSync,strFromU8} from 'fflate';\nimport {N,cerca} from '../herramientas/nucleo.mjs';\nconst {Secuencias,Protocolo,Laboratorio,Ejecucion,Paquete}=N;\nconst oraculos=JSON.parse(readFileSync(new URL('fixtures/oraculos-biologia.json',import.meta.url),'utf8'));\ntest('FASTA local coincide con SeqIO y conserva cabeceras y huellas sin adivinar el alfabeto',()=>{\n const r=Secuencias.importaFASTA(oraculos.fasta.texto,'ADN');assert.equal(r.error,undefined);\n assert.deepEqual(r.secuencias.map(s=>({identificador:s.identificador,cabecera:s.cabecera,secuencia:s.secuencia})),oraculos.fasta.registros);\n for(const s of r.secuencias){assert.equal(s.sha256,createHash('sha256').update(s.secuencia).digest('hex'));assert.equal(s.origen.sha256TextoUTF8,createHash('sha256').update(oraculos.fasta.texto).digest('hex'));assert.ok(s.origen.fecha);}\n const otra=Secuencias.importaFASTA('>id Declarada\\na c g t\\n','ADN');assert.equal(otra.secuencias[0].secuencia,'ACGT');\n assert.equal(Secuencias.importaFASTA(Secuencias.fasta(r.secuencias),'ADN').secuencias[1].secuencia,r.secuencias[1].secuencia);\n});\nfor(const caso of oraculos.secuencias)test('complemento, GC y seis marcos de '+caso.secuencia+' coinciden con Biopython/Biotite',()=>{\n const s={tipo:caso.tipo,secuencia:caso.secuencia},r=Secuencias.resumen(s);assert.equal(r.error,undefined);cerca(r.gcEquiprobable,caso.gcEquiprobable,1e-12);\n assert.equal(Secuencias.complementoInverso(s.secuencia,s.tipo).secuencia,caso.complemento);\n for(const t of caso.traducciones){const z=Secuencias.traduce(s,t.tabla,t.marco,false);assert.equal(z.error,undefined);assert.equal(z.secuencia,t.secuencia,'tabla '+t.tabla+' marco '+t.marco);assert.equal(z.resto,t.resto);}\n if(caso.complementoBiotite)assert.equal(Secuencias.complementoInverso(s.secuencia,s.tipo).secuencia,caso.complementoBiotite);\n if(caso.traduccionBiotite)assert.equal(Secuencias.traduce(s,1,1,false).secuencia,caso.traduccionBiotite);\n});\nfor(const tabla of oraculos.tablas)test('los 64 codones de la tabla NCBI '+tabla.numero+' coinciden con Biopython',()=>{\n for(const [secuencia,esperado] of Object.entries(tabla.codones))assert.equal(Secuencias.traduce({tipo:'ADN',secuencia},tabla.numero,1,false).secuencia,esperado,secuencia);\n assert.deepEqual(Secuencias.TABLAS[tabla.numero].inicios,tabla.inicios);\n});\ntest('la validación CDS admite inicios alternativos por tabla y rechaza paradas internas',()=>{\n for(const c of oraculos.cds){const r=Secuencias.traduce({tipo:'ADN',secuencia:c.secuencia},c.tabla,1,true);assert.equal(r.error,undefined);assert.equal(r.secuencia,c.proteina);}\n for(const secuencia of ['GCCAAATAA','ATGAAATA','ATGTAATAG','ATGAAAAAA'])assert.ok(Secuencias.traduce({tipo:'ADN',secuencia},1,1,true).error);\n assert.equal(Secuencias.traduce({tipo:'ADN',secuencia:'ATGAAAT'},1,1,false).resto,1);\n});\ntest('GC ambiguo presenta un intervalo compatible y su media equiprobable es sólo una hipótesis',()=>{\n const r=Secuencias.resumen({tipo:'ADN',secuencia:'SWNN'});assert.equal(r.gcMin,25);assert.equal(r.gcMax,75);assert.equal(r.gcEquiprobable,50);assert.equal(r.ambiguas,4);\n const p=Secuencias.resumen({tipo:'proteina',secuencia:'MAKXBZJ*'});assert.equal(p.ambiguas,4);assert.equal(p.paradas,1);\n});\ntest('FASTA malformado, secuencias vacías y alfabetos incompatibles se rechazan enteros',()=>{\n for(const texto of ['', 'ACGT', '>id\\n', '>id\\nACGT\\n>id otra\\nACGT', '>id\\nAC-GT', '>id\\nACGT123', '>id\\nACGU', '>id\\nACGT\\n>otro\\nERROR'])assert.ok(Secuencias.importaFASTA(texto,'ADN').error,texto);\n assert.ok(Secuencias.importaFASTA('>id\\nACGT','ARN').error);assert.ok(Secuencias.complementoInverso('MAK','proteina').error);\n assert.ok(Secuencias.traduce({tipo:'ADN',secuencia:'ACGT'},7,1,false).error);assert.ok(Secuencias.traduce({tipo:'ADN',secuencia:'ACGT'},1,0,false).error);\n});\ntest('la traducción de un millón de bases ambiguas usa caché acotada y conserva el resto',()=>{\n const r=Secuencias.traduce({tipo:'ADN',secuencia:'N'.repeat(1000000)},1,1,false);assert.equal(r.error,undefined);assert.equal(r.secuencia.length,333333);assert.equal(r.resto,1);assert.equal(r.ambiguas,333333);\n});\ntest('secuencias y análisis se conservan en revisión, modelo y paquete; una huella alterada se detecta',()=>{\n const s=Secuencias.importaFASTA('>id Declarada\\nATGGCCAAATAA\\n','ADN').secuencias[0],p=Protocolo.nuevo({secuencias:[s],pasos:[Protocolo.nuevoPaso({texto:'Medir'})]});p.lotes.push(Ejecucion.nuevoLote(p,Laboratorio.nuevo()));\n const q=Protocolo.sanea(JSON.parse(JSON.stringify(p)));assert.deepEqual(q.avisos,[]);assert.deepEqual(q.protocolo.secuencias,p.secuencias);assert.equal(q.protocolo.lotes[0].revision.protocolo.secuencias[0].sha256,s.sha256);assert.equal(Protocolo.tieneContenido(Protocolo.nuevo({secuencias:[s]})),true);\n const archivos=unzipSync(Paquete.completo(p).zip);assert.ok(strFromU8(archivos['secuencias.fasta']).includes('ATGGCCAAATAA'));\n q.protocolo.secuencias[0].secuencia='ACGT';assert.ok(Protocolo.integridad(q.protocolo).some(x=>/huella/.test(x)));\n});\n",
  "tests/transformacion.test.mjs": "/* SPDX-License-Identifier: AGPL-3.0-only */\nimport test from 'node:test';\nimport assert from 'node:assert/strict';\nimport {unzipSync, strFromU8} from 'fflate';\nimport {N, cerca} from '../herramientas/nucleo.mjs';\n\nconst {Protocolo, Ejecucion, Laboratorio, Lotes, Versiones, Estadistica, Exportar, Busqueda, Paquete} = N;\nconst protocolo = () => Protocolo.nuevo({titulo: 'Ensayo de transferencia', rendimientoTeorico: 5,\n  reactivos: [Protocolo.nuevoReactivo({id: 'r1', nombre: 'Sal', cantidad: 2, unidad: 'g'})],\n  pasos: [Protocolo.nuevoPaso({id: 's1', texto: 'Transferir', accion: 'transferir', temperatura: 25})]});\n\ntest('un lote conserva cantidades y rendimiento de su revisión después de editar el protocolo', () => {\n  const p = protocolo(), l = Ejecucion.nuevoLote(p, Laboratorio.nuevo());\n  l.masaObtenida = 4; l.pesadas.r1 = 2;\n  p.reactivos[0].cantidad = 10; p.rendimientoTeorico = 100; p.pasos = [];\n  assert.equal(Lotes.pesadas(p, l)[0].planeada, 2);\n  assert.equal(Lotes.rendimiento(p, l).porcentaje, 80);\n  assert.equal(l.revision.protocolo.pasos.length, 1);\n  assert.equal(l.revision.protocolo.lotes, undefined);\n});\n\ntest('v1 migra sin inventar revisión y conserva mediciones de elementos eliminados', () => {\n  const r = Protocolo.sanea({format: Protocolo.FORMATO_ANTERIOR, lotes: [{pesadas: {retirado: 1.5}, parametros: {retirado: {ph: 7.4}}}]});\n  assert.equal(r.protocolo.format, Protocolo.FORMATO);\n  assert.equal(r.protocolo.lotes[0].revision, null);\n  assert.equal(r.protocolo.lotes[0].pesadas.retirado, 1.5);\n  assert.equal(r.protocolo.lotes[0].parametros.retirado.ph, 7.4);\n});\n\ntest('exportar y sanear preserva revisiones, muestras y registros completos', () => {\n  const p = protocolo(); let l = Ejecucion.inicia(Ejecucion.nuevoLote(p, Laboratorio.nuevo())).lote;\n  l.ejecucion.muestras = 'M-2026 · agua de campo';\n  l = Ejecucion.paso(l, 's1', true, 'Transferencia registrada').lote;\n  l = Ejecucion.termina(l).lote; p.lotes.push(l); p.reactivos = []; p.pasos = [];\n  const r = Protocolo.sanea(JSON.parse(JSON.stringify(p)));\n  assert.deepEqual(r.avisos, []);\n  assert.equal(r.protocolo.lotes[0].revision.protocolo.reactivos[0].cantidad, 2);\n  assert.equal(r.protocolo.lotes[0].ejecucion.pasos.s1.nota, 'Transferencia registrada');\n  assert.equal(r.protocolo.lotes[0].ejecucion.muestras, l.ejecucion.muestras);\n});\n\ntest('ejecución exige revisión, pasos completos y capacidad suficiente', () => {\n  const p = protocolo();\n  assert.match(Ejecucion.inicia(Protocolo.nuevoLote()).error, /revisión/);\n  let l = Ejecucion.nuevoLote(p, Laboratorio.nuevo());\n  assert.ok(Ejecucion.paso(l, 's1', true).error);\n  l = Ejecucion.inicia(l).lote;\n  assert.ok(Ejecucion.inicia(l).error);\n  assert.ok(Ejecucion.paso(l, 'ajeno', true).error);\n  assert.ok(Ejecucion.termina(l).error);\n  l = Ejecucion.paso(l, 's1', true, 'Nota').lote;\n  const fecha = l.ejecucion.pasos.s1.fecha;\n  assert.equal(Ejecucion.paso(l, 's1', true).lote.ejecucion.pasos.s1.fecha, fecha);\n  l = Ejecucion.termina(l).lote;\n  assert.equal(l.ejecucion.estado, 'terminado');\n  assert.ok(Ejecucion.paso(l, 's1', false).error);\n  p.pasos[0].volumen = 30; p.pasos[0].capacidad = 50; p.escala = 2;\n  assert.match(Ejecucion.inicia(Ejecucion.nuevoLote(p, Laboratorio.nuevo())).error, /capacidad/);\n});\n\ntest('la calibración utilizada no cambia al editar el inventario', () => {\n  const p = protocolo(), lab = Laboratorio.nuevo();\n  lab.instrumentos.push(Laboratorio.nuevoInstrumento({id: 'eq1', nombre: 'Pipeta', tipo: 'volumetrico', nominal: 10, tolerancia: 0.02, unidad: 'mL', proximaCalibracion: '2026-10-01'}));\n  p.caracterizacion.push(Protocolo.nuevaTecnica('uvvis', {instrumentoId: 'eq1'}));\n  const l = Ejecucion.nuevoLote(p, lab);\n  lab.instrumentos[0].proximaCalibracion = '2027-01-01';\n  assert.equal(l.ejecucion.equipos[0].proximaCalibracion, '2026-10-01');\n  p.lotes.push(l);\n  const conservado = Protocolo.sanea(JSON.parse(JSON.stringify(p))).protocolo.lotes[0].ejecucion.equipos[0];\n  assert.equal(conservado.tipo, 'volumetrico');\n  assert.equal(conservado.nominal, 10);\n  assert.equal(conservado.tolerancia, 0.02);\n  assert.equal(conservado.unidad, 'mL');\n});\n\ntest('consumos por frasco son atómicos, idempotentes y no permiten existencias negativas', () => {\n  const lab = Laboratorio.nuevo(); lab.inventario.push(Laboratorio.nuevoArticulo({id: 'i1', cantidad: 10}));\n  const datos = {articuloId: 'i1', loteId: 'l1', cantidad: 2, clave: 'l1:r1', motivo: 'Pesada real'};\n  const r = Laboratorio.consume(lab, datos);\n  assert.equal(lab.inventario[0].cantidad, 10);\n  assert.equal(r.laboratorio.inventario[0].cantidad, 8);\n  assert.equal(r.laboratorio.movimientos[0].cantidad, -2);\n  const repetido = Laboratorio.consume(r.laboratorio, datos);\n  assert.equal(repetido.repetido, true);\n  assert.equal(repetido.laboratorio.movimientos.length, 1);\n  for (const cantidad of [0, -1, NaN, Infinity, 11]) assert.ok(Laboratorio.consume(lab, {...datos, cantidad}).error);\n  assert.deepEqual(Laboratorio.sanea(r.laboratorio).movimientos, r.laboratorio.movimientos);\n});\n\ntest('existencias suman g y mg y mantienen explícita una cantidad desconocida', () => {\n  const p = protocolo(), lab = Laboratorio.nuevo();\n  lab.inventario = [Laboratorio.nuevoArticulo({nombre: 'Sal', cantidad: 1, unidad: 'g'}), Laboratorio.nuevoArticulo({nombre: 'Sal', cantidad: 1500, unidad: 'mg'})];\n  const r = Laboratorio.existencias(p, lab)[0];\n  assert.equal(r.disponible, 2.5); assert.equal(r.estado, 'suficiente');\n  lab.inventario[0].cantidad = null;\n  assert.equal(Laboratorio.existencias(p, lab)[0].estado, 'sinComparar');\n});\n\ntest('las diferencias incluyen CAS, GHS, redacción, instrumentos y bibliografía', () => {\n  const a = protocolo(), b = JSON.parse(JSON.stringify(a));\n  b.reactivos[0].cas = '7647-14-5'; b.reactivos[0].ghs = ['H314']; b.pasos[0].articulo = 'Se transfirió';\n  b.resultadoUnidad = 'mg/L'; b.literatura.push(Protocolo.nuevaCondicion({parametro: 'pH', fuentes: [{cita: 'Fuente anotada'}]}));\n  const texto = Versiones.diferencias(a, b).map(d => d.texto).join(' ');\n  for (const fragmento of ['cas', 'ghs', 'articulo', 'unidad del resultado', 'Se añadió']) assert.ok(texto.includes(fragmento));\n});\n\ntest('la carta evita mezclar revisiones y permite cambios en fechas administrativas', () => {\n  const p = protocolo();\n  for (const resultado of [10, 11, 9]) { p.modificado = String(resultado); p.lotes.push(Object.assign(Ejecucion.nuevoLote(p, Laboratorio.nuevo()), {resultado})); }\n  assert.equal(Lotes.control(p).error, undefined);\n  p.reactivos[0].cantidad = 20; p.lotes.push(Ejecucion.nuevoLote(p, Laboratorio.nuevo()));\n  assert.match(Lotes.control(p).error, /revisiones distintas/);\n});\n\ntest('GUM incorpora covarianzas y admite correlación perfecta', () => {\n  const e = {a: {valor: 2, u: 1}, b: {valor: 3, u: 2}};\n  cerca(Estadistica.propaga('a+b', e, [{a: 'a', b: 'b', rho: 0.5}]).uc, Math.sqrt(7));\n  cerca(Estadistica.propaga('a-b', e, [{a: 'a', b: 'b', rho: 1}]).uc, 1);\n  cerca(Estadistica.propaga('a-b', {a: {valor: 2, u: 1}, b: {valor: 2, u: 1}}, [{a: 'a', b: 'b', rho: 1}]).uc, 0);\n  assert.ok(Estadistica.propaga('a+b', e, [{a: 'a', b: 'b', rho: 1.1}]).error);\n  const tres = {...e, c: {valor: 1, u: 1}};\n  assert.ok(Estadistica.propaga('a+b+c', tres, [{a: 'a', b: 'b', rho: 0.9}, {a: 'a', b: 'c', rho: 0.9}, {a: 'b', b: 'c', rho: -0.9}]).error);\n  assert.ok(Estadistica.propaga('a+b', {...e, a: {valor: 1, u: -1}}).error);\n});\n\ntest('PapaParse detecta el separador fuera de comillas y diagnostica archivos incompletos', () => {\n  const r = Exportar.leeCSV('\"código,con,varias,comas\";valor\\r\\n\"línea\\nsegunda\";2,5');\n  assert.equal(r.separador, ';'); assert.equal(r.filas[0][0], 'línea\\nsegunda');\n  assert.ok(Exportar.leeCSV('a;b\\n\"sin cerrar;2').error);\n  assert.ok(Exportar.leeCSV('a;b\\n1;2;3').error);\n});\n\ntest('CSV conserva sólo fechas conocidas y señala valores que no deben importarse como vacíos', () => {\n  const p = protocolo(), csv = Exportar.leeCSV('código;fecha;masa\\nL1;2026-02-28;2,5\\nL2;2026-02-30;incorrecto');\n  const r = Exportar.lotesDesdeCSV(p, csv, {codigo: 0, fecha: 1, masa: 2});\n  assert.equal(r.lotes[0].fecha, '2026-02-28');\n  assert.equal(r.lotes[0].masaObtenida, 2.5);\n  assert.equal(r.lotes[1].fecha, '');\n  assert.equal(r.avisos.length, 2);\n  assert.equal(Exportar.lotesDesdeCSV(p, csv, {codigo: 0}).lotes[0].fecha, '');\n  assert.equal(r.lotes[0].revision, null);\n  const ausente = Exportar.lotesDesdeCSV(p, {columnas: ['código', 'pH'], filas: [['L', '']]}, {codigo: 0, parametros: [{col: 1, pasoId: 's1', campo: 'ph'}]});\n  assert.deepEqual(ausente.avisos, []);\n  assert.deepEqual(ausente.lotes[0].parametros, {});\n});\n\ntest('el paquete conserva datos, unidades históricas y referencias sin fabricar identificadores', () => {\n  const p = protocolo(), l = Ejecucion.nuevoLote(p, Laboratorio.nuevo());\n  l.codigo = '=1+1'; p.lotes.push(l);\n  p.literatura.push(Protocolo.nuevaCondicion({fuentes: [{cita: 'Artículo anotado', doi: ''}]}));\n  const archivos = unzipSync(Paquete.investigacion(p, {version: 'test'}).zip);\n  assert.equal(JSON.parse(strFromU8(archivos['protocolo.json'])).lotes[0].revision.protocolo.reactivos[0].cantidad, 2);\n  assert.ok(strFromU8(archivos['lotes.csv']).includes(\"'=1+1\"));\n  const grafo = JSON.parse(strFromU8(archivos['ro-crate-metadata.json']))['@graph'];\n  assert.equal(grafo.find(x => x['@id'] === '#referencia-1').name, 'Artículo anotado');\n  assert.equal(grafo.find(x => x['@id'] === './').license, undefined);\n});\n\ntest('búsqueda local tolera erratas y mantiene la ordenación sin consulta', () => {\n  const lista = [{id: 'a', titulo: 'Calibración de pipetas', modificado: '2026-01-01'}, {id: 'b', titulo: 'Cultivo celular', modificado: '2026-02-01'}];\n  assert.equal(Busqueda.protocolos(lista, 'calibracion pipetaz')[0].id, 'a');\n  assert.equal(Busqueda.protocolos(lista, '')[0].id, 'b');\n});\n",
  "docs/catalogo-referencias.json": "{\n  \"consulted_at\": \"2026-09-30\",\n  \"product\": {\n    \"repository\": \"erlen-frontier-ops/erlen-suite\",\n    \"commit\": \"de8692a9c721a0f5d13f554a319802ad98aadf74\",\n    \"path\": \"apps/methods\",\n    \"version\": \"0.2.0\"\n  },\n  \"scope\": \"Catálogo de 64 referencias y trazabilidad de Methods 0.4.0. Se incorporan bibliotecas concretas, patrones propios y oráculos independientes; no se afirma haber integrado cada backend.\",\n  \"count\": 64,\n  \"repositories\": [\n    {\n      \"repo\": \"elabftw/elabftw\",\n      \"url\": \"https://github.com/elabftw/elabftw\",\n      \"stars\": 1431,\n      \"forks\": 335,\n      \"pushed_at\": \"2026-09-29T18:51:10Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"AGPL-3.0\",\n      \"area\": \"Protocolos y ejecución\",\n      \"recommendation\": \"Referencia funcional prioritaria\",\n      \"license_review\": \"AGPL-3.0; texto verificado\",\n      \"adaptation\": \"Plantillas, recursos enlazados, estados y trazabilidad; backend PHP/MySQL, adaptar patrones.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/elabftw/elabftw/blob/master/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/elabftw/elabftw/blob/master/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/elabftw/elabftw\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Revisión fija, ejecución, adjuntos con hash y vínculos a protocolo, lote, muestra o instrumento\",\n        \"archivos\": [\n          \"16-ejecucion.js\",\n          \"54-p-archivos.js\"\n        ],\n        \"pendiente\": \"Firmas electrónicas y auditoría inmutable en preparación.\"\n      }\n    },\n    {\n      \"repo\": \"ComPlat/chemotion_ELN\",\n      \"url\": \"https://github.com/ComPlat/chemotion_ELN\",\n      \"stars\": 189,\n      \"forks\": 72,\n      \"pushed_at\": \"2026-09-29T19:30:38Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"AGPL-3.0\",\n      \"area\": \"Protocolos y química\",\n      \"recommendation\": \"Referencia funcional prioritaria\",\n      \"license_review\": \"AGPL-3.0-or-later según README\",\n      \"adaptation\": \"Reacciones, materiales, condiciones y variaciones; Rails/React, adaptar modelo.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/ComPlat/chemotion_ELN/blob/main/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/ComPlat/chemotion_ELN/blob/main/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/ComPlat/chemotion_ELN\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Condiciones por revisión y vínculo de instrumento en caracterización\",\n        \"archivos\": [\n          \"04-protocolo.js\",\n          \"41-p-procedimiento.js\"\n        ],\n        \"pendiente\": \"Estructuras moleculares y entidades de reacción\"\n      }\n    },\n    {\n      \"repo\": \"scinote-eln/scinote-web\",\n      \"url\": \"https://github.com/scinote-eln/scinote-web\",\n      \"stars\": 308,\n      \"forks\": 115,\n      \"pushed_at\": \"2026-09-29T14:46:53Z\",\n      \"archived\": false,\n      \"default_branch\": \"develop\",\n      \"github_license\": \"NOASSERTION\",\n      \"area\": \"Protocolos y versiones\",\n      \"recommendation\": \"Referencia funcional prioritaria\",\n      \"license_review\": \"MPL-2.0; texto verificado\",\n      \"adaptation\": \"Protocolos originales, borradores y versiones publicadas; adaptar separación de revisiones.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE.txt\",\n          \"url\": \"https://github.com/scinote-eln/scinote-web/blob/develop/LICENSE.txt\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/scinote-eln/scinote-web/blob/develop/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/scinote-eln/scinote-web\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Definición del protocolo separada de la referencia fija de ejecución\",\n        \"archivos\": [\n          \"04-protocolo.js\",\n          \"16-ejecucion.js\"\n        ],\n        \"pendiente\": \"Publicación formal y ciclo de aprobación de revisiones\"\n      }\n    },\n    {\n      \"repo\": \"Bioprotocols/labop\",\n      \"url\": \"https://github.com/Bioprotocols/labop\",\n      \"stars\": 51,\n      \"forks\": 10,\n      \"pushed_at\": \"2024-10-07T18:59:11Z\",\n      \"archived\": false,\n      \"default_branch\": \"develop\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Protocolos e intercambio\",\n      \"recommendation\": \"Referencia de modelo, diferida\",\n      \"license_review\": \"MIT; texto verificado\",\n      \"adaptation\": \"Pasos y parámetros tipados, identidades; Python/RDF, última actividad 2024.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE.txt\",\n          \"url\": \"https://github.com/Bioprotocols/labop/blob/develop/LICENSE.txt\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/Bioprotocols/labop/blob/develop/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/Bioprotocols/labop\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Acciones tipadas, dependencias DAG sin ciclos, orden fijado por ejecución y ruta crítica cuando hay tiempos declarados\",\n        \"archivos\": [\n          \"03-flujo.js\",\n          \"16-ejecucion.js\",\n          \"60-p-flujo.js\"\n        ],\n        \"pendiente\": \"No se incorpora intercambio LabOP/RDF, programación de robots ni reserva temporal de equipos.\"\n      }\n    },\n    {\n      \"repo\": \"Opentrons/opentrons\",\n      \"url\": \"https://github.com/Opentrons/opentrons\",\n      \"stars\": 520,\n      \"forks\": 208,\n      \"pushed_at\": \"2026-09-30T01:52:05Z\",\n      \"archived\": false,\n      \"default_branch\": \"edge\",\n      \"github_license\": \"Apache-2.0\",\n      \"area\": \"Procedimientos y placas\",\n      \"recommendation\": \"Referencia funcional prioritaria\",\n      \"license_review\": \"Apache-2.0; texto verificado\",\n      \"adaptation\": \"Protocol Designer, formas de pasos y orden; no importar marcas, analítica ni backend.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/Opentrons/opentrons/blob/edge/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/Opentrons/opentrons/blob/edge/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/Opentrons/opentrons\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Acciones, distribución de placas, dilución seriada y comprobación de recursos\",\n        \"archivos\": [\n          \"02-placas.js\",\n          \"16-ejecucion.js\",\n          \"50-p-placas.js\"\n        ],\n        \"pendiente\": \"No se genera un programa de robot validado.\"\n      }\n    },\n    {\n      \"repo\": \"PyLabRobot/pylabrobot\",\n      \"url\": \"https://github.com/PyLabRobot/pylabrobot\",\n      \"stars\": 552,\n      \"forks\": 203,\n      \"pushed_at\": \"2026-09-29T21:33:49Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Procedimientos y placas\",\n      \"recommendation\": \"Referencia funcional prioritaria\",\n      \"license_review\": \"MIT; texto verificado\",\n      \"adaptation\": \"Recursos, recipientes, pozos y seguimiento de volumen; adaptar reglas, no controlar hardware.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/PyLabRobot/pylabrobot/blob/main/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/PyLabRobot/pylabrobot/blob/main/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/PyLabRobot/pylabrobot\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Transferencias previstas con conservación de volumen y capacidad por pozo\",\n        \"archivos\": [\n          \"02-placas.js\",\n          \"50-p-placas.js\"\n        ],\n        \"pendiente\": \"No se controla hardware ni se presentan planes como acciones ejecutadas.\"\n      }\n    },\n    {\n      \"repo\": \"inventree/InvenTree\",\n      \"url\": \"https://github.com/inventree/InvenTree\",\n      \"stars\": 7657,\n      \"forks\": 1567,\n      \"pushed_at\": \"2026-09-29T18:41:33Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Inventario y equipos\",\n      \"recommendation\": \"Referencia funcional prioritaria\",\n      \"license_review\": \"MIT; texto verificado\",\n      \"adaptation\": \"Existencias por lote, ubicaciones, trazabilidad y consumo; modelo Django, adaptar patrones.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/inventree/InvenTree/blob/master/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/inventree/InvenTree/blob/master/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/inventree/InvenTree\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Entradas, devoluciones, recuentos, reservas, consumos y conversión de unidades conservando historial\",\n        \"archivos\": [\n          \"15-laboratorio.js\",\n          \"55-p-laboratorio.js\"\n        ],\n        \"pendiente\": \"No sustituye un ERP multiusuario ni gestiona compras.\"\n      }\n    },\n    {\n      \"repo\": \"senaite/senaite.core\",\n      \"url\": \"https://github.com/senaite/senaite.core\",\n      \"stars\": 390,\n      \"forks\": 213,\n      \"pushed_at\": \"2026-09-29T10:16:59Z\",\n      \"archived\": false,\n      \"default_branch\": \"2.x\",\n      \"github_license\": \"GPL-2.0\",\n      \"area\": \"Inventario y calidad\",\n      \"recommendation\": \"Referencia de procesos\",\n      \"license_review\": \"GPL-2.0; alcance por fichero pendiente\",\n      \"adaptation\": \"Estados de muestras y análisis; revisar modalidad GPL antes de copiar código.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/senaite/senaite.core/blob/2.x/LICENSE\"\n        },\n        {\n          \"path\": \"README.rst\",\n          \"url\": \"https://github.com/senaite/senaite.core/blob/2.x/README.rst\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/senaite/senaite.core\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Muestras con cantidad desconocida explícita, estado, ubicación, movimientos y procedencia de alícuotas\",\n        \"archivos\": [\n          \"02-muestras.js\",\n          \"58-p-muestras.js\"\n        ],\n        \"pendiente\": \"No se copia código GPL ni se incorporan servidor, roles o auditoría inmutable.\"\n      }\n    },\n    {\n      \"repo\": \"fcskit/obsidian-eln\",\n      \"url\": \"https://github.com/fcskit/obsidian-eln\",\n      \"stars\": 85,\n      \"forks\": 5,\n      \"pushed_at\": \"2025-03-17T09:39:28Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"GPL-3.0\",\n      \"area\": \"Protocolos y ejecución\",\n      \"recommendation\": \"Secundaria\",\n      \"license_review\": \"GPL-3.0 según GitHub\",\n      \"adaptation\": \"Ideas de notas y registros locales; dependencia de Obsidian y actividad desde 2025.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/fcskit/obsidian-eln\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Notas locales, adjuntos y recuperación de ediciones al cerrar una pestaña\",\n        \"archivos\": [\n          \"31-estado.js\",\n          \"54-p-archivos.js\"\n        ],\n        \"pendiente\": \"No depende de Obsidian ni comparte archivos automáticamente.\"\n      }\n    },\n    {\n      \"repo\": \"epam/Indigo-ELN-v.-2.0\",\n      \"url\": \"https://github.com/epam/Indigo-ELN-v.-2.0\",\n      \"stars\": 59,\n      \"forks\": 29,\n      \"pushed_at\": \"2026-09-28T10:18:15Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Protocolos y química\",\n      \"recommendation\": \"Secundaria\",\n      \"license_review\": \"MIT según GitHub\",\n      \"adaptation\": \"Referencia alternativa de ELN químico; stack Java, no candidato a fork de Methods.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/epam/Indigo-ELN-v.-2.0\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Referencia alternativa de ELN químico; stack Java, no candidato a fork de Methods.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"rdkit/rdkit\",\n      \"url\": \"https://github.com/rdkit/rdkit\",\n      \"stars\": 3601,\n      \"forks\": 1069,\n      \"pushed_at\": \"2026-09-30T04:22:49Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"BSD-3-Clause\",\n      \"area\": \"Química\",\n      \"recommendation\": \"Referencia científica\",\n      \"license_review\": \"BSD-3-Clause; texto verificado\",\n      \"adaptation\": \"Validación de moléculas y descriptores; C++/Python, oráculo externo de desarrollo.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/rdkit/rdkit/blob/master/README.md\"\n        },\n        {\n          \"path\": \"license.txt\",\n          \"url\": \"https://github.com/rdkit/rdkit/blob/master/license.txt\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/rdkit/rdkit\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Validación de moléculas y descriptores; C++/Python, oráculo externo de desarrollo.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"rdkit/rdkit-js\",\n      \"url\": \"https://github.com/rdkit/rdkit-js\",\n      \"stars\": 249,\n      \"forks\": 47,\n      \"pushed_at\": \"2026-09-19T19:05:06Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": null,\n      \"area\": \"Química\",\n      \"recommendation\": \"Piloto condicionado a tamaño\",\n      \"license_review\": \"BSD-3-Clause según README y RDKit\",\n      \"adaptation\": \"Moléculas en navegador mediante WASM; verificar licencia y recursos del paquete exacto.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"readme.md\",\n          \"url\": \"https://github.com/rdkit/rdkit-js/blob/master/readme.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/rdkit/rdkit-js\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Moléculas en navegador mediante WASM; verificar licencia y recursos del paquete exacto.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"partridgejiang/Kekule.js\",\n      \"url\": \"https://github.com/partridgejiang/Kekule.js\",\n      \"stars\": 280,\n      \"forks\": 69,\n      \"pushed_at\": \"2026-09-21T13:00:32Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Química\",\n      \"recommendation\": \"Piloto opcional\",\n      \"license_review\": \"MIT; texto verificado\",\n      \"adaptation\": \"Editor químico e intercambio de formatos; autohospedado y con tokens de Erlen.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/partridgejiang/Kekule.js/blob/master/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/partridgejiang/Kekule.js/blob/master/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/partridgejiang/Kekule.js\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Editor químico e intercambio de formatos; autohospedado y con tokens de Erlen.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"reymond-group/smilesDrawer\",\n      \"url\": \"https://github.com/reymond-group/smilesDrawer\",\n      \"stars\": 609,\n      \"forks\": 93,\n      \"pushed_at\": \"2026-09-10T17:16:30Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Química\",\n      \"recommendation\": \"Piloto preferente para dibujo\",\n      \"license_review\": \"MIT; texto verificado\",\n      \"adaptation\": \"Dibujo ligero de SMILES en navegador; no resuelve termodinámica ni seguridad.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE.md\",\n          \"url\": \"https://github.com/reymond-group/smilesDrawer/blob/master/LICENSE.md\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/reymond-group/smilesDrawer/blob/master/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/reymond-group/smilesDrawer\",\n      \"implementacion\": {\n        \"estado\": \"Biblioteca incorporada\",\n        \"parte_elegida\": \"Lectura SMILES y dibujo SVG local\",\n        \"archivos\": [\n          \"22-moleculas.js\",\n          \"53-p-estructuras.js\"\n        ],\n        \"pendiente\": \"No acredita identidad, propiedades ni peligros; MOL/SDF en preparación.\"\n      }\n    },\n    {\n      \"repo\": \"cheminfo/openchemlib-js\",\n      \"url\": \"https://github.com/cheminfo/openchemlib-js\",\n      \"stars\": 91,\n      \"forks\": 25,\n      \"pushed_at\": \"2026-09-08T06:22:29Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"BSD-3-Clause\",\n      \"area\": \"Química\",\n      \"recommendation\": \"Alternativa al motor molecular\",\n      \"license_review\": \"BSD-3-Clause; texto verificado\",\n      \"adaptation\": \"Estructuras y herramientas químicas; comparar tamaño y funciones con RDKit.js.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/cheminfo/openchemlib-js/blob/main/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/cheminfo/openchemlib-js/blob/main/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/cheminfo/openchemlib-js\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Estructuras y herramientas químicas; comparar tamaño y funciones con RDKit.js.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"bjodah/chempy\",\n      \"url\": \"https://github.com/bjodah/chempy\",\n      \"stars\": 658,\n      \"forks\": 87,\n      \"pushed_at\": \"2026-09-19T09:04:23Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"BSD-2-Clause\",\n      \"area\": \"Química y disoluciones\",\n      \"recommendation\": \"Referencia científica prioritaria\",\n      \"license_review\": \"BSD-2-Clause; texto verificado\",\n      \"adaptation\": \"Estequiometría, equilibrios y comprobación de unidades; usar para contrastar cálculos.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/bjodah/chempy/blob/master/LICENSE\"\n        },\n        {\n          \"path\": \"README.rst\",\n          \"url\": \"https://github.com/bjodah/chempy/blob/master/README.rst\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/bjodah/chempy\",\n      \"implementacion\": {\n        \"estado\": \"Herramienta de verificación incorporada\",\n        \"parte_elegida\": \"Contraste independiente de la suma de fuerza iónica\",\n        \"archivos\": [\n          \"24-ciencia.js\",\n          \"herramientas/oraculos-cientificos.py\"\n        ],\n        \"pendiente\": \"No incorpora un solucionador de especiación o equilibrio general.\"\n      }\n    },\n    {\n      \"repo\": \"CalebBell/chemicals\",\n      \"url\": \"https://github.com/CalebBell/chemicals\",\n      \"stars\": 312,\n      \"forks\": 60,\n      \"pushed_at\": \"2026-08-03T17:23:09Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Disoluciones y física\",\n      \"recommendation\": \"Referencia científica\",\n      \"license_review\": \"MIT; texto verificado\",\n      \"adaptation\": \"Propiedades físicas y fuentes; revisar licencia/procedencia de cada tabla, no sólo del código.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE.txt\",\n          \"url\": \"https://github.com/CalebBell/chemicals/blob/master/LICENSE.txt\"\n        },\n        {\n          \"path\": \"README.rst\",\n          \"url\": \"https://github.com/CalebBell/chemicals/blob/master/README.rst\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/CalebBell/chemicals\",\n      \"implementacion\": {\n        \"estado\": \"Herramienta de verificación incorporada\",\n        \"parte_elegida\": \"Contraste de densidad de mezcla por volúmenes aditivos\",\n        \"archivos\": [\n          \"24-ciencia.js\",\n          \"herramientas/oraculos-cientificos.py\"\n        ],\n        \"pendiente\": \"No se copian tablas de propiedades ni se estima contracción.\"\n      }\n    },\n    {\n      \"repo\": \"CalebBell/thermo\",\n      \"url\": \"https://github.com/CalebBell/thermo\",\n      \"stars\": 787,\n      \"forks\": 142,\n      \"pushed_at\": \"2026-07-13T02:05:58Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Disoluciones y física\",\n      \"recommendation\": \"Secundaria científica\",\n      \"license_review\": \"MIT según GitHub\",\n      \"adaptation\": \"Termodinámica y equilibrio de fases; trabajo científico avanzado posterior.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/CalebBell/thermo\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Termodinámica y equilibrio de fases; trabajo científico avanzado posterior.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"CalebBell/fluids\",\n      \"url\": \"https://github.com/CalebBell/fluids\",\n      \"stars\": 455,\n      \"forks\": 94,\n      \"pushed_at\": \"2026-09-15T01:52:32Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Física\",\n      \"recommendation\": \"Secundaria científica\",\n      \"license_review\": \"MIT según GitHub\",\n      \"adaptation\": \"Flujo, hidráulica y operaciones; portado selectivo si se amplían calculadoras.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/CalebBell/fluids\",\n      \"implementacion\": {\n        \"estado\": \"Oráculo independiente y cálculo adaptado\",\n        \"parte_elegida\": \"Flujo laminar, presión inversa y Darcy–Weisbach/Colebrook con rugosidad declarada\",\n        \"archivos\": [\n          \"24-ciencia.js\",\n          \"56-p-ciencia.js\",\n          \"herramientas/oraculos-fluidos.py\",\n          \"tests/fluidos.test.mjs\"\n        ],\n        \"pendiente\": \"Pérdidas locales, flujo no newtoniano y redes de tuberías\"\n      }\n    },\n    {\n      \"repo\": \"biopython/biopython\",\n      \"url\": \"https://github.com/biopython/biopython\",\n      \"stars\": 5216,\n      \"forks\": 1960,\n      \"pushed_at\": \"2026-09-30T04:52:47Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"NOASSERTION\",\n      \"area\": \"Biología\",\n      \"recommendation\": \"Referencia científica\",\n      \"license_review\": \"Licencia Biopython; algunos archivos dual BSD\",\n      \"adaptation\": \"Secuencias y transformaciones; licencia por archivo, Python como referencia.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/biopython/biopython/blob/master/LICENSE\"\n        },\n        {\n          \"path\": \"LICENSE.rst\",\n          \"url\": \"https://github.com/biopython/biopython/blob/master/LICENSE.rst\"\n        },\n        {\n          \"path\": \"README.rst\",\n          \"url\": \"https://github.com/biopython/biopython/blob/master/README.rst\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/biopython/biopython\",\n      \"implementacion\": {\n        \"estado\": \"Herramienta de verificación incorporada\",\n        \"parte_elegida\": \"Oráculos de FASTA, GC ambiguo, complemento inverso, seis marcos y tablas NCBI 1/2/11\",\n        \"archivos\": [\n          \"02-secuencias.js\",\n          \"herramientas/oraculos-biologia.py\",\n          \"tests/fixtures/oraculos-biologia.json\"\n        ],\n        \"pendiente\": \"Python sólo se usa para comprobar; no se incorporan búsquedas remotas ni anotaciones inventadas.\"\n      }\n    },\n    {\n      \"repo\": \"biotite-dev/biotite\",\n      \"url\": \"https://github.com/biotite-dev/biotite\",\n      \"stars\": 976,\n      \"forks\": 148,\n      \"pushed_at\": \"2026-09-24T08:44:40Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"BSD-3-Clause\",\n      \"area\": \"Biología\",\n      \"recommendation\": \"Secundaria científica\",\n      \"license_review\": \"BSD-3-Clause según GitHub\",\n      \"adaptation\": \"Cálculo molecular y secuencias; no exige añadir un visor estructural a Methods.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/biotite-dev/biotite\",\n      \"implementacion\": {\n        \"estado\": \"Herramienta de verificación incorporada\",\n        \"parte_elegida\": \"Segundo contraste independiente del complemento inverso y traducción de ADN inequívoco\",\n        \"archivos\": [\n          \"herramientas/oraculos-biologia.py\",\n          \"tests/fixtures/oraculos-biologia.json\"\n        ],\n        \"pendiente\": \"Análisis de estructura molecular y alineamientos en preparación.\"\n      }\n    },\n    {\n      \"repo\": \"Lattice-Automation/seqviz\",\n      \"url\": \"https://github.com/Lattice-Automation/seqviz\",\n      \"stars\": 331,\n      \"forks\": 69,\n      \"pushed_at\": \"2026-09-23T15:14:27Z\",\n      \"archived\": false,\n      \"default_branch\": \"develop\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Biología\",\n      \"recommendation\": \"Opcional posterior\",\n      \"license_review\": \"MIT según GitHub\",\n      \"adaptation\": \"Visor de secuencias; componente React, sólo si se incorporan secuencias al dominio.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/Lattice-Automation/seqviz\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Vista local de secuencias, identidad, vínculo a muestra y transformaciones descargables\",\n        \"archivos\": [\n          \"59-p-secuencias.js\"\n        ],\n        \"pendiente\": \"No se copia código ni componente React; anotaciones y mapas circulares en preparación.\"\n      }\n    },\n    {\n      \"repo\": \"jpquast/ggplate\",\n      \"url\": \"https://github.com/jpquast/ggplate\",\n      \"stars\": 106,\n      \"forks\": 7,\n      \"pushed_at\": \"2026-09-01T10:21:20Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"NOASSERTION\",\n      \"area\": \"Biología y placas\",\n      \"recommendation\": \"Referencia visual\",\n      \"license_review\": \"MIT; LICENSE.md verificado\",\n      \"adaptation\": \"Diseños y representación de placas; código R como inspiración de UX, no runtime.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/jpquast/ggplate/blob/main/LICENSE\"\n        },\n        {\n          \"path\": \"LICENSE.md\",\n          \"url\": \"https://github.com/jpquast/ggplate/blob/main/LICENSE.md\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/jpquast/ggplate/blob/main/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/jpquast/ggplate\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Mapa de placas con controles, grupos, réplicas y tabla accesible\",\n        \"archivos\": [\n          \"02-placas.js\",\n          \"50-p-placas.js\"\n        ],\n        \"pendiente\": \"No se incorpora el runtime R.\"\n      }\n    },\n    {\n      \"repo\": \"ropensci/plater\",\n      \"url\": \"https://github.com/ropensci/plater\",\n      \"stars\": 26,\n      \"forks\": 4,\n      \"pushed_at\": \"2024-10-25T18:49:34Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"GPL-3.0\",\n      \"area\": \"Biología y placas\",\n      \"recommendation\": \"Referencia de intercambio\",\n      \"license_review\": \"GPL-3.0 según GitHub\",\n      \"adaptation\": \"Tablas en formato placa y datos largos; R, ideas para CSV de placas.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/ropensci/plater\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Tablas largas de plan y de medidas por ejecución, CSV íntegro, historial y rechazo de filas incompatibles\",\n        \"archivos\": [\n          \"02-placas.js\",\n          \"16-ejecucion.js\",\n          \"57-p-registro-placas.js\"\n        ],\n        \"pendiente\": \"No se incorpora R ni se considera una transferencia declarada como confirmación de hardware.\"\n      }\n    },\n    {\n      \"repo\": \"hgrecco/pint\",\n      \"url\": \"https://github.com/hgrecco/pint\",\n      \"stars\": 2806,\n      \"forks\": 543,\n      \"pushed_at\": \"2026-09-18T17:53:50Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"NOASSERTION\",\n      \"area\": \"Unidades\",\n      \"recommendation\": \"Referencia científica prioritaria\",\n      \"license_review\": \"BSD-3-Clause; texto verificado\",\n      \"adaptation\": \"Cantidades y análisis dimensional; Python como contraste, no incrustarlo por defecto.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/hgrecco/pint/blob/master/LICENSE\"\n        },\n        {\n          \"path\": \"README.rst\",\n          \"url\": \"https://github.com/hgrecco/pint/blob/master/README.rst\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/hgrecco/pint\",\n      \"implementacion\": {\n        \"estado\": \"Oráculo independiente\",\n        \"parte_elegida\": \"24 conversiones dimensionales contra Pint 0.26.1; errores de unidades y resultados no representables\",\n        \"archivos\": [\n          \"07-unidades.js\",\n          \"herramientas/oraculos-dimensionales.py\",\n          \"tests/dimensiones-sensibilidad.test.mjs\"\n        ],\n        \"pendiente\": \"Unidades afines y cantidades con contexto\"\n      }\n    },\n    {\n      \"repo\": \"josdejong/mathjs\",\n      \"url\": \"https://github.com/josdejong/mathjs\",\n      \"stars\": 15080,\n      \"forks\": 1321,\n      \"pushed_at\": \"2026-09-13T14:21:56Z\",\n      \"archived\": false,\n      \"default_branch\": \"develop\",\n      \"github_license\": \"Apache-2.0\",\n      \"area\": \"Unidades y expresiones\",\n      \"recommendation\": \"Piloto preferente por módulos\",\n      \"license_review\": \"Apache-2.0; texto verificado\",\n      \"adaptation\": \"Unidades, matrices, números y expresiones; limitar funciones expuestas y tamaño.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/josdejong/mathjs/blob/develop/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/josdejong/mathjs/blob/develop/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/josdejong/mathjs\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Unidades, matrices, números y expresiones; limitar funciones expuestas y tamaño.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"convert-units/convert-units\",\n      \"url\": \"https://github.com/convert-units/convert-units\",\n      \"stars\": 850,\n      \"forks\": 308,\n      \"pushed_at\": \"2026-09-13T15:30:25Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"NOASSERTION\",\n      \"area\": \"Unidades\",\n      \"recommendation\": \"Alternativa secundaria\",\n      \"license_review\": \"NOASSERTION en GitHub; pendiente\",\n      \"adaptation\": \"Conversión de unidades; no reemplaza por sí sola el análisis dimensional.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/convert-units/convert-units\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Conversión de unidades; no reemplaza por sí sola el análisis dimensional.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"simple-statistics/simple-statistics\",\n      \"url\": \"https://github.com/simple-statistics/simple-statistics\",\n      \"stars\": 3521,\n      \"forks\": 240,\n      \"pushed_at\": \"2026-09-29T18:58:12Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"ISC\",\n      \"area\": \"Estadística y calidad\",\n      \"recommendation\": \"Piloto preferente\",\n      \"license_review\": \"ISC; texto verificado\",\n      \"adaptation\": \"Estadística en navegador; módulos seleccionados, no cubre por sí sola todo GUM/Grubbs.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/simple-statistics/simple-statistics/blob/main/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/simple-statistics/simple-statistics/blob/main/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/simple-statistics/simple-statistics\",\n      \"implementacion\": {\n        \"estado\": \"Biblioteca incorporada\",\n        \"parte_elegida\": \"Media, desviación estándar y cuantiles de Monte Carlo reproducible\",\n        \"archivos\": [\n          \"20-analisis.js\",\n          \"51-p-analisis.js\"\n        ],\n        \"pendiente\": \"No reemplaza las funciones metrológicas propias ni valida supuestos.\"\n      }\n    },\n    {\n      \"repo\": \"jstat/jstat\",\n      \"url\": \"https://github.com/jstat/jstat\",\n      \"stars\": 1807,\n      \"forks\": 247,\n      \"pushed_at\": \"2026-02-28T08:23:25Z\",\n      \"archived\": false,\n      \"default_branch\": \"1.x\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Estadística y calidad\",\n      \"recommendation\": \"Alternativa específica\",\n      \"license_review\": \"MIT; texto verificado\",\n      \"adaptation\": \"Distribuciones y cuantiles; evaluar funciones faltantes sin duplicar motores.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/jstat/jstat/blob/1.x/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/jstat/jstat/blob/1.x/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/jstat/jstat\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Distribuciones y cuantiles; evaluar funciones faltantes sin duplicar motores.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"stdlib-js/stdlib\",\n      \"url\": \"https://github.com/stdlib-js/stdlib\",\n      \"stars\": 5979,\n      \"forks\": 1296,\n      \"pushed_at\": \"2026-09-30T04:53:56Z\",\n      \"archived\": false,\n      \"default_branch\": \"develop\",\n      \"github_license\": \"Apache-2.0\",\n      \"area\": \"Estadística y calidad\",\n      \"recommendation\": \"Alternativa por módulos\",\n      \"license_review\": \"Apache-2.0 según GitHub\",\n      \"adaptation\": \"Funciones numéricas independientes; evitar incluir el monorepo completo.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/stdlib-js/stdlib\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Funciones numéricas independientes; evitar incluir el monorepo completo.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"scipy/scipy\",\n      \"url\": \"https://github.com/scipy/scipy\",\n      \"stars\": 15060,\n      \"forks\": 5980,\n      \"pushed_at\": \"2026-09-29T11:06:26Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"BSD-3-Clause\",\n      \"area\": \"Estadística y calidad\",\n      \"recommendation\": \"Referencia científica prioritaria\",\n      \"license_review\": \"BSD-3-Clause según GitHub\",\n      \"adaptation\": \"Oráculo de desarrollo para distribuciones, regresión y optimización.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/scipy/scipy\",\n      \"implementacion\": {\n        \"estado\": \"Herramienta de verificación incorporada\",\n        \"parte_elegida\": \"Contraste de cuantiles e intervalos de predicción\",\n        \"archivos\": [\n          \"herramientas/oraculos-cientificos.py\",\n          \"tests/ampliacion.test.mjs\"\n        ],\n        \"pendiente\": \"Python sólo se usa en desarrollo.\"\n      }\n    },\n    {\n      \"repo\": \"statsmodels/statsmodels\",\n      \"url\": \"https://github.com/statsmodels/statsmodels\",\n      \"stars\": 11666,\n      \"forks\": 3610,\n      \"pushed_at\": \"2026-09-29T14:19:52Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"BSD-3-Clause\",\n      \"area\": \"Estadística y calidad\",\n      \"recommendation\": \"Referencia científica\",\n      \"license_review\": \"BSD-3-Clause según GitHub\",\n      \"adaptation\": \"Regresión y diagnósticos; validar métodos ponderados y supuestos.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/statsmodels/statsmodels\",\n      \"implementacion\": {\n        \"estado\": \"Herramienta de verificación incorporada\",\n        \"parte_elegida\": \"Regresión OLS/WLS, covarianzas, palancas, Cook e inversión de la predicción con intervalos Fieller\",\n        \"archivos\": [\n          \"20-analisis.js\",\n          \"herramientas/oraculos-cientificos.py\"\n        ],\n        \"pendiente\": \"No se aplica eliminación automática de patrones ni se afirma que la linealidad esté demostrada.\"\n      }\n    },\n    {\n      \"repo\": \"lmfit/uncertainties\",\n      \"url\": \"https://github.com/lmfit/uncertainties\",\n      \"stars\": 679,\n      \"forks\": 87,\n      \"pushed_at\": \"2026-07-01T12:28:41Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"NOASSERTION\",\n      \"area\": \"Incertidumbre\",\n      \"recommendation\": \"Referencia científica prioritaria\",\n      \"license_review\": \"BSD-3-Clause; texto verificado\",\n      \"adaptation\": \"Propagación y correlaciones; ampliar GUM con validación independiente.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE.txt\",\n          \"url\": \"https://github.com/lmfit/uncertainties/blob/master/LICENSE.txt\"\n        },\n        {\n          \"path\": \"README.rst\",\n          \"url\": \"https://github.com/lmfit/uncertainties/blob/master/README.rst\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/lmfit/uncertainties\",\n      \"implementacion\": {\n        \"estado\": \"Herramienta de verificación incorporada\",\n        \"parte_elegida\": \"GUM con covarianzas; simulación normal correlacionada, triangular, uniforme y lognormal con límites declarados\",\n        \"archivos\": [\n          \"06-estadistica.js\",\n          \"20-analisis.js\",\n          \"tests/montecarlo-avanzado.test.mjs\"\n        ],\n        \"pendiente\": \"Las correlaciones de distribuciones no normales no se suponen ni se ignoran.\"\n      }\n    },\n    {\n      \"repo\": \"JuliaPhysics/Measurements.jl\",\n      \"url\": \"https://github.com/JuliaPhysics/Measurements.jl\",\n      \"stars\": 537,\n      \"forks\": 43,\n      \"pushed_at\": \"2026-09-22T14:03:09Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Incertidumbre\",\n      \"recommendation\": \"Referencia científica\",\n      \"license_review\": \"MIT según GitHub\",\n      \"adaptation\": \"Dependencia/correlación de magnitudes y precisión; no añadir Julia al navegador.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/JuliaPhysics/Measurements.jl\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Correlación perfecta y cancelación de contribuciones dependientes\",\n        \"archivos\": [\n          \"06-estadistica.js\"\n        ],\n        \"pendiente\": \"Contraste contra Julia y dependencias compartidas entre resultados\"\n      }\n    },\n    {\n      \"repo\": \"sympy/sympy\",\n      \"url\": \"https://github.com/sympy/sympy\",\n      \"stars\": 14979,\n      \"forks\": 5544,\n      \"pushed_at\": \"2026-09-30T04:18:57Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"NOASSERTION\",\n      \"area\": \"Expresiones y cálculo\",\n      \"recommendation\": \"Referencia científica\",\n      \"license_review\": \"NOASSERTION en GitHub; pendiente\",\n      \"adaptation\": \"Álgebra y derivación simbólica; contrastar derivadas, no incluir runtime Python.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/sympy/sympy\",\n      \"implementacion\": {\n        \"estado\": \"Oráculo independiente y algoritmo propio\",\n        \"parte_elegida\": \"Diferenciación automática contrastada con 16 modelos de SymPy 1.14.0, incluidos valores extremos\",\n        \"archivos\": [\n          \"05-expresion.js\",\n          \"06-estadistica.js\",\n          \"herramientas/oraculos-dimensionales.py\",\n          \"tests/dimensiones-sensibilidad.test.mjs\"\n        ],\n        \"pendiente\": \"Álgebra simbólica general\"\n      }\n    },\n    {\n      \"repo\": \"materialsproject/pymatgen\",\n      \"url\": \"https://github.com/materialsproject/pymatgen\",\n      \"stars\": 1981,\n      \"forks\": 970,\n      \"pushed_at\": \"2026-09-23T01:52:35Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"NOASSERTION\",\n      \"area\": \"Materiales\",\n      \"recommendation\": \"Referencia científica\",\n      \"license_review\": \"MIT; texto verificado\",\n      \"adaptation\": \"Composición, estequiometría y estructuras; no reproducir DFT/DRX dentro de Methods.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/materialsproject/pymatgen/blob/main/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/materialsproject/pymatgen/blob/main/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/materialsproject/pymatgen\",\n      \"implementacion\": {\n        \"estado\": \"Herramienta de verificación incorporada\",\n        \"parte_elegida\": \"Contraste independiente de composición elemental, incluidas fracciones estequiométricas\",\n        \"archivos\": [\n          \"24-ciencia.js\",\n          \"herramientas/oraculos-cientificos.py\"\n        ],\n        \"pendiente\": \"No incorpora DFT, fases ni estructura cristalográfica.\"\n      }\n    },\n    {\n      \"repo\": \"dolanmiu/docx\",\n      \"url\": \"https://github.com/dolanmiu/docx\",\n      \"stars\": 5927,\n      \"forks\": 614,\n      \"pushed_at\": \"2026-09-30T03:25:55Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Redacción y exportación\",\n      \"recommendation\": \"Piloto preferente\",\n      \"license_review\": \"MIT; texto verificado\",\n      \"adaptation\": \"DOCX declarativo para navegador; tablas, estilos y anexos reproducibles.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/dolanmiu/docx/blob/master/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/dolanmiu/docx/blob/master/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/dolanmiu/docx\",\n      \"implementacion\": {\n        \"estado\": \"Biblioteca incorporada\",\n        \"parte_elegida\": \"Word declarativo con métodos, referencias, placas y anexos de ejecución\",\n        \"archivos\": [\n          \"52-p-bibliografia.js\",\n          \"90-main.js\"\n        ],\n        \"pendiente\": \"Plantillas editoriales específicas en preparación.\"\n      }\n    },\n    {\n      \"repo\": \"citation-js/citation-js\",\n      \"url\": \"https://github.com/citation-js/citation-js\",\n      \"stars\": 212,\n      \"forks\": 50,\n      \"pushed_at\": \"2026-09-18T11:19:38Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Redacción y bibliografía\",\n      \"recommendation\": \"Piloto preferente sin red\",\n      \"license_review\": \"MIT; texto verificado\",\n      \"adaptation\": \"BibTeX/RIS/CSL locales; consulta DOI remota sería función nueva separada.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE.md\",\n          \"url\": \"https://github.com/citation-js/citation-js/blob/main/LICENSE.md\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/citation-js/citation-js/blob/main/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/citation-js/citation-js\",\n      \"implementacion\": {\n        \"estado\": \"Biblioteca incorporada\",\n        \"parte_elegida\": \"Importación/exportación local BibTeX, RIS y CSL, vínculos a condiciones publicadas\",\n        \"archivos\": [\n          \"21-bibliografia.js\",\n          \"52-p-bibliografia.js\"\n        ],\n        \"pendiente\": \"No consulta DOI remotos ni completa metadatos ausentes.\"\n      }\n    },\n    {\n      \"repo\": \"jgm/pandoc\",\n      \"url\": \"https://github.com/jgm/pandoc\",\n      \"stars\": 46454,\n      \"forks\": 5264,\n      \"pushed_at\": \"2026-09-29T17:10:29Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"GPL-2.0\",\n      \"area\": \"Redacción y exportación\",\n      \"recommendation\": \"Referencia de formatos\",\n      \"license_review\": \"GPL-2.0 según GitHub; modalidad pendiente\",\n      \"adaptation\": \"Conversión de documentos; Haskell/CLI, no dependencia directa de app offline.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/jgm/pandoc\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Conversión de documentos; Haskell/CLI, no dependencia directa de app offline.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"KaTeX/KaTeX\",\n      \"url\": \"https://github.com/KaTeX/KaTeX\",\n      \"stars\": 20412,\n      \"forks\": 1336,\n      \"pushed_at\": \"2026-09-28T19:30:59Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Redacción científica\",\n      \"recommendation\": \"Opcional local\",\n      \"license_review\": \"MIT según GitHub\",\n      \"adaptation\": \"Ecuaciones y mhchem con módulos y fuentes locales; medir tamaño.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/KaTeX/KaTeX\",\n      \"implementacion\": {\n        \"estado\": \"Biblioteca incorporada\",\n        \"parte_elegida\": \"Vista LaTeX con MathML nativo y sin fuentes externas\",\n        \"archivos\": [\n          \"52-p-bibliografia.js\"\n        ],\n        \"pendiente\": \"Edición de ecuaciones integrada en el protocolo en preparación.\"\n      }\n    },\n    {\n      \"repo\": \"markdown-it/markdown-it\",\n      \"url\": \"https://github.com/markdown-it/markdown-it\",\n      \"stars\": 21949,\n      \"forks\": 1849,\n      \"pushed_at\": \"2026-09-12T05:27:05Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Redacción científica\",\n      \"recommendation\": \"Opcional local\",\n      \"license_review\": \"MIT según GitHub\",\n      \"adaptation\": \"Vista previa Markdown; sanitizar cualquier HTML que se habilite.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/markdown-it/markdown-it\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Vista previa Markdown; sanitizar cualquier HTML que se habilite.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"101arrowz/fflate\",\n      \"url\": \"https://github.com/101arrowz/fflate\",\n      \"stars\": 3027,\n      \"forks\": 128,\n      \"pushed_at\": \"2026-05-16T03:02:11Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Exportación y respaldo\",\n      \"recommendation\": \"Piloto preferente\",\n      \"license_review\": \"MIT según GitHub\",\n      \"adaptation\": \"ZIP compacto; ya figura como dependencia de desarrollo de Methods.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/101arrowz/fflate\",\n      \"implementacion\": {\n        \"estado\": \"Biblioteca incorporada\",\n        \"parte_elegida\": \"ZIP de Word, investigación y respaldo; restauración verificada con hashes y límites de descompresión\",\n        \"archivos\": [\n          \"18-paquete.js\",\n          \"54-p-archivos.js\"\n        ],\n        \"pendiente\": \"No se incorporan servicios externos de almacenamiento.\"\n      }\n    },\n    {\n      \"repo\": \"mholt/PapaParse\",\n      \"url\": \"https://github.com/mholt/PapaParse\",\n      \"stars\": 13579,\n      \"forks\": 1195,\n      \"pushed_at\": \"2026-09-15T14:56:44Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Importación\",\n      \"recommendation\": \"Piloto preferente\",\n      \"license_review\": \"MIT; texto verificado\",\n      \"adaptation\": \"CSV robusto, comillas y separadores; preservar mapeo manual de columnas.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/mholt/PapaParse/blob/master/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/mholt/PapaParse/blob/master/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/mholt/PapaParse\",\n      \"implementacion\": {\n        \"estado\": \"Biblioteca incorporada\",\n        \"parte_elegida\": \"CSV con comillas multilínea, asignación explícita de columnas, decimales/unidades, previsualización íntegra y conservación del archivo original\",\n        \"archivos\": [\n          \"19-instrumentos.js\",\n          \"61-p-instrumentos.js\",\n          \"herramientas/verificar-instrumentos.mjs\"\n        ],\n        \"pendiente\": \"Lectura por flujo de archivos mayores de 5 MB en preparación.\"\n      }\n    },\n    {\n      \"repo\": \"ajv-validator/ajv\",\n      \"url\": \"https://github.com/ajv-validator/ajv\",\n      \"stars\": 14843,\n      \"forks\": 1048,\n      \"pushed_at\": \"2026-09-06T19:59:32Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Modelo y contratos\",\n      \"recommendation\": \"Piloto preferente, compilar en build\",\n      \"license_review\": \"MIT; texto verificado\",\n      \"adaptation\": \"JSON Schema; validadores precompilados para evitar evaluación dinámica bajo CSP.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/ajv-validator/ajv/blob/master/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/ajv-validator/ajv/blob/master/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/ajv-validator/ajv\",\n      \"implementacion\": {\n        \"estado\": \"Herramienta de verificación incorporada\",\n        \"parte_elegida\": \"Esquema compartido y validador precompilado incrustado; validación de importaciones y respaldos\",\n        \"archivos\": [\n          \"herramientas/validacion.mjs\",\n          \"31-estado.js\",\n          \"54-p-archivos.js\"\n        ],\n        \"pendiente\": \"Reglas científicas adicionales se validan en el modelo; AJV no valida la ciencia.\"\n      }\n    },\n    {\n      \"repo\": \"dexie/Dexie.js\",\n      \"url\": \"https://github.com/dexie/Dexie.js\",\n      \"stars\": 14615,\n      \"forks\": 712,\n      \"pushed_at\": \"2026-09-28T07:30:58Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"Apache-2.0\",\n      \"area\": \"Almacenamiento local\",\n      \"recommendation\": \"Piloto prioritario\",\n      \"license_review\": \"Apache-2.0; texto verificado\",\n      \"adaptation\": \"IndexedDB transaccional, migraciones y búsquedas; mantener adaptador de compatibilidad.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/dexie/Dexie.js/blob/master/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/dexie/Dexie.js/blob/master/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/dexie/Dexie.js\",\n      \"implementacion\": {\n        \"estado\": \"Biblioteca incorporada\",\n        \"parte_elegida\": \"IndexedDB, migración del legado, escritura conjunta de protocolo y adjuntos, restauración transaccional\",\n        \"archivos\": [\n          \"30-persistencia.js\",\n          \"31-estado.js\"\n        ],\n        \"pendiente\": \"Replicación externa y colaboración en preparación.\"\n      }\n    },\n    {\n      \"repo\": \"pubkey/rxdb\",\n      \"url\": \"https://github.com/pubkey/rxdb\",\n      \"stars\": 23395,\n      \"forks\": 1176,\n      \"pushed_at\": \"2026-09-30T03:25:23Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"Apache-2.0\",\n      \"area\": \"Almacenamiento local\",\n      \"recommendation\": \"Alternativa diferida\",\n      \"license_review\": \"Apache-2.0 núcleo; plugins premium aparte\",\n      \"adaptation\": \"Reactividad y replicación; mayor alcance y coste que el caso actual, excluir premium.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE.txt\",\n          \"url\": \"https://github.com/pubkey/rxdb/blob/master/LICENSE.txt\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/pubkey/rxdb/blob/master/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/pubkey/rxdb\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Reactividad y replicación; mayor alcance y coste que el caso actual, excluir premium.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"yjs/yjs\",\n      \"url\": \"https://github.com/yjs/yjs\",\n      \"stars\": 22865,\n      \"forks\": 805,\n      \"pushed_at\": \"2026-09-29T00:14:35Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"NOASSERTION\",\n      \"area\": \"Colaboración\",\n      \"recommendation\": \"Diferida\",\n      \"license_review\": \"MIT; texto verificado\",\n      \"adaptation\": \"CRDT para editores; no hace falta para una app sin cuentas y sin servidor.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/yjs/yjs/blob/main/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/yjs/yjs/blob/main/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/yjs/yjs\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"CRDT para editores; no hace falta para una app sin cuentas y sin servidor.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"automerge/automerge\",\n      \"url\": \"https://github.com/automerge/automerge\",\n      \"stars\": 6633,\n      \"forks\": 272,\n      \"pushed_at\": \"2026-09-29T11:54:30Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Colaboración\",\n      \"recommendation\": \"Diferida\",\n      \"license_review\": \"MIT según GitHub\",\n      \"adaptation\": \"CRDT y fusión de documentos; evaluar únicamente si se autoriza colaboración.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/automerge/automerge\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"CRDT y fusión de documentos; evaluar únicamente si se autoriza colaboración.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"benjamine/jsondiffpatch\",\n      \"url\": \"https://github.com/benjamine/jsondiffpatch\",\n      \"stars\": 5347,\n      \"forks\": 497,\n      \"pushed_at\": \"2026-05-14T22:54:47Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Versiones\",\n      \"recommendation\": \"Piloto condicionado\",\n      \"license_review\": \"MIT; texto verificado\",\n      \"adaptation\": \"Diff por id y movimientos; adaptar a diferencias científicas en español.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"MIT-LICENSE.txt\",\n          \"url\": \"https://github.com/benjamine/jsondiffpatch/blob/master/MIT-LICENSE.txt\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/benjamine/jsondiffpatch/blob/master/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/benjamine/jsondiffpatch\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado con implementación propia\",\n        \"parte_elegida\": \"Comparación por id y combinación de tres copias con decisiones completas por entidad y revisión común verificada\",\n        \"archivos\": [\n          \"25-fusion.js\",\n          \"62-p-cambios.js\",\n          \"tests/fusion.test.mjs\"\n        ],\n        \"pendiente\": \"Edición simultánea en red y CRDT; no se distribuye jsondiffpatch\"\n      }\n    },\n    {\n      \"repo\": \"lit/lit\",\n      \"url\": \"https://github.com/lit/lit\",\n      \"stars\": 21843,\n      \"forks\": 1103,\n      \"pushed_at\": \"2026-09-24T17:21:02Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"BSD-3-Clause\",\n      \"area\": \"Interfaz\",\n      \"recommendation\": \"Piloto opcional gradual\",\n      \"license_review\": \"BSD-3-Clause; texto verificado\",\n      \"adaptation\": \"Web components sin exigir React; conservar el cromo de @erlen/design.\",\n      \"reviewed_root_files\": [\n        {\n          \"path\": \"LICENSE\",\n          \"url\": \"https://github.com/lit/lit/blob/main/LICENSE\"\n        },\n        {\n          \"path\": \"README.md\",\n          \"url\": \"https://github.com/lit/lit/blob/main/README.md\"\n        }\n      ],\n      \"metadata_source\": \"https://api.github.com/repos/lit/lit\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Web components sin exigir React; conservar el cromo de @erlen/design.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"shoelace-style/shoelace\",\n      \"url\": \"https://github.com/shoelace-style/shoelace\",\n      \"stars\": 13833,\n      \"forks\": 911,\n      \"pushed_at\": \"2026-05-14T13:39:51Z\",\n      \"archived\": true,\n      \"default_branch\": \"next\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Interfaz\",\n      \"recommendation\": \"Descartado para nueva base\",\n      \"license_review\": \"MIT según GitHub\",\n      \"adaptation\": \"Archivado; no sustituir el sistema visual propio de Erlen.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/shoelace-style/shoelace\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Archivado; no sustituir el sistema visual propio de Erlen.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"SortableJS/Sortable\",\n      \"url\": \"https://github.com/SortableJS/Sortable\",\n      \"stars\": 31185,\n      \"forks\": 3716,\n      \"pushed_at\": \"2026-03-24T22:02:22Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Interfaz de pasos\",\n      \"recommendation\": \"Opcional\",\n      \"license_review\": \"MIT según GitHub\",\n      \"adaptation\": \"Reordenación táctil; ofrecer siempre movimientos por teclado.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/SortableJS/Sortable\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Reordenación por arrastre HTML nativo y botones equivalentes por teclado; enlaces conservados por identidad\",\n        \"archivos\": [\n          \"60-p-flujo.js\",\n          \"herramientas/verificar-flujo.mjs\"\n        ],\n        \"pendiente\": \"No se incorpora la biblioteca ni se afirma haber implementado arrastre táctil; en móvil se usan Subir/Bajar.\"\n      }\n    },\n    {\n      \"repo\": \"krisk/Fuse\",\n      \"url\": \"https://github.com/krisk/Fuse\",\n      \"stars\": 20495,\n      \"forks\": 818,\n      \"pushed_at\": \"2026-08-09T04:40:41Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"Apache-2.0\",\n      \"area\": \"Biblioteca y búsqueda\",\n      \"recommendation\": \"Opcional\",\n      \"license_review\": \"Apache-2.0 según GitHub\",\n      \"adaptation\": \"Búsqueda local tolerante; útil si la biblioteca supera una búsqueda sencilla.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/krisk/Fuse\",\n      \"implementacion\": {\n        \"estado\": \"Biblioteca incorporada\",\n        \"parte_elegida\": \"Búsqueda local por título, tipo y resumen tolerante a erratas\",\n        \"archivos\": [\n          \"17-busqueda.js\",\n          \"49-p-biblioteca.js\"\n        ],\n        \"pendiente\": \"Indexar el contenido de procedimientos y referencias\"\n      }\n    },\n    {\n      \"repo\": \"plotly/plotly.js\",\n      \"url\": \"https://github.com/plotly/plotly.js\",\n      \"stars\": 18350,\n      \"forks\": 2045,\n      \"pushed_at\": \"2026-09-29T20:01:08Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Gráficas\",\n      \"recommendation\": \"Alternativa funcional\",\n      \"license_review\": \"MIT según GitHub\",\n      \"adaptation\": \"Gráficas científicas; usar build parcial y comprobar presupuesto, no paquete completo.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/plotly/plotly.js\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Gráficas científicas; usar build parcial y comprobar presupuesto, no paquete completo.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"apache/echarts\",\n      \"url\": \"https://github.com/apache/echarts\",\n      \"stars\": 67422,\n      \"forks\": 19812,\n      \"pushed_at\": \"2026-09-30T04:13:49Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"Apache-2.0\",\n      \"area\": \"Gráficas\",\n      \"recommendation\": \"Piloto preferente por módulos\",\n      \"license_review\": \"Apache-2.0 según GitHub\",\n      \"adaptation\": \"SVG, interacción y muchas series; adaptar temas y tabla accesible.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/apache/echarts\",\n      \"implementacion\": {\n        \"estado\": \"Biblioteca incorporada\",\n        \"parte_elegida\": \"Build parcial SVG: calibración, residuos, tendencias y exportación de gráficas\",\n        \"archivos\": [\n          \"51-p-analisis.js\"\n        ],\n        \"pendiente\": \"Otros tipos de gráfica se evalúan según necesidad y presupuesto.\"\n      }\n    },\n    {\n      \"repo\": \"chartjs/Chart.js\",\n      \"url\": \"https://github.com/chartjs/Chart.js\",\n      \"stars\": 67730,\n      \"forks\": 11943,\n      \"pushed_at\": \"2026-09-29T17:59:38Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Gráficas\",\n      \"recommendation\": \"Alternativa ligera\",\n      \"license_review\": \"MIT según GitHub\",\n      \"adaptation\": \"Curvas y cartas con Canvas; proveer datos accesibles fuera del canvas.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/chartjs/Chart.js\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Curvas y cartas con Canvas; proveer datos accesibles fuera del canvas.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"vega/vega-lite\",\n      \"url\": \"https://github.com/vega/vega-lite\",\n      \"stars\": 5497,\n      \"forks\": 721,\n      \"pushed_at\": \"2026-09-29T21:42:07Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"BSD-3-Clause\",\n      \"area\": \"Gráficas\",\n      \"recommendation\": \"Referencia declarativa\",\n      \"license_review\": \"BSD-3-Clause según GitHub\",\n      \"adaptation\": \"Especificaciones reproducibles; mayor capa de runtime, comparar antes de adoptar.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/vega/vega-lite\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"Especificaciones reproducibles; mayor capa de runtime, comparar antes de adoptar.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"nodeca/js-yaml\",\n      \"url\": \"https://github.com/nodeca/js-yaml\",\n      \"stars\": 6636,\n      \"forks\": 854,\n      \"pushed_at\": \"2026-09-24T19:50:44Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"MIT\",\n      \"area\": \"Importación\",\n      \"recommendation\": \"Opcional diferida\",\n      \"license_review\": \"MIT según GitHub\",\n      \"adaptation\": \"YAML local para plantillas; no introducir formato adicional sin necesidad.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/nodeca/js-yaml\",\n      \"implementacion\": {\n        \"estado\": \"En preparación\",\n        \"parte_elegida\": \"YAML local para plantillas; no introducir formato adicional sin necesidad.\",\n        \"archivos\": [],\n        \"pendiente\": \"Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto.\"\n      }\n    },\n    {\n      \"repo\": \"microsoft/playwright\",\n      \"url\": \"https://github.com/microsoft/playwright\",\n      \"stars\": 96896,\n      \"forks\": 6525,\n      \"pushed_at\": \"2026-09-30T01:39:31Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"Apache-2.0\",\n      \"area\": \"Verificación\",\n      \"recommendation\": \"Herramienta de desarrollo\",\n      \"license_review\": \"Apache-2.0 según GitHub\",\n      \"adaptation\": \"Chromium/Firefox, móvil, almacenamiento y experiencia completa; no runtime.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/microsoft/playwright\",\n      \"implementacion\": {\n        \"estado\": \"Herramienta de verificación incorporada\",\n        \"parte_elegida\": \"Flujo de ejecución, persistencia, HTML sin red, tamaños móviles y accesibilidad WCAG de la pantalla nueva\",\n        \"archivos\": [\n          \"herramientas/verificar-navegador.mjs\"\n        ],\n        \"pendiente\": \"Ampliar axe a todas las secciones y añadir más recorridos por teclado\"\n      }\n    },\n    {\n      \"repo\": \"dequelabs/axe-core\",\n      \"url\": \"https://github.com/dequelabs/axe-core\",\n      \"stars\": 7576,\n      \"forks\": 945,\n      \"pushed_at\": \"2026-09-29T23:37:23Z\",\n      \"archived\": false,\n      \"default_branch\": \"develop\",\n      \"github_license\": \"MPL-2.0\",\n      \"area\": \"Verificación\",\n      \"recommendation\": \"Herramienta de desarrollo\",\n      \"license_review\": \"MPL-2.0 según GitHub\",\n      \"adaptation\": \"Accesibilidad automatizada más comprobación manual del teclado.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/dequelabs/axe-core\",\n      \"implementacion\": {\n        \"estado\": \"Herramienta de verificación incorporada\",\n        \"parte_elegida\": \"Flujo de ejecución, persistencia, HTML sin red, tamaños móviles y accesibilidad WCAG de la pantalla nueva\",\n        \"archivos\": [\n          \"herramientas/verificar-navegador.mjs\"\n        ],\n        \"pendiente\": \"Ampliar axe a todas las secciones y añadir más recorridos por teclado\"\n      }\n    },\n    {\n      \"repo\": \"ResearchObject/ro-crate-py\",\n      \"url\": \"https://github.com/ResearchObject/ro-crate-py\",\n      \"stars\": 88,\n      \"forks\": 40,\n      \"pushed_at\": \"2026-07-10T07:01:03Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"Apache-2.0\",\n      \"area\": \"Procedencia y paquetes\",\n      \"recommendation\": \"Referencia de desarrollo\",\n      \"license_review\": \"Apache-2.0 según GitHub\",\n      \"adaptation\": \"Generar/validar RO-Crate fuera del runtime; no añadir Python al producto.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/ResearchObject/ro-crate-py\",\n      \"implementacion\": {\n        \"estado\": \"Lector externo independiente\",\n        \"parte_elegida\": \"RO-Crate 0.15.1 lee 16 paquetes y comprueba 160 archivos con hash y tamaño\",\n        \"archivos\": [\n          \"herramientas/verificar-rocrate.py\"\n        ],\n        \"pendiente\": \"Certificación completa de perfiles y firmas\"\n      }\n    },\n    {\n      \"repo\": \"seek4science/seek\",\n      \"url\": \"https://github.com/seek4science/seek\",\n      \"stars\": 102,\n      \"forks\": 61,\n      \"pushed_at\": \"2026-09-29T13:40:56Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"BSD-3-Clause\",\n      \"area\": \"Procedencia y laboratorio\",\n      \"recommendation\": \"Referencia funcional secundaria\",\n      \"license_review\": \"BSD-3-Clause según GitHub\",\n      \"adaptation\": \"Relaciones entre datos, procesos, modelos y materiales; backend Rails.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/seek4science/seek\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Relación explícita entre definición, ejecución, muestra e instrumento\",\n        \"archivos\": [\n          \"04-protocolo.js\",\n          \"48-p-ejecucion.js\"\n        ],\n        \"pendiente\": \"Enlaces entre estudios, datos y materiales\"\n      }\n    },\n    {\n      \"repo\": \"melizalab/django-lab-inventory\",\n      \"url\": \"https://github.com/melizalab/django-lab-inventory\",\n      \"stars\": 51,\n      \"forks\": 19,\n      \"pushed_at\": \"2026-09-24T13:07:36Z\",\n      \"archived\": false,\n      \"default_branch\": \"master\",\n      \"github_license\": \"BSD-3-Clause\",\n      \"area\": \"Inventario\",\n      \"recommendation\": \"Referencia específica secundaria\",\n      \"license_review\": \"BSD-3-Clause según GitHub\",\n      \"adaptation\": \"Inventario de laboratorio más acotado; comparar con InvenTree.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/melizalab/django-lab-inventory\",\n      \"implementacion\": {\n        \"estado\": \"Patrón adaptado parcialmente\",\n        \"parte_elegida\": \"Existencias convertidas entre unidades compatibles y consumos por frasco\",\n        \"archivos\": [\n          \"15-laboratorio.js\"\n        ],\n        \"pendiente\": \"Catálogos de proveedores y múltiples ubicaciones por artículo\"\n      }\n    },\n    {\n      \"repo\": \"ResearchObject/ro-crate\",\n      \"url\": \"https://github.com/ResearchObject/ro-crate\",\n      \"stars\": 163,\n      \"forks\": 50,\n      \"pushed_at\": \"2026-09-24T22:53:10Z\",\n      \"archived\": false,\n      \"default_branch\": \"main\",\n      \"github_license\": \"Apache-2.0\",\n      \"area\": \"Procedencia y paquetes\",\n      \"recommendation\": \"Referencia de especificación\",\n      \"license_review\": \"Apache-2.0 según GitHub\",\n      \"adaptation\": \"Paquete de investigación con JSON-LD y procedencia; no valida la ciencia por sí mismo.\",\n      \"reviewed_root_files\": [],\n      \"metadata_source\": \"https://api.github.com/repos/ResearchObject/ro-crate\",\n      \"implementacion\": {\n        \"estado\": \"Especificación adaptada y contrastada\",\n        \"parte_elegida\": \"RO-Crate 1.1 con archivos, referencias, ejecuciones y hashes; leído por ro-crate-py\",\n        \"archivos\": [\n          \"18-paquete.js\",\n          \"herramientas/verificar-rocrate.py\"\n        ],\n        \"pendiente\": \"Certificación completa de perfiles y firmas\"\n      }\n    }\n  ],\n  \"implementation_baseline\": \"6e88d2a2b8c329400c71279baf713fbf5a4449e9\"\n}\n",
  "docs/ciclo-autonomo.md": "# Ciclo autónomo de mejora de Methods\n\nInicio real: **30 de septiembre de 2026, 09:00:40 UTC**. Fin observado: **15:00:44 UTC**. Duración comprobada: **6 horas y 4 segundos**. El ciclo autónomo de revisión, implementación y comprobación queda completado.\n\n## Lotes de trabajo\n\n1. Almacenamiento: migración transaccional, concurrencia, recuperación de ediciones y fallos de cuota.\n2. Laboratorio: entradas, devoluciones, recuentos, reservas, conservación del historial y respaldos completos.\n3. Diseño y ejecución: placas, muestras, recursos y seguimiento de resultados frente a planes.\n4. Ciencia: calibración, incertidumbre, diagnósticos y cálculos contrastados con herramientas independientes.\n5. Documentación: estructuras, bibliografía, documentos, procedencia y paquetes de investigación.\n6. Integración: navegadores, accesibilidad, funcionamiento local sin red, licencias, reconstrucción del código y contratos de la suite.\n\nLas actividades avanzan cuando sus dependencias lo permiten. Cada modificación importante se revisa y comprueba antes de consolidarla; los fallos encontrados originan el siguiente lote de correcciones.\n\n## Registro de resultados\n\n- **09:54 UTC:** 94 pruebas de Methods pasan. Cubren migración, protección frente a cambios de otra pestaña, guardado durante la edición, rollback de cuota, recuperación al cerrar, adjuntos y respaldo. El almacenamiento antiguo se conserva y no se vuelve a importar sobre una base existente.\n- **09:54 UTC:** los primeros contrastes independientes de calibración, predicción, covarianzas, composición y mezclas pasan. Las entradas, resultados y versiones de los oráculos están en `tests/fixtures/oraculos-cientificos.json`; su generador está en `herramientas/oraculos-cientificos.py`.\n- **09:58 UTC:** el navegador detecta dos tablas de historial que no admiten desplazamiento con teclado en pantalla estrecha. Se corrige el foco del contenedor. A las 09:59 UTC pasan los ocho recorridos de Chromium/Firefox a 320, 390, 768 y 1440 px, con inventario, reservas, conversión, calibración, Word, adjuntos, ZIP, recarga y accesibilidad en las seis áreas nuevas.\n- **10:17 UTC:** primer bloque consolidado y subido a la PR en borrador: almacenamiento, laboratorio, ciencia, bibliografía, estructuras, adjuntos y respaldo. El paquete pasa sus 13 comprobaciones y conserva el diseño compartido sin modificarlo.\n- **11:09 UTC:** 117 pruebas de Methods pasan. Los registros reales de placa son independientes del plan y se conservan por lote, con muestras, transferencias, historial, CSV y anexos Word. Las comparaciones separan unidades y nombres de resultado históricos. La calibración inversa, las palancas y la distancia de Cook se contrastan con NumPy/statsmodels/SciPy; la predicción centrada evita cancelación numérica. Monte Carlo incorpora correlaciones normales, distribuciones triangular/lognormal e histogramas.\n- **11:13 UTC:** pasan los 107 contratos de la suite y los dos casos del modelo compartido. Pasan 16 recorridos nuevos en Chromium/Firefox a cuatro anchos, incluidos la cuantificación inversa, simulación correlacionada, restauración de respaldos y conservación de datos de otra app. Las suites de navegador se incorporan al repositorio.\n\n- **11:51 UTC:** pasan 139 pruebas de Methods. Se añaden movimientos y alícuotas de muestras, FASTA con origen binario conservado, GC ambiguo, complemento inverso, traducción/CDS y contrastes contra Biopython/Biotite. Se prueba un millón de bases ambiguas sin expandir todas sus posibilidades en memoria.\n- **11:54 UTC:** pasan los ocho recorridos de biología en Chromium/Firefox a cuatro anchos, incluida conservación byte a byte de un FASTA con BOM y finales CRLF, bloqueo de confirmación numérica inválida, recarga, accesibilidad y Word. Se repiten y pasan los ocho recorridos de inventario/ciencia/respaldos tras centralizar el guardado conjunto de archivos. Pasan cuatro casos del modelo compartido.\n\n- **12:35 UTC:** pasan 152 pruebas de Methods y cinco casos del productor/lector frente al esquema compartido. El diseñador incorpora DAG, ruta crítica, orden por teclado/arrastre y dependencias fijadas en ejecución; ocho recorridos de Chromium/Firefox comprueban ciclos, bloqueo de dependencias, recarga y accesibilidad en claro/oscuro.\n- **12:35 UTC:** pasan ocho recorridos de importación instrumental: mapa de columnas, decimal con coma, mL → µL, ceros, vista previa, guardado conjunto y descarga byte a byte del CSV con BOM/CRLF. El archivo permanece en el paquete de investigación al retirar su vínculo actual. El paquete pasa 13 comprobaciones; sus 190 fuentes reconstruyen exactamente 3 108 924 bytes.\n\n- **13:55 UTC:** pasan 185 pruebas de Methods. Se añaden combinación de tres copias con conflictos obligatorios y conservación de registros locales, diferenciación automática, estabilidad de incertidumbre en extremos, unidades y flujo de tuberías. SymPy 1.14.0, Pint 0.26.1 y fluids 1.3.1 contrastan los resultados sin incluir Python en el producto.\n- **13:57 UTC:** pasan 24 recorridos nuevos de combinación, ciencia y lista previa en Chromium/Firefox a cuatro anchos. La lista usa reservas propias, muestras y certificados conservados. Un lector externo RO-Crate 0.15.1 comprueba 16 paquetes y 160 archivos; no constituye certificación de perfiles.\n- **13:11 UTC:** la verificación global pasa Methods y los productos anteriores a Portal, pero se detiene en el hash de diseño de Portal. El mismo fallo se reprodujo en la base sin cambios; el diseño compartido congelado se conserva.\n\n- **14:15 UTC:** pasan 190 pruebas de Methods, seis casos del modelo compartido y los 107 contratos de la suite. La cuantificación conecta lecturas reales de placa y calibración conservada, exige unidades y dilución, bloquea cambios posteriores a la vista previa y conserva historial y archivos incluso al retirar el lote. La revisión visual detecta un «null» de un aviso ausente; se corrige y se incorpora su comprobación al recorrido.\n- **14:15 UTC:** los 82 recorridos de las diez suites de navegador pasan sobre la misma versión en Chromium/Firefox. Research (66), Slides (202 y un caso omitido), Tunning (270 casos, 253 aprobados y 17 omitidos) y XRD (520) pasan en la comprobación adicional; Tunning requiere el entorno Python preparado. Portal mantiene el fallo previo del hash de diseño.\n\n- **14:27 UTC:** la calculadora y el área de análisis comparten el ajuste centrado e inversión de Fieller. Se añaden comprobaciones de filas incompletas, desplazamientos grandes, intervalos no acotados y entradas que no pueden representarse. SymPy contrasta 16 modelos, incluidos logaritmos y arco tangente en escalas extremas.\n\n- **14:36 UTC:** pasan los 82 recorridos tras la unificación del núcleo y el endurecimiento de entradas. El paquete montado pasa 13 comprobaciones y sus 208 fuentes reconstruyen exactamente el HTML con navegación de suite. Dos casos adicionales comprueban recuperación con archivos ausentes o tamaño incorrecto: se bloquea la apertura, se conserva la edición pendiente y la recuperación válida crea otra copia.\n\n- **14:46 UTC:** pasan 195 pruebas de Methods, seis casos del modelo y 107 contratos. La recuperación pasa desde sus botones en los diez recorridos básicos, incluido el archivo local sin red. Word incorpora tablas legibles para cuantificación, patrones, intervalos y respuestas, y resúmenes de calibración/Monte Carlo; los ocho recorridos de cuantificación verifican también el contenido de su DOCX.\n\n- **14:51 UTC:** pasan 196 pruebas de Methods y las 13 comprobaciones de paquete. Las 207 fuentes reconstruyen exactamente 3 138 046 bytes. El inventario rechaza nombres heredados del prototipo como unidades antes de restaurar; las ocho comprobaciones de preparación vuelven a pasar.\n\n- **14:56 UTC:** el paquete con navegación de suite conserva 208 fuentes y reconstruye exactamente 3 139 226 bytes. El ZIP se genera dos veces con el mismo SHA-256; sus diez bibliotecas incluyen licencias. RO-Crate 0.15.1 lee 24 paquetes de investigación y verifica 224 archivos. Los assets del diseño compartido no tienen cambios respecto a la base.\n\n- **15:00:44 UTC:** se cumplen seis horas y cuatro segundos. Resultado: 196 pruebas de Methods, seis casos de productor/lector, 107 contratos, 82 recorridos en dos navegadores y 13 comprobaciones de paquete aprobados. Se entrega una guía de cuantificación y el código permanece en la PR en borrador. La verificación global continúa limitada por el fallo previo del hash de diseño de Portal.\n\nLos informes completos y capturas se conservan en la carpeta local ignorada del worktree. No se han fusionado cambios ni desplegado una versión de producción.\n",
  "docs/cuantificar-placas.md": "# De lecturas reales a concentraciones conservadas\n\n1. En **Análisis de resultados**, escribe los pares de concentración y respuesta de tus patrones. En ajuste ponderado añade la incertidumbre estándar de cada respuesta. Revisa los residuos, el rango y los supuestos; guarda la calibración.\n2. En **Ejecutar un lote**, registra o importa las respuestas reales de su placa. El CSV permite declarar columnas, decimal y unidades; conserva su archivo original. Los valores previstos del plan no se usan como lecturas.\n3. Pulsa **Cuantificar con calibración**. Elige el análisis guardado y declara las unidades de respuesta y concentración de los patrones. La unidad de cada lectura debe coincidir exactamente; no se convierte una señal sin una relación física conocida.\n4. Escribe el factor de dilución real. Usa **1** si no hubo dilución. En ajuste ponderado indica la incertidumbre estándar individual de la respuesta en su unidad. El cálculo considera una lectura por pozo y trata el factor como exacto.\n5. Revisa las concentraciones y los límites de Fieller del 95 %. Un intervalo fuera del rango de los patrones requiere revisar la validez del método. Una pendiente no distinguible de cero impide presentar un intervalo acotado.\n6. Conserva la cuantificación independiente. Si las lecturas o la calibración cambiaron después de previsualizar, la aplicación exige otra revisión. Las respuestas originales permanecen en el lote.\n\nEl análisis conserva los patrones, las lecturas, su historial, las unidades y el factor. No resta blancos ni agrupa réplicas automáticamente. La huella de las fuentes verifica las lecturas y la calibración conservadas, sin acreditar autoría ni validar el método experimental.\n\n**Análisis conservados** muestra la tabla y permite descargar su JSON. **Bibliografía y documentos** exporta Word con respuestas, concentraciones, intervalos, patrones y fuentes. El paquete de investigación conserva el JSON completo y los archivos de origen, también si después se retira el lote o su vínculo actual.\n\nEl ajuste supone linealidad, respuestas independientes y ausencia de error relevante en las concentraciones de los patrones. Verifica esos supuestos y la validez de tu calibración antes de interpretar resultados.\n",
  "docs/transformacion-methods.md": "# Transformación de Methods: catálogo y entregas verificables\n\nLa versión 0.3.0 inició la transformación con referencias fijas de ejecución, pasos tipados, trazabilidad de instrumentos y muestras, consumos por frasco, diferencias completas de las listas, guardado recuperable, búsqueda local, CSV robusto, covarianzas GUM y paquetes de investigación.\n\nLos 64 proyectos están registrados en [catalogo-referencias.json](catalogo-referencias.json), con popularidad, licencia revisada, URL de origen, parte elegida y estado. Las estrellas son una señal de adopción, no una evaluación científica; las cifras corresponden a la consulta del 30 de septiembre de 2026. El análisis inicial se hizo sobre `de8692a`; esta implementación parte de `6e88d2a`.\n\n**Biblioteca incorporada** significa dependencia real, fijada en el lockfile e incrustada con su licencia. **Patrón adaptado parcialmente** significa implementación propia inspirada en una parte del proyecto, sin copiar su backend ni sus fuentes. **Herramienta de verificación incorporada** se usa sólo en desarrollo. **En preparación** conserva el candidato y la parte elegida, pero todavía no implementa esa integración. No se afirma que los 64 proyectos ya estén incorporados.\n\n## Primera entrega 0.3.0\n\n- Protocolo v2: el lector admite v1. Los lotes nuevos conservan una definición sin versiones ni lotes anidados. Los antiguos conservan pesadas y parámetros incluso si sus elementos ya no existen; su referencia original se declara desconocida.\n- Ejecución: preparado → en curso → terminado, identificadores de muestra, observaciones por paso, fechas reales de las acciones y cierre sólo con todos los pasos completos. Las calibraciones utilizadas se conservan por ejecución. Vincular hoy un lote antiguo no acredita su historia original.\n- Procedimiento: acciones explícitas y volumen base frente a capacidad del recipiente. Los volúmenes escalan; tiempos y temperaturas mantienen su significado. Una capacidad excedida impide iniciar.\n- Inventario: suma de unidades compatibles, cantidades desconocidas explícitas y consumo confirmado por frasco. Un consumo por reactivo/ejecución evita dobles descuentos; se registra cantidad, antes/después, motivo y fecha.\n- Calidad: pesadas, rendimiento y desviaciones usan la revisión de cada lote. Una carta no mezcla definiciones distintas. Los cambios administrativos de fecha no crean diferencias científicas.\n- Guardado: diario local para restaurar protocolo e índice si falla una escritura o se interrumpe el proceso; detección de cambios del mismo protocolo en otra pestaña. La solución sigue en localStorage, con su cuota; IndexedDB y una migración transaccional están pendientes.\n- Datos y exportación: PapaParse 5.5.3, Fuse 7.1.0 y fflate 0.8.3. Las versiones, hashes y licencias viajan en `third-party.json`, `build.json`, `source.json` y `licenses/` del paquete.\n- Metrología: covarianzas y matrices de correlación semidefinidas positivas. Con entradas correlacionadas se usa k = 2 como aproximación; no se calcula Welch–Satterthwaite como si fueran independientes.\n- Investigación: ZIP con protocolo completo, lotes CSV, Markdown y metadatos RO-Crate 1.1. No genera DOI, datos medidos ni una licencia para los datos del usuario. La conformidad completa del perfil RO-Crate requiere validación externa.\n\nEl registro es un cuaderno local editable con Deshacer; el cierre no constituye firma electrónica ni auditoría inmutable. Las modificaciones manuales de existencias aún no generan movimientos de ajuste. El inventario vive aparte: el paquete de un protocolo conserva los registros que éste contiene, y el respaldo del laboratorio se descarga en su pantalla.\n\n## Ampliación 0.4.0 en el ciclo autónomo\n\n- IndexedDB transaccional con Dexie, migración única y conservación del almacenamiento anterior. Los conflictos entre pestañas impiden sobrescribir datos y mantienen la edición disponible para descargar.\n- Recuperación de ediciones pendientes al cerrar, confirmación conjunta de protocolo y adjuntos, respaldo ZIP del espacio y restauración con hashes y límites de tamaño. El HTML local conserva el adaptador de compatibilidad con adjuntos de hasta 1 MB; IndexedDB admite hasta 10 MB por archivo.\n- Inventario con movimientos de entrada, devolución y recuento con motivo; reservas por ejecución; archivo de frascos y conversión de unidad que conserva cantidad física, reservas y unidades históricas.\n- Placas de 6 a 384 pozos, grupos, controles, réplicas, muestras, CSV, dilución seriada y transferencias previstas con capacidad y conservación de volumen.\n- Regresión ordinaria y ponderada con incertidumbres conocidas, covarianzas, residuos, predicción y simulación reproducible. Los oráculos independientes se registran con versiones e inputs; no se distribuye Python en la aplicación.\n- Bibliografía local BibTeX/RIS/CSL, Word con anexos, MathML, estructuras SMILES y paquetes de investigación con revisiones y archivos verificados.\n- Muestras con recuentos, consumos, ubicación, descarte y alícuotas atómicas, con identidad del origen conservada. Secuencias FASTA, complemento inverso, GC ambiguo, seis marcos y tablas NCBI 1/2/11 contrastados con Biopython y Biotite. El archivo original se guarda junto a las secuencias.\n- Diseñador DAG con detección de ciclos, niveles, ruta crítica contrastada con NetworkX y requisitos de ejecución conservados por revisión. Orden libre conserva el comportamiento anterior sin inventar paralelismo.\n- Importación instrumental con mapa de columnas, separadores decimales y unidades declarados, vista previa, validación atómica y archivo original verificable por ejecución. Las placas de 384 pozos se validan en un solo lote.\n- Diez bibliotecas incrustadas, versiones fijadas, licencias transitivas y reconstrucción del HTML descargable sin instalar dependencias.\n\nLa verificación y los siguientes cambios se registran en [ciclo-autonomo.md](ciclo-autonomo.md). La aplicación sigue siendo un cuaderno local editable; los hashes comprueban contenido y no constituyen firmas.\n\n## Referencias, una por una\n\n| Proyecto | Parte elegida | Estado actual | Alcance pendiente |\n| --- | --- | --- | --- |\n| [elabftw/elabftw](https://github.com/elabftw/elabftw) | Revisión fija, ejecución, adjuntos con hash y vínculos a protocolo, lote, muestra o instrumento | Patrón adaptado parcialmente | Firmas electrónicas y auditoría inmutable en preparación. |\n| [ComPlat/chemotion_ELN](https://github.com/ComPlat/chemotion_ELN) | Condiciones por revisión y vínculo de instrumento en caracterización | Patrón adaptado parcialmente | Estructuras moleculares y entidades de reacción |\n| [scinote-eln/scinote-web](https://github.com/scinote-eln/scinote-web) | Definición del protocolo separada de la referencia fija de ejecución | Patrón adaptado parcialmente | Publicación formal y ciclo de aprobación de revisiones |\n| [Bioprotocols/labop](https://github.com/Bioprotocols/labop) | Acciones tipadas, dependencias DAG sin ciclos, orden fijado por ejecución y ruta crítica cuando hay tiempos declarados | Patrón adaptado parcialmente | No se incorpora intercambio LabOP/RDF, programación de robots ni reserva temporal de equipos. |\n| [Opentrons/opentrons](https://github.com/Opentrons/opentrons) | Acciones, distribución de placas, dilución seriada y comprobación de recursos | Patrón adaptado parcialmente | No se genera un programa de robot validado. |\n| [PyLabRobot/pylabrobot](https://github.com/PyLabRobot/pylabrobot) | Transferencias previstas con conservación de volumen y capacidad por pozo | Patrón adaptado parcialmente | No se controla hardware ni se presentan planes como acciones ejecutadas. |\n| [inventree/InvenTree](https://github.com/inventree/InvenTree) | Entradas, devoluciones, recuentos, reservas, consumos y conversión de unidades conservando historial | Patrón adaptado parcialmente | No sustituye un ERP multiusuario ni gestiona compras. |\n| [senaite/senaite.core](https://github.com/senaite/senaite.core) | Muestras con cantidad desconocida explícita, estado, ubicación, movimientos y procedencia de alícuotas | Patrón adaptado parcialmente | No se copia código GPL ni se incorporan servidor, roles o auditoría inmutable. |\n| [fcskit/obsidian-eln](https://github.com/fcskit/obsidian-eln) | Notas locales, adjuntos y recuperación de ediciones al cerrar una pestaña | Patrón adaptado parcialmente | No depende de Obsidian ni comparte archivos automáticamente. |\n| [epam/Indigo-ELN-v.-2.0](https://github.com/epam/Indigo-ELN-v.-2.0) | Referencia alternativa de ELN químico; stack Java, no candidato a fork de Methods. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [rdkit/rdkit](https://github.com/rdkit/rdkit) | Validación de moléculas y descriptores; C++/Python, oráculo externo de desarrollo. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [rdkit/rdkit-js](https://github.com/rdkit/rdkit-js) | Moléculas en navegador mediante WASM; verificar licencia y recursos del paquete exacto. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [partridgejiang/Kekule.js](https://github.com/partridgejiang/Kekule.js) | Editor químico e intercambio de formatos; autohospedado y con tokens de Erlen. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [reymond-group/smilesDrawer](https://github.com/reymond-group/smilesDrawer) | Lectura SMILES y dibujo SVG local | Biblioteca incorporada | No acredita identidad, propiedades ni peligros; MOL/SDF en preparación. |\n| [cheminfo/openchemlib-js](https://github.com/cheminfo/openchemlib-js) | Estructuras y herramientas químicas; comparar tamaño y funciones con RDKit.js. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [bjodah/chempy](https://github.com/bjodah/chempy) | Contraste independiente de la suma de fuerza iónica | Herramienta de verificación incorporada | No incorpora un solucionador de especiación o equilibrio general. |\n| [CalebBell/chemicals](https://github.com/CalebBell/chemicals) | Contraste de densidad de mezcla por volúmenes aditivos | Herramienta de verificación incorporada | No se copian tablas de propiedades ni se estima contracción. |\n| [CalebBell/thermo](https://github.com/CalebBell/thermo) | Termodinámica y equilibrio de fases; trabajo científico avanzado posterior. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [CalebBell/fluids](https://github.com/CalebBell/fluids) | Flujo laminar, presión inversa y Darcy–Weisbach/Colebrook con rugosidad declarada | Oráculo independiente y cálculo adaptado | Pérdidas locales, flujo no newtoniano y redes de tuberías |\n| [biopython/biopython](https://github.com/biopython/biopython) | Oráculos de FASTA, GC ambiguo, complemento inverso, seis marcos y tablas NCBI 1/2/11 | Herramienta de verificación incorporada | Python sólo se usa para comprobar; no se incorporan búsquedas remotas ni anotaciones inventadas. |\n| [biotite-dev/biotite](https://github.com/biotite-dev/biotite) | Segundo contraste independiente del complemento inverso y traducción de ADN inequívoco | Herramienta de verificación incorporada | Análisis de estructura molecular y alineamientos en preparación. |\n| [Lattice-Automation/seqviz](https://github.com/Lattice-Automation/seqviz) | Vista local de secuencias, identidad, vínculo a muestra y transformaciones descargables | Patrón adaptado parcialmente | No se copia código ni componente React; anotaciones y mapas circulares en preparación. |\n| [jpquast/ggplate](https://github.com/jpquast/ggplate) | Mapa de placas con controles, grupos, réplicas y tabla accesible | Patrón adaptado parcialmente | No se incorpora el runtime R. |\n| [ropensci/plater](https://github.com/ropensci/plater) | Tablas largas de plan y de medidas por ejecución, CSV íntegro, historial y rechazo de filas incompatibles | Patrón adaptado parcialmente | No se incorpora R ni se considera una transferencia declarada como confirmación de hardware. |\n| [hgrecco/pint](https://github.com/hgrecco/pint) | 24 conversiones dimensionales contra Pint 0.26.1; errores de unidades y resultados no representables | Oráculo independiente | Unidades afines y cantidades con contexto |\n| [josdejong/mathjs](https://github.com/josdejong/mathjs) | Unidades, matrices, números y expresiones; limitar funciones expuestas y tamaño. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [convert-units/convert-units](https://github.com/convert-units/convert-units) | Conversión de unidades; no reemplaza por sí sola el análisis dimensional. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [simple-statistics/simple-statistics](https://github.com/simple-statistics/simple-statistics) | Media, desviación estándar y cuantiles de Monte Carlo reproducible | Biblioteca incorporada | No reemplaza las funciones metrológicas propias ni valida supuestos. |\n| [jstat/jstat](https://github.com/jstat/jstat) | Distribuciones y cuantiles; evaluar funciones faltantes sin duplicar motores. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [stdlib-js/stdlib](https://github.com/stdlib-js/stdlib) | Funciones numéricas independientes; evitar incluir el monorepo completo. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [scipy/scipy](https://github.com/scipy/scipy) | Contraste de cuantiles e intervalos de predicción | Herramienta de verificación incorporada | Python sólo se usa en desarrollo. |\n| [statsmodels/statsmodels](https://github.com/statsmodels/statsmodels) | Regresión OLS/WLS, covarianzas, palancas, Cook e inversión de la predicción con intervalos Fieller | Herramienta de verificación incorporada | No se aplica eliminación automática de patrones ni se afirma que la linealidad esté demostrada. |\n| [lmfit/uncertainties](https://github.com/lmfit/uncertainties) | GUM con covarianzas; simulación normal correlacionada, triangular, uniforme y lognormal con límites declarados | Herramienta de verificación incorporada | Las correlaciones de distribuciones no normales no se suponen ni se ignoran. |\n| [JuliaPhysics/Measurements.jl](https://github.com/JuliaPhysics/Measurements.jl) | Correlación perfecta y cancelación de contribuciones dependientes | Patrón adaptado parcialmente | Contraste contra Julia y dependencias compartidas entre resultados |\n| [sympy/sympy](https://github.com/sympy/sympy) | Diferenciación automática contrastada con 16 modelos de SymPy 1.14.0, incluidos valores extremos | Oráculo independiente y algoritmo propio | Álgebra simbólica general |\n| [materialsproject/pymatgen](https://github.com/materialsproject/pymatgen) | Contraste independiente de composición elemental, incluidas fracciones estequiométricas | Herramienta de verificación incorporada | No incorpora DFT, fases ni estructura cristalográfica. |\n| [dolanmiu/docx](https://github.com/dolanmiu/docx) | Word declarativo con métodos, referencias, placas y anexos de ejecución | Biblioteca incorporada | Plantillas editoriales específicas en preparación. |\n| [citation-js/citation-js](https://github.com/citation-js/citation-js) | Importación/exportación local BibTeX, RIS y CSL, vínculos a condiciones publicadas | Biblioteca incorporada | No consulta DOI remotos ni completa metadatos ausentes. |\n| [jgm/pandoc](https://github.com/jgm/pandoc) | Conversión de documentos; Haskell/CLI, no dependencia directa de app offline. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [KaTeX/KaTeX](https://github.com/KaTeX/KaTeX) | Vista LaTeX con MathML nativo y sin fuentes externas | Biblioteca incorporada | Edición de ecuaciones integrada en el protocolo en preparación. |\n| [markdown-it/markdown-it](https://github.com/markdown-it/markdown-it) | Vista previa Markdown; sanitizar cualquier HTML que se habilite. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [101arrowz/fflate](https://github.com/101arrowz/fflate) | ZIP de Word, investigación y respaldo; restauración verificada con hashes y límites de descompresión | Biblioteca incorporada | No se incorporan servicios externos de almacenamiento. |\n| [mholt/PapaParse](https://github.com/mholt/PapaParse) | CSV con comillas multilínea, asignación explícita de columnas, decimales/unidades, previsualización íntegra y conservación del archivo original | Biblioteca incorporada | Lectura por flujo de archivos mayores de 5 MB en preparación. |\n| [ajv-validator/ajv](https://github.com/ajv-validator/ajv) | Esquema compartido y validador precompilado incrustado; validación de importaciones y respaldos | Herramienta de verificación incorporada | Reglas científicas adicionales se validan en el modelo; AJV no valida la ciencia. |\n| [dexie/Dexie.js](https://github.com/dexie/Dexie.js) | IndexedDB, migración del legado, escritura conjunta de protocolo y adjuntos, restauración transaccional | Biblioteca incorporada | Replicación externa y colaboración en preparación. |\n| [pubkey/rxdb](https://github.com/pubkey/rxdb) | Reactividad y replicación; mayor alcance y coste que el caso actual, excluir premium. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [yjs/yjs](https://github.com/yjs/yjs) | CRDT para editores; no hace falta para una app sin cuentas y sin servidor. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [automerge/automerge](https://github.com/automerge/automerge) | CRDT y fusión de documentos; evaluar únicamente si se autoriza colaboración. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [benjamine/jsondiffpatch](https://github.com/benjamine/jsondiffpatch) | Comparación por id y combinación de tres copias con decisiones completas por entidad y revisión común verificada | Patrón adaptado con implementación propia | Edición simultánea en red y CRDT; no se distribuye jsondiffpatch |\n| [lit/lit](https://github.com/lit/lit) | Web components sin exigir React; conservar el cromo de @erlen/design. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [shoelace-style/shoelace](https://github.com/shoelace-style/shoelace) | Archivado; no sustituir el sistema visual propio de Erlen. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [SortableJS/Sortable](https://github.com/SortableJS/Sortable) | Reordenación por arrastre HTML nativo y botones equivalentes por teclado; enlaces conservados por identidad | Patrón adaptado parcialmente | No se incorpora la biblioteca ni se afirma haber implementado arrastre táctil; en móvil se usan Subir/Bajar. |\n| [krisk/Fuse](https://github.com/krisk/Fuse) | Búsqueda local por título, tipo y resumen tolerante a erratas | Biblioteca incorporada | Indexar el contenido de procedimientos y referencias |\n| [plotly/plotly.js](https://github.com/plotly/plotly.js) | Gráficas científicas; usar build parcial y comprobar presupuesto, no paquete completo. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [apache/echarts](https://github.com/apache/echarts) | Build parcial SVG: calibración, residuos, tendencias y exportación de gráficas | Biblioteca incorporada | Otros tipos de gráfica se evalúan según necesidad y presupuesto. |\n| [chartjs/Chart.js](https://github.com/chartjs/Chart.js) | Curvas y cartas con Canvas; proveer datos accesibles fuera del canvas. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [vega/vega-lite](https://github.com/vega/vega-lite) | Especificaciones reproducibles; mayor capa de runtime, comparar antes de adoptar. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [nodeca/js-yaml](https://github.com/nodeca/js-yaml) | YAML local para plantillas; no introducir formato adicional sin necesidad. | En preparación | Evaluar y adaptar selectivamente la parte elegida; no se ha incorporado código de este proyecto. |\n| [microsoft/playwright](https://github.com/microsoft/playwright) | Flujo de ejecución, persistencia, HTML sin red, tamaños móviles y accesibilidad WCAG de la pantalla nueva | Herramienta de verificación incorporada | Ampliar axe a todas las secciones y añadir más recorridos por teclado |\n| [dequelabs/axe-core](https://github.com/dequelabs/axe-core) | Flujo de ejecución, persistencia, HTML sin red, tamaños móviles y accesibilidad WCAG de la pantalla nueva | Herramienta de verificación incorporada | Ampliar axe a todas las secciones y añadir más recorridos por teclado |\n| [ResearchObject/ro-crate-py](https://github.com/ResearchObject/ro-crate-py) | RO-Crate 0.15.1 lee 16 paquetes y comprueba 160 archivos con hash y tamaño | Lector externo independiente | Certificación completa de perfiles y firmas |\n| [seek4science/seek](https://github.com/seek4science/seek) | Relación explícita entre definición, ejecución, muestra e instrumento | Patrón adaptado parcialmente | Enlaces entre estudios, datos y materiales |\n| [melizalab/django-lab-inventory](https://github.com/melizalab/django-lab-inventory) | Existencias convertidas entre unidades compatibles y consumos por frasco | Patrón adaptado parcialmente | Catálogos de proveedores y múltiples ubicaciones por artículo |\n| [ResearchObject/ro-crate](https://github.com/ResearchObject/ro-crate) | RO-Crate 1.1 con archivos, referencias, ejecuciones y hashes; leído por ro-crate-py | Especificación adaptada y contrastada | Certificación completa de perfiles y firmas |\n\nLa cuantificación de placas usa el ajuste conservado y exige unidades y factor de dilución declarados. Mantiene respuestas, correcciones y archivos originales; una vista previa deja de ser aplicable si cambian sus fuentes. La calculadora y Análisis de resultados comparten el mismo núcleo centrado y sus intervalos de Fieller.\n",
  "erlen-suite-catalog.json": "{\n  \"items\": [\n    {\n      \"id\": \"slides\",\n      \"label\": \"Slides\",\n      \"href\": \"/slides/\"\n    },\n    {\n      \"id\": \"notes\",\n      \"label\": \"Notes\",\n      \"href\": \"/notes/\"\n    },\n    {\n      \"id\": \"lens\",\n      \"label\": \"Lens\",\n      \"href\": \"/lens/\"\n    },\n    {\n      \"id\": \"pentagrama\",\n      \"label\": \"Pentagrama\",\n      \"href\": \"/pentagrama/\"\n    },\n    {\n      \"id\": \"documents\",\n      \"label\": \"Documents\",\n      \"href\": \"/documents/\"\n    },\n    {\n      \"id\": \"spreadsheets\",\n      \"label\": \"Spreadsheets\",\n      \"href\": \"/spreadsheets/\"\n    },\n    {\n      \"id\": \"figures\",\n      \"label\": \"Figures\",\n      \"href\": \"/figures/\"\n    },\n    {\n      \"id\": \"ftir\",\n      \"label\": \"FTIR Studio\",\n      \"href\": \"/ftir/\"\n    },\n    {\n      \"id\": \"doe\",\n      \"label\": \"DoE\",\n      \"href\": \"/doe/\"\n    },\n    {\n      \"id\": \"xrd\",\n      \"label\": \"XRD Studio\",\n      \"href\": \"/xrd/\"\n    },\n    {\n      \"id\": \"xps\",\n      \"label\": \"XPS Studio\",\n      \"href\": \"/xps/\"\n    },\n    {\n      \"id\": \"thermal\",\n      \"label\": \"Thermal\",\n      \"href\": \"/thermal/\"\n    },\n    {\n      \"id\": \"rmn\",\n      \"label\": \"RMN Studio\",\n      \"href\": \"/rmn/\"\n    },\n    {\n      \"id\": \"methods\",\n      \"label\": \"Methods\",\n      \"href\": \"/methods/\"\n    },\n    {\n      \"id\": \"dft\",\n      \"label\": \"DFT Studio\",\n      \"href\": \"/dft/\"\n    },\n    {\n      \"id\": \"fem\",\n      \"label\": \"FEM Studio\",\n      \"href\": \"/fem/\"\n    },\n    {\n      \"id\": \"learn\",\n      \"label\": \"Learn\",\n      \"href\": \"/learn/\"\n    },\n    {\n      \"id\": \"analyze\",\n      \"label\": \"Analyze\",\n      \"href\": \"/analyze/\"\n    },\n    {\n      \"id\": \"data\",\n      \"label\": \"Data\",\n      \"href\": \"/data/\"\n    },\n    {\n      \"id\": \"projects\",\n      \"label\": \"Projects\",\n      \"href\": \"/projects/\"\n    },\n    {\n      \"id\": \"release\",\n      \"label\": \"Release\",\n      \"href\": \"/release/\"\n    },\n    {\n      \"id\": \"burocracy\",\n      \"label\": \"Nexo\",\n      \"href\": \"/nexo/\"\n    },\n    {\n      \"id\": \"legacy-editor\",\n      \"label\": \"Editor de Erlen\",\n      \"href\": \"/app/\"\n    },\n    {\n      \"id\": \"research\",\n      \"label\": \"Erlen Research\",\n      \"href\": \"https://research.erlensuite.com/\"\n    }\n  ],\n  \"home\": {\n    \"id\": \"portal\",\n    \"label\": \"Inicio de Erlen\",\n    \"href\": \"/\"\n  }\n}\n"
 }
}
