@brftech/filex 0.1.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +93 -0
  3. package/dist/ArchiveViewer-CMaBM4yZ.js +98 -0
  4. package/dist/ArchiveViewer-CMaBM4yZ.js.map +1 -0
  5. package/dist/CsvViewer-D5_c7bkP.js +131 -0
  6. package/dist/CsvViewer-D5_c7bkP.js.map +1 -0
  7. package/dist/DrawioViewer-CBOqWzaj.js +140 -0
  8. package/dist/DrawioViewer-CBOqWzaj.js.map +1 -0
  9. package/dist/EpubViewer-Cs6yZIP2.js +143 -0
  10. package/dist/EpubViewer-Cs6yZIP2.js.map +1 -0
  11. package/dist/IpynbViewer-wJhbhUla.js +171 -0
  12. package/dist/IpynbViewer-wJhbhUla.js.map +1 -0
  13. package/dist/MermaidViewer-k_XVXoc5.js +127 -0
  14. package/dist/MermaidViewer-k_XVXoc5.js.map +1 -0
  15. package/dist/PsdViewer-Bo4imBCF.js +109 -0
  16. package/dist/PsdViewer-Bo4imBCF.js.map +1 -0
  17. package/dist/TiffViewer-D73-Gyt-.js +130 -0
  18. package/dist/TiffViewer-D73-Gyt-.js.map +1 -0
  19. package/dist/UTIF-DSbsvqXu.js +3104 -0
  20. package/dist/UTIF-DSbsvqXu.js.map +1 -0
  21. package/dist/Viewer3D-Ba-RPIRz.js +60 -0
  22. package/dist/Viewer3D-Ba-RPIRz.js.map +1 -0
  23. package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
  24. package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
  25. package/dist/filex.js +5 -0
  26. package/dist/filex.js.map +1 -0
  27. package/dist/filex.umd.cjs +304 -0
  28. package/dist/filex.umd.cjs.map +1 -0
  29. package/dist/index-UFULWo35.js +10736 -0
  30. package/dist/index-UFULWo35.js.map +1 -0
  31. package/dist/index-idz8Cz5t.js +10623 -0
  32. package/dist/index-idz8Cz5t.js.map +1 -0
  33. package/dist/index.d.ts +23 -0
  34. package/dist/katex-yuB6V-q6.js +11616 -0
  35. package/dist/katex-yuB6V-q6.js.map +1 -0
  36. package/dist/papaparse.min-VB1HBwYX.js +441 -0
  37. package/dist/papaparse.min-VB1HBwYX.js.map +1 -0
  38. package/dist/style.css +1 -0
  39. package/dist/useViewerFetch-czqbd2Lj.js +25 -0
  40. package/dist/useViewerFetch-czqbd2Lj.js.map +1 -0
  41. package/package.json +63 -0
@@ -0,0 +1,304 @@
1
+ (function(Xi,Yi){typeof exports=="object"&&typeof module<"u"?Yi(exports):typeof define=="function"&&define.amd?define(["exports"],Yi):(Xi=typeof globalThis<"u"?globalThis:Xi||self,Yi(Xi.Filex={}))})(this,function(Xi){"use strict";function Yi(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}/**
2
+ * @vue/shared v3.5.34
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function wu(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Kt={},Zi=[],ea=()=>{},Ld=()=>!1,cs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),fs=e=>e.startsWith("onUpdate:"),ar=Object.assign,ku=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},qb=Object.prototype.hasOwnProperty,$t=(e,t)=>qb.call(e,t),bt=Array.isArray,Ji=e=>Qo(e)==="[object Map]",Qi=e=>Qo(e)==="[object Set]",Bd=e=>Qo(e)==="[object Date]",St=e=>typeof e=="function",Jt=e=>typeof e=="string",Nn=e=>typeof e=="symbol",Vt=e=>e!==null&&typeof e=="object",Nd=e=>(Vt(e)||St(e))&&St(e.then)&&St(e.catch),$d=Object.prototype.toString,Qo=e=>$d.call(e),Wb=e=>Qo(e).slice(8,-1),ds=e=>Qo(e)==="[object Object]",Su=e=>Jt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,el=wu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hs=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Kb=/-\w/g,Er=hs(e=>e.replace(Kb,t=>t.slice(1).toUpperCase())),Xb=/\B([A-Z])/g,fn=hs(e=>e.replace(Xb,"-$1").toLowerCase()),ps=hs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Cu=hs(e=>e?`on${ps(e)}`:""),ta=(e,t)=>!Object.is(e,t),vs=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},Ud=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},ms=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Au=e=>{const t=Jt(e)?Number(e):NaN;return isNaN(t)?e:t};let Hd;const gs=()=>Hd||(Hd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xa(e){if(bt(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],a=Jt(n)?Qb(n):Xa(n);if(a)for(const i in a)t[i]=a[i]}return t}else if(Jt(e)||Vt(e))return e}const Yb=/;(?![^(]*\))/g,Zb=/:([^]+)/,Jb=/\/\*[^]*?\*\//g;function Qb(e){const t={};return e.replace(Jb,"").split(Yb).forEach(r=>{if(r){const n=r.split(Zb);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Xt(e){let t="";if(Jt(e))t=e;else if(bt(e))for(let r=0;r<e.length;r++){const n=Xt(e[r]);n&&(t+=n+" ")}else if(Vt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const e5=wu("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function jd(e){return!!e||e===""}function t5(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=eo(e[n],t[n]);return r}function eo(e,t){if(e===t)return!0;let r=Bd(e),n=Bd(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=Nn(e),n=Nn(t),r||n)return e===t;if(r=bt(e),n=bt(t),r||n)return r&&n?t5(e,t):!1;if(r=Vt(e),n=Vt(t),r||n){if(!r||!n)return!1;const a=Object.keys(e).length,i=Object.keys(t).length;if(a!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),s=t.hasOwnProperty(o);if(l&&!s||!l&&s||!eo(e[o],t[o]))return!1}}return String(e)===String(t)}function Eu(e,t){return e.findIndex(r=>eo(r,t))}const Gd=e=>!!(e&&e.__v_isRef===!0),se=e=>Jt(e)?e:e==null?"":bt(e)||Vt(e)&&(e.toString===$d||!St(e.toString))?Gd(e)?se(e.value):JSON.stringify(e,Vd,2):String(e),Vd=(e,t)=>Gd(t)?Vd(e,t.value):Ji(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,a],i)=>(r[Tu(n,i)+" =>"]=a,r),{})}:Qi(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Tu(r))}:Nn(t)?Tu(t):Vt(t)&&!bt(t)&&!ds(t)?String(t):t,Tu=(e,t="")=>{var r;return Nn(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
6
+ * @vue/reactivity v3.5.34
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let Or;class r5{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Or&&(Or.active?(this.parent=Or,this.index=(Or.scopes||(Or.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=Or;try{return Or=this,t()}finally{Or=r}}}on(){++this._on===1&&(this.prevScope=Or,Or=this)}off(){if(this._on>0&&--this._on===0){if(Or===this)Or=this.prevScope;else{let t=Or;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function n5(){return Or}let Qt;const Mu=new WeakSet;class qd{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Or&&(Or.active?Or.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Mu.has(this)&&(Mu.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Kd(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Qd(this),Xd(this);const t=Qt,r=$n;Qt=this,$n=!0;try{return this.fn()}finally{Yd(this),Qt=t,$n=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Fu(t);this.deps=this.depsTail=void 0,Qd(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Mu.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){zu(this)&&this.run()}get dirty(){return zu(this)}}let Wd=0,tl,rl;function Kd(e,t=!1){if(e.flags|=8,t){e.next=rl,rl=e;return}e.next=tl,tl=e}function Du(){Wd++}function Iu(){if(--Wd>0)return;if(rl){let t=rl;for(rl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;tl;){let t=tl;for(tl=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function Xd(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Yd(e){let t,r=e.depsTail,n=r;for(;n;){const a=n.prevDep;n.version===-1?(n===r&&(r=a),Fu(n),a5(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=a}e.deps=t,e.depsTail=r}function zu(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zd(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zd(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===nl)||(e.globalVersion=nl,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!zu(e))))return;e.flags|=2;const t=e.dep,r=Qt,n=$n;Qt=e,$n=!0;try{Xd(e);const a=e.fn(e._value);(t.version===0||ta(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{Qt=r,$n=n,Yd(e),e.flags&=-3}}function Fu(e,t=!1){const{dep:r,prevSub:n,nextSub:a}=e;if(n&&(n.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)Fu(i,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function a5(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let $n=!0;const Jd=[];function ra(){Jd.push($n),$n=!1}function na(){const e=Jd.pop();$n=e===void 0?!0:e}function Qd(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Qt;Qt=void 0;try{t()}finally{Qt=r}}}let nl=0;class i5{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class bs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Qt||!$n||Qt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Qt)r=this.activeLink=new i5(Qt,this),Qt.deps?(r.prevDep=Qt.depsTail,Qt.depsTail.nextDep=r,Qt.depsTail=r):Qt.deps=Qt.depsTail=r,e1(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=Qt.depsTail,r.nextDep=void 0,Qt.depsTail.nextDep=r,Qt.depsTail=r,Qt.deps===r&&(Qt.deps=n)}return r}trigger(t){this.version++,nl++,this.notify(t)}notify(t){Du();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Iu()}}}function e1(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)e1(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Ou=new WeakMap,wi=Symbol(""),Pu=Symbol(""),al=Symbol("");function $r(e,t,r){if($n&&Qt){let n=Ou.get(e);n||Ou.set(e,n=new Map);let a=n.get(r);a||(n.set(r,a=new bs),a.map=n,a.key=r),a.track()}}function ka(e,t,r,n,a,i){const o=Ou.get(e);if(!o){nl++;return}const l=s=>{s&&s.trigger()};if(Du(),t==="clear")o.forEach(l);else{const s=bt(e),u=s&&Su(r);if(s&&r==="length"){const c=Number(n);o.forEach((f,d)=>{(d==="length"||d===al||!Nn(d)&&d>=c)&&l(f)})}else switch((r!==void 0||o.has(void 0))&&l(o.get(r)),u&&l(o.get(al)),t){case"add":s?u&&l(o.get("length")):(l(o.get(wi)),Ji(e)&&l(o.get(Pu)));break;case"delete":s||(l(o.get(wi)),Ji(e)&&l(o.get(Pu)));break;case"set":Ji(e)&&l(o.get(wi));break}}Iu()}function to(e){const t=Lt(e);return t===e?t:($r(t,"iterate",al),En(e)?t:t.map(Un))}function ys(e){return $r(e=Lt(e),"iterate",al),e}function aa(e,t){return Ca(e)?ro(ki(e)?Un(t):t):Un(t)}const o5={__proto__:null,[Symbol.iterator](){return Ru(this,Symbol.iterator,e=>aa(this,e))},concat(...e){return to(this).concat(...e.map(t=>bt(t)?to(t):t))},entries(){return Ru(this,"entries",e=>(e[1]=aa(this,e[1]),e))},every(e,t){return Sa(this,"every",e,t,void 0,arguments)},filter(e,t){return Sa(this,"filter",e,t,r=>r.map(n=>aa(this,n)),arguments)},find(e,t){return Sa(this,"find",e,t,r=>aa(this,r),arguments)},findIndex(e,t){return Sa(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Sa(this,"findLast",e,t,r=>aa(this,r),arguments)},findLastIndex(e,t){return Sa(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Sa(this,"forEach",e,t,void 0,arguments)},includes(...e){return Lu(this,"includes",e)},indexOf(...e){return Lu(this,"indexOf",e)},join(e){return to(this).join(e)},lastIndexOf(...e){return Lu(this,"lastIndexOf",e)},map(e,t){return Sa(this,"map",e,t,void 0,arguments)},pop(){return il(this,"pop")},push(...e){return il(this,"push",e)},reduce(e,...t){return t1(this,"reduce",e,t)},reduceRight(e,...t){return t1(this,"reduceRight",e,t)},shift(){return il(this,"shift")},some(e,t){return Sa(this,"some",e,t,void 0,arguments)},splice(...e){return il(this,"splice",e)},toReversed(){return to(this).toReversed()},toSorted(e){return to(this).toSorted(e)},toSpliced(...e){return to(this).toSpliced(...e)},unshift(...e){return il(this,"unshift",e)},values(){return Ru(this,"values",e=>aa(this,e))}};function Ru(e,t,r){const n=ys(e),a=n[t]();return n!==e&&!En(e)&&(a._next=a.next,a.next=()=>{const i=a._next();return i.done||(i.value=r(i.value)),i}),a}const l5=Array.prototype;function Sa(e,t,r,n,a,i){const o=ys(e),l=o!==e&&!En(e),s=o[t];if(s!==l5[t]){const f=s.apply(e,i);return l?Un(f):f}let u=r;o!==e&&(l?u=function(f,d){return r.call(this,aa(e,f),d,e)}:r.length>2&&(u=function(f,d){return r.call(this,f,d,e)}));const c=s.call(o,u,n);return l&&a?a(c):c}function t1(e,t,r,n){const a=ys(e),i=a!==e&&!En(e);let o=r,l=!1;a!==e&&(i?(l=n.length===0,o=function(u,c,f){return l&&(l=!1,u=aa(e,u)),r.call(this,u,aa(e,c),f,e)}):r.length>3&&(o=function(u,c,f){return r.call(this,u,c,f,e)}));const s=a[t](o,...n);return l?aa(e,s):s}function Lu(e,t,r){const n=Lt(e);$r(n,"iterate",al);const a=n[t](...r);return(a===-1||a===!1)&&Uu(r[0])?(r[0]=Lt(r[0]),n[t](...r)):a}function il(e,t,r=[]){ra(),Du();const n=Lt(e)[t].apply(e,r);return Iu(),na(),n}const s5=wu("__proto__,__v_isRef,__isVue"),r1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Nn));function u5(e){Nn(e)||(e=String(e));const t=Lt(this);return $r(t,"has",e),t.hasOwnProperty(e)}class n1{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const a=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!a;if(r==="__v_isReadonly")return a;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(a?i?u1:s1:i?l1:o1).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=bt(t);if(!a){let s;if(o&&(s=o5[r]))return s;if(r==="hasOwnProperty")return u5}const l=Reflect.get(t,r,Pr(t)?t:n);if((Nn(r)?r1.has(r):s5(r))||(a||$r(t,"get",r),i))return l;if(Pr(l)){const s=o&&Su(r)?l:l.value;return a&&Vt(s)?$u(s):s}return Vt(l)?a?$u(l):Nu(l):l}}class a1 extends n1{constructor(t=!1){super(!1,t)}set(t,r,n,a){let i=t[r];const o=bt(t)&&Su(r);if(!this._isShallow){const u=Ca(i);if(!En(n)&&!Ca(n)&&(i=Lt(i),n=Lt(n)),!o&&Pr(i)&&!Pr(n))return u||(i.value=n),!0}const l=o?Number(r)<t.length:$t(t,r),s=Reflect.set(t,r,n,Pr(t)?t:a);return t===Lt(a)&&(l?ta(n,i)&&ka(t,"set",r,n):ka(t,"add",r,n)),s}deleteProperty(t,r){const n=$t(t,r);t[r];const a=Reflect.deleteProperty(t,r);return a&&n&&ka(t,"delete",r,void 0),a}has(t,r){const n=Reflect.has(t,r);return(!Nn(r)||!r1.has(r))&&$r(t,"has",r),n}ownKeys(t){return $r(t,"iterate",bt(t)?"length":wi),Reflect.ownKeys(t)}}class i1 extends n1{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const c5=new a1,f5=new i1,d5=new a1(!0),h5=new i1(!0),Bu=e=>e,xs=e=>Reflect.getPrototypeOf(e);function p5(e,t,r){return function(...n){const a=this.__v_raw,i=Lt(a),o=Ji(i),l=e==="entries"||e===Symbol.iterator&&o,s=e==="keys"&&o,u=a[e](...n),c=r?Bu:t?ro:Un;return!t&&$r(i,"iterate",s?Pu:wi),ar(Object.create(u),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:l?[c(f[0]),c(f[1])]:c(f),done:d}}})}}function _s(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function v5(e,t){const r={get(a){const i=this.__v_raw,o=Lt(i),l=Lt(a);e||(ta(a,l)&&$r(o,"get",a),$r(o,"get",l));const{has:s}=xs(o),u=t?Bu:e?ro:Un;if(s.call(o,a))return u(i.get(a));if(s.call(o,l))return u(i.get(l));i!==o&&i.get(a)},get size(){const a=this.__v_raw;return!e&&$r(Lt(a),"iterate",wi),a.size},has(a){const i=this.__v_raw,o=Lt(i),l=Lt(a);return e||(ta(a,l)&&$r(o,"has",a),$r(o,"has",l)),a===l?i.has(a):i.has(a)||i.has(l)},forEach(a,i){const o=this,l=o.__v_raw,s=Lt(l),u=t?Bu:e?ro:Un;return!e&&$r(s,"iterate",wi),l.forEach((c,f)=>a.call(i,u(c),u(f),o))}};return ar(r,e?{add:_s("add"),set:_s("set"),delete:_s("delete"),clear:_s("clear")}:{add(a){const i=Lt(this),o=xs(i),l=Lt(a),s=!t&&!En(a)&&!Ca(a)?l:a;return o.has.call(i,s)||ta(a,s)&&o.has.call(i,a)||ta(l,s)&&o.has.call(i,l)||(i.add(s),ka(i,"add",s,s)),this},set(a,i){!t&&!En(i)&&!Ca(i)&&(i=Lt(i));const o=Lt(this),{has:l,get:s}=xs(o);let u=l.call(o,a);u||(a=Lt(a),u=l.call(o,a));const c=s.call(o,a);return o.set(a,i),u?ta(i,c)&&ka(o,"set",a,i):ka(o,"add",a,i),this},delete(a){const i=Lt(this),{has:o,get:l}=xs(i);let s=o.call(i,a);s||(a=Lt(a),s=o.call(i,a)),l&&l.call(i,a);const u=i.delete(a);return s&&ka(i,"delete",a,void 0),u},clear(){const a=Lt(this),i=a.size!==0,o=a.clear();return i&&ka(a,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(a=>{r[a]=p5(a,e,t)}),r}function ws(e,t){const r=v5(e,t);return(n,a,i)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?n:Reflect.get($t(r,a)&&a in n?r:n,a,i)}const m5={get:ws(!1,!1)},g5={get:ws(!1,!0)},b5={get:ws(!0,!1)},y5={get:ws(!0,!0)},o1=new WeakMap,l1=new WeakMap,s1=new WeakMap,u1=new WeakMap;function x5(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _5(e){return e.__v_skip||!Object.isExtensible(e)?0:x5(Wb(e))}function Nu(e){return Ca(e)?e:ks(e,!1,c5,m5,o1)}function w5(e){return ks(e,!1,d5,g5,l1)}function $u(e){return ks(e,!0,f5,b5,s1)}function ZT(e){return ks(e,!0,h5,y5,u1)}function ks(e,t,r,n,a){if(!Vt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=_5(e);if(i===0)return e;const o=a.get(e);if(o)return o;const l=new Proxy(e,i===2?n:r);return a.set(e,l),l}function ki(e){return Ca(e)?ki(e.__v_raw):!!(e&&e.__v_isReactive)}function Ca(e){return!!(e&&e.__v_isReadonly)}function En(e){return!!(e&&e.__v_isShallow)}function Uu(e){return e?!!e.__v_raw:!1}function Lt(e){const t=e&&e.__v_raw;return t?Lt(t):e}function k5(e){return!$t(e,"__v_skip")&&Object.isExtensible(e)&&Ud(e,"__v_skip",!0),e}const Un=e=>Vt(e)?Nu(e):e,ro=e=>Vt(e)?$u(e):e;function Pr(e){return e?e.__v_isRef===!0:!1}function fe(e){return c1(e,!1)}function S5(e){return c1(e,!0)}function c1(e,t){return Pr(e)?e:new C5(e,t)}class C5{constructor(t,r){this.dep=new bs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Lt(t),this._value=r?t:Un(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||En(t)||Ca(t);t=n?t:Lt(t),ta(t,r)&&(this._rawValue=t,this._value=n?t:Un(t),this.dep.trigger())}}function Qe(e){return Pr(e)?e.value:e}const A5={get:(e,t,r)=>t==="__v_raw"?e:Qe(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const a=e[t];return Pr(a)&&!Pr(r)?(a.value=r,!0):Reflect.set(e,t,r,n)}};function f1(e){return ki(e)?e:new Proxy(e,A5)}class E5{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new bs,{get:n,set:a}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=a}get value(){return this._value=this._get()}set value(t){this._set(t)}}function T5(e){return new E5(e)}class M5{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new bs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=nl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Qt!==this)return Kd(this,!0),!0}get value(){const t=this.dep.track();return Zd(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function D5(e,t,r=!1){let n,a;return St(e)?n=e:(n=e.get,a=e.set),new M5(n,a,r)}const Ss={},Cs=new WeakMap;let Si;function I5(e,t=!1,r=Si){if(r){let n=Cs.get(r);n||Cs.set(r,n=[]),n.push(e)}}function z5(e,t,r=Kt){const{immediate:n,deep:a,once:i,scheduler:o,augmentJob:l,call:s}=r,u=v=>a?v:En(v)||a===!1||a===0?Aa(v,1):Aa(v);let c,f,d,h,b=!1,p=!1;if(Pr(e)?(f=()=>e.value,b=En(e)):ki(e)?(f=()=>u(e),b=!0):bt(e)?(p=!0,b=e.some(v=>ki(v)||En(v)),f=()=>e.map(v=>{if(Pr(v))return v.value;if(ki(v))return u(v);if(St(v))return s?s(v,2):v()})):St(e)?t?f=s?()=>s(e,2):e:f=()=>{if(d){ra();try{d()}finally{na()}}const v=Si;Si=c;try{return s?s(e,3,[h]):e(h)}finally{Si=v}}:f=ea,t&&a){const v=f,k=a===!0?1/0:a;f=()=>Aa(v(),k)}const x=n5(),g=()=>{c.stop(),x&&x.active&&ku(x.effects,c)};if(i&&t){const v=t;t=(...k)=>{v(...k),g()}}let m=p?new Array(e.length).fill(Ss):Ss;const y=v=>{if(!(!(c.flags&1)||!c.dirty&&!v))if(t){const k=c.run();if(a||b||(p?k.some((C,A)=>ta(C,m[A])):ta(k,m))){d&&d();const C=Si;Si=c;try{const A=[k,m===Ss?void 0:p&&m[0]===Ss?[]:m,h];m=k,s?s(t,3,A):t(...A)}finally{Si=C}}}else c.run()};return l&&l(y),c=new qd(f),c.scheduler=o?()=>o(y,!1):y,h=v=>I5(v,!1,c),d=c.onStop=()=>{const v=Cs.get(c);if(v){if(s)s(v,4);else for(const k of v)k();Cs.delete(c)}},t?n?y(!0):m=c.run():o?o(y.bind(null,!0),!0):c.run(),g.pause=c.pause.bind(c),g.resume=c.resume.bind(c),g.stop=g,g}function Aa(e,t=1/0,r){if(t<=0||!Vt(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Pr(e))Aa(e.value,t,r);else if(bt(e))for(let n=0;n<e.length;n++)Aa(e[n],t,r);else if(Qi(e)||Ji(e))e.forEach(n=>{Aa(n,t,r)});else if(ds(e)){for(const n in e)Aa(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Aa(e[n],t,r)}return e}/**
10
+ * @vue/runtime-core v3.5.34
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/const ol=[];let Hu=!1;function JT(e,...t){if(Hu)return;Hu=!0,ra();const r=ol.length?ol[ol.length-1].component:null,n=r&&r.appContext.config.warnHandler,a=F5();if(n)no(n,r,11,[e+t.map(i=>{var o,l;return(l=(o=i.toString)==null?void 0:o.call(i))!=null?l:JSON.stringify(i)}).join(""),r&&r.proxy,a.map(({vnode:i})=>`at <${_h(r,i.type)}>`).join(`
14
+ `),a]);else{const i=[`[Vue warn]: ${e}`,...t];a.length&&i.push(`
15
+ `,...O5(a)),console.warn(...i)}na(),Hu=!1}function F5(){let e=ol[ol.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function O5(e){const t=[];return e.forEach((r,n)=>{t.push(...n===0?[]:[`
16
+ `],...P5(r))}),t}function P5({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,a=` at <${_h(e.component,e.type,n)}`,i=">"+r;return e.props?[a,...R5(e.props),i]:[a+i]}function R5(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(n=>{t.push(...d1(n,e[n]))}),r.length>3&&t.push(" ..."),t}function d1(e,t,r){return Jt(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:Pr(t)?(t=d1(e,Lt(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):St(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Lt(t),r?t:[`${e}=`,t])}function no(e,t,r,n){try{return n?e(...n):e()}catch(a){As(a,t,r)}}function Hn(e,t,r,n){if(St(e)){const a=no(e,t,r,n);return a&&Nd(a)&&a.catch(i=>{As(i,t,r)}),a}if(bt(e)){const a=[];for(let i=0;i<e.length;i++)a.push(Hn(e[i],t,r,n));return a}}function As(e,t,r,n=!0){const a=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Kt;if(t){let l=t.parent;const s=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${r}`;for(;l;){const c=l.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,s,u)===!1)return}l=l.parent}if(i){ra(),no(i,null,10,[e,s,u]),na();return}}L5(e,r,a,n,o)}function L5(e,t,r,n=!0,a=!1){if(a)throw e;console.error(e)}const Kr=[];let ia=-1;const ao=[];let Ya=null,io=0;const h1=Promise.resolve();let Es=null;function Ea(e){const t=Es||h1;return e?t.then(this?e.bind(this):e):t}function B5(e){let t=ia+1,r=Kr.length;for(;t<r;){const n=t+r>>>1,a=Kr[n],i=ll(a);i<e||i===e&&a.flags&2?t=n+1:r=n}return t}function ju(e){if(!(e.flags&1)){const t=ll(e),r=Kr[Kr.length-1];!r||!(e.flags&2)&&t>=ll(r)?Kr.push(e):Kr.splice(B5(t),0,e),e.flags|=1,p1()}}function p1(){Es||(Es=h1.then(g1))}function N5(e){bt(e)?ao.push(...e):Ya&&e.id===-1?Ya.splice(io+1,0,e):e.flags&1||(ao.push(e),e.flags|=1),p1()}function v1(e,t,r=ia+1){for(;r<Kr.length;r++){const n=Kr[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Kr.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function m1(e){if(ao.length){const t=[...new Set(ao)].sort((r,n)=>ll(r)-ll(n));if(ao.length=0,Ya){Ya.push(...t);return}for(Ya=t,io=0;io<Ya.length;io++){const r=Ya[io];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Ya=null,io=0}}const ll=e=>e.id==null?e.flags&2?-1:1/0:e.id;function g1(e){try{for(ia=0;ia<Kr.length;ia++){const t=Kr[ia];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),no(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ia<Kr.length;ia++){const t=Kr[ia];t&&(t.flags&=-2)}ia=-1,Kr.length=0,m1(),Es=null,(Kr.length||ao.length)&&g1()}}let Rr=null,b1=null;function Ts(e){const t=Rr;return Rr=e,b1=e&&e.type.__scopeId||null,t}function Tr(e,t=Rr,r){if(!t||e._n)return e;const n=(...a)=>{n._d&&Ls(-1);const i=Ts(t);let o;try{o=e(...a)}finally{Ts(i),n._d&&Ls(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function tr(e,t){if(Rr===null)return e;const r=$s(Rr),n=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[i,o,l,s=Kt]=t[a];i&&(St(i)&&(i={mounted:i,updated:i}),i.deep&&Aa(o),n.push({dir:i,instance:r,value:o,oldValue:void 0,arg:l,modifiers:s}))}return e}function Ci(e,t,r,n){const a=e.dirs,i=t&&t.dirs;for(let o=0;o<a.length;o++){const l=a[o];i&&(l.oldValue=i[o].value);let s=l.dir[n];s&&(ra(),Hn(s,r,8,[e.el,l,e,t]),na())}}function $5(e,t){if(jr){let r=jr.provides;const n=jr.parent&&jr.parent.provides;n===r&&(r=jr.provides=Object.create(n)),r[e]=t}}function Ms(e,t,r=!1){const n=ic();if(n||lo){let a=lo?lo._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return r&&St(t)?t.call(n&&n.proxy):t}}const U5=Symbol.for("v-scx"),H5=()=>Ms(U5);function er(e,t,r){return y1(e,t,r)}function y1(e,t,r=Kt){const{immediate:n,deep:a,flush:i,once:o}=r,l=ar({},r),s=t&&n||!t&&i!=="post";let u;if(bl){if(i==="sync"){const h=H5();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!s){const h=()=>{};return h.stop=ea,h.resume=ea,h.pause=ea,h}}const c=jr;l.call=(h,b,p)=>Hn(h,c,b,p);let f=!1;i==="post"?l.scheduler=h=>{Yr(h,c&&c.suspense)}:i!=="sync"&&(f=!0,l.scheduler=(h,b)=>{b?h():ju(h)}),l.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=z5(e,t,l);return bl&&(u?u.push(d):s&&d()),d}function j5(e,t,r){const n=this.proxy,a=Jt(e)?e.includes(".")?x1(n,e):()=>n[e]:e.bind(n,n);let i;St(t)?i=t:(i=t.handler,r=t);const o=gl(this),l=y1(a,i.bind(n),r);return o(),l}function x1(e,t){const r=t.split(".");return()=>{let n=e;for(let a=0;a<r.length&&n;a++)n=n[r[a]];return n}}const Za=new WeakMap,_1=Symbol("_vte"),w1=e=>e.__isTeleport,Ai=e=>e&&(e.disabled||e.disabled===""),G5=e=>e&&(e.defer||e.defer===""),k1=e=>typeof SVGElement<"u"&&e instanceof SVGElement,S1=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Gu=(e,t)=>{const r=e&&e.to;return Jt(r)?t?t(r):null:r},V5={name:"Teleport",__isTeleport:!0,process(e,t,r,n,a,i,o,l,s,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:b,createText:p,createComment:x,parentNode:g}}=u,m=Ai(t.props);let{dynamicChildren:y}=t;const v=(A,_,E)=>{A.shapeFlag&16&&c(A.children,_,E,a,i,o,l,s)},k=(A=t)=>{const _=Ai(A.props),E=A.target=Gu(A.props,b),M=Vu(E,A,p,h);E&&(o!=="svg"&&k1(E)?o="svg":o!=="mathml"&&S1(E)&&(o="mathml"),a&&a.isCE&&(a.ce._teleportTargets||(a.ce._teleportTargets=new Set)).add(E),_||(v(A,E,M),sl(A,!1)))},C=A=>{const _=()=>{if(Za.get(A)===_){if(Za.delete(A),Ai(A.props)){const E=g(A.el)||r;v(A,E,A.anchor),sl(A,!0)}k(A)}};Za.set(A,_),Yr(_,i)};if(e==null){const A=t.el=p(""),_=t.anchor=p("");if(h(A,r,n),h(_,r,n),G5(t.props)||i&&i.pendingBranch){C(t);return}m&&(v(t,r,_),sl(t,!0)),k()}else{t.el=e.el;const A=t.anchor=e.anchor,_=Za.get(e);if(_){_.flags|=8,Za.delete(e),C(t);return}t.targetStart=e.targetStart;const E=t.target=e.target,M=t.targetAnchor=e.targetAnchor,z=Ai(e.props),R=z?r:E,O=z?A:M;if(o==="svg"||k1(E)?o="svg":(o==="mathml"||S1(E))&&(o="mathml"),y?(d(e.dynamicChildren,y,R,a,i,o,l),rc(e,t,!0)):s||f(e,t,R,O,a,i,o,l,!1),m)z?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ds(t,r,A,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const H=t.target=Gu(t.props,b);H&&Ds(t,H,null,u,0)}else z&&Ds(t,E,M,u,1);sl(t,m)}},remove(e,t,r,{um:n,o:{remove:a}},i){const{shapeFlag:o,children:l,anchor:s,targetStart:u,targetAnchor:c,target:f,props:d}=e;let h=i||!Ai(d);const b=Za.get(e);if(b&&(b.flags|=8,Za.delete(e),h=!1),f&&(a(u),a(c)),i&&a(s),o&16)for(let p=0;p<l.length;p++){const x=l[p];n(x,t,r,h,!!x.dynamicChildren)}},move:Ds,hydrate:q5};function Ds(e,t,r,{o:{insert:n},m:a},i=2){i===0&&n(e.targetAnchor,t,r);const{el:o,anchor:l,shapeFlag:s,children:u,props:c}=e,f=i===2;if(f&&n(o,t,r),!Za.has(e)&&(!f||Ai(c))&&s&16)for(let d=0;d<u.length;d++)a(u[d],t,r,2);f&&n(l,t,r)}function q5(e,t,r,n,a,i,{o:{nextSibling:o,parentNode:l,querySelector:s,insert:u,createText:c}},f){function d(x,g){let m=g;for(;m;){if(m&&m.nodeType===8){if(m.data==="teleport start anchor")t.targetStart=m;else if(m.data==="teleport anchor"){t.targetAnchor=m,x._lpa=t.targetAnchor&&o(t.targetAnchor);break}}m=o(m)}}function h(x,g){g.anchor=f(o(x),g,l(x),r,n,a,i)}const b=t.target=Gu(t.props,s),p=Ai(t.props);if(b){const x=b._lpa||b.firstChild;t.shapeFlag&16&&(p?(h(e,t),d(b,x),t.targetAnchor||Vu(b,t,c,u,l(e)===b?e:null)):(t.anchor=o(e),d(b,x),t.targetAnchor||Vu(b,t,c,u),f(x&&o(x),t,b,r,n,a,i))),sl(t,p)}else p&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const W5=V5;function sl(e,t){const r=e.ctx;if(r&&r.ut){let n,a;for(t?(n=e.el,a=e.anchor):(n=e.targetStart,a=e.targetAnchor);n&&n!==a;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function Vu(e,t,r,n,a=null){const i=t.targetStart=r(""),o=t.targetAnchor=r("");return i[_1]=o,e&&(n(i,e,a),n(o,e,a)),o}const oa=Symbol("_leaveCb"),ul=Symbol("_enterCb");function C1(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return mr(()=>{e.isMounted=!0}),Ur(()=>{e.isUnmounting=!0}),e}const Tn=[Function,Array],A1={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Tn,onEnter:Tn,onAfterEnter:Tn,onEnterCancelled:Tn,onBeforeLeave:Tn,onLeave:Tn,onAfterLeave:Tn,onLeaveCancelled:Tn,onBeforeAppear:Tn,onAppear:Tn,onAfterAppear:Tn,onAppearCancelled:Tn},E1=e=>{const t=e.subTree;return t.component?E1(t.component):t},K5={name:"BaseTransition",props:A1,setup(e,{slots:t}){const r=ic(),n=C1();return()=>{const a=t.default&&Wu(t.default(),!0),i=a&&a.length?T1(a):r.subTree?rt():void 0;if(!i)return;const o=Lt(e),{mode:l}=o;if(n.isLeaving)return qu(i);const s=D1(i);if(!s)return qu(i);let u=cl(s,o,n,r,f=>u=f);s.type!==Hr&&Ei(s,u);let c=r.subTree&&D1(r.subTree);if(c&&c.type!==Hr&&!Mi(c,s)&&E1(r).type!==Hr){let f=cl(c,o,n,r);if(Ei(c,f),l==="out-in"&&s.type!==Hr)return n.isLeaving=!0,f.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete f.afterLeave,c=void 0},qu(i);l==="in-out"&&s.type!==Hr?f.delayLeave=(d,h,b)=>{const p=M1(n,c);p[String(c.key)]=c,d[oa]=()=>{h(),d[oa]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{b(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function T1(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==Hr){t=r;break}}return t}const X5=K5;function M1(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function cl(e,t,r,n,a){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:s,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:b,onLeaveCancelled:p,onBeforeAppear:x,onAppear:g,onAfterAppear:m,onAppearCancelled:y}=t,v=String(e.key),k=M1(r,e),C=(E,M)=>{E&&Hn(E,n,9,M)},A=(E,M)=>{const z=M[1];C(E,M),bt(E)?E.every(R=>R.length<=1)&&z():E.length<=1&&z()},_={mode:o,persisted:l,beforeEnter(E){let M=s;if(!r.isMounted)if(i)M=x||s;else return;E[oa]&&E[oa](!0);const z=k[v];z&&Mi(e,z)&&z.el[oa]&&z.el[oa](),C(M,[E])},enter(E){if(k[v]===e)return;let M=u,z=c,R=f;if(!r.isMounted)if(i)M=g||u,z=m||c,R=y||f;else return;let O=!1;E[ul]=Z=>{O||(O=!0,Z?C(R,[E]):C(z,[E]),_.delayedLeave&&_.delayedLeave(),E[ul]=void 0)};const H=E[ul].bind(null,!1);M?A(M,[E,H]):H()},leave(E,M){const z=String(e.key);if(E[ul]&&E[ul](!0),r.isUnmounting)return M();C(d,[E]);let R=!1;E[oa]=H=>{R||(R=!0,M(),H?C(p,[E]):C(b,[E]),E[oa]=void 0,k[z]===e&&delete k[z])};const O=E[oa].bind(null,!1);k[z]=e,h?A(h,[E,O]):O()},clone(E){const M=cl(E,t,r,n,a);return a&&a(M),M}};return _}function qu(e){if(zs(e))return e=Ja(e),e.children=null,e}function D1(e){if(!zs(e))return w1(e.type)&&e.children?T1(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&St(r.default))return r.default()}}function Ei(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ei(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Wu(e,t=!1,r){let n=[],a=0;for(let i=0;i<e.length;i++){let o=e[i];const l=r==null?o.key:String(r)+String(o.key!=null?o.key:i);o.type===xt?(o.patchFlag&128&&a++,n=n.concat(Wu(o.children,t,l))):(t||o.type!==Hr)&&n.push(l!=null?Ja(o,{key:l}):o)}if(a>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function Wt(e,t){return St(e)?ar({name:e.name},t,{setup:e}):e}function I1(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function z1(e,t){let r;return!!((r=Object.getOwnPropertyDescriptor(e,t))&&!r.configurable)}const Is=new WeakMap;function fl(e,t,r,n,a=!1){if(bt(e)){e.forEach((p,x)=>fl(p,t&&(bt(t)?t[x]:t),r,n,a));return}if(oo(n)&&!a){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&fl(e,t,r,n.component.subTree);return}const i=n.shapeFlag&4?$s(n.component):n.el,o=a?null:i,{i:l,r:s}=e,u=t&&t.r,c=l.refs===Kt?l.refs={}:l.refs,f=l.setupState,d=Lt(f),h=f===Kt?Ld:p=>z1(c,p)?!1:$t(d,p),b=(p,x)=>!(x&&z1(c,x));if(u!=null&&u!==s){if(F1(t),Jt(u))c[u]=null,h(u)&&(f[u]=null);else if(Pr(u)){const p=t;b(u,p.k)&&(u.value=null),p.k&&(c[p.k]=null)}}if(St(s))no(s,l,12,[o,c]);else{const p=Jt(s),x=Pr(s);if(p||x){const g=()=>{if(e.f){const m=p?h(s)?f[s]:c[s]:b()||!e.k?s.value:c[e.k];if(a)bt(m)&&ku(m,i);else if(bt(m))m.includes(i)||m.push(i);else if(p)c[s]=[i],h(s)&&(f[s]=c[s]);else{const y=[i];b(s,e.k)&&(s.value=y),e.k&&(c[e.k]=y)}}else p?(c[s]=o,h(s)&&(f[s]=o)):x&&(b(s,e.k)&&(s.value=o),e.k&&(c[e.k]=o))};if(o){const m=()=>{g(),Is.delete(e)};m.id=-1,Is.set(e,m),Yr(m,r)}else F1(e),g()}}}function F1(e){const t=Is.get(e);t&&(t.flags|=8,Is.delete(e))}gs().requestIdleCallback,gs().cancelIdleCallback;const oo=e=>!!e.type.__asyncLoader,zs=e=>e.type.__isKeepAlive;function Y5(e,t){O1(e,"a",t)}function Z5(e,t){O1(e,"da",t)}function O1(e,t,r=jr){const n=e.__wdc||(e.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Fs(t,n,r),r){let a=r.parent;for(;a&&a.parent;)zs(a.parent.vnode)&&J5(n,t,r,a),a=a.parent}}function J5(e,t,r,n){const a=Fs(t,e,n,!0);R1(()=>{ku(n[t],a)},r)}function Fs(e,t,r=jr,n=!1){if(r){const a=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ra();const l=gl(r),s=Hn(t,r,e,o);return l(),na(),s});return n?a.unshift(i):a.push(i),i}}const Ta=e=>(t,r=jr)=>{(!bl||e==="sp")&&Fs(e,(...n)=>t(...n),r)},Q5=Ta("bm"),mr=Ta("m"),e3=Ta("bu"),P1=Ta("u"),Ur=Ta("bum"),R1=Ta("um"),t3=Ta("sp"),r3=Ta("rtg"),n3=Ta("rtc");function a3(e,t=jr){Fs("ec",e,t)}const L1="components";function i3(e,t){return N1(L1,e,!0,t)||e}const B1=Symbol.for("v-ndc");function o3(e){return Jt(e)?N1(L1,e,!1)||e:e||B1}function N1(e,t,r=!0,n=!1){const a=Rr||jr;if(a){const i=a.type;{const l=xh(i,!1);if(l&&(l===t||l===Er(t)||l===ps(Er(t))))return i}const o=$1(a[e]||i[e],t)||$1(a.appContext[e],t);return!o&&n?i:o}}function $1(e,t){return e&&(e[t]||e[Er(t)]||e[ps(Er(t))])}function ir(e,t,r,n){let a;const i=r,o=bt(e);if(o||Jt(e)){const l=o&&ki(e);let s=!1,u=!1;l&&(s=!En(e),u=Ca(e),e=ys(e)),a=new Array(e.length);for(let c=0,f=e.length;c<f;c++)a[c]=t(s?u?ro(Un(e[c])):Un(e[c]):e[c],c,void 0,i)}else if(typeof e=="number"){a=new Array(e);for(let l=0;l<e;l++)a[l]=t(l+1,l,void 0,i)}else if(Vt(e))if(e[Symbol.iterator])a=Array.from(e,(l,s)=>t(l,s,void 0,i));else{const l=Object.keys(e);a=new Array(l.length);for(let s=0,u=l.length;s<u;s++){const c=l[s];a[s]=t(e[c],c,s,i)}}else a=[];return a}function U1(e,t,r={},n,a){if(Rr.ce||Rr.parent&&oo(Rr.parent)&&Rr.parent.ce){const u=Object.keys(r).length>0;return t!=="default"&&(r.name=t),J(),kr(xt,null,[Bt("slot",r,n)],u?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),J();const o=i&&H1(i(r)),l=r.key||o&&o.key,s=kr(xt,{key:(l&&!Nn(l)?l:`_${t}`)+(!o&&n?"_fb":"")},o||[],o&&e._===1?64:-2);return s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function H1(e){return e.some(t=>ml(t)?!(t.type===Hr||t.type===xt&&!H1(t.children)):!0)?e:null}const Ku=e=>e?gh(e)?$s(e):Ku(e.parent):null,dl=ar(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ku(e.parent),$root:e=>Ku(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>q1(e),$forceUpdate:e=>e.f||(e.f=()=>{ju(e.update)}),$nextTick:e=>e.n||(e.n=Ea.bind(e.proxy)),$watch:e=>j5.bind(e)}),Xu=(e,t)=>e!==Kt&&!e.__isScriptSetup&&$t(e,t),l3={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:a,props:i,accessCache:o,type:l,appContext:s}=e;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return a[t];case 4:return r[t];case 3:return i[t]}else{if(Xu(n,t))return o[t]=1,n[t];if(a!==Kt&&$t(a,t))return o[t]=2,a[t];if($t(i,t))return o[t]=3,i[t];if(r!==Kt&&$t(r,t))return o[t]=4,r[t];Yu&&(o[t]=0)}}const u=dl[t];let c,f;if(u)return t==="$attrs"&&$r(e.attrs,"get",""),u(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(r!==Kt&&$t(r,t))return o[t]=4,r[t];if(f=s.config.globalProperties,$t(f,t))return f[t]},set({_:e},t,r){const{data:n,setupState:a,ctx:i}=e;return Xu(a,t)?(a[t]=r,!0):n!==Kt&&$t(n,t)?(n[t]=r,!0):$t(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:a,props:i,type:o}},l){let s;return!!(r[l]||e!==Kt&&l[0]!=="$"&&$t(e,l)||Xu(t,l)||$t(i,l)||$t(n,l)||$t(dl,l)||$t(a.config.globalProperties,l)||(s=o.__cssModules)&&s[l])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:$t(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function j1(e){return bt(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Yu=!0;function s3(e){const t=q1(e),r=e.proxy,n=e.ctx;Yu=!1,t.beforeCreate&&G1(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:o,watch:l,provide:s,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:b,activated:p,deactivated:x,beforeDestroy:g,beforeUnmount:m,destroyed:y,unmounted:v,render:k,renderTracked:C,renderTriggered:A,errorCaptured:_,serverPrefetch:E,expose:M,inheritAttrs:z,components:R,directives:O,filters:H}=t;if(u&&u3(u,n,null),o)for(const X in o){const Q=o[X];St(Q)&&(n[X]=Q.bind(r))}if(a){const X=a.call(r,r);Vt(X)&&(e.data=Nu(X))}if(Yu=!0,i)for(const X in i){const Q=i[X],te=St(Q)?Q.bind(r,r):St(Q.get)?Q.get.bind(r,r):ea,_e=!St(Q)&&St(Q.set)?Q.set.bind(r):ea,he=gt({get:te,set:_e});Object.defineProperty(n,X,{enumerable:!0,configurable:!0,get:()=>he.value,set:we=>he.value=we})}if(l)for(const X in l)V1(l[X],n,r,X);if(s){const X=St(s)?s.call(r):s;Reflect.ownKeys(X).forEach(Q=>{$5(Q,X[Q])})}c&&G1(c,e,"c");function q(X,Q){bt(Q)?Q.forEach(te=>X(te.bind(r))):Q&&X(Q.bind(r))}if(q(Q5,f),q(mr,d),q(e3,h),q(P1,b),q(Y5,p),q(Z5,x),q(a3,_),q(n3,C),q(r3,A),q(Ur,m),q(R1,v),q(t3,E),bt(M))if(M.length){const X=e.exposed||(e.exposed={});M.forEach(Q=>{Object.defineProperty(X,Q,{get:()=>r[Q],set:te=>r[Q]=te,enumerable:!0})})}else e.exposed||(e.exposed={});k&&e.render===ea&&(e.render=k),z!=null&&(e.inheritAttrs=z),R&&(e.components=R),O&&(e.directives=O),E&&I1(e)}function u3(e,t,r=ea){bt(e)&&(e=Zu(e));for(const n in e){const a=e[n];let i;Vt(a)?"default"in a?i=Ms(a.from||n,a.default,!0):i=Ms(a.from||n):i=Ms(a),Pr(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function G1(e,t,r){Hn(bt(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function V1(e,t,r,n){let a=n.includes(".")?x1(r,n):()=>r[n];if(Jt(e)){const i=t[e];St(i)&&er(a,i)}else if(St(e))er(a,e.bind(r));else if(Vt(e))if(bt(e))e.forEach(i=>V1(i,t,r,n));else{const i=St(e.handler)?e.handler.bind(r):t[e.handler];St(i)&&er(a,i,e)}}function q1(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let s;return l?s=l:!a.length&&!r&&!n?s=t:(s={},a.length&&a.forEach(u=>Os(s,u,o,!0)),Os(s,t,o)),Vt(t)&&i.set(t,s),s}function Os(e,t,r,n=!1){const{mixins:a,extends:i}=t;i&&Os(e,i,r,!0),a&&a.forEach(o=>Os(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const l=c3[o]||r&&r[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const c3={data:W1,props:K1,emits:K1,methods:hl,computed:hl,beforeCreate:Xr,created:Xr,beforeMount:Xr,mounted:Xr,beforeUpdate:Xr,updated:Xr,beforeDestroy:Xr,beforeUnmount:Xr,destroyed:Xr,unmounted:Xr,activated:Xr,deactivated:Xr,errorCaptured:Xr,serverPrefetch:Xr,components:hl,directives:hl,watch:d3,provide:W1,inject:f3};function W1(e,t){return t?e?function(){return ar(St(e)?e.call(this,this):e,St(t)?t.call(this,this):t)}:t:e}function f3(e,t){return hl(Zu(e),Zu(t))}function Zu(e){if(bt(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Xr(e,t){return e?[...new Set([].concat(e,t))]:t}function hl(e,t){return e?ar(Object.create(null),e,t):t}function K1(e,t){return e?bt(e)&&bt(t)?[...new Set([...e,...t])]:ar(Object.create(null),j1(e),j1(t??{})):t}function d3(e,t){if(!e)return t;if(!t)return e;const r=ar(Object.create(null),e);for(const n in t)r[n]=Xr(e[n],t[n]);return r}function X1(){return{app:null,config:{isNativeTag:Ld,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let h3=0;function p3(e,t){return function(n,a=null){St(n)||(n=ar({},n)),a!=null&&!Vt(a)&&(a=null);const i=X1(),o=new WeakSet,l=[];let s=!1;const u=i.app={_uid:h3++,_component:n,_props:a,_container:null,_context:i,_instance:null,version:q3,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&St(c.install)?(o.add(c),c.install(u,...f)):St(c)&&(o.add(c),c(u,...f))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,f){return f?(i.components[c]=f,u):i.components[c]},directive(c,f){return f?(i.directives[c]=f,u):i.directives[c]},mount(c,f,d){if(!s){const h=u._ceVNode||Bt(n,a);return h.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(h,c,d),s=!0,u._container=c,c.__vue_app__=u,$s(h.component)}},onUnmount(c){l.push(c)},unmount(){s&&(Hn(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return i.provides[c]=f,u},runWithContext(c){const f=lo;lo=u;try{return c()}finally{lo=f}}};return u}}let lo=null;const v3=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Er(t)}Modifiers`]||e[`${fn(t)}Modifiers`];function m3(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Kt;let a=r;const i=t.startsWith("update:"),o=i&&v3(n,t.slice(7));o&&(o.trim&&(a=r.map(c=>Jt(c)?c.trim():c)),o.number&&(a=r.map(ms)));let l,s=n[l=Cu(t)]||n[l=Cu(Er(t))];!s&&i&&(s=n[l=Cu(fn(t))]),s&&Hn(s,e,6,a);const u=n[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Hn(u,e,6,a)}}const g3=new WeakMap;function Y1(e,t,r=!1){const n=r?g3:t.emitsCache,a=n.get(e);if(a!==void 0)return a;const i=e.emits;let o={},l=!1;if(!St(e)){const s=u=>{const c=Y1(u,t,!0);c&&(l=!0,ar(o,c))};!r&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(Vt(e)&&n.set(e,null),null):(bt(i)?i.forEach(s=>o[s]=null):ar(o,i),Vt(e)&&n.set(e,o),o)}function Ps(e,t){return!e||!cs(t)?!1:(t=t.slice(2).replace(/Once$/,""),$t(e,t[0].toLowerCase()+t.slice(1))||$t(e,fn(t))||$t(e,t))}function QT(){}function Z1(e){const{type:t,vnode:r,proxy:n,withProxy:a,propsOptions:[i],slots:o,attrs:l,emit:s,render:u,renderCache:c,props:f,data:d,setupState:h,ctx:b,inheritAttrs:p}=e,x=Ts(e);let g,m;try{if(r.shapeFlag&4){const v=a||n,k=v;g=la(u.call(k,v,c,f,h,d,b)),m=l}else{const v=t;g=la(v.length>1?v(f,{attrs:l,slots:o,emit:s}):v(f,null)),m=t.props?l:b3(l)}}catch(v){pl.length=0,As(v,e,1),g=Bt(Hr)}let y=g;if(m&&p!==!1){const v=Object.keys(m),{shapeFlag:k}=y;v.length&&k&7&&(i&&v.some(fs)&&(m=y3(m,i)),y=Ja(y,m,!1,!0))}return r.dirs&&(y=Ja(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&Ei(y,r.transition),g=y,Ts(x),g}const b3=e=>{let t;for(const r in e)(r==="class"||r==="style"||cs(r))&&((t||(t={}))[r]=e[r]);return t},y3=(e,t)=>{const r={};for(const n in e)(!fs(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function x3(e,t,r){const{props:n,children:a,component:i}=e,{props:o,children:l,patchFlag:s}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&s>=0){if(s&1024)return!0;if(s&16)return n?J1(n,o,u):!!o;if(s&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(Q1(o,n,d)&&!Ps(u,d))return!0}}}else return(a||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?J1(n,o,u):!0:!!o;return!1}function J1(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let a=0;a<n.length;a++){const i=n[a];if(Q1(t,e,i)&&!Ps(r,i))return!0}return!1}function Q1(e,t,r){const n=e[r],a=t[r];return r==="style"&&Vt(n)&&Vt(a)?!eo(n,a):n!==a}function _3({vnode:e,parent:t,suspense:r},n){for(;t;){const a=t.subTree;if(a.suspense&&a.suspense.activeBranch===e&&(a.suspense.vnode.el=a.el=n,e=a),a===e)(e=t.vnode).el=n,t=t.parent;else break}r&&r.activeBranch===e&&(r.vnode.el=n)}const eh={},th=()=>Object.create(eh),rh=e=>Object.getPrototypeOf(e)===eh;function w3(e,t,r,n=!1){const a={},i=th();e.propsDefaults=Object.create(null),nh(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);r?e.props=n?a:w5(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function k3(e,t,r,n){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,l=Lt(a),[s]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(Ps(e.emitsOptions,d))continue;const h=t[d];if(s)if($t(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const b=Er(d);a[b]=Ju(s,l,b,h,e,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{nh(e,t,a,i)&&(u=!0);let c;for(const f in l)(!t||!$t(t,f)&&((c=fn(f))===f||!$t(t,c)))&&(s?r&&(r[f]!==void 0||r[c]!==void 0)&&(a[f]=Ju(s,l,f,void 0,e,!0)):delete a[f]);if(i!==l)for(const f in i)(!t||!$t(t,f))&&(delete i[f],u=!0)}u&&ka(e.attrs,"set","")}function nh(e,t,r,n){const[a,i]=e.propsOptions;let o=!1,l;if(t)for(let s in t){if(el(s))continue;const u=t[s];let c;a&&$t(a,c=Er(s))?!i||!i.includes(c)?r[c]=u:(l||(l={}))[c]=u:Ps(e.emitsOptions,s)||(!(s in n)||u!==n[s])&&(n[s]=u,o=!0)}if(i){const s=Lt(r),u=l||Kt;for(let c=0;c<i.length;c++){const f=i[c];r[f]=Ju(a,s,f,u[f],e,!$t(u,f))}}return o}function Ju(e,t,r,n,a,i){const o=e[r];if(o!=null){const l=$t(o,"default");if(l&&n===void 0){const s=o.default;if(o.type!==Function&&!o.skipFactory&&St(s)){const{propsDefaults:u}=a;if(r in u)n=u[r];else{const c=gl(a);n=u[r]=s.call(null,t),c()}}else n=s;a.ce&&a.ce._setProp(r,n)}o[0]&&(i&&!l?n=!1:o[1]&&(n===""||n===fn(r))&&(n=!0))}return n}const S3=new WeakMap;function ah(e,t,r=!1){const n=r?S3:t.propsCache,a=n.get(e);if(a)return a;const i=e.props,o={},l=[];let s=!1;if(!St(e)){const c=f=>{s=!0;const[d,h]=ah(f,t,!0);ar(o,d),h&&l.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!s)return Vt(e)&&n.set(e,Zi),Zi;if(bt(i))for(let c=0;c<i.length;c++){const f=Er(i[c]);ih(f)&&(o[f]=Kt)}else if(i)for(const c in i){const f=Er(c);if(ih(f)){const d=i[c],h=o[f]=bt(d)||St(d)?{type:d}:ar({},d),b=h.type;let p=!1,x=!0;if(bt(b))for(let g=0;g<b.length;++g){const m=b[g],y=St(m)&&m.name;if(y==="Boolean"){p=!0;break}else y==="String"&&(x=!1)}else p=St(b)&&b.name==="Boolean";h[0]=p,h[1]=x,(p||$t(h,"default"))&&l.push(f)}}const u=[o,l];return Vt(e)&&n.set(e,u),u}function ih(e){return e[0]!=="$"&&!el(e)}const Qu=e=>e==="_"||e==="_ctx"||e==="$stable",ec=e=>bt(e)?e.map(la):[la(e)],C3=(e,t,r)=>{if(t._n)return t;const n=Tr((...a)=>ec(t(...a)),r);return n._c=!1,n},oh=(e,t,r)=>{const n=e._ctx;for(const a in e){if(Qu(a))continue;const i=e[a];if(St(i))t[a]=C3(a,i,n);else if(i!=null){const o=ec(i);t[a]=()=>o}}},lh=(e,t)=>{const r=ec(t);e.slots.default=()=>r},sh=(e,t,r)=>{for(const n in t)(r||!Qu(n))&&(e[n]=t[n])},A3=(e,t,r)=>{const n=e.slots=th();if(e.vnode.shapeFlag&32){const a=t._;a?(sh(n,t,r),r&&Ud(n,"_",a,!0)):oh(t,n)}else t&&lh(e,t)},E3=(e,t,r)=>{const{vnode:n,slots:a}=e;let i=!0,o=Kt;if(n.shapeFlag&32){const l=t._;l?r&&l===1?i=!1:sh(a,t,r):(i=!t.$stable,oh(t,a)),o=t}else t&&(lh(e,t),o={default:1});if(i)for(const l in a)!Qu(l)&&o[l]==null&&delete a[l]},Yr=z3;function T3(e){return M3(e)}function M3(e,t){const r=gs();r.__VUE__=!0;const{insert:n,remove:a,patchProp:i,createElement:o,createText:l,createComment:s,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=ea,insertStaticContent:b}=e,p=(B,V,oe,de=null,ee=null,ie=null,ue=void 0,ve=null,Ce=!!V.dynamicChildren)=>{if(B===V)return;B&&!Mi(B,V)&&(de=Pe(B),we(B,ee,ie,!0),B=null),V.patchFlag===-2&&(Ce=!1,V.dynamicChildren=null);const{type:xe,ref:je,shapeFlag:Ne}=V;switch(xe){case Rs:x(B,V,oe,de);break;case Hr:g(B,V,oe,de);break;case nc:B==null&&m(V,oe,de,ue);break;case xt:R(B,V,oe,de,ee,ie,ue,ve,Ce);break;default:Ne&1?k(B,V,oe,de,ee,ie,ue,ve,Ce):Ne&6?O(B,V,oe,de,ee,ie,ue,ve,Ce):(Ne&64||Ne&128)&&xe.process(B,V,oe,de,ee,ie,ue,ve,Ce,ye)}je!=null&&ee?fl(je,B&&B.ref,ie,V||B,!V):je==null&&B&&B.ref!=null&&fl(B.ref,null,ie,B,!0)},x=(B,V,oe,de)=>{if(B==null)n(V.el=l(V.children),oe,de);else{const ee=V.el=B.el;V.children!==B.children&&u(ee,V.children)}},g=(B,V,oe,de)=>{B==null?n(V.el=s(V.children||""),oe,de):V.el=B.el},m=(B,V,oe,de)=>{[B.el,B.anchor]=b(B.children,V,oe,de,B.el,B.anchor)},y=({el:B,anchor:V},oe,de)=>{let ee;for(;B&&B!==V;)ee=d(B),n(B,oe,de),B=ee;n(V,oe,de)},v=({el:B,anchor:V})=>{let oe;for(;B&&B!==V;)oe=d(B),a(B),B=oe;a(V)},k=(B,V,oe,de,ee,ie,ue,ve,Ce)=>{if(V.type==="svg"?ue="svg":V.type==="math"&&(ue="mathml"),B==null)C(V,oe,de,ee,ie,ue,ve,Ce);else{const xe=B.el&&B.el._isVueCE?B.el:null;try{xe&&xe._beginPatch(),E(B,V,ee,ie,ue,ve,Ce)}finally{xe&&xe._endPatch()}}},C=(B,V,oe,de,ee,ie,ue,ve)=>{let Ce,xe;const{props:je,shapeFlag:Ne,transition:Ue,dirs:Ke}=B;if(Ce=B.el=o(B.type,ie,je&&je.is,je),Ne&8?c(Ce,B.children):Ne&16&&_(B.children,Ce,null,de,ee,tc(B,ie),ue,ve),Ke&&Ci(B,null,de,"created"),A(Ce,B,B.scopeId,ue,de),je){for(const ut in je)ut!=="value"&&!el(ut)&&i(Ce,ut,null,je[ut],ie,de);"value"in je&&i(Ce,"value",null,je.value,ie),(xe=je.onVnodeBeforeMount)&&sa(xe,de,B)}Ke&&Ci(B,null,de,"beforeMount");const at=D3(ee,Ue);at&&Ue.beforeEnter(Ce),n(Ce,V,oe),((xe=je&&je.onVnodeMounted)||at||Ke)&&Yr(()=>{try{xe&&sa(xe,de,B),at&&Ue.enter(Ce),Ke&&Ci(B,null,de,"mounted")}finally{}},ee)},A=(B,V,oe,de,ee)=>{if(oe&&h(B,oe),de)for(let ie=0;ie<de.length;ie++)h(B,de[ie]);if(ee){let ie=ee.subTree;if(V===ie||dh(ie.type)&&(ie.ssContent===V||ie.ssFallback===V)){const ue=ee.vnode;A(B,ue,ue.scopeId,ue.slotScopeIds,ee.parent)}}},_=(B,V,oe,de,ee,ie,ue,ve,Ce=0)=>{for(let xe=Ce;xe<B.length;xe++){const je=B[xe]=ve?Ma(B[xe]):la(B[xe]);p(null,je,V,oe,de,ee,ie,ue,ve)}},E=(B,V,oe,de,ee,ie,ue)=>{const ve=V.el=B.el;let{patchFlag:Ce,dynamicChildren:xe,dirs:je}=V;Ce|=B.patchFlag&16;const Ne=B.props||Kt,Ue=V.props||Kt;let Ke;if(oe&&Ti(oe,!1),(Ke=Ue.onVnodeBeforeUpdate)&&sa(Ke,oe,V,B),je&&Ci(V,B,oe,"beforeUpdate"),oe&&Ti(oe,!0),(Ne.innerHTML&&Ue.innerHTML==null||Ne.textContent&&Ue.textContent==null)&&c(ve,""),xe?M(B.dynamicChildren,xe,ve,oe,de,tc(V,ee),ie):ue||Q(B,V,ve,null,oe,de,tc(V,ee),ie,!1),Ce>0){if(Ce&16)z(ve,Ne,Ue,oe,ee);else if(Ce&2&&Ne.class!==Ue.class&&i(ve,"class",null,Ue.class,ee),Ce&4&&i(ve,"style",Ne.style,Ue.style,ee),Ce&8){const at=V.dynamicProps;for(let ut=0;ut<at.length;ut++){const st=at[ut],yt=Ne[st],Ie=Ue[st];(Ie!==yt||st==="value")&&i(ve,st,yt,Ie,ee,oe)}}Ce&1&&B.children!==V.children&&c(ve,V.children)}else!ue&&xe==null&&z(ve,Ne,Ue,oe,ee);((Ke=Ue.onVnodeUpdated)||je)&&Yr(()=>{Ke&&sa(Ke,oe,V,B),je&&Ci(V,B,oe,"updated")},de)},M=(B,V,oe,de,ee,ie,ue)=>{for(let ve=0;ve<V.length;ve++){const Ce=B[ve],xe=V[ve],je=Ce.el&&(Ce.type===xt||!Mi(Ce,xe)||Ce.shapeFlag&198)?f(Ce.el):oe;p(Ce,xe,je,null,de,ee,ie,ue,!0)}},z=(B,V,oe,de,ee)=>{if(V!==oe){if(V!==Kt)for(const ie in V)!el(ie)&&!(ie in oe)&&i(B,ie,V[ie],null,ee,de);for(const ie in oe){if(el(ie))continue;const ue=oe[ie],ve=V[ie];ue!==ve&&ie!=="value"&&i(B,ie,ve,ue,ee,de)}"value"in oe&&i(B,"value",V.value,oe.value,ee)}},R=(B,V,oe,de,ee,ie,ue,ve,Ce)=>{const xe=V.el=B?B.el:l(""),je=V.anchor=B?B.anchor:l("");let{patchFlag:Ne,dynamicChildren:Ue,slotScopeIds:Ke}=V;Ke&&(ve=ve?ve.concat(Ke):Ke),B==null?(n(xe,oe,de),n(je,oe,de),_(V.children||[],oe,je,ee,ie,ue,ve,Ce)):Ne>0&&Ne&64&&Ue&&B.dynamicChildren&&B.dynamicChildren.length===Ue.length?(M(B.dynamicChildren,Ue,oe,ee,ie,ue,ve),(V.key!=null||ee&&V===ee.subTree)&&rc(B,V,!0)):Q(B,V,oe,je,ee,ie,ue,ve,Ce)},O=(B,V,oe,de,ee,ie,ue,ve,Ce)=>{V.slotScopeIds=ve,B==null?V.shapeFlag&512?ee.ctx.activate(V,oe,de,ue,Ce):H(V,oe,de,ee,ie,ue,Ce):Z(B,V,Ce)},H=(B,V,oe,de,ee,ie,ue)=>{const ve=B.component=B3(B,de,ee);if(zs(B)&&(ve.ctx.renderer=ye),N3(ve,!1,ue),ve.asyncDep){if(ee&&ee.registerDep(ve,q,ue),!B.el){const Ce=ve.subTree=Bt(Hr);g(null,Ce,V,oe),B.placeholder=Ce.el}}else q(ve,B,V,oe,ee,ie,ue)},Z=(B,V,oe)=>{const de=V.component=B.component;if(x3(B,V,oe))if(de.asyncDep&&!de.asyncResolved){X(de,V,oe);return}else de.next=V,de.update();else V.el=B.el,de.vnode=V},q=(B,V,oe,de,ee,ie,ue)=>{const ve=()=>{if(B.isMounted){let{next:Ne,bu:Ue,u:Ke,parent:at,vnode:ut}=B;{const re=uh(B);if(re){Ne&&(Ne.el=ut.el,X(B,Ne,ue)),re.asyncDep.then(()=>{Yr(()=>{B.isUnmounted||xe()},ee)});return}}let st=Ne,yt;Ti(B,!1),Ne?(Ne.el=ut.el,X(B,Ne,ue)):Ne=ut,Ue&&vs(Ue),(yt=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&sa(yt,at,Ne,ut),Ti(B,!0);const Ie=Z1(B),D=B.subTree;B.subTree=Ie,p(D,Ie,f(D.el),Pe(D),B,ee,ie),Ne.el=Ie.el,st===null&&_3(B,Ie.el),Ke&&Yr(Ke,ee),(yt=Ne.props&&Ne.props.onVnodeUpdated)&&Yr(()=>sa(yt,at,Ne,ut),ee)}else{let Ne;const{el:Ue,props:Ke}=V,{bm:at,m:ut,parent:st,root:yt,type:Ie}=B,D=oo(V);Ti(B,!1),at&&vs(at),!D&&(Ne=Ke&&Ke.onVnodeBeforeMount)&&sa(Ne,st,V),Ti(B,!0);{yt.ce&&yt.ce._hasShadowRoot()&&yt.ce._injectChildStyle(Ie,B.parent?B.parent.type:void 0);const re=B.subTree=Z1(B);p(null,re,oe,de,B,ee,ie),V.el=re.el}if(ut&&Yr(ut,ee),!D&&(Ne=Ke&&Ke.onVnodeMounted)){const re=V;Yr(()=>sa(Ne,st,re),ee)}(V.shapeFlag&256||st&&oo(st.vnode)&&st.vnode.shapeFlag&256)&&B.a&&Yr(B.a,ee),B.isMounted=!0,V=oe=de=null}};B.scope.on();const Ce=B.effect=new qd(ve);B.scope.off();const xe=B.update=Ce.run.bind(Ce),je=B.job=Ce.runIfDirty.bind(Ce);je.i=B,je.id=B.uid,Ce.scheduler=()=>ju(je),Ti(B,!0),xe()},X=(B,V,oe)=>{V.component=B;const de=B.vnode.props;B.vnode=V,B.next=null,k3(B,V.props,de,oe),E3(B,V.children,oe),ra(),v1(B),na()},Q=(B,V,oe,de,ee,ie,ue,ve,Ce=!1)=>{const xe=B&&B.children,je=B?B.shapeFlag:0,Ne=V.children,{patchFlag:Ue,shapeFlag:Ke}=V;if(Ue>0){if(Ue&128){_e(xe,Ne,oe,de,ee,ie,ue,ve,Ce);return}else if(Ue&256){te(xe,Ne,oe,de,ee,ie,ue,ve,Ce);return}}Ke&8?(je&16&&Oe(xe,ee,ie),Ne!==xe&&c(oe,Ne)):je&16?Ke&16?_e(xe,Ne,oe,de,ee,ie,ue,ve,Ce):Oe(xe,ee,ie,!0):(je&8&&c(oe,""),Ke&16&&_(Ne,oe,de,ee,ie,ue,ve,Ce))},te=(B,V,oe,de,ee,ie,ue,ve,Ce)=>{B=B||Zi,V=V||Zi;const xe=B.length,je=V.length,Ne=Math.min(xe,je);let Ue;for(Ue=0;Ue<Ne;Ue++){const Ke=V[Ue]=Ce?Ma(V[Ue]):la(V[Ue]);p(B[Ue],Ke,oe,null,ee,ie,ue,ve,Ce)}xe>je?Oe(B,ee,ie,!0,!1,Ne):_(V,oe,de,ee,ie,ue,ve,Ce,Ne)},_e=(B,V,oe,de,ee,ie,ue,ve,Ce)=>{let xe=0;const je=V.length;let Ne=B.length-1,Ue=je-1;for(;xe<=Ne&&xe<=Ue;){const Ke=B[xe],at=V[xe]=Ce?Ma(V[xe]):la(V[xe]);if(Mi(Ke,at))p(Ke,at,oe,null,ee,ie,ue,ve,Ce);else break;xe++}for(;xe<=Ne&&xe<=Ue;){const Ke=B[Ne],at=V[Ue]=Ce?Ma(V[Ue]):la(V[Ue]);if(Mi(Ke,at))p(Ke,at,oe,null,ee,ie,ue,ve,Ce);else break;Ne--,Ue--}if(xe>Ne){if(xe<=Ue){const Ke=Ue+1,at=Ke<je?V[Ke].el:de;for(;xe<=Ue;)p(null,V[xe]=Ce?Ma(V[xe]):la(V[xe]),oe,at,ee,ie,ue,ve,Ce),xe++}}else if(xe>Ue)for(;xe<=Ne;)we(B[xe],ee,ie,!0),xe++;else{const Ke=xe,at=xe,ut=new Map;for(xe=at;xe<=Ue;xe++){const $=V[xe]=Ce?Ma(V[xe]):la(V[xe]);$.key!=null&&ut.set($.key,xe)}let st,yt=0;const Ie=Ue-at+1;let D=!1,re=0;const Ae=new Array(Ie);for(xe=0;xe<Ie;xe++)Ae[xe]=0;for(xe=Ke;xe<=Ne;xe++){const $=B[xe];if(yt>=Ie){we($,ee,ie,!0);continue}let W;if($.key!=null)W=ut.get($.key);else for(st=at;st<=Ue;st++)if(Ae[st-at]===0&&Mi($,V[st])){W=st;break}W===void 0?we($,ee,ie,!0):(Ae[W-at]=xe+1,W>=re?re=W:D=!0,p($,V[W],oe,null,ee,ie,ue,ve,Ce),yt++)}const Re=D?I3(Ae):Zi;for(st=Re.length-1,xe=Ie-1;xe>=0;xe--){const $=at+xe,W=V[$],I=V[$+1],Te=$+1<je?I.el||fh(I):de;Ae[xe]===0?p(null,W,oe,Te,ee,ie,ue,ve,Ce):D&&(st<0||xe!==Re[st]?he(W,oe,Te,2):st--)}}},he=(B,V,oe,de,ee=null)=>{const{el:ie,type:ue,transition:ve,children:Ce,shapeFlag:xe}=B;if(xe&6){he(B.component.subTree,V,oe,de);return}if(xe&128){B.suspense.move(V,oe,de);return}if(xe&64){ue.move(B,V,oe,ye);return}if(ue===xt){n(ie,V,oe);for(let Ne=0;Ne<Ce.length;Ne++)he(Ce[Ne],V,oe,de);n(B.anchor,V,oe);return}if(ue===nc){y(B,V,oe);return}if(de!==2&&xe&1&&ve)if(de===0)ve.beforeEnter(ie),n(ie,V,oe),Yr(()=>ve.enter(ie),ee);else{const{leave:Ne,delayLeave:Ue,afterLeave:Ke}=ve,at=()=>{B.ctx.isUnmounted?a(ie):n(ie,V,oe)},ut=()=>{ie._isLeaving&&ie[oa](!0),Ne(ie,()=>{at(),Ke&&Ke()})};Ue?Ue(ie,at,ut):ut()}else n(ie,V,oe)},we=(B,V,oe,de=!1,ee=!1)=>{const{type:ie,props:ue,ref:ve,children:Ce,dynamicChildren:xe,shapeFlag:je,patchFlag:Ne,dirs:Ue,cacheIndex:Ke,memo:at}=B;if(Ne===-2&&(ee=!1),ve!=null&&(ra(),fl(ve,null,oe,B,!0),na()),Ke!=null&&(V.renderCache[Ke]=void 0),je&256){V.ctx.deactivate(B);return}const ut=je&1&&Ue,st=!oo(B);let yt;if(st&&(yt=ue&&ue.onVnodeBeforeUnmount)&&sa(yt,V,B),je&6)Ee(B.component,oe,de);else{if(je&128){B.suspense.unmount(oe,de);return}ut&&Ci(B,null,V,"beforeUnmount"),je&64?B.type.remove(B,V,oe,ye,de):xe&&!xe.hasOnce&&(ie!==xt||Ne>0&&Ne&64)?Oe(xe,V,oe,!1,!0):(ie===xt&&Ne&384||!ee&&je&16)&&Oe(Ce,V,oe),de&&pe(B)}const Ie=at!=null&&Ke==null;(st&&(yt=ue&&ue.onVnodeUnmounted)||ut||Ie)&&Yr(()=>{yt&&sa(yt,V,B),ut&&Ci(B,null,V,"unmounted"),Ie&&(B.el=null)},oe)},pe=B=>{const{type:V,el:oe,anchor:de,transition:ee}=B;if(V===xt){De(oe,de);return}if(V===nc){v(B);return}const ie=()=>{a(oe),ee&&!ee.persisted&&ee.afterLeave&&ee.afterLeave()};if(B.shapeFlag&1&&ee&&!ee.persisted){const{leave:ue,delayLeave:ve}=ee,Ce=()=>ue(oe,ie);ve?ve(B.el,ie,Ce):Ce()}else ie()},De=(B,V)=>{let oe;for(;B!==V;)oe=d(B),a(B),B=oe;a(V)},Ee=(B,V,oe)=>{const{bum:de,scope:ee,job:ie,subTree:ue,um:ve,m:Ce,a:xe}=B;ch(Ce),ch(xe),de&&vs(de),ee.stop(),ie&&(ie.flags|=8,we(ue,B,V,oe)),ve&&Yr(ve,V),Yr(()=>{B.isUnmounted=!0},V)},Oe=(B,V,oe,de=!1,ee=!1,ie=0)=>{for(let ue=ie;ue<B.length;ue++)we(B[ue],V,oe,de,ee)},Pe=B=>{if(B.shapeFlag&6)return Pe(B.component.subTree);if(B.shapeFlag&128)return B.suspense.next();const V=d(B.anchor||B.el),oe=V&&V[_1];return oe?d(oe):V};let Me=!1;const ce=(B,V,oe)=>{let de;B==null?V._vnode&&(we(V._vnode,null,null,!0),de=V._vnode.component):p(V._vnode||null,B,V,null,null,null,oe),V._vnode=B,Me||(Me=!0,v1(de),m1(),Me=!1)},ye={p,um:we,m:he,r:pe,mt:H,mc:_,pc:Q,pbc:M,n:Pe,o:e};return{render:ce,hydrate:void 0,createApp:p3(ce)}}function tc({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Ti({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function D3(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rc(e,t,r=!1){const n=e.children,a=t.children;if(bt(n)&&bt(a))for(let i=0;i<n.length;i++){const o=n[i];let l=a[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=a[i]=Ma(a[i]),l.el=o.el),!r&&l.patchFlag!==-2&&rc(o,l)),l.type===Rs&&(l.patchFlag===-1&&(l=a[i]=Ma(l)),l.el=o.el),l.type===Hr&&!l.el&&(l.el=o.el)}}function I3(e){const t=e.slice(),r=[0];let n,a,i,o,l;const s=e.length;for(n=0;n<s;n++){const u=e[n];if(u!==0){if(a=r[r.length-1],e[a]<u){t[n]=a,r.push(n);continue}for(i=0,o=r.length-1;i<o;)l=i+o>>1,e[r[l]]<u?i=l+1:o=l;u<e[r[i]]&&(i>0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,o=r[i-1];i-- >0;)r[i]=o,o=t[o];return r}function uh(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:uh(t)}function ch(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function fh(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?fh(t.subTree):null}const dh=e=>e.__isSuspense;function z3(e,t){t&&t.pendingBranch?bt(e)?t.effects.push(...e):t.effects.push(e):N5(e)}const xt=Symbol.for("v-fgt"),Rs=Symbol.for("v-txt"),Hr=Symbol.for("v-cmt"),nc=Symbol.for("v-stc"),pl=[];let dn=null;function J(e=!1){pl.push(dn=e?null:[])}function F3(){pl.pop(),dn=pl[pl.length-1]||null}let vl=1;function Ls(e,t=!1){vl+=e,e<0&&dn&&t&&(dn.hasOnce=!0)}function hh(e){return e.dynamicChildren=vl>0?dn||Zi:null,F3(),vl>0&&dn&&dn.push(e),e}function ae(e,t,r,n,a,i){return hh(N(e,t,r,n,a,i,!0))}function kr(e,t,r,n,a){return hh(Bt(e,t,r,n,a,!0))}function ml(e){return e?e.__v_isVNode===!0:!1}function Mi(e,t){return e.type===t.type&&e.key===t.key}const ph=({key:e})=>e??null,Bs=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Jt(e)||Pr(e)||St(e)?{i:Rr,r:e,k:t,f:!!r}:e:null);function N(e,t=null,r=null,n=0,a=null,i=e===xt?0:1,o=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ph(t),ref:t&&Bs(t),scopeId:b1,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Rr};return l?(ac(s,r),i&128&&e.normalize(s)):r&&(s.shapeFlag|=Jt(r)?8:16),vl>0&&!o&&dn&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&dn.push(s),s}const Bt=O3;function O3(e,t=null,r=null,n=0,a=null,i=!1){if((!e||e===B1)&&(e=Hr),ml(e)){const l=Ja(e,t,!0);return r&&ac(l,r),vl>0&&!i&&dn&&(l.shapeFlag&6?dn[dn.indexOf(e)]=l:dn.push(l)),l.patchFlag=-2,l}if(V3(e)&&(e=e.__vccOpts),t){t=P3(t);let{class:l,style:s}=t;l&&!Jt(l)&&(t.class=Xt(l)),Vt(s)&&(Uu(s)&&!bt(s)&&(s=ar({},s)),t.style=Xa(s))}const o=Jt(e)?1:dh(e)?128:w1(e)?64:Vt(e)?4:St(e)?2:0;return N(e,t,r,n,a,o,i,!0)}function P3(e){return e?Uu(e)||rh(e)?ar({},e):e:null}function Ja(e,t,r=!1,n=!1){const{props:a,ref:i,patchFlag:o,children:l,transition:s}=e,u=t?vh(a||{},t):a,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ph(u),ref:t&&t.ref?r&&i?bt(i)?i.concat(Bs(t)):[i,Bs(t)]:Bs(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ja(e.ssContent),ssFallback:e.ssFallback&&Ja(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&n&&Ei(c,s.clone(c)),c}function Zr(e=" ",t=0){return Bt(Rs,null,e,t)}function rt(e="",t=!1){return t?(J(),kr(Hr,null,e)):Bt(Hr,null,e)}function la(e){return e==null||typeof e=="boolean"?Bt(Hr):bt(e)?Bt(xt,null,e.slice()):ml(e)?Ma(e):Bt(Rs,null,String(e))}function Ma(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ja(e)}function ac(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(bt(t))r=16;else if(typeof t=="object")if(n&65){const a=t.default;a&&(a._c&&(a._d=!1),ac(e,a()),a._c&&(a._d=!0));return}else{r=32;const a=t._;!a&&!rh(t)?t._ctx=Rr:a===3&&Rr&&(Rr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else St(t)?(t={default:t,_ctx:Rr},r=32):(t=String(t),n&64?(r=16,t=[Zr(t)]):r=8);e.children=t,e.shapeFlag|=r}function vh(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const a in n)if(a==="class")t.class!==n.class&&(t.class=Xt([t.class,n.class]));else if(a==="style")t.style=Xa([t.style,n.style]);else if(cs(a)){const i=t[a],o=n[a];o&&i!==o&&!(bt(i)&&i.includes(o))?t[a]=i?[].concat(i,o):o:o==null&&i==null&&!fs(a)&&(t[a]=o)}else a!==""&&(t[a]=n[a])}return t}function sa(e,t,r,n=null){Hn(e,t,7,[r,n])}const R3=X1();let L3=0;function B3(e,t,r){const n=e.type,a=(t?t.appContext:e.appContext)||R3,i={uid:L3++,vnode:e,type:n,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new r5(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ah(n,a),emitsOptions:Y1(n,a),emit:null,emitted:null,propsDefaults:Kt,inheritAttrs:n.inheritAttrs,ctx:Kt,data:Kt,props:Kt,attrs:Kt,slots:Kt,refs:Kt,setupState:Kt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=m3.bind(null,i),e.ce&&e.ce(i),i}let jr=null;const ic=()=>jr||Rr;let Ns,oc;{const e=gs(),t=(r,n)=>{let a;return(a=e[r])||(a=e[r]=[]),a.push(n),i=>{a.length>1?a.forEach(o=>o(i)):a[0](i)}};Ns=t("__VUE_INSTANCE_SETTERS__",r=>jr=r),oc=t("__VUE_SSR_SETTERS__",r=>bl=r)}const gl=e=>{const t=jr;return Ns(e),e.scope.on(),()=>{e.scope.off(),Ns(t)}},mh=()=>{jr&&jr.scope.off(),Ns(null)};function gh(e){return e.vnode.shapeFlag&4}let bl=!1;function N3(e,t=!1,r=!1){t&&oc(t);const{props:n,children:a}=e.vnode,i=gh(e);w3(e,n,i,t),A3(e,a,r||t);const o=i?$3(e,t):void 0;return t&&oc(!1),o}function $3(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,l3);const{setup:n}=r;if(n){ra();const a=e.setupContext=n.length>1?H3(e):null,i=gl(e),o=no(n,e,0,[e.props,a]),l=Nd(o);if(na(),i(),(l||e.sp)&&!oo(e)&&I1(e),l){if(o.then(mh,mh),t)return o.then(s=>{bh(e,s)}).catch(s=>{As(s,e,0)});e.asyncDep=o}else bh(e,o)}else yh(e)}function bh(e,t,r){St(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Vt(t)&&(e.setupState=f1(t)),yh(e)}function yh(e,t,r){const n=e.type;e.render||(e.render=n.render||ea);{const a=gl(e);ra();try{s3(e)}finally{na(),a()}}}const U3={get(e,t){return $r(e,"get",""),e[t]}};function H3(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,U3),slots:e.slots,emit:e.emit,expose:t}}function $s(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(f1(k5(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in dl)return dl[r](e)},has(t,r){return r in t||r in dl}})):e.proxy}const j3=/(?:^|[-_])\w/g,G3=e=>e.replace(j3,t=>t.toUpperCase()).replace(/[-_]/g,"");function xh(e,t=!0){return St(e)?e.displayName||e.name:e.name||t&&e.__name}function _h(e,t,r=!1){let n=xh(t);if(!n&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(n=a[1])}if(!n&&e){const a=i=>{for(const o in i)if(i[o]===t)return o};n=a(e.components)||e.parent&&a(e.parent.type.components)||a(e.appContext.components)}return n?G3(n):r?"App":"Anonymous"}function V3(e){return St(e)&&"__vccOpts"in e}const gt=(e,t)=>D5(e,t,bl);function wh(e,t,r){try{Ls(-1);const n=arguments.length;return n===2?Vt(t)&&!bt(t)?ml(t)?Bt(e,null,[t]):Bt(e,t):Bt(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&ml(r)&&(r=[r]),Bt(e,t,r))}finally{Ls(1)}}const q3="3.5.34";/**
17
+ * @vue/runtime-dom v3.5.34
18
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
+ * @license MIT
20
+ **/let lc;const kh=typeof window<"u"&&window.trustedTypes;if(kh)try{lc=kh.createPolicy("vue",{createHTML:e=>e})}catch{}const Sh=lc?e=>lc.createHTML(e):e=>e,W3="http://www.w3.org/2000/svg",K3="http://www.w3.org/1998/Math/MathML",Da=typeof document<"u"?document:null,Ch=Da&&Da.createElement("template"),X3={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const a=t==="svg"?Da.createElementNS(W3,e):t==="mathml"?Da.createElementNS(K3,e):r?Da.createElement(e,{is:r}):Da.createElement(e);return e==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:e=>Da.createTextNode(e),createComment:e=>Da.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Da.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,a,i){const o=r?r.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),r),!(a===i||!(a=a.nextSibling)););else{Ch.innerHTML=Sh(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Ch.content;if(n==="svg"||n==="mathml"){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Qa="transition",yl="animation",so=Symbol("_vtc"),Ah={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Eh=ar({},A1,Ah),uo=(e=>(e.displayName="Transition",e.props=Eh,e))((e,{slots:t})=>wh(X5,Mh(e),t)),Di=(e,t=[])=>{bt(e)?e.forEach(r=>r(...t)):e&&e(...t)},Th=e=>e?bt(e)?e.some(t=>t.length>1):e.length>1:!1;function Mh(e){const t={};for(const R in e)R in Ah||(t[R]=e[R]);if(e.css===!1)return t;const{name:r="v",type:n,duration:a,enterFromClass:i=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:l=`${r}-enter-to`,appearFromClass:s=i,appearActiveClass:u=o,appearToClass:c=l,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,b=Y3(a),p=b&&b[0],x=b&&b[1],{onBeforeEnter:g,onEnter:m,onEnterCancelled:y,onLeave:v,onLeaveCancelled:k,onBeforeAppear:C=g,onAppear:A=m,onAppearCancelled:_=y}=t,E=(R,O,H,Z)=>{R._enterCancelled=Z,ei(R,O?c:l),ei(R,O?u:o),H&&H()},M=(R,O)=>{R._isLeaving=!1,ei(R,f),ei(R,h),ei(R,d),O&&O()},z=R=>(O,H)=>{const Z=R?A:m,q=()=>E(O,R,H);Di(Z,[O,q]),Dh(()=>{ei(O,R?s:i),ua(O,R?c:l),Th(Z)||Ih(O,n,p,q)})};return ar(t,{onBeforeEnter(R){Di(g,[R]),ua(R,i),ua(R,o)},onBeforeAppear(R){Di(C,[R]),ua(R,s),ua(R,u)},onEnter:z(!1),onAppear:z(!0),onLeave(R,O){R._isLeaving=!0;const H=()=>M(R,O);ua(R,f),R._enterCancelled?(ua(R,d),uc(R)):(uc(R),ua(R,d)),Dh(()=>{R._isLeaving&&(ei(R,f),ua(R,h),Th(v)||Ih(R,n,x,H))}),Di(v,[R,H])},onEnterCancelled(R){E(R,!1,void 0,!0),Di(y,[R])},onAppearCancelled(R){E(R,!0,void 0,!0),Di(_,[R])},onLeaveCancelled(R){M(R),Di(k,[R])}})}function Y3(e){if(e==null)return null;if(Vt(e))return[sc(e.enter),sc(e.leave)];{const t=sc(e);return[t,t]}}function sc(e){return Au(e)}function ua(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[so]||(e[so]=new Set)).add(t)}function ei(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[so];r&&(r.delete(t),r.size||(e[so]=void 0))}function Dh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Z3=0;function Ih(e,t,r,n){const a=e._endId=++Z3,i=()=>{a===e._endId&&n()};if(r!=null)return setTimeout(i,r);const{type:o,timeout:l,propCount:s}=zh(e,t);if(!o)return n();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=h=>{h.target===e&&++c>=s&&f()};setTimeout(()=>{c<s&&f()},l+1),e.addEventListener(u,d)}function zh(e,t){const r=window.getComputedStyle(e),n=b=>(r[b]||"").split(", "),a=n(`${Qa}Delay`),i=n(`${Qa}Duration`),o=Fh(a,i),l=n(`${yl}Delay`),s=n(`${yl}Duration`),u=Fh(l,s);let c=null,f=0,d=0;t===Qa?o>0&&(c=Qa,f=o,d=i.length):t===yl?u>0&&(c=yl,f=u,d=s.length):(f=Math.max(o,u),c=f>0?o>u?Qa:yl:null,d=c?c===Qa?i.length:s.length:0);const h=c===Qa&&/\b(?:transform|all)(?:,|$)/.test(n(`${Qa}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function Fh(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>Oh(r)+Oh(e[n])))}function Oh(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function uc(e){return(e?e.ownerDocument:document).body.offsetHeight}function J3(e,t,r){const n=e[so];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Us=Symbol("_vod"),Ph=Symbol("_vsh"),cc={name:"show",beforeMount(e,{value:t},{transition:r}){e[Us]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):xl(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),xl(e,!0),n.enter(e)):n.leave(e,()=>{xl(e,!1)}):xl(e,t))},beforeUnmount(e,{value:t}){xl(e,t)}};function xl(e,t){e.style.display=t?e[Us]:"none",e[Ph]=!t}const Q3=Symbol(""),e6=/(?:^|;)\s*display\s*:/;function t6(e,t,r){const n=e.style,a=Jt(r);let i=!1;if(r&&!a){if(t)if(Jt(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();r[l]==null&&_l(n,l,"")}else for(const o in t)r[o]==null&&_l(n,o,"");for(const o in r){o==="display"&&(i=!0);const l=r[o];l!=null?n6(e,o,!Jt(t)&&t?t[o]:void 0,l)||_l(n,o,l):_l(n,o,"")}}else if(a){if(t!==r){const o=n[Q3];o&&(r+=";"+o),n.cssText=r,i=e6.test(r)}}else t&&e.removeAttribute("style");Us in e&&(e[Us]=i?n.display:"",e[Ph]&&(n.display="none"))}const Rh=/\s*!important$/;function _l(e,t,r){if(bt(r))r.forEach(n=>_l(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=r6(e,t);Rh.test(r)?e.setProperty(fn(n),r.replace(Rh,""),"important"):e[n]=r}}const Lh=["Webkit","Moz","ms"],fc={};function r6(e,t){const r=fc[t];if(r)return r;let n=Er(t);if(n!=="filter"&&n in e)return fc[t]=n;n=ps(n);for(let a=0;a<Lh.length;a++){const i=Lh[a]+n;if(i in e)return fc[t]=i}return t}function n6(e,t,r,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Jt(n)&&r===n}const Bh="http://www.w3.org/1999/xlink";function Nh(e,t,r,n,a,i=e5(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Bh,t.slice(6,t.length)):e.setAttributeNS(Bh,t,r):r==null||i&&!jd(r)?e.removeAttribute(t):e.setAttribute(t,i?"":Nn(r)?String(r):r)}function $h(e,t,r,n,a){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Sh(r):r);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,s=r==null?e.type==="checkbox"?"on":"":String(r);(l!==s||!("_value"in e))&&(e.value=s),r==null&&e.removeAttribute(t),e._value=r;return}let o=!1;if(r===""||r==null){const l=typeof e[t];l==="boolean"?r=jd(r):r==null&&l==="string"?(r="",o=!0):l==="number"&&(r=0,o=!0)}try{e[t]=r}catch{}o&&e.removeAttribute(a||t)}function ti(e,t,r,n){e.addEventListener(t,r,n)}function a6(e,t,r,n){e.removeEventListener(t,r,n)}const Uh=Symbol("_vei");function i6(e,t,r,n,a=null){const i=e[Uh]||(e[Uh]={}),o=i[t];if(n&&o)o.value=n;else{const[l,s]=o6(t);if(n){const u=i[t]=u6(n,a);ti(e,l,u,s)}else o&&(a6(e,l,o,s),i[t]=void 0)}}const Hh=/(?:Once|Passive|Capture)$/;function o6(e){let t;if(Hh.test(e)){t={};let n;for(;n=e.match(Hh);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):fn(e.slice(2)),t]}let dc=0;const l6=Promise.resolve(),s6=()=>dc||(l6.then(()=>dc=0),dc=Date.now());function u6(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Hn(c6(n,r.value),t,5,[n])};return r.value=e,r.attached=s6(),r}function c6(e,t){if(bt(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const jh=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,f6=(e,t,r,n,a,i)=>{const o=a==="svg";t==="class"?J3(e,n,o):t==="style"?t6(e,r,n):cs(t)?fs(t)||i6(e,t,r,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):d6(e,t,n,o))?($h(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Nh(e,t,n,o,i,t!=="value")):e._isVueCE&&(h6(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Jt(n)))?$h(e,Er(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Nh(e,t,n,o))};function d6(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&jh(t)&&St(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return jh(t)&&Jt(r)?!1:t in e}function h6(e,t){const r=e._def.props;if(!r)return!1;const n=Er(t);return Array.isArray(r)?r.some(a=>Er(a)===n):Object.keys(r).some(a=>Er(a)===n)}const Gh={};function p6(e,t,r){let n=Wt(e,t);ds(n)&&(n=ar({},n,t));class a extends hc{constructor(o){super(n,o,r)}}return a.def=n,a}const v6=typeof HTMLElement<"u"?HTMLElement:class{};class hc extends v6{constructor(t,r={},n=rp){super(),this._def=t,this._props=r,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==rp?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(ar({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof hc){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Ea(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const r of t)this._setAttr(r.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(n,a=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:o}=n;let l;if(i&&!bt(i))for(const s in i){const u=i[s];(u===Number||u&&u.type===Number)&&(s in this._props&&(this._props[s]=Au(this._props[s])),(l||(l=Object.create(null)))[Er(s)]=!0)}this._numberProps=l,this._resolveProps(n),this.shadowRoot&&this._applyStyles(o),this._mount(n)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(n=>{n.configureApp=this._def.configureApp,t(this._def=n,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const n in r)$t(this,n)||Object.defineProperty(this,n,{get:()=>Qe(r[n])})}_resolveProps(t){const{props:r}=t,n=bt(r)?r:Object.keys(r||{});for(const a of Object.keys(this))a[0]!=="_"&&n.includes(a)&&this._setProp(a,this[a]);for(const a of n.map(Er))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(i){this._setProp(a,i,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const r=this.hasAttribute(t);let n=r?this.getAttribute(t):Gh;const a=Er(t);r&&this._numberProps&&this._numberProps[a]&&(n=Au(n)),this._setProp(a,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,a=!1){if(r!==this._props[t]&&(this._dirty=!0,r===Gh?delete this._props[t]:(this._props[t]=r,t==="key"&&this._app&&(this._app._ceVNode.key=r)),a&&this._instance&&this._update(),n)){const i=this._ob;i&&(this._processMutations(i.takeRecords()),i.disconnect()),r===!0?this.setAttribute(fn(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(fn(t),r+""):r||this.removeAttribute(fn(t)),i&&i.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),A6(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const r=Bt(this._def,ar(t,this._props));return this._instance||(r.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const a=(i,o)=>{this.dispatchEvent(new CustomEvent(i,ds(o[0])?ar({detail:o},o[0]):{detail:o}))};n.emit=(i,...o)=>{a(i,o),fn(i)!==i&&a(fn(i),o)},this._setParent()}),r}_applyStyles(t,r,n){if(!t)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const a=this._nonce,i=this.shadowRoot,o=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i);let l=null;for(let s=t.length-1;s>=0;s--){const u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=t[s],i.insertBefore(u,l||o),l=u,s===0&&(n||this._styleAnchors.set(this._def,u),r&&this._styleAnchors.set(r,u))}}_getStyleAnchor(t){if(!t)return null;const r=this._styleAnchors.get(t);return r&&r.parentNode===this.shadowRoot?r:(r&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let r=0;r<t.childNodes.length;r++){const n=t.childNodes[r];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const t=this._slots={};let r;for(;r=this.firstChild;){const n=r.nodeType===1&&r.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(r),this.removeChild(r)}}_renderSlots(){const t=this._getSlots(),r=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const a=t[n],i=a.getAttribute("name")||"default",o=this._slots[i],l=a.parentNode;if(o)for(const s of o){if(r&&s.nodeType===1){const u=r+"-s",c=document.createTreeWalker(s,1);s.setAttribute(u,"");let f;for(;f=c.nextNode();)f.setAttribute(u,"")}l.insertBefore(s,a)}else for(;a.firstChild;)l.insertBefore(a.firstChild,a);l.removeChild(a)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const r=new Set;for(const n of t){const a=n.querySelectorAll("slot");for(let i=0;i<a.length;i++)r.add(a[i])}return Array.from(r)}_injectChildStyle(t,r){this._applyStyles(t.styles,t,r)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}}const Vh=new WeakMap,qh=new WeakMap,Hs=Symbol("_moveCb"),Wh=Symbol("_enterCb"),m6=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:ar({},Eh,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=ic(),n=C1();let a,i;return P1(()=>{if(!a.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!x6(a[0].el,r.vnode.el,o)){a=[];return}a.forEach(g6),a.forEach(b6);const l=a.filter(y6);uc(r.vnode.el),l.forEach(s=>{const u=s.el,c=u.style;ua(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[Hs]=d=>{d&&d.target!==u||(!d||d.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",f),u[Hs]=null,ei(u,o))};u.addEventListener("transitionend",f)}),a=[]}),()=>{const o=Lt(e),l=Mh(o);let s=o.tag||xt;if(a=[],i)for(let u=0;u<i.length;u++){const c=i[u];c.el&&c.el instanceof Element&&(a.push(c),Ei(c,cl(c,l,n,r)),Vh.set(c,Kh(c.el)))}i=t.default?Wu(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&Ei(c,cl(c,l,n,r))}return Bt(s,null,i)}}});function g6(e){const t=e.el;t[Hs]&&t[Hs](),t[Wh]&&t[Wh]()}function b6(e){qh.set(e,Kh(e.el))}function y6(e){const t=Vh.get(e),r=qh.get(e),n=t.left-r.left,a=t.top-r.top;if(n||a){const i=e.el,o=i.style,l=i.getBoundingClientRect();let s=1,u=1;return i.offsetWidth&&(s=l.width/i.offsetWidth),i.offsetHeight&&(u=l.height/i.offsetHeight),(!Number.isFinite(s)||s===0)&&(s=1),(!Number.isFinite(u)||u===0)&&(u=1),Math.abs(s-1)<.01&&(s=1),Math.abs(u-1)<.01&&(u=1),o.transform=o.webkitTransform=`translate(${n/s}px,${a/u}px)`,o.transitionDuration="0s",e}}function Kh(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function x6(e,t,r){const n=e.cloneNode(),a=e[so];a&&a.forEach(l=>{l.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),r.split(/\s+/).forEach(l=>l&&n.classList.add(l)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:o}=zh(n);return i.removeChild(n),o}const co=e=>{const t=e.props["onUpdate:modelValue"]||!1;return bt(t)?r=>vs(t,r):t};function _6(e){e.target.composing=!0}function Xh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ia=Symbol("_assign");function Yh(e,t,r){return t&&(e=e.trim()),r&&(e=ms(e)),e}const on={created(e,{modifiers:{lazy:t,trim:r,number:n}},a){e[Ia]=co(a);const i=n||a.props&&a.props.type==="number";ti(e,t?"change":"input",o=>{o.target.composing||e[Ia](Yh(e.value,r,i))}),(r||i)&&ti(e,"change",()=>{e.value=Yh(e.value,r,i)}),t||(ti(e,"compositionstart",_6),ti(e,"compositionend",Xh),ti(e,"change",Xh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:a,number:i}},o){if(e[Ia]=co(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?ms(e.value):e.value,s=t??"";if(l===s)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(n&&t===r||a&&e.value.trim()===s)||(e.value=s)}},js={deep:!0,created(e,t,r){e[Ia]=co(r),ti(e,"change",()=>{const n=e._modelValue,a=wl(e),i=e.checked,o=e[Ia];if(bt(n)){const l=Eu(n,a),s=l!==-1;if(i&&!s)o(n.concat(a));else if(!i&&s){const u=[...n];u.splice(l,1),o(u)}}else if(Qi(n)){const l=new Set(n);i?l.add(a):l.delete(a),o(l)}else o(Qh(e,i))})},mounted:Zh,beforeUpdate(e,t,r){e[Ia]=co(r),Zh(e,t,r)}};function Zh(e,{value:t,oldValue:r},n){e._modelValue=t;let a;if(bt(t))a=Eu(t,n.props.value)>-1;else if(Qi(t))a=t.has(n.props.value);else{if(t===r)return;a=eo(t,Qh(e,!0))}e.checked!==a&&(e.checked=a)}const Gs={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const a=Qi(t);ti(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?ms(wl(o)):wl(o));e[Ia](e.multiple?a?new Set(i):i:i[0]),e._assigning=!0,Ea(()=>{e._assigning=!1})}),e[Ia]=co(n)},mounted(e,{value:t}){Jh(e,t)},beforeUpdate(e,t,r){e[Ia]=co(r)},updated(e,{value:t}){e._assigning||Jh(e,t)}};function Jh(e,t){const r=e.multiple,n=bt(t);if(!(r&&!n&&!Qi(t))){for(let a=0,i=e.options.length;a<i;a++){const o=e.options[a],l=wl(o);if(r)if(n){const s=typeof l;s==="string"||s==="number"?o.selected=t.some(u=>String(u)===String(l)):o.selected=Eu(t,l)>-1}else o.selected=t.has(l);else if(eo(wl(o),t)){e.selectedIndex!==a&&(e.selectedIndex=a);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function wl(e){return"_value"in e?e._value:e.value}function Qh(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const w6=["ctrl","shift","alt","meta"],k6={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>w6.some(r=>e[`${r}Key`]&&!t.includes(r))},pr=(e,t)=>{if(!e)return e;const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(a,...i)=>{for(let o=0;o<t.length;o++){const l=k6[t[o]];if(l&&l(a,t))return}return e(a,...i)})},S6={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ca=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=a=>{if(!("key"in a))return;const i=fn(a.key);if(t.some(o=>o===i||S6[o]===i))return e(a)})},C6=ar({patchProp:f6},X3);let ep;function tp(){return ep||(ep=T3(C6))}const A6=(...e)=>{tp().render(...e)},rp=(...e)=>{const t=tp().createApp(...e),{mount:r}=t;return t.mount=n=>{const a=T6(n);if(!a)return;const i=t._component;!St(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const o=r(a,!1,E6(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t};function E6(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function T6(e){return Jt(e)?document.querySelector(e):e}function np(e){return!!e&&e.enabled&&e.state==="ok"}function M6(e){const t=e.apiBase!=null?e.apiBase.replace(/\/+$/,""):null;function r(a,i){return a||(t===null?null:`${t}${i}`)}const n=e.endpoint??(t!==null?`${t}/api/files/manager`:null);if(!n)throw new Error("[@brftech/filex-core] config requires either `apiBase` or `endpoint`");return{manager:n,uploadInit:r(e.uploadInit,"/api/files/upload/init"),uploadFinalize:r(e.uploadFinalize,"/api/files/upload/finalize"),uploadAbort:r(e.uploadAbort,"/api/files/upload/abort"),shareCreate:r(e.shareCreate,"/api/files/share"),shareList:r(e.shareList,"/api/files/share"),shareDelete:r(e.shareDelete,"/api/files/share/{uuid}"),limits:r(e.limits,"/api/files/limits"),capabilities:r(e.capabilities,"/api/files/capabilities"),archiveList:r(e.archiveList,"/api/files/archive/list"),archiveExtract:r(e.archiveExtract,"/api/files/archive/extract"),archiveAdd:r(e.archiveAdd,"/api/files/archive/add"),copy:r(e.copy,"/api/files/copy"),moveAsync:r(e.moveAsync,"/api/files/move"),deleteAsync:r(e.deleteAsync,"/api/files/delete"),opsList:r(e.opsList,"/api/files/ops"),opsShow:r(e.opsShow,"/api/files/ops/{id}"),onlyOfficeConfig:r(e.onlyOfficeConfig,"/api/files/onlyoffice/config"),saveText:r(e.saveText,"/api/files/save-text"),restore:r(e.restore,"/api/files/restore"),trashList:r(e.trashList,"/api/files/manager/trash"),trashRestore:r(e.trashRestore,"/api/files/manager/restore")}}async function D6(e){if(typeof e=="function"){const t=e();return t instanceof Promise?await t:t}return e}function I6(e){return e?"kind"in e?e:e.type==="bearer"?{kind:"bearer",token:e.token}:e.type==="csrf"?{kind:"csrf",csrf:e.csrf}:{kind:"none"}:{kind:"none"}}function z6(e){const t=M6(e),r=I6(e.auth);async function n(ce={}){const ye={Accept:"application/json",...ce};if(r.kind==="bearer"){const ge=await D6(r.token);ge&&(ye.Authorization=`Bearer ${ge}`)}else if(r.kind==="csrf")ye["X-CSRF-TOKEN"]=r.csrf,ye["X-Requested-With"]="XMLHttpRequest";else if(r.kind==="basic"){const ge=btoa(`${r.user}:${r.pass}`);ye.Authorization=`Basic ${ge}`}return ye}function a(ce={}){const ye={Accept:"application/json",...ce};if(r.kind==="bearer"&&typeof r.token=="string")ye.Authorization=`Bearer ${r.token}`;else if(r.kind==="csrf")ye["X-CSRF-TOKEN"]=r.csrf,ye["X-Requested-With"]="XMLHttpRequest";else if(r.kind==="basic"){const ge=btoa(`${r.user}:${r.pass}`);ye.Authorization=`Basic ${ge}`}return ye}function i(){return r.kind==="csrf"?"include":"same-origin"}function o(ce){const ye=(e.locale??"tr")!=="en",B={400:["Geçersiz istek","Bad request"],401:["Oturum gerekli, tekrar giriş yapın","Sign-in required"],403:["Bu işlem için yetkiniz yok","You are not allowed to do this"],404:["Bulunamadı","Not found"],409:["Zaten var / çakışma","Already exists / conflict"],413:["Dosya çok büyük","File too large"],415:["Bu dosya türü desteklenmiyor","Unsupported file type"],422:["Geçersiz veri","Invalid data"],429:["Çok fazla istek, biraz bekleyin","Too many requests"],500:["Sunucu hatası","Server error"],501:["Bu işlem desteklenmiyor","Not supported"],503:["Servis şu an kullanılamıyor","Service unavailable"]}[ce];return B?ye?B[0]:B[1]:ye?`Hata (${ce})`:`Error (${ce})`}async function l(ce,ye={}){const ge={...await n(),...ye.headers??{}},B=await fetch(ce,{...ye,headers:ge,credentials:i()});if(!B.ok){const V=await B.text().catch(()=>""),oe=new Error(o(B.status));throw oe.status=B.status,oe.detail=V.slice(0,300),oe}return B.json()}function s(ce=""){return t.manager.replace(/\/manager(\?.*)?$/,"/permissions")+ce}async function u(ce){return l(s()+"?path="+encodeURIComponent(ce))}async function c(ce){return l(s("/resolve")+"?email="+encodeURIComponent(ce))}async function f(ce){return l(s("/users")+"?q="+encodeURIComponent(ce))}async function d(ce){return l(s(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ce)})}async function h(ce,ye){return l(s("/"+ce),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({level:ye})})}async function b(ce){return l(s("/"+ce),{method:"DELETE"})}async function p(ce){return l(s("/invite"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ce)})}async function x(ce){return l(s("/share-mail"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ce)})}function g(ce){const ye=new URLSearchParams;for(const[ge,B]of Object.entries(ce))B!=null&&ye.set(ge,String(B));return ye.toString()}function m(ce,ye={}){const ge=t.manager.includes("?")?"&":"?";return`${t.manager}${ge}${g({q:ce,action:ce,...ye})}`}async function y(ce){return l(m("index",{path:ce}))}async function v(ce,ye){return l(m("search",{path:ce,filter:ye}))}async function k(ce){return l(m("subfolders",{path:ce}))}async function C(ce,ye){return l(m("newfolder"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:ce,name:ye})})}async function A(ce,ye,ge){return l(m("rename"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:ce,item:ye,name:ge})})}async function _(ce,ye,ge){return l(m("move"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:ce,item:ge,items:ye.map(B=>({path:B}))})})}async function E(ce,ye){return l(m("delete"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:ce,items:ye.map(ge=>({path:ge}))})})}async function M(ce,ye){if(!t.copy)throw new Error("copy endpoint not configured");return l(t.copy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source:ce,target:ye})})}async function z(ce,ye,ge){if(!t.moveAsync)throw new Error("moveAsync endpoint not configured");return l(t.moveAsync,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source:ce,target:ye,sourceDir:ge})})}async function R(ce,ye){if(!t.deleteAsync)throw new Error("deleteAsync endpoint not configured");return l(t.deleteAsync,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source:ce,sourceDir:ye})})}async function O(ce){if(!t.restore)throw new Error("restore endpoint not configured");return l(t.restore,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source:ce})})}async function H(ce){if(!t.trashList)throw new Error("trashList endpoint not configured");const ye=t.trashList,ge=ye.includes("?")?"&":"?",B=ce?`${ye}${ge}storage=${encodeURIComponent(ce)}`:ye;return l(B)}async function Z(ce){const ye=t.trashRestore;if(!ye)throw new Error("trashRestore endpoint not configured");let ge=0;for(const B of ce)try{await l(ye,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({node_id:B})}),ge++}catch{}return{restored:ge}}async function q(ce,ye,ge){const B=new FormData;B.append("path",ce);for(const oe of ye)B.append("file[]",oe,oe.name);const V=await n();return new Promise((oe,de)=>{const ee=new XMLHttpRequest;ee.open("POST",m("upload"));for(const[ie,ue]of Object.entries(V))ie!=="Content-Type"&&ee.setRequestHeader(ie,ue);ee.withCredentials=i()==="include",ee.upload.onprogress=ie=>{ge&&ie.lengthComputable&&ge(Math.round(ie.loaded/ie.total*100))},ee.onload=()=>{if(ee.status>=200&&ee.status<300)try{oe(JSON.parse(ee.responseText))}catch(ie){de(ie)}else de(new Error(`${ee.status} ${ee.statusText}: ${ee.responseText.slice(0,200)}`))},ee.onerror=()=>de(new Error("Network error")),ee.send(B)})}function X(ce){return m("download",{path:ce})}function Q(ce){return m("preview",{path:ce})}async function te(ce){const ye=await n(),ge=await fetch(Q(ce),{headers:ye,credentials:i()});if(!ge.ok){const de=await ge.text().catch(()=>"");throw new Error(`${ge.status} ${ge.statusText}${de?" — "+de.slice(0,200):""}`)}const B=await ge.blob(),V=B.type||ge.headers.get("content-type")||"";return{url:URL.createObjectURL(B),blob:B,mime:V}}async function _e(ce){const ye=await n(),ge=await fetch(Q(ce),{headers:ye,credentials:i()});if(!ge.ok){const B=await ge.text().catch(()=>"");throw new Error(`${ge.status} ${ge.statusText}${B?" — "+B.slice(0,200):""}`)}return ge.arrayBuffer()}async function he(){return t.limits?l(t.limits):{max_upload_mb:1024}}async function we(){return t.capabilities?l(t.capabilities):{ffmpeg:!1,ghostscript:!1,libreoffice:!1,max_chunk_mb:5,upload_limit_mb:1024,onlyoffice_url:e.onlyOfficeBase??null,drawio_url:e.drawioBase??null,convert_url:e.convertBase??null}}async function pe(ce){if(!t.shareCreate)throw new Error("shareCreate endpoint not configured");return l(t.shareCreate,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ce)})}async function De(ce){if(!t.shareList)return{shares:[]};const ye=t.shareList.includes("?")?"&":"?";return l(`${t.shareList}${ye}path=${encodeURIComponent(ce)}`)}async function Ee(ce){if(!t.shareDelete)throw new Error("shareDelete endpoint not configured");const ye=t.shareDelete.replace("{uuid}",encodeURIComponent(ce));return l(ye,{method:"DELETE"})}async function Oe(ce){if(!t.archiveList)throw new Error("archiveList endpoint not configured");return{entries:(await l(t.archiveList,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:ce})})).entries.map(ge=>({name:ge.name,size:ge.size,isDir:ge.is_dir,lastModified:ge.mtime}))}}async function Pe(ce,ye){if(!t.archiveExtract)throw new Error("archiveExtract endpoint not configured");return l(t.archiveExtract,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:ce,members:ye})})}async function Me(ce,ye){if(!t.archiveAdd)throw new Error("archiveAdd endpoint not configured");return l(t.archiveAdd,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:ce,files:ye})})}return{index:y,search:v,subfolders:k,newFolder:C,rename:A,move:_,copy:M,moveAsync:z,deleteAsync:R,deleteItems:E,restore:O,listTrash:H,restoreIds:Z,uploadMultipart:q,downloadUrl:X,previewUrl:Q,fetchBlob:te,fetchArrayBuffer:_e,limits:he,capabilities:we,createShare:pe,listShares:De,revokeShare:Ee,archiveList:Oe,archiveExtract:Pe,archiveAdd:Me,listPermissions:u,resolveEmail:c,searchUsers:f,addPermission:d,updatePermission:h,deletePermission:b,invitePermission:p,shareMail:x,endpoints:t,authHeaders:n,authHeadersSync:a,credentialsMode:i,jsonFetch:l}}function F6(e,t){const r=e.chunkSize??5242880,n=Math.max(1,Math.min(8,e.parallelChunks??4));async function a(i){var d,h;const o=i.chunkSize??r,l=i.parallelChunks??n,s={id:crypto.randomUUID(),file:i.file,path:i.path,totalBytes:i.file.size,uploadedBytes:0,percent:0,status:"initializing",cancel:()=>{}};let u=!1;const c=[];s.cancel=()=>{u=!0;for(const b of c)b.abort()};function f(){var b;s.percent=s.totalBytes>0?Math.min(100,Math.round(s.uploadedBytes/s.totalBytes*100)):0,(b=i.onProgress)==null||b.call(i,s)}try{if(!t.endpoints.uploadInit)throw new Error("uploadInit not configured");const b=await t.jsonFetch(t.endpoints.uploadInit,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:i.path,filename:i.file.name,size:i.file.size,mime:i.file.type||"application/octet-stream"})});s.uploadId=b.uploadId,s.status="uploading",f();const p=b.chunkBytes??o,x=new Map,g=[];let m=0;async function y(E){const z=(E.partNumber-1)*(b.chunkBytes??o),R=Math.min(z+(b.chunkBytes??o),i.file.size),O=i.file.slice(z,R),H=new AbortController;c.push(H),await new Promise((Z,q)=>{const X=new XMLHttpRequest;X.open("PUT",E.presignedUrl),X.upload.onprogress=Q=>{if(Q.lengthComputable){const te=x.get(E.partNumber)??0,_e=Q.loaded-te;x.set(E.partNumber,Q.loaded),s.uploadedBytes+=_e,f()}},X.onload=()=>{if(X.status>=200&&X.status<300){const Q=(X.getResponseHeader("ETag")||X.getResponseHeader("etag")||"").trim();if(!Q){q(new Error("Missing ETag on S3 response"));return}const te=R-z,_e=x.get(E.partNumber)??0;_e<te&&(s.uploadedBytes+=te-_e,x.set(E.partNumber,te)),g.push({partNumber:E.partNumber,etag:Q}),Z()}else q(new Error(`S3 PUT ${E.partNumber} → ${X.status}: ${X.responseText.slice(0,200)}`))},X.onerror=()=>q(new Error(`S3 PUT ${E.partNumber} network error`)),X.onabort=()=>q(new DOMException("Aborted","AbortError")),H.signal.addEventListener("abort",()=>X.abort()),X.send(O)})}const v=2;async function k(E,M=0){try{await y(E)}catch(z){if(u)throw z;const R=z instanceof Error?z:new Error(String(z));if(R.name==="AbortError"||M>=v)throw R;const O=x.get(E.partNumber)??0;O>0&&(s.uploadedBytes=Math.max(0,s.uploadedBytes-O),x.delete(E.partNumber),f());const H=500*(M+1)+Math.floor(Math.random()*250);return await new Promise(Z=>setTimeout(Z,H)),k(E,M+1)}}async function C(){for(;!u&&m<b.parts.length;){const E=b.parts[m++];await k(E)}}const A=[];for(let E=0;E<l;E++)A.push(C());if(await Promise.all(A),u)throw new DOMException("Aborted by user","AbortError");if(!t.endpoints.uploadFinalize)throw new Error("uploadFinalize not configured");s.status="finalizing",g.sort((E,M)=>E.partNumber-M.partNumber);const _=await t.jsonFetch(t.endpoints.uploadFinalize,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uploadId:b.uploadId,parts:g})});return s.status="done",s.uploadedBytes=s.totalBytes,s.percent=100,f(),(d=i.onDone)==null||d.call(i,s,_),_}catch(b){const p=b instanceof Error?b:new Error(String(b));if(s.status=p.name==="AbortError"?"aborted":"error",s.error=p.message,f(),s.uploadId&&t.endpoints.uploadAbort&&s.status==="aborted")try{await t.jsonFetch(t.endpoints.uploadAbort,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uploadId:s.uploadId})})}catch{}throw(h=i.onError)==null||h.call(i,s,p),p}}return{uploadFile:a}}function O6(e){const t=fe(new Set),r=fe(null);function n(d,h={}){if(h.shift&&r.value){const b=e(),p=b.findIndex(v=>v.path===r.value),x=b.findIndex(v=>v.path===d);if(p===-1||x===-1){t.value=new Set([d]),r.value=d;return}const[g,m]=p<x?[p,x]:[x,p],y=new Set;for(let v=g;v<=m;v++)y.add(b[v].path);t.value=y;return}if(h.ctrl){const b=new Set(t.value);b.has(d)?b.delete(d):b.add(d),t.value=b,r.value=d;return}t.value=new Set([d]),r.value=d}function a(){t.value=new Set,r.value=null}function i(){t.value=new Set(e().map(d=>d.path))}function o(d){return t.value.has(d)}function l(d){const h=new Set(t.value);h.add(d),t.value=h}function s(d){const h=new Set(t.value);h.delete(d),t.value=h}const u=gt(()=>t.value.size),c=gt(()=>t.value.size===0),f=gt(()=>e().filter(h=>t.value.has(h.path)));return{selected:t,anchor:r,click:n,clear:a,selectAll:i,has:o,add:l,remove:s,size:u,isEmpty:c,nodes:f}}function P6(e,t){function r(n){var l;if(!e.value)return;const i=n.target;if(i&&(i.tagName==="INPUT"||i.tagName==="TEXTAREA"||i.isContentEditable)&&n.key!=="Escape")return;const o=n.ctrlKey||n.metaKey;switch(n.key){case"Delete":t.onDelete&&(n.preventDefault(),t.onDelete());break;case"Backspace":(l=t.hasSelection)!=null&&l.call(t)&&t.onDelete?(n.preventDefault(),t.onDelete()):t.onGoUp&&(n.preventDefault(),t.onGoUp());break;case"F2":t.onRename&&(n.preventDefault(),t.onRename());break;case"Enter":t.onOpen&&t.onOpen();break;case"Escape":t.onClose&&t.onClose();break;case"/":t.onFocusSearch&&!o&&(n.preventDefault(),t.onFocusSearch());break;case"a":case"A":o&&t.onSelectAll&&(n.preventDefault(),t.onSelectAll());break;case"x":case"X":o&&t.onCut&&(n.preventDefault(),t.onCut());break;case"c":case"C":o&&t.onCopy&&(n.preventDefault(),t.onCopy());break;case"v":case"V":o&&t.onPaste&&(n.preventDefault(),t.onPaste());break;case"d":case"D":o&&t.onDuplicate&&(n.preventDefault(),t.onDuplicate());break;case"k":case"K":o&&t.onPathJump&&(n.preventDefault(),t.onPathJump());break;case"ArrowUp":n.altKey&&t.onGoUp&&(n.preventDefault(),t.onGoUp());break}}mr(()=>window.addEventListener("keydown",r)),Ur(()=>window.removeEventListener("keydown",r))}const ap={tr:{"toolbar.new_folder":"Yeni Klasör","toolbar.upload":"Yükle","toolbar.search":"Ara","toolbar.search.placeholder":"Dosya adı…","toolbar.view.list":"Liste","toolbar.view.grid":"Izgara","toolbar.refresh":"Yenile","toolbar.go_up":"Üst Klasör","ctx.open":"Aç","ctx.preview":"Önizle","ctx.download":"İndir","ctx.convert":"Dönüştür","ctx.rename":"Yeniden Adlandır","ctx.delete":"Sil","ctx.delete_perm":"Kalıcı Olarak Sil","ctx.restore":"Geri Getir","ctx.share":"Paylaş","ctx.move":"Taşı","ctx.copy":"Kopyala","ctx.cut":"Kes","ctx.paste":"Yapıştır","ctx.info":"Bilgi","ctx.duplicate":"Kopyasını Oluştur","ctx.new_file":"Yeni Dosya","modal.delete.title":"Silinsin mi?","modal.delete.message":"{count} öğe çöpe atılacak.","modal.delete.confirm":"Çöpe At","modal.delete.cancel":"Vazgeç","modal.rename.title":"Yeniden Adlandır","modal.rename.save":"Kaydet","modal.rename.cancel":"Vazgeç","modal.newfolder.title":"Yeni Klasör","modal.newfolder.placeholder":"Klasör adı","modal.newfolder.create":"Oluştur","modal.newfolder.cancel":"Vazgeç","modal.share.title":"Paylaşım Linki","modal.share.pin":"PIN koruması","modal.share.expires":"Son kullanma","modal.share.max_downloads":"İndirme limiti","modal.share.create":"Paylaş","modal.share.cancel":"Vazgeç","modal.share.copy":"Kopyala","modal.share.url_copied":"Link kopyalandı","modal.share.pin_copied":"PIN kopyalandı","modal.share.cli_copied":"CLI komutu kopyalandı","upload.progress":"Yükleniyor","upload.done":"Tamamlandı","upload.error":"Hata","upload.aborted":"İptal edildi","upload.cancel":"İptal","empty.folder":"Bu klasör boş","empty.search":"Sonuç bulunamadı",loading:"Yükleniyor…","col.name":"Ad","col.size":"Boyut","col.modified":"Tarih","col.type":"Tür","unit.bytes":"B","unit.kb":"KB","unit.mb":"MB","unit.gb":"GB","unit.tb":"TB","breadcrumb.root":"Kök","breadcrumb.copy_path":"Yolu Kopyala","breadcrumb.go_to_path":"Yola Git","breadcrumb.path_placeholder":"fileman/foo/bar","ops.copy":"Kopyalanıyor","ops.move":"Taşınıyor","ops.delete":"Siliniyor","ops.queued":"sırada","ops.done":"tamamlandı","ops.error":"hata","node.trash":"Çöp Kutusu","viewer.open_in_new_tab":"Yeni Sekmede Aç","viewer.loading":"Yükleniyor…","viewer.failed_to_load":"Dosya yüklenemedi","viewer.peer_not_installed":"Bu dosya tipi için opsiyonel kütüphane kurulu değil. Peer dependency yükle veya İndir düğmesini kullan.","viewer.format_unsupported_3d":"Bu 3B format tarayıcı önizlemesinde desteklenmiyor (model-viewer yalnızca .glb / .gltf / .usdz okur). Lütfen indirip yerel bir araçta açın.","viewer.zoom_in":"Yakınlaştır","viewer.zoom_out":"Uzaklaştır","viewer.fit_width":"Sayfa genişliğine sığdır","viewer.next_page":"Sonraki sayfa","viewer.prev_page":"Önceki sayfa","viewer.page_n_of_m":"Sayfa {n} / {m}","viewer.tags":"Etiketler","viewer.layers":"Katmanlar","viewer.toc":"İçindekiler","viewer.font_smaller":"Yazıyı küçült","viewer.font_larger":"Yazıyı büyüt","viewer.search":"Ara","viewer.download":"İndir","viewer.save_annotations":"Açıklamaları kaydet","viewer.annotations_on":"Açıklamalar: açık","viewer.annotations_off":"Açıklamalar: kapalı","viewer.read_only":"Salt okunur","viewer.csv_first_row_header":"İlk satır başlık olsun","viewer.csv_filter":"Satır filtrele…","viewer.epub_prev":"Önceki","viewer.epub_next":"Sonraki","viewer.drawio.disabled":"diagrams.net editörü bu filex kurulumunda yapılandırılmamış — yönetici FILEX_DRAWIO_URL'yi ayarlamalı.","viewer.archive.entries":"{n} dosya","viewer.archive.empty":"Arşiv boş.","viewer.archive.error":"Arşiv okunamadı.","viewer.name":"Ad","viewer.size":"Boyut"},en:{"toolbar.new_folder":"New Folder","toolbar.upload":"Upload","toolbar.search":"Search","toolbar.search.placeholder":"File name…","toolbar.view.list":"List","toolbar.view.grid":"Grid","toolbar.refresh":"Refresh","toolbar.go_up":"Up one level","ctx.open":"Open","ctx.preview":"Preview","ctx.download":"Download","ctx.convert":"Convert","ctx.rename":"Rename","ctx.delete":"Delete","ctx.delete_perm":"Delete Permanently","ctx.restore":"Restore","ctx.share":"Share","ctx.move":"Move","ctx.copy":"Copy","ctx.cut":"Cut","ctx.paste":"Paste","ctx.info":"Info","ctx.duplicate":"Duplicate","ctx.new_file":"New File","modal.delete.title":"Delete?","modal.delete.message":"{count} item(s) will be moved to trash.","modal.delete.confirm":"Move to Trash","modal.delete.cancel":"Cancel","modal.rename.title":"Rename","modal.rename.save":"Save","modal.rename.cancel":"Cancel","modal.newfolder.title":"New Folder","modal.newfolder.placeholder":"Folder name","modal.newfolder.create":"Create","modal.newfolder.cancel":"Cancel","modal.share.title":"Share Link","modal.share.pin":"PIN protected","modal.share.expires":"Expires at","modal.share.max_downloads":"Download limit","modal.share.create":"Share","modal.share.cancel":"Cancel","modal.share.copy":"Copy","modal.share.url_copied":"Link copied","modal.share.pin_copied":"PIN copied","modal.share.cli_copied":"CLI command copied","upload.progress":"Uploading","upload.done":"Done","upload.error":"Error","upload.aborted":"Aborted","upload.cancel":"Cancel","empty.folder":"This folder is empty","empty.search":"No results",loading:"Loading…","col.name":"Name","col.size":"Size","col.modified":"Modified","col.type":"Type","unit.bytes":"B","unit.kb":"KB","unit.mb":"MB","unit.gb":"GB","unit.tb":"TB","breadcrumb.root":"Root","breadcrumb.copy_path":"Copy Path","breadcrumb.go_to_path":"Go To Path","breadcrumb.path_placeholder":"fileman/foo/bar","ops.copy":"Copying","ops.move":"Moving","ops.delete":"Deleting","ops.queued":"queued","ops.done":"done","ops.error":"error","node.trash":"Trash","viewer.open_in_new_tab":"Open in New Tab","viewer.loading":"Loading…","viewer.failed_to_load":"Failed to load file","viewer.peer_not_installed":"Optional viewer library is not installed. Install the peer dependency or use the download button.","viewer.format_unsupported_3d":"This 3D format is not supported in the browser preview (model-viewer only reads .glb / .gltf / .usdz). Please download and open with a local tool.","viewer.zoom_in":"Zoom in","viewer.zoom_out":"Zoom out","viewer.fit_width":"Fit width","viewer.next_page":"Next page","viewer.prev_page":"Previous page","viewer.page_n_of_m":"Page {n} of {m}","viewer.tags":"Tags","viewer.layers":"Layers","viewer.toc":"Contents","viewer.font_smaller":"Smaller text","viewer.font_larger":"Larger text","viewer.search":"Search","viewer.download":"Download","viewer.save_annotations":"Save annotations","viewer.annotations_on":"Annotations: on","viewer.annotations_off":"Annotations: off","viewer.read_only":"Read only","viewer.csv_first_row_header":"First row as header","viewer.csv_filter":"Filter rows…","viewer.epub_prev":"Previous","viewer.epub_next":"Next","viewer.drawio.disabled":"diagrams.net embed is not configured for this filex instance — operator must wire FILEX_DRAWIO_URL to enable the editor.","viewer.archive.entries":"{n} files","viewer.archive.empty":"Archive is empty.","viewer.archive.error":"Could not read archive contents.","viewer.name":"Name","viewer.size":"Size"}};function Mn(e){const t=gt(()=>{const i=typeof e=="function"?e():e.value;return ap[i]??ap.tr});function r(i,o={}){const l=t.value[i]??i;return Object.entries(o).reduce((s,[u,c])=>s.replaceAll(`{${u}}`,String(c)),l)}function n(i){if(i==null||i<=0)return"—";const o=[[1024**4,"unit.tb"],[1024**3,"unit.gb"],[1024**2,"unit.mb"],[1024,"unit.kb"],[1,"unit.bytes"]];for(const[l,s]of o)if(i>=l){const u=i/l;return`${u>=100?Math.round(u):u.toFixed(u>=10?1:2)} ${r(s)}`}return`${i} ${r("unit.bytes")}`}function a(i){if(i.basename===".trash")return r("node.trash");const o=i.basename.match(/^\d{8}-\d{6}-[A-Za-z0-9]+__(.+)$/);return o?o[1]:i.basename}return{t:r,formatSize:n,nodeDisplayName:a}}const R6=2e3,L6=8e3;function ip(e){const t=(...l)=>{for(const s of l)if(typeof s=="number")return s;return 0},r=(...l)=>{for(const s of l)if(typeof s=="string"&&s!=="")return s;return null},n=String(e.status??"pending"),a=n==="ok"||n==="done"?"done":n==="failed"||n==="partial"||n==="error"?"error":n==="running"?"running":"pending",i=Array.isArray(e.sources)?e.sources:[],o=r(e.op_type,e.kind)??"delete";return{id:t(e.id),op_type:o==="copy"||o==="move"?o:"delete",status:a,progress_total:t(e.progress_total,e.total,i.length),progress_done:t(e.progress_done,e.done),target_path:r(e.target_path,e.dest),source_dir:r(e.source_dir),source_count:t(e.source_count,i.length),error_message:r(e.error_message,e.error),started_at:r(e.started_at),finished_at:r(e.finished_at),created_at:r(e.created_at)}}function B6(e,t,r={}){const n=fe([]),a=new Set,i=new Map;let o=!1;const l=gt(()=>n.value.some(b=>b.status==="pending"||b.status==="running"));let s;function u(){s||t.endpoints.opsList&&(s=setInterval(()=>{f()},R6),f())}function c(){s&&(clearInterval(s),s=void 0)}async function f(){var b;if(t.endpoints.opsList)try{const x=((await t.jsonFetch(t.endpoints.opsList)).ops||[]).map(ip);for(const _ of x)(_.status==="done"||_.status==="error")&&!a.has(_.id)&&(a.add(_.id),i.set(_.id,Date.now()),o&&((b=r.onSettled)==null||b.call(r,_)));const g=new Set(n.value.map(_=>_.id)),m=x.filter(_=>_.status==="pending"||_.status==="running"?!0:o?g.has(_.id):!1),y=new Set(m.map(_=>_.id)),v=n.value.filter(_=>!y.has(_.id)),k=[...m,...v];o=!0;const C=Date.now(),A=k.filter(_=>{if(_.status==="pending"||_.status==="running")return!0;const E=i.get(_.id);return E!==void 0&&C-E<L6});n.value=A,!l.value&&A.length===0&&c()}catch(p){console.warn("[usePendingOps] poll failed:",p)}}function d(b){const p=ip(b);n.value.some(g=>g.id===p.id)||(n.value=[p,...n.value]),u()}function h(b){n.value=n.value.filter(p=>p.id!==b),i.delete(b)}return Ur(()=>{c()}),{ops:n,hasActive:l,register:d,dismiss:h,poll:f,startPolling:u,stopPolling:c}}let Vs=null,qs=null,Ws=null,pc=null;function vc(){Vs||(Vs=import("monaco-editor").then(e=>(Ws=e.default??e,Ws)).catch(()=>(Ws=null,null))),qs||(qs=import("highlight.js").then(e=>(pc=e.default??e,pc)).catch(()=>(pc=null,null)))}async function op(){return Vs||vc(),Vs}async function lp(){return qs||vc(),qs}function N6(){return Ws}const $6={class:"fe-toolbar"},U6={class:"fe-toolbar__primary"},H6=["title","aria-label"],j6=["title"],G6={class:"fe-btn__label"},V6=["disabled","title","onClick"],q6={class:"fe-icon"},W6={class:"fe-btn__label"},K6=["title"],X6={class:"fe-btn__label"},Y6={class:"fe-toolbar__search-group"},Z6={class:"fe-search"},J6=["placeholder","value"],Q6=["title"],e8=["title"],t8={class:"fe-toolbar__view",role:"tablist","aria-label":"View"},r8=["aria-selected","title"],n8=["aria-selected","title"],a8=Wt({__name:"Toolbar",props:{viewMode:{},searchQuery:{},trashActive:{type:Boolean},actions:{},selectionMode:{},pasteEnabled:{type:Boolean},convertEnabled:{type:Boolean},canGoUp:{type:Boolean},atVirtualRoot:{type:Boolean},canWrite:{type:Boolean},locale:{}},emits:["update:viewMode","update:searchQuery","new-folder","upload","refresh","go-up","action","open-recents"],setup(e,{expose:t,emit:r}){const n=e,a=r,{t:i}=Mn(()=>n.locale),o=fe(null),l=fe(n.searchQuery);er(()=>n.searchQuery,b=>{l.value=b});let s;function u(b){const p=b.target.value;l.value=p,s&&clearTimeout(s),s=setTimeout(()=>a("update:searchQuery",p),200)}function c(){var b,p;(b=o.value)==null||b.focus(),(p=o.value)==null||p.select()}t({focusSearch:c});const f=gt(()=>n.selectionMode??"none"),d=gt(()=>n.actions.filter(b=>!b.divider&&!b.hidden));function h(b){a("action",b)}return(b,p)=>(J(),ae("div",$6,[N("div",U6,[e.canGoUp?(J(),ae("button",{key:0,type:"button",class:"fe-btn fe-btn--icon-only",title:Qe(i)("toolbar.go_up"),"aria-label":Qe(i)("toolbar.go_up"),onClick:p[0]||(p[0]=x=>a("go-up"))},[...p[7]||(p[7]=[N("span",{class:"fe-icon"},"↑",-1)])],8,H6)):rt("",!0),f.value==="none"&&!e.trashActive&&!e.atVirtualRoot&&e.canWrite!==!1?(J(),ae("button",{key:1,type:"button",class:"fe-btn fe-btn--primary",title:Qe(i)("toolbar.new_folder"),onClick:p[1]||(p[1]=x=>a("new-folder"))},[p[8]||(p[8]=N("span",{class:"fe-icon"},"📁",-1)),N("span",G6,se(Qe(i)("toolbar.new_folder")),1)],8,j6)):rt("",!0),(J(!0),ae(xt,null,ir(d.value,x=>(J(),ae("button",{key:x.key,type:"button",class:Xt(["fe-btn",{"fe-btn--danger":x.danger,"is-disabled":x.disabled}]),disabled:x.disabled,title:x.label,onClick:g=>h(x.key)},[N("span",q6,se(x.icon),1),N("span",W6,se(x.label),1)],10,V6))),128)),e.pasteEnabled&&f.value==="none"&&!e.trashActive&&!e.atVirtualRoot&&e.canWrite!==!1?(J(),ae("button",{key:2,type:"button",class:"fe-btn",title:Qe(i)("ctx.paste"),onClick:p[2]||(p[2]=x=>h("paste"))},[p[9]||(p[9]=N("span",{class:"fe-icon"},"📋",-1)),N("span",X6,se(Qe(i)("ctx.paste")),1)],8,K6)):rt("",!0)]),p[14]||(p[14]=N("div",{class:"fe-toolbar__spacer"},null,-1)),N("div",Y6,[N("div",Z6,[N("input",{ref_key:"searchEl",ref:o,type:"search",class:"fe-search__input",placeholder:Qe(i)("toolbar.search.placeholder"),value:l.value,"aria-label":"Search",onInput:u},null,40,J6)]),!e.atVirtualRoot&&e.canWrite!==!1?(J(),ae("button",{key:0,type:"button",class:"fe-btn fe-btn--icon-only",title:Qe(i)("toolbar.upload"),onClick:p[3]||(p[3]=x=>a("upload"))},[...p[10]||(p[10]=[N("span",{class:"fe-icon"},"⬆",-1)])],8,Q6)):rt("",!0),N("button",{type:"button",class:"fe-btn fe-btn--icon-only",title:Qe(i)("toolbar.refresh"),onClick:p[4]||(p[4]=x=>a("refresh"))},[...p[11]||(p[11]=[N("span",{class:"fe-icon"},"↻",-1)])],8,e8)]),N("div",t8,[N("button",{type:"button",class:Xt(["fe-btn fe-btn--icon-only",{"is-active":e.viewMode==="list"}]),role:"tab","aria-selected":e.viewMode==="list",title:Qe(i)("toolbar.view.list"),onClick:p[5]||(p[5]=x=>a("update:viewMode","list"))},[...p[12]||(p[12]=[N("span",{class:"fe-icon"},"☰",-1)])],10,r8),N("button",{type:"button",class:Xt(["fe-btn fe-btn--icon-only",{"is-active":e.viewMode==="grid"}]),role:"tab","aria-selected":e.viewMode==="grid",title:Qe(i)("toolbar.view.grid"),onClick:p[6]||(p[6]=x=>a("update:viewMode","grid"))},[...p[13]||(p[13]=[N("span",{class:"fe-icon"},"▦",-1)])],10,n8)])]))}}),i8=["onClick"],o8=Wt({__name:"TagPicker",props:{nodeId:{},apiBase:{},authHeaders:{type:Function},palette:{}},emits:["change","error"],setup(e,{emit:t}){const r=e,n=t,a=fe([]),i=fe(!1),o=fe(!1),l=fe(""),s=gt(()=>r.palette??["#ef4444","#f59e0b","#10b981","#3b82f6","#8b5cf6","#ec4899","#14b8a6","#f97316"]);function u(p){let x=0;for(let m=0;m<p.length;m++)x=x*31+p.charCodeAt(m)|0;const g=s.value;return g[Math.abs(x)%g.length]}async function c(p={}){return{...await(r.authHeaders??(()=>({})))(),...p}}async function f(){i.value=!0;try{const p=r.apiBase??"",x=await fetch(`${p}/api/files/manager/tags?node_id=${r.nodeId}`,{headers:await c(),credentials:"include"});if(x.ok){const g=await x.json();a.value=Array.isArray(g.tags)?g.tags:[]}}catch(p){n("error",p instanceof Error?p.message:String(p))}finally{i.value=!1}}async function d(p){const x=[...a.value];a.value=p;try{const g=r.apiBase??"",m=await fetch(`${g}/api/files/manager/tags`,{method:"POST",headers:await c({"Content-Type":"application/json"}),credentials:"include",body:JSON.stringify({node_id:r.nodeId,tags:p})});if(!m.ok)throw new Error(`tag save failed: ${m.status}`);n("change",p)}catch(g){a.value=x,n("error",g instanceof Error?g.message:String(g))}}function h(){const p=l.value.trim();if(!p||a.value.includes(p)){l.value="",o.value=!1;return}d([...a.value,p]),l.value="",o.value=!1}function b(p){d(a.value.filter(x=>x!==p))}return mr(f),er(()=>r.nodeId,f),(p,x)=>(J(),ae("div",{class:Xt(["filex-tag-picker",{"is-loading":i.value}])},[(J(!0),ae(xt,null,ir(a.value,g=>(J(),ae("span",{key:g,class:"filex-tag",style:Xa({"--filex-tag-color":u(g)})},[Zr(se(g)+" ",1),N("button",{class:"filex-tag-x",type:"button",onClick:m=>b(g),"aria-label":"Remove tag"},"×",8,i8)],4))),128)),o.value?(J(),ae("form",{key:0,class:"filex-tag-add",onSubmit:pr(h,["prevent"])},[tr(N("input",{"onUpdate:modelValue":x[0]||(x[0]=g=>l.value=g),autofocus:"",placeholder:"tag name",onBlur:h,onKeydown:x[1]||(x[1]=ca(g=>{o.value=!1,l.value=""},["escape"]))},null,544),[[on,l.value]])],32)):(J(),ae("button",{key:1,class:"filex-tag-add-btn",type:"button",onClick:x[2]||(x[2]=g=>o.value=!0)},"+ Add tag"))],2))}}),ln=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},l8=ln(o8,[["__scopeId","data-v-0cce6f92"]]),s8={class:"filex-recent"},u8=["disabled"],c8={key:0},f8=["onClick"],d8={class:"filex-recent-name"},h8={class:"filex-recent-meta"},p8={key:1,class:"filex-recent-empty"},v8={key:2,class:"filex-recent-empty"},m8=ln(Wt({__name:"RecentlyOpened",props:{apiBase:{},authHeaders:{type:Function},limit:{},refreshKey:{}},emits:["open","error"],setup(e,{emit:t}){const r=e,n=t,a=fe([]),i=fe(!1);async function o(){i.value=!0;try{const s=await(r.authHeaders??(()=>({})))(),u=r.apiBase??"",c=r.limit??20,f=await fetch(`${u}/api/files/manager/recent?limit=${c}`,{headers:s,credentials:"include"});if(f.ok){const d=await f.json();a.value=Array.isArray(d.entries)?d.entries:Array.isArray(d)?d:[]}}catch(s){n("error",s instanceof Error?s.message:String(s))}finally{i.value=!1}}function l(s){if(!s)return"";const u=new Date(s).getTime();if(Number.isNaN(u))return"";const c=Date.now()-u;return c<6e4?"just now":c<36e5?`${Math.floor(c/6e4)}m ago`:c<864e5?`${Math.floor(c/36e5)}h ago`:`${Math.floor(c/864e5)}d ago`}return mr(o),er(()=>r.refreshKey,o),(s,u)=>(J(),ae("div",s8,[N("header",null,[u[0]||(u[0]=N("h3",null,"Recently opened",-1)),N("button",{class:"filex-recent-refresh",type:"button",onClick:o,disabled:i.value}," ↻ ",8,u8)]),a.value.length?(J(),ae("ul",c8,[(J(!0),ae(xt,null,ir(a.value,c=>(J(),ae("li",{key:c.id},[N("button",{type:"button",onClick:f=>n("open",c),class:"filex-recent-item"},[N("span",d8,se(c.name),1),N("span",h8,se(l(c.last_opened)),1)],8,f8)]))),128))])):i.value?(J(),ae("p",v8,"Loading…")):(J(),ae("p",p8,"Nothing here yet."))]))}}),[["__scopeId","data-v-b6b9b1f3"]]),g8={class:"fe-breadcrumb","aria-label":"Breadcrumb"},b8=["aria-current","onClick","onContextmenu","onDrop"],y8={key:0,class:"fe-breadcrumb__sep","aria-hidden":"true"},x8=["title","aria-label"],_8=["placeholder","onKeydown"],w8=Wt({__name:"Breadcrumb",props:{dirname:{},adapter:{},rootLabel:{},locale:{},multiStorageRoot:{type:Boolean},rootPath:{}},emits:["navigate","copy-path","crumb-context","crumb-drop"],setup(e,{emit:t}){const r=e,n=gt(()=>{if(!r.rootPath)return"";const m=r.rootPath,y=m.indexOf("://");return(y>=0?m.slice(y+3):m).replace(/^\/+|\/+$/g,"")}),a=gt(()=>{const m=n.value;if(!m)return r.rootLabel||r.adapter;const y=m.split("/");return y[y.length-1]||r.rootLabel||r.adapter}),{t:i}=Mn(()=>r.locale),o=t,l=gt(()=>{const m=`${r.adapter}://`,y=r.dirname.startsWith(m)?r.dirname.slice(m.length):r.dirname,v=y.split("/").filter(Boolean),k=[];if(r.rootPath){const A=n.value,_=y.replace(/^\/+|\/+$/g,""),E=A&&(_===A||_.startsWith(A+"/"))?_.slice(A.length).replace(/^\/+/,""):"";k.push({label:a.value,adapterPath:r.rootPath});let M=A;for(const z of E.split("/").filter(Boolean))M=M?`${M}/${z}`:z,k.push({label:z===".trash"?i("node.trash"):z,adapterPath:`${m}${M}`});return k}r.multiStorageRoot?(k.push({label:"/",adapterPath:""}),r.adapter&&k.push({label:r.rootLabel||r.adapter,adapterPath:m})):k.push({label:r.rootLabel||r.adapter,adapterPath:m});let C="";for(const A of v){C=C?`${C}/${A}`:A;const _=A===".trash"?i("node.trash"):A;k.push({label:_,adapterPath:`${m}${C}`})}return k});function s(m){o("navigate",m.adapterPath)}function u(m,y){m.preventDefault(),m.stopPropagation(),o("crumb-context",{x:m.clientX,y:m.clientY,adapterPath:y.adapterPath,label:y.label})}function c(m){var y;(y=m.dataTransfer)!=null&&y.types.includes("application/x-brf-files")&&(m.preventDefault(),m.stopPropagation(),m.dataTransfer&&(m.dataTransfer.dropEffect="move"))}function f(m,y){var v;(v=m.dataTransfer)!=null&&v.types.includes("application/x-brf-files")&&(m.preventDefault(),m.stopPropagation(),o("crumb-drop",y.adapterPath,m))}const d=fe(!1),h=fe(""),b=fe(null);function p(){const m=`${r.adapter}://`,y=r.dirname.startsWith(m)?r.dirname.slice(m.length):r.dirname;if(r.rootPath){const v=n.value,k=y.replace(/^\/+|\/+$/g,""),C=v&&(k===v||k.startsWith(v+"/"))?k.slice(v.length).replace(/^\/+/,""):"";h.value=C?`/${C}`:"/",d.value=!0,Ea(()=>{var A,_;(A=b.value)==null||A.focus(),(_=b.value)==null||_.select()});return}if(r.multiStorageRoot)if(!r.adapter)h.value="/";else{const v=y.replace(/^\/+|\/+$/g,"");h.value=v?`/${r.adapter}/${v}`:`/${r.adapter}`}else h.value=y;d.value=!0,Ea(()=>{var v,k;(v=b.value)==null||v.focus(),(k=b.value)==null||k.select()})}function x(){const m=h.value.trim();if(d.value=!1,r.rootPath){const v=m.replace(/^\/+|\/+$/g,""),k=n.value,C=v?k?`${k}/${v}`:v:k;o("navigate",C?`${r.adapter}://${C}`:`${r.adapter}://`);return}if(r.multiStorageRoot){const v=m.replace(/^\/+|\/+$/g,"");if(!v){o("navigate","");return}const k=v.indexOf("/"),C=k===-1?v:v.slice(0,k),A=k===-1?"":v.slice(k+1);o("navigate",A?`${C}://${A}`:`${C}://`);return}const y=m.replace(/^\/+|\/+$/g,"");y&&o("navigate",`${r.adapter}://${y}`)}function g(){d.value=!1}return(m,y)=>(J(),ae("nav",g8,[d.value?tr((J(),ae("input",{key:1,ref_key:"pathInput",ref:b,"onUpdate:modelValue":y[0]||(y[0]=v=>h.value=v),type:"text",class:"fe-breadcrumb__input",placeholder:Qe(i)("breadcrumb.path_placeholder"),spellcheck:"false",autocomplete:"off",onKeydown:[ca(pr(x,["prevent"]),["enter"]),ca(pr(g,["prevent"]),["escape"])],onBlur:g},null,40,_8)),[[on,h.value]]):(J(),ae(xt,{key:0},[(J(!0),ae(xt,null,ir(l.value,(v,k)=>(J(),ae("button",{key:v.adapterPath,class:Xt(["fe-breadcrumb__crumb",{"is-last":k===l.value.length-1}]),type:"button","aria-current":k===l.value.length-1?"page":void 0,onClick:C=>s(v),onContextmenu:C=>u(C,v),onDragover:c,onDrop:C=>f(C,v)},[N("span",null,se(v.label),1),k<l.value.length-1?(J(),ae("span",y8,"›")):rt("",!0)],42,b8))),128)),N("button",{type:"button",class:"fe-breadcrumb__edit",title:Qe(i)("breadcrumb.go_to_path"),"aria-label":Qe(i)("breadcrumb.go_to_path"),onClick:p},"✏",8,x8)],64))]))}}),k8=["aria-pressed","title"],S8={viewBox:"0 0 24 24",width:"16",height:"16","aria-hidden":"true"},C8=["fill"],A8={key:0,class:"filex-star-label"},E8=ln(Wt({__name:"StarButton",props:{starred:{type:Boolean},nodeId:{},apiBase:{},authHeaders:{type:Function},compact:{type:Boolean}},emits:["change","error"],setup(e,{emit:t}){const r=e,n=t,a=fe(r.starred);er(()=>r.starred,o=>{a.value=o});async function i(){const o=!a.value;a.value=o;try{const l={"Content-Type":"application/json",...await(r.authHeaders??(()=>({})))()},s=r.apiBase??"",u=await fetch(`${s}/api/files/manager/star`,{method:"POST",headers:l,credentials:"include",body:JSON.stringify({node_id:r.nodeId,starred:o})});if(!u.ok)throw new Error(`star toggle failed: ${u.status}`);n("change",o)}catch(l){a.value=!o,n("error",l instanceof Error?l.message:String(l))}}return(o,l)=>(J(),ae("button",{type:"button",class:Xt(["filex-star-btn",{"is-starred":a.value,"is-compact":e.compact}]),"aria-pressed":a.value,title:a.value?"Unstar":"Star",onClick:pr(i,["stop"])},[(J(),ae("svg",S8,[N("path",{fill:a.value?"currentColor":"none",stroke:"currentColor","stroke-width":"2","stroke-linejoin":"round",d:"M12 2.5l3.09 6.26 6.91 1-5 4.87 1.18 6.87L12 18.27l-6.18 3.23L7 14.63 2 9.76l6.91-1z"},null,8,C8)])),e.compact?rt("",!0):(J(),ae("span",A8,se(a.value?"Starred":"Star"),1))],10,k8))}}),[["__scopeId","data-v-d5f804ca"]]),T8={class:"fe-list__head",role:"row"},M8={class:"fe-list__col fe-list__col--name",role:"columnheader"},D8={class:"fe-list__col fe-list__col--size",role:"columnheader"},I8={class:"fe-list__col fe-list__col--mod",role:"columnheader"},z8={class:"fe-list__body",role:"rowgroup"},F8=["onClick","onDblclick","onContextmenu","onDragstart","onDragover","onDrop","onTouchstartPassive"],O8={class:"fe-list__col fe-list__col--name"},P8={class:"fe-list__icon","aria-hidden":"true"},R8={class:"fe-list__name-wrap"},L8=["title"],B8=["title"],N8={class:"fe-list__col fe-list__col--size"},$8={class:"fe-list__col fe-list__col--mod"},U8={key:0,class:"fe-list__empty"},H8=Wt({__name:"ListView",props:{files:{},selected:{},clipped:{},showParentPath:{type:Boolean},locale:{},loading:{type:Boolean},starredIds:{},apiBase:{},authHeaders:{type:Function}},emits:["click-row","dbl-row","context-row","item-drag-start","item-drop-into","star-change"],setup(e,{emit:t}){const r=e,n=t,{t:a,formatSize:i,nodeDisplayName:o}=Mn(()=>r.locale);function l(C){return r.selected.has(C.path)}function s(C,A){n("click-row",C,{ctrl:A.ctrlKey||A.metaKey,shift:A.shiftKey})}function u(C){n("dbl-row",C)}function c(C,A){A.preventDefault(),A.stopPropagation(),n("context-row",C,A)}function f(C,A){n("item-drag-start",C,A)}function d(C,A){var _;C.type==="dir"&&(_=A.dataTransfer)!=null&&_.types.includes("application/x-brf-files")&&(A.preventDefault(),A.stopPropagation(),A.dataTransfer&&(A.dataTransfer.dropEffect="move"))}function h(C,A){var _;C.type==="dir"&&(_=A.dataTransfer)!=null&&_.types.includes("application/x-brf-files")&&(A.preventDefault(),A.stopPropagation(),n("item-drop-into",C,A))}let b,p=null;function x(C,A){p=C,b&&clearTimeout(b),b=setTimeout(()=>{if(p){const _=A.touches[0];n("context-row",p,{clientX:_.clientX,clientY:_.clientY,preventDefault:()=>{}})}},500)}function g(){b&&clearTimeout(b),p=null}function m(C){if(C.mime_type==="inode/storage")return"💾";if(C.type==="dir")return"📁";const A=(C.extension||"").toLowerCase();return["jpg","jpeg","png","webp","gif","bmp","avif","heic","svg"].includes(A)?"🖼":["mp4","webm","mov","mkv","avi","ogv","m4v"].includes(A)?"🎞":["mp3","wav","flac","ogg","m4a","aac","opus"].includes(A)?"🎵":A==="pdf"?"📕":["doc","docx","odt","rtf"].includes(A)?"📄":["xls","xlsx","ods","csv"].includes(A)?"📊":["ppt","pptx","odp"].includes(A)?"📽":["zip","tar","gz","bz2","7z","rar"].includes(A)?"🗜":["txt","md","log","json","yml","yaml","xml"].includes(A)?"📝":"📎"}function y(C){return C?new Date(C*(C<1e12?1e3:1)).toLocaleString():"—"}function v(C){const A=C.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""),_=A.lastIndexOf("/");return _===-1?"":A.slice(0,_)}const k=gt(()=>r.files);return(C,A)=>(J(),ae("div",{class:Xt(["fe-list",{"is-loading":e.loading,"has-star-col":!!e.apiBase||e.apiBase===""}])},[N("div",T8,[A[1]||(A[1]=N("div",{class:"fe-list__col fe-list__col--star",role:"columnheader","aria-label":"Star"},null,-1)),N("div",M8,se(Qe(a)("col.name")),1),N("div",D8,se(Qe(a)("col.size")),1),N("div",I8,se(Qe(a)("col.modified")),1)]),N("div",z8,[(J(!0),ae(xt,null,ir(k.value,_=>{var E,M;return J(),ae("div",{key:_.path,class:Xt(["fe-list__row",{"is-selected":l(_),"is-dir":_.type==="dir","is-trash":_.trashed,"is-clipped":(E=e.clipped)==null?void 0:E.has(_.path)}]),role:"row",tabindex:"0",draggable:"true",onClick:z=>s(_,z),onDblclick:z=>u(_),onContextmenu:z=>c(_,z),onDragstart:z=>f(_,z),onDragover:z=>d(_,z),onDrop:z=>h(_,z),onTouchstartPassive:z=>x(_,z),onTouchend:g,onTouchmove:g},[N("div",{class:"fe-list__col fe-list__col--star",onClick:A[0]||(A[0]=pr(()=>{},["stop"]))},[typeof _.id=="number"&&_.type==="file"?(J(),kr(E8,{key:0,starred:!!((M=e.starredIds)!=null&&M.has(_.id)),"node-id":_.id,"api-base":e.apiBase,"auth-headers":e.authHeaders,compact:"",onChange:z=>n("star-change",_,z)},null,8,["starred","node-id","api-base","auth-headers","onChange"])):rt("",!0)]),N("div",O8,[N("span",P8,se(m(_)),1),N("div",R8,[N("span",{class:"fe-list__name",title:_.basename},se(Qe(o)(_)),9,L8),e.showParentPath?(J(),ae("span",{key:0,class:"fe-list__parent",title:v(_.path)},se(v(_.path)||"—"),9,B8)):rt("",!0)])]),N("div",N8,se(_.type==="dir"?"—":Qe(i)(_.size)),1),N("div",$8,se(y(_.last_modified)),1)],42,F8)}),128)),!e.loading&&k.value.length===0?(J(),ae("div",U8,se(Qe(a)("empty.folder")),1)):rt("",!0)])],2))}}),j8=["onClick","onDblclick","onContextmenu","onDragstart","onDragover","onDrop","onTouchstartPassive"],G8={class:"fe-grid__thumb"},V8=["src","alt"],q8={key:1,class:"fe-grid__icon"},W8=["title"],K8=["title"],X8={class:"fe-grid__meta"},Y8={key:0,class:"fe-grid__empty"},Z8=Wt({__name:"GridView",props:{files:{},selected:{},clipped:{},showParentPath:{type:Boolean},locale:{},loading:{type:Boolean}},emits:["click-card","dbl-card","context-card","item-drag-start","item-drop-into"],setup(e,{emit:t}){const r=e,n=t,{t:a,formatSize:i,nodeDisplayName:o}=Mn(()=>r.locale);function l(v){return r.selected.has(v.path)}function s(v,k){n("click-card",v,{ctrl:k.ctrlKey||k.metaKey,shift:k.shiftKey})}function u(v){n("dbl-card",v)}function c(v,k){k.preventDefault(),k.stopPropagation(),n("context-card",v,k)}function f(v,k){n("item-drag-start",v,k)}function d(v,k){var C;v.type==="dir"&&(C=k.dataTransfer)!=null&&C.types.includes("application/x-brf-files")&&(k.preventDefault(),k.stopPropagation(),k.dataTransfer&&(k.dataTransfer.dropEffect="move"))}function h(v,k){var C;v.type==="dir"&&(C=k.dataTransfer)!=null&&C.types.includes("application/x-brf-files")&&(k.preventDefault(),k.stopPropagation(),n("item-drop-into",v,k))}let b,p=null;function x(v,k){p=v,b&&clearTimeout(b),b=setTimeout(()=>{if(p){const C=k.touches[0];n("context-card",p,{clientX:C.clientX,clientY:C.clientY,preventDefault:()=>{}})}},500)}function g(){b&&clearTimeout(b),p=null}function m(v){const k=v.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""),C=k.lastIndexOf("/");return C===-1?"":k.slice(0,C)}function y(v){if(v.mime_type==="inode/storage")return"💾";if(v.type==="dir")return"📁";const k=(v.extension||"").toLowerCase();return["jpg","jpeg","png","webp","gif","bmp","svg"].includes(k)?"🖼":["mp4","webm","mov","mkv"].includes(k)?"🎞":["mp3","wav","flac","ogg"].includes(k)?"🎵":k==="pdf"?"📕":["doc","docx","odt"].includes(k)?"📄":["xls","xlsx","csv"].includes(k)?"📊":["ppt","pptx"].includes(k)?"📽":["zip","tar","gz","7z"].includes(k)?"🗜":"📎"}return(v,k)=>(J(),ae("div",{class:Xt(["fe-grid",{"is-loading":e.loading}])},[(J(!0),ae(xt,null,ir(e.files,C=>{var A;return J(),ae("div",{key:C.path,class:Xt(["fe-grid__card",{"is-selected":l(C),"is-dir":C.type==="dir","is-trash":C.trashed,"is-clipped":(A=e.clipped)==null?void 0:A.has(C.path)}]),tabindex:"0",draggable:"true",onClick:_=>s(C,_),onDblclick:_=>u(C),onContextmenu:_=>c(C,_),onDragstart:_=>f(C,_),onDragover:_=>d(C,_),onDrop:_=>h(C,_),onTouchstartPassive:_=>x(C,_),onTouchend:g,onTouchmove:g},[N("div",G8,[C.thumb_url?(J(),ae("img",{key:0,src:C.thumb_url,alt:C.basename,loading:"lazy",draggable:"false"},null,8,V8)):(J(),ae("span",q8,se(y(C)),1))]),N("div",{class:"fe-grid__label",title:C.basename},se(Qe(o)(C)),9,W8),e.showParentPath?(J(),ae("div",{key:0,class:"fe-grid__parent",title:m(C.path)},se(m(C.path)||"—"),9,K8)):rt("",!0),N("div",X8,se(C.type==="dir"?"—":Qe(i)(C.size)),1)],42,j8)}),128)),!e.loading&&e.files.length===0?(J(),ae("div",Y8,se(Qe(a)("empty.folder")),1)):rt("",!0)],2))}}),J8=["data-prefers-dark"],Q8={key:0,class:"fe-ctx__sep"},e7=["disabled","onClick"],t7={key:0,class:"fe-ctx__icon","aria-hidden":"true"},r7={class:"fe-ctx__label"},n7=Wt({__name:"ContextMenu",props:{locale:{},actions:{},theme:{}},emits:["select"],setup(e,{expose:t,emit:r}){const n=e,a=r,i=fe(!1),o=fe(0),l=fe(0),s=fe([]),u=fe(null);async function c(v,k){i.value=!0,o.value=v.clientX,l.value=v.clientY,s.value=k,await Ea(),f()}function f(){const v=u.value;if(!v||typeof window>"u")return;const k=v.getBoundingClientRect(),C=8,A=window.innerWidth,_=window.innerHeight;l.value+k.height>_-C&&(l.value=Math.max(C,_-k.height-C)),o.value+k.width>A-C&&(o.value=Math.max(C,A-k.width-C))}function d(){i.value=!1}function h(v){v.disabled||(a("select",v,s.value),d())}function b(v){v.key==="Escape"&&d()}const p=gt(()=>n.actions.filter(v=>!v.hidden)),x=fe(!1);let g;function m(v){x.value=!!(v&&"matches"in v&&v.matches)}mr(()=>{var v;typeof window>"u"||(g=window.matchMedia("(prefers-color-scheme: dark)"),m(g),(v=g.addEventListener)==null||v.call(g,"change",m))}),Ur(()=>{var v;(v=g==null?void 0:g.removeEventListener)==null||v.call(g,"change",m)});const y=gt(()=>`fe-ctx-backdrop--theme-${n.theme||"auto"}`);return t({show:c,hide:d}),(v,k)=>(J(),kr(W5,{to:"body"},[Bt(uo,{name:"fe-ctx"},{default:Tr(()=>[i.value?(J(),ae("div",{key:0,class:Xt(["fe-ctx-backdrop",y.value]),"data-prefers-dark":x.value?"1":"0",onClick:d,onContextmenu:pr(d,["prevent"]),onKeydown:b},[N("div",{ref_key:"menuEl",ref:u,class:"fe-ctx",role:"menu",style:Xa({top:l.value+"px",left:o.value+"px"}),onClick:k[0]||(k[0]=pr(()=>{},["stop"]))},[(J(!0),ae(xt,null,ir(p.value,(C,A)=>(J(),ae(xt,{key:C.key||A},[C.divider?(J(),ae("div",Q8)):(J(),ae("button",{key:1,type:"button",class:Xt(["fe-ctx__item",{"is-danger":C.danger,"is-disabled":C.disabled}]),disabled:C.disabled,role:"menuitem",onClick:_=>h(C)},[C.icon?(J(),ae("span",t7,se(C.icon),1)):rt("",!0),N("span",r7,se(C.label),1)],10,e7))],64))),128))],4)],42,J8)):rt("",!0)]),_:1})]))}}),a7={key:0,class:"fe-upload"},i7={class:"fe-upload__header"},o7={class:"fe-upload__count"},l7={class:"fe-upload__list"},s7=["title"],u7=["aria-valuenow"],c7={class:"fe-upload__meta"},f7=["onClick"],d7=["onClick"],h7=Wt({__name:"UploadProgress",props:{jobs:{},locale:{}},emits:["cancel","dismiss"],setup(e,{emit:t}){const r=e,n=t,{t:a,formatSize:i}=Mn(()=>r.locale),o=gt(()=>r.jobs);function l(s){switch(s.status){case"done":return a("upload.done");case"error":return`${a("upload.error")}: ${s.error??""}`;case"aborted":return a("upload.aborted");default:return a("upload.progress")}}return(s,u)=>(J(),kr(uo,{name:"fe-upload-slide"},{default:Tr(()=>[o.value.length>0?(J(),ae("div",a7,[N("div",i7,[N("strong",null,se(Qe(a)("upload.progress")),1),N("span",o7,se(o.value.length),1)]),N("ul",l7,[(J(!0),ae(xt,null,ir(o.value,c=>(J(),ae("li",{key:c.id,class:Xt(["fe-upload__item",`is-${c.status}`])},[N("div",{class:"fe-upload__name",title:c.file.name},se(c.file.name),9,s7),N("div",{class:"fe-upload__bar","aria-valuenow":c.percent,role:"progressbar"},[N("div",{class:"fe-upload__bar-fill",style:Xa({width:c.percent+"%"})},null,4)],8,u7),N("div",c7,[N("span",null,se(l(c)),1),N("span",null,se(Qe(i)(c.uploadedBytes))+" / "+se(Qe(i)(c.totalBytes)),1),c.status==="uploading"||c.status==="initializing"?(J(),ae("button",{key:0,type:"button",class:"fe-upload__cancel",onClick:f=>n("cancel",c)},se(Qe(a)("upload.cancel")),9,f7)):(J(),ae("button",{key:1,type:"button",class:"fe-upload__cancel",onClick:f=>n("dismiss",c)},"×",8,d7))])],2))),128))])])):rt("",!0)]),_:1}))}}),p7={class:"fe-ops__row"},v7=["title"],m7=["onClick"],g7={class:"fe-ops__bar"},b7={key:0,class:"fe-ops__error"},y7=Wt({__name:"PendingOpsTray",props:{ops:{},locale:{}},emits:["dismiss"],setup(e,{emit:t}){const r=e,n=t,{t:a}=Mn(()=>r.locale),i=gt(()=>[...r.ops].sort((u,c)=>c.id-u.id));function o(u){return u.status==="done"?100:u.progress_total<=0?0:Math.min(100,Math.round(u.progress_done/u.progress_total*100))}function l(u){return u.status==="done"?"is-done":u.status==="error"?"is-error":""}function s(u){const c=u.op_type==="copy"?a("ops.copy"):u.op_type==="move"?a("ops.move"):a("ops.delete");return u.status==="pending"?`${c} (${a("ops.queued")})`:u.status==="running"?`${c} ${u.progress_done}/${u.progress_total}`:u.status==="done"?`${c} ${a("ops.done")} (${u.progress_total})`:u.status==="error"?`${c} ${a("ops.error")}`:c}return(u,c)=>i.value.length>0?(J(),kr(m6,{key:0,name:"fe-ops-slide",tag:"div",class:"fe-ops",role:"status","aria-live":"polite"},{default:Tr(()=>[(J(!0),ae(xt,null,ir(i.value,f=>(J(),ae("div",{key:f.id,class:Xt(["fe-ops__item",l(f)])},[N("div",p7,[N("span",{class:"fe-ops__title",title:f.target_path||f.source_dir||""},se(s(f)),9,v7),f.status==="done"||f.status==="error"?(J(),ae("button",{key:0,type:"button",class:"fe-ops__dismiss","aria-label":"Dismiss",onClick:d=>n("dismiss",f.id)},"×",8,m7)):rt("",!0)]),N("div",g7,[N("div",{class:"fe-ops__bar-fill",style:Xa({width:o(f)+"%"})},null,4)]),f.status==="error"&&f.error_message?(J(),ae("div",b7,se(f.error_message),1)):rt("",!0)],2))),128))]),_:1})):rt("",!0)}}),x7={key:0,class:"fe-modal__head"},_7={class:"fe-modal__title"},w7={class:"fe-modal__body"},k7={key:1,class:"fe-modal__actions"},kl=Wt({__name:"Modal",props:{open:{type:Boolean},title:{},size:{},closeOnBackdrop:{type:Boolean},chromeless:{type:Boolean},theme:{}},emits:["close"],setup(e,{emit:t}){const r=e,n=t,a=fe(null);er(()=>r.open,l=>{l?(document.addEventListener("keydown",i),setTimeout(()=>{var u;const s=(u=a.value)==null?void 0:u.querySelector('input,select,textarea,button,[tabindex]:not([tabindex="-1"])');s==null||s.focus()},30)):document.removeEventListener("keydown",i)}),Ur(()=>document.removeEventListener("keydown",i));function i(l){l.key==="Escape"&&n("close")}function o(){r.closeOnBackdrop!==!1&&n("close")}return(l,s)=>(J(),kr(uo,{name:"fe-modal"},{default:Tr(()=>[e.open?(J(),ae("div",{key:0,class:Xt(["fe fe-modal__backdrop",[{"fe-modal__backdrop--chromeless":e.chromeless},e.theme==="light"?"fe--theme-light":"",e.theme==="dark"?"fe--theme-dark":""]]),role:"presentation",onClick:o},[N("div",{ref_key:"cardEl",ref:a,class:Xt(["fe-modal__card",[`fe-modal__card--${e.size||"md"}`,e.chromeless&&"fe-modal__card--chromeless"]]),role:"dialog","aria-modal":"true",onClick:s[1]||(s[1]=pr(()=>{},["stop"]))},[e.title&&!e.chromeless?(J(),ae("header",x7,[N("h2",_7,se(e.title),1),N("button",{type:"button",class:"fe-modal__close","aria-label":"Close",onClick:s[0]||(s[0]=u=>n("close"))},"×")])):rt("",!0),N("div",w7,[U1(l.$slots,"default")]),l.$slots.actions&&!e.chromeless?(J(),ae("footer",k7,[U1(l.$slots,"actions")])):rt("",!0)],2)],2)):rt("",!0)]),_:3}))}}),S7=["placeholder","onKeydown"],C7={key:0,class:"fe-form__error"},A7=Wt({__name:"NewFolderModal",props:{open:{type:Boolean},locale:{}},emits:["close","submit"],setup(e,{emit:t}){const r=e,n=t,{t:a}=Mn(()=>r.locale),i=fe(""),o=fe(null);er(()=>r.open,s=>{s&&(i.value="",o.value=null)});function l(){const s=i.value.trim();if(!s){o.value=a("modal.newfolder.placeholder");return}if(/[\\/]/.test(s)||s==="."||s===".."){o.value="Geçersiz karakter";return}n("submit",s)}return(s,u)=>(J(),kr(kl,{open:e.open,title:Qe(a)("modal.newfolder.title"),size:"sm",onClose:u[2]||(u[2]=c=>n("close"))},{actions:Tr(()=>[N("button",{type:"button",class:"fe-btn",onClick:u[1]||(u[1]=c=>n("close"))},se(Qe(a)("modal.newfolder.cancel")),1),N("button",{type:"button",class:"fe-btn fe-btn--primary",onClick:l},se(Qe(a)("modal.newfolder.create")),1)]),default:Tr(()=>[N("form",{onSubmit:pr(l,["prevent"])},[tr(N("input",{"onUpdate:modelValue":u[0]||(u[0]=c=>i.value=c),type:"text",class:"fe-input",placeholder:Qe(a)("modal.newfolder.placeholder"),autocomplete:"off",onKeydown:ca(pr(l,["prevent"]),["enter"])},null,40,S7),[[on,i.value]]),o.value?(J(),ae("p",C7,se(o.value),1)):rt("",!0)],32)]),_:1},8,["open","title"]))}}),E7=["onKeydown"],T7=Wt({__name:"RenameModal",props:{open:{type:Boolean},locale:{},currentName:{}},emits:["close","submit"],setup(e,{emit:t}){const r=e,n=t,{t:a}=Mn(()=>r.locale),i=fe("");er(()=>[r.open,r.currentName],([l,s])=>{l&&(i.value=s)});function o(){const l=i.value.trim();l&&(/[\\/]/.test(l)||l==="."||l===".."||n("submit",l))}return(l,s)=>(J(),kr(kl,{open:e.open,title:Qe(a)("modal.rename.title"),size:"sm",onClose:s[2]||(s[2]=u=>n("close"))},{actions:Tr(()=>[N("button",{type:"button",class:"fe-btn",onClick:s[1]||(s[1]=u=>n("close"))},se(Qe(a)("modal.rename.cancel")),1),N("button",{type:"button",class:"fe-btn fe-btn--primary",onClick:o},se(Qe(a)("modal.rename.save")),1)]),default:Tr(()=>[N("form",{onSubmit:pr(o,["prevent"])},[tr(N("input",{"onUpdate:modelValue":s[0]||(s[0]=u=>i.value=u),type:"text",class:"fe-input",autocomplete:"off",onKeydown:ca(pr(o,["prevent"]),["enter"])},null,40,E7),[[on,i.value]])],32)]),_:1},8,["open","title"]))}}),M7=Wt({__name:"DeleteConfirmModal",props:{open:{type:Boolean},locale:{},count:{}},emits:["close","confirm"],setup(e,{emit:t}){const r=e,n=t,{t:a}=Mn(()=>r.locale);return(i,o)=>(J(),kr(kl,{open:e.open,title:Qe(a)("modal.delete.title"),size:"sm",onClose:o[2]||(o[2]=l=>n("close"))},{actions:Tr(()=>[N("button",{type:"button",class:"fe-btn",onClick:o[0]||(o[0]=l=>n("close"))},se(Qe(a)("modal.delete.cancel")),1),N("button",{type:"button",class:"fe-btn fe-btn--danger",onClick:o[1]||(o[1]=l=>n("confirm"))},se(Qe(a)("modal.delete.confirm")),1)]),default:Tr(()=>[N("p",null,se(Qe(a)("modal.delete.message",{count:e.count})),1)]),_:1},8,["open","title"]))}}),D7={class:"fe-form__row"},I7={class:"fe-form__row fe-form__row--stack"},z7={class:"fe-form__row fe-form__row--stack"},F7={key:1,class:"fe-share-result"},O7={class:"fe-share-result__row"},P7={class:"fe-share-result__copy"},R7=["value"],L7={key:0,class:"fe-share-result__row"},B7={class:"fe-share-result__copy"},N7=["value"],$7={class:"fe-share-result__row"},U7={class:"fe-share-result__copy"},H7=["value"],j7=Wt({__name:"ShareModal",props:{open:{type:Boolean},locale:{},share:{}},emits:["close","submit","toast"],setup(e,{emit:t}){const r=e,n=t,{t:a}=Mn(()=>r.locale),i=fe(!1),o=fe(""),l=fe("");er(()=>r.open,d=>{d&&(i.value=!1,o.value="",l.value="")});function s(){n("submit",{password:i.value,expires_at:o.value?new Date(o.value).toISOString():null,max_downloads:l.value?Number(l.value):null})}async function u(d,h){try{await navigator.clipboard.writeText(d),n("toast",h)}catch{}}function c(d){return`'${d.replace(/'/g,"'\\''")}'`}const f=gt(()=>{const d=r.share;if(!d)return"";let h=d.url;return d.password_pin&&(h+=(h.includes("?")?"&":"?")+"pin="+encodeURIComponent(d.password_pin)),`curl -fSL ${d.filename?`-o ${c(d.filename)} `:"-OJ "}${c(h)}`});return(d,h)=>(J(),kr(kl,{open:e.open,title:Qe(a)("modal.share.title"),size:"md",onClose:h[7]||(h[7]=b=>n("close"))},{actions:Tr(()=>[N("button",{type:"button",class:"fe-btn",onClick:h[6]||(h[6]=b=>n("close"))},se(e.share?"Kapat":Qe(a)("modal.share.cancel")),1),e.share?rt("",!0):(J(),ae("button",{key:0,type:"button",class:"fe-btn fe-btn--primary",onClick:s},se(Qe(a)("modal.share.create")),1))]),default:Tr(()=>[e.share?(J(),ae("div",F7,[N("div",O7,[h[8]||(h[8]=N("label",null,"Link",-1)),N("div",P7,[N("input",{value:e.share.url,readonly:"",class:"fe-input"},null,8,R7),N("button",{type:"button",class:"fe-btn",onClick:h[3]||(h[3]=b=>u(e.share.url,Qe(a)("modal.share.url_copied")))},se(Qe(a)("modal.share.copy")),1)])]),e.share.password_pin?(J(),ae("div",L7,[h[9]||(h[9]=N("label",null,"PIN",-1)),N("div",B7,[N("input",{value:e.share.password_pin,readonly:"",class:"fe-input fe-input--mono"},null,8,N7),N("button",{type:"button",class:"fe-btn",onClick:h[4]||(h[4]=b=>u(e.share.password_pin,Qe(a)("modal.share.pin_copied")))},se(Qe(a)("modal.share.copy")),1)])])):rt("",!0),N("div",$7,[h[10]||(h[10]=N("label",null,"CLI",-1)),N("div",U7,[N("input",{value:f.value,readonly:"",class:"fe-input fe-input--mono"},null,8,H7),N("button",{type:"button",class:"fe-btn",onClick:h[5]||(h[5]=b=>u(f.value,Qe(a)("modal.share.cli_copied")))},se(Qe(a)("modal.share.copy")),1)])])])):(J(),ae("form",{key:0,class:"fe-form",onSubmit:pr(s,["prevent"])},[N("label",D7,[tr(N("input",{"onUpdate:modelValue":h[0]||(h[0]=b=>i.value=b),type:"checkbox"},null,512),[[js,i.value]]),N("span",null,se(Qe(a)("modal.share.pin")),1)]),N("label",I7,[N("span",null,se(Qe(a)("modal.share.expires")),1),tr(N("input",{"onUpdate:modelValue":h[1]||(h[1]=b=>o.value=b),type:"datetime-local",class:"fe-input"},null,512),[[on,o.value]])]),N("label",z7,[N("span",null,se(Qe(a)("modal.share.max_downloads")),1),tr(N("input",{"onUpdate:modelValue":h[2]||(h[2]=b=>l.value=b),type:"number",min:"1",class:"fe-input"},null,512),[[on,l.value]])])],32))]),_:1},8,["open","title"]))}}),G7={key:0,class:"fe-preview"},V7=["src","alt"],q7=["src"],W7=["src"],K7=["data"],X7={class:"fe-preview__fallback"},Y7=["href"],Z7={key:0,class:"fe-preview__fallback"},J7={key:1,class:"fe-preview__fallback"},Q7=["href"],ey={key:2,class:"fe-preview__md-split"},ty={class:"fe-preview__md-split-bar"},ry={key:0,class:"fe-preview__md-split-error"},ny=["disabled"],ay={class:"fe-preview__md-split-body"},iy=["onKeydown"],oy=["innerHTML"],ly={key:3,class:"fe-preview__fallback"},sy=["href"],uy=["innerHTML"],cy={key:5,class:"fe-preview__pre"},fy={key:0,class:"fe-preview__fallback"},dy=["href"],hy={key:1,class:"fe-preview__fallback"},py={key:0,class:"fe-preview__fallback"},vy={key:1,class:"fe-preview__fallback"},my=["href"],gy={key:2,class:"fe-preview__fallback"},by=["href"],yy={key:3,class:"fe-preview__code-wrap"},xy={class:"fe-preview__code-toolbar"},_y={class:"fe-preview__code-lang"},wy={key:0,class:"fe-preview__code-status"},ky={key:1,class:"fe-preview__code-status fe-preview__code-status--ok"},Sy=["title"],Cy={key:3,class:"fe-preview__code-status"},Ay=["disabled"],Ey={key:0,class:"fe-preview__pre fe-preview__code hljs"},Ty=["innerHTML"],My=["data-lang"],Dy={key:0,class:"fe-preview__fallback"},Iy=["href"],zy={key:8,class:"fe-preview__fallback"},Fy=["href"],Oy=["href"],mc=1e6,sp="fe-onlyoffice-api-js",Py=Wt({__name:"PreviewModal",props:{open:{type:Boolean},locale:{},file:{},previewUrl:{type:Function},downloadUrl:{type:Function},onlyOfficeBase:{},onlyOfficeConfigEndpoint:{},saveTextEndpoint:{},openMode:{},authHeaders:{type:Function},authCredentials:{},drawioUrl:{},pdfWorkerUrl:{},pdfSaveUrl:{},viewerBaseUrl:{},chromeless:{type:Boolean},theme:{}},emits:["close"],setup(e,{emit:t}){const r=e,n=t,{t:a}=Mn(()=>r.locale);function i(Ie){return((Ie==null?void 0:Ie.extension)||"").toLowerCase()}const o=["jpg","jpeg","png","webp","gif","bmp","avif","svg","heic"],l=["mp4","webm","mov","mkv","m4v","ogv"],s=["mp3","wav","ogg","flac","m4a","aac","opus"],u={md:"markdown",markdown:"markdown",txt:"plaintext",log:"plaintext",js:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",tsx:"typescript",jsx:"javascript",vue:"xml",svelte:"xml",html:"xml",htm:"xml",xml:"xml",svg:"xml",css:"css",scss:"scss",sass:"scss",less:"less",json:"json",jsonc:"json",yml:"yaml",yaml:"yaml",php:"php",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",kt:"kotlin",swift:"swift",cpp:"cpp",c:"c",h:"cpp",hpp:"cpp",cs:"csharp",dart:"dart",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",sql:"sql",toml:"ini",ini:"ini",conf:"ini",env:"bash",cfg:"ini",dockerfile:"dockerfile",graphql:"graphql",gql:"graphql",diff:"diff",patch:"diff"},c=["txt","log"],f=["docx","doc","xlsx","xls","pptx","ppt","odt","ods","odp","rtf"],d={glb:()=>Promise.resolve().then(()=>fo),gltf:()=>Promise.resolve().then(()=>fo),obj:()=>Promise.resolve().then(()=>fo),stl:()=>Promise.resolve().then(()=>fo),fbx:()=>Promise.resolve().then(()=>fo),"3ds":()=>Promise.resolve().then(()=>fo),epub:()=>Promise.resolve().then(()=>nw),mmd:()=>Promise.resolve().then(()=>vp),mermaid:()=>Promise.resolve().then(()=>vp),drawio:()=>Promise.resolve().then(()=>mp),dio:()=>Promise.resolve().then(()=>mp),tif:()=>Promise.resolve().then(()=>gp),tiff:()=>Promise.resolve().then(()=>gp),psd:()=>Promise.resolve().then(()=>ww),ipynb:()=>Promise.resolve().then(()=>$w),csv:()=>Promise.resolve().then(()=>yp),tsv:()=>Promise.resolve().then(()=>yp),zip:()=>Promise.resolve().then(()=>s9)},h=gt(()=>{const Ie=i(r.file);if(!Ie)return"other";if(o.includes(Ie))return"image";if(l.includes(Ie))return"video";if(s.includes(Ie))return"audio";if(Ie==="pdf")return"pdf";const D=r.openMode!=="view";return Ie==="md"||Ie==="markdown"?"markdown":Ie in u?"code":Ie in d?"viewer":f.includes(Ie)?"office":c.includes(Ie)?D?"code":"text":"other"}),b=S5(null),p=fe(null),x=fe(!1);async function g(Ie){b.value=null,p.value=null;const D=d[Ie];if(D)try{const re=await D();b.value=re.default??re}catch(re){p.value=re instanceof Error?re.message:"viewer load failed",Ie==="pdf"&&(x.value=!0)}}function m(){x.value=!0}const y=gt(()=>{var re;const Ie=i(r.file),D={url:E.value,ext:Ie,mime:(re=r.file)==null?void 0:re.mime_type,t:a,authHeaders:r.authHeaders,authCredentials:r.authCredentials};return r.file&&(D.filePath=z(r.file.path),(Ie==="zip"||Ie==="rar"||Ie==="7z"||Ie==="tar"||Ie==="gz"||Ie==="tgz")&&(D.filePath=r.file.path)),(Ie==="drawio"||Ie==="dio")&&(D.drawioUrl=r.drawioUrl??void 0,D.saveUrl=r.saveTextEndpoint??void 0,D.readOnly=r.openMode==="view"),Ie==="pdf"&&(D.pdfWorkerUrl=r.pdfWorkerUrl??void 0,D.pdfSaveUrl=r.pdfSaveUrl??void 0),D});function v(){C(r.openMode||"edit")}function k(){C("edit")}function C(Ie){if(!r.file)return;const D=i(r.file),re=r.viewerBaseUrl||"/files/edit",Ae=re.includes("?")?"&":"?",Re=`${re}${Ae}path=${encodeURIComponent(r.file.path)}&type=${encodeURIComponent(D)}&mode=${encodeURIComponent(Ie)}`;window.open(Re,"_blank","noopener")}const A=new Set(["docx","doc","xlsx","xls","pptx","ppt","odt","ods","odp","rtf","drawio","dio","mmd","mermaid","md","markdown","txt","log","json","jsonc","yaml","yml","xml","svg","html","htm","js","mjs","cjs","ts","tsx","jsx","vue","svelte","css","scss","sass","less","php","py","rb","go","rs","java","kt","swift","cpp","c","h","hpp","cs","dart","sh","bash","sql","toml","ini","conf","cfg","env","dockerfile","graphql","gql"]),_=gt(()=>!!r.file&&A.has(i(r.file))),E=gt(()=>r.file?r.previewUrl(r.file.path):""),M=gt(()=>r.file?r.downloadUrl(r.file.path):"");function z(Ie){const D=Ie.indexOf("://");return D===-1?Ie:Ie.slice(D+3)}const R=fe(!1),O=fe(null),H=fe(""),Z=fe(!1),q=fe(!1),X=fe(!1);let Q,te;function _e(){q.value=!0,Q&&clearTimeout(Q),Q=setTimeout(()=>{Ee(H.value)},250),te&&clearTimeout(te),te=setTimeout(()=>{he()},1500)}async function he(){if(!(!r.saveTextEndpoint||!r.file||X.value)){X.value=!0,O.value=null;try{const Ie={"Content-Type":"application/json",...await(r.authHeaders??(()=>({})))()},D=await fetch(r.saveTextEndpoint,{method:"POST",headers:Ie,credentials:r.authCredentials||"same-origin",body:JSON.stringify({path:z(r.file.path),content:H.value})});if(!D.ok)throw new Error(`save failed: ${D.status} ${await D.text()}`);q.value=!1}catch(Ie){O.value=Ie instanceof Error?Ie.message:String(Ie)}finally{X.value=!1}}}async function we(Ie){R.value=!0,O.value=null,H.value="",Z.value=!1;try{const D={};r.authHeaders&&Object.assign(D,r.authHeaders());const re=await fetch(Ie,{credentials:r.authCredentials||"include",headers:D});if(!re.ok)throw new Error(`${re.status} ${re.statusText}`);if(Number(re.headers.get("content-length")||"0")>mc){Z.value=!0;return}const Re=await re.text();Re.length>mc?(Z.value=!0,H.value=Re.slice(0,mc)):H.value=Re}catch(D){O.value=D instanceof Error?D.message:String(D)}finally{R.value=!1}}const pe=fe(""),De=fe(null);async function Ee(Ie){try{const D=await import("markdown-it").catch(()=>null);if(!D){pe.value="";return}const re=D.default??D,Re=new re({html:!0,linkify:!0,breaks:!0,typographer:!0}).render(Ie);pe.value=Oe(Re),await new Promise($=>setTimeout($,0)),await Pe()}catch(D){pe.value="",O.value=D instanceof Error?D.message:String(D)}}function Oe(Ie){return Ie.replace(/<\s*script\b[^<]*(?:(?!<\s*\/\s*script\s*>)<[^<]*)*<\s*\/\s*script\s*>/gi,"").replace(/<\s*iframe\b[\s\S]*?<\s*\/\s*iframe\s*>/gi,"").replace(/<\s*object\b[\s\S]*?<\s*\/\s*object\s*>/gi,"").replace(/<\s*embed\b[^>]*>/gi,"").replace(/\son\w+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,"").replace(/(href|src|action|formaction|xlink:href)\s*=\s*(?:"\s*javascript:[^"]*"|'\s*javascript:[^']*')/gi,'$1="#"')}async function Pe(){var Re,$,W;if(!De.value)return;const Ie=De.value,D=Array.from(Ie.querySelectorAll("pre > code"));if(D.length===0)return;let re,Ae;for(const I of D){const Te=I.className||"",ke=/\blanguage-mermaid\b/.test(Te)||/\blanguage-mmd\b/.test(Te),S=/\blanguage-math\b/.test(Te)||/\blanguage-latex\b/.test(Te)||/\blanguage-tex\b/.test(Te);if(ke){if(re===void 0)try{const me=await import("mermaid");re=me.default??me,(Re=re.initialize)==null||Re.call(re,{startOnLoad:!1,securityLevel:"strict"})}catch{re=null}if(!re)continue;try{const me=`filex-md-mermaid-${Math.random().toString(36).slice(2)}`,{svg:Se}=await re.render(me,I.textContent||""),P=document.createElement("div");P.className="fe-preview__md-mermaid",P.innerHTML=Se,($=I.parentElement)==null||$.replaceWith(P)}catch{}}else if(S){if(Ae===void 0)try{const me=await Promise.resolve().then(()=>qk);Ae=me.default??me}catch{Ae=null}if(!Ae)continue;try{const me=Ae.renderToString(I.textContent||"",{displayMode:!0,throwOnError:!1}),Se=document.createElement("div");Se.className="fe-preview__md-math",Se.innerHTML=me,(W=I.parentElement)==null||W.replaceWith(Se)}catch{}}}}const Me=fe("");async function ce(Ie,D){try{const re=await lp();if(!re){Me.value="";return}const Ae=re.default??re;if(Ae.getLanguage(D)){const Re=Ae.highlight(Ie,{language:D,ignoreIllegals:!0});Me.value=Re.value}else{const Re=Ae.highlightAuto(Ie);Me.value=Re.value}}catch(re){Me.value="",O.value=re instanceof Error?re.message:String(re)}}const ye=fe(null);let ge=null,B;const V=fe(!1),oe=fe(!1),de=fe(!1),ee=fe(null);function ie(){if(ge){try{ge.dispose()}catch{}ge=null}V.value=!1,de.value=!1,ee.value=null}function ue(Ie){return{js:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",tsx:"typescript",jsx:"javascript",json:"json",jsonc:"json",css:"css",scss:"scss",sass:"scss",less:"less",html:"html",htm:"html",vue:"html",svelte:"html",xml:"xml",svg:"xml",md:"markdown",markdown:"markdown",php:"php",py:"python",yml:"yaml",yaml:"yaml",go:"go",rs:"rust",sql:"sql",cpp:"cpp",c:"c",h:"cpp",hpp:"cpp",sh:"shell",bash:"shell",dockerfile:"dockerfile",toml:"ini",ini:"ini",conf:"ini",cfg:"ini"}[Ie]??"plaintext"}async function ve(Ie,D){var Ae;const re=await op();if(!re||!ye.value)return!1;try{ie();const Re=!!r.saveTextEndpoint&&r.openMode!=="view",$=r.theme==="dark"?!0:r.theme==="light"?!1:(Ae=window.matchMedia)==null?void 0:Ae.call(window,"(prefers-color-scheme: dark)").matches;return ge=re.editor.create(ye.value,{value:Ie,language:ue(D),readOnly:!Re,theme:$?"vs-dark":"vs",automaticLayout:!0,minimap:{enabled:!1},fontSize:13}),Re&&(ge.addCommand(re.KeyMod.CtrlCmd|re.KeyCode.KeyS,()=>void Ce()),ge.onDidChangeModelContent(()=>{B&&clearTimeout(B),B=setTimeout(()=>{Ce()},1500)})),V.value=!0,!0}catch(Re){return O.value=`Monaco mount fail: ${Re.message}`,!1}}async function Ce(){if(!(!r.saveTextEndpoint||!r.file)&&r.openMode!=="view"&&!oe.value){oe.value=!0,de.value=!1,ee.value=null;try{const Ie=ge?ge.getValue():"",D={"Content-Type":"application/json"};r.authHeaders&&Object.assign(D,r.authHeaders());const re=await fetch(r.saveTextEndpoint,{method:"POST",headers:D,credentials:r.authCredentials||"same-origin",body:JSON.stringify({path:z(r.file.path),content:Ie})});if(!re.ok){const Ae=await re.text().catch(()=>"");throw new Error(`${re.status} ${re.statusText}${Ae?" — "+Ae.slice(0,150):""}`)}de.value=!0,setTimeout(()=>{de.value=!1},2500)}catch(Ie){ee.value=Ie.message}finally{oe.value=!1}}}async function xe(Ie,D,re){if(H.value="",pe.value="",Me.value="",O.value=null,Ue.value=null,b.value=null,p.value=null,x.value=!1,ut(),ie(),!(!Ie||!D)){if(re==="viewer"){await g(i(r.file));return}if(re==="markdown"||re==="code"||re==="text"){if(await we(D),Z.value)return;if(re==="markdown"){await Ee(H.value);return}const Ae=u[i(r.file)]||"";N6()?(await new Promise(W=>setTimeout(W,0)),await ve(H.value,i(r.file))||await ce(H.value,Ae)):(re==="code"&&await ce(H.value,Ae),op().then(async $=>{$&&r.open&&(await new Promise(W=>setTimeout(W,0)),await ve(H.value,i(r.file)))}))}else re==="office"&&(await new Promise(Ae=>setTimeout(Ae,0)),await at())}}er(()=>[r.open,E.value,h.value,r.openMode],([Ie,D,re])=>{xe(Ie,D,re)}),mr(()=>{Ea(()=>{r.open&&xe(r.open,E.value,h.value)})});const je=gt(()=>u[i(r.file)]||"plaintext"),Ne=fe(null),Ue=fe(null);let Ke=null;async function at(){if(Ue.value=null,!(!r.file||h.value!=="office")){if(!r.onlyOfficeConfigEndpoint){Ue.value="OnlyOffice yapılandırması yok";return}if(Ne.value)try{const Ie={"Content-Type":"application/json"};r.authHeaders&&Object.assign(Ie,r.authHeaders());const D=await fetch(r.onlyOfficeConfigEndpoint,{method:"POST",headers:Ie,credentials:r.authCredentials||"same-origin",body:JSON.stringify({path:r.file.path,mode:r.openMode||"edit"})});if(!D.ok)throw new Error(`Config fetch ${D.status}: ${(await D.text()).slice(0,200)}`);const{config:re,documentServerUrl:Ae}=await D.json();await yt(Ae),ut();const Re="fe-onlyoffice-mount";Ne.value.id=Re,re.events={onError:W=>{Ue.value=st(W)}};const $=window;if(!$.DocsAPI||!$.DocsAPI.DocEditor)throw new Error("DocsAPI not available after script load");Ke=new $.DocsAPI.DocEditor(Re,re)}catch(Ie){Ue.value=Ie instanceof Error?Ie.message:String(Ie)}}}function ut(){var Ie;try{(Ie=Ke==null?void 0:Ke.destroyEditor)==null||Ie.call(Ke)}catch{}Ke=null}Ur(()=>{ut(),ie()});function st(Ie){if(typeof Ie=="string")return Ie;const D=Ie;if(D!=null&&D.data&&typeof D.data=="object"){const re=D.data;if(typeof re.errorDescription=="string")return re.errorDescription;if(typeof re.message=="string")return re.message;if(re.errorCode!==void 0)return`OnlyOffice error ${re.errorCode}`}if(typeof(D==null?void 0:D.data)=="string")return D.data;if(typeof(D==null?void 0:D.errorDescription)=="string")return D.errorDescription;if(typeof(D==null?void 0:D.message)=="string")return D.message;try{return JSON.stringify(Ie)}catch{return"OnlyOffice error"}}function yt(Ie){return new Promise((D,re)=>{var $;if(($=window.DocsAPI)!=null&&$.DocEditor){D();return}const Ae=document.getElementById(sp);if(Ae){Ae.addEventListener("load",()=>D()),Ae.addEventListener("error",()=>re(new Error("OnlyOffice api.js load failed")));return}const Re=document.createElement("script");Re.id=sp,Re.src=`${Ie.replace(/\/$/,"")}/web-apps/apps/api/documents/api.js`,Re.async=!0,Re.onload=()=>D(),Re.onerror=()=>re(new Error("OnlyOffice api.js load failed")),document.head.appendChild(Re)})}return(Ie,D)=>{var re;return J(),kr(kl,{open:e.open,size:"xl",title:((re=e.file)==null?void 0:re.basename)||"",chromeless:e.chromeless,theme:e.theme,onClose:D[2]||(D[2]=Ae=>n("close"))},{actions:Tr(()=>[e.file&&e.openMode==="view"&&_.value?(J(),ae("button",{key:0,type:"button",class:"fe-btn fe-btn--primary",onClick:k},"✏ Düzenle")):rt("",!0),e.file?(J(),ae("button",{key:1,type:"button",class:"fe-btn",onClick:v},"↗ "+se(Qe(a)("viewer.open_in_new_tab")),1)):rt("",!0),e.file?(J(),ae("a",{key:2,href:M.value,class:"fe-btn"},se(Qe(a)("viewer.download")),9,Oy)):rt("",!0),N("button",{type:"button",class:"fe-btn",onClick:D[1]||(D[1]=Ae=>n("close"))},"Kapat")]),default:Tr(()=>[e.file?(J(),ae("div",G7,[h.value==="image"?(J(),ae("img",{key:0,src:E.value,alt:e.file.basename,class:"fe-preview__image"},null,8,V7)):h.value==="video"?(J(),ae("video",{key:1,src:E.value,controls:"",preload:"metadata",class:"fe-preview__video"},null,8,q7)):h.value==="audio"?(J(),ae("audio",{key:2,src:E.value,controls:"",class:"fe-preview__audio"},null,8,W7)):h.value==="pdf"?(J(),ae("object",{key:3,data:E.value,type:"application/pdf",class:"fe-preview__iframe"},[N("div",X7,[D[3]||(D[3]=N("span",{class:"fe-preview__fallback-icon"},"📕",-1)),D[4]||(D[4]=N("p",null,"Tarayıcı PDF'i inline açamadı.",-1)),N("a",{href:M.value,class:"fe-btn fe-btn--primary",target:"_blank",rel:"noopener"},"PDF'i Yeni Sekmede Aç",8,Y7)])],8,K7)):h.value==="markdown"?(J(),ae(xt,{key:4},[R.value?(J(),ae("div",Z7,se(Qe(a)("viewer.loading")),1)):Z.value?(J(),ae("div",J7,[D[5]||(D[5]=Zr(" Dosya çok büyük (>1 MB). ",-1)),N("a",{href:M.value,class:"fe-btn"},se(Qe(a)("viewer.download")),9,Q7)])):e.openMode==="edit"&&e.saveTextEndpoint?(J(),ae("div",ey,[N("div",ty,[D[6]||(D[6]=N("span",{class:"fe-preview__md-split-label"},"MARKDOWN",-1)),O.value?(J(),ae("span",ry,se(O.value),1)):rt("",!0),N("button",{type:"button",class:"fe-btn fe-btn--primary",disabled:!q.value||X.value,onClick:he},se(X.value?"Kaydediliyor…":q.value?"Kaydet (Ctrl+S)":"Kaydedildi"),9,ny)]),N("div",ay,[tr(N("textarea",{class:"fe-preview__md-split-input","onUpdate:modelValue":D[0]||(D[0]=Ae=>H.value=Ae),onInput:_e,onKeydown:[ca(pr(he,["ctrl","prevent"]),["s"]),ca(pr(he,["meta","prevent"]),["s"])],spellcheck:"false",placeholder:"# Markdown buraya…"},null,40,iy),[[on,H.value]]),N("div",{ref_key:"markdownEl",ref:De,class:"fe-preview__md-split-output fe-preview__md",innerHTML:pe.value},null,8,oy)])])):O.value?(J(),ae("div",ly,[N("p",null,se(O.value),1),N("a",{href:M.value,class:"fe-btn fe-btn--primary"},se(Qe(a)("viewer.download")),9,sy)])):pe.value?(J(),ae("div",{key:4,ref_key:"markdownEl",ref:De,class:"fe-preview__md",innerHTML:pe.value},null,8,uy)):(J(),ae("pre",cy,se(H.value),1))],64)):h.value==="viewer"?(J(),ae(xt,{key:5},[p.value&&!x.value?(J(),ae("div",fy,[D[7]||(D[7]=N("span",{class:"fe-preview__fallback-icon"},"⚠️",-1)),N("p",null,se(p.value),1),N("a",{href:M.value,class:"fe-btn fe-btn--primary"},se(Qe(a)("viewer.download")),9,dy)])):b.value?(J(),kr(o3(b.value),vh({key:2},y.value,{class:"fe-preview__viewer",onFallback:m}),null,16)):(J(),ae("div",hy,[D[8]||(D[8]=N("span",{class:"fe-preview__fallback-icon"},"⏳",-1)),N("p",null,se(Qe(a)("viewer.loading")),1)]))],64)):h.value==="code"||h.value==="text"?(J(),ae(xt,{key:6},[R.value?(J(),ae("div",py,se(Qe(a)("viewer.loading")),1)):Z.value?(J(),ae("div",vy,[D[9]||(D[9]=Zr(" Dosya çok büyük (>1 MB). ",-1)),N("a",{href:M.value,class:"fe-btn"},se(Qe(a)("viewer.download")),9,my)])):O.value?(J(),ae("div",gy,[N("p",null,se(O.value),1),N("a",{href:M.value,class:"fe-btn fe-btn--primary"},se(Qe(a)("viewer.download")),9,by)])):(J(),ae("div",yy,[N("div",xy,[N("span",_y,se(je.value),1),!V.value&&Me.value?(J(),ae("span",wy,se(e.saveTextEndpoint?"Editör yükleniyor…":"Salt okunur"),1)):rt("",!0),de.value?(J(),ae("span",ky,"✓ Kaydedildi")):rt("",!0),ee.value?(J(),ae("span",{key:2,class:"fe-preview__code-status fe-preview__code-status--err",title:ee.value},"✗ Hata",8,Sy)):rt("",!0),e.openMode==="view"?(J(),ae("span",Cy,"Salt okunur")):e.saveTextEndpoint&&V.value?(J(),ae("button",{key:4,type:"button",class:"fe-btn fe-btn--primary",disabled:oe.value,onClick:Ce},se(oe.value?"Kaydediliyor…":"Kaydet (Ctrl+S)"),9,Ay)):rt("",!0)]),N("div",{ref_key:"monacoEl",ref:ye,class:Xt(["fe-preview__code-editor",{"is-hidden":!V.value}])},null,2),!V.value&&Me.value?(J(),ae("pre",Ey,[N("code",{class:Xt(`language-${je.value}`),innerHTML:Me.value},null,10,Ty)])):!V.value&&!Me.value?(J(),ae("pre",{key:1,class:"fe-preview__pre","data-lang":je.value},se(H.value),9,My)):rt("",!0)]))],64)):h.value==="office"?(J(),ae(xt,{key:7},[Ue.value?(J(),ae("div",Dy,[D[10]||(D[10]=N("span",{class:"fe-preview__fallback-icon"},"📄",-1)),N("p",null,se(Ue.value),1),N("a",{href:M.value,class:"fe-btn fe-btn--primary"},"İndir",8,Iy)])):(J(),ae("div",{key:1,ref_key:"officeEl",ref:Ne,class:"fe-preview__office"},null,512))],64)):(J(),ae("div",zy,[D[11]||(D[11]=N("span",{class:"fe-preview__fallback-icon"},"📎",-1)),D[12]||(D[12]=N("p",null,"Bu dosya tipi için önizleme henüz yok.",-1)),N("a",{href:M.value,class:"fe-btn fe-btn--primary"},"İndir",8,Fy)]))])):rt("",!0)]),_:1},8,["open","title","chromeless","theme"])}}}),Ry={class:"filex-cv"},Ly={class:"filex-cv__head"},By={key:0,class:"filex-cv__msg"},Ny={key:1,class:"filex-cv__msg filex-cv__ok"},$y={class:"filex-cv__src"},Uy=["placeholder"],Hy={class:"filex-cv__list"},jy=["onClick"],Gy={key:0,class:"filex-cv__empty"},Vy={key:0,class:"filex-cv__err"},qy={class:"filex-cv__foot"},Wy=["disabled"],Ky=["src"],Xy=ln(Wt({__name:"ConvertModal",props:{convertUrl:{},fileName:{},fetchBytes:{type:Function},upload:{type:Function},t:{type:Function}},emits:["close","done"],setup(e,{emit:t}){const r=e,n=t,a=fe(null),i=fe("loading"),o=fe(null),l=fe([]),s=fe(""),u=fe(null),c=gt(()=>(r.fileName.split(".").pop()||"").toLowerCase()),f=gt(()=>{const k=l.value.filter(C=>C.from);return k.find(C=>(C.ext||"").toLowerCase()===c.value)||k.find(C=>(C.format||"").toLowerCase()===c.value)||null}),d=gt(()=>{const k=s.value.trim().toLowerCase(),C=new Set,A=[];for(const _ of l.value){if(!_.to)continue;const E=(_.ext||_.format||"").toLowerCase();!E||C.has(E)||(C.add(E),A.push(_))}return A.sort((_,E)=>(_.ext||_.format).localeCompare(E.ext||E.format)),k?A.filter(_=>(_.ext||"").toLowerCase().includes(k)||(_.format||"").toLowerCase().includes(k)||(_.name||"").toLowerCase().includes(k)||(_.mime||"").toLowerCase().includes(k)):A}),h=gt(()=>`${r.convertUrl.replace(/\/$/,"")}/?embed=1`);let b=0;const p=new Map;function x(k,C={},A=[]){const _=++b;return new Promise((E,M)=>{var z,R;p.set(_,{resolve:E,reject:M}),(R=(z=a.value)==null?void 0:z.contentWindow)==null||R.postMessage({target:"convert-embed",id:_,cmd:k,...C},"*",A),setTimeout(()=>{p.has(_)&&(p.delete(_),M(new Error("convert timeout")))},18e4)})}function g(k){const C=k.data;if(!C||C.source!=="convert-embed")return;if(C.event==="ready"){m();return}const A=p.get(C.id);A&&(p.delete(C.id),C.ok?A.resolve(C):A.reject(new Error(C.error||"convert error")))}async function m(){try{const k=await x("listFormats");l.value=k.formats||[],i.value="ready",f.value||(o.value=v("convert.unsupportedInput","Bu dosya tipi için kaynak format bulunamadı."))}catch(k){o.value=k.message,i.value="error"}}async function y(){if(!(!u.value||!f.value)){i.value="converting",o.value=null;try{const k=await r.fetchBytes(),C=await x("convert",{name:r.fileName,bytes:k,fromIndex:f.value.index,toIndex:u.value.index},[k]),A=r.fileName.replace(/\.[^.]+$/,""),_=C.ext||u.value.ext||u.value.format,E=`${A}.${_}`,M=new File([C.bytes],E,{type:u.value.mime||"application/octet-stream"});await r.upload(M),i.value="done",n("done",E)}catch(k){o.value=k.message,i.value="error"}}}function v(k,C){return r.t?r.t(k,C):C}return mr(()=>window.addEventListener("message",g)),Ur(()=>window.removeEventListener("message",g)),(k,C)=>(J(),ae("div",{class:"filex-cv__bg",onClick:C[3]||(C[3]=pr(A=>n("close"),["self"]))},[N("div",Ry,[N("header",Ly,[N("h3",null,se(v("convert.title","Dönüştür"))+" — "+se(e.fileName),1),N("button",{class:"filex-cv__x",onClick:C[0]||(C[0]=A=>n("close"))},"✕")]),i.value==="loading"?(J(),ae("div",By,se(v("convert.loading","Dönüştürücü yükleniyor…")),1)):i.value==="done"?(J(),ae("div",Ny,[N("p",null,"✓ "+se(v("convert.done","Dönüştürüldü ve klasöre yüklendi.")),1),N("button",{class:"filex-cv__convert",onClick:C[1]||(C[1]=A=>n("close"))},se(v("convert.close","Kapat")),1)])):(J(),ae(xt,{key:2},[N("p",$y,[Zr(se(v("convert.from","Kaynak"))+": ",1),N("b",null,se(c.value||"?"),1)]),tr(N("input",{"onUpdate:modelValue":C[2]||(C[2]=A=>s.value=A),class:"filex-cv__search",placeholder:v("convert.searchFmt","Hedef format ara (pdf, mp4, png…)")},null,8,Uy),[[on,s.value]]),N("div",Hy,[(J(!0),ae(xt,null,ir(d.value,A=>{var _;return J(),ae("button",{key:A.index,class:Xt(["filex-cv__fmt",{"is-sel":((_=u.value)==null?void 0:_.index)===A.index}]),onClick:E=>u.value=A},[N("b",null,se((A.ext||A.format).toUpperCase()),1),N("small",null,se(A.name),1)],10,jy)}),128)),d.value.length===0?(J(),ae("div",Gy,se(v("convert.noFmt","Eşleşen format yok.")),1)):rt("",!0)]),o.value?(J(),ae("div",Vy,se(o.value),1)):rt("",!0),N("footer",qy,[N("button",{class:"filex-cv__convert",disabled:!u.value||!f.value||i.value==="converting",onClick:y},se(i.value==="converting"?v("convert.converting","Dönüştürülüyor…"):v("convert.convert","Dönüştür")),9,Wy)])],64)),N("iframe",{ref_key:"iframeRef",ref:a,src:h.value,class:"filex-cv__frame",title:"converter"},null,8,Ky)])]))}}),[["__scopeId","data-v-dfaf8d90"]]),Yy={class:"fx-perm-modal"},Zy={class:"fx-perm-head"},Jy={class:"fx-perm-title"},Qy={class:"fx-perm-ico","aria-hidden":"true"},ex={class:"fx-perm-titletext"},tx=["title"],rx={class:"fx-perm-subdim"},nx={class:"fx-perm-tabs"},ax={class:"fx-perm-body"},ix={key:0,class:"fx-perm-warn"},ox={key:1,class:"fx-perm-warn"},lx={key:2,class:"fx-perm-muted"},sx={class:"fx-perm-addcard"},ux={class:"fx-perm-add"},cx={class:"fx-perm-emailwrap"},fx=["placeholder"],dx={key:0,class:"fx-perm-suggest"},hx=["onMousedown"],px={class:"fx-perm-suggest-av"},vx={class:"fx-perm-suggest-txt"},mx={class:"fx-perm-suggest-name"},gx={class:"fx-perm-suggest-meta"},bx=["title"],yx=["value"],xx=["disabled"],_x={key:0,class:"fx-perm-invite"},wx={class:"fx-perm-muted"},kx={class:"fx-perm-invite-actions"},Sx={class:"fx-perm-invite-row"},Cx={value:"user"},Ax={value:"viewer"},Ex=["disabled"],Tx=["disabled"],Mx={key:1,class:"fx-perm-notice"},Dx={key:2,class:"fx-perm-reveal"},Ix={class:"fx-perm-section"},zx={key:0,class:"fx-perm-empty"},Fx={class:"fx-perm-av"},Ox=["title"],Px=["value","onChange"],Rx=["value"],Lx=["disabled","title","onClick"],Bx={class:"fx-perm-av fx-perm-av--dim"},Nx=["title"],$x={class:"fx-perm-badge"},Ux=["title"],Hx={class:"fx-perm-addcard"},jx={class:"fx-perm-share-opts"},Gx={class:"fx-perm-check"},Vx={class:"fx-perm-expiry"},qx={class:"fx-perm-muted"},Wx=["value"],Kx=["disabled"],Xx={key:0,class:"fx-perm-warn"},Yx={key:1,class:"fx-perm-result"},Zx={class:"fx-perm-linkrow"},Jx=["href"],Qx={key:0,class:"fx-perm-pin"},e_={class:"fx-perm-mailrow"},t_=["placeholder"],r_=["disabled"],n_={key:1,class:"fx-perm-notice"},a_={key:2,class:"fx-perm-hint"},i_={class:"fx-perm-section"},o_={key:0,class:"fx-perm-empty"},l_=["title"],s_=["onClick"],u_=["disabled","title","onClick"],c_={key:2,class:"fx-perm-addcard"},f_={class:"fx-perm-muted fx-perm-dropintro"},d_={class:"fx-perm-share-opts"},h_={class:"fx-perm-check"},p_={class:"fx-perm-expiry"},v_={class:"fx-perm-muted"},m_=["value"],g_=["disabled"],b_={key:0,class:"fx-perm-adv"},y_={class:"fx-perm-adv-row"},x_={class:"fx-perm-muted"},__={class:"fx-perm-adv-row"},w_={class:"fx-perm-muted"},k_={class:"fx-perm-adv-row"},S_={class:"fx-perm-muted"},C_=["placeholder"],A_={class:"fx-perm-check"},E_={key:1,class:"fx-perm-warn"},T_={key:2,class:"fx-perm-result"},M_={class:"fx-perm-linkrow"},D_=["href"],I_={key:0,class:"fx-perm-pin"},z_={class:"fx-perm-mailrow"},F_=["placeholder"],O_=["disabled"],P_={key:1,class:"fx-perm-notice"},R_=ln(Wt({__name:"PermissionsModal",props:{api:{},path:{},isDir:{type:Boolean},size:{},locale:{}},emits:["close"],setup(e,{emit:t}){const r=e,n=t,a=gt(()=>(r.locale??"tr")!=="en");function i($,W){return a.value?$:W}const o=gt(()=>{const $=/^([^:]+):\/\/(.*)$/.exec(r.path),W=$?$[1]:"",I=$?$[2]:r.path,Te=I.split("/").filter(Boolean);return{adapter:W,name:Te.length?Te[Te.length-1]:W,rel:I}}),l=fe("perms"),s=fe(!1),u=fe(!0),c=fe(""),f=fe([]),d=fe([]),h=fe(!0),b=fe(""),p=fe("viewer"),x=fe(!1),g=fe(""),m=fe(!1),y=fe("user"),v=fe(null),k=fe([]),C=fe(!1);let A;const _=[{v:"viewer",l:i("Görüntüleyen","Viewer"),d:i("görüntüle + indir","view + download")},{v:"editor",l:i("Düzenleyen","Editor"),d:i("oku + yaz + sil","read + write + delete")},{v:"owner",l:i("Sahip","Owner"),d:i("düzenle + izin yönet","edit + manage access")}];function E($){var W;return((W=_.find(I=>I.v===$))==null?void 0:W.l)??$}const M=fe([]),z=fe(!1),R=fe(!1),O=fe(0),H=fe(null),Z=fe(""),q=fe(""),X=fe(""),Q=fe(!1),te=fe(""),_e=[{v:0,l:i("Süresiz","Never")},{v:1,l:i("1 gün","1 day")},{v:7,l:i("7 gün","7 days")},{v:30,l:i("30 gün","30 days")}],he=fe(!1),we=fe(0),pe=fe(!1),De=fe(""),Ee=fe(""),Oe=fe(""),Pe=fe(!0),Me=fe(!1),ce=fe(""),ye=fe(null),ge=fe(""),B=fe(!1),V=fe("");function oe($){const W=new Set,I=[];for(const Te of $.split(/[,;\s]+/)){const ke=Te.trim().toLowerCase();ke&&ke.includes("@")&&!W.has(ke)&&(W.add(ke),I.push(ke))}return I}function de($){var Te,ke;const W=((Te=$.sent)==null?void 0:Te.length)??0,I=((ke=$.failed)==null?void 0:ke.length)??0;return I===0?i(`E-posta gönderildi ✓ (${W})`,`Email sent ✓ (${W})`):i(`${W} gönderildi, ${I} başarısız`,`${W} sent, ${I} failed`)}async function ee(){u.value=!0,c.value="";try{const $=await r.api.listPermissions(r.path);f.value=$.direct??[],d.value=$.inherited??[],h.value=$.storage_rbac,s.value=!0}catch($){$.status===403?(s.value=!1,l.value="share"):c.value=$ instanceof Error?$.message:String($)}finally{u.value=!1}}async function ie(){try{const $=await r.api.listShares(r.path);M.value=$.shares??[]}catch{M.value=[]}}mr(async()=>{await ee(),await ie()}),Ur(()=>{A&&clearTimeout(A)});function ue(){m.value=!1,v.value=null,g.value="";const $=b.value.trim();if(A&&clearTimeout(A),$.length<1){k.value=[],C.value=!1;return}A=setTimeout(async()=>{try{const W=await r.api.searchUsers($);k.value=W.users??[],C.value=k.value.length>0}catch{C.value=!1}},180)}async function ve($){C.value=!1,b.value=$.email;let W=p.value;$.role==="viewer"&&W!=="viewer"&&(W="viewer"),x.value=!0,g.value="";try{await r.api.addPermission({path:r.path,user_id:$.id,level:W,is_dir:!!r.isDir}),b.value="",k.value=[],await ee(),g.value=i("Yetki verildi.","Access granted.")}catch(I){g.value=I instanceof Error?I.message:String(I)}finally{x.value=!1}}async function Ce(){const $=b.value.trim().toLowerCase();if(!$||!$.includes("@")){g.value=i("Geçerli bir e-posta girin.","Enter a valid email.");return}C.value=!1,x.value=!0,g.value="",v.value=null;try{const W=await r.api.resolveEmail($);if(W.found&&W.user){let I=p.value;W.user.role==="viewer"&&I!=="viewer"&&(I="viewer"),await r.api.addPermission({path:r.path,user_id:W.user.id,level:I,is_dir:!!r.isDir}),b.value="",await ee(),g.value=i("Yetki verildi.","Access granted.")}else m.value=!0}catch(W){g.value=W instanceof Error?W.message:String(W)}finally{x.value=!1}}async function xe(){x.value=!0,g.value="";try{const $=await r.api.invitePermission({path:r.path,email:b.value.trim().toLowerCase(),level:p.value,create_user:!0,role:y.value,is_dir:!!r.isDir,locale:r.locale??"tr"});v.value={tempPassword:$.temp_password},g.value=$.emailed?i("Kullanıcı açıldı, davet e-postası gönderildi.","User created, invite emailed."):i("Kullanıcı açıldı. Geçici parolayı iletin.","User created. Share the temp password."),m.value=!1,b.value="",await ee()}catch($){g.value=$ instanceof Error?$.message:String($)}finally{x.value=!1}}function je(){X.value=b.value.trim().toLowerCase(),m.value=!1,g.value="",l.value="share"}async function Ne($,W){if(W!==$.level){x.value=!0;try{await r.api.updatePermission($.id,W),await ee()}catch(I){g.value=I instanceof Error?I.message:String(I)}finally{x.value=!1}}}async function Ue($){x.value=!0;try{await r.api.deletePermission($.id),await ee()}catch(W){g.value=W instanceof Error?W.message:String(W)}finally{x.value=!1}}function Ke($){return $.user_display_name||$.user_email||`#${$.user_id}`}function at($){return($.user_display_name||$.user_email||"?").charAt(0).toUpperCase()}function ut(){return O.value?new Date(Date.now()+O.value*864e5).toISOString():null}async function st(){z.value=!0,Z.value="",H.value=null,te.value="";try{const $=await r.api.createShare({path:r.path,password:R.value,expires_at:ut()});H.value={url:$.share.url,pin:$.share.password_pin??null},await ie()}catch($){Z.value=$ instanceof Error?$.message:String($)}finally{z.value=!1}}async function yt(){var W;const $=oe(X.value);if(!$.length){te.value=i("Geçerli bir e-posta girin.","Enter a valid email.");return}if((W=H.value)!=null&&W.url){Q.value=!0,te.value="";try{const I=await r.api.shareMail({path:r.path,emails:$,url:H.value.url,pin:H.value.pin??void 0,expires_days:O.value||void 0,locale:r.locale??"tr",is_dir:!!r.isDir,size:r.size});te.value=de(I)}catch(I){const Te=I.detail??"";Te.includes("not_configured")?te.value=i("SMTP ayarlı/doğrulanmış değil — linki elle iletin.","SMTP not set up/verified — share the link manually."):Te.includes("send_failed")?te.value=i("Gönderilemedi (geçici hata) — tekrar deneyin.","Send failed (temporary) — please retry."):te.value=I instanceof Error?I.message:String(I)}finally{Q.value=!1}}}function Ie(){return we.value?new Date(Date.now()+we.value*864e5).toISOString():null}async function D(){Me.value=!0,ce.value="",ye.value=null,V.value="";try{const $={ask_name:Pe.value};De.value&&($.max_files=Number(De.value)),Ee.value&&($.max_file_size_mb=Number(Ee.value));const W=Oe.value.split(/[,\s]+/).map(Te=>Te.trim().replace(/^\./,"")).filter(Boolean);W.length&&($.allowed_ext=W);const I=await r.api.createShare({path:r.path,kind:"drop",password:he.value,expires_at:Ie(),drop_settings:$});ye.value={url:I.share.url,pin:I.share.password_pin??null}}catch($){ce.value=$ instanceof Error?$.message:String($)}finally{Me.value=!1}}async function re(){var W;const $=oe(ge.value);if(!$.length){V.value=i("Geçerli bir e-posta girin.","Enter a valid email.");return}if((W=ye.value)!=null&&W.url){B.value=!0,V.value="";try{const I=await r.api.shareMail({path:r.path,emails:$,url:ye.value.url,pin:ye.value.pin??void 0,expires_days:we.value||void 0,locale:r.locale??"tr",is_dir:!0,mode:"drop"});V.value=de(I)}catch(I){(I.detail??"").includes("not_configured")?V.value=i("SMTP ayarlı/doğrulanmış değil — linki elle iletin.","SMTP not set up/verified — share the link manually."):V.value=I instanceof Error?I.message:String(I)}finally{B.value=!1}}}async function Ae($){z.value=!0;try{await r.api.revokeShare($.uuid),await ie()}catch(W){Z.value=W instanceof Error?W.message:String(W)}finally{z.value=!1}}function Re($,W="url"){var I;(I=navigator.clipboard)==null||I.writeText($),q.value=W,setTimeout(()=>{q.value===W&&(q.value="")},1400)}return($,W)=>{var I,Te;return J(),ae("div",{class:"fx-perm-overlay",onClick:W[22]||(W[22]=pr(ke=>n("close"),["self"]))},[N("div",Yy,[N("header",Zy,[N("div",Jy,[N("span",Qy,se(e.isDir?"📁":"📄"),1),N("div",ex,[N("h3",null,se(i("Paylaş / İzinler","Share / Permissions")),1),N("span",{class:"fx-perm-sub",title:e.path},[Zr(se(o.value.name),1),N("span",rx," · "+se(o.value.adapter),1)],8,tx)])]),N("button",{class:"fx-perm-x",onClick:W[0]||(W[0]=ke=>n("close")),"aria-label":"close"},"✕")]),N("div",nx,[s.value?(J(),ae("button",{key:0,class:Xt(["fx-perm-tab",{"is-active":l.value==="perms"}]),onClick:W[1]||(W[1]=ke=>l.value="perms")},se(i("Kişiler","People")),3)):rt("",!0),N("button",{class:Xt(["fx-perm-tab",{"is-active":l.value==="share"}]),onClick:W[2]||(W[2]=ke=>l.value="share")},se(i("Bağlantı","Link")),3),e.isDir?(J(),ae("button",{key:1,class:Xt(["fx-perm-tab",{"is-active":l.value==="drop"}]),onClick:W[3]||(W[3]=ke=>l.value="drop")},se(i("Dosya İste","Request files")),3)):rt("",!0)]),N("div",ax,[l.value==="perms"&&s.value?(J(),ae(xt,{key:0},[h.value?rt("",!0):(J(),ae("div",ix,se(i("Bu diskte RBAC kapalı — izinler yalnızca RBAC açık disklerde geçerli.","RBAC is off on this storage — grants only apply when RBAC is enabled.")),1)),c.value?(J(),ae("div",ox,se(c.value),1)):rt("",!0),u.value?(J(),ae("div",lx,se(i("Yükleniyor…","Loading…")),1)):(J(),ae(xt,{key:3},[N("div",sx,[N("div",ux,[N("div",cx,[tr(N("input",{"onUpdate:modelValue":W[4]||(W[4]=ke=>b.value=ke),type:"email",class:"fx-perm-input",autocomplete:"off",placeholder:i("İsim veya e-posta","Name or email"),onInput:ue,onKeyup:ca(Ce,["enter"]),onFocus:ue},null,40,fx),[[on,b.value]]),C.value?(J(),ae("ul",dx,[(J(!0),ae(xt,null,ir(k.value,ke=>(J(),ae("li",{key:ke.id,onMousedown:pr(S=>ve(ke),["prevent"])},[N("span",px,se((ke.display_name||ke.email).charAt(0).toUpperCase()),1),N("span",vx,[N("span",mx,se(ke.display_name||ke.email),1),N("span",gx,se(ke.email)+" · "+se(ke.role),1)])],40,hx))),128))])):rt("",!0)]),tr(N("select",{"onUpdate:modelValue":W[5]||(W[5]=ke=>p.value=ke),class:"fx-perm-sel",title:(I=_.find(ke=>ke.v===p.value))==null?void 0:I.d},[(J(),ae(xt,null,ir(_,ke=>N("option",{key:ke.v,value:ke.v},se(ke.l),9,yx)),64))],8,bx),[[Gs,p.value]]),N("button",{class:"fx-perm-btn fx-perm-btn--primary",disabled:x.value,onClick:Ce},se(i("Ekle","Add")),9,xx)]),m.value?(J(),ae("div",_x,[N("p",wx,se(i("Bu e-postada hesap yok. Ne yapmak istersiniz?","No account for this email — what next?")),1),N("div",kx,[N("div",Sx,[tr(N("select",{"onUpdate:modelValue":W[6]||(W[6]=ke=>y.value=ke),class:"fx-perm-sel"},[N("option",Cx,se(i("Kullanıcı","User")),1),N("option",Ax,se(i("Görüntüleyen","Viewer")),1)],512),[[Gs,y.value]]),N("button",{class:"fx-perm-btn fx-perm-btn--primary",disabled:x.value,onClick:xe},se(i("Kullanıcı oluştur + yetki ver","Create user + grant")),9,Ex)]),N("button",{class:"fx-perm-btn fx-perm-btn--ghost",disabled:x.value,onClick:je},se(i("Sadece paylaşım linki gönder →","Just send a share link →")),9,Tx)])])):rt("",!0),g.value?(J(),ae("div",Mx,se(g.value),1)):rt("",!0),(Te=v.value)!=null&&Te.tempPassword?(J(),ae("div",Dx,[Zr(se(i("Geçici parola:","Temp password:"))+" ",1),N("code",null,se(v.value.tempPassword),1)])):rt("",!0)]),N("div",Ix,[N("h4",null,se(i("Erişimi olanlar","People with access")),1),!f.value.length&&!d.value.length?(J(),ae("div",zx,se(i("Henüz kimseyle paylaşılmadı.","Not shared with anyone yet.")),1)):rt("",!0),(J(!0),ae(xt,null,ir(f.value,ke=>(J(),ae("div",{key:"d"+ke.id,class:"fx-perm-person"},[N("span",Fx,se(at(ke)),1),N("span",{class:"fx-perm-user",title:ke.user_email},se(Ke(ke)),9,Ox),N("select",{class:"fx-perm-sel fx-perm-sel--sm",value:ke.level,onChange:S=>Ne(ke,S.target.value)},[(J(),ae(xt,null,ir(_,S=>N("option",{key:S.v,value:S.v},se(S.l),9,Rx)),64))],40,Px),N("button",{class:"fx-perm-del",disabled:x.value,title:i("Kaldır","Remove"),onClick:S=>Ue(ke)},"✕",8,Lx)]))),128)),(J(!0),ae(xt,null,ir(d.value,ke=>(J(),ae("div",{key:"i"+ke.id,class:"fx-perm-person fx-perm-inh"},[N("span",Bx,se(at(ke)),1),N("span",{class:"fx-perm-user",title:ke.user_email},se(Ke(ke)),9,Nx),N("span",$x,se(E(ke.level)),1),N("span",{class:"fx-perm-from",title:i("Üst klasörden gelir","Inherited from")+": "+(ke.path_prefix||"/")}," ↳ "+se(ke.path_prefix||"/"),9,Ux)]))),128))])],64))],64)):rt("",!0),l.value==="share"?(J(),ae(xt,{key:1},[N("div",Hx,[N("div",jx,[N("label",Gx,[tr(N("input",{type:"checkbox","onUpdate:modelValue":W[7]||(W[7]=ke=>R.value=ke)},null,512),[[js,R.value]]),Zr(" "+se(i("PIN ile koru","Protect with a PIN")),1)]),N("label",Vx,[N("span",qx,se(i("Süre","Expiry")),1),tr(N("select",{"onUpdate:modelValue":W[8]||(W[8]=ke=>O.value=ke),class:"fx-perm-sel fx-perm-sel--sm"},[(J(),ae(xt,null,ir(_e,ke=>N("option",{key:ke.v,value:ke.v},se(ke.l),9,Wx)),64))],512),[[Gs,O.value,void 0,{number:!0}]])]),N("button",{class:"fx-perm-btn fx-perm-btn--primary",disabled:z.value,onClick:st},se(i("Bağlantı oluştur","Create link")),9,Kx)]),Z.value?(J(),ae("div",Xx,se(Z.value),1)):rt("",!0),H.value?(J(),ae("div",Yx,[N("div",Zx,[N("a",{href:H.value.url,target:"_blank",rel:"noopener",class:"fx-perm-link"},se(H.value.url),9,Jx),N("button",{class:"fx-perm-btn fx-perm-btn--sm",onClick:W[9]||(W[9]=ke=>Re(H.value.url,"new"))},se(q.value==="new"?i("Kopyalandı ✓","Copied ✓"):i("Kopyala","Copy")),1)]),H.value.pin?(J(),ae("div",Qx,[N("span",null,[W[23]||(W[23]=Zr("PIN: ",-1)),N("code",null,se(H.value.pin),1)]),N("button",{class:"fx-perm-btn fx-perm-btn--sm",onClick:W[10]||(W[10]=ke=>Re(H.value.pin,"sharepin"))},se(q.value==="sharepin"?i("Kopyalandı ✓","Copied ✓"):i("Kopyala","Copy")),1)])):rt("",!0),N("div",e_,[tr(N("input",{"onUpdate:modelValue":W[11]||(W[11]=ke=>X.value=ke),type:"text",class:"fx-perm-input",autocomplete:"off",placeholder:i("e-posta(lar) — virgülle ayırın","email(s) — comma separated"),onKeyup:ca(yt,["enter"])},null,40,t_),[[on,X.value]]),N("button",{class:"fx-perm-btn",disabled:Q.value,onClick:yt},se(i("Gönder","Send")),9,r_)]),te.value?(J(),ae("div",n_,se(te.value),1)):rt("",!0)])):X.value?(J(),ae("p",a_,[Zr(se(i("Aşağıdan bir bağlantı oluşturun, ardından","Create a link below, then it will be sent to"))+" ",1),N("strong",null,se(X.value),1),Zr(" "+se(i("adresine gönderin.",".")),1)])):rt("",!0)]),N("div",i_,[N("h4",null,se(i("Mevcut bağlantılar","Existing links")),1),M.value.length?rt("",!0):(J(),ae("div",o_,se(i("Yok","None")),1)),(J(!0),ae(xt,null,ir(M.value,ke=>(J(),ae("div",{key:ke.uuid,class:"fx-perm-person"},[N("span",{class:"fx-perm-user fx-perm-link",title:ke.url},se(ke.url),9,l_),N("button",{class:"fx-perm-btn fx-perm-btn--sm",onClick:S=>Re(ke.url,ke.uuid)},se(q.value===ke.uuid?i("✓","✓"):i("Kopyala","Copy")),9,s_),N("button",{class:"fx-perm-del",disabled:z.value,title:i("İptal","Revoke"),onClick:S=>Ae(ke)},"✕",8,u_)]))),128))])],64)):rt("",!0),l.value==="drop"?(J(),ae("div",c_,[N("p",f_,se(i("Bu klasöre herkesin dosya YÜKLEYEBİLECEĞİ herkese açık bir bağlantı. Yükleyenler klasördeki mevcut dosyaları göremez.","A public link that lets anyone UPLOAD files into this folder. Uploaders never see the folder's existing files.")),1),N("div",d_,[N("label",h_,[tr(N("input",{type:"checkbox","onUpdate:modelValue":W[12]||(W[12]=ke=>he.value=ke)},null,512),[[js,he.value]]),Zr(" "+se(i("PIN ile koru","Protect with a PIN")),1)]),N("label",p_,[N("span",v_,se(i("Süre","Expiry")),1),tr(N("select",{"onUpdate:modelValue":W[13]||(W[13]=ke=>we.value=ke),class:"fx-perm-sel fx-perm-sel--sm"},[(J(),ae(xt,null,ir(_e,ke=>N("option",{key:ke.v,value:ke.v},se(ke.l),9,m_)),64))],512),[[Gs,we.value,void 0,{number:!0}]])]),N("button",{class:"fx-perm-btn fx-perm-btn--primary",disabled:Me.value,onClick:D},se(i("Bağlantı oluştur","Create link")),9,g_)]),N("button",{type:"button",class:"fx-perm-btn fx-perm-btn--ghost fx-perm-advtoggle",onClick:W[14]||(W[14]=ke=>pe.value=!pe.value)},se(pe.value?i("Gelişmiş ▲","Advanced ▲"):i("Gelişmiş ▼","Advanced ▼")),1),pe.value?(J(),ae("div",b_,[N("label",y_,[N("span",x_,se(i("En fazla dosya","Max files")),1),tr(N("input",{"onUpdate:modelValue":W[15]||(W[15]=ke=>De.value=ke),type:"number",min:"1",class:"fx-perm-input fx-perm-input--sm",placeholder:"20"},null,512),[[on,De.value]])]),N("label",__,[N("span",w_,se(i("Dosya başı MB","MB / file")),1),tr(N("input",{"onUpdate:modelValue":W[16]||(W[16]=ke=>Ee.value=ke),type:"number",min:"1",class:"fx-perm-input fx-perm-input--sm",placeholder:"500"},null,512),[[on,Ee.value]])]),N("label",k_,[N("span",S_,se(i("İzinli türler","Allowed types")),1),tr(N("input",{"onUpdate:modelValue":W[17]||(W[17]=ke=>Oe.value=ke),type:"text",class:"fx-perm-input fx-perm-input--sm",placeholder:i("hepsi (örn. pdf, jpg)","all (e.g. pdf, jpg)")},null,8,C_),[[on,Oe.value]])]),N("label",A_,[tr(N("input",{type:"checkbox","onUpdate:modelValue":W[18]||(W[18]=ke=>Pe.value=ke)},null,512),[[js,Pe.value]]),Zr(" "+se(i("Yükleyenin adını sor","Ask uploader name")),1)])])):rt("",!0),ce.value?(J(),ae("div",E_,se(ce.value),1)):rt("",!0),ye.value?(J(),ae("div",T_,[N("div",M_,[N("a",{href:ye.value.url,target:"_blank",rel:"noopener",class:"fx-perm-link"},se(ye.value.url),9,D_),N("button",{class:"fx-perm-btn fx-perm-btn--sm",onClick:W[19]||(W[19]=ke=>Re(ye.value.url,"drop"))},se(q.value==="drop"?i("Kopyalandı ✓","Copied ✓"):i("Kopyala","Copy")),1)]),ye.value.pin?(J(),ae("div",I_,[N("span",null,[W[24]||(W[24]=Zr("PIN: ",-1)),N("code",null,se(ye.value.pin),1)]),N("button",{class:"fx-perm-btn fx-perm-btn--sm",onClick:W[20]||(W[20]=ke=>Re(ye.value.pin,"droppin"))},se(q.value==="droppin"?i("Kopyalandı ✓","Copied ✓"):i("Kopyala","Copy")),1)])):rt("",!0),N("div",z_,[tr(N("input",{"onUpdate:modelValue":W[21]||(W[21]=ke=>ge.value=ke),type:"text",class:"fx-perm-input",autocomplete:"off",placeholder:i("e-posta(lar) — virgülle ayırın","email(s) — comma separated"),onKeyup:ca(re,["enter"])},null,40,F_),[[on,ge.value]]),N("button",{class:"fx-perm-btn",disabled:B.value,onClick:re},se(i("Gönder","Send")),9,O_)]),V.value?(J(),ae("div",P_,se(V.value),1)):rt("",!0)])):rt("",!0)])):rt("",!0)])])])}}}),[["__scopeId","data-v-4228dd5b"]]),L_={key:0,class:"fe__loading"},B_={class:"fe__loading-text"},N_={key:0,class:"fe__dragover"},$_={class:"fe-recents__header"},U_={class:"fe-modal__head"},H_={class:"fe-modal__title"},j_={class:"fe-modal__body"},G_={key:0,class:"fe-toast"},up="brf-file-explorer:view-mode",gc="brf-file-explorer:path",Sl="application/x-brf-files",V_=Wt({__name:"FileExplorer",props:{config:{}},emits:["share-created","file-opened","error","upload-progress","selection-change"],setup(e,{emit:t}){const r=e,n=t,a=z6(r.config),i=F6(r.config,a),o=B6(r.config,a,{onSettled:j=>{if(j.status==="error")D(j.error_message||"İşlem başarısız");else{const G=j.op_type==="copy"?"Kopyalandı":j.op_type==="move"?"Taşındı":"Silindi";D(`${G} (${j.progress_total})`)}I()}}),l=fe(!1),s=(r.config.rootPath||"").trim(),u=s.replace("://","/").replace(/^\/+|\/+$/g,""),c=u||r.config.initialPath||"",f=fe(c),d=fe(r.config.defaultAdapter||"brf"),h=fe(c),b=fe([]),p=fe(""),x=T5((j,G)=>{let ze=(()=>{try{const He=localStorage.getItem(up);if(He==="list"||He==="grid")return He}catch{}return r.config.viewMode??"list"})();return{get(){return j(),ze},set(He){if(He!==ze){ze=He;try{localStorage.setItem(up,He)}catch{}G()}}}}),g=fe(""),m=fe(!1),y=fe(""),v=gt(()=>m.value),k=gt(()=>r.config.locale||"tr"),C=gt(()=>{const j=(f.value??"").replace(/^\/+|\/+$/g,"");return u&&j===u?!1:j.length>0}),A=gt(()=>re.value?!(f.value??"").replace(/^\/+|\/+$/g,""):!1);function _(){if(m.value){I(y.value);return}const j=(f.value??"").replace(/^\/+|\/+$/g,"");if(!j||j===u)return;const G=j.lastIndexOf("/");let ze=G===-1?"":j.slice(0,G);u&&!(ze===u||ze.startsWith(u+"/"))&&(ze=u),I(ze)}const{t:E}=Mn(k),M=O6(()=>b.value);er(()=>[...M.selected.value],()=>{n("selection-change",M.nodes.value.map(j=>({path:j.path,basename:j.basename,type:j.type})))});const z=fe({mode:null,items:[],sourcePath:null}),R=fe(null),O=fe(new Set),H=fe(!1),Z=fe(!1),q=fe(null),X=fe(0);async function Q(){try{const j=await Jo(),G=r.config.apiBase??"",ze=await fetch(`${G}/api/files/manager/star/list?limit=500`,{headers:j,credentials:"include"});if(!ze.ok)return;const He=await ze.json(),kt=Array.isArray(He)?He:Array.isArray(He==null?void 0:He.entries)?He.entries:Array.isArray(He==null?void 0:He.nodes)?He.nodes:[];O.value=new Set(kt.map(ct=>ct.id).filter(ct=>typeof ct=="number"))}catch{}}function te(j,G){if(typeof j.id!="number")return;const ze=new Set(O.value);G?ze.add(j.id):ze.delete(j.id),O.value=ze}async function _e(j){if(typeof j.id=="number")try{const G=r.config.apiBase??"";await fetch(`${G}/api/files/manager/recent`,{method:"POST",headers:await Jo({"Content-Type":"application/json"}),credentials:"include",body:JSON.stringify({node_id:j.id})}),X.value+=1}catch{}}function he(j){typeof j.id=="number"&&(q.value=j,Z.value=!0)}function we(j){const G={type:"file",path:j.path,basename:j.name,extension:(j.name.split(".").pop()||"").toLowerCase(),id:j.id};H.value=!1,tt(G)}const pe=gt(()=>{var G,ze,He;if(r.config.onlyOfficeBase)return r.config.onlyOfficeBase;const j=(ze=(G=R.value)==null?void 0:G.external)==null?void 0:ze.onlyoffice;return j&&!np(j)?null:((He=R.value)==null?void 0:He.onlyoffice_url)||null}),De=gt(()=>pe.value&&a.endpoints.onlyOfficeConfig||null),Ee=gt(()=>{var ze,He,kt;const j=r.config.drawioUrl||r.config.drawioBase;if(j)return j;const G=(He=(ze=R.value)==null?void 0:ze.external)==null?void 0:He.drawio;return G&&!np(G)?null:((kt=R.value)==null?void 0:kt.drawio_url)||null}),Oe=gt(()=>{var j;return r.config.convertBase||((j=R.value)==null?void 0:j.convert_url)||null}),Pe=fe([]),Me=fe(null),ce=fe(!1),ye=fe(!1),ge=fe(!1),B=fe(!1),V=fe(!1),oe=fe(null),de=fe(null),ee=fe(null),ie=fe(null),ue=fe("edit"),ve=fe(!1),Ce=fe(null),xe=fe(!1),je=fe(null);function Ne(j){return j===void 0||j==="editor"||j==="owner"}function Ue(j){var G;return j.length===1&&typeof((G=j[0])==null?void 0:G.perm)=="string"?j[0].perm:p.value}const Ke=gt(()=>Ne(p.value)),at=fe(null),ut=fe(null),st=fe(null),yt=fe(null);let Ie;function D(j){yt.value=j,Ie&&clearTimeout(Ie),Ie=setTimeout(()=>yt.value=null,2500)}const re=gt(()=>r.config.multiStorageRoot===!0);function Ae(j){const G=j.replace(/^\/+|\/+$/g,"");if(!G)return{adapter:"",rel:""};const ze=G.indexOf("/");return ze===-1?{adapter:G,rel:""}:{adapter:G.slice(0,ze),rel:G.slice(ze+1)}}function Re(j){if(j.includes("://"))return j;const{adapter:G,rel:ze}=Ae(j);return G?ze?`${G}://${ze}`:`${G}://`:""}function $(j){const G=j.indexOf("://");if(G===-1)return j.replace(/^\/+|\/+$/g,"");const ze=j.slice(0,G),He=j.slice(G+3).replace(/^\/+|\/+$/g,"");return He?`${ze}/${He}`:ze}function W(){return(r.config.storages??[]).map(G=>({type:"dir",path:G.name,basename:G.label||G.name,extension:"",storage:G.name,visibility:"private",file_size:0,mime_type:"inode/storage",extra_metadata:{driver:G.driver,readOnly:G.readOnly}}))}async function I(j){l.value=!0,m.value=!1;try{let G=j??f.value??"";if(u){const Fr=String(G).replace(/^\/+|\/+$/g,"");(!Fr||!(Fr===u||Fr.startsWith(u+"/")))&&(G=u)}if(re.value&&!Re(G)){f.value="",d.value="",h.value="",b.value=W();return}const ze=re.value?Re(G):S(G),He=g.value?await a.search(ze,g.value):await a.index(ze);d.value=He.adapter,h.value=He.dirname,p.value=He.perm||"",b.value=(He.files||[]).filter(Fr=>!(Fr.path.includes(".thumbs")||Fr.path.includes(".versions")||Fr.basename===".versions"||Fr.basename===".trash"||Fr.basename===".keepdir"));const kt=Te(He.dirname),ct=kt==="fileman"||kt==="",vr=kt.startsWith("fileman/.trash"),Nr=r.config.trashVisible!==!1;!vr&&ct&&Nr&&b.value.unshift({type:"dir",path:`${He.adapter}://fileman/.trash`,basename:".trash",extension:"",storage:He.adapter,visibility:"private",file_size:0,mime_type:"inode/directory",extra_metadata:{}}),f.value=re.value?$(He.dirname):Te(He.dirname)}catch(G){const ze=G instanceof Error?G.message:String(G);n("error",{message:ze,context:{path:j}}),D(ze)}finally{l.value=!1}}function Te(j){const G=j.indexOf("://");return G===-1?j:j.slice(G+3)}async function ke(){l.value=!0,y.value=d.value||"",m.value=!0,M.clear();try{const{entries:j}=await a.listTrash();b.value=j.map(G=>({type:"file",id:G.id,path:G.storage_name?`${G.storage_name}://${G.path}`:G.path,basename:G.name,extension:G.name.includes(".")&&G.name.split(".").pop()||"",storage:G.storage_name||"",visibility:"private",file_size:G.size,mime_type:G.mime||"",extra_metadata:{deleted_at:G.deleted_at,ttl_days:G.ttl_days??null}})),h.value=".trash",f.value=".trash"}catch(j){const G=j instanceof Error?j.message:String(j);n("error",{message:G,context:{op:"trash-list"}}),D(G)}finally{l.value=!1}}function S(j){if(j&&j.includes("://"))return j;if(re.value){const G=Re(j??"");return G||(d.value?`${d.value}://`:"")}return j?`${d.value}://${j.replace(/^\/+/,"")}`:`${d.value}://`}er(()=>g.value,()=>void I());function me(){return r.config.pathPersist??"hash"}function Se(){if(typeof window>"u")return"";const j=me();if(j==="none")return"";if(j==="localStorage")try{return localStorage.getItem(gc)||""}catch{return""}const G=window.location.hash||"";return G.startsWith("#")?decodeURIComponent(G.slice(1)).replace(/^\/+|\/+$/g,""):""}let P=!1;function ne(j){if(typeof window>"u")return;const G=me();if(G==="none")return;if(G==="localStorage"){try{j?localStorage.setItem(gc,j):localStorage.removeItem(gc)}catch{}return}const ze=j?`#${j}`:"";window.location.hash!==ze&&(P=!0,history.replaceState(null,"",ze||window.location.pathname+window.location.search))}function be(){if(me()!=="hash")return;if(P){P=!1;return}const j=Se();j&&j!==f.value&&I(j)}er(f,j=>ne(j)),mr(async()=>{var G;vc();const j=Se();await I(j||void 0),await Ea(),(G=ut.value)==null||G.focus(),Q(),me()==="hash"&&window.addEventListener("hashchange",be),a.endpoints.opsList&&o.startPolling(),a.endpoints.capabilities&&a.capabilities().then(ze=>{R.value=ze}).catch(()=>{})}),P6(ut,{onDelete:()=>{M.isEmpty.value||(ge.value=!0)},onRename:()=>{M.nodes.value.length===1&&(oe.value=M.nodes.value[0],ye.value=!0)},onSelectAll:()=>M.selectAll(),onOpen:()=>{const j=M.nodes.value[0];j&&tt(j)},onClose:()=>{var j;ce.value=!1,ye.value=!1,ge.value=!1,B.value=!1,V.value=!1,(j=at.value)==null||j.hide()},onFocusSearch:()=>{var j;return(j=st.value)==null?void 0:j.focusSearch()},onCut:()=>CT(),onCopy:()=>AT(),onPaste:()=>Rb(),onGoUp:()=>_(),hasSelection:()=>!M.isEmpty.value});const pt=new Set(["docx","xlsx","pptx","doc","xls","ppt","odt","ods","odp"]);function tt(j){if(j.basename===".trash"){ke();return}if(j.type==="dir"){const ze=re.value?$(j.path):Te(j.path);I(ze);return}const G=(j.extension||"").toLowerCase();ue.value=Ne(j.perm??p.value)?It(G):"view",ie.value=j,V.value=!0,n("file-opened",{path:j.path,basename:j.basename}),_e(j)}const lt=new Set([...pt,"drawio","dio","pdf","epub","ipynb","tiff","tif","psd","mmd","mermaid","glb","gltf","obj","stl","fbx","3ds","zip","rar","7z","tar","gz","tgz","jpg","jpeg","png","webp","gif","bmp","avif","svg","heic","mp4","webm","mov","mkv","m4v","ogv","mp3","wav","ogg","flac","m4a","aac","opus"]);function It(j){return lt.has(j)?"view":"edit"}async function Jn(j){const G=j??M.nodes.value;if(G.length!==0)try{if(m.value){const kt=G.map(vr=>vr.id).filter(vr=>typeof vr=="number"),{restored:ct}=await a.restoreIds(kt);D(`${ct} öğe geri getirildi`),M.clear(),await ke();return}if(!a.endpoints.restore)return;const ze=G.map(kt=>kt.path),{restored:He}=await a.restore(ze);D(`${He} öğe geri getirildi`),M.clear(),await I()}catch(ze){n("error",{message:ze.message,context:{op:"restore"}})}}function rr(j){ue.value="view",ie.value=j,V.value=!0,_e(j)}function Rt(j){if(j.type==="dir"){const ct=re.value?$(j.path):Te(j.path);I(ct);return}if(!Ne(j.perm??p.value)){rr(j);return}const G=(j.extension||"").toLowerCase(),ze=r.config.openPageBase;if(!ze){tt(j);return}const He=ze.includes("?")?"&":"?",kt=`${ze}${He}path=${encodeURIComponent(j.path)}&type=${encodeURIComponent(G)}&mode=edit`;window.open(kt,"_blank","noopener"),n("file-opened",{path:j.path,basename:j.basename}),_e(j)}const nr=fe("selection"),wr=fe(""),Wr=fe(""),Yo=gt(()=>{const j=M.nodes.value;return j.length===0?"none":j.length===1?j[0].type==="dir"?"single-dir":"single-file":"multi"});async function Zo(j){const G=M.nodes.value;if(j==="open"){G[0]&&tt(G[0]);return}await Pb(j,G)}async function fr(j,G){var ze;nr.value="selection",M.has(j.path)||(M.click(j.path),await Ea()),(ze=at.value)==null||ze.show({clientX:G.clientX,clientY:G.clientY},M.nodes.value)}function cn(j){var G;j.preventDefault(),nr.value="selection",M.clear(),(G=at.value)==null||G.show({clientX:j.clientX,clientY:j.clientY},[])}function Ar(j){var G;nr.value="breadcrumb",wr.value=j.adapterPath,Wr.value=j.label,(G=at.value)==null||G.show({clientX:j.x,clientY:j.y},[])}const Qn=gt(()=>{if(nr.value==="breadcrumb")return[{key:"open",label:E("ctx.open"),icon:"↗"},{key:"copy-path",label:E("breadcrumb.copy_path"),icon:"📋"}];const j=M.nodes.value,G=j.length>0,ze=j.length===1;if(v.value)return G?[{key:"restore",label:E("ctx.restore"),icon:"↩"},{divider:!0,key:"sep1",label:""},{key:"delete",label:E("ctx.delete_perm"),icon:"🗑",danger:!0}]:[];const He=(f.value??"").replace(/^\/+|\/+$/g,"");return re.value&&He===""?G?ze?[{key:"open",label:E("ctx.open"),icon:"↗"}]:[]:[]:G?An(j):Ne(p.value)?[{key:"new-folder",label:E("toolbar.new_folder"),icon:"📁"},{key:"paste",label:E("ctx.paste"),icon:"📋",disabled:!z.value.mode}]:[]});function An(j){var Gb,Vb;const G=j.length>0,ze=j.length===1,He=ze&&((Gb=j[0])==null?void 0:Gb.type)==="file",kt=k.value==="en"?"Tags…":"Etiketler…",ct=ze&&typeof((Vb=j[0])==null?void 0:Vb.id)=="number",vr=k.value==="en"?"Copy node id":"Node id'yi kopyala",Nr=Ue(j),Fr=Ne(Nr),XT=k.value==="en"?"Share / Permissions":"Paylaş / İzinler";return[{key:"open",label:E("ctx.open"),icon:"↗",hidden:!ze},{key:"preview",label:E("ctx.preview"),icon:"👁",hidden:!ze,disabled:!He},{key:"download",label:E("ctx.download"),icon:"⬇",hidden:!ze,disabled:!He},{key:"convert",label:E("ctx.convert"),icon:"🔄",hidden:!ze||!Oe.value||!Fr,disabled:!He},{key:"access",label:XT,icon:"🔗",hidden:!ze||!Fr},{key:"copy-id",label:vr,icon:"🆔",hidden:!ct,disabled:!ct},{divider:!0,key:"sep1",label:"",hidden:!Fr},{key:"rename",label:E("ctx.rename"),icon:"✎",hidden:!ze||!Fr,disabled:!ze},{key:"cut",label:E("ctx.cut"),icon:"✂",hidden:!G||!Fr,disabled:!G},{key:"copy",label:E("ctx.copy"),icon:"❐",hidden:!G,disabled:!G},{key:"paste",label:E("ctx.paste"),icon:"📋",hidden:!Fr,disabled:!z.value.mode},{divider:!0,key:"sep-meta",label:"",hidden:!ct},{key:"tags",label:kt,icon:"🏷",hidden:!ct,disabled:!ct},{divider:!0,key:"sep2",label:"",hidden:!Fr},{key:"delete",label:E("ctx.delete"),icon:"🗑",danger:!0,hidden:!G||!Fr,disabled:!G}]}const _u=gt(()=>{const j=M.nodes.value;if(v.value)return j.length===0?[]:[{key:"restore",label:E("ctx.restore"),icon:"↩"},{key:"delete",label:E("ctx.delete_perm"),icon:"🗑",danger:!0}];const G=(f.value??"").replace(/^\/+|\/+$/g,"");return re.value&&G===""?j.length===1?[{key:"open",label:E("ctx.open"),icon:"↗"}]:[]:j.length===0?[]:An(j)});async function ST(j,G){if(nr.value==="breadcrumb"){j.key==="open"?I(Te(wr.value)):j.key==="copy-path"&&await jb(wr.value);return}await Pb(j.key,G)}async function Pb(j,G){var ze;switch(j){case"open":G[0]&&Rt(G[0]);break;case"preview":G[0]&&rr(G[0]);break;case"download":G[0]&&TT(G[0]);break;case"convert":G[0]&&FT(G[0]);break;case"share":G[0]&&zT(G[0]);break;case"access":G[0]&&(je.value=G[0],xe.value=!0);break;case"copy-id":if(G[0]&&typeof G[0].id=="number"){const He=G[0].id;(ze=navigator.clipboard)==null||ze.writeText(String(He)).then(()=>D(k.value==="en"?`Node id ${He} copied`:`Node id ${He} kopyalandı`),()=>D(`#${He}`))}break;case"tags":G[0]&&he(G[0]);break;case"rename":G[0]&&(oe.value=G[0],ye.value=!0);break;case"cut":z.value={mode:"cut",items:G,sourcePath:f.value},D("Kes → Yapıştır hazır");break;case"copy":z.value={mode:"copy",items:G,sourcePath:f.value},D("Kopyala → Yapıştır hazır");break;case"paste":await Rb();break;case"delete":ge.value=!0;break;case"restore":G.length>0&&await Jn(G);break;case"new-folder":ce.value=!0;break;case"duplicate":G[0]&&await ET(G[0]);break}}function CT(){M.isEmpty.value||(z.value={mode:"cut",items:M.nodes.value,sourcePath:f.value},D("Kesildi"))}function AT(){M.isEmpty.value||(z.value={mode:"copy",items:M.nodes.value,sourcePath:f.value},D("Kopyalandı"))}async function Rb(){const j=z.value;if(!(!j.mode||j.items.length===0))try{const G=j.items.map(kt=>kt.path),ze=j.sourcePath||"";if(j.mode==="cut"&&ze===f.value){D("Aynı klasöre kesilemez");return}if(j.mode==="cut"){const{op:kt}=await a.moveAsync(G,S(f.value),S(ze)||void 0);o.register(kt),D("Taşıma kuyruğa alındı")}else{const{op:kt}=await a.copy(G,S(f.value));o.register(kt),D("Kopyalama kuyruğa alındı")}z.value={mode:null,items:[],sourcePath:null}}catch(G){n("error",{message:G.message,context:{op:"paste"}})}}async function ET(j){try{const{op:G}=await a.copy([j.path],S(f.value));o.register(G)}catch(G){n("error",{message:G.message,context:{op:"duplicate"}})}}function TT(j){const G=a.downloadUrl(j.path);window.open(G,"_blank")}async function MT(j){try{await a.newFolder(S(f.value),j),ce.value=!1,await I()}catch(G){n("error",{message:G.message,context:{op:"newfolder"}})}}async function DT(j){const G=oe.value;if(G)try{await a.rename(S(f.value),G.path,j),ye.value=!1,oe.value=null,await I()}catch(ze){n("error",{message:ze.message,context:{op:"rename"}})}}async function IT(){if(m.value){ge.value=!1,D("Çöpteki öğeler saklama süresi sonunda otomatik silinir. Kalıcı silme yönetici panelinden yapılır.");return}const j=M.nodes.value.map(G=>G.path);if(j.length===0){ge.value=!1;return}try{if(a.endpoints.deleteAsync){const{op:G}=await a.deleteAsync(j,S(f.value));o.register(G),D("Silme kuyruğa alındı")}else await a.deleteItems(S(f.value),j),await I();ge.value=!1,M.clear()}catch(G){n("error",{message:G.message,context:{op:"delete"}})}}function zT(j){de.value=j,ee.value=null,B.value=!0}function FT(j){Ce.value=j,ve.value=!0}function OT(j){D(k.value==="en"?`Converted → ${j}`:`Dönüştürüldü → ${j}`),I()}async function PT(j){const G=de.value;if(G)try{const{share:ze}=await a.createShare({path:G.path,password:j.password,expires_at:j.expires_at,max_downloads:j.max_downloads});ee.value=ze,n("share-created",{path:G.path,url:ze.url,pin:ze.password_pin??null})}catch(ze){n("error",{message:ze.message,context:{op:"share"}})}}function RT(){B.value=!1,de.value=null,ee.value=null}function LT(){var j;if(!Ke.value){D(k.value==="en"?"Read-only here":"Burada yazma yetkiniz yok");return}(j=Me.value)==null||j.click()}function BT(j){const G=j.target,ze=G.files?Array.from(G.files):[];G.value="",Lb(ze)}async function Lb(j){if(j.length===0)return;const G=!!(a.endpoints.uploadInit&&a.endpoints.uploadFinalize);for(const ze of j)G&&ze.size>=10*1024*1024&&await $T(ze)||await NT(ze);await I()}async function NT(j){const G=crypto.randomUUID(),ze=S(f.value);Pe.value=[...Pe.value,{id:G,file:j,path:ze,totalBytes:j.size,uploadedBytes:0,percent:0,status:"uploading",cancel(){}}];const He=kt=>{const ct=Pe.value.findIndex(Nr=>Nr.id===G);if(ct===-1)return;const vr=[...Pe.value];vr[ct]={...vr[ct],...kt},Pe.value=vr};try{await a.uploadMultipart(ze,[j],kt=>{He({percent:kt,uploadedBytes:Math.round(kt/100*j.size)}),n("upload-progress",{uploadId:G,percent:kt,done:kt>=100})}),He({percent:100,uploadedBytes:j.size,status:"done"}),n("upload-progress",{uploadId:G,percent:100,done:!0})}catch(kt){He({status:"error"}),n("error",{message:kt.message,context:{op:"upload",file:j.name}})}}async function $T(j){const G=crypto.randomUUID();let ze=!1;try{return await i.uploadFile({path:S(f.value),file:j,onProgress:He=>{if(ze){const kt=Pe.value.findIndex(ct=>ct.id===G);if(kt!==-1){const ct=[...Pe.value];ct[kt]={...He,id:G},Pe.value=ct}}else{if(He.status!=="uploading"&&He.uploadedBytes<=0)return;Pe.value=[...Pe.value,{...He,id:G}],ze=!0}n("upload-progress",{uploadId:He.uploadId??G,percent:He.percent,done:He.status==="done"})}}),!0}catch{return ze&&(Pe.value=Pe.value.filter(He=>He.id!==G)),!1}}const Wi=fe(0),Ki=fe(!1);function Pd(j){const G=j.dataTransfer;if(!G||G.types&&G.types.includes(Sl))return!1;if(G.items&&G.items.length>0){let ze=!1;for(const He of Array.from(G.items))if(He.kind==="file"){ze=!0;break}return ze}return G.types?G.types.includes("Files"):!1}function UT(j){Pd(j)&&(j.preventDefault(),Wi.value++,Ki.value=!0)}function HT(){Wi.value=Math.max(0,Wi.value-1),Wi.value===0&&(Ki.value=!1)}function jT(j){Pd(j)&&j.preventDefault()}function GT(j){var ze,He;if((ze=j.dataTransfer)!=null&&ze.types.includes(Sl)){Wi.value=0,Ki.value=!1;return}if(!Pd(j)){Wi.value=0,Ki.value=!1;return}if(j.preventDefault(),Wi.value=0,Ki.value=!1,!Ke.value){D(k.value==="en"?"Read-only here":"Burada yazma yetkiniz yok");return}const G=(He=j.dataTransfer)!=null&&He.files?Array.from(j.dataTransfer.files):[];G.length!==0&&Lb(G)}function Bb(j){var G;(G=j.dataTransfer)!=null&&G.types.includes("Files")&&j.preventDefault()}function Nb(j){const G=ut.value,ze=j.target;G&&ze&&!G.contains(ze)&&j.preventDefault()}mr(()=>{window.addEventListener("dragover",Bb),window.addEventListener("drop",Nb)}),Ur(()=>{window.removeEventListener("dragover",Bb),window.removeEventListener("drop",Nb),window.removeEventListener("hashchange",be)});const Rd=gt(()=>z.value.mode!=="cut"?new Set:new Set(z.value.items.map(j=>j.path)));function $b(j,G){if(!G.dataTransfer)return;if(j.basename===".trash"){G.preventDefault();return}M.has(j.path)||M.click(j.path);const ze=M.nodes.value.filter(He=>!Rd.value.has(He.path)).filter(He=>He.basename!==".trash").map(He=>({path:He.path,basename:He.basename,type:He.type}));G.dataTransfer.setData(Sl,JSON.stringify(ze)),G.dataTransfer.setData("text/plain",ze.map(He=>He.path).join(`
21
+ `)),G.dataTransfer.effectAllowed="move"}async function Ub(j,G,ze){try{if(a.endpoints.moveAsync){const{op:He}=await a.moveAsync(j,G,S(f.value));o.register(He),D("Taşıma kuyruğa alındı")}else await a.move(S(f.value),j,G),await I();M.clear()}catch(He){n("error",{message:He.message,context:{op:ze,targetDir:G}})}}async function Hb(j,G){var vr;if(j.type!=="dir")return;const ze=(vr=G.dataTransfer)==null?void 0:vr.getData(Sl);if(!ze)return;let He=[];try{He=JSON.parse(ze)}catch{return}if(He.length===0)return;const kt=j.path,ct=He.map(Nr=>Nr.path).filter(Nr=>Nr&&Nr!==kt&&!kt.startsWith(Nr+"/"));if(ct.length===0){D("Aynı klasöre taşınamaz");return}await Ub(ct,kt,"move-dnd")}async function VT(j,G){var vr;const ze=(vr=G.dataTransfer)==null?void 0:vr.getData(Sl);if(!ze)return;let He=[];try{He=JSON.parse(ze)}catch{return}if(He.length===0)return;const kt=j,ct=He.map(Nr=>Nr.path).filter(Nr=>Nr&&Nr!==kt&&!kt.startsWith(Nr+"/"));ct.length!==0&&await Ub(ct,kt,"move-dnd-crumb")}function qT(j){j.cancel()}function WT(j){Pe.value=Pe.value.filter(G=>G.id!==j.id)}function KT(j){if(re.value&&!j){I("");return}if(re.value){I($(j));return}I(Te(j))}async function jb(j){try{await navigator.clipboard.writeText(j),D(E("breadcrumb.copy_path"))}catch{}}function Jo(j={}){return a.authHeadersSync({...j})}return(j,G)=>{var ze,He,kt;return J(),ae("div",{ref_key:"rootEl",ref:ut,class:Xt(["fe",{"fe--theme-light":e.config.theme==="light","fe--theme-dark":e.config.theme==="dark","fe--is-dragover":Ki.value}]),tabindex:"-1",onDragenter:UT,onDragover:jT,onDragleave:HT,onDrop:GT,onContextmenu:cn},[Bt(a8,{ref_key:"toolbarRef",ref:st,"view-mode":x.value,"search-query":g.value,"trash-active":v.value,actions:_u.value,"selection-mode":Yo.value,"paste-enabled":!!z.value.mode,"convert-enabled":!!Oe.value,"can-go-up":C.value,"at-virtual-root":A.value,"can-write":Ke.value,locale:k.value,"onUpdate:viewMode":G[0]||(G[0]=ct=>x.value=ct),"onUpdate:searchQuery":G[1]||(G[1]=ct=>g.value=ct),onNewFolder:G[2]||(G[2]=ct=>ce.value=!0),onUpload:LT,onRefresh:G[3]||(G[3]=()=>I()),onGoUp:_,onAction:Zo,onOpenRecents:G[4]||(G[4]=ct=>H.value=!0)},null,8,["view-mode","search-query","trash-active","actions","selection-mode","paste-enabled","convert-enabled","can-go-up","at-virtual-root","can-write","locale"]),Bt(w8,{dirname:h.value,adapter:d.value,"root-label":d.value,locale:k.value,"multi-storage-root":re.value,"root-path":Qe(s),onNavigate:KT,onCopyPath:jb,onCrumbContext:Ar,onCrumbDrop:VT},null,8,["dirname","adapter","root-label","locale","multi-storage-root","root-path"]),N("div",{class:"fe__body",onClick:G[7]||(G[7]=pr(ct=>Qe(M).clear(),["self"]))},[l.value&&b.value.length===0?(J(),ae("div",L_,[G[23]||(G[23]=N("span",{class:"fe__spinner","aria-hidden":"true"},null,-1)),N("p",B_,se(Qe(E)("loading")),1)])):x.value==="list"?(J(),kr(H8,{key:1,files:b.value,selected:Qe(M).selected.value,clipped:Rd.value,"show-parent-path":!!g.value,locale:k.value,loading:l.value,"starred-ids":O.value,"api-base":r.config.apiBase??"","auth-headers":()=>Jo(),onClickRow:G[5]||(G[5]=(ct,vr)=>Qe(M).click(ct.path,vr)),onDblRow:tt,onContextRow:fr,onItemDragStart:$b,onItemDropInto:Hb,onStarChange:te},null,8,["files","selected","clipped","show-parent-path","locale","loading","starred-ids","api-base","auth-headers"])):(J(),kr(Z8,{key:2,files:b.value,selected:Qe(M).selected.value,clipped:Rd.value,"show-parent-path":!!g.value,locale:k.value,loading:l.value,onClickCard:G[6]||(G[6]=(ct,vr)=>Qe(M).click(ct.path,vr)),onDblCard:tt,onContextCard:fr,onItemDragStart:$b,onItemDropInto:Hb},null,8,["files","selected","clipped","show-parent-path","locale","loading"]))]),Ki.value?(J(),ae("div",N_,[...G[24]||(G[24]=[N("div",{class:"fe__dragover-card"},[N("span",{class:"fe-icon"},"⬆"),N("p",null,"Dosyaları buraya bırak")],-1)])])):rt("",!0),Bt(h7,{jobs:Pe.value,locale:k.value,onCancel:qT,onDismiss:WT},null,8,["jobs","locale"]),Bt(y7,{ops:Qe(o).ops.value,locale:k.value,onDismiss:G[8]||(G[8]=ct=>Qe(o).dismiss(ct))},null,8,["ops","locale"]),Bt(n7,{ref_key:"ctxRef",ref:at,locale:k.value,theme:e.config.theme||"auto",actions:Qn.value,onSelect:ST},null,8,["locale","theme","actions"]),Bt(A7,{open:ce.value,locale:k.value,onClose:G[9]||(G[9]=ct=>ce.value=!1),onSubmit:MT},null,8,["open","locale"]),Bt(T7,{open:ye.value,locale:k.value,"current-name":((ze=oe.value)==null?void 0:ze.basename)||"",onClose:G[10]||(G[10]=ct=>ye.value=!1),onSubmit:DT},null,8,["open","locale","current-name"]),Bt(M7,{open:ge.value,locale:k.value,count:Qe(M).size.value,onClose:G[11]||(G[11]=ct=>ge.value=!1),onConfirm:IT},null,8,["open","locale","count"]),Bt(j7,{open:B.value,locale:k.value,share:ee.value,onClose:RT,onSubmit:PT,onToast:D},null,8,["open","locale","share"]),Bt(Py,{open:V.value,locale:k.value,file:ie.value,theme:e.config.theme||"auto","preview-url":ct=>Qe(a).previewUrl(ct),"download-url":ct=>Qe(a).downloadUrl(ct),"only-office-base":pe.value,"only-office-config-endpoint":De.value,"save-text-endpoint":Qe(a).endpoints.saveText||null,"open-mode":ue.value,"auth-headers":()=>Jo({"Content-Type":"application/json"}),"auth-credentials":Qe(a).credentialsMode(),"drawio-url":Ee.value,"pdf-worker-url":r.config.pdfWorkerUrl||null,"pdf-save-url":r.config.pdfSaveUrl||null,"viewer-base-url":r.config.viewerBaseUrl||null,onClose:G[12]||(G[12]=ct=>V.value=!1)},null,8,["open","locale","file","theme","preview-url","download-url","only-office-base","only-office-config-endpoint","save-text-endpoint","open-mode","auth-headers","auth-credentials","drawio-url","pdf-worker-url","pdf-save-url","viewer-base-url"]),ve.value&&Ce.value&&Oe.value?(J(),kr(Xy,{key:1,"convert-url":Oe.value,"file-name":((He=Ce.value)==null?void 0:He.basename)||((kt=Ce.value)==null?void 0:kt.path)||"","fetch-bytes":()=>{var ct;return Qe(a).fetchArrayBuffer(((ct=Ce.value)==null?void 0:ct.path)??"")},upload:ct=>Qe(a).uploadMultipart(S(f.value),[ct]).then(()=>{}),onClose:G[13]||(G[13]=ct=>ve.value=!1),onDone:OT},null,8,["convert-url","file-name","fetch-bytes","upload"])):rt("",!0),xe.value&&je.value?(J(),kr(R_,{key:2,api:Qe(a),path:je.value.path,"is-dir":je.value.type==="dir",size:typeof je.value.size=="number"?je.value.size:void 0,locale:k.value==="en"?"en":"tr",onClose:G[14]||(G[14]=ct=>xe.value=!1)},null,8,["api","path","is-dir","size","locale"])):rt("",!0),Bt(uo,{name:"fe-modal"},{default:Tr(()=>[H.value?(J(),ae("div",{key:0,class:Xt(["fe fe-modal__backdrop fe-recents__backdrop",{"fe--theme-light":e.config.theme==="light","fe--theme-dark":e.config.theme==="dark"}]),onClick:G[18]||(G[18]=ct=>H.value=!1)},[N("div",{class:"fe-recents__panel",onClick:G[17]||(G[17]=pr(()=>{},["stop"]))},[N("div",$_,[N("strong",null,se(k.value==="en"?"Recently opened":"Son açılanlar"),1),N("button",{class:"fe-recents__close","aria-label":"Close",onClick:G[15]||(G[15]=ct=>H.value=!1)},"×")]),Bt(m8,{"api-base":r.config.apiBase??"","auth-headers":()=>Jo(),limit:20,"refresh-key":X.value,onOpen:we,onError:G[16]||(G[16]=ct=>n("error",{message:ct,context:{op:"recents"}}))},null,8,["api-base","auth-headers","refresh-key"])])],2)):rt("",!0)]),_:1}),Bt(uo,{name:"fe-modal"},{default:Tr(()=>[Z.value&&q.value&&typeof q.value.id=="number"?(J(),ae("div",{key:0,class:"fe-modal__backdrop",onClick:G[22]||(G[22]=ct=>Z.value=!1)},[N("div",{class:"fe-modal__card fe-modal__card--md",onClick:G[21]||(G[21]=pr(()=>{},["stop"]))},[N("header",U_,[N("h2",H_,se(k.value==="en"?"Tags":"Etiketler")+" — "+se(q.value.basename),1),N("button",{class:"fe-modal__close","aria-label":"Close",onClick:G[19]||(G[19]=ct=>Z.value=!1)},"×")]),N("div",j_,[Bt(l8,{"node-id":q.value.id,"api-base":r.config.apiBase??"","auth-headers":()=>Jo(),onError:G[20]||(G[20]=ct=>n("error",{message:ct,context:{op:"tags"}}))},null,8,["node-id","api-base","auth-headers"])])])])):rt("",!0)]),_:1}),N("input",{ref_key:"fileInputEl",ref:Me,type:"file",multiple:"",class:"fe__file-input",onChange:BT},null,544),Bt(uo,{name:"fe-toast"},{default:Tr(()=>[yt.value?(J(),ae("div",G_,se(yt.value),1)):rt("",!0)]),_:1})],34)}}}),q_='.filex-tag-picker[data-v-629745b7]{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.filex-tag-picker.is-loading[data-v-629745b7]{opacity:.6;pointer-events:none}.filex-tag[data-v-629745b7]{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:500;color:#fff;background:var(--filex-tag-color)}.filex-tag-x[data-v-629745b7]{background:transparent;border:none;color:#ffffffd9;cursor:pointer;padding:0 2px;font-size:14px;line-height:1}.filex-tag-x[data-v-629745b7]:hover{color:#fff}.filex-tag-add input[data-v-629745b7]{border:1px solid var(--filex-border, #d1d5db);border-radius:12px;padding:2px 10px;font-size:12px;width:110px}.filex-tag-add-btn[data-v-629745b7]{border:1px dashed var(--filex-border, #d1d5db);background:transparent;border-radius:999px;padding:2px 10px;font-size:12px;color:var(--filex-text-muted, #6b7280);cursor:pointer}.filex-tag-add-btn[data-v-629745b7]:hover{border-color:var(--filex-accent, #6366f1);color:var(--filex-accent, #6366f1)}.filex-recent[data-v-be8c9080]{background:var(--fe-bg-elev, var(--filex-bg-card, #ffffff));border:1px solid var(--fe-border, var(--filex-border, #e5e7eb));border-radius:8px;padding:12px;font-size:13px}.filex-recent header[data-v-be8c9080]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.filex-recent h3[data-v-be8c9080]{margin:0;font-size:13px;font-weight:600;color:var(--fe-text, var(--filex-text, #111827))}.filex-recent-refresh[data-v-be8c9080]{background:transparent;border:none;color:var(--fe-text-muted, var(--filex-text-muted, #9ca3af));cursor:pointer;font-size:14px;padding:2px 6px}.filex-recent ul[data-v-be8c9080]{list-style:none;margin:0;padding:0}.filex-recent-item[data-v-be8c9080]{display:flex;justify-content:space-between;align-items:center;width:100%;background:transparent;border:none;padding:6px 8px;cursor:pointer;border-radius:4px;text-align:left}.filex-recent-item[data-v-be8c9080]:hover{background:var(--fe-bg-hover, var(--filex-bg-soft, #f3f4f6))}.filex-recent-name[data-v-be8c9080]{color:var(--fe-text, var(--filex-text, #111827));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filex-recent-meta[data-v-be8c9080]{color:var(--fe-text-muted, var(--filex-text-muted, #9ca3af));font-size:11px;margin-left:8px;flex-shrink:0}.filex-recent-empty[data-v-be8c9080]{color:var(--fe-text-muted, var(--filex-text-muted, #9ca3af));margin:4px 0 0}.filex-star-btn[data-v-bf2ee8db]{display:inline-flex;align-items:center;gap:6px;background:transparent;border:1px solid transparent;border-radius:6px;padding:4px 8px;color:var(--filex-text-muted, #9ca3af);cursor:pointer;transition:color .12s,background .12s}.filex-star-btn[data-v-bf2ee8db]:hover{color:var(--filex-accent-amber, #f59e0b);background:var(--filex-bg-soft, rgba(0, 0, 0, .04))}.filex-star-btn.is-starred[data-v-bf2ee8db]{color:var(--filex-accent-amber, #f59e0b)}.filex-star-btn.is-compact[data-v-bf2ee8db]{padding:4px}.filex-star-label[data-v-bf2ee8db]{font-size:13px}.fe-preview__code-editor.is-hidden{display:none}.fe-preview__viewer{width:100%;height:100%;min-height:70vh;display:flex;flex-direction:column}.fe-preview .fe-preview__viewer{align-self:stretch}.fe-preview__md-mermaid{display:flex;justify-content:center;margin:16px 0}.fe-preview__md-mermaid svg{max-width:100%;height:auto}.fe-preview__md-math{margin:16px 0;text-align:center;overflow-x:auto}.filex-cv__bg[data-v-4363f1ac]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;background:#0000008c;display:flex;align-items:center;justify-content:center}.filex-cv[data-v-4363f1ac]{width:min(560px,92vw);max-height:80vh;overflow:hidden;display:flex;flex-direction:column;background:var(--fe-bg, #fff);color:var(--fe-text, #1a1f29);border:1px solid var(--fe-border, #e2e6ed);border-radius:12px;box-shadow:0 20px 60px #00000059}.filex-cv__head[data-v-4363f1ac]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--fe-border, #e2e6ed)}.filex-cv__head h3[data-v-4363f1ac]{margin:0;font-size:14px;font-weight:600}.filex-cv__x[data-v-4363f1ac]{border:0;background:none;cursor:pointer;font-size:16px;color:var(--fe-text-muted, #5a6475)}.filex-cv__msg[data-v-4363f1ac]{padding:28px;text-align:center;color:var(--fe-text-muted, #5a6475)}.filex-cv__ok[data-v-4363f1ac]{color:#059669}.filex-cv__src[data-v-4363f1ac]{padding:12px 16px 0;font-size:13px;color:var(--fe-text-muted, #5a6475)}.filex-cv__search[data-v-4363f1ac]{margin:8px 16px;padding:8px 10px;border:1px solid var(--fe-border, #e2e6ed);border-radius:8px;background:var(--fe-bg-elev, #f7f8fa);color:inherit;font-size:13px}.filex-cv__list[data-v-4363f1ac]{flex:1;overflow-y:auto;padding:4px 12px 12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}.filex-cv__fmt[data-v-4363f1ac]{display:flex;flex-direction:column;gap:2px;align-items:flex-start;padding:8px 10px;cursor:pointer;text-align:left;border:1px solid var(--fe-border, #e2e6ed);border-radius:8px;background:var(--fe-bg-elev, #f7f8fa);color:inherit}.filex-cv__fmt small[data-v-4363f1ac]{color:var(--fe-text-muted, #5a6475);font-size:11px}.filex-cv__fmt.is-sel[data-v-4363f1ac]{border-color:#44c878;background:#44c8781f}.filex-cv__empty[data-v-4363f1ac]{grid-column:1 / -1;text-align:center;color:var(--fe-text-muted, #5a6475);padding:16px}.filex-cv__err[data-v-4363f1ac]{padding:0 16px;color:var(--fe-danger, #dc2626);font-size:13px}.filex-cv__foot[data-v-4363f1ac]{padding:12px 16px;border-top:1px solid var(--fe-border, #e2e6ed);text-align:right}.filex-cv__convert[data-v-4363f1ac]{padding:8px 18px;border:0;border-radius:8px;cursor:pointer;background:#44c878;color:#03200f;font-weight:600;font-size:13px}.filex-cv__convert[data-v-4363f1ac]:disabled{opacity:.5;cursor:default}.filex-cv__frame[data-v-4363f1ac]{position:absolute;width:0;height:0;border:0;left:-9999px}.fx-perm-overlay[data-v-4c90f457]{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:10000;font-family:var(--fe-font)}.fx-perm-modal[data-v-4c90f457]{display:flex;flex-direction:column;background:var(--fe-bg);color:var(--fe-text);width:min(520px,94vw);max-height:86vh;border:1px solid var(--fe-border);border-radius:var(--fe-radius-lg, 14px);box-shadow:var(--fe-shadow);font-size:14px;overflow:hidden}.fx-perm-head[data-v-4c90f457]{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px 12px;flex:none}.fx-perm-title[data-v-4c90f457]{display:flex;align-items:center;gap:10px;min-width:0}.fx-perm-ico[data-v-4c90f457]{font-size:22px;line-height:1}.fx-perm-titletext[data-v-4c90f457]{display:flex;flex-direction:column;min-width:0}.fx-perm-title h3[data-v-4c90f457]{margin:0;font-size:15px;font-weight:600;color:var(--fe-text)}.fx-perm-sub[data-v-4c90f457]{font-size:12px;color:var(--fe-text);max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fx-perm-subdim[data-v-4c90f457]{color:var(--fe-text-muted)}.fx-perm-x[data-v-4c90f457]{background:none;border:none;font-size:17px;cursor:pointer;color:var(--fe-text-muted);flex:none;line-height:1;padding:2px 4px;border-radius:6px}.fx-perm-x[data-v-4c90f457]:hover{color:var(--fe-text);background:var(--fe-bg-hover)}.fx-perm-tabs[data-v-4c90f457]{display:flex;gap:2px;padding:0 18px;border-bottom:1px solid var(--fe-border);flex:none}.fx-perm-tab[data-v-4c90f457]{background:none;border:none;border-bottom:2px solid transparent;padding:8px 12px;cursor:pointer;color:var(--fe-text-muted);font-size:13px;font-family:inherit;font-weight:500}.fx-perm-tab[data-v-4c90f457]:hover{color:var(--fe-text)}.fx-perm-tab.is-active[data-v-4c90f457]{color:var(--fe-primary);border-bottom-color:var(--fe-primary)}.fx-perm-body[data-v-4c90f457]{flex:1 1 auto;overflow-y:auto;padding:14px 18px 18px}.fx-perm-addcard[data-v-4c90f457]{padding:12px;border-radius:var(--fe-radius-md, 10px);background:var(--fe-bg-elev);border:1px solid var(--fe-border)}.fx-perm-section[data-v-4c90f457]{margin-top:16px}.fx-perm-section h4[data-v-4c90f457]{margin:0 0 8px;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--fe-text-muted)}.fx-perm-empty[data-v-4c90f457]{color:var(--fe-text-muted);font-size:13px;padding:8px 2px}.fx-perm-person[data-v-4c90f457]{display:flex;align-items:center;gap:10px;padding:7px 2px}.fx-perm-person+.fx-perm-person[data-v-4c90f457]{border-top:1px solid var(--fe-border)}.fx-perm-inh[data-v-4c90f457]{color:var(--fe-text-muted)}.fx-perm-av[data-v-4c90f457]{width:28px;height:28px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--fe-primary);color:var(--fe-text-on-primary, #fff);font-size:12px;font-weight:600}.fx-perm-av--dim[data-v-4c90f457]{background:var(--fe-bg-hover);color:var(--fe-text-muted)}.fx-perm-user[data-v-4c90f457]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fe-text);min-width:0}.fx-perm-from[data-v-4c90f457]{font-size:11px;color:var(--fe-text-muted);white-space:nowrap}.fx-perm-badge[data-v-4c90f457]{font-size:11px;padding:2px 9px;border-radius:999px;background:var(--fe-bg-hover);color:var(--fe-text)}.fx-perm-sel[data-v-4c90f457],.fx-perm-input[data-v-4c90f457]{padding:7px 9px;border-radius:var(--fe-radius-sm, 7px);border:1px solid var(--fe-border);background:var(--fe-bg);color:var(--fe-text);font-size:13px;font-family:inherit}.fx-perm-sel--sm[data-v-4c90f457]{padding:5px 7px;font-size:12px}.fx-perm-sel[data-v-4c90f457]:focus,.fx-perm-input[data-v-4c90f457]:focus{outline:none;border-color:var(--fe-primary)}.fx-perm-add[data-v-4c90f457]{display:flex;gap:8px;align-items:stretch}.fx-perm-emailwrap[data-v-4c90f457]{position:relative;flex:1;min-width:120px}.fx-perm-input[data-v-4c90f457]{width:100%;box-sizing:border-box}.fx-perm-suggest[data-v-4c90f457]{position:absolute;top:calc(100% + 3px);left:0;right:0;z-index:5;margin:0;padding:4px;list-style:none;background:var(--fe-bg);border:1px solid var(--fe-border);border-radius:var(--fe-radius-sm, 7px);box-shadow:var(--fe-shadow);max-height:210px;overflow:auto}.fx-perm-suggest li[data-v-4c90f457]{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer}.fx-perm-suggest li[data-v-4c90f457]:hover{background:var(--fe-bg-hover)}.fx-perm-suggest-av[data-v-4c90f457]{width:24px;height:24px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--fe-bg-hover);color:var(--fe-text);font-size:11px;font-weight:600}.fx-perm-suggest-txt[data-v-4c90f457]{display:flex;flex-direction:column;min-width:0}.fx-perm-suggest-name[data-v-4c90f457]{color:var(--fe-text);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fx-perm-suggest-meta[data-v-4c90f457]{color:var(--fe-text-muted);font-size:11px}.fx-perm-check[data-v-4c90f457]{display:inline-flex;gap:6px;align-items:center;font-size:13px;color:var(--fe-text);cursor:pointer}.fx-perm-btn[data-v-4c90f457]{padding:7px 13px;border-radius:var(--fe-radius-sm, 7px);border:1px solid var(--fe-border);background:var(--fe-bg);color:var(--fe-text);font-size:13px;font-family:inherit;cursor:pointer;white-space:nowrap}.fx-perm-btn[data-v-4c90f457]:hover:not(:disabled){background:var(--fe-bg-hover)}.fx-perm-btn[data-v-4c90f457]:disabled{opacity:.55;cursor:default}.fx-perm-btn--sm[data-v-4c90f457]{padding:5px 10px;font-size:12px}.fx-perm-btn--primary[data-v-4c90f457]{background:var(--fe-primary);border-color:var(--fe-primary);color:var(--fe-text-on-primary, #fff)}.fx-perm-btn--primary[data-v-4c90f457]:hover:not(:disabled){background:var(--fe-primary-hover, var(--fe-primary));filter:brightness(1.05)}.fx-perm-btn--ghost[data-v-4c90f457]{background:none;border-color:transparent;color:var(--fe-primary);padding-left:2px}.fx-perm-btn--ghost[data-v-4c90f457]:hover:not(:disabled){background:none;text-decoration:underline}.fx-perm-del[data-v-4c90f457]{background:none;border:none;color:var(--fe-danger);cursor:pointer;font-size:14px;flex:none;padding:2px 4px}.fx-perm-del[data-v-4c90f457]:hover:not(:disabled){filter:brightness(1.15)}.fx-perm-invite[data-v-4c90f457]{margin-top:10px;padding-top:10px;border-top:1px dashed var(--fe-border)}.fx-perm-invite-actions[data-v-4c90f457]{display:flex;flex-direction:column;gap:8px;margin-top:6px}.fx-perm-invite-row[data-v-4c90f457]{display:flex;gap:8px;align-items:stretch}.fx-perm-invite-row .fx-perm-btn--primary[data-v-4c90f457]{flex:1}.fx-perm-share-opts[data-v-4c90f457]{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.fx-perm-expiry[data-v-4c90f457]{display:inline-flex;gap:6px;align-items:center;font-size:13px}.fx-perm-share-opts .fx-perm-btn--primary[data-v-4c90f457]{margin-left:auto}.fx-perm-result[data-v-4c90f457]{margin-top:12px;padding-top:12px;border-top:1px solid var(--fe-border)}.fx-perm-linkrow[data-v-4c90f457]{display:flex;gap:8px;align-items:center}.fx-perm-link[data-v-4c90f457]{color:var(--fe-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;text-decoration:none}.fx-perm-link[data-v-4c90f457]:hover{text-decoration:underline}.fx-perm-pin[data-v-4c90f457]{margin:8px 0 0;font-size:13px;color:var(--fe-text);display:flex;align-items:center;gap:8px}.fx-perm-pin code[data-v-4c90f457],.fx-perm-reveal code[data-v-4c90f457]{font-family:var(--fe-font-mono, monospace);background:var(--fe-bg-hover);padding:1px 6px;border-radius:5px}.fx-perm-mailrow[data-v-4c90f457]{display:flex;gap:8px;margin-top:10px}.fx-perm-mailrow .fx-perm-input[data-v-4c90f457]{flex:1}.fx-perm-hint[data-v-4c90f457]{font-size:13px;color:var(--fe-text-muted);margin:10px 0 0}.fx-perm-dropintro[data-v-4c90f457]{margin:0 0 12px;line-height:1.4}.fx-perm-advtoggle[data-v-4c90f457]{margin-top:10px;padding-left:2px}.fx-perm-adv[data-v-4c90f457]{margin-top:8px;padding-top:10px;border-top:1px dashed var(--fe-border);display:flex;flex-direction:column;gap:8px}.fx-perm-adv-row[data-v-4c90f457]{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}.fx-perm-input--sm[data-v-4c90f457]{width:130px;padding:5px 8px;font-size:12px}.fx-perm-warn[data-v-4c90f457]{background:#f59e0b24;border:1px solid rgba(245,158,11,.4);border-radius:var(--fe-radius-sm, 7px);padding:8px 10px;font-size:13px;margin-bottom:10px;color:var(--fe-text)}.fx-perm-notice[data-v-4c90f457]{margin-top:8px;font-size:13px;color:var(--fe-text-muted)}.fx-perm-reveal[data-v-4c90f457]{margin-top:8px;font-size:13px;word-break:break-all;color:var(--fe-text)}.fx-perm-muted[data-v-4c90f457]{color:var(--fe-text-muted);font-size:13px}:root{--fe-bg: #ffffff;--fe-bg-elev: #f7f8fa;--fe-bg-hover: #edf0f5;--fe-bg-selected: #dfe8ff;--fe-border: #e2e6ed;--fe-border-strong: #c7ced9;--fe-text: #1a1e27;--fe-text-muted: #5a6475;--fe-text-on-primary: #ffffff;--fe-primary: #3b82f6;--fe-primary-hover: #2563eb;--fe-danger: #dc2626;--fe-danger-hover: #b91c1c;--fe-shadow: 0 10px 32px rgba(15, 23, 42, .14);--fe-shadow-sm: 0 2px 6px rgba(15, 23, 42, .08);--fe-radius: 8px;--fe-radius-sm: 4px;--fe-radius-lg: 12px;--fe-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--fe-font-mono: ui-monospace, "SF Mono", Consolas, Menlo, monospace;--fe-gap: 12px}.fe--theme-dark,:root[data-theme=dark] .fe,.fe.fe--theme-dark,:root.dark,.dark,:root.dark .fe,.dark .fe,.fe-ctx-backdrop--theme-dark,.fe-ctx-backdrop--theme-auto[data-prefers-dark="1"]{--fe-bg: #0f1419;--fe-bg-elev: #161c25;--fe-bg-hover: #1f2733;--fe-bg-selected: #23324a;--fe-border: #2a323e;--fe-border-strong: #3a4453;--fe-text: #e5e9f0;--fe-text-muted: #8b95a7;--fe-primary: #60a5fa;--fe-primary-hover: #3b82f6;--fe-danger: #f87171;--fe-danger-hover: #ef4444;--fe-shadow: 0 12px 32px rgba(0, 0, 0, .45);--fe-shadow-sm: 0 2px 6px rgba(0, 0, 0, .25)}@media (prefers-color-scheme: dark){.fe:not(.fe--theme-light),.fe-ctx-backdrop--theme-auto:not(.fe-ctx-backdrop--theme-light){--fe-bg: #0f1419;--fe-bg-elev: #161c25;--fe-bg-hover: #1f2733;--fe-bg-selected: #23324a;--fe-border: #2a323e;--fe-border-strong: #3a4453;--fe-text: #e5e9f0;--fe-text-muted: #8b95a7;--fe-primary: #60a5fa;--fe-primary-hover: #3b82f6;--fe-danger: #f87171;--fe-danger-hover: #ef4444;--fe-shadow: 0 12px 32px rgba(0, 0, 0, .45);--fe-shadow-sm: 0 2px 6px rgba(0, 0, 0, .25)}}.fe{position:relative;display:flex;flex-direction:column;min-height:420px;height:100%;background:var(--fe-bg);color:var(--fe-text);font-family:var(--fe-font);font-size:14px;border:1px solid var(--fe-border);border-radius:var(--fe-radius);overflow:hidden;outline:none}.fe *{box-sizing:border-box}.fe__body{flex:1 1 auto;overflow:auto;background:var(--fe-bg)}.fe__loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:240px;height:100%;color:var(--fe-text-muted)}.fe__spinner{width:34px;height:34px;border-radius:50%;border:3px solid color-mix(in srgb,var(--fe-text-muted) 30%,transparent);border-top-color:var(--fe-primary);animation:fe-spin .7s linear infinite}.fe__loading-text{margin:0;font-size:13px}@keyframes fe-spin{to{transform:rotate(360deg)}}.fe__file-input{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}.fe-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:var(--fe-bg-elev);border:1px solid var(--fe-border);border-radius:var(--fe-radius-sm);color:var(--fe-text);font:inherit;cursor:pointer;transition:background .12s,border-color .12s;white-space:nowrap}.fe-btn:hover:not(:disabled){background:var(--fe-bg-hover);border-color:var(--fe-border-strong)}.fe-btn:disabled{opacity:.5;cursor:not-allowed}.fe-btn--primary{background:var(--fe-primary);border-color:var(--fe-primary);color:var(--fe-text-on-primary)}.fe-btn--primary:hover:not(:disabled){background:var(--fe-primary-hover);border-color:var(--fe-primary-hover)}.fe-btn--danger{background:var(--fe-danger);border-color:var(--fe-danger);color:var(--fe-text-on-primary)}.fe-btn--danger:hover:not(:disabled){background:var(--fe-danger-hover);border-color:var(--fe-danger-hover)}.fe-btn--icon-only{padding:6px 8px}.fe-btn.is-active{background:var(--fe-bg-selected);border-color:var(--fe-primary)}.fe-btn__label{line-height:1}.fe-icon{font-size:1.05em;line-height:1}.fe-toolbar{display:flex;align-items:center;gap:8px;padding:10px 12px;background:var(--fe-bg-elev);border-bottom:1px solid var(--fe-border);flex-wrap:wrap}.fe-toolbar__primary{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}.fe-toolbar__spacer{flex:1 1 auto}.fe-toolbar__search-group{display:inline-flex;align-items:center;gap:4px;background:var(--fe-bg);border:1px solid var(--fe-border);border-radius:var(--fe-radius-sm);padding:2px}.fe-toolbar__search-group .fe-search__input{border:0;background:transparent;padding:4px 8px}.fe-toolbar__search-group .fe-btn{border:0;background:transparent;padding:4px 6px}.fe-toolbar__search-group .fe-btn:hover:not(:disabled){background:var(--fe-bg-hover)}.fe-toolbar__view{display:inline-flex;gap:2px;padding:2px;background:var(--fe-bg);border:1px solid var(--fe-border);border-radius:var(--fe-radius-sm)}.fe-toolbar__view .fe-btn{border:0;background:transparent}.fe-toolbar__view .fe-btn.is-active{background:var(--fe-bg-selected)}.fe-search{position:relative}.fe-search__input{background:var(--fe-bg);border:1px solid var(--fe-border);border-radius:var(--fe-radius-sm);padding:6px 10px;font:inherit;color:var(--fe-text);min-width:200px}.fe-search__input:focus-visible{outline:2px solid var(--fe-primary);outline-offset:1px}.fe-breadcrumb{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:6px 12px;background:var(--fe-bg);border-bottom:1px solid var(--fe-border);font-size:13px;color:var(--fe-text-muted)}.fe-breadcrumb__crumb{display:inline-flex;align-items:center;gap:4px;background:transparent;border:0;color:inherit;padding:2px 6px;border-radius:var(--fe-radius-sm);cursor:pointer;font:inherit}.fe-breadcrumb__crumb:hover{background:var(--fe-bg-hover);color:var(--fe-text)}.fe-breadcrumb__crumb.is-last{color:var(--fe-text);font-weight:600}.fe-breadcrumb__sep{color:var(--fe-text-muted)}.fe-breadcrumb__edit{margin-left:auto;background:none;border:1px solid transparent;color:var(--fe-text-muted);cursor:pointer;font-size:14px;line-height:1;padding:4px 8px;border-radius:4px}.fe-breadcrumb__edit:hover{background:var(--fe-bg-hover);color:var(--fe-text);border-color:var(--fe-border)}.fe-breadcrumb__input{flex:1;background:var(--fe-bg);color:var(--fe-text);border:1px solid var(--fe-accent, #2563eb);border-radius:4px;padding:4px 8px;font-family:var(--fe-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);font-size:13px;outline:none}.fe-list{display:flex;flex-direction:column}.fe-list__head{display:grid;grid-template-columns:32px minmax(0,1fr) 120px 180px;gap:8px;padding:8px 12px;font-weight:600;color:var(--fe-text-muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em;background:var(--fe-bg-elev);border-bottom:1px solid var(--fe-border)}.fe-list__body{display:flex;flex-direction:column}.fe-list__row{display:grid;grid-template-columns:32px minmax(0,1fr) 120px 180px;gap:8px;padding:8px 12px;align-items:center;cursor:pointer;border-bottom:1px solid var(--fe-border);transition:background .08s;-webkit-user-select:none;user-select:none}.fe-list__row:hover{background:var(--fe-bg-hover)}.fe-list__row.is-selected{background:var(--fe-bg-selected)}.fe-list__row.is-trash{opacity:.7}.fe-list__row.is-clipped,.fe-grid__card.is-clipped{opacity:.45;font-style:italic}.fe-list__row:focus-visible{outline:2px solid var(--fe-primary);outline-offset:-2px}.fe-list__col--star{display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .12s}.fe-list__row:hover .fe-list__col--star,.fe-list__row:focus-within .fe-list__col--star,.fe-list__col--star:has(.is-starred){opacity:1}.fe-list__col--star .filex-star-btn.is-starred{color:var(--fe-warning, #f59e0b)}.fe-list__col--name{display:flex;align-items:center;gap:8px;min-width:0}.fe-list__icon{flex-shrink:0;font-size:16px}.fe-list__name-wrap{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}.fe-list__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fe-list__parent{font-size:11px;color:var(--fe-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}.fe-list__col--size,.fe-list__col--mod{color:var(--fe-text-muted);font-size:13px}.fe-list__empty{padding:40px 20px;text-align:center;color:var(--fe-text-muted)}.fe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:var(--fe-gap);padding:var(--fe-gap)}.fe-grid__card{display:flex;flex-direction:column;align-items:stretch;padding:8px;border:1px solid var(--fe-border);border-radius:var(--fe-radius);background:var(--fe-bg-elev);cursor:pointer;transition:background .08s,border-color .08s;-webkit-user-select:none;user-select:none}.fe-grid__card:hover{background:var(--fe-bg-hover);border-color:var(--fe-border-strong)}.fe-grid__card.is-selected{background:var(--fe-bg-selected);border-color:var(--fe-primary)}.fe-grid__card.is-trash{opacity:.7}.fe-grid__thumb{display:flex;align-items:center;justify-content:center;aspect-ratio:1 / 1;background:var(--fe-bg);border-radius:var(--fe-radius-sm);margin-bottom:8px;overflow:hidden}.fe-grid__thumb img{width:100%;height:100%;object-fit:cover}.fe-grid__icon{font-size:32px}.fe-grid__label{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fe-grid__meta{font-size:11px;color:var(--fe-text-muted);margin-top:2px}.fe-grid__parent{font-size:11px;color:var(--fe-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-style:italic}.fe-grid__empty{grid-column:1 / -1;padding:40px 20px;text-align:center;color:var(--fe-text-muted)}.fe__dragover{position:absolute;top:0;right:0;bottom:0;left:0;z-index:30;display:flex;align-items:center;justify-content:center;background:#3b82f61f;border:3px dashed var(--fe-primary);pointer-events:none}.fe__dragover-card{background:var(--fe-bg);border-radius:var(--fe-radius-lg);padding:24px 40px;box-shadow:var(--fe-shadow);text-align:center}.fe__dragover-card .fe-icon{font-size:32px;display:block;margin-bottom:8px}.fe-upload{position:absolute;right:16px;bottom:16px;width:min(360px,calc(100% - 32px));background:var(--fe-bg);border:1px solid var(--fe-border);border-radius:var(--fe-radius);box-shadow:var(--fe-shadow);z-index:40;max-height:40vh;display:flex;flex-direction:column;overflow:hidden}.fe-upload__header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:var(--fe-bg-elev);border-bottom:1px solid var(--fe-border);font-size:13px}.fe-upload__count{background:var(--fe-primary);color:var(--fe-text-on-primary);font-size:12px;padding:1px 7px;border-radius:999px}.fe-upload__list{list-style:none;padding:0;margin:0;overflow:auto}.fe-upload__item{padding:10px 14px;border-bottom:1px solid var(--fe-border)}.fe-upload__item:last-child{border-bottom:0}.fe-upload__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;margin-bottom:4px}.fe-upload__bar{background:var(--fe-bg-elev);border-radius:99px;height:6px;overflow:hidden;margin-bottom:4px}.fe-upload__bar-fill{background:var(--fe-primary);height:100%;transition:width .2s}.fe-upload__item.is-error .fe-upload__bar-fill,.fe-upload__item.is-aborted .fe-upload__bar-fill{background:var(--fe-danger)}.fe-upload__item.is-done .fe-upload__bar-fill{background:#16a34a}.fe-upload__meta{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11px;color:var(--fe-text-muted)}.fe-upload__cancel{background:transparent;border:0;color:var(--fe-primary);cursor:pointer;font:inherit}.fe-upload-slide-enter-active,.fe-upload-slide-leave-active{transition:transform .2s,opacity .2s}.fe-upload-slide-enter-from,.fe-upload-slide-leave-to{opacity:0;transform:translateY(10px)}.fe-ops{position:absolute;left:16px;bottom:16px;width:min(320px,calc(100% - 32px));display:flex;flex-direction:column;gap:8px;z-index:40}.fe-ops__item{background:var(--fe-bg);border:1px solid var(--fe-border);border-radius:var(--fe-radius);box-shadow:var(--fe-shadow);padding:10px 14px;font-size:13px}.fe-ops__item.is-done{border-color:#16a34a}.fe-ops__item.is-error{border-color:var(--fe-danger)}.fe-ops__row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.fe-ops__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto}.fe-ops__dismiss{background:transparent;border:0;color:var(--fe-text-muted);cursor:pointer;font-size:18px;line-height:1;padding:0 4px}.fe-ops__bar{background:var(--fe-bg-elev);border-radius:99px;height:6px;overflow:hidden}.fe-ops__bar-fill{background:var(--fe-primary);height:100%;transition:width .25s}.fe-ops__item.is-done .fe-ops__bar-fill{background:#16a34a}.fe-ops__item.is-error .fe-ops__bar-fill{background:var(--fe-danger)}.fe-ops__error{margin-top:6px;font-size:11px;color:var(--fe-danger)}.fe-ops-slide-enter-active,.fe-ops-slide-leave-active{transition:transform .2s,opacity .2s}.fe-ops-slide-enter-from,.fe-ops-slide-leave-to{opacity:0;transform:translateY(10px)}.fe-ctx-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;color:var(--fe-text);font-family:var(--fe-font);font-size:14px}.fe-ctx{position:absolute;min-width:180px;background:var(--fe-bg);border:1px solid var(--fe-border);border-radius:var(--fe-radius);box-shadow:var(--fe-shadow);padding:4px;z-index:90;color:var(--fe-text)}.fe-ctx__item{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:var(--fe-radius-sm);border:0;background:transparent;color:var(--fe-text);font:inherit;width:100%;text-align:left;cursor:pointer}.fe-ctx__item:hover:not(.is-disabled){background:var(--fe-bg-hover)}.fe-ctx__item.is-danger{color:var(--fe-danger)}.fe-ctx__item.is-disabled{opacity:.45;cursor:not-allowed}.fe-ctx__icon{width:1.2em;text-align:center}.fe-ctx__sep{height:1px;background:var(--fe-border);margin:4px 0}.fe-ctx-enter-active,.fe-ctx-leave-active{transition:opacity .1s}.fe-ctx-enter-from,.fe-ctx-leave-to{opacity:0}.fe-modal__backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:70;display:flex;align-items:center;justify-content:center;background:#0d131b7a;padding:16px}.fe-modal__card{background:var(--fe-bg);border-radius:var(--fe-radius);box-shadow:var(--fe-shadow);width:100%;max-height:calc(100vh - 32px);display:flex;flex-direction:column;overflow:hidden}.fe-modal__card--sm{max-width:420px}.fe-modal__card--md{max-width:560px}.fe-modal__card--lg{max-width:800px}.fe-modal__card--xl{max-width:1080px;height:calc(100vh - 64px)}.fe-recents__backdrop{align-items:flex-start!important;padding-top:60px}.fe-recents__panel{background:var(--fe-bg, #fff);border-radius:var(--fe-radius, 8px);box-shadow:var(--fe-shadow, 0 6px 24px rgba(0, 0, 0, .18));width:min(480px,calc(100vw - 32px));max-height:calc(100vh - 96px);display:flex;flex-direction:column;overflow:hidden}.fe-recents__header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid var(--fe-border, #e2e6ed)}.fe-recents__close{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;font-size:22px;line-height:1;cursor:pointer;color:var(--fe-text-muted, #6b7280);padding:0 4px}.fe-recents__close:hover{color:var(--fe-text, #111)}.fe-preview__md-split{display:flex;flex-direction:column;height:100%;width:100%;min-height:0}.fe-preview__md-split-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;background:var(--fe-bg-elev, #f6f7f9);border-bottom:1px solid var(--fe-border, #e2e6ed);flex:0 0 auto}.fe-preview__md-split-label{font-family:var(--fe-font-mono, ui-monospace, monospace);font-size:11px;letter-spacing:.06em;color:var(--fe-text-muted, #6b7280)}.fe-preview__md-split-error{flex:1 1 auto;font-size:12px;color:var(--fe-danger, #dc2626);text-align:center}.fe-preview__md-split-body{flex:1 1 auto;display:grid;grid-template-columns:1fr 1fr;min-height:0}.fe-preview__md-split-input{resize:none;border:0;outline:0;padding:16px 20px;font-family:var(--fe-font-mono, ui-monospace, monospace);font-size:13px;line-height:1.6;background:var(--fe-bg, #fff);color:var(--fe-text, #111);border-right:1px solid var(--fe-border, #e2e6ed);overflow:auto;-moz-tab-size:2;tab-size:2}.fe-preview__md-split-output{overflow:auto;padding:16px 24px;background:var(--fe-bg, #fff)}.fe-preview__md-split-output.fe-preview__md{max-height:none;min-height:0;height:100%}@media (max-width: 900px){.fe-preview__md-split-body{grid-template-columns:1fr;grid-template-rows:1fr 1fr}.fe-preview__md-split-input{border-right:0;border-bottom:1px solid var(--fe-border, #e2e6ed)}}.fe-modal__backdrop--chromeless{background:transparent;padding:0}.fe-modal__card--chromeless{max-width:none;width:100vw;height:100vh;max-height:100vh;border-radius:0;box-shadow:none}.fe-modal__card--chromeless .fe-modal__body{flex:1 1 auto;min-height:0;padding:0}.fe-modal__card--chromeless .fe-preview{align-items:stretch;justify-content:stretch;min-height:0;flex:1 1 auto}.fe-modal__card--chromeless .fe-preview>*{width:100%;height:100%}.fe-modal__head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--fe-border)}.fe-modal__title{font-size:16px;font-weight:600;margin:0}.fe-modal__close{background:transparent;border:0;color:var(--fe-text-muted);font-size:22px;cursor:pointer;padding:0 4px;line-height:1}.fe-modal__body{padding:16px;overflow:auto;flex:1 1 auto}.fe-modal__actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--fe-border);background:var(--fe-bg-elev)}.fe-modal-enter-active,.fe-modal-leave-active{transition:opacity .15s}.fe-modal-enter-from,.fe-modal-leave-to{opacity:0}.fe-input{width:100%;padding:8px 10px;background:var(--fe-bg);border:1px solid var(--fe-border);border-radius:var(--fe-radius-sm);font:inherit;color:var(--fe-text)}.fe-input:focus-visible{outline:2px solid var(--fe-primary);outline-offset:1px}.fe-input--mono{font-family:var(--fe-font-mono);letter-spacing:.1em}.fe-form{display:flex;flex-direction:column;gap:12px}.fe-form__row{display:flex;align-items:center;gap:8px}.fe-form__row--stack{flex-direction:column;align-items:stretch}.fe-form__error{color:var(--fe-danger);font-size:12px;margin:6px 0 0}.fe-share-result{display:flex;flex-direction:column;gap:12px}.fe-share-result__row label{display:block;font-size:12px;font-weight:600;color:var(--fe-text-muted);margin-bottom:4px}.fe-share-result__copy{display:flex;gap:6px}.fe-preview{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:50vh;background:var(--fe-bg-elev)}.fe-preview__image{max-width:100%;max-height:70vh;object-fit:contain}.fe-preview__video,.fe-preview__audio{max-width:100%;max-height:70vh}.fe-preview__iframe{width:100%;height:70vh;border:0;background:#fff}.fe-preview__office{width:100%;height:78vh;background:var(--fe-bg)}.fe-preview__code-wrap{display:flex;flex-direction:column;width:100%;height:78vh}.fe-preview__code-toolbar{display:flex;align-items:center;gap:12px;padding:8px 12px;background:var(--fe-bg-hover, #f3f4f6);border-bottom:1px solid var(--fe-border, #e5e7eb);font-size:12px}.fe-preview__code-lang{font-family:var(--fe-font-mono, ui-monospace, monospace);color:var(--fe-text-muted);text-transform:uppercase;letter-spacing:.04em}.fe-preview__code-toolbar>.fe-btn{margin-left:auto}.fe-preview__code-status{font-size:12px;font-weight:500}.fe-preview__code-status--ok{color:#059669}.fe-preview__code-status--err{color:#dc2626;cursor:help}.fe-preview__code-editor{flex:1;min-height:0;overflow:hidden}.fe-preview__code-editor .cm-editor{height:100%;font-size:13px}.fe-preview__code-editor .cm-scroller{font-family:var(--fe-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace)}.fe-preview__fallback{text-align:center;color:var(--fe-text-muted);padding:40px 20px}.fe-preview__fallback-icon{font-size:48px;display:block;margin-bottom:12px}.fe-preview__pre{margin:0;padding:16px;width:100%;max-height:70vh;overflow:auto;background:var(--fe-bg);color:var(--fe-text);font-family:var(--fe-font-mono);font-size:13px;line-height:1.5;white-space:pre-wrap;word-wrap:break-word}.fe-preview__code{white-space:pre;word-wrap:normal}.hljs{background:var(--fe-bg);color:var(--fe-text)}.hljs-comment,.hljs-quote{color:var(--fe-text-muted);font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-built_in,.hljs-section,.hljs-meta{color:#c678dd}.hljs-string,.hljs-attr,.hljs-symbol,.hljs-bullet,.hljs-addition,.hljs-link{color:#98c379}.hljs-number,.hljs-literal,.hljs-deletion{color:#d19a66}.hljs-title,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-template-tag,.hljs-template-variable{color:#61aeee}.hljs-type,.hljs-tag{color:#e06c75}.hljs-variable,.hljs-attribute{color:#d19a66}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.fe-preview__md{width:100%;max-height:70vh;overflow:auto;padding:24px 32px;background:var(--fe-bg);color:var(--fe-text);line-height:1.6;font-size:15px}.fe-preview__md h1,.fe-preview__md h2,.fe-preview__md h3,.fe-preview__md h4{margin:1.2em 0 .6em;font-weight:600}.fe-preview__md h1{font-size:1.8em;border-bottom:1px solid var(--fe-border);padding-bottom:.3em}.fe-preview__md h2{font-size:1.4em;border-bottom:1px solid var(--fe-border);padding-bottom:.3em}.fe-preview__md h3{font-size:1.2em}.fe-preview__md p{margin:.8em 0}.fe-preview__md a{color:var(--fe-primary);text-decoration:underline}.fe-preview__md code{font-family:var(--fe-font-mono);background:var(--fe-bg-elev);padding:1px 5px;border-radius:3px;font-size:.92em}.fe-preview__md pre{background:var(--fe-bg-elev);border:1px solid var(--fe-border);border-radius:var(--fe-radius-sm);padding:12px 16px;overflow:auto;font-size:.9em}.fe-preview__md pre code{background:transparent;padding:0}.fe-preview__md ul,.fe-preview__md ol{padding-left:2em;margin:.8em 0}.fe-preview__md li{margin:.3em 0}.fe-preview__md blockquote{border-left:3px solid var(--fe-border-strong);padding:0 1em;color:var(--fe-text-muted);margin:.8em 0}.fe-preview__md table{border-collapse:collapse;margin:1em 0;width:100%}.fe-preview__md th,.fe-preview__md td{border:1px solid var(--fe-border);padding:6px 10px;text-align:left}.fe-preview__md th{background:var(--fe-bg-elev)}.fe-preview__md img{max-width:100%}.fe-toast{position:absolute;bottom:24px;left:50%;transform:translate(-50%);background:var(--fe-text);color:var(--fe-bg);padding:8px 14px;border-radius:var(--fe-radius);font-size:13px;box-shadow:var(--fe-shadow-sm);z-index:95}.fe-toast-enter-active,.fe-toast-leave-active{transition:opacity .2s,transform .2s}.fe-toast-enter-from,.fe-toast-leave-to{opacity:0;transform:translate(-50%,10px)}@media (max-width: 640px){.fe-list__head,.fe-list__row{grid-template-columns:28px minmax(0,1fr) 90px}.fe-list__col--mod{display:none}.fe-toolbar{padding:8px}.fe-search__input{min-width:120px}}.filex-viewer-3d[data-v-78bcf18b]{width:100%;height:100%;min-height:480px;background:#1a1a1a;display:flex;align-items:center;justify-content:center}.filex-viewer-3d[data-v-78bcf18b] model-viewer{width:100%;height:100%;min-height:480px;background:#1a1a1a;display:block}.filex-viewer-fallback[data-v-78bcf18b]{text-align:center;color:#c8cdd6;padding:32px;max-width:480px}.filex-viewer-fallback__icon[data-v-78bcf18b]{font-size:48px;display:block;margin-bottom:12px}.filex-viewer-epub__nav[data-v-f9b72a2c]{position:absolute;bottom:12px;left:50%;transform:translate(-50%);display:flex;gap:8px;padding:4px 8px;background:var(--fe-bg-elev, rgba(255, 255, 255, .9));border:1px solid var(--fe-border, #e2e6ed);border-radius:6px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.filex-viewer-epub[data-v-f9b72a2c]{display:flex;flex-direction:column;width:100%;height:100%;min-height:70vh;background:var(--fe-bg, #fff);color:var(--fe-text, #1a1e27);position:relative}.filex-viewer-epub__bar[data-v-f9b72a2c]{display:flex;align-items:center;gap:6px;padding:8px 12px;background:var(--fe-bg-elev, #f7f8fa);border-bottom:1px solid var(--fe-border, #e2e6ed);font-size:13px}.filex-viewer-spacer[data-v-f9b72a2c]{flex:1}.filex-viewer-epub__fs[data-v-f9b72a2c]{display:inline-block;min-width:40px;text-align:center;font-variant-numeric:tabular-nums;font-size:12px;color:var(--fe-text-muted, #5a6475)}.filex-viewer-epub__main[data-v-f9b72a2c]{flex:1;min-height:0;display:flex}.filex-viewer-epub__rendition[data-v-f9b72a2c]{flex:1;min-height:0}.filex-viewer-epub__toc[data-v-f9b72a2c]{width:260px;border-right:1px solid var(--fe-border, #e2e6ed);overflow-y:auto;padding:12px 0;background:var(--fe-bg-elev, #f7f8fa)}.filex-viewer-epub__toc ul[data-v-f9b72a2c]{list-style:none;margin:0;padding:0}.filex-viewer-epub__toc-link[data-v-f9b72a2c]{display:block;width:100%;text-align:left;background:transparent;border:0;padding:6px 14px;font:inherit;color:inherit;cursor:pointer}.filex-viewer-epub__toc-link[data-v-f9b72a2c]:hover{background:var(--fe-bg-hover, #edf0f5)}.filex-viewer-epub__toc-link.is-child[data-v-f9b72a2c]{padding-left:28px;color:var(--fe-text-muted, #5a6475);font-size:12px}.filex-viewer-epub__loading[data-v-f9b72a2c]{position:absolute;inset:auto 0 0 0;text-align:center;padding:6px;background:#0000000d;font-size:12px;color:var(--fe-text-muted, #5a6475)}.filex-viewer-fallback[data-v-f9b72a2c]{text-align:center;padding:32px;color:var(--fe-text-muted, #5a6475)}.filex-viewer-fallback__icon[data-v-f9b72a2c]{font-size:48px;display:block;margin-bottom:12px}.filex-viewer-btn[data-v-f9b72a2c]{border:1px solid var(--fe-border, #e2e6ed);background:var(--fe-bg, #fff);color:var(--fe-text, #1a1e27);padding:4px 10px;border-radius:4px;cursor:pointer;font:inherit;font-size:12px}.filex-viewer-btn[data-v-f9b72a2c]:hover:not(:disabled){background:var(--fe-bg-hover, #edf0f5)}.filex-viewer-btn[data-v-f9b72a2c]:disabled{opacity:.5;cursor:not-allowed}.filex-viewer-mermaid[data-v-fe0bf99e]{display:flex;flex-direction:column;width:100%;height:100%;min-height:70vh;background:var(--fe-bg, #fff);color:var(--fe-text, #1a1e27)}.filex-viewer-mermaid__bar[data-v-fe0bf99e]{display:flex;align-items:center;gap:6px;padding:8px 12px;background:var(--fe-bg-elev, #f7f8fa);border-bottom:1px solid var(--fe-border, #e2e6ed);font-size:13px}.filex-viewer-mermaid__zoom[data-v-fe0bf99e]{min-width:50px;text-align:center;font-variant-numeric:tabular-nums;font-size:12px}.filex-viewer-mermaid__pane[data-v-fe0bf99e]{flex:1;overflow:hidden;position:relative;cursor:grab;background:var(--fe-bg-elev, #f7f8fa);touch-action:none}.filex-viewer-mermaid__pane[data-v-fe0bf99e]:active{cursor:grabbing}.filex-viewer-mermaid__surface[data-v-fe0bf99e]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;transform-origin:center center;transition:transform .05s linear;-webkit-user-select:none;user-select:none}.filex-viewer-mermaid__surface[data-v-fe0bf99e] svg{max-width:90%;max-height:90%}.filex-viewer-fallback[data-v-fe0bf99e]{text-align:center;padding:32px;color:var(--fe-text-muted, #5a6475);width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.filex-viewer-fallback__icon[data-v-fe0bf99e]{font-size:48px;display:block;margin-bottom:12px}.filex-viewer-btn[data-v-fe0bf99e]{border:1px solid var(--fe-border, #e2e6ed);background:var(--fe-bg, #fff);color:var(--fe-text, #1a1e27);padding:4px 10px;border-radius:4px;cursor:pointer;font:inherit;font-size:12px}.filex-viewer-btn[data-v-fe0bf99e]:hover:not(:disabled){background:var(--fe-bg-hover, #edf0f5)}.filex-viewer-drawio[data-v-2a88618e]{display:flex;flex-direction:column;width:100%;height:100%;min-height:70vh;background:var(--fe-bg, #fff)}.filex-viewer-drawio__bar[data-v-2a88618e]{display:flex;align-items:center;gap:12px;padding:6px 12px;background:var(--fe-bg-elev, #f7f8fa);border-bottom:1px solid var(--fe-border, #e2e6ed);font-size:12px;color:var(--fe-text-muted, #5a6475)}.filex-viewer-drawio__status[data-state=error][data-v-2a88618e]{color:var(--fe-danger, #dc2626)}.filex-viewer-drawio__status[data-state=saved][data-v-2a88618e]{color:#059669}.filex-viewer-drawio__readonly[data-v-2a88618e]{font-style:italic;margin-left:auto}.filex-viewer-drawio__frame[data-v-2a88618e]{flex:1;width:100%;border:0;background:#fafafa;min-height:0}.filex-viewer-fallback[data-v-2a88618e]{text-align:center;padding:32px;color:var(--fe-text-muted, #5a6475)}.filex-viewer-fallback__icon[data-v-2a88618e]{font-size:48px;display:block;margin-bottom:12px}.filex-viewer-tiff__pager[data-v-e6d0bdb2]{position:absolute;bottom:12px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:8px;padding:4px 8px;background:var(--fe-bg-elev, rgba(255, 255, 255, .9));border:1px solid var(--fe-border, #e2e6ed);border-radius:6px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.filex-viewer-tiff__pages[data-v-e6d0bdb2]{font-size:12px;font-variant-numeric:tabular-nums}.filex-viewer-tiff[data-v-e6d0bdb2]{display:flex;flex-direction:column;width:100%;height:100%;min-height:70vh;background:var(--fe-bg, #fff)}.filex-viewer-tiff__bar[data-v-e6d0bdb2]{display:flex;align-items:center;gap:6px;padding:8px 12px;background:var(--fe-bg-elev, #f7f8fa);border-bottom:1px solid var(--fe-border, #e2e6ed);font-size:13px}.filex-viewer-tiff__pages[data-v-e6d0bdb2]{min-width:110px;text-align:center;font-variant-numeric:tabular-nums;font-size:12px}.filex-viewer-tiff__zoom[data-v-e6d0bdb2]{min-width:50px;text-align:center;font-variant-numeric:tabular-nums;font-size:12px}.filex-viewer-spacer[data-v-e6d0bdb2]{flex:1}.filex-viewer-tiff__pane[data-v-e6d0bdb2]{flex:1;overflow:auto;padding:16px;background:#2a2d33;display:flex;align-items:flex-start;justify-content:flex-start}.filex-viewer-tiff__pane canvas[data-v-e6d0bdb2]{background:#fff;box-shadow:0 4px 16px #0000004d}.filex-viewer-fallback[data-v-e6d0bdb2]{text-align:center;padding:32px;color:#c8cdd6;margin:auto}.filex-viewer-fallback__icon[data-v-e6d0bdb2]{font-size:48px;display:block;margin-bottom:12px}.filex-viewer-btn[data-v-e6d0bdb2]{border:1px solid var(--fe-border, #e2e6ed);background:var(--fe-bg, #fff);color:var(--fe-text, #1a1e27);padding:4px 10px;border-radius:4px;cursor:pointer;font:inherit;font-size:12px}.filex-viewer-btn[data-v-e6d0bdb2]:hover:not(:disabled){background:var(--fe-bg-hover, #edf0f5)}.filex-viewer-btn[data-v-e6d0bdb2]:disabled{opacity:.4;cursor:not-allowed}.filex-viewer-psd[data-v-d23e4974]{display:flex;flex-direction:column;width:100%;height:100%;min-height:70vh;background:var(--fe-bg, #fff)}.filex-viewer-psd__bar[data-v-d23e4974]{display:flex;align-items:center;gap:6px;padding:8px 12px;background:var(--fe-bg-elev, #f7f8fa);border-bottom:1px solid var(--fe-border, #e2e6ed);font-size:13px}.filex-viewer-spacer[data-v-d23e4974]{flex:1}.filex-viewer-psd__dim[data-v-d23e4974]{font-size:12px;color:var(--fe-text-muted, #5a6475)}.filex-viewer-psd__zoom[data-v-d23e4974]{min-width:50px;text-align:center;font-variant-numeric:tabular-nums;font-size:12px}.filex-viewer-psd__main[data-v-d23e4974]{flex:1;display:flex;min-height:0}.filex-viewer-psd__layers[data-v-d23e4974]{width:240px;border-right:1px solid var(--fe-border, #e2e6ed);overflow-y:auto;padding:8px 0;background:var(--fe-bg-elev, #f7f8fa)}.filex-viewer-psd__layers ul[data-v-d23e4974]{list-style:none;margin:0;padding:0}.filex-viewer-psd__layers li[data-v-d23e4974]{display:flex;align-items:center;gap:6px;padding:4px 12px;font-size:12px}.filex-viewer-psd__layer-vis[data-v-d23e4974]{width:14px;text-align:center;color:var(--fe-text-muted, #5a6475)}.filex-viewer-psd__layer-vis[data-hidden="1"][data-v-d23e4974]{color:var(--fe-border-strong, #c7ced9)}.filex-viewer-psd__layer-name[data-v-d23e4974]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.filex-viewer-psd__pane[data-v-d23e4974]{flex:1;overflow:auto;padding:16px;background:#2a2d33;display:flex;align-items:flex-start;justify-content:flex-start}.filex-viewer-psd__pane canvas[data-v-d23e4974]{background:#fff repeating-conic-gradient(#e0e0e0 0% 25%,transparent 0% 50%) 50% / 16px 16px;box-shadow:0 4px 16px #0000004d}.filex-viewer-fallback[data-v-d23e4974]{text-align:center;padding:32px;color:#c8cdd6;margin:auto}.filex-viewer-fallback__icon[data-v-d23e4974]{font-size:48px;display:block;margin-bottom:12px}.filex-viewer-btn[data-v-d23e4974]{border:1px solid var(--fe-border, #e2e6ed);background:var(--fe-bg, #fff);color:var(--fe-text, #1a1e27);padding:4px 10px;border-radius:4px;cursor:pointer;font:inherit;font-size:12px}.filex-viewer-btn[data-v-d23e4974]:hover:not(:disabled){background:var(--fe-bg-hover, #edf0f5)}.filex-viewer-btn.is-active[data-v-d23e4974]{background:var(--fe-bg-selected, #dfe8ff);border-color:var(--fe-primary, #3b82f6)}.filex-viewer-ipynb[data-v-631b8223]{display:flex;flex-direction:column;width:100%;height:100%;min-height:70vh;background:var(--fe-bg, #fff);color:var(--fe-text, #1a1e27)}.filex-viewer-ipynb__bar[data-v-631b8223]{display:flex;align-items:center;gap:12px;padding:8px 12px;background:var(--fe-bg-elev, #f7f8fa);border-bottom:1px solid var(--fe-border, #e2e6ed);font-size:12px;color:var(--fe-text-muted, #5a6475)}.filex-viewer-ipynb__lang[data-v-631b8223]{font-family:var(--fe-font-mono, monospace);text-transform:uppercase;letter-spacing:.04em}.filex-viewer-ipynb__pane[data-v-631b8223]{flex:1;overflow:auto;padding:16px 24px}.filex-viewer-ipynb__cell[data-v-631b8223]{border:1px solid var(--fe-border, #e2e6ed);border-radius:6px;margin-bottom:16px;overflow:hidden}.filex-viewer-ipynb__cell[data-type=code][data-v-631b8223]{background:var(--fe-bg-elev, #f7f8fa)}.filex-viewer-ipynb__exec[data-v-631b8223]{padding:4px 12px;font-family:var(--fe-font-mono, monospace);font-size:11px;color:var(--fe-text-muted, #5a6475);background:#0000000a}.filex-viewer-ipynb__src[data-v-631b8223]{margin:0;padding:12px;font-family:var(--fe-font-mono, monospace);font-size:12px;line-height:1.5;white-space:pre;overflow-x:auto}.filex-viewer-ipynb__outputs[data-v-631b8223]{border-top:1px dashed var(--fe-border, #e2e6ed);background:var(--fe-bg, #fff);padding:8px 12px}.filex-viewer-ipynb__out[data-v-631b8223]{margin:0;padding:4px 0;font-family:var(--fe-font-mono, monospace);font-size:12px;white-space:pre-wrap;word-wrap:break-word}.filex-viewer-ipynb__out[data-type=error][data-v-631b8223]{color:var(--fe-danger, #dc2626)}.filex-viewer-ipynb__img[data-v-631b8223]{display:block;max-width:100%;height:auto;margin:8px 0}.filex-viewer-ipynb__html[data-v-631b8223]{font-size:13px}.filex-viewer-ipynb__md[data-v-631b8223]{padding:12px 16px;font-size:14px;line-height:1.6}.filex-viewer-ipynb__md-raw[data-v-631b8223]{padding:12px;margin:0;font-family:var(--fe-font-mono, monospace);font-size:12px;white-space:pre-wrap}.filex-viewer-fallback[data-v-631b8223]{text-align:center;padding:32px;color:var(--fe-text-muted, #5a6475)}.filex-viewer-fallback__icon[data-v-631b8223]{font-size:48px;display:block;margin-bottom:12px}.filex-viewer-csv[data-v-fc457b26]{display:flex;flex-direction:column;width:100%;height:100%;min-height:70vh;background:var(--fe-bg, #fff);color:var(--fe-text, #1a1e27)}.filex-viewer-csv__bar[data-v-fc457b26]{display:flex;align-items:center;gap:12px;padding:8px 12px;background:var(--fe-bg-elev, #f7f8fa);border-bottom:1px solid var(--fe-border, #e2e6ed);font-size:12px}.filex-viewer-csv__check[data-v-fc457b26]{display:flex;align-items:center;gap:4px;font-size:12px}.filex-viewer-csv__select[data-v-fc457b26],.filex-viewer-csv__filter[data-v-fc457b26]{border:1px solid var(--fe-border, #e2e6ed);background:var(--fe-bg, #fff);color:inherit;padding:4px 8px;border-radius:4px;font:inherit;font-size:12px}.filex-viewer-csv__filter[data-v-fc457b26]{flex:0 1 240px}.filex-viewer-spacer[data-v-fc457b26]{flex:1}.filex-viewer-csv__count[data-v-fc457b26]{font-size:11px;color:var(--fe-text-muted, #5a6475);font-variant-numeric:tabular-nums}.filex-viewer-csv__pane[data-v-fc457b26]{flex:1;overflow:auto}.filex-viewer-csv__table[data-v-fc457b26]{border-collapse:collapse;width:max-content;min-width:100%;font-size:12px;font-family:var(--fe-font-mono, monospace)}.filex-viewer-csv__table th[data-v-fc457b26],.filex-viewer-csv__table td[data-v-fc457b26]{padding:4px 10px;border:1px solid var(--fe-border, #e2e6ed);white-space:nowrap;max-width:320px;overflow:hidden;text-overflow:ellipsis}.filex-viewer-csv__table th[data-v-fc457b26]{background:var(--fe-bg-elev, #f7f8fa);position:sticky;top:0;font-weight:600;text-align:left}.filex-viewer-csv__table tbody tr[data-v-fc457b26]:nth-child(2n){background:var(--fe-bg-hover, rgba(0, 0, 0, .02))}.filex-viewer-csv__rownum[data-v-fc457b26]{color:var(--fe-text-muted, #5a6475);text-align:right;background:var(--fe-bg-elev, #f7f8fa);font-variant-numeric:tabular-nums;position:sticky;left:0}.filex-viewer-csv__pager[data-v-fc457b26]{display:flex;justify-content:center;align-items:center;gap:8px;padding:6px;background:var(--fe-bg-elev, #f7f8fa);border-top:1px solid var(--fe-border, #e2e6ed);font-size:12px}.filex-viewer-csv__pageno[data-v-fc457b26]{font-variant-numeric:tabular-nums;font-size:12px}.filex-viewer-fallback[data-v-fc457b26]{text-align:center;padding:32px;color:var(--fe-text-muted, #5a6475)}.filex-viewer-fallback__icon[data-v-fc457b26]{font-size:48px;display:block;margin-bottom:12px}.filex-viewer-btn[data-v-fc457b26]{border:1px solid var(--fe-border, #e2e6ed);background:var(--fe-bg, #fff);color:var(--fe-text, #1a1e27);padding:4px 10px;border-radius:4px;cursor:pointer;font:inherit;font-size:12px}.filex-viewer-btn[data-v-fc457b26]:hover:not(:disabled){background:var(--fe-bg-hover, #edf0f5)}.filex-viewer-btn[data-v-fc457b26]:disabled{opacity:.4;cursor:not-allowed}.filex-viewer-archive[data-v-6b42eacd]{display:flex;flex-direction:column;width:100%;height:100%;min-height:70vh;background:var(--fe-bg, #fff);color:var(--fe-text, #1a1e27)}.filex-viewer-archive__pane[data-v-6b42eacd]{flex:1;overflow:auto;padding:16px 20px}.filex-viewer-archive__summary[data-v-6b42eacd]{font-size:12px;color:var(--fe-text-muted, #5a6475);margin-bottom:12px;font-variant-numeric:tabular-nums}.filex-viewer-archive__table[data-v-6b42eacd]{width:100%;border-collapse:collapse;font-size:13px;font-family:var(--fe-font-mono, monospace)}.filex-viewer-archive__table th[data-v-6b42eacd],.filex-viewer-archive__table td[data-v-6b42eacd]{padding:6px 12px;border-bottom:1px solid var(--fe-border, #e2e6ed);text-align:left}.filex-viewer-archive__table th[data-v-6b42eacd]{background:var(--fe-bg-elev, #f7f8fa);font-weight:600;position:sticky;top:0}.filex-viewer-archive__size[data-v-6b42eacd]{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--fe-text-muted, #5a6475)}.filex-viewer-archive__icon[data-v-6b42eacd]{margin-right:6px}.filex-viewer-archive__table tr[data-dir="1"][data-v-6b42eacd]{color:var(--fe-text-muted, #5a6475)}.filex-viewer-fallback[data-v-6b42eacd]{text-align:center;padding:32px;color:var(--fe-text-muted, #5a6475)}.filex-viewer-fallback__icon[data-v-6b42eacd]{font-size:48px;display:block;margin-bottom:12px}';let cp=!1;function W_(){if(cp||typeof document>"u")return;const e=document.createElement("style");e.setAttribute("data-filex",""),e.textContent=q_,document.head.appendChild(e),cp=!0}function fp(e,t){const r={};return e.apiBase&&(r.apiBase=e.apiBase),e.endpoint&&(r.endpoint=e.endpoint),(e.locale==="tr"||e.locale==="en")&&(r.locale=e.locale),(e.theme==="light"||e.theme==="dark"||e.theme==="auto")&&(r.theme=e.theme),e.trashVisible!==void 0&&(r.trashVisible=e.trashVisible===!0||e.trashVisible==="true"||e.trashVisible===""),{...r,...t??{}}}const dp=p6({props:{config:{type:Object,default:null},apiBase:{type:String,default:""},endpoint:{type:String,default:""},locale:{type:String,default:""},theme:{type:String,default:""},trashVisible:{type:[Boolean,String],default:void 0}},emits:["share-created","file-opened","error","upload-progress","selection-change"],setup(e,{emit:t}){W_();const r=fe(fp({apiBase:e.apiBase,endpoint:e.endpoint,locale:e.locale,theme:e.theme,trashVisible:e.trashVisible},e.config));return er(()=>[e.config,e.apiBase,e.endpoint,e.locale,e.theme,e.trashVisible],()=>{r.value=fp({apiBase:e.apiBase,endpoint:e.endpoint,locale:e.locale,theme:e.theme,trashVisible:e.trashVisible},e.config)},{deep:!0}),()=>wh(V_,{config:r.value,onShareCreated:n=>t("share-created",n),onFileOpened:n=>t("file-opened",n),onError:n=>t("error",n),onUploadProgress:n=>t("upload-progress",n),onSelectionChange:n=>t("selection-change",n)})}},{shadowRoot:!1}),K_=dp;typeof customElements<"u"&&!customElements.get("filex-explorer")&&customElements.define("filex-explorer",dp);const X_={class:"filex-viewer-3d"},Y_={key:1,class:"filex-viewer-fallback"},Z_={key:2,class:"filex-viewer-fallback"},fo=Object.freeze(Object.defineProperty({__proto__:null,default:ln(Wt({__name:"Viewer3D",props:{url:{},mime:{},ext:{},t:{type:Function}},setup(e){const t=e,r=new Set(["glb","gltf","usdz"]),n=gt(()=>r.has((t.ext||"").toLowerCase())),a=fe(null),i=fe(!1);async function o(){if(i.value=!1,a.value=null,!n.value){a.value=t.t?t.t("viewer.format_unsupported_3d"):`3D format ".${t.ext}" not supported in browser preview — please download.`;return}try{await import("@google/model-viewer"),i.value=!0}catch{a.value=t.t?t.t("viewer.peer_not_installed"):"3D viewer requires `@google/model-viewer` — install or use download."}}return mr(o),er(()=>t.url,()=>{o()}),(l,s)=>{const u=i3("model-viewer");return J(),ae("div",X_,[i.value&&!a.value?(J(),kr(u,{key:0,src:e.url,"auto-rotate":"","camera-controls":"","touch-action":"pan-y","shadow-intensity":"1",alt:e.ext+" model",style:{width:"100%",height:"100%","min-height":"480px",display:"block"}},null,8,["src","alt"])):a.value?(J(),ae("div",Y_,[s[0]||(s[0]=N("span",{class:"filex-viewer-fallback__icon"},"📦",-1)),N("p",null,se(a.value),1)])):(J(),ae("div",Z_,[s[1]||(s[1]=N("span",{class:"filex-viewer-fallback__icon"},"⏳",-1)),N("p",null,se(e.t?e.t("viewer.loading"):"Loading…"),1)]))])}}}),[["__scopeId","data-v-d5c3ab71"]])},Symbol.toStringTag,{value:"Module"})),J_={key:0,class:"filex-viewer-fallback"},Q_={key:0,class:"filex-viewer-epub__nav"},ew=["disabled"],tw=["disabled"],rw={key:1,class:"filex-viewer-epub__loading"},nw=Object.freeze(Object.defineProperty({__proto__:null,default:ln(Wt({__name:"EpubViewer",props:{url:{},mime:{},ext:{},t:{type:Function},authHeaders:{type:Function},authCredentials:{}},setup(e){const t=e,r=fe(null),n=fe(null),a=fe(null),i=fe([]),o=fe(100),l=fe(!1),s=fe(!0);let u=null,c=null;async function f(){s.value=!0,l.value=!1,a.value=null;let x=null;try{x=await import("epubjs")}catch{a.value=t.t?t.t("viewer.peer_not_installed"):"EPUB viewer requires `epubjs` — install or use download.",s.value=!1;return}try{const g=x.default??x;let m=t.url;if(t.authHeaders){const v=t.authHeaders(),k=await fetch(t.url,{headers:v,credentials:t.authCredentials||"same-origin"});if(!k.ok)throw new Error(`${k.status} ${k.statusText}`);m=await k.arrayBuffer()}if(u=g(m),!n.value)throw new Error("EPUB mount target missing");c=u.renderTo(n.value,{width:"100%",height:"100%",flow:"paginated",manager:"default"}),await c.display(),c.themes.fontSize(o.value+"%");const y=await u.loaded.navigation;i.value=(y==null?void 0:y.toc)??[],l.value=!0}catch(g){a.value=g instanceof Error?g.message:"EPUB load failed"}finally{s.value=!1}}function d(){var x;(x=c==null?void 0:c.next)==null||x.call(c)}function h(){var x;(x=c==null?void 0:c.prev)==null||x.call(c)}function b(x){x.key==="ArrowRight"||x.key==="PageDown"?d():(x.key==="ArrowLeft"||x.key==="PageUp")&&h()}mr(()=>{f(),window.addEventListener("keydown",b)}),Ur(()=>{var x,g;window.removeEventListener("keydown",b);try{(x=c==null?void 0:c.destroy)==null||x.call(c)}catch{}try{(g=u==null?void 0:u.destroy)==null||g.call(u)}catch{}c=null,u=null}),er(()=>t.url,()=>{if(c)try{c.destroy()}catch{}if(u)try{u.destroy()}catch{}u=null,c=null,f()});function p(x,g){return t.t?t.t(x):g}return(x,g)=>(J(),ae("div",{ref_key:"root",ref:r,class:"filex-viewer-epub"},[a.value?(J(),ae("div",J_,[g[0]||(g[0]=N("span",{class:"filex-viewer-fallback__icon"},"📖",-1)),N("p",null,se(a.value),1)])):(J(),ae(xt,{key:1},[N("div",{ref_key:"containerRef",ref:n,class:"filex-viewer-epub__rendition"},null,512),l.value?(J(),ae("div",Q_,[N("button",{type:"button",class:"filex-viewer-btn",onClick:h,disabled:!l.value},"‹",8,ew),N("button",{type:"button",class:"filex-viewer-btn",onClick:d,disabled:!l.value},"›",8,tw)])):rt("",!0),s.value?(J(),ae("div",rw,se(p("viewer.loading","Loading…")),1)):rt("",!0)],64))],512))}}),[["__scopeId","data-v-cd1c1cee"]])},Symbol.toStringTag,{value:"Module"}));async function hp(e){const t=await fetch(e.url,{headers:e.headers??{},credentials:e.credentials??"same-origin",signal:e.signal});if(!t.ok){const r=await t.text().catch(()=>"");throw new Error(`${t.status} ${t.statusText}${r?" — "+r.slice(0,200):""}`)}return t}async function pp(e){return(await hp(e)).arrayBuffer()}async function Ks(e){return(await hp(e)).text()}const aw={class:"filex-viewer-mermaid"},iw={key:0,class:"filex-viewer-fallback"},ow={key:1,class:"filex-viewer-fallback"},vp=Object.freeze(Object.defineProperty({__proto__:null,default:ln(Wt({__name:"MermaidViewer",props:{url:{},mime:{},ext:{},t:{type:Function},authHeaders:{type:Function},authCredentials:{}},setup(e){const t=e,r=fe(null),n=fe(null),a=fe(!0),i=fe(1),o=fe(0),l=fe(0);let s=!1,u=null,c=0,f=null;async function d(){var y,v;if(f)return f;try{const k=await import("mermaid");return f=k.default??k,(v=f.initialize)==null||v.call(f,{startOnLoad:!1,securityLevel:"strict",theme:(y=window.matchMedia)!=null&&y.call(window,"(prefers-color-scheme: dark)").matches?"dark":"default"}),f}catch{return null}}async function h(){var C;a.value=!0,n.value=null;const y=++c,v=await d();if(y!==c)return;if(!v){n.value=t.t?t.t("viewer.peer_not_installed"):"Mermaid viewer requires `mermaid` — install or use download.",a.value=!1;return}let k;try{k=await Ks({url:t.url,headers:((C=t.authHeaders)==null?void 0:C.call(t))??{},credentials:t.authCredentials})}catch(A){n.value=A instanceof Error?A.message:"fetch failed",a.value=!1;return}if(y===c)try{const A=`filex-mermaid-${Date.now()}`,{svg:_}=await v.render(A,k);if(y!==c)return;if(r.value){r.value.innerHTML=_;const E=r.value.querySelector("svg");E&&(E.style.maxWidth="100%",E.style.height="auto")}}catch(A){n.value=A instanceof Error?A.message:"render failed"}finally{a.value=!1}}function b(y){if(!y.ctrlKey&&!y.metaKey)return;y.preventDefault();const k=-y.deltaY>0?1.1:1/1.1;i.value=Math.max(.2,Math.min(8,i.value*k))}function p(y){var v,k;s=!0,u={x:y.clientX,y:y.clientY,tx:o.value,ty:l.value},(k=(v=y.target).setPointerCapture)==null||k.call(v,y.pointerId)}function x(y){!s||!u||(o.value=u.tx+(y.clientX-u.x),l.value=u.ty+(y.clientY-u.y))}function g(){s=!1,u=null}mr(h),Ur(()=>{c++});function m(y,v){return t.t?t.t(y):v}return(y,v)=>(J(),ae("div",aw,[N("div",{class:"filex-viewer-mermaid__pane",onWheel:b,onPointerdown:p,onPointermove:x,onPointerup:g,onPointercancel:g},[n.value?(J(),ae("div",iw,[v[0]||(v[0]=N("span",{class:"filex-viewer-fallback__icon"},"📊",-1)),N("p",null,se(n.value),1)])):a.value?(J(),ae("div",ow,[v[1]||(v[1]=N("span",{class:"filex-viewer-fallback__icon"},"⏳",-1)),N("p",null,se(m("viewer.loading","Loading…")),1)])):rt("",!0),tr(N("div",{ref_key:"surface",ref:r,class:"filex-viewer-mermaid__surface",style:Xa({transform:`translate(${o.value}px, ${l.value}px) scale(${i.value})`})},null,4),[[cc,!a.value&&!n.value]])],32)]))}}),[["__scopeId","data-v-cd37a551"]])},Symbol.toStringTag,{value:"Module"})),lw={class:"filex-viewer-drawio"},sw={key:0,class:"filex-viewer-fallback"},uw=["src"],mp=Object.freeze(Object.defineProperty({__proto__:null,default:ln(Wt({__name:"DrawioViewer",props:{url:{},filePath:{},ext:{},drawioUrl:{},saveUrl:{},readOnly:{type:Boolean},t:{type:Function},authHeaders:{type:Function},authCredentials:{}},setup(e){const t=e,r=fe(null),n=fe(null),a=fe("loading"),i=fe(!!t.readOnly||!t.saveUrl),o=gt(()=>t.drawioUrl?t.drawioUrl.replace(/\/$/,""):null),l=gt(()=>{if(!o.value)return"";const p=new URLSearchParams({embed:"1",proto:"json",spin:"1",saveAndExit:"0",noSaveBtn:i.value?"1":"0",noExitBtn:"1",ui:"kennedy",modified:"unsavedChanges"});return`${o.value}/?${p.toString()}`});let s="";async function u(){var p;a.value="loading",n.value=null;try{s=await Ks({url:t.url,headers:((p=t.authHeaders)==null?void 0:p.call(t))??{},credentials:t.authCredentials})}catch(x){n.value=x instanceof Error?x.message:"fetch failed",a.value="error"}}function c(p){var x,g;(g=(x=r.value)==null?void 0:x.contentWindow)==null||g.postMessage(JSON.stringify(p),"*")}async function f(p){var x;if(t.saveUrl){a.value="saving";try{const g={"Content-Type":"application/json",...((x=t.authHeaders)==null?void 0:x.call(t))??{}},m=await fetch(t.saveUrl,{method:"POST",headers:g,credentials:t.authCredentials||"same-origin",body:JSON.stringify({path:t.filePath,content:p})});if(!m.ok)throw new Error(`${m.status} ${m.statusText}`);a.value="saved",setTimeout(()=>{a.value==="saved"&&(a.value="ready")},2500)}catch(g){n.value=g instanceof Error?g.message:"save failed",a.value="error"}}}function d(p){if(typeof p.data!="string"||p.data.length===0)return;const x=p.data[0];if(x!=="{"&&x!=="<")return;let g;try{g=JSON.parse(p.data)}catch{return}if(!(!g||typeof g!="object"))switch(g.event){case"init":c({action:"load",xml:s,autosave:0}),a.value="ready";break;case"save":typeof g.xml=="string"&&f(g.xml);break;case"export":break;case"autosave":typeof g.xml=="string"&&!i.value&&f(g.xml);break}}function h(){if(!o.value){n.value=b("viewer.drawio.disabled","Drawio (diagrams.net) yapılandırılmamış."),a.value="error";return}n.value===b("viewer.drawio.disabled","Drawio (diagrams.net) yapılandırılmamış.")&&(n.value=null,a.value="loading"),u()}mr(()=>{window.addEventListener("message",d),h()}),er(()=>t.drawioUrl,h),Ur(()=>{window.removeEventListener("message",d)});function b(p,x){return t.t?t.t(p):x}return(p,x)=>(J(),ae("div",lw,[n.value?(J(),ae("div",sw,[x[0]||(x[0]=N("span",{class:"filex-viewer-fallback__icon"},"📐",-1)),N("p",null,se(n.value),1)])):(J(),ae("iframe",{key:1,ref_key:"iframeRef",ref:r,src:l.value,class:"filex-viewer-drawio__frame",title:"diagrams.net editor"},null,8,uw))]))}}),[["__scopeId","data-v-699c407a"]])},Symbol.toStringTag,{value:"Module"})),cw={class:"filex-viewer-tiff"},fw={class:"filex-viewer-tiff__pane"},dw={key:0,class:"filex-viewer-fallback"},hw={key:1,class:"filex-viewer-fallback"},pw={key:2,class:"filex-viewer-tiff__pager"},vw=["disabled"],mw={class:"filex-viewer-tiff__pages"},gw=["disabled"],gp=Object.freeze(Object.defineProperty({__proto__:null,default:ln(Wt({__name:"TiffViewer",props:{url:{},mime:{},ext:{},t:{type:Function},authHeaders:{type:Function},authCredentials:{}},setup(e){const t=e,r=fe(null),n=fe(null),a=fe(!0),i=fe(0),o=fe(0),l=fe({width:0,height:0});let s=null,u=null,c=0;async function f(){if(s)return s;try{const m=await Promise.resolve().then(()=>aS);return s=m.default??m,s}catch{return null}}async function d(){var v;a.value=!0,n.value=null,u=null,i.value=0,o.value=0;const m=++c,y=await f();if(m===c){if(!y){n.value=t.t?t.t("viewer.peer_not_installed"):"TIFF viewer requires `utif` — install or use download.",a.value=!1;return}try{const k=await pp({url:t.url,headers:((v=t.authHeaders)==null?void 0:v.call(t))??{},credentials:t.authCredentials});if(m!==c)return;if(u=y.decode(k),o.value=(u==null?void 0:u.length)??0,o.value===0)throw new Error("No pages decoded");h()}catch(k){n.value=k instanceof Error?k.message:"TIFF decode failed"}finally{a.value=!1}}}function h(){if(!s||!u||!r.value)return;const m=Math.max(0,Math.min(i.value,u.length-1)),y=u[m];try{s.decodeImage(void 0,y)}catch{}const v=s.toRGBA8(y),k=y.width,C=y.height;l.value={width:k,height:C};const A=r.value;A.width=k,A.height=C;const _=A.getContext("2d");if(!_)return;const E=_.createImageData(k,C);E.data.set(v),_.putImageData(E,0,0)}function b(){i.value<o.value-1&&(i.value++,h())}function p(){i.value>0&&(i.value--,h())}mr(d),Ur(()=>{c++,u=null}),er(()=>t.url,d);const x=gt(()=>(t.t&&t.t("viewer.page_n_of_m")||"Page {n} of {m}").replace("{n}",String(i.value+1)).replace("{m}",String(o.value)));function g(m,y){return t.t?t.t(m):y}return(m,y)=>(J(),ae("div",cw,[N("div",fw,[n.value?(J(),ae("div",dw,[y[0]||(y[0]=N("span",{class:"filex-viewer-fallback__icon"},"🖼️",-1)),N("p",null,se(n.value),1)])):a.value?(J(),ae("div",hw,[y[1]||(y[1]=N("span",{class:"filex-viewer-fallback__icon"},"⏳",-1)),N("p",null,se(g("viewer.loading","Loading…")),1)])):rt("",!0),tr(N("canvas",{ref_key:"canvasEl",ref:r,style:{imageRendering:"pixelated"}},null,512),[[cc,!a.value&&!n.value]]),!a.value&&!n.value&&o.value>1?(J(),ae("div",pw,[N("button",{type:"button",class:"filex-viewer-btn",disabled:i.value===0,onClick:p},"‹",8,vw),N("span",mw,se(x.value),1),N("button",{type:"button",class:"filex-viewer-btn",disabled:i.value>=o.value-1,onClick:b},"›",8,gw)])):rt("",!0)])]))}}),[["__scopeId","data-v-9c711133"]])},Symbol.toStringTag,{value:"Module"})),bw={class:"filex-viewer-psd"},yw={class:"filex-viewer-psd__pane"},xw={key:0,class:"filex-viewer-fallback"},_w={key:1,class:"filex-viewer-fallback"},ww=Object.freeze(Object.defineProperty({__proto__:null,default:ln(Wt({__name:"PsdViewer",props:{url:{},mime:{},ext:{},t:{type:Function},authHeaders:{type:Function},authCredentials:{}},setup(e){const t=e,r=fe(null),n=fe([]),a=fe(null),i=fe(!0),o=fe({width:0,height:0});let l=0,s=null;async function u(){if(s)return s;try{return s=await Promise.resolve().then(()=>wT),s}catch{return null}}function c(h,b){if(h&&Array.isArray(h.children))for(const p of h.children)b.push({index:b.length,name:p.name??"(unnamed)",hidden:!!p.hidden}),p.children&&c(p,b)}async function f(){var p;i.value=!0,a.value=null,n.value=[];const h=++l,b=await u();if(h===l){if(!b){a.value=t.t?t.t("viewer.peer_not_installed"):"PSD viewer requires `ag-psd` — install or use download.",i.value=!1;return}try{const x=await pp({url:t.url,headers:((p=t.authHeaders)==null?void 0:p.call(t))??{},credentials:t.authCredentials});if(h!==l)return;const g=b.readPsd(x,{skipLayerImageData:!1,skipCompositeImageData:!1,skipThumbnail:!0});o.value={width:g.width,height:g.height};const m=g.canvas;if(m&&r.value){const v=r.value;v.width=g.width,v.height=g.height;const k=v.getContext("2d");k==null||k.drawImage(m,0,0)}else throw new Error("PSD has no composite image (skipCompositeImageData?)");const y=[];c(g,y),n.value=y}catch(x){a.value=x instanceof Error?x.message:"PSD decode failed"}finally{i.value=!1}}}mr(f),Ur(()=>{l++}),er(()=>t.url,f);function d(h,b){return t.t?t.t(h):b}return(h,b)=>(J(),ae("div",bw,[N("div",yw,[a.value?(J(),ae("div",xw,[b[0]||(b[0]=N("span",{class:"filex-viewer-fallback__icon"},"🎨",-1)),N("p",null,se(a.value),1)])):i.value?(J(),ae("div",_w,[b[1]||(b[1]=N("span",{class:"filex-viewer-fallback__icon"},"⏳",-1)),N("p",null,se(d("viewer.loading","Loading…")),1)])):rt("",!0),tr(N("canvas",{ref_key:"canvasEl",ref:r},null,512),[[cc,!i.value&&!a.value]])])]))}}),[["__scopeId","data-v-e073aaf6"]])},Symbol.toStringTag,{value:"Module"})),kw={class:"filex-viewer-ipynb"},Sw={class:"filex-viewer-ipynb__pane"},Cw={key:0,class:"filex-viewer-fallback"},Aw={key:1,class:"filex-viewer-fallback"},Ew={key:2},Tw=["data-type"],Mw={class:"filex-viewer-ipynb__exec"},Dw={class:"filex-viewer-ipynb__src hljs"},Iw=["innerHTML"],zw={key:1},Fw={key:0,class:"filex-viewer-ipynb__outputs"},Ow=["src","alt"],Pw=["innerHTML"],Rw=["data-type"],Lw=["innerHTML"],Bw={key:1,class:"filex-viewer-ipynb__md-raw"},Nw={key:2,class:"filex-viewer-ipynb__src"},$w=Object.freeze(Object.defineProperty({__proto__:null,default:ln(Wt({__name:"IpynbViewer",props:{url:{},ext:{},t:{type:Function},authHeaders:{type:Function},authCredentials:{}},setup(e){const t=e,r=fe([]),n=fe("python"),a=fe(null),i=fe(!0),o=fe(new Map),l=fe(new Map);let s=0,u=null,c=null;async function f(){if(c!==null)return c||null;try{const m=await import("markdown-it"),y=m.default??m;return c=new y({html:!1,linkify:!0,breaks:!0}),c}catch{return c=!1,null}}function d(m){return Array.isArray(m)?m.join(""):m??""}async function h(){var C,A,_,E;i.value=!0,a.value=null,r.value=[],o.value=new Map,l.value=new Map;const m=++s;let y;try{y=await Ks({url:t.url,headers:((C=t.authHeaders)==null?void 0:C.call(t))??{},credentials:t.authCredentials})}catch(M){a.value=M instanceof Error?M.message:"fetch failed",i.value=!1;return}if(m!==s)return;let v;try{v=JSON.parse(y)}catch{a.value="Invalid notebook JSON",i.value=!1;return}if(r.value=Array.isArray(v.cells)?v.cells:[],n.value=((_=(A=v.metadata)==null?void 0:A.kernelspec)==null?void 0:_.language)||"python",u=await lp(),m!==s)return;if(u){const M=u.default??u,z=(E=M.getLanguage)!=null&&E.call(M,n.value)?n.value:null;r.value.forEach((R,O)=>{if(R.cell_type==="code"){const H=d(R.source);try{const Z=z?M.highlight(H,{language:z,ignoreIllegals:!0}):M.highlightAuto(H);o.value.set(O,Z.value)}catch{}}})}const k=await f();m===s&&(k&&r.value.forEach((M,z)=>{if(M.cell_type==="markdown")try{l.value.set(z,k.render(d(M.source)))}catch{}}),i.value=!1)}function b(m){var y;return m?m.output_type==="stream"?d(m.text):m.output_type==="error"?[m.ename,m.evalue,...m.traceback||[]].filter(Boolean).join(`
22
+ `):(m.output_type==="execute_result"||m.output_type==="display_data")&&(y=m.data)!=null&&y["text/plain"]?d(m.data["text/plain"]):null:null}function p(m){if(!(m!=null&&m.data))return null;if(m.data["image/png"])return`data:image/png;base64,${m.data["image/png"]}`;if(m.data["image/jpeg"])return`data:image/jpeg;base64,${m.data["image/jpeg"]}`;if(m.data["image/svg+xml"]){const y=d(m.data["image/svg+xml"]);return`data:image/svg+xml;utf8,${encodeURIComponent(y)}`}return null}function x(m){return m!=null&&m.data&&m.data["text/html"]?d(m.data["text/html"]).replace(/<script[\s\S]*?<\/script>/gi,""):null}mr(h),Ur(()=>{s++}),er(()=>t.url,h);function g(m,y){return t.t?t.t(m):y}return(m,y)=>(J(),ae("div",kw,[N("div",Sw,[a.value?(J(),ae("div",Cw,[y[0]||(y[0]=N("span",{class:"filex-viewer-fallback__icon"},"📓",-1)),N("p",null,se(a.value),1)])):i.value?(J(),ae("div",Aw,[y[1]||(y[1]=N("span",{class:"filex-viewer-fallback__icon"},"⏳",-1)),N("p",null,se(g("viewer.loading","Loading…")),1)])):(J(),ae("div",Ew,[(J(!0),ae(xt,null,ir(r.value,(v,k)=>(J(),ae("div",{key:k,class:"filex-viewer-ipynb__cell","data-type":v.cell_type},[v.cell_type==="code"?(J(),ae(xt,{key:0},[N("div",Mw," In ["+se(v.execution_count??" ")+"]: ",1),N("pre",Dw,[o.value.get(k)?(J(),ae("code",{key:0,innerHTML:o.value.get(k)},null,8,Iw)):(J(),ae("code",zw,se(d(v.source)),1))]),v.outputs&&v.outputs.length?(J(),ae("div",Fw,[(J(!0),ae(xt,null,ir(v.outputs,(C,A)=>(J(),ae(xt,{key:A},[p(C)?(J(),ae("img",{key:0,src:p(C)||"",class:"filex-viewer-ipynb__img",alt:`output ${A}`},null,8,Ow)):x(C)?(J(),ae("div",{key:1,class:"filex-viewer-ipynb__html",innerHTML:x(C)},null,8,Pw)):b(C)?(J(),ae("pre",{key:2,class:"filex-viewer-ipynb__out","data-type":C.output_type},se(b(C)),9,Rw)):rt("",!0)],64))),128))])):rt("",!0)],64)):v.cell_type==="markdown"?(J(),ae(xt,{key:1},[l.value.get(k)?(J(),ae("div",{key:0,class:"filex-viewer-ipynb__md",innerHTML:l.value.get(k)},null,8,Lw)):(J(),ae("pre",Bw,se(d(v.source)),1))],64)):(J(),ae("pre",Nw,se(d(v.source)),1))],8,Tw))),128))]))])]))}}),[["__scopeId","data-v-cd9ee977"]])},Symbol.toStringTag,{value:"Module"})),Uw={class:"filex-viewer-csv"},Hw={class:"filex-viewer-csv__pane"},jw={key:0,class:"filex-viewer-fallback"},Gw={key:1,class:"filex-viewer-fallback"},Vw={key:2,class:"filex-viewer-csv__table"},qw={class:"filex-viewer-csv__rownum"},Ww={key:0,class:"filex-viewer-csv__pager"},Kw=["disabled"],Xw={class:"filex-viewer-csv__pageno"},Yw=["disabled"],bc=100,bp=1e3,yp=Object.freeze(Object.defineProperty({__proto__:null,default:ln(Wt({__name:"CsvViewer",props:{url:{},ext:{},t:{type:Function},authHeaders:{type:Function},authCredentials:{}},setup(e){const t=e,r=fe([]),n=fe(null),a=fe(!0),i=fe(!0),o=fe(""),l=fe(1),s=fe(","),u=fe("auto");let c=0;function f(v){const k=v.split(/\r?\n/).slice(0,5).join(`
23
+ `),C=(k.match(/\t/g)||[]).length,A=(k.match(/;/g)||[]).length,_=(k.match(/,/g)||[]).length;return C>_&&C>A?" ":A>_&&A>C?";":","}async function d(v,k){try{const C=await Promise.resolve().then(()=>kT);return(C.default??C).parse(v,{delimiter:k,skipEmptyLines:!0,header:!1}).data.slice(0,bp)}catch{return v.split(/\r?\n/).filter(C=>C.length>0).slice(0,bp).map(C=>C.split(k))}}async function h(){var A;a.value=!0,n.value=null,r.value=[],l.value=1;const v=++c;let k;try{k=await Ks({url:t.url,headers:((A=t.authHeaders)==null?void 0:A.call(t))??{},credentials:t.authCredentials})}catch(_){n.value=_ instanceof Error?_.message:"fetch failed",a.value=!1;return}if(v!==c)return;t.ext==="tsv"?s.value=" ":s.value=f(k.slice(0,4096));const C=u.value==="auto"?s.value:u.value;r.value=await d(k,C),a.value=!1}mr(h),er(()=>t.url,h),er(()=>u.value,()=>{r.value.length!==0&&h()});const b=gt(()=>!i.value||r.value.length===0?r.value.length===0?[]:r.value[0].map((v,k)=>`Col ${k+1}`):r.value[0]),p=gt(()=>i.value?r.value.slice(1):r.value),x=gt(()=>{const v=o.value.trim().toLowerCase();return v?p.value.filter(k=>k.some(C=>(C||"").toLowerCase().includes(v))):p.value}),g=gt(()=>Math.max(1,Math.ceil(x.value.length/bc))),m=gt(()=>{const v=(l.value-1)*bc;return x.value.slice(v,v+bc)});er(o,()=>{l.value=1});function y(v,k){return t.t?t.t(v):k}return(v,k)=>(J(),ae("div",Uw,[N("div",Hw,[n.value?(J(),ae("div",jw,[k[2]||(k[2]=N("span",{class:"filex-viewer-fallback__icon"},"📊",-1)),N("p",null,se(n.value),1)])):a.value?(J(),ae("div",Gw,[k[3]||(k[3]=N("span",{class:"filex-viewer-fallback__icon"},"⏳",-1)),N("p",null,se(y("viewer.loading","Loading…")),1)])):(J(),ae("table",Vw,[N("thead",null,[N("tr",null,[k[4]||(k[4]=N("th",{class:"filex-viewer-csv__rownum"},"#",-1)),(J(!0),ae(xt,null,ir(b.value,(C,A)=>(J(),ae("th",{key:A},se(C),1))),128))])]),N("tbody",null,[(J(!0),ae(xt,null,ir(m.value,(C,A)=>(J(),ae("tr",{key:A},[N("td",qw,se((l.value-1)*100+A+1),1),(J(!0),ae(xt,null,ir(C,(_,E)=>(J(),ae("td",{key:E},se(_),1))),128))]))),128))])]))]),!a.value&&!n.value&&g.value>1?(J(),ae("div",Ww,[N("button",{type:"button",class:"filex-viewer-btn",disabled:l.value<=1,onClick:k[0]||(k[0]=C=>l.value--)},"‹",8,Kw),N("span",Xw,se(l.value)+" / "+se(g.value)+" ("+se(x.value.length)+" satır)",1),N("button",{type:"button",class:"filex-viewer-btn",disabled:l.value>=g.value,onClick:k[1]||(k[1]=C=>l.value++)},"›",8,Yw)])):rt("",!0)]))}}),[["__scopeId","data-v-fc9f1e8b"]])},Symbol.toStringTag,{value:"Module"})),Zw={class:"filex-viewer-archive"},Jw={key:0,class:"filex-viewer-fallback"},Qw={key:1,class:"filex-viewer-fallback"},e9={key:2,class:"filex-viewer-fallback"},t9={key:3,class:"filex-viewer-archive__pane"},r9={class:"filex-viewer-archive__summary"},n9={class:"filex-viewer-archive__table"},a9={class:"filex-viewer-archive__size"},i9=["data-dir"],o9={class:"filex-viewer-archive__icon"},l9={class:"filex-viewer-archive__size"},s9=Object.freeze(Object.defineProperty({__proto__:null,default:ln(Wt({__name:"ArchiveViewer",props:{url:{},filePath:{},ext:{},t:{type:Function},authHeaders:{type:Function},authCredentials:{}},setup(e){const t=e,r=fe([]),n=fe(!0),a=fe(null);function i(c,f){return t.t?t.t(c):f}function o(c){return c<1024?`${c} B`:c<1024*1024?`${(c/1024).toFixed(1)} KB`:c<1024*1024*1024?`${(c/(1024*1024)).toFixed(1)} MB`:`${(c/(1024*1024*1024)).toFixed(2)} GB`}async function l(){if(n.value=!0,a.value=null,r.value=[],!t.filePath){a.value=i("viewer.archive.error","Could not read archive contents."),n.value=!1;return}try{const c=await fetch("/api/files/archive/list",{method:"POST",credentials:t.authCredentials||"include",headers:{"Content-Type":"application/json",...t.authHeaders?t.authHeaders():{}},body:JSON.stringify({path:t.filePath})});if(!c.ok)throw new Error(`${c.status} ${c.statusText}`);const f=await c.json();r.value=f.entries??[]}catch(c){a.value=c instanceof Error?c.message:i("viewer.archive.error","Could not read archive contents.")}finally{n.value=!1}}mr(l),er(()=>t.filePath,l);const s=gt(()=>r.value.reduce((c,f)=>c+(f.size||0),0)),u=gt(()=>r.value.filter(c=>!c.is_dir).length);return(c,f)=>(J(),ae("div",Zw,[a.value?(J(),ae("div",Jw,[f[0]||(f[0]=N("span",{class:"filex-viewer-fallback__icon"},"🗜️",-1)),N("p",null,se(a.value),1)])):n.value?(J(),ae("div",Qw,[f[1]||(f[1]=N("span",{class:"filex-viewer-fallback__icon"},"⏳",-1)),N("p",null,se(i("viewer.loading","Loading…")),1)])):r.value.length===0?(J(),ae("div",e9,[f[2]||(f[2]=N("span",{class:"filex-viewer-fallback__icon"},"🗜️",-1)),N("p",null,se(i("viewer.archive.empty","Archive is empty.")),1)])):(J(),ae("div",t9,[N("div",r9,se(u.value)+" "+se(i("viewer.archive.entries","{n} files").replace("{n}",String(u.value)))+" · "+se(o(s.value)),1),N("table",n9,[N("thead",null,[N("tr",null,[N("th",null,se(i("viewer.name","Name")),1),N("th",a9,se(i("viewer.size","Size")),1)])]),N("tbody",null,[(J(!0),ae(xt,null,ir(r.value,(d,h)=>(J(),ae("tr",{key:h,"data-dir":d.is_dir?"1":"0"},[N("td",null,[N("span",o9,se(d.is_dir?"📁":"📄"),1),Zr(" "+se(d.name),1)]),N("td",l9,se(d.is_dir?"":o(d.size)),1)],8,i9))),128))])])]))]))}}),[["__scopeId","data-v-95e6ab29"]])},Symbol.toStringTag,{value:"Module"}));class Ge extends Error{constructor(t,r){var n="KaTeX parse error: "+t,a,i,o=r&&r.loc;if(o&&o.start<=o.end){var l=o.lexer.input;a=o.start,i=o.end,a===l.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var s=l.slice(a,i).replace(/[^]/g,"$&̲"),u;a>15?u="…"+l.slice(a-15,a):u=l.slice(0,a);var c;i+15<l.length?c=l.slice(i,i+15)+"…":c=l.slice(i),n+=u+s+c}super(n),this.name="ParseError",Object.setPrototypeOf(this,Ge.prototype),this.position=a,a!=null&&i!=null&&(this.length=i-a),this.rawMessage=t}}var u9=/([A-Z])/g,yc=e=>e.replace(u9,"-$1").toLowerCase(),c9={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},f9=/[&><"']/g,Gr=e=>String(e).replace(f9,t=>c9[t]),Xs=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Xs(e.body[0]):e:e.type==="font"?Xs(e.body):e,d9=new Set(["mathord","textord","atom"]),za=e=>d9.has(Xs(e).type),h9=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Ys={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:e=>"#"+e},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:(e,t)=>(t.push(e),t)},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:e=>Math.max(0,e),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:e=>Math.max(0,e),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:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function p9(e){if("default"in e)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class xc{constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(Ys)){var n=Ys[r],a=t[r];this[r]=a!==void 0?n.processor?n.processor(a):a:p9(n)}}reportNonstrict(t,r,n){var a=this.strict;if(typeof a=="function"&&(a=a(t,r,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new Ge("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var a=this.strict;if(typeof a=="function")try{a=a(t,r,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=h9(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class ri{constructor(t,r,n){this.id=t,this.size=r,this.cramped=n}sup(){return fa[v9[this.id]]}sub(){return fa[m9[this.id]]}fracNum(){return fa[g9[this.id]]}fracDen(){return fa[b9[this.id]]}cramp(){return fa[y9[this.id]]}text(){return fa[x9[this.id]]}isTight(){return this.size>=2}}var _c=0,Zs=1,ho=2,Fa=3,Cl=4,Dn=5,po=6,Jr=7,fa=[new ri(_c,0,!1),new ri(Zs,0,!0),new ri(ho,1,!1),new ri(Fa,1,!0),new ri(Cl,2,!1),new ri(Dn,2,!0),new ri(po,3,!1),new ri(Jr,3,!0)],v9=[Cl,Dn,Cl,Dn,po,Jr,po,Jr],m9=[Dn,Dn,Dn,Dn,Jr,Jr,Jr,Jr],g9=[ho,Fa,Cl,Dn,po,Jr,po,Jr],b9=[Fa,Fa,Dn,Dn,Jr,Jr,Jr,Jr],y9=[Zs,Zs,Fa,Fa,Dn,Dn,Jr,Jr],x9=[_c,Zs,ho,Fa,ho,Fa,ho,Fa],Ct={DISPLAY:fa[_c],TEXT:fa[ho],SCRIPT:fa[Cl],SCRIPTSCRIPT:fa[po]},wc=[{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 _9(e){for(var t=0;t<wc.length;t++)for(var r=wc[t],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(e>=a[0]&&e<=a[1])return r.name}return null}var Js=[];wc.forEach(e=>e.blocks.forEach(t=>Js.push(...t)));function xp(e){for(var t=0;t<Js.length;t+=2)if(e>=Js[t]&&e<=Js[t+1])return!0;return!1}var Sr=e=>e+" "+e,vo=80,w9=function(t,r){return"M95,"+(622+t+r)+`
24
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
25
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
26
+ c44.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
27
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
28
+ c69,-144,104.5,-217.7,106.5,-221
29
+ l`+t/2.075+" -"+t+`
30
+ c5.3,-9.3,12,-14,20,-14
31
+ H400000v`+(40+t)+`H845.2724
32
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
33
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
34
+ M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},k9=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
35
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
36
+ c340,-704.7,510.7,-1060.3,512,-1067
37
+ l`+t/2.084+" -"+t+`
38
+ c4.7,-7.3,11,-11,19,-11
39
+ H40000v`+(40+t)+`H1012.3
40
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
41
+ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
42
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
43
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
44
+ M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},S9=function(t,r){return"M983 "+(10+t+r)+`
45
+ l`+t/3.13+" -"+t+`
46
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
47
+ H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
48
+ s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
49
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
50
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
51
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
52
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
53
+ M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},C9=function(t,r){return"M424,"+(2398+t+r)+`
54
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
55
+ c0,-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
56
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
57
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
58
+ l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
59
+ v`+(40+t)+`H1014.6
60
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
61
+ c-2,6,-10,9,-24,9
62
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
63
+ h400000v`+(40+t)+"h-400000z"},A9=function(t,r){return"M473,"+(2713+t+r)+`
64
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
65
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
66
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
67
+ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
68
+ c0,-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
69
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
70
+ 606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},E9=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},T9=function(t,r,n){var a=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
71
+ H742v`+a+`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
72
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
73
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
74
+ 219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},M9=function(t,r,n){r=1e3*r;var a="";switch(t){case"sqrtMain":a=w9(r,vo);break;case"sqrtSize1":a=k9(r,vo);break;case"sqrtSize2":a=S9(r,vo);break;case"sqrtSize3":a=C9(r,vo);break;case"sqrtSize4":a=A9(r,vo);break;case"sqrtTall":a=T9(r,vo,n)}return a},D9=function(t,r){switch(t){case"⎜":return Sr("M291 0 H417 V"+r+" H291z");case"∣":return Sr("M145 0 H188 V"+r+" H145z");case"∥":return Sr("M145 0 H188 V"+r+" H145z")+Sr("M367 0 H410 V"+r+" H367z");case"⎟":return Sr("M457 0 H583 V"+r+" H457z");case"⎢":return Sr("M319 0 H403 V"+r+" H319z");case"⎥":return Sr("M263 0 H347 V"+r+" H263z");case"⎪":return Sr("M384 0 H504 V"+r+" H384z");case"⏐":return Sr("M312 0 H355 V"+r+" H312z");case"‖":return Sr("M257 0 H300 V"+r+" H257z")+Sr("M478 0 H521 V"+r+" H478z");default:return""}},_p={doubleleftarrow:`M262 157
75
+ l10-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
76
+ 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
77
+ 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
78
+ c2 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
79
+ 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
80
+ -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
81
+ -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
82
+ m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
83
+ -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
84
+ 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
85
+ -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
86
+ -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
87
+ -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
88
+ c-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
89
+ -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
90
+ 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
91
+ -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
92
+ c-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
93
+ 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
94
+ 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
95
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
96
+ -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
97
+ 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
98
+ 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
99
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
100
+ -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
101
+ H435C64 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
102
+ 435 0h399565z`,leftgroupunder:`M400000 262
103
+ H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
104
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
105
+ -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
106
+ -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
107
+ -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
108
+ 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
109
+ -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
110
+ -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
111
+ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
112
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
113
+ 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
114
+ -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
115
+ 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
116
+ -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
117
+ v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
118
+ -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
119
+ -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
120
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Sr("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:Sr("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:Sr("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:Sr("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
121
+ -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
122
+ c28.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
123
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Sr("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
124
+ c-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
125
+ -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
126
+ 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
127
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
128
+ c100.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
129
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
130
+ 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
131
+ -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
132
+ -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
133
+ m368.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
134
+ 60.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
135
+ -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
136
+ m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
137
+ c0 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
138
+ -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
139
+ m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
140
+ 85.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
141
+ -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
142
+ m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
143
+ c0 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
144
+ -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
145
+ 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
146
+ 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
147
+ -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
148
+ -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
149
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
150
+ -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
151
+ s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
152
+ c124.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
153
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
154
+ -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
155
+ 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
156
+ 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
157
+ -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
158
+ -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
159
+ 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
160
+ -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
161
+ 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
162
+ m0 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
163
+ 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
164
+ -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
165
+ -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
166
+ 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
167
+ 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
168
+ -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
169
+ m0-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
170
+ 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
171
+ -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
172
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Sr("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:Sr("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:Sr("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
173
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
174
+ -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
175
+ -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
176
+ 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
177
+ -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
178
+ -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
179
+ -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
180
+ 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
181
+ c-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
182
+ 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
183
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
184
+ -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
185
+ 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
186
+ -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
187
+ 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
188
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
189
+ -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
190
+ -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
191
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
192
+ c1 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
193
+ 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
194
+ -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
195
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
196
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
197
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
198
+ -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
199
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
200
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
201
+ -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
202
+ 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
203
+ 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
204
+ -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
205
+ -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
206
+ H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
207
+ c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
208
+ c-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
209
+ -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
210
+ -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
211
+ -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,
212
+ -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,
213
+ -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,
214
+ -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,
215
+ -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
216
+ c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
217
+ c-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
218
+ s-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
219
+ 121.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
220
+ s2.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
221
+ c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
222
+ M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
223
+ -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
224
+ 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 39
225
+ -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
226
+ -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
227
+ -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
228
+ 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
229
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
230
+ c2,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
231
+ c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
232
+ c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
233
+ M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
234
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
235
+ -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
236
+ c-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
237
+ M0 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
238
+ c1.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,
239
+ 1c0,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,
240
+ -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
241
+ M93 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
242
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
243
+ -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
244
+ c-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
245
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},I9=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
246
+ H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
247
+ M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
248
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
249
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
250
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
251
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
252
+ M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
253
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
254
+ c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
255
+ MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
256
+ MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
257
+ M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
258
+ M347 1759 V0 h-84 V1759 v`+r+" 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
259
+ c-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,
260
+ -36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
261
+ 949.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
262
+ c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
263
+ -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
264
+ l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
265
+ -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,
266
+ 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
267
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
268
+ c-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
269
+ c-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
270
+ c0,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
271
+ c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
272
+ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
273
+ -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.")}};class mo{constructor(t){this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}}var kc={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},z9={ex:!0,em:!0,mu:!0},wp=function(t){return typeof t!="string"&&(t=t.unit),t in kc||t in z9||t==="ex"},ur=function(t,r){var n;if(t.unit in kc)n=kc[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,t.unit==="ex")n=a.fontMetrics().xHeight;else if(t.unit==="em")n=a.fontMetrics().quad;else throw new Ge("Invalid unit: '"+t.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},Xe=function(t){return+t.toFixed(4)+"em"},ni=function(t){return t.filter(r=>r).join(" ")},kp=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var a=r.getColor();a&&(this.style.color=a)}},Sp=function(t){var r=document.createElement(t);r.className=ni(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var a of Object.keys(this.attributes))r.setAttribute(a,this.attributes[a]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r},F9=/[\s"'>/=\x00-\x1f]/,Cp=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+Gr(ni(this.classes))+'"');var n="";for(var a of Object.keys(this.style))n+=yc(a)+":"+this.style[a]+";";n&&(r+=' style="'+Gr(n)+'"');for(var i of Object.keys(this.attributes)){if(F9.test(i))throw new Ge("Invalid attribute name '"+i+"'");r+=" "+i+'="'+Gr(this.attributes[i])+'"'}r+=">";for(var o=0;o<this.children.length;o++)r+=this.children[o].toMarkup();return r+="</"+t+">",r};class go{constructor(t,r,n,a){kp.call(this,t,n,a),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Sp.call(this,"span")}toMarkup(){return Cp.call(this,"span")}}class Qs{constructor(t,r,n,a){kp.call(this,r,a),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Sp.call(this,"a")}toMarkup(){return Cp.call(this,"a")}}class O9{constructor(t,r,n){this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r of Object.keys(this.style))t.style[r]=this.style[r];return t}toMarkup(){var t='<img src="'+Gr(this.src)+'"'+(' alt="'+Gr(this.alt)+'"'),r="";for(var n of Object.keys(this.style))r+=yc(n)+":"+this.style[n]+";";return r&&(t+=' style="'+Gr(r)+'"'),t+="'/>",t}}var P9={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class hn{constructor(t,r,n,a,i,o,l,s){this.text=t,this.height=r||0,this.depth=n||0,this.italic=a||0,this.skew=i||0,this.width=o||0,this.classes=l||[],this.style=s||{},this.maxFontSize=0;var u=_9(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=P9[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=Xe(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=ni(this.classes));for(var n of Object.keys(this.style))r=r||document.createElement("span"),r.style[n]=this.style[n];return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=Gr(ni(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+Xe(this.italic)+";");for(var a of Object.keys(this.style))n+=yc(a)+":"+this.style[a]+";";n&&(t=!0,r+=' style="'+Gr(n)+'"');var i=Gr(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}}class Oa{constructor(t,r){this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))t+=" "+r+'="'+Gr(this.attributes[r])+'"';t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class ai{constructor(t,r){this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",_p[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Gr(this.alternate)+'"/>':'<path d="'+Gr(_p[this.pathName])+'"/>'}}class Sc{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+Gr(this.attributes[r])+'"';return t+="/>",t}}function R9(e){if(e instanceof hn)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function L9(e){if(e instanceof go)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var B9=e=>e instanceof go||e instanceof Qs||e instanceof mo,da={"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]}},e0={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]},Ap={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Ep(e,t){da[e]=t}function Cc(e,t,r){if(!da[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),a=da[t][n];if(!a&&e[0]in Ap&&(n=Ap[e[0]].charCodeAt(0),a=da[t][n]),!a&&r==="text"&&xp(n)&&(a=da[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Ac={};function N9(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Ac[t]){var r=Ac[t]={cssEmPerMu:e0.quad[t]/18};for(var n in e0)e0.hasOwnProperty(n)&&(r[n]=e0[n][t])}return Ac[t]}var $9={bin:1,close:1,inner:1,open:1,punct:1,rel:1},U9={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},or={math:{},text:{}};function w(e,t,r,n,a,i){or[e][a]={font:t,group:r,replace:n},i&&n&&(or[e][n]=or[e][a])}var T="math",Be="text",F="main",K="ams",lr="accent-token",ot="bin",Qr="close",bo="inner",_t="mathord",gr="op-token",pn="open",Al="punct",Y="rel",Pa="spacing",le="textord";w(T,F,Y,"≡","\\equiv",!0),w(T,F,Y,"≺","\\prec",!0),w(T,F,Y,"≻","\\succ",!0),w(T,F,Y,"∼","\\sim",!0),w(T,F,Y,"⊥","\\perp"),w(T,F,Y,"⪯","\\preceq",!0),w(T,F,Y,"⪰","\\succeq",!0),w(T,F,Y,"≃","\\simeq",!0),w(T,F,Y,"∣","\\mid",!0),w(T,F,Y,"≪","\\ll",!0),w(T,F,Y,"≫","\\gg",!0),w(T,F,Y,"≍","\\asymp",!0),w(T,F,Y,"∥","\\parallel"),w(T,F,Y,"⋈","\\bowtie",!0),w(T,F,Y,"⌣","\\smile",!0),w(T,F,Y,"⊑","\\sqsubseteq",!0),w(T,F,Y,"⊒","\\sqsupseteq",!0),w(T,F,Y,"≐","\\doteq",!0),w(T,F,Y,"⌢","\\frown",!0),w(T,F,Y,"∋","\\ni",!0),w(T,F,Y,"∝","\\propto",!0),w(T,F,Y,"⊢","\\vdash",!0),w(T,F,Y,"⊣","\\dashv",!0),w(T,F,Y,"∋","\\owns"),w(T,F,Al,".","\\ldotp"),w(T,F,Al,"⋅","\\cdotp"),w(T,F,Al,"⋅","·"),w(Be,F,le,"⋅","·"),w(T,F,le,"#","\\#"),w(Be,F,le,"#","\\#"),w(T,F,le,"&","\\&"),w(Be,F,le,"&","\\&"),w(T,F,le,"ℵ","\\aleph",!0),w(T,F,le,"∀","\\forall",!0),w(T,F,le,"ℏ","\\hbar",!0),w(T,F,le,"∃","\\exists",!0),w(T,F,le,"∇","\\nabla",!0),w(T,F,le,"♭","\\flat",!0),w(T,F,le,"ℓ","\\ell",!0),w(T,F,le,"♮","\\natural",!0),w(T,F,le,"♣","\\clubsuit",!0),w(T,F,le,"℘","\\wp",!0),w(T,F,le,"♯","\\sharp",!0),w(T,F,le,"♢","\\diamondsuit",!0),w(T,F,le,"ℜ","\\Re",!0),w(T,F,le,"♡","\\heartsuit",!0),w(T,F,le,"ℑ","\\Im",!0),w(T,F,le,"♠","\\spadesuit",!0),w(T,F,le,"§","\\S",!0),w(Be,F,le,"§","\\S"),w(T,F,le,"¶","\\P",!0),w(Be,F,le,"¶","\\P"),w(T,F,le,"†","\\dag"),w(Be,F,le,"†","\\dag"),w(Be,F,le,"†","\\textdagger"),w(T,F,le,"‡","\\ddag"),w(Be,F,le,"‡","\\ddag"),w(Be,F,le,"‡","\\textdaggerdbl"),w(T,F,Qr,"⎱","\\rmoustache",!0),w(T,F,pn,"⎰","\\lmoustache",!0),w(T,F,Qr,"⟯","\\rgroup",!0),w(T,F,pn,"⟮","\\lgroup",!0),w(T,F,ot,"∓","\\mp",!0),w(T,F,ot,"⊖","\\ominus",!0),w(T,F,ot,"⊎","\\uplus",!0),w(T,F,ot,"⊓","\\sqcap",!0),w(T,F,ot,"∗","\\ast"),w(T,F,ot,"⊔","\\sqcup",!0),w(T,F,ot,"◯","\\bigcirc",!0),w(T,F,ot,"∙","\\bullet",!0),w(T,F,ot,"‡","\\ddagger"),w(T,F,ot,"≀","\\wr",!0),w(T,F,ot,"⨿","\\amalg"),w(T,F,ot,"&","\\And"),w(T,F,Y,"⟵","\\longleftarrow",!0),w(T,F,Y,"⇐","\\Leftarrow",!0),w(T,F,Y,"⟸","\\Longleftarrow",!0),w(T,F,Y,"⟶","\\longrightarrow",!0),w(T,F,Y,"⇒","\\Rightarrow",!0),w(T,F,Y,"⟹","\\Longrightarrow",!0),w(T,F,Y,"↔","\\leftrightarrow",!0),w(T,F,Y,"⟷","\\longleftrightarrow",!0),w(T,F,Y,"⇔","\\Leftrightarrow",!0),w(T,F,Y,"⟺","\\Longleftrightarrow",!0),w(T,F,Y,"↦","\\mapsto",!0),w(T,F,Y,"⟼","\\longmapsto",!0),w(T,F,Y,"↗","\\nearrow",!0),w(T,F,Y,"↩","\\hookleftarrow",!0),w(T,F,Y,"↪","\\hookrightarrow",!0),w(T,F,Y,"↘","\\searrow",!0),w(T,F,Y,"↼","\\leftharpoonup",!0),w(T,F,Y,"⇀","\\rightharpoonup",!0),w(T,F,Y,"↙","\\swarrow",!0),w(T,F,Y,"↽","\\leftharpoondown",!0),w(T,F,Y,"⇁","\\rightharpoondown",!0),w(T,F,Y,"↖","\\nwarrow",!0),w(T,F,Y,"⇌","\\rightleftharpoons",!0),w(T,K,Y,"≮","\\nless",!0),w(T,K,Y,"","\\@nleqslant"),w(T,K,Y,"","\\@nleqq"),w(T,K,Y,"⪇","\\lneq",!0),w(T,K,Y,"≨","\\lneqq",!0),w(T,K,Y,"","\\@lvertneqq"),w(T,K,Y,"⋦","\\lnsim",!0),w(T,K,Y,"⪉","\\lnapprox",!0),w(T,K,Y,"⊀","\\nprec",!0),w(T,K,Y,"⋠","\\npreceq",!0),w(T,K,Y,"⋨","\\precnsim",!0),w(T,K,Y,"⪹","\\precnapprox",!0),w(T,K,Y,"≁","\\nsim",!0),w(T,K,Y,"","\\@nshortmid"),w(T,K,Y,"∤","\\nmid",!0),w(T,K,Y,"⊬","\\nvdash",!0),w(T,K,Y,"⊭","\\nvDash",!0),w(T,K,Y,"⋪","\\ntriangleleft"),w(T,K,Y,"⋬","\\ntrianglelefteq",!0),w(T,K,Y,"⊊","\\subsetneq",!0),w(T,K,Y,"","\\@varsubsetneq"),w(T,K,Y,"⫋","\\subsetneqq",!0),w(T,K,Y,"","\\@varsubsetneqq"),w(T,K,Y,"≯","\\ngtr",!0),w(T,K,Y,"","\\@ngeqslant"),w(T,K,Y,"","\\@ngeqq"),w(T,K,Y,"⪈","\\gneq",!0),w(T,K,Y,"≩","\\gneqq",!0),w(T,K,Y,"","\\@gvertneqq"),w(T,K,Y,"⋧","\\gnsim",!0),w(T,K,Y,"⪊","\\gnapprox",!0),w(T,K,Y,"⊁","\\nsucc",!0),w(T,K,Y,"⋡","\\nsucceq",!0),w(T,K,Y,"⋩","\\succnsim",!0),w(T,K,Y,"⪺","\\succnapprox",!0),w(T,K,Y,"≆","\\ncong",!0),w(T,K,Y,"","\\@nshortparallel"),w(T,K,Y,"∦","\\nparallel",!0),w(T,K,Y,"⊯","\\nVDash",!0),w(T,K,Y,"⋫","\\ntriangleright"),w(T,K,Y,"⋭","\\ntrianglerighteq",!0),w(T,K,Y,"","\\@nsupseteqq"),w(T,K,Y,"⊋","\\supsetneq",!0),w(T,K,Y,"","\\@varsupsetneq"),w(T,K,Y,"⫌","\\supsetneqq",!0),w(T,K,Y,"","\\@varsupsetneqq"),w(T,K,Y,"⊮","\\nVdash",!0),w(T,K,Y,"⪵","\\precneqq",!0),w(T,K,Y,"⪶","\\succneqq",!0),w(T,K,Y,"","\\@nsubseteqq"),w(T,K,ot,"⊴","\\unlhd"),w(T,K,ot,"⊵","\\unrhd"),w(T,K,Y,"↚","\\nleftarrow",!0),w(T,K,Y,"↛","\\nrightarrow",!0),w(T,K,Y,"⇍","\\nLeftarrow",!0),w(T,K,Y,"⇏","\\nRightarrow",!0),w(T,K,Y,"↮","\\nleftrightarrow",!0),w(T,K,Y,"⇎","\\nLeftrightarrow",!0),w(T,K,Y,"△","\\vartriangle"),w(T,K,le,"ℏ","\\hslash"),w(T,K,le,"▽","\\triangledown"),w(T,K,le,"◊","\\lozenge"),w(T,K,le,"Ⓢ","\\circledS"),w(T,K,le,"®","\\circledR"),w(Be,K,le,"®","\\circledR"),w(T,K,le,"∡","\\measuredangle",!0),w(T,K,le,"∄","\\nexists"),w(T,K,le,"℧","\\mho"),w(T,K,le,"Ⅎ","\\Finv",!0),w(T,K,le,"⅁","\\Game",!0),w(T,K,le,"‵","\\backprime"),w(T,K,le,"▲","\\blacktriangle"),w(T,K,le,"▼","\\blacktriangledown"),w(T,K,le,"■","\\blacksquare"),w(T,K,le,"⧫","\\blacklozenge"),w(T,K,le,"★","\\bigstar"),w(T,K,le,"∢","\\sphericalangle",!0),w(T,K,le,"∁","\\complement",!0),w(T,K,le,"ð","\\eth",!0),w(Be,F,le,"ð","ð"),w(T,K,le,"╱","\\diagup"),w(T,K,le,"╲","\\diagdown"),w(T,K,le,"□","\\square"),w(T,K,le,"□","\\Box"),w(T,K,le,"◊","\\Diamond"),w(T,K,le,"¥","\\yen",!0),w(Be,K,le,"¥","\\yen",!0),w(T,K,le,"✓","\\checkmark",!0),w(Be,K,le,"✓","\\checkmark"),w(T,K,le,"ℶ","\\beth",!0),w(T,K,le,"ℸ","\\daleth",!0),w(T,K,le,"ℷ","\\gimel",!0),w(T,K,le,"ϝ","\\digamma",!0),w(T,K,le,"ϰ","\\varkappa"),w(T,K,pn,"┌","\\@ulcorner",!0),w(T,K,Qr,"┐","\\@urcorner",!0),w(T,K,pn,"└","\\@llcorner",!0),w(T,K,Qr,"┘","\\@lrcorner",!0),w(T,K,Y,"≦","\\leqq",!0),w(T,K,Y,"⩽","\\leqslant",!0),w(T,K,Y,"⪕","\\eqslantless",!0),w(T,K,Y,"≲","\\lesssim",!0),w(T,K,Y,"⪅","\\lessapprox",!0),w(T,K,Y,"≊","\\approxeq",!0),w(T,K,ot,"⋖","\\lessdot"),w(T,K,Y,"⋘","\\lll",!0),w(T,K,Y,"≶","\\lessgtr",!0),w(T,K,Y,"⋚","\\lesseqgtr",!0),w(T,K,Y,"⪋","\\lesseqqgtr",!0),w(T,K,Y,"≑","\\doteqdot"),w(T,K,Y,"≓","\\risingdotseq",!0),w(T,K,Y,"≒","\\fallingdotseq",!0),w(T,K,Y,"∽","\\backsim",!0),w(T,K,Y,"⋍","\\backsimeq",!0),w(T,K,Y,"⫅","\\subseteqq",!0),w(T,K,Y,"⋐","\\Subset",!0),w(T,K,Y,"⊏","\\sqsubset",!0),w(T,K,Y,"≼","\\preccurlyeq",!0),w(T,K,Y,"⋞","\\curlyeqprec",!0),w(T,K,Y,"≾","\\precsim",!0),w(T,K,Y,"⪷","\\precapprox",!0),w(T,K,Y,"⊲","\\vartriangleleft"),w(T,K,Y,"⊴","\\trianglelefteq"),w(T,K,Y,"⊨","\\vDash",!0),w(T,K,Y,"⊪","\\Vvdash",!0),w(T,K,Y,"⌣","\\smallsmile"),w(T,K,Y,"⌢","\\smallfrown"),w(T,K,Y,"≏","\\bumpeq",!0),w(T,K,Y,"≎","\\Bumpeq",!0),w(T,K,Y,"≧","\\geqq",!0),w(T,K,Y,"⩾","\\geqslant",!0),w(T,K,Y,"⪖","\\eqslantgtr",!0),w(T,K,Y,"≳","\\gtrsim",!0),w(T,K,Y,"⪆","\\gtrapprox",!0),w(T,K,ot,"⋗","\\gtrdot"),w(T,K,Y,"⋙","\\ggg",!0),w(T,K,Y,"≷","\\gtrless",!0),w(T,K,Y,"⋛","\\gtreqless",!0),w(T,K,Y,"⪌","\\gtreqqless",!0),w(T,K,Y,"≖","\\eqcirc",!0),w(T,K,Y,"≗","\\circeq",!0),w(T,K,Y,"≜","\\triangleq",!0),w(T,K,Y,"∼","\\thicksim"),w(T,K,Y,"≈","\\thickapprox"),w(T,K,Y,"⫆","\\supseteqq",!0),w(T,K,Y,"⋑","\\Supset",!0),w(T,K,Y,"⊐","\\sqsupset",!0),w(T,K,Y,"≽","\\succcurlyeq",!0),w(T,K,Y,"⋟","\\curlyeqsucc",!0),w(T,K,Y,"≿","\\succsim",!0),w(T,K,Y,"⪸","\\succapprox",!0),w(T,K,Y,"⊳","\\vartriangleright"),w(T,K,Y,"⊵","\\trianglerighteq"),w(T,K,Y,"⊩","\\Vdash",!0),w(T,K,Y,"∣","\\shortmid"),w(T,K,Y,"∥","\\shortparallel"),w(T,K,Y,"≬","\\between",!0),w(T,K,Y,"⋔","\\pitchfork",!0),w(T,K,Y,"∝","\\varpropto"),w(T,K,Y,"◀","\\blacktriangleleft"),w(T,K,Y,"∴","\\therefore",!0),w(T,K,Y,"∍","\\backepsilon"),w(T,K,Y,"▶","\\blacktriangleright"),w(T,K,Y,"∵","\\because",!0),w(T,K,Y,"⋘","\\llless"),w(T,K,Y,"⋙","\\gggtr"),w(T,K,ot,"⊲","\\lhd"),w(T,K,ot,"⊳","\\rhd"),w(T,K,Y,"≂","\\eqsim",!0),w(T,F,Y,"⋈","\\Join"),w(T,K,Y,"≑","\\Doteq",!0),w(T,K,ot,"∔","\\dotplus",!0),w(T,K,ot,"∖","\\smallsetminus"),w(T,K,ot,"⋒","\\Cap",!0),w(T,K,ot,"⋓","\\Cup",!0),w(T,K,ot,"⩞","\\doublebarwedge",!0),w(T,K,ot,"⊟","\\boxminus",!0),w(T,K,ot,"⊞","\\boxplus",!0),w(T,K,ot,"⋇","\\divideontimes",!0),w(T,K,ot,"⋉","\\ltimes",!0),w(T,K,ot,"⋊","\\rtimes",!0),w(T,K,ot,"⋋","\\leftthreetimes",!0),w(T,K,ot,"⋌","\\rightthreetimes",!0),w(T,K,ot,"⋏","\\curlywedge",!0),w(T,K,ot,"⋎","\\curlyvee",!0),w(T,K,ot,"⊝","\\circleddash",!0),w(T,K,ot,"⊛","\\circledast",!0),w(T,K,ot,"⋅","\\centerdot"),w(T,K,ot,"⊺","\\intercal",!0),w(T,K,ot,"⋒","\\doublecap"),w(T,K,ot,"⋓","\\doublecup"),w(T,K,ot,"⊠","\\boxtimes",!0),w(T,K,Y,"⇢","\\dashrightarrow",!0),w(T,K,Y,"⇠","\\dashleftarrow",!0),w(T,K,Y,"⇇","\\leftleftarrows",!0),w(T,K,Y,"⇆","\\leftrightarrows",!0),w(T,K,Y,"⇚","\\Lleftarrow",!0),w(T,K,Y,"↞","\\twoheadleftarrow",!0),w(T,K,Y,"↢","\\leftarrowtail",!0),w(T,K,Y,"↫","\\looparrowleft",!0),w(T,K,Y,"⇋","\\leftrightharpoons",!0),w(T,K,Y,"↶","\\curvearrowleft",!0),w(T,K,Y,"↺","\\circlearrowleft",!0),w(T,K,Y,"↰","\\Lsh",!0),w(T,K,Y,"⇈","\\upuparrows",!0),w(T,K,Y,"↿","\\upharpoonleft",!0),w(T,K,Y,"⇃","\\downharpoonleft",!0),w(T,F,Y,"⊶","\\origof",!0),w(T,F,Y,"⊷","\\imageof",!0),w(T,K,Y,"⊸","\\multimap",!0),w(T,K,Y,"↭","\\leftrightsquigarrow",!0),w(T,K,Y,"⇉","\\rightrightarrows",!0),w(T,K,Y,"⇄","\\rightleftarrows",!0),w(T,K,Y,"↠","\\twoheadrightarrow",!0),w(T,K,Y,"↣","\\rightarrowtail",!0),w(T,K,Y,"↬","\\looparrowright",!0),w(T,K,Y,"↷","\\curvearrowright",!0),w(T,K,Y,"↻","\\circlearrowright",!0),w(T,K,Y,"↱","\\Rsh",!0),w(T,K,Y,"⇊","\\downdownarrows",!0),w(T,K,Y,"↾","\\upharpoonright",!0),w(T,K,Y,"⇂","\\downharpoonright",!0),w(T,K,Y,"⇝","\\rightsquigarrow",!0),w(T,K,Y,"⇝","\\leadsto"),w(T,K,Y,"⇛","\\Rrightarrow",!0),w(T,K,Y,"↾","\\restriction"),w(T,F,le,"‘","`"),w(T,F,le,"$","\\$"),w(Be,F,le,"$","\\$"),w(Be,F,le,"$","\\textdollar"),w(T,F,le,"%","\\%"),w(Be,F,le,"%","\\%"),w(T,F,le,"_","\\_"),w(Be,F,le,"_","\\_"),w(Be,F,le,"_","\\textunderscore"),w(T,F,le,"∠","\\angle",!0),w(T,F,le,"∞","\\infty",!0),w(T,F,le,"′","\\prime"),w(T,F,le,"△","\\triangle"),w(T,F,le,"Γ","\\Gamma",!0),w(T,F,le,"Δ","\\Delta",!0),w(T,F,le,"Θ","\\Theta",!0),w(T,F,le,"Λ","\\Lambda",!0),w(T,F,le,"Ξ","\\Xi",!0),w(T,F,le,"Π","\\Pi",!0),w(T,F,le,"Σ","\\Sigma",!0),w(T,F,le,"Υ","\\Upsilon",!0),w(T,F,le,"Φ","\\Phi",!0),w(T,F,le,"Ψ","\\Psi",!0),w(T,F,le,"Ω","\\Omega",!0),w(T,F,le,"A","Α"),w(T,F,le,"B","Β"),w(T,F,le,"E","Ε"),w(T,F,le,"Z","Ζ"),w(T,F,le,"H","Η"),w(T,F,le,"I","Ι"),w(T,F,le,"K","Κ"),w(T,F,le,"M","Μ"),w(T,F,le,"N","Ν"),w(T,F,le,"O","Ο"),w(T,F,le,"P","Ρ"),w(T,F,le,"T","Τ"),w(T,F,le,"X","Χ"),w(T,F,le,"¬","\\neg",!0),w(T,F,le,"¬","\\lnot"),w(T,F,le,"⊤","\\top"),w(T,F,le,"⊥","\\bot"),w(T,F,le,"∅","\\emptyset"),w(T,K,le,"∅","\\varnothing"),w(T,F,_t,"α","\\alpha",!0),w(T,F,_t,"β","\\beta",!0),w(T,F,_t,"γ","\\gamma",!0),w(T,F,_t,"δ","\\delta",!0),w(T,F,_t,"ϵ","\\epsilon",!0),w(T,F,_t,"ζ","\\zeta",!0),w(T,F,_t,"η","\\eta",!0),w(T,F,_t,"θ","\\theta",!0),w(T,F,_t,"ι","\\iota",!0),w(T,F,_t,"κ","\\kappa",!0),w(T,F,_t,"λ","\\lambda",!0),w(T,F,_t,"μ","\\mu",!0),w(T,F,_t,"ν","\\nu",!0),w(T,F,_t,"ξ","\\xi",!0),w(T,F,_t,"ο","\\omicron",!0),w(T,F,_t,"π","\\pi",!0),w(T,F,_t,"ρ","\\rho",!0),w(T,F,_t,"σ","\\sigma",!0),w(T,F,_t,"τ","\\tau",!0),w(T,F,_t,"υ","\\upsilon",!0),w(T,F,_t,"ϕ","\\phi",!0),w(T,F,_t,"χ","\\chi",!0),w(T,F,_t,"ψ","\\psi",!0),w(T,F,_t,"ω","\\omega",!0),w(T,F,_t,"ε","\\varepsilon",!0),w(T,F,_t,"ϑ","\\vartheta",!0),w(T,F,_t,"ϖ","\\varpi",!0),w(T,F,_t,"ϱ","\\varrho",!0),w(T,F,_t,"ς","\\varsigma",!0),w(T,F,_t,"φ","\\varphi",!0),w(T,F,ot,"∗","*",!0),w(T,F,ot,"+","+"),w(T,F,ot,"−","-",!0),w(T,F,ot,"⋅","\\cdot",!0),w(T,F,ot,"∘","\\circ",!0),w(T,F,ot,"÷","\\div",!0),w(T,F,ot,"±","\\pm",!0),w(T,F,ot,"×","\\times",!0),w(T,F,ot,"∩","\\cap",!0),w(T,F,ot,"∪","\\cup",!0),w(T,F,ot,"∖","\\setminus",!0),w(T,F,ot,"∧","\\land"),w(T,F,ot,"∨","\\lor"),w(T,F,ot,"∧","\\wedge",!0),w(T,F,ot,"∨","\\vee",!0),w(T,F,le,"√","\\surd"),w(T,F,pn,"⟨","\\langle",!0),w(T,F,pn,"∣","\\lvert"),w(T,F,pn,"∥","\\lVert"),w(T,F,Qr,"?","?"),w(T,F,Qr,"!","!"),w(T,F,Qr,"⟩","\\rangle",!0),w(T,F,Qr,"∣","\\rvert"),w(T,F,Qr,"∥","\\rVert"),w(T,F,Y,"=","="),w(T,F,Y,":",":"),w(T,F,Y,"≈","\\approx",!0),w(T,F,Y,"≅","\\cong",!0),w(T,F,Y,"≥","\\ge"),w(T,F,Y,"≥","\\geq",!0),w(T,F,Y,"←","\\gets"),w(T,F,Y,">","\\gt",!0),w(T,F,Y,"∈","\\in",!0),w(T,F,Y,"","\\@not"),w(T,F,Y,"⊂","\\subset",!0),w(T,F,Y,"⊃","\\supset",!0),w(T,F,Y,"⊆","\\subseteq",!0),w(T,F,Y,"⊇","\\supseteq",!0),w(T,K,Y,"⊈","\\nsubseteq",!0),w(T,K,Y,"⊉","\\nsupseteq",!0),w(T,F,Y,"⊨","\\models"),w(T,F,Y,"←","\\leftarrow",!0),w(T,F,Y,"≤","\\le"),w(T,F,Y,"≤","\\leq",!0),w(T,F,Y,"<","\\lt",!0),w(T,F,Y,"→","\\rightarrow",!0),w(T,F,Y,"→","\\to"),w(T,K,Y,"≱","\\ngeq",!0),w(T,K,Y,"≰","\\nleq",!0),w(T,F,Pa," ","\\ "),w(T,F,Pa," ","\\space"),w(T,F,Pa," ","\\nobreakspace"),w(Be,F,Pa," ","\\ "),w(Be,F,Pa," "," "),w(Be,F,Pa," ","\\space"),w(Be,F,Pa," ","\\nobreakspace"),w(T,F,Pa,null,"\\nobreak"),w(T,F,Pa,null,"\\allowbreak"),w(T,F,Al,",",","),w(T,F,Al,";",";"),w(T,K,ot,"⊼","\\barwedge",!0),w(T,K,ot,"⊻","\\veebar",!0),w(T,F,ot,"⊙","\\odot",!0),w(T,F,ot,"⊕","\\oplus",!0),w(T,F,ot,"⊗","\\otimes",!0),w(T,F,le,"∂","\\partial",!0),w(T,F,ot,"⊘","\\oslash",!0),w(T,K,ot,"⊚","\\circledcirc",!0),w(T,K,ot,"⊡","\\boxdot",!0),w(T,F,ot,"△","\\bigtriangleup"),w(T,F,ot,"▽","\\bigtriangledown"),w(T,F,ot,"†","\\dagger"),w(T,F,ot,"⋄","\\diamond"),w(T,F,ot,"⋆","\\star"),w(T,F,ot,"◃","\\triangleleft"),w(T,F,ot,"▹","\\triangleright"),w(T,F,pn,"{","\\{"),w(Be,F,le,"{","\\{"),w(Be,F,le,"{","\\textbraceleft"),w(T,F,Qr,"}","\\}"),w(Be,F,le,"}","\\}"),w(Be,F,le,"}","\\textbraceright"),w(T,F,pn,"{","\\lbrace"),w(T,F,Qr,"}","\\rbrace"),w(T,F,pn,"[","\\lbrack",!0),w(Be,F,le,"[","\\lbrack",!0),w(T,F,Qr,"]","\\rbrack",!0),w(Be,F,le,"]","\\rbrack",!0),w(T,F,pn,"(","\\lparen",!0),w(T,F,Qr,")","\\rparen",!0),w(Be,F,le,"<","\\textless",!0),w(Be,F,le,">","\\textgreater",!0),w(T,F,pn,"⌊","\\lfloor",!0),w(T,F,Qr,"⌋","\\rfloor",!0),w(T,F,pn,"⌈","\\lceil",!0),w(T,F,Qr,"⌉","\\rceil",!0),w(T,F,le,"\\","\\backslash"),w(T,F,le,"∣","|"),w(T,F,le,"∣","\\vert"),w(Be,F,le,"|","\\textbar",!0),w(T,F,le,"∥","\\|"),w(T,F,le,"∥","\\Vert"),w(Be,F,le,"∥","\\textbardbl"),w(Be,F,le,"~","\\textasciitilde"),w(Be,F,le,"\\","\\textbackslash"),w(Be,F,le,"^","\\textasciicircum"),w(T,F,Y,"↑","\\uparrow",!0),w(T,F,Y,"⇑","\\Uparrow",!0),w(T,F,Y,"↓","\\downarrow",!0),w(T,F,Y,"⇓","\\Downarrow",!0),w(T,F,Y,"↕","\\updownarrow",!0),w(T,F,Y,"⇕","\\Updownarrow",!0),w(T,F,gr,"∐","\\coprod"),w(T,F,gr,"⋁","\\bigvee"),w(T,F,gr,"⋀","\\bigwedge"),w(T,F,gr,"⨄","\\biguplus"),w(T,F,gr,"⋂","\\bigcap"),w(T,F,gr,"⋃","\\bigcup"),w(T,F,gr,"∫","\\int"),w(T,F,gr,"∫","\\intop"),w(T,F,gr,"∬","\\iint"),w(T,F,gr,"∭","\\iiint"),w(T,F,gr,"∏","\\prod"),w(T,F,gr,"∑","\\sum"),w(T,F,gr,"⨂","\\bigotimes"),w(T,F,gr,"⨁","\\bigoplus"),w(T,F,gr,"⨀","\\bigodot"),w(T,F,gr,"∮","\\oint"),w(T,F,gr,"∯","\\oiint"),w(T,F,gr,"∰","\\oiiint"),w(T,F,gr,"⨆","\\bigsqcup"),w(T,F,gr,"∫","\\smallint"),w(Be,F,bo,"…","\\textellipsis"),w(T,F,bo,"…","\\mathellipsis"),w(Be,F,bo,"…","\\ldots",!0),w(T,F,bo,"…","\\ldots",!0),w(T,F,bo,"⋯","\\@cdots",!0),w(T,F,bo,"⋱","\\ddots",!0),w(T,F,le,"⋮","\\varvdots"),w(Be,F,le,"⋮","\\varvdots"),w(T,F,lr,"ˊ","\\acute"),w(T,F,lr,"ˋ","\\grave"),w(T,F,lr,"¨","\\ddot"),w(T,F,lr,"~","\\tilde"),w(T,F,lr,"ˉ","\\bar"),w(T,F,lr,"˘","\\breve"),w(T,F,lr,"ˇ","\\check"),w(T,F,lr,"^","\\hat"),w(T,F,lr,"⃗","\\vec"),w(T,F,lr,"˙","\\dot"),w(T,F,lr,"˚","\\mathring"),w(T,F,_t,"","\\@imath"),w(T,F,_t,"","\\@jmath"),w(T,F,le,"ı","ı"),w(T,F,le,"ȷ","ȷ"),w(Be,F,le,"ı","\\i",!0),w(Be,F,le,"ȷ","\\j",!0),w(Be,F,le,"ß","\\ss",!0),w(Be,F,le,"æ","\\ae",!0),w(Be,F,le,"œ","\\oe",!0),w(Be,F,le,"ø","\\o",!0),w(Be,F,le,"Æ","\\AE",!0),w(Be,F,le,"Œ","\\OE",!0),w(Be,F,le,"Ø","\\O",!0),w(Be,F,lr,"ˊ","\\'"),w(Be,F,lr,"ˋ","\\`"),w(Be,F,lr,"ˆ","\\^"),w(Be,F,lr,"˜","\\~"),w(Be,F,lr,"ˉ","\\="),w(Be,F,lr,"˘","\\u"),w(Be,F,lr,"˙","\\."),w(Be,F,lr,"¸","\\c"),w(Be,F,lr,"˚","\\r"),w(Be,F,lr,"ˇ","\\v"),w(Be,F,lr,"¨",'\\"'),w(Be,F,lr,"˝","\\H"),w(Be,F,lr,"◯","\\textcircled");var Tp={"--":!0,"---":!0,"``":!0,"''":!0};w(Be,F,le,"–","--",!0),w(Be,F,le,"–","\\textendash"),w(Be,F,le,"—","---",!0),w(Be,F,le,"—","\\textemdash"),w(Be,F,le,"‘","`",!0),w(Be,F,le,"‘","\\textquoteleft"),w(Be,F,le,"’","'",!0),w(Be,F,le,"’","\\textquoteright"),w(Be,F,le,"“","``",!0),w(Be,F,le,"“","\\textquotedblleft"),w(Be,F,le,"”","''",!0),w(Be,F,le,"”","\\textquotedblright"),w(T,F,le,"°","\\degree",!0),w(Be,F,le,"°","\\degree"),w(Be,F,le,"°","\\textdegree",!0),w(T,F,le,"£","\\pounds"),w(T,F,le,"£","\\mathsterling",!0),w(Be,F,le,"£","\\pounds"),w(Be,F,le,"£","\\textsterling",!0),w(T,K,le,"✠","\\maltese"),w(Be,K,le,"✠","\\maltese");for(var Mp='0123456789/@."',Ec=0;Ec<Mp.length;Ec++){var Dp=Mp.charAt(Ec);w(T,F,le,Dp,Dp)}for(var Ip='0123456789!@*()-=+";:?/.,',Tc=0;Tc<Ip.length;Tc++){var zp=Ip.charAt(Tc);w(Be,F,le,zp,zp)}for(var t0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Mc=0;Mc<t0.length;Mc++){var r0=t0.charAt(Mc);w(T,F,_t,r0,r0),w(Be,F,le,r0,r0)}w(T,K,le,"C","ℂ"),w(Be,K,le,"C","ℂ"),w(T,K,le,"H","ℍ"),w(Be,K,le,"H","ℍ"),w(T,K,le,"N","ℕ"),w(Be,K,le,"N","ℕ"),w(T,K,le,"P","ℙ"),w(Be,K,le,"P","ℙ"),w(T,K,le,"Q","ℚ"),w(Be,K,le,"Q","ℚ"),w(T,K,le,"R","ℝ"),w(Be,K,le,"R","ℝ"),w(T,K,le,"Z","ℤ"),w(Be,K,le,"Z","ℤ"),w(T,F,_t,"h","ℎ"),w(Be,F,_t,"h","ℎ");for(var wt="",en=0;en<t0.length;en++){var dr=t0.charAt(en);wt=String.fromCharCode(55349,56320+en),w(T,F,_t,dr,wt),w(Be,F,le,dr,wt),wt=String.fromCharCode(55349,56372+en),w(T,F,_t,dr,wt),w(Be,F,le,dr,wt),wt=String.fromCharCode(55349,56424+en),w(T,F,_t,dr,wt),w(Be,F,le,dr,wt),wt=String.fromCharCode(55349,56580+en),w(T,F,_t,dr,wt),w(Be,F,le,dr,wt),wt=String.fromCharCode(55349,56684+en),w(T,F,_t,dr,wt),w(Be,F,le,dr,wt),wt=String.fromCharCode(55349,56736+en),w(T,F,_t,dr,wt),w(Be,F,le,dr,wt),wt=String.fromCharCode(55349,56788+en),w(T,F,_t,dr,wt),w(Be,F,le,dr,wt),wt=String.fromCharCode(55349,56840+en),w(T,F,_t,dr,wt),w(Be,F,le,dr,wt),wt=String.fromCharCode(55349,56944+en),w(T,F,_t,dr,wt),w(Be,F,le,dr,wt),en<26&&(wt=String.fromCharCode(55349,56632+en),w(T,F,_t,dr,wt),w(Be,F,le,dr,wt),wt=String.fromCharCode(55349,56476+en),w(T,F,_t,dr,wt),w(Be,F,le,dr,wt))}wt="𝕜",w(T,F,_t,"k",wt),w(Be,F,le,"k",wt);for(var Ii=0;Ii<10;Ii++){var ii=Ii.toString();wt=String.fromCharCode(55349,57294+Ii),w(T,F,_t,ii,wt),w(Be,F,le,ii,wt),wt=String.fromCharCode(55349,57314+Ii),w(T,F,_t,ii,wt),w(Be,F,le,ii,wt),wt=String.fromCharCode(55349,57324+Ii),w(T,F,_t,ii,wt),w(Be,F,le,ii,wt),wt=String.fromCharCode(55349,57334+Ii),w(T,F,_t,ii,wt),w(Be,F,le,ii,wt)}for(var Dc="ÐÞþ",Ic=0;Ic<Dc.length;Ic++){var n0=Dc.charAt(Ic);w(T,F,_t,n0,n0),w(Be,F,le,n0,n0)}var a0=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Fp=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],H9=(e,t)=>{var r=e.charCodeAt(0),n=e.charCodeAt(1),a=(r-55296)*1024+(n-56320)+65536,i=t==="math"?0:1;if(119808<=a&&a<120484){var o=Math.floor((a-119808)/26);return[a0[o][2],a0[o][i]]}else if(120782<=a&&a<=120831){var l=Math.floor((a-120782)/10);return[Fp[l][2],Fp[l][i]]}else{if(a===120485||a===120486)return[a0[0][2],a0[0][i]];if(120486<a&&a<120782)return["",""];throw new Ge("Unsupported character: "+e)}},i0=function(t,r,n){if(or[n][t]){var a=or[n][t].replace;a&&(t=a)}return{value:t,metrics:Cc(t,r,n)}},tn=function(t,r,n,a,i){var o=i0(t,r,n),l=o.metrics;t=o.value;var s;if(l){var u=l.italic;(n==="text"||a&&a.font==="mathit")&&(u=0),s=new hn(t,l.height,l.depth,u,l.skew,l.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),s=new hn(t,0,0,0,0,0,i);if(a){s.maxFontSize=a.sizeMultiplier,a.style.isTight()&&s.classes.push("mtight");var c=a.getColor();c&&(s.style.color=c)}return s},zc=function(t,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&i0(t,"Main-Bold",r).metrics?tn(t,"Main-Bold",r,n,a.concat(["mathbf"])):t==="\\"||or[r][t].font==="main"?tn(t,"Main-Regular",r,n,a):tn(t,"AMS-Regular",r,n,a.concat(["amsrm"]))},j9=function(t,r,n,a,i){return i!=="textord"&&i0(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},o0=function(t,r,n){var a=t.mode,i=t.text,o=["mord"],l=a==="math"||a==="text"&&r.font,s=l?r.font:r.fontFamily,u="",c="";if(i.charCodeAt(0)===55349&&([u,c]=H9(i,a)),u.length>0)return tn(i,u,a,r,o.concat(c));if(s){var f,d;if(s==="boldsymbol"){var h=j9(i,a,r,o,n);f=h.fontName,d=[h.fontClass]}else l?(f=Oc[s].fontName,d=[s]):(f=l0(s,r.fontWeight,r.fontShape),d=[s,r.fontWeight,r.fontShape]);if(i0(i,f,a).metrics)return tn(i,f,a,r,o.concat(d));if(Tp.hasOwnProperty(i)&&f.slice(0,10)==="Typewriter"){for(var b=[],p=0;p<i.length;p++)b.push(tn(i[p],f,a,r,o.concat(d)));return Ra(b)}}if(n==="mathord")return tn(i,"Math-Italic",a,r,o.concat(["mathnormal"]));if(n==="textord"){var x=or[a][i]&&or[a][i].font;if(x==="ams"){var g=l0("amsrm",r.fontWeight,r.fontShape);return tn(i,g,a,r,o.concat("amsrm",r.fontWeight,r.fontShape))}else if(x==="main"||!x){var m=l0("textrm",r.fontWeight,r.fontShape);return tn(i,m,a,r,o.concat(r.fontWeight,r.fontShape))}else{var y=l0(x,r.fontWeight,r.fontShape);return tn(i,y,a,r,o.concat(y,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},G9=(e,t)=>{if(ni(e.classes)!==ni(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(e.style))if(e.style[n]!==t.style[n])return!1;for(var a of Object.keys(t.style))if(e.style[a]!==t.style[a])return!1;return!0},Op=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof hn&&n instanceof hn&&G9(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},Fc=function(t){for(var r=0,n=0,a=0,i=0;i<t.children.length;i++){var o=t.children[i];o.height>r&&(r=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>a&&(a=o.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=a},$e=function(t,r,n,a){var i=new go(t,r,n,a);return Fc(i),i},oi=(e,t,r,n)=>new go(e,t,r,n),yo=function(t,r,n){var a=$e([t],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=Xe(a.height),a.maxFontSize=1,a},V9=function(t,r,n,a){var i=new Qs(t,r,n,a);return Fc(i),i},Ra=function(t){var r=new mo(t);return Fc(r),r},xo=function(t,r){return t instanceof mo?$e([],[t],r):t},q9=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,o=1;o<r.length;o++){var l=-r[o].shift-i-r[o].elem.depth,s=l-(r[o-1].elem.height+r[o-1].elem.depth);i=i+l,n.push({type:"kern",size:s}),n.push(r[o])}return{children:n,depth:a}}var u;if(t.positionType==="top"){for(var c=t.positionData,f=0;f<t.children.length;f++){var d=t.children[f];c-=d.type==="kern"?d.size:d.elem.height+d.elem.depth}u=c}else if(t.positionType==="bottom")u=-t.positionData;else{var h=t.children[0];if(h.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")u=-h.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")u=-h.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:u}},Ut=function(t,r){for(var{children:n,depth:a}=q9(t),i=0,o=0;o<n.length;o++){var l=n[o];if(l.type==="elem"){var s=l.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var u=$e(["pstrut"],[]);u.style.height=Xe(i);for(var c=[],f=a,d=a,h=a,b=0;b<n.length;b++){var p=n[b];if(p.type==="kern")h+=p.size;else{var x=p.elem,g=p.wrapperClasses||[],m=p.wrapperStyle||{},y=$e(g,[u,x],void 0,m);y.style.top=Xe(-i-h-x.depth),p.marginLeft&&(y.style.marginLeft=p.marginLeft),p.marginRight&&(y.style.marginRight=p.marginRight),c.push(y),h+=x.height+x.depth}f=Math.min(f,h),d=Math.max(d,h)}var v=$e(["vlist"],c);v.style.height=Xe(d);var k;if(f<0){var C=$e([],[]),A=$e(["vlist"],[C]);A.style.height=Xe(-f);var _=$e(["vlist-s"],[new hn("​")]);k=[$e(["vlist-r"],[v,_]),$e(["vlist-r"],[A])]}else k=[$e(["vlist-r"],[v])];var E=$e(["vlist-t"],k);return k.length===2&&E.classes.push("vlist-t2"),E.height=d,E.depth=-f,E},Pp=(e,t)=>{var r=$e(["mspace"],[],t),n=ur(e,t);return r.style.marginRight=Xe(n),r},l0=function(t,r,n){var a="";switch(t){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=t}var i;return r==="textbf"&&n==="textit"?i="BoldItalic":r==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",a+"-"+i},Oc={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"}},Rp={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Lp=function(t,r){var[n,a,i]=Rp[t],o=new ai(n),l=new Oa([o],{width:Xe(a),height:Xe(i),style:"width:"+Xe(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),s=oi(["overlay"],[l],r);return s.height=i,s.style.height=Xe(i),s.style.width=Xe(a),s},cr={number:3,unit:"mu"},zi={number:4,unit:"mu"},La={number:5,unit:"mu"},W9={mord:{mop:cr,mbin:zi,mrel:La,minner:cr},mop:{mord:cr,mop:cr,mrel:La,minner:cr},mbin:{mord:zi,mop:zi,mopen:zi,minner:zi},mrel:{mord:La,mop:La,mopen:La,minner:La},mopen:{},mclose:{mop:cr,mbin:zi,mrel:La,minner:cr},mpunct:{mord:cr,mop:cr,mrel:La,mopen:cr,mclose:cr,mpunct:cr,minner:cr},minner:{mord:cr,mop:cr,mbin:zi,mrel:La,mopen:cr,mpunct:cr,minner:cr}},K9={mord:{mop:cr},mop:{mord:cr,mop:cr},mbin:{},mrel:{},mopen:{},mclose:{mop:cr},mpunct:{},minner:{mop:cr}},Bp={},s0={},u0={};function nt(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:o}=e,l={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:a},s=0;s<r.length;++s)Bp[r[s]]=l;t&&(i&&(s0[t]=i),o&&(u0[t]=o))}function Fi(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;nt({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var c0=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},br=function(t){return t.type==="ordgroup"?t.body:[t]},X9=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Y9=new Set(["rightmost","mrel","mclose","mpunct"]),Z9={display:Ct.DISPLAY,text:Ct.TEXT,script:Ct.SCRIPT,scriptscript:Ct.SCRIPTSCRIPT},J9={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Cr=function(t,r,n,a){a===void 0&&(a=[null,null]);for(var i=[],o=0;o<t.length;o++){var l=Ht(t[o],r);if(l instanceof mo){var s=l.children;i.push(...s)}else i.push(l)}if(Op(i),!n)return i;var u=r;if(t.length===1){var c=t[0];c.type==="sizing"?u=r.havingSize(c.size):c.type==="styling"&&(u=r.havingStyle(Z9[c.style]))}var f=$e([a[0]||"leftmost"],[],r),d=$e([a[1]||"rightmost"],[],r),h=n==="root";return Pc(i,(b,p)=>{var x=p.classes[0],g=b.classes[0];x==="mbin"&&Y9.has(g)?p.classes[0]="mord":g==="mbin"&&X9.has(x)&&(b.classes[0]="mord")},{node:f},d,h),Pc(i,(b,p)=>{var x,g,m=Lc(p),y=Lc(b),v=m&&y?b.hasClass("mtight")?(x=K9[m])==null?void 0:x[y]:(g=W9[m])==null?void 0:g[y]:null;if(v)return Pp(v,u)},{node:f},d,h),i},Pc=function(t,r,n,a,i){a&&t.push(a);for(var o=0;o<t.length;o++){var l=t[o],s=Np(l);if(s){Pc(s.children,r,n,null,i);continue}var u=!l.hasClass("mspace");if(u){var c=r(l,n.node);c&&(n.insertAfter?n.insertAfter(c):(t.unshift(c),o++))}u?n.node=l:i&&l.hasClass("newline")&&(n.node=$e(["leftmost"])),n.insertAfter=(f=>d=>{t.splice(f+1,0,d),o++})(o)}a&&t.pop()},Np=function(t){return t instanceof mo||t instanceof Qs||t instanceof go&&t.hasClass("enclosing")?t:null},Rc=function(t,r){var n=Np(t);if(n){var a=n.children;if(a.length){if(r==="right")return Rc(a[a.length-1],"right");if(r==="left")return Rc(a[0],"left")}}return t},Lc=function(t,r){if(!t)return null;r&&(t=Rc(t,r));var n=t.classes[0];return J9[n]||null},El=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return $e(r.concat(n))},Ht=function(t,r,n){if(!t)return $e();if(s0[t.type]){var a=s0[t.type](t,r);if(n&&r.size!==n.size){a=$e(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new Ge("Got group of unknown type: '"+t.type+"'")};function f0(e,t){var r=$e(["base"],e,t),n=$e(["strut"]);return n.style.height=Xe(r.height+r.depth),r.depth&&(n.style.verticalAlign=Xe(-r.depth)),r.children.unshift(n),r}function Bc(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=Cr(e,t,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var i=[],o=[],l=0;l<n.length;l++)if(o.push(n[l]),n[l].hasClass("mbin")||n[l].hasClass("mrel")||n[l].hasClass("allowbreak")){for(var s=!1;l<n.length-1&&n[l+1].hasClass("mspace")&&!n[l+1].hasClass("newline");)l++,o.push(n[l]),n[l].hasClass("nobreak")&&(s=!0);s||(i.push(f0(o,t)),o=[])}else n[l].hasClass("newline")&&(o.pop(),o.length>0&&(i.push(f0(o,t)),o=[]),i.push(n[l]));o.length>0&&i.push(f0(o,t));var u;r?(u=f0(Cr(r,t,!0),t),u.classes=["tag"],i.push(u)):a&&i.push(a);var c=$e(["katex-html"],i);if(c.setAttribute("aria-hidden","true"),u){var f=u.children[0];f.style.height=Xe(c.height+c.depth),c.depth&&(f.style.verticalAlign=Xe(-c.depth))}return c}function $p(e){return new mo(e)}class Ve{constructor(t,r,n){this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=ni(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof yr&&this.children[n+1]instanceof yr){for(var a=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof yr;)a+=this.children[++n].toText();t.appendChild(new yr(a).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=Gr(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+Gr(ni(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class yr{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Gr(this.toText())}toText(){return this.text}}class Up{constructor(t){this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Xe(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Xe(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Q9=new Set(["\\imath","\\jmath"]),ek=new Set(["mrow","mtable"]),In=function(t,r,n){return or[r][t]&&or[r][t].replace&&t.charCodeAt(0)!==55349&&!(Tp.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=or[r][t].replace),new yr(t)},Nc=function(t){return t.length===1?t[0]:new Ve("mrow",t)},$c=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var a=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var i=t.text;if(Q9.has(i))return null;if(or[a][i]){var o=or[a][i].replace;o&&(i=o)}var l=Oc[n].fontName;return Cc(i,l,a)?Oc[n].variant:null};function Uc(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof yr&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof yr&&r.text===","}else return!1}var vn=function(t,r,n){if(t.length===1){var a=Yt(t[0],r);return n&&a instanceof Ve&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],o,l=0;l<t.length;l++){var s=Yt(t[l],r);if(s instanceof Ve&&o instanceof Ve){if(s.type==="mtext"&&o.type==="mtext"&&s.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...s.children);continue}else if(s.type==="mn"&&o.type==="mn"){o.children.push(...s.children);continue}else if(Uc(s)&&o.type==="mn"){o.children.push(...s.children);continue}else if(s.type==="mn"&&Uc(o))s.children=[...o.children,...s.children],i.pop();else if((s.type==="msup"||s.type==="msub")&&s.children.length>=1&&(o.type==="mn"||Uc(o))){var u=s.children[0];u instanceof Ve&&u.type==="mn"&&(u.children=[...o.children,...u.children],i.pop())}else if(o.type==="mi"&&o.children.length===1){var c=o.children[0];if(c instanceof yr&&c.text==="̸"&&(s.type==="mo"||s.type==="mi"||s.type==="mn")){var f=s.children[0];f instanceof yr&&f.text.length>0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),i.pop())}}}i.push(s),o=s}return i},li=function(t,r,n){return Nc(vn(t,r,n))},Yt=function(t,r){if(!t)return new Ve("mrow");if(u0[t.type]){var n=u0[t.type](t,r);return n}else throw new Ge("Got group of unknown type: '"+t.type+"'")};function Hp(e,t,r,n,a){var i=vn(e,r),o;i.length===1&&i[0]instanceof Ve&&ek.has(i[0].type)?o=i[0]:o=new Ve("mrow",i);var l=new Ve("annotation",[new yr(t)]);l.setAttribute("encoding","application/x-tex");var s=new Ve("semantics",[o,l]),u=new Ve("math",[s]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var c=a?"katex":"katex-mathml";return $e([c],[u])}var tk=[[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]],jp=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Gp=function(t,r){return r.size<2?t:tk[t-1][r.size-1]};class Ba{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||Ba.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=jp[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={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(r,t),new Ba(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Gp(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:jp[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=Gp(Ba.BASESIZE,t);return this.size===r&&this.textSize===Ba.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Ba.BASESIZE?["sizing","reset-size"+this.size,"size"+Ba.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=N9(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ba.BASESIZE=6;var Vp=function(t){return new Ba({style:t.displayMode?Ct.DISPLAY:Ct.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},qp=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=$e(n,[t])}return t},rk=function(t,r,n){var a=Vp(n),i;if(n.output==="mathml")return Hp(t,r,a,n.displayMode,!0);if(n.output==="html"){var o=Bc(t,a);i=$e(["katex"],[o])}else{var l=Hp(t,r,a,n.displayMode,!1),s=Bc(t,a);i=$e(["katex"],[l,s])}return qp(i,n)},nk=function(t,r,n){var a=Vp(n),i=Bc(t,a),o=$e(["katex"],[i]);return qp(o,n)},ak={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},d0=function(t){var r=new Ve("mo",[new yr(ak[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},ik={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]},ok=new Set(["widehat","widecheck","widetilde","utilde"]),h0=function(t,r){function n(){var l=4e5,s=t.label.slice(1);if(ok.has(s)){var u=t,c=u.base.type==="ordgroup"?u.base.body.length:1,f,d,h;if(c>5)s==="widehat"||s==="widecheck"?(f=420,l=2364,h=.42,d=s+"4"):(f=312,l=2340,h=.34,d="tilde4");else{var b=[1,1,2,2,3,3][c];s==="widehat"||s==="widecheck"?(l=[0,1062,2364,2364,2364][b],f=[0,239,300,360,420][b],h=[0,.24,.3,.3,.36,.42][b],d=s+b):(l=[0,600,1033,2339,2340][b],f=[0,260,286,306,312][b],h=[0,.26,.286,.3,.306,.34][b],d="tilde"+b)}var p=new ai(d),x=new Oa([p],{width:"100%",height:Xe(h),viewBox:"0 0 "+l+" "+f,preserveAspectRatio:"none"});return{span:oi([],[x],r),minWidth:0,height:h}}else{var g=[],m=ik[s],[y,v,k]=m,C=k/1e3,A=y.length,_,E;if(A===1){var M=m[3];_=["hide-tail"],E=[M]}else if(A===2)_=["halfarrow-left","halfarrow-right"],E=["xMinYMin","xMaxYMin"];else if(A===3)_=["brace-left","brace-center","brace-right"],E=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
274
+ `+A+" children.");for(var z=0;z<A;z++){var R=new ai(y[z]),O=new Oa([R],{width:"400em",height:Xe(C),viewBox:"0 0 "+l+" "+k,preserveAspectRatio:E[z]+" slice"}),H=oi([_[z]],[O],r);if(A===1)return{span:H,minWidth:v,height:C};H.style.height=Xe(C),g.push(H)}return{span:$e(["stretchy"],g,r),minWidth:v,height:C}}}var{span:a,minWidth:i,height:o}=n();return a.height=o,a.style.height=Xe(o),i>0&&(a.style.minWidth=Xe(i)),a},lk=function(t,r,n,a,i){var o,l=t.height+t.depth+n+a;if(/fbox|color|angl/.test(r)){if(o=$e(["stretchy",r],[],i),r==="fbox"){var s=i.color&&i.getColor();s&&(o.style.borderColor=s)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new Sc({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new Sc({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Oa(u,{width:"100%",height:Xe(l)});o=oi([],[c],i)}return o.height=l,o.style.height=Xe(l),o};function Tt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function p0(e){var t=v0(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function v0(e){return e&&(e.type==="atom"||U9.hasOwnProperty(e.type))?e:null}var Wp=e=>{if(e instanceof hn)return e;if(B9(e)&&e.children.length===1)return Wp(e.children[0])},Hc=(e,t)=>{var r,n,a;e&&e.type==="supsub"?(n=Tt(e.base,"accent"),r=n.base,e.base=r,a=L9(Ht(e,t)),e.base=n):(n=Tt(e,"accent"),r=n.base);var i=Ht(r,t.havingCrampedStyle()),o=n.isShifty&&za(r),l=0;if(o){var s,u;l=(s=(u=Wp(i))==null?void 0:u.skew)!=null?s:0}var c=n.label==="\\c",f=c?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),d;if(n.isStretchy)d=h0(n,t),d=Ut({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:d,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+Xe(2*l)+")",marginLeft:Xe(2*l)}:void 0}]});else{var h,b;n.label==="\\vec"?(h=Lp("vec",t),b=Rp.vec[1]):(h=o0({mode:n.mode,text:n.label},t,"textord"),h=R9(h),h.italic=0,b=h.width,c&&(f+=h.depth)),d=$e(["accent-body"],[h]);var p=n.label==="\\textcircled";p&&(d.classes.push("accent-full"),f=i.height);var x=l;p||(x-=b/2),d.style.left=Xe(x),n.label==="\\textcircled"&&(d.style.top=".2em"),d=Ut({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-f},{type:"elem",elem:d}]})}var g=$e(["mord","accent"],[d],t);return a?(a.children[0]=g,a.height=Math.max(g.height,a.height),a.classes[0]="mord",a):g},Kp=(e,t)=>{var r=e.isStretchy?d0(e.label):new Ve("mo",[In(e.label,e.mode)]),n=new Ve("mover",[Yt(e.base,t),r]);return n.setAttribute("accent","true"),n},sk=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));nt({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"],props:{numArgs:1},handler:(e,t)=>{var r=c0(t[0]),n=!sk.test(e.funcName),a=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:Hc,mathmlBuilder:Kp}),nt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Hc,mathmlBuilder:Kp}),nt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(e,t)=>{var r=Ht(e.base,t),n=h0(e,t),a=e.label==="\\utilde"?.12:0,i=Ut({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]});return $e(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=d0(e.label),n=new Ve("munder",[Yt(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var m0=e=>{var t=new Ve("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};nt({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"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:a}=e;return{type:"xArrow",mode:n.mode,label:a,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),a=xo(Ht(e.body,n,t),t),i=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var o;e.below&&(n=t.havingStyle(r.sub()),o=xo(Ht(e.below,n,t),t),o.classes.push(i+"-arrow-pad"));var l=h0(e,t),s=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(u-=a.depth);var c;if(o){var f=-t.fontMetrics().axisHeight+o.height+.5*l.height+.111;c=Ut({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:l,shift:s},{type:"elem",elem:o,shift:f}]})}else c=Ut({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:l,shift:s}]});return c.children[0].children[0].children[1].classes.push("svg-align"),$e(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var r=d0(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var a=m0(Yt(e.body,t));if(e.below){var i=m0(Yt(e.below,t));n=new Ve("munderover",[r,i,a])}else n=new Ve("mover",[r,a])}else if(e.below){var o=m0(Yt(e.below,t));n=new Ve("munder",[r,o])}else n=m0(),n=new Ve("mover",[r,n]);return n}});function Xp(e,t){var r=Cr(e.body,t,!0);return $e([e.mclass],r,t)}function Yp(e,t){var r,n=vn(e.body,t);return e.mclass==="minner"?r=new Ve("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new Ve("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new Ve("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}nt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:br(a),isCharacterBox:za(a)}},htmlBuilder:Xp,mathmlBuilder:Yp});var g0=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};nt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:g0(t[0]),body:br(t[1]),isCharacterBox:za(t[1])}}}),nt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,a=t[1],i=t[0],o;n!=="\\stackrel"?o=g0(a):o="mrel";var l={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:br(a)},s={type:"supsub",mode:i.mode,base:l,sup:n==="\\underset"?null:i,sub:n==="\\underset"?i:null};return{type:"mclass",mode:r.mode,mclass:o,body:[s],isCharacterBox:za(s)}},htmlBuilder:Xp,mathmlBuilder:Yp}),nt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:g0(t[0]),body:br(t[0])}},htmlBuilder(e,t){var r=Cr(e.body,t,!0),n=$e([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=vn(e.body,t),n=new Ve("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var uk={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Zp=()=>({type:"styling",body:[],mode:"math",style:"display"}),Jp=e=>e.type==="textord"&&e.text==="@",ck=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function fk(e,t,r){var n=uk[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},o=r.callFunction("\\Big",[i],[]),l=r.callFunction("\\\\cdright",[t[1]],[]),s={type:"ordgroup",mode:"math",body:[a,o,l]};return r.callFunction("\\\\cdparent",[s],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function dk(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Ge("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],a=[n],i=0;i<t.length;i++){for(var o=t[i],l=Zp(),s=0;s<o.length;s++)if(!Jp(o[s]))l.body.push(o[s]);else{n.push(l),s+=1;var u=p0(o[s]).text,c=new Array(2);if(c[0]={type:"ordgroup",mode:"math",body:[]},c[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(u))if("<>AV".includes(u))for(var f=0;f<2;f++){for(var d=!0,h=s+1;h<o.length;h++){if(ck(o[h],u)){d=!1,s=h;break}if(Jp(o[h]))throw new Ge("Missing a "+u+" character to complete a CD arrow.",o[h]);c[f].body.push(o[h])}if(d)throw new Ge("Missing a "+u+" character to complete a CD arrow.",o[s])}else throw new Ge('Expected one of "<>AV=|." after @',o[s]);var b=fk(u,c,e),p={type:"styling",body:[b],mode:"math",style:"display"};n.push(p),l=Zp()}i%2===0?n.push(l):n.shift(),n=[],a.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var x=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:x,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}nt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=xo(Ht(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=Xe(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new Ve("mrow",[Yt(e.label,t)]);return r=new Ve("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Ve("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),nt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=xo(Ht(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new Ve("mrow",[Yt(e.fragment,t)])}}),nt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=Tt(t[0],"ordgroup"),a=n.body,i="",o=0;o<a.length;o++){var l=Tt(a[o],"textord");i+=l.text}var s=parseInt(i),u;if(isNaN(s))throw new Ge("\\@char has non-numeric argument "+i);if(s<0||s>=1114111)throw new Ge("\\@char with invalid code point "+i);return s<=65535?u=String.fromCharCode(s):(s-=65536,u=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var Qp=(e,t)=>{var r=Cr(e.body,t.withColor(e.color),!1);return Ra(r)},ev=(e,t)=>{var r=vn(e.body,t.withColor(e.color)),n=new Ve("mstyle",r);return n.setAttribute("mathcolor",e.color),n};nt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=Tt(t[0],"color-token").color,a=t[1];return{type:"color",mode:r.mode,color:n,body:br(a)}},htmlBuilder:Qp,mathmlBuilder:ev}),nt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,a=Tt(t[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:Qp,mathmlBuilder:ev}),nt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,a=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&Tt(a,"size").value}},htmlBuilder(e,t){var r=$e(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Xe(ur(e.size,t)))),r},mathmlBuilder(e,t){var r=new Ve("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Xe(ur(e.size,t)))),r}});var jc={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},tv=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Ge("Expected a control sequence",e);return t},hk=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},rv=(e,t,r,n)=>{var a=e.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,a,n)};nt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(jc[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=jc[n.text]),Tt(t.parseFunction(),"internal");throw new Ge("Invalid token after macro prefix",n)}}),nt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new Ge("Expected a control sequence",n);for(var i=0,o,l=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future(),l[i].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Ge('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new Ge('Argument number "'+n.text+'" out of order');i++,l.push([])}else{if(n.text==="EOF")throw new Ge("Expected a macro definition");l[i].push(n.text)}var{tokens:s}=t.gullet.consumeArg();return o&&s.unshift(o),(r==="\\edef"||r==="\\xdef")&&(s=t.gullet.expandTokens(s),s.reverse()),t.gullet.macros.set(a,{tokens:s,numArgs:i,delimiters:l},r===jc[r]),{type:"internal",mode:t.mode}}}),nt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=tv(t.gullet.popToken());t.gullet.consumeSpaces();var a=hk(t);return rv(t,n,a,r==="\\\\globallet"),{type:"internal",mode:t.mode}}}),nt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=tv(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return rv(t,n,i,r==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var Tl=function(t,r,n){var a=or.math[t]&&or.math[t].replace,i=Cc(a||t,r,n);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return i},Gc=function(t,r,n,a){var i=n.havingBaseStyle(r),o=$e(a.concat(i.sizingClasses(n)),[t],n),l=i.sizeMultiplier/n.sizeMultiplier;return o.height*=l,o.depth*=l,o.maxFontSize=i.sizeMultiplier,o},nv=function(t,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Xe(i),t.height-=i,t.depth+=i},pk=function(t,r,n,a,i,o){var l=tn(t,"Main-Regular",i,a),s=Gc(l,r,a,o);return nv(s,a,r),s},vk=function(t,r,n,a){return tn(t,"Size"+r+"-Regular",n,a)},av=function(t,r,n,a,i,o){var l=vk(t,r,i,a),s=Gc($e(["delimsizing","size"+r],[l],a),Ct.TEXT,a,o);return n&&nv(s,a,Ct.TEXT),s},Vc=function(t,r,n){var a;r==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=$e(["delimsizinginner",a],[$e([],[tn(t,r,n)])]);return{type:"elem",elem:i}},qc=function(t,r,n){var a=da["Size4-Regular"][t.charCodeAt(0)]?da["Size4-Regular"][t.charCodeAt(0)][4]:da["Size1-Regular"][t.charCodeAt(0)][4],i=new ai("inner",D9(t,Math.round(1e3*r))),o=new Oa([i],{width:Xe(a),height:Xe(r),style:"width:"+Xe(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),l=oi([],[o],n);return l.height=r,l.style.height=Xe(r),l.style.width=Xe(a),{type:"elem",elem:l}},Wc=.008,b0={type:"kern",size:-1*Wc},mk=new Set(["|","\\lvert","\\rvert","\\vert"]),gk=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),iv=function(t,r,n,a,i,o){var l,s,u,c,f="",d=0;l=u=c=t,s=null;var h="Size1-Regular";t==="\\uparrow"?u=c="⏐":t==="\\Uparrow"?u=c="‖":t==="\\downarrow"?l=u="⏐":t==="\\Downarrow"?l=u="‖":t==="\\updownarrow"?(l="\\uparrow",u="⏐",c="\\downarrow"):t==="\\Updownarrow"?(l="\\Uparrow",u="‖",c="\\Downarrow"):mk.has(t)?(u="∣",f="vert",d=333):gk.has(t)?(u="∥",f="doublevert",d=556):t==="["||t==="\\lbrack"?(l="⎡",u="⎢",c="⎣",h="Size4-Regular",f="lbrack",d=667):t==="]"||t==="\\rbrack"?(l="⎤",u="⎥",c="⎦",h="Size4-Regular",f="rbrack",d=667):t==="\\lfloor"||t==="⌊"?(u=l="⎢",c="⎣",h="Size4-Regular",f="lfloor",d=667):t==="\\lceil"||t==="⌈"?(l="⎡",u=c="⎢",h="Size4-Regular",f="lceil",d=667):t==="\\rfloor"||t==="⌋"?(u=l="⎥",c="⎦",h="Size4-Regular",f="rfloor",d=667):t==="\\rceil"||t==="⌉"?(l="⎤",u=c="⎥",h="Size4-Regular",f="rceil",d=667):t==="("||t==="\\lparen"?(l="⎛",u="⎜",c="⎝",h="Size4-Regular",f="lparen",d=875):t===")"||t==="\\rparen"?(l="⎞",u="⎟",c="⎠",h="Size4-Regular",f="rparen",d=875):t==="\\{"||t==="\\lbrace"?(l="⎧",s="⎨",c="⎩",u="⎪",h="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(l="⎫",s="⎬",c="⎭",u="⎪",h="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(l="⎧",c="⎩",u="⎪",h="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(l="⎫",c="⎭",u="⎪",h="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(l="⎧",c="⎭",u="⎪",h="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(l="⎫",c="⎩",u="⎪",h="Size4-Regular");var b=Tl(l,h,i),p=b.height+b.depth,x=Tl(u,h,i),g=x.height+x.depth,m=Tl(c,h,i),y=m.height+m.depth,v=0,k=1;if(s!==null){var C=Tl(s,h,i);v=C.height+C.depth,k=2}var A=p+y+v,_=Math.max(0,Math.ceil((r-A)/(k*g))),E=A+_*k*g,M=a.fontMetrics().axisHeight;n&&(M*=a.sizeMultiplier);var z=E/2-M,R=[];if(f.length>0){var O=E-p-y,H=Math.round(E*1e3),Z=I9(f,Math.round(O*1e3)),q=new ai(f,Z),X=Xe(d/1e3),Q=Xe(H/1e3),te=new Oa([q],{width:X,height:Q,viewBox:"0 0 "+d+" "+H}),_e=oi([],[te],a);_e.height=H/1e3,_e.style.width=X,_e.style.height=Q,R.push({type:"elem",elem:_e})}else{if(R.push(Vc(c,h,i)),R.push(b0),s===null){var he=E-p-y+2*Wc;R.push(qc(u,he,a))}else{var we=(E-p-y-v)/2+2*Wc;R.push(qc(u,we,a)),R.push(b0),R.push(Vc(s,h,i)),R.push(b0),R.push(qc(u,we,a))}R.push(b0),R.push(Vc(l,h,i))}var pe=a.havingBaseStyle(Ct.TEXT),De=Ut({positionType:"bottom",positionData:z,children:R});return Gc($e(["delimsizing","mult"],[De],pe),Ct.TEXT,a,o)},Kc=80,Xc=.08,Yc=function(t,r,n,a,i){var o=M9(t,a,n),l=new ai(t,o),s=new Oa([l],{width:"400em",height:Xe(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return oi(["hide-tail"],[s],i)},bk=function(t,r){var n=r.havingBaseSizing(),a=cv("\\surd",t*n.sizeMultiplier,uv,n),i=n.sizeMultiplier,o=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),l,s=0,u=0,c=0,f;return a.type==="small"?(c=1e3+1e3*o+Kc,t<1?i=1:t<1.4&&(i=.7),s=(1+o+Xc)/i,u=(1+o)/i,l=Yc("sqrtMain",s,c,o,r),l.style.minWidth="0.853em",f=.833/i):a.type==="large"?(c=(1e3+Kc)*Ml[a.size],u=(Ml[a.size]+o)/i,s=(Ml[a.size]+o+Xc)/i,l=Yc("sqrtSize"+a.size,s,c,o,r),l.style.minWidth="1.02em",f=1/i):(s=t+o+Xc,u=t+o,c=Math.floor(1e3*t+o)+Kc,l=Yc("sqrtTall",s,c,o,r),l.style.minWidth="0.742em",f=1.056),l.height=u,l.style.height=Xe(s),{span:l,advanceWidth:f,ruleWidth:(r.fontMetrics().sqrtRuleThickness+o)*i}},ov=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),yk=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),lv=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Ml=[0,1.2,1.8,2.4,3],sv=function(t,r,n,a,i){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),ov.has(t)||lv.has(t))return av(t,r,!1,n,a,i);if(yk.has(t))return iv(t,Ml[r],!1,n,a,i);throw new Ge("Illegal delimiter: '"+t+"'")},xk=[{type:"small",style:Ct.SCRIPTSCRIPT},{type:"small",style:Ct.SCRIPT},{type:"small",style:Ct.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],_k=[{type:"small",style:Ct.SCRIPTSCRIPT},{type:"small",style:Ct.SCRIPT},{type:"small",style:Ct.TEXT},{type:"stack"}],uv=[{type:"small",style:Ct.SCRIPTSCRIPT},{type:"small",style:Ct.SCRIPT},{type:"small",style:Ct.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],wk=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},cv=function(t,r,n,a){for(var i=Math.min(2,3-a.style.size),o=i;o<n.length;o++){var l=n[o];if(l.type==="stack")break;var s=Tl(t,wk(l),"math"),u=s.height+s.depth;if(l.type==="small"){var c=a.havingBaseStyle(l.style);u*=c.sizeMultiplier}if(u>r)return l}return n[n.length-1]},Zc=function(t,r,n,a,i,o){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var l;lv.has(t)?l=xk:ov.has(t)?l=uv:l=_k;var s=cv(t,r,l,a);return s.type==="small"?pk(t,s.style,n,a,i,o):s.type==="large"?av(t,s.size,n,a,i,o):iv(t,r,n,a,i,o)},Jc=function(t,r,n,a,i,o){var l=a.fontMetrics().axisHeight*a.sizeMultiplier,s=901,u=5/a.fontMetrics().ptPerEm,c=Math.max(r-l,n+l),f=Math.max(c/500*s,2*c-u);return Zc(t,f,!0,a,i,o)},fv={"\\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}},kk=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function y0(e,t){var r=v0(e);if(r&&kk.has(r.text))return r;throw r?new Ge("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new Ge("Invalid delimiter type '"+e.type+"'",e)}nt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=y0(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:fv[e.funcName].size,mclass:fv[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?$e([e.mclass]):sv(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(In(e.delim,e.mode));var r=new Ve("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Xe(Ml[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function dv(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}nt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new Ge("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:y0(t[0],e).text,color:r}}}),nt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=y0(t[0],e),n=e.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=Tt(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{dv(e);for(var r=Cr(e.body,t,!0,["mopen","mclose"]),n=0,a=0,i=!1,o=0;o<r.length;o++)r[o].isMiddle?i=!0:(n=Math.max(r[o].height,n),a=Math.max(r[o].depth,a));n*=t.sizeMultiplier,a*=t.sizeMultiplier;var l;if(e.left==="."?l=El(t,["mopen"]):l=Jc(e.left,n,a,t,e.mode,["mopen"]),r.unshift(l),i)for(var s=1;s<r.length;s++){var u=r[s],c=u.isMiddle;c&&(r[s]=Jc(c.delim,n,a,c.options,e.mode,[]))}var f;if(e.right===".")f=El(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;f=Jc(e.right,n,a,d,e.mode,["mclose"])}return r.push(f),$e(["minner"],r,t)},mathmlBuilder:(e,t)=>{dv(e);var r=vn(e.body,t);if(e.left!=="."){var n=new Ve("mo",[In(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var a=new Ve("mo",[In(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),r.push(a)}return Nc(r)}}),nt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=y0(t[0],e);if(!e.parser.leftrightDepth)throw new Ge("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=El(t,[]);else{r=sv(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?In("|","text"):In(e.delim,e.mode),n=new Ve("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var x0=(e,t)=>{var r=xo(Ht(e.body,t),t),n=e.label.slice(1),a=t.sizeMultiplier,i,o=0,l=za(e.body);if(n==="sout")i=$e(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/a,o=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var s=ur({number:.6,unit:"pt"},t),u=ur({number:.35,unit:"ex"},t),c=t.havingBaseSizing();a=a/c.sizeMultiplier;var f=r.height+r.depth+s+u;r.style.paddingLeft=Xe(f/2+s);var d=Math.floor(1e3*f*a),h=E9(d),b=new Oa([new ai("phase",h)],{width:"400em",height:Xe(d/1e3),viewBox:"0 0 400000 "+d,preserveAspectRatio:"xMinYMin slice"});i=oi(["hide-tail"],[b],t),i.style.height=Xe(f),o=r.depth+s+u}else{/cancel/.test(n)?l||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var p=0,x=0,g=0;/box/.test(n)?(g=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(n==="colorbox"?0:g),x=p):n==="angl"?(g=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*g,x=Math.max(0,.25-r.depth)):(p=l?.2:0,x=p),i=lk(r,n,p,x,t),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=Xe(g)):n==="angl"&&g!==.049&&(i.style.borderTopWidth=Xe(g),i.style.borderRightWidth=Xe(g)),o=r.depth+x,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var m;if(e.backgroundColor)m=Ut({positionType:"individualShift",children:[{type:"elem",elem:i,shift:o},{type:"elem",elem:r,shift:0}]});else{var y=/cancel|phase/.test(n)?["svg-align"]:[];m=Ut({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:o,wrapperClasses:y}]})}return/cancel/.test(n)&&(m.height=r.height,m.depth=r.depth),/cancel/.test(n)&&!l?$e(["mord","cancel-lap"],[m],t):$e(["mord"],[m],t)},_0=(e,t)=>{var r=0,n=new Ve(e.label.includes("colorbox")?"mpadded":"menclose",[Yt(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+Xe(a)+" solid "+e.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};nt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=Tt(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:o}},htmlBuilder:x0,mathmlBuilder:_0}),nt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=Tt(t[0],"color-token").color,o=Tt(t[1],"color-token").color,l=t[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:o,borderColor:i,body:l}},htmlBuilder:x0,mathmlBuilder:_0}),nt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),nt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:x0,mathmlBuilder:_0}),nt({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:x0,mathmlBuilder:_0}),nt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var hv={};function ha(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:o}=e,l={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},s=0;s<r.length;++s)hv[r[s]]=l;i&&(s0[t]=i),o&&(u0[t]=o)}var pv={};function L(e,t){pv[e]=t}class sn{constructor(t,r,n){this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new sn(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class mn{constructor(t,r){this.text=t,this.loc=r}range(t,r){return new mn(r,sn.range(this,t))}}function vv(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var w0=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Ge("{"+e.envName+"} can be used only in display mode.")},Sk=new Set(["gather","gather*"]);function Qc(e){if(!e.includes("ed"))return!e.includes("*")}function si(e,t,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,arraystretch:o,colSeparationType:l,autoTag:s,singleRow:u,emptySingleRow:c,maxNumCols:f,leqno:d}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var h=e.gullet.expandMacroAsText("\\arraystretch");if(h==null)o=1;else if(o=parseFloat(h),!o||o<0)throw new Ge("Invalid \\arraystretch: "+h)}e.gullet.beginGroup();var b=[],p=[b],x=[],g=[],m=s!=null?[]:void 0;function y(){s&&e.gullet.macros.set("\\@eqnsw","1",!0)}function v(){m&&(e.gullet.macros.get("\\df@tag")?(m.push(e.subparse([new mn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):m.push(!!s&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(y(),g.push(vv(e));;){var k=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var C={type:"ordgroup",mode:e.mode,body:k};r&&(C={type:"styling",mode:e.mode,style:r,body:[C]}),b.push(C);var A=e.fetch().text;if(A==="&"){if(f&&b.length===f){if(u||l)throw new Ge("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(A==="\\end"){v(),b.length===1&&C.type==="styling"&&C.body.length===1&&C.body[0].type==="ordgroup"&&C.body[0].body.length===0&&(p.length>1||!c)&&p.pop(),g.length<p.length+1&&g.push([]);break}else if(A==="\\\\"){e.consume();var _=void 0;e.gullet.future().text!==" "&&(_=e.parseSizeGroup(!0)),x.push(_?_.value:null),v(),g.push(vv(e)),b=[],p.push(b),y()}else throw new Ge("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:o,body:p,cols:i,rowGaps:x,hskipBeforeAndAfter:n,hLinesBeforeRow:g,colSeparationType:l,tags:m,leqno:d}}function ef(e){return e.slice(0,1)==="d"?"display":"text"}var pa=function(t,r){var n,a,i=t.body.length,o=t.hLinesBeforeRow,l=0,s=new Array(i),u=[],c=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),f=1/r.fontMetrics().ptPerEm,d=5*f;if(t.colSeparationType&&t.colSeparationType==="small"){var h=r.havingStyle(Ct.SCRIPT).sizeMultiplier;d=.2778*(h/r.sizeMultiplier)}var b=t.colSeparationType==="CD"?ur({number:3,unit:"ex"},r):12*f,p=3*f,x=t.arraystretch*b,g=.7*x,m=.3*x,y=0;function v(st){for(var yt=0;yt<st.length;++yt)yt>0&&(y+=.25),u.push({pos:y,isDashed:st[yt]})}for(v(o[0]),n=0;n<t.body.length;++n){var k=t.body[n],C=g,A=m;l<k.length&&(l=k.length);var _=new Array(k.length);for(a=0;a<k.length;++a){var E=Ht(k[a],r);A<E.depth&&(A=E.depth),C<E.height&&(C=E.height),_[a]=E}var M=t.rowGaps[n],z=0;M&&(z=ur(M,r),z>0&&(z+=m,A<z&&(A=z),z=0)),t.addJot&&n<t.body.length-1&&(A+=p),_.height=C,_.depth=A,y+=C,_.pos=y,y+=A+z,s[n]=_,v(o[n+1])}var R=y/2+r.fontMetrics().axisHeight,O=t.cols||[],H=[],Z,q,X=[];if(t.tags&&t.tags.some(st=>st))for(n=0;n<i;++n){var Q=s[n],te=Q.pos-R,_e=t.tags[n],he=void 0;_e===!0?he=$e(["eqn-num"],[],r):_e===!1?he=$e([],[],r):he=$e([],Cr(_e,r,!0),r),he.depth=Q.depth,he.height=Q.height,X.push({type:"elem",elem:he,shift:te})}for(a=0,q=0;a<l||q<O.length;++a,++q){for(var we,pe=O[q],De=!0;((Ee=pe)==null?void 0:Ee.type)==="separator";){var Ee;if(De||(Z=$e(["arraycolsep"],[]),Z.style.width=Xe(r.fontMetrics().doubleRuleSep),H.push(Z)),pe.separator==="|"||pe.separator===":"){var Oe=pe.separator==="|"?"solid":"dashed",Pe=$e(["vertical-separator"],[],r);Pe.style.height=Xe(y),Pe.style.borderRightWidth=Xe(c),Pe.style.borderRightStyle=Oe,Pe.style.margin="0 "+Xe(-c/2);var Me=y-R;Me&&(Pe.style.verticalAlign=Xe(-Me)),H.push(Pe)}else throw new Ge("Invalid separator type: "+pe.separator);q++,pe=O[q],De=!1}if(!(a>=l)){var ce=void 0;if(a>0||t.hskipBeforeAndAfter){var ye,ge;ce=(ye=(ge=pe)==null?void 0:ge.pregap)!=null?ye:d,ce!==0&&(Z=$e(["arraycolsep"],[]),Z.style.width=Xe(ce),H.push(Z))}var B=[];for(n=0;n<i;++n){var V=s[n],oe=V[a];if(oe){var de=V.pos-R;oe.depth=V.depth,oe.height=V.height,B.push({type:"elem",elem:oe,shift:de})}}var ee=Ut({positionType:"individualShift",children:B}),ie=$e(["col-align-"+(((we=pe)==null?void 0:we.align)||"c")],[ee]);if(H.push(ie),a<l-1||t.hskipBeforeAndAfter){var ue,ve;ce=(ue=(ve=pe)==null?void 0:ve.postgap)!=null?ue:d,ce!==0&&(Z=$e(["arraycolsep"],[]),Z.style.width=Xe(ce),H.push(Z))}}}var Ce=$e(["mtable"],H);if(u.length>0){for(var xe=yo("hline",r,c),je=yo("hdashline",r,c),Ne=[{type:"elem",elem:Ce,shift:0}];u.length>0;){var Ue=u.pop(),Ke=Ue.pos-R;Ue.isDashed?Ne.push({type:"elem",elem:je,shift:Ke}):Ne.push({type:"elem",elem:xe,shift:Ke})}Ce=Ut({positionType:"individualShift",children:Ne})}if(X.length===0)return $e(["mord"],[Ce],r);var at=Ut({positionType:"individualShift",children:X}),ut=$e(["tag"],[at],r);return Ra([Ce,ut])},Ck={c:"center ",l:"left ",r:"right "},va=function(t,r){for(var n=[],a=new Ve("mtd",[],["mtr-glue"]),i=new Ve("mtd",[],["mml-eqn-num"]),o=0;o<t.body.length;o++){for(var l=t.body[o],s=[],u=0;u<l.length;u++)s.push(new Ve("mtd",[Yt(l[u],r)]));t.tags&&t.tags[o]&&(s.unshift(a),s.push(a),t.leqno?s.unshift(i):s.push(i)),n.push(new Ve("mtr",s))}var c=new Ve("mtable",n),f=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);c.setAttribute("rowspacing",Xe(f));var d="",h="";if(t.cols&&t.cols.length>0){var b=t.cols,p="",x=!1,g=0,m=b.length;b[0].type==="separator"&&(d+="top ",g=1),b[b.length-1].type==="separator"&&(d+="bottom ",m-=1);for(var y=g;y<m;y++){var v=b[y];v.type==="align"?(h+=Ck[v.align],x&&(p+="none "),x=!0):v.type==="separator"&&x&&(p+=v.separator==="|"?"solid ":"dashed ",x=!1)}c.setAttribute("columnalign",h.trim()),/[sd]/.test(p)&&c.setAttribute("columnlines",p.trim())}if(t.colSeparationType==="align"){for(var k=t.cols||[],C="",A=1;A<k.length;A++)C+=A%2?"0em ":"1em ";c.setAttribute("columnspacing",C.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?c.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?c.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var _="",E=t.hLinesBeforeRow;d+=E[0].length>0?"left ":"",d+=E[E.length-1].length>0?"right ":"";for(var M=1;M<E.length-1;M++)_+=E[M].length===0?"none ":E[M][0]?"dashed ":"solid ";return/[sd]/.test(_)&&c.setAttribute("rowlines",_.trim()),d!==""&&(c=new Ve("menclose",[c]),c.setAttribute("notation",d.trim())),t.arraystretch&&t.arraystretch<1&&(c=new Ve("mstyle",[c]),c.setAttribute("scriptlevel","1")),c},mv=function(t,r){t.envName.includes("ed")||w0(t);var n=[],a=t.envName.includes("at")?"alignat":"align",i=t.envName==="split",o=si(t.parser,{cols:n,addJot:!0,autoTag:i?void 0:Qc(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:i?2:void 0,leqno:t.parser.settings.leqno},"display"),l=0,s=0,u={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var c="",f=0;f<r[0].body.length;f++){var d=Tt(r[0].body[f],"textord");c+=d.text}l=Number(c),s=l*2}var h=!s;o.body.forEach(function(g){for(var m=1;m<g.length;m+=2){var y=Tt(g[m],"styling"),v=Tt(y.body[0],"ordgroup");v.body.unshift(u)}if(h)s<g.length&&(s=g.length);else{var k=g.length/2;if(l<k)throw new Ge("Too many math in a row: "+("expected "+l+", but got "+k),g[0])}});for(var b=0;b<s;++b){var p="r",x=0;b%2===1?p="l":b>0&&h&&(x=1),n[b]={type:"align",align:p,pregap:x,postgap:0}}return o.colSeparationType=h?"align":"alignat",o};ha({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=v0(t[0]),n=r?[t[0]]:Tt(t[0],"ordgroup").body,a=n.map(function(o){var l=p0(o),s=l.text;if("lcr".includes(s))return{type:"align",align:s};if(s==="|")return{type:"separator",separator:"|"};if(s===":")return{type:"separator",separator:":"};throw new Ge("Unknown column alignment: "+s,o)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return si(e.parser,i,ef(e.envName))},htmlBuilder:pa,mathmlBuilder:va}),ha({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var a=e.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,!"lcr".includes(r))throw new Ge("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=si(e.parser,n,ef(e.envName)),o=Math.max(0,...i.body.map(l=>l.length));return i.cols=new Array(o).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:pa,mathmlBuilder:va}),ha({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=si(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:pa,mathmlBuilder:va}),ha({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=v0(t[0]),n=r?[t[0]]:Tt(t[0],"ordgroup").body,a=n.map(function(l){var s=p0(l),u=s.text;if("lc".includes(u))return{type:"align",align:u};throw new Ge("Unknown column alignment: "+u,l)});if(a.length>1)throw new Ge("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},o=si(e.parser,i,"script");if(o.body.length>0&&o.body[0].length>1)throw new Ge("{subarray} can contain only one column");return o},htmlBuilder:pa,mathmlBuilder:va}),ha({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=si(e.parser,t,ef(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:pa,mathmlBuilder:va}),ha({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:mv,htmlBuilder:pa,mathmlBuilder:va}),ha({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Sk.has(e.envName)&&w0(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Qc(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return si(e.parser,t,"display")},htmlBuilder:pa,mathmlBuilder:va}),ha({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:mv,htmlBuilder:pa,mathmlBuilder:va}),ha({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){w0(e);var t={autoTag:Qc(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return si(e.parser,t,"display")},htmlBuilder:pa,mathmlBuilder:va}),ha({type:"array",names:["CD"],props:{numArgs:0},handler(e){return w0(e),dk(e.parser)},htmlBuilder:pa,mathmlBuilder:va}),L("\\nonumber","\\gdef\\@eqnsw{0}"),L("\\notag","\\nonumber"),nt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Ge(e.funcName+" valid only within array environment")}});var gv=hv;nt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];if(a.type!=="ordgroup")throw new Ge("Invalid environment name",a);for(var i="",o=0;o<a.body.length;++o)i+=Tt(a.body[o],"textord").text;if(n==="\\begin"){if(!gv.hasOwnProperty(i))throw new Ge("No such environment: "+i,a);var l=gv[i],{args:s,optArgs:u}=r.parseArguments("\\begin{"+i+"}",l),c={mode:r.mode,envName:i,parser:r},f=l.handler(c,s,u);r.expect("\\end",!1);var d=r.nextToken,h=Tt(r.parseFunction(),"environment");if(h.name!==i)throw new Ge("Mismatch: \\begin{"+i+"} matched by \\end{"+h.name+"}",d);return f}return{type:"environment",mode:r.mode,name:i,nameGroup:a}}});var bv=(e,t)=>{var r=e.font,n=t.withFont(r);return Ht(e.body,n)},yv=(e,t)=>{var r=e.font,n=t.withFont(r);return Yt(e.body,n)},xv={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};nt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=c0(t[0]),i=n;return i in xv&&(i=xv[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:bv,mathmlBuilder:yv}),nt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:g0(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:za(n)}}}),nt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:a}=e,{mode:i}=r,o=r.parseExpression(!0,a),l="math"+n.slice(1);return{type:"font",mode:i,font:l,body:{type:"ordgroup",mode:r.mode,body:o}}},htmlBuilder:bv,mathmlBuilder:yv});var Ak=(e,t)=>{var r=t.style,n=r.fracNum(),a=r.fracDen(),i;i=t.havingStyle(n);var o=Ht(e.numer,i,t);if(e.continued){var l=8.5/t.fontMetrics().ptPerEm,s=3.5/t.fontMetrics().ptPerEm;o.height=o.height<l?l:o.height,o.depth=o.depth<s?s:o.depth}i=t.havingStyle(a);var u=Ht(e.denom,i,t),c,f,d;e.hasBarLine?(e.barSize?(f=ur(e.barSize,t),c=yo("frac-line",t,f)):c=yo("frac-line",t),f=c.height,d=c.height):(c=null,f=0,d=t.fontMetrics().defaultRuleThickness);var h,b,p;r.size===Ct.DISPLAY.size?(h=t.fontMetrics().num1,f>0?b=3*d:b=7*d,p=t.fontMetrics().denom1):(f>0?(h=t.fontMetrics().num2,b=d):(h=t.fontMetrics().num3,b=3*d),p=t.fontMetrics().denom2);var x;if(c){var m=t.fontMetrics().axisHeight;h-o.depth-(m+.5*f)<b&&(h+=b-(h-o.depth-(m+.5*f))),m-.5*f-(u.height-p)<b&&(p+=b-(m-.5*f-(u.height-p)));var y=-(m-.5*f);x=Ut({positionType:"individualShift",children:[{type:"elem",elem:u,shift:p},{type:"elem",elem:c,shift:y},{type:"elem",elem:o,shift:-h}]})}else{var g=h-o.depth-(u.height-p);g<b&&(h+=.5*(b-g),p+=.5*(b-g)),x=Ut({positionType:"individualShift",children:[{type:"elem",elem:u,shift:p},{type:"elem",elem:o,shift:-h}]})}i=t.havingStyle(r),x.height*=i.sizeMultiplier/t.sizeMultiplier,x.depth*=i.sizeMultiplier/t.sizeMultiplier;var v;r.size===Ct.DISPLAY.size?v=t.fontMetrics().delim1:r.size===Ct.SCRIPTSCRIPT.size?v=t.havingStyle(Ct.SCRIPT).fontMetrics().delim2:v=t.fontMetrics().delim2;var k,C;return e.leftDelim==null?k=El(t,["mopen"]):k=Zc(e.leftDelim,v,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?C=$e([]):e.rightDelim==null?C=El(t,["mclose"]):C=Zc(e.rightDelim,v,!0,t.havingStyle(r),e.mode,["mclose"]),$e(["mord"].concat(i.sizingClasses(t)),[k,$e(["mfrac"],[x]),C],t)},Ek=(e,t)=>{var r=new Ve("mfrac",[Yt(e.numer,t),Yt(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=ur(e.barSize,t);r.setAttribute("linethickness",Xe(n))}if(e.leftDelim!=null||e.rightDelim!=null){var a=[];if(e.leftDelim!=null){var i=new Ve("mo",[new yr(e.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),e.rightDelim!=null){var o=new Ve("mo",[new yr(e.rightDelim.replace("\\",""))]);o.setAttribute("fence","true"),a.push(o)}return Nc(a)}return r},_v=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};nt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=t[1],o,l=null,s=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,l="(",s=")";break;case"\\\\bracefrac":o=!1,l="\\{",s="\\}";break;case"\\\\brackfrac":o=!1,l="[",s="]";break;default:throw new Error("Unrecognized genfrac command")}var u=n==="\\cfrac",c=null;return u||n.startsWith("\\d")?c="display":n.startsWith("\\t")&&(c="text"),_v({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:u,hasBarLine:o,leftDelim:l,rightDelim:s,barSize:null},c)},htmlBuilder:Ak,mathmlBuilder:Ek}),nt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:a,token:n}}});var wv=["display","text","script","scriptscript"],kv=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};nt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],a=t[5],i=c0(t[0]),o=i.type==="atom"&&i.family==="open"?kv(i.text):null,l=c0(t[1]),s=l.type==="atom"&&l.family==="close"?kv(l.text):null,u=Tt(t[2],"size"),c,f=null;u.isBlank?c=!0:(f=u.value,c=f.number>0);var d=null,h=t[3];if(h.type==="ordgroup"){if(h.body.length>0){var b=Tt(h.body[0],"textord");d=wv[Number(b.text)]}}else h=Tt(h,"textord"),d=wv[Number(h.text)];return _v({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:c,barSize:f,leftDelim:o,rightDelim:s},d)}}),nt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:a}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Tt(t[0],"size").value,token:a}}}),nt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=Tt(t[1],"infix").size;if(!i)throw new Error("\\\\abovefrac expected size, but got "+String(i));var o=t[2],l=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:o,continued:!1,hasBarLine:l,barSize:i,leftDelim:null,rightDelim:null}}});var Sv=(e,t)=>{var r=t.style,n,a;e.type==="supsub"?(n=e.sup?Ht(e.sup,t.havingStyle(r.sup()),t):Ht(e.sub,t.havingStyle(r.sub()),t),a=Tt(e.base,"horizBrace")):a=Tt(e,"horizBrace");var i=Ht(a.base,t.havingBaseStyle(Ct.DISPLAY)),o=h0(a,t),l;if(a.isOver?(l=Ut({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:o}]}),l.children[0].children[0].children[1].classes.push("svg-align")):(l=Ut({positionType:"bottom",positionData:i.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:i}]}),l.children[0].children[0].children[0].classes.push("svg-align")),n){var s=$e(["minner",a.isOver?"mover":"munder"],[l],t);a.isOver?l=Ut({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.2},{type:"elem",elem:n}]}):l=Ut({positionType:"bottom",positionData:s.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:s}]})}return $e(["minner",a.isOver?"mover":"munder"],[l],t)},Tk=(e,t)=>{var r=d0(e.label);return new Ve(e.isOver?"mover":"munder",[Yt(e.base,t),r])};nt({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:t[0]}},htmlBuilder:Sv,mathmlBuilder:Tk}),nt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],a=Tt(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:br(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Cr(e.body,t,!1);return V9(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=li(e.body,t);return r instanceof Ve||(r=new Ve("mrow",[r])),r.setAttribute("href",e.href),r}}),nt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=Tt(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<n.length;i++){var o=n[i];o==="~"&&(o="\\textasciitilde"),a.push({type:"textord",mode:"text",text:o})}var l={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:br(l)}}}),nt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:br(t[0])}},htmlBuilder(e,t){var r=Cr(e.body,t,!1);return Ra(r)},mathmlBuilder(e,t){return new Ve("mrow",vn(e.body,t))}}),nt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:a}=e,i=Tt(t[0],"raw").string,o=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,s={};switch(n){case"\\htmlClass":s.class=i,l={command:"\\htmlClass",class:i};break;case"\\htmlId":s.id=i,l={command:"\\htmlId",id:i};break;case"\\htmlStyle":s.style=i,l={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var u=i.split(","),c=0;c<u.length;c++){var f=u[c],d=f.indexOf("=");if(d<0)throw new Ge("\\htmlData key/value '"+f+"' missing equals sign");var h=f.slice(0,d),b=f.slice(d+1);s["data-"+h.trim()]=b}l={command:"\\htmlData",attributes:s};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(l)?{type:"html",mode:r.mode,attributes:s,body:br(o)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=Cr(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var a=$e(n,r,t);for(var i in e.attributes)i!=="class"&&e.attributes.hasOwnProperty(i)&&a.setAttribute(i,e.attributes[i]);return a},mathmlBuilder:(e,t)=>li(e.body,t)}),nt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:br(t[0]),mathml:br(t[1])}},htmlBuilder:(e,t)=>{var r=Cr(e.html,t,!1);return Ra(r)},mathmlBuilder:(e,t)=>li(e.mathml,t)});var tf=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new Ge("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!wp(n))throw new Ge("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};nt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,a={number:0,unit:"em"},i={number:.9,unit:"em"},o={number:0,unit:"em"},l="";if(r[0])for(var s=Tt(r[0],"raw").string,u=s.split(","),c=0;c<u.length;c++){var f=u[c].split("=");if(f.length===2){var d=f[1].trim();switch(f[0].trim()){case"alt":l=d;break;case"width":a=tf(d);break;case"height":i=tf(d);break;case"totalheight":o=tf(d);break;default:throw new Ge("Invalid key: '"+f[0]+"' in \\includegraphics.")}}}var h=Tt(t[0],"url").url;return l===""&&(l=h,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:h})?{type:"includegraphics",mode:n.mode,alt:l,width:a,height:i,totalheight:o,src:h}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=ur(e.height,t),n=0;e.totalheight.number>0&&(n=ur(e.totalheight,t)-r);var a=0;e.width.number>0&&(a=ur(e.width,t));var i={height:Xe(r+n)};a>0&&(i.width=Xe(a)),n>0&&(i.verticalAlign=Xe(-n));var o=new O9(e.src,e.alt,i);return o.height=r,o.depth=n,o},mathmlBuilder:(e,t)=>{var r=new Ve("mglyph",[]);r.setAttribute("alt",e.alt);var n=ur(e.height,t),a=0;if(e.totalheight.number>0&&(a=ur(e.totalheight,t)-n,r.setAttribute("valign",Xe(-a))),r.setAttribute("height",Xe(n+a)),e.width.number>0){var i=ur(e.width,t);r.setAttribute("width",Xe(i))}return r.setAttribute("src",e.src),r}}),nt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=Tt(t[0],"size");if(r.settings.strict){var i=n[1]==="m",o=a.value.unit==="mu";i?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder(e,t){return Pp(e.dimension,t)},mathmlBuilder(e,t){var r=ur(e.dimension,t);return new Up(r)}}),nt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=$e([],[Ht(e.body,t)]),r=$e(["inner"],[r],t)):r=$e(["inner"],[Ht(e.body,t)]);var n=$e(["fix"],[]),a=$e([e.alignment],[r,n],t),i=$e(["strut"]);return i.style.height=Xe(a.height+a.depth),a.depth&&(i.style.verticalAlign=Xe(-a.depth)),a.children.unshift(i),a=$e(["thinbox"],[a],t),$e(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var r=new Ve("mpadded",[Yt(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),nt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",o=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",body:o}}}),nt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Ge("Mismatched "+e.funcName)}});var Cv=(e,t)=>{switch(t.style.size){case Ct.DISPLAY.size:return e.display;case Ct.TEXT.size:return e.text;case Ct.SCRIPT.size:return e.script;case Ct.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};nt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:br(t[0]),text:br(t[1]),script:br(t[2]),scriptscript:br(t[3])}},htmlBuilder:(e,t)=>{var r=Cv(e,t),n=Cr(r,t,!1);return Ra(n)},mathmlBuilder:(e,t)=>{var r=Cv(e,t);return li(r,t)}});var Av=(e,t,r,n,a,i,o)=>{e=$e([],[e]);var l=r&&za(r),s,u;if(t){var c=Ht(t,n.havingStyle(a.sup()),n);u={elem:c,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-c.depth)}}if(r){var f=Ht(r,n.havingStyle(a.sub()),n);s={elem:f,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-f.height)}}var d;if(u&&s){var h=n.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;d=Ut({positionType:"bottom",positionData:h,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:Xe(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Xe(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(s){var b=e.height-o;d=Ut({positionType:"top",positionData:b,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:Xe(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e}]})}else if(u){var p=e.depth+o;d=Ut({positionType:"bottom",positionData:p,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Xe(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var x=[d];if(s&&i!==0&&!l){var g=$e(["mspace"],[],n);g.style.marginRight=Xe(i),x.unshift(g)}return $e(["mop","op-limits"],x,n)},Ev=new Set(["\\smallint"]),_o=(e,t)=>{var r,n,a=!1,i;e.type==="supsub"?(r=e.sup,n=e.sub,i=Tt(e.base,"op"),a=!0):i=Tt(e,"op");var o=t.style,l=!1;o.size===Ct.DISPLAY.size&&i.symbol&&!Ev.has(i.name)&&(l=!0);var s;if(i.symbol){var u=l?"Size2-Regular":"Size1-Regular",c="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(c=i.name.slice(1),i.name=c==="oiint"?"\\iint":"\\iiint"),s=tn(i.name,u,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),c.length>0){var f=s.italic,d=Lp(c+"Size"+(l?"2":"1"),t);s=Ut({positionType:"individualShift",children:[{type:"elem",elem:s,shift:0},{type:"elem",elem:d,shift:l?.08:0}]}),i.name="\\"+c,s.classes.unshift("mop"),s.italic=f}}else if(i.body){var h=Cr(i.body,t,!0);h.length===1&&h[0]instanceof hn?(s=h[0],s.classes[0]="mop"):s=$e(["mop"],h,t)}else{for(var b=[],p=1;p<i.name.length;p++)b.push(zc(i.name[p],i.mode,t));s=$e(["mop"],b,t)}var x=0,g=0;return(s instanceof hn||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(x=(s.height-s.depth)/2-t.fontMetrics().axisHeight,g=s.italic||0),a?Av(s,r,n,t,o,g,x):(x&&(s.style.position="relative",s.style.top=Xe(x)),s)},Dl=(e,t)=>{var r;if(e.symbol)r=new Ve("mo",[In(e.name,e.mode)]),Ev.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Ve("mo",vn(e.body,t));else{r=new Ve("mi",[new yr(e.name.slice(1))]);var n=new Ve("mo",[In("⁡","text")]);e.parentIsSupSub?r=new Ve("mrow",[r,n]):r=$p([r,n])}return r},Mk={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};nt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=n;return a.length===1&&(a=Mk[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:_o,mathmlBuilder:Dl}),nt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:br(n)}},htmlBuilder:_o,mathmlBuilder:Dl});var Dk={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};nt({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"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:_o,mathmlBuilder:Dl}),nt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:_o,mathmlBuilder:Dl}),nt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=Dk[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:_o,mathmlBuilder:Dl});var Tv=(e,t)=>{var r,n,a=!1,i;e.type==="supsub"?(r=e.sup,n=e.sub,i=Tt(e.base,"operatorname"),a=!0):i=Tt(e,"operatorname");var o;if(i.body.length>0){for(var l=i.body.map(f=>{var d="text"in f?f.text:void 0;return typeof d=="string"?{type:"textord",mode:f.mode,text:d}:f}),s=Cr(l,t.withFont("mathrm"),!0),u=0;u<s.length;u++){var c=s[u];c instanceof hn&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=$e(["mop"],s,t)}else o=$e(["mop"],[],t);return a?Av(o,r,n,t,t.style,0,0):o},Ik=(e,t)=>{for(var r=vn(e.body,t.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(!(i instanceof Up))if(i instanceof Ve)switch(i.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var o=i.children[0];i.children.length===1&&o instanceof yr?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var l=r.map(c=>c.toText()).join("");r=[new yr(l)]}var s=new Ve("mi",r);s.setAttribute("mathvariant","normal");var u=new Ve("mo",[In("⁡","text")]);return e.parentIsSupSub?new Ve("mrow",[s,u]):$p([s,u])};nt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"operatorname",mode:r.mode,body:br(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Tv,mathmlBuilder:Ik}),L("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Fi({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Ra(Cr(e.body,t,!1)):$e(["mord"],Cr(e.body,t,!0),t)},mathmlBuilder(e,t){return li(e.body,t,!0)}}),nt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=Ht(e.body,t.havingCrampedStyle()),n=yo("overline-line",t),a=t.fontMetrics().defaultRuleThickness,i=Ut({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return $e(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new Ve("mo",[new yr("‾")]);r.setAttribute("stretchy","true");var n=new Ve("mover",[Yt(e.body,t),r]);return n.setAttribute("accent","true"),n}}),nt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:br(n)}},htmlBuilder:(e,t)=>{var r=Cr(e.body,t.withPhantom(),!1);return Ra(r)},mathmlBuilder:(e,t)=>{var r=vn(e.body,t);return new Ve("mphantom",r)}}),L("\\hphantom","\\smash{\\phantom{#1}}"),nt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=$e(["inner"],[Ht(e.body,t.withPhantom())]),n=$e(["fix"],[]);return $e(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=vn(br(e.body),t),n=new Ve("mphantom",r),a=new Ve("mpadded",[n]);return a.setAttribute("width","0px"),a}}),nt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=Tt(t[0],"size").value,a=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(e,t){var r=Ht(e.body,t),n=ur(e.dy,t);return Ut({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new Ve("mpadded",[Yt(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}}),nt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),nt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,a=r[0],i=Tt(t[0],"size"),o=Tt(t[1],"size");return{type:"rule",mode:n.mode,shift:a&&Tt(a,"size").value,width:i.value,height:o.value}},htmlBuilder(e,t){var r=$e(["mord","rule"],[],t),n=ur(e.width,t),a=ur(e.height,t),i=e.shift?ur(e.shift,t):0;return r.style.borderRightWidth=Xe(n),r.style.borderTopWidth=Xe(a),r.style.bottom=Xe(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=ur(e.width,t),n=ur(e.height,t),a=e.shift?ur(e.shift,t):0,i=t.color&&t.getColor()||"black",o=new Ve("mspace");o.setAttribute("mathbackground",i),o.setAttribute("width",Xe(r)),o.setAttribute("height",Xe(n));var l=new Ve("mpadded",[o]);return a>=0?l.setAttribute("height",Xe(a)):(l.setAttribute("height",Xe(a)),l.setAttribute("depth",Xe(-a))),l.setAttribute("voffset",Xe(a)),l}});function Mv(e,t,r){for(var n=Cr(e,t,!1),a=t.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var o=n[i].classes.indexOf("sizing");o<0?Array.prototype.push.apply(n[i].classes,t.sizingClasses(r)):n[i].classes[o+1]==="reset-size"+t.size&&(n[i].classes[o+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return Ra(n)}var Dv=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],zk=(e,t)=>{var r=t.havingSize(e.size);return Mv(e.body,r,t)};nt({type:"sizing",names:Dv,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Dv.indexOf(n)+1,body:i}},htmlBuilder:zk,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=vn(e.body,r),a=new Ve("mstyle",n);return a.setAttribute("mathsize",Xe(r.sizeMultiplier)),a}}),nt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,a=!1,i=!1,o=r[0]&&Tt(r[0],"ordgroup");if(o)for(var l="",s=0;s<o.body.length;++s){var u=o.body[s];if(l=p0(u).text,l==="t")a=!0;else if(l==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var c=t[0];return{type:"smash",mode:n.mode,body:c,smashHeight:a,smashDepth:i}},htmlBuilder:(e,t)=>{var r=$e([],[Ht(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return $e(["mord","smash"],[r],t);if(r.children)for(var n=0;n<r.children.length;n++)e.smashHeight&&(r.children[n].height=0),e.smashDepth&&(r.children[n].depth=0);var a=Ut({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return $e(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var r=new Ve("mpadded",[Yt(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),nt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,a=r[0],i=t[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(e,t){var r=Ht(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=xo(r,t);var n=t.fontMetrics(),a=n.defaultRuleThickness,i=a;t.style.id<Ct.TEXT.id&&(i=t.fontMetrics().xHeight);var o=a+i/4,l=r.height+r.depth+o+a,{span:s,ruleWidth:u,advanceWidth:c}=bk(l,t),f=s.height-u;f>r.height+r.depth+o&&(o=(o+f-r.height-r.depth)/2);var d=s.height-r.height-o-u;r.style.paddingLeft=Xe(c);var h=Ut({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+d)},{type:"elem",elem:s},{type:"kern",size:u}]});if(e.index){var b=t.havingStyle(Ct.SCRIPTSCRIPT),p=Ht(e.index,b,t),x=.6*(h.height-h.depth),g=Ut({positionType:"shift",positionData:-x,children:[{type:"elem",elem:p}]}),m=$e(["root"],[g]);return $e(["mord","sqrt"],[m,h],t)}else return $e(["mord","sqrt"],[h],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new Ve("mroot",[Yt(r,t),Yt(n,t)]):new Ve("msqrt",[Yt(r,t)])}});var Iv={display:Ct.DISPLAY,text:Ct.TEXT,script:Ct.SCRIPT,scriptscript:Ct.SCRIPTSCRIPT};nt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!0,r),o=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:o,body:i}},htmlBuilder(e,t){var r=Iv[e.style],n=t.havingStyle(r).withFont("");return Mv(e.body,n,t)},mathmlBuilder(e,t){var r=Iv[e.style],n=t.havingStyle(r),a=vn(e.body,n),i=new Ve("mstyle",a),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=o[e.style];return i.setAttribute("scriptlevel",l[0]),i.setAttribute("displaystyle",l[1]),i}});var Fk=function(t,r){var n=t.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===Ct.DISPLAY.size||n.alwaysHandleSupSub);return a?_o:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===Ct.DISPLAY.size||n.limits);return i?Tv:null}else{if(n.type==="accent")return za(n.base)?Hc:null;if(n.type==="horizBrace"){var o=!t.sub;return o===n.isOver?Sv:null}else return null}else return null};Fi({type:"supsub",htmlBuilder(e,t){var r=Fk(e,t);if(r)return r(e,t);var{base:n,sup:a,sub:i}=e,o=Ht(n,t),l,s,u=t.fontMetrics(),c=0,f=0,d=n&&za(n);if(a){var h=t.havingStyle(t.style.sup());l=Ht(a,h,t),d||(c=o.height-h.fontMetrics().supDrop*h.sizeMultiplier/t.sizeMultiplier)}if(i){var b=t.havingStyle(t.style.sub());s=Ht(i,b,t),d||(f=o.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var p;t.style===Ct.DISPLAY?p=u.sup1:t.style.cramped?p=u.sup3:p=u.sup2;var x=t.sizeMultiplier,g=Xe(.5/u.ptPerEm/x),m=null;if(s){var y=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(o instanceof hn||y)&&(m=Xe(-o.italic))}var v;if(l&&s){c=Math.max(c,p,l.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var k=u.defaultRuleThickness,C=4*k;if(c-l.depth-(s.height-f)<C){f=C-(c-l.depth)+s.height;var A=.8*u.xHeight-(c-l.depth);A>0&&(c+=A,f-=A)}var _=[{type:"elem",elem:s,shift:f,marginRight:g,marginLeft:m},{type:"elem",elem:l,shift:-c,marginRight:g}];v=Ut({positionType:"individualShift",children:_})}else if(s){f=Math.max(f,u.sub1,s.height-.8*u.xHeight);var E=[{type:"elem",elem:s,marginLeft:m,marginRight:g}];v=Ut({positionType:"shift",positionData:f,children:E})}else if(l)c=Math.max(c,p,l.depth+.25*u.xHeight),v=Ut({positionType:"shift",positionData:-c,children:[{type:"elem",elem:l,marginRight:g}]});else throw new Error("supsub must have either sup or sub.");var M=Lc(o,"right")||"mord";return $e([M],[o,$e(["msupsub"],[v])],t)},mathmlBuilder(e,t){var r=!1,n,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var i=[Yt(e.base,t)];e.sub&&i.push(Yt(e.sub,t)),e.sup&&i.push(Yt(e.sup,t));var o;if(r)o=n?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===Ct.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===Ct.DISPLAY||u.limits)?o="munderover":o="msubsup"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===Ct.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===Ct.DISPLAY)?o="munder":o="msub"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Ct.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Ct.DISPLAY)?o="mover":o="msup"}return new Ve(o,i)}}),Fi({type:"atom",htmlBuilder(e,t){return zc(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new Ve("mo",[In(e.text,e.mode)]);if(e.family==="bin"){var n=$c(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var zv={mi:"italic",mn:"normal",mtext:"normal"};Fi({type:"mathord",htmlBuilder(e,t){return o0(e,t,"mathord")},mathmlBuilder(e,t){var r=new Ve("mi",[In(e.text,e.mode,t)]),n=$c(e,t)||"italic";return n!==zv[r.type]&&r.setAttribute("mathvariant",n),r}}),Fi({type:"textord",htmlBuilder(e,t){return o0(e,t,"textord")},mathmlBuilder(e,t){var r=In(e.text,e.mode,t),n=$c(e,t)||"normal",a;return e.mode==="text"?a=new Ve("mtext",[r]):/[0-9]/.test(e.text)?a=new Ve("mn",[r]):e.text==="\\prime"?a=new Ve("mo",[r]):a=new Ve("mi",[r]),n!==zv[a.type]&&a.setAttribute("mathvariant",n),a}});var rf={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},nf={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Fi({type:"spacing",htmlBuilder(e,t){if(nf.hasOwnProperty(e.text)){var r=nf[e.text].className||"";if(e.mode==="text"){var n=o0(e,t,"textord");return n.classes.push(r),n}else return $e(["mspace",r],[zc(e.text,e.mode,t)],t)}else{if(rf.hasOwnProperty(e.text))return $e(["mspace",rf[e.text]],[],t);throw new Ge('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(nf.hasOwnProperty(e.text))r=new Ve("mtext",[new yr(" ")]);else{if(rf.hasOwnProperty(e.text))return new Ve("mspace");throw new Ge('Unknown type of space "'+e.text+'"')}return r}});var Fv=()=>{var e=new Ve("mtd",[]);return e.setAttribute("width","50%"),e};Fi({type:"tag",mathmlBuilder(e,t){var r=new Ve("mtable",[new Ve("mtr",[Fv(),new Ve("mtd",[li(e.body,t)]),Fv(),new Ve("mtd",[li(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Ov={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Pv={"\\textbf":"textbf","\\textmd":"textmd"},Ok={"\\textit":"textit","\\textup":"textup"},Rv=(e,t)=>{var r=e.font;if(r){if(Ov[r])return t.withTextFontFamily(Ov[r]);if(Pv[r])return t.withTextFontWeight(Pv[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Ok[r])};nt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"text",mode:r.mode,body:br(a),font:n}},htmlBuilder(e,t){var r=Rv(e,t),n=Cr(e.body,r,!0);return $e(["mord","text"],n,r)},mathmlBuilder(e,t){var r=Rv(e,t);return li(e.body,r)}}),nt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Ht(e.body,t),n=yo("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=Ut({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]});return $e(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new Ve("mo",[new yr("‾")]);r.setAttribute("stretchy","true");var n=new Ve("munder",[Yt(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),nt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Ht(e.body,t),n=t.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return Ut({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new Ve("mpadded",[Yt(e.body,t)],["vcenter"]);return new Ve("mrow",[r])}}),nt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Ge("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Lv(e),n=[],a=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var o=r[i];o==="~"&&(o="\\textasciitilde"),n.push(tn(o,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return $e(["mord","text"].concat(a.sizingClasses(t)),Op(n),a)},mathmlBuilder(e,t){var r=new yr(Lv(e)),n=new Ve("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Lv=e=>e.body.replace(/ /g,e.star?"␣":" "),ui=Bp,Bv=`[ \r
275
+ ]`,Pk="\\\\[a-zA-Z@]+",Rk="\\\\[^\uD800-\uDFFF]",Lk="("+Pk+")"+Bv+"*",Bk=`\\\\(
276
+ |[ \r ]+
277
+ ?)[ \r ]*`,af="[̀-ͯ]",Nk=new RegExp(af+"+$"),$k="("+Bv+"+)|"+(Bk+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(af+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(af+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Lk)+("|"+Rk+")");class Nv{constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp($k,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new mn("EOF",new sn(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new Ge("Unexpected character: '"+t[r]+"'",new mn(t[r],new sn(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=t.indexOf(`
278
+ `,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=t.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=i+1,this.lex()}return new mn(a,new sn(this,r,this.tokenRegex.lastIndex))}}class Uk{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ge("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var Hk=pv;L("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),L("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),L("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}}),L("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}}),L("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),L("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),L("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var $v={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};L("\\char",function(e){var t=e.popToken(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Ge("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=$v[t.text],n==null||n>=r)throw new Ge("Invalid base-"+r+" digit "+t.text);for(var a;(a=$v[e.future().text])!=null&&a<r;)n*=r,n+=a,e.popToken()}return"\\@char{"+n+"}"});var of=(e,t,r,n)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new Ge("\\newcommand's first argument must be a macro name");var i=a[0].text,o=e.isDefined(i);if(o&&!t)throw new Ge("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!o&&!r)throw new Ge("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var l=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var s="",u=e.expandNextToken();u.text!=="]"&&u.text!=="EOF";)s+=u.text,u=e.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new Ge("Invalid number of arguments: "+s);l=parseInt(s),a=e.consumeArg().tokens}return o&&n||e.macros.set(i,{tokens:a,numArgs:l}),""};L("\\newcommand",e=>of(e,!1,!0,!1)),L("\\renewcommand",e=>of(e,!0,!1,!1)),L("\\providecommand",e=>of(e,!0,!0,!0)),L("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""}),L("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""}),L("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),ui[r],or.math[r],or.text[r]),""}),L("\\bgroup","{"),L("\\egroup","}"),L("~","\\nobreakspace"),L("\\lq","`"),L("\\rq","'"),L("\\aa","\\r a"),L("\\AA","\\r A"),L("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),L("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),L("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),L("ℬ","\\mathscr{B}"),L("ℰ","\\mathscr{E}"),L("ℱ","\\mathscr{F}"),L("ℋ","\\mathscr{H}"),L("ℐ","\\mathscr{I}"),L("ℒ","\\mathscr{L}"),L("ℳ","\\mathscr{M}"),L("ℛ","\\mathscr{R}"),L("ℭ","\\mathfrak{C}"),L("ℌ","\\mathfrak{H}"),L("ℨ","\\mathfrak{Z}"),L("\\Bbbk","\\Bbb{k}"),L("\\llap","\\mathllap{\\textrm{#1}}"),L("\\rlap","\\mathrlap{\\textrm{#1}}"),L("\\clap","\\mathclap{\\textrm{#1}}"),L("\\mathstrut","\\vphantom{(}"),L("\\underbar","\\underline{\\text{#1}}"),L("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),L("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),L("\\ne","\\neq"),L("≠","\\neq"),L("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),L("∉","\\notin"),L("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),L("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),L("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),L("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),L("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),L("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),L("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),L("⟂","\\perp"),L("‼","\\mathclose{!\\mkern-0.8mu!}"),L("∌","\\notni"),L("⌜","\\ulcorner"),L("⌝","\\urcorner"),L("⌞","\\llcorner"),L("⌟","\\lrcorner"),L("©","\\copyright"),L("®","\\textregistered"),L("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),L("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),L("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),L("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),L("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),L("⋮","\\vdots"),L("\\varGamma","\\mathit{\\Gamma}"),L("\\varDelta","\\mathit{\\Delta}"),L("\\varTheta","\\mathit{\\Theta}"),L("\\varLambda","\\mathit{\\Lambda}"),L("\\varXi","\\mathit{\\Xi}"),L("\\varPi","\\mathit{\\Pi}"),L("\\varSigma","\\mathit{\\Sigma}"),L("\\varUpsilon","\\mathit{\\Upsilon}"),L("\\varPhi","\\mathit{\\Phi}"),L("\\varPsi","\\mathit{\\Psi}"),L("\\varOmega","\\mathit{\\Omega}"),L("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),L("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),L("\\boxed","\\fbox{$\\displaystyle{#1}$}"),L("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),L("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),L("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),L("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),L("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Uv={",":"\\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"},jk=new Set(["bin","rel"]);L("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Uv?t=Uv[r]:(r.slice(0,4)==="\\not"||r in or.math&&jk.has(or.math[r].group))&&(t="\\dotsb"),t});var lf={")":!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};L("\\dotso",function(e){var t=e.future().text;return t in lf?"\\ldots\\,":"\\ldots"}),L("\\dotsc",function(e){var t=e.future().text;return t in lf&&t!==","?"\\ldots\\,":"\\ldots"}),L("\\cdots",function(e){var t=e.future().text;return t in lf?"\\@cdots\\,":"\\@cdots"}),L("\\dotsb","\\cdots"),L("\\dotsm","\\cdots"),L("\\dotsi","\\!\\cdots"),L("\\dotsx","\\ldots\\,"),L("\\DOTSI","\\relax"),L("\\DOTSB","\\relax"),L("\\DOTSX","\\relax"),L("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),L("\\,","\\tmspace+{3mu}{.1667em}"),L("\\thinspace","\\,"),L("\\>","\\mskip{4mu}"),L("\\:","\\tmspace+{4mu}{.2222em}"),L("\\medspace","\\:"),L("\\;","\\tmspace+{5mu}{.2777em}"),L("\\thickspace","\\;"),L("\\!","\\tmspace-{3mu}{.1667em}"),L("\\negthinspace","\\!"),L("\\negmedspace","\\tmspace-{4mu}{.2222em}"),L("\\negthickspace","\\tmspace-{5mu}{.277em}"),L("\\enspace","\\kern.5em "),L("\\enskip","\\hskip.5em\\relax"),L("\\quad","\\hskip1em\\relax"),L("\\qquad","\\hskip2em\\relax"),L("\\tag","\\@ifstar\\tag@literal\\tag@paren"),L("\\tag@paren","\\tag@literal{({#1})}"),L("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Ge("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),L("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),L("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),L("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),L("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),L("\\newline","\\\\\\relax"),L("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Hv=Xe(da["Main-Regular"][84][1]-.7*da["Main-Regular"][65][1]);L("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Hv+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),L("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Hv+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),L("\\hspace","\\@ifstar\\@hspacer\\@hspace"),L("\\@hspace","\\hskip #1\\relax"),L("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),L("\\ordinarycolon",":"),L("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),L("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),L("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),L("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),L("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),L("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),L("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),L("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),L("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),L("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),L("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),L("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),L("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),L("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),L("∷","\\dblcolon"),L("∹","\\eqcolon"),L("≔","\\coloneqq"),L("≕","\\eqqcolon"),L("⩴","\\Coloneqq"),L("\\ratio","\\vcentcolon"),L("\\coloncolon","\\dblcolon"),L("\\colonequals","\\coloneqq"),L("\\coloncolonequals","\\Coloneqq"),L("\\equalscolon","\\eqqcolon"),L("\\equalscoloncolon","\\Eqqcolon"),L("\\colonminus","\\coloneq"),L("\\coloncolonminus","\\Coloneq"),L("\\minuscolon","\\eqcolon"),L("\\minuscoloncolon","\\Eqcolon"),L("\\coloncolonapprox","\\Colonapprox"),L("\\coloncolonsim","\\Colonsim"),L("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),L("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),L("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),L("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),L("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),L("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),L("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),L("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),L("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),L("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),L("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),L("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),L("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),L("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),L("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),L("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),L("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),L("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),L("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),L("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),L("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),L("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),L("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),L("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),L("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),L("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),L("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),L("\\imath","\\html@mathml{\\@imath}{ı}"),L("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),L("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),L("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),L("⟦","\\llbracket"),L("⟧","\\rrbracket"),L("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),L("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),L("⦃","\\lBrace"),L("⦄","\\rBrace"),L("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),L("⦵","\\minuso"),L("\\darr","\\downarrow"),L("\\dArr","\\Downarrow"),L("\\Darr","\\Downarrow"),L("\\lang","\\langle"),L("\\rang","\\rangle"),L("\\uarr","\\uparrow"),L("\\uArr","\\Uparrow"),L("\\Uarr","\\Uparrow"),L("\\N","\\mathbb{N}"),L("\\R","\\mathbb{R}"),L("\\Z","\\mathbb{Z}"),L("\\alef","\\aleph"),L("\\alefsym","\\aleph"),L("\\Alpha","\\mathrm{A}"),L("\\Beta","\\mathrm{B}"),L("\\bull","\\bullet"),L("\\Chi","\\mathrm{X}"),L("\\clubs","\\clubsuit"),L("\\cnums","\\mathbb{C}"),L("\\Complex","\\mathbb{C}"),L("\\Dagger","\\ddagger"),L("\\diamonds","\\diamondsuit"),L("\\empty","\\emptyset"),L("\\Epsilon","\\mathrm{E}"),L("\\Eta","\\mathrm{H}"),L("\\exist","\\exists"),L("\\harr","\\leftrightarrow"),L("\\hArr","\\Leftrightarrow"),L("\\Harr","\\Leftrightarrow"),L("\\hearts","\\heartsuit"),L("\\image","\\Im"),L("\\infin","\\infty"),L("\\Iota","\\mathrm{I}"),L("\\isin","\\in"),L("\\Kappa","\\mathrm{K}"),L("\\larr","\\leftarrow"),L("\\lArr","\\Leftarrow"),L("\\Larr","\\Leftarrow"),L("\\lrarr","\\leftrightarrow"),L("\\lrArr","\\Leftrightarrow"),L("\\Lrarr","\\Leftrightarrow"),L("\\Mu","\\mathrm{M}"),L("\\natnums","\\mathbb{N}"),L("\\Nu","\\mathrm{N}"),L("\\Omicron","\\mathrm{O}"),L("\\plusmn","\\pm"),L("\\rarr","\\rightarrow"),L("\\rArr","\\Rightarrow"),L("\\Rarr","\\Rightarrow"),L("\\real","\\Re"),L("\\reals","\\mathbb{R}"),L("\\Reals","\\mathbb{R}"),L("\\Rho","\\mathrm{P}"),L("\\sdot","\\cdot"),L("\\sect","\\S"),L("\\spades","\\spadesuit"),L("\\sub","\\subset"),L("\\sube","\\subseteq"),L("\\supe","\\supseteq"),L("\\Tau","\\mathrm{T}"),L("\\thetasym","\\vartheta"),L("\\weierp","\\wp"),L("\\Zeta","\\mathrm{Z}"),L("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),L("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),L("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),L("\\bra","\\mathinner{\\langle{#1}|}"),L("\\ket","\\mathinner{|{#1}\\rangle}"),L("\\braket","\\mathinner{\\langle{#1}\\rangle}"),L("\\Bra","\\left\\langle#1\\right|"),L("\\Ket","\\left|#1\\right\\rangle");var jv=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,a=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.macros.get("|"),l=t.macros.get("\\|");t.macros.beginGroup();var s=f=>d=>{e&&(d.macros.set("|",o),a.length&&d.macros.set("\\|",l));var h=f;if(!f&&a.length){var b=d.future();b.text==="|"&&(d.popToken(),h=!0)}return{tokens:h?a:n,numArgs:0}};t.macros.set("|",s(!1)),a.length&&t.macros.set("\\|",s(!0));var u=t.consumeArg().tokens,c=t.expandTokens([...i,...u,...r]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};L("\\bra@ket",jv(!1)),L("\\bra@set",jv(!0)),L("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),L("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),L("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),L("\\angln","{\\angl n}"),L("\\blue","\\textcolor{##6495ed}{#1}"),L("\\orange","\\textcolor{##ffa500}{#1}"),L("\\pink","\\textcolor{##ff00af}{#1}"),L("\\red","\\textcolor{##df0030}{#1}"),L("\\green","\\textcolor{##28ae7b}{#1}"),L("\\gray","\\textcolor{gray}{#1}"),L("\\purple","\\textcolor{##9d38bd}{#1}"),L("\\blueA","\\textcolor{##ccfaff}{#1}"),L("\\blueB","\\textcolor{##80f6ff}{#1}"),L("\\blueC","\\textcolor{##63d9ea}{#1}"),L("\\blueD","\\textcolor{##11accd}{#1}"),L("\\blueE","\\textcolor{##0c7f99}{#1}"),L("\\tealA","\\textcolor{##94fff5}{#1}"),L("\\tealB","\\textcolor{##26edd5}{#1}"),L("\\tealC","\\textcolor{##01d1c1}{#1}"),L("\\tealD","\\textcolor{##01a995}{#1}"),L("\\tealE","\\textcolor{##208170}{#1}"),L("\\greenA","\\textcolor{##b6ffb0}{#1}"),L("\\greenB","\\textcolor{##8af281}{#1}"),L("\\greenC","\\textcolor{##74cf70}{#1}"),L("\\greenD","\\textcolor{##1fab54}{#1}"),L("\\greenE","\\textcolor{##0d923f}{#1}"),L("\\goldA","\\textcolor{##ffd0a9}{#1}"),L("\\goldB","\\textcolor{##ffbb71}{#1}"),L("\\goldC","\\textcolor{##ff9c39}{#1}"),L("\\goldD","\\textcolor{##e07d10}{#1}"),L("\\goldE","\\textcolor{##a75a05}{#1}"),L("\\redA","\\textcolor{##fca9a9}{#1}"),L("\\redB","\\textcolor{##ff8482}{#1}"),L("\\redC","\\textcolor{##f9685d}{#1}"),L("\\redD","\\textcolor{##e84d39}{#1}"),L("\\redE","\\textcolor{##bc2612}{#1}"),L("\\maroonA","\\textcolor{##ffbde0}{#1}"),L("\\maroonB","\\textcolor{##ff92c6}{#1}"),L("\\maroonC","\\textcolor{##ed5fa6}{#1}"),L("\\maroonD","\\textcolor{##ca337c}{#1}"),L("\\maroonE","\\textcolor{##9e034e}{#1}"),L("\\purpleA","\\textcolor{##ddd7ff}{#1}"),L("\\purpleB","\\textcolor{##c6b9fc}{#1}"),L("\\purpleC","\\textcolor{##aa87ff}{#1}"),L("\\purpleD","\\textcolor{##7854ab}{#1}"),L("\\purpleE","\\textcolor{##543b78}{#1}"),L("\\mintA","\\textcolor{##f5f9e8}{#1}"),L("\\mintB","\\textcolor{##edf2df}{#1}"),L("\\mintC","\\textcolor{##e0e5cc}{#1}"),L("\\grayA","\\textcolor{##f6f7f7}{#1}"),L("\\grayB","\\textcolor{##f0f1f2}{#1}"),L("\\grayC","\\textcolor{##e3e5e6}{#1}"),L("\\grayD","\\textcolor{##d6d8da}{#1}"),L("\\grayE","\\textcolor{##babec2}{#1}"),L("\\grayF","\\textcolor{##888d93}{#1}"),L("\\grayG","\\textcolor{##626569}{#1}"),L("\\grayH","\\textcolor{##3b3e40}{#1}"),L("\\grayI","\\textcolor{##21242c}{#1}"),L("\\kaBlue","\\textcolor{##314453}{#1}"),L("\\kaGreen","\\textcolor{##71B307}{#1}");var Gv={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Gk{constructor(t,r,n){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new Uk(Hk,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new Nv(t,this.settings)}switchMode(t){this.mode=t}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(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:r,end:n}=this.consumeArg());return this.pushToken(new mn("EOF",n.loc)),this.pushTokens(a),new mn("",sn.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var a=this.future(),i,o=0,l=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++o;else if(i.text==="}"){if(--o,o===-1)throw new Ge("Extra }",i)}else if(i.text==="EOF")throw new Ge("Unexpected end of input in a macro argument, expected '"+(t&&n?t[l]:"}")+"'",i);if(t&&n)if((o===0||o===1&&t[l]==="{")&&i.text===t[l]){if(++l,l===t.length){r.splice(-l,l);break}}else l=0}while(o!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new Ge("The length of delimiters doesn't match the number of args!");for(var n=r[0],a=0;a<n.length;a++){var i=this.popToken();if(n[a]!==i.text)throw new Ge("Use of the macro doesn't match its definition",i)}}for(var o=[],l=0;l<t;l++)o.push(this.consumeArg(r&&r[l+1]).tokens);return o}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Ge("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,a=r.noexpand?null:this._getExpansion(n);if(a==null||t&&a.unexpandable){if(t&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new Ge("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,o=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var l=i.length-1;l>=0;--l){var s=i[l];if(s.text==="#"){if(l===0)throw new Ge("Incomplete placeholder at end of macro body",s);if(s=i[--l],s.text==="#")i.splice(l+1,1);else if(/^[1-9]$/.test(s.text))i.splice(l,2,...o[+s.text-1]);else throw new Ge("Not a valid argument number",s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new mn(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.includes("#"))for(var o=a.replace(/##/g,"");o.includes("#"+(i+1));)++i;for(var l=new Nv(a,this.settings),s=[],u=l.lex();u.text!=="EOF";)s.push(u),u=l.lex();s.reverse();var c={tokens:s,numArgs:i};return c}return a}isDefined(t){return this.macros.has(t)||ui.hasOwnProperty(t)||or.math.hasOwnProperty(t)||or.text.hasOwnProperty(t)||Gv.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:ui.hasOwnProperty(t)&&!ui[t].primitive}}var Vv=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,k0=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),sf={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},qv={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class S0{constructor(t,r){this.mode="math",this.gullet=new Gk(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new Ge("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new mn("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(S0.endOfExpression.has(a.text)||r&&a.text===r||t&&ui[a.text]&&ui[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,a=0;a<t.length;a++){var i=t[a];if(i.type==="infix"){if(r!==-1)throw new Ge("only one infix operator per group",i.token);r=a,n=i.replaceWith}}if(r!==-1&&n){var o,l,s=t.slice(0,r),u=t.slice(r+1);s.length===1&&s[0].type==="ordgroup"?o=s[0]:o={type:"ordgroup",mode:this.mode,body:s},u.length===1&&u[0].type==="ordgroup"?l=u[0]:l={type:"ordgroup",mode:this.mode,body:u};var c;return n==="\\\\abovefrac"?c=this.callFunction(n,[o,t[r],l],[]):c=this.callFunction(n,[o,l],[]),[c]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var a;do{var i;a=this.parseGroup(t)}while(((i=a)==null?void 0:i.type)==="internal");if(!a)throw new Ge("Expected group after '"+n+"'",r);return a}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var a={type:"text",mode:this.mode,body:r},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return i}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var n,a;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(r&&r.type==="op"){var o=i.text==="\\limits";r.limits=o,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=i.text==="\\limits");else throw new Ge("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(n)throw new Ge("Double superscript",i);n=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new Ge("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(n)throw new Ge("Double superscript",i);var l={type:"textord",mode:this.mode,text:"\\prime"},s=[l];for(this.consume();this.fetch().text==="'";)s.push(l),this.consume();this.fetch().text==="^"&&s.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:s}}else if(k0[i.text]){var u=Vv.test(i.text),c=[];for(c.push(new mn(k0[i.text])),this.consume();;){var f=this.fetch().text;if(!k0[f]||Vv.test(f)!==u)break;c.unshift(new mn(k0[f])),this.consume()}var d=this.subparse(c);u?a={type:"ordgroup",mode:"math",body:d}:n={type:"ordgroup",mode:"math",body:d}}else break}return n||a?{type:"supsub",mode:this.mode,base:r,sup:n,sub:a}:r}parseFunction(t,r){var n=this.fetch(),a=n.text,i=ui[a];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new Ge("Got function '"+a+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!i.allowedInText)throw new Ge("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&i.allowedInMath===!1)throw new Ge("Can't use function '"+a+"' in math mode",n);var{args:o,optArgs:l}=this.parseArguments(a,i);return this.callFunction(a,o,l,n,t)}callFunction(t,r,n,a,i){var o={funcName:t,parser:this,token:a,breakOnTokenText:i},l=ui[t];if(l&&l.handler)return l.handler(o,r,n);throw new Ge("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var a=[],i=[],o=0;o<n;o++){var l=r.argTypes&&r.argTypes[o],s=o<r.numOptionalArgs;("primitive"in r&&r.primitive&&l==null||r.type==="sqrt"&&o===1&&i[0]==null)&&(l="primitive");var u=this.parseGroupOfType("argument to '"+t+"'",l,s);if(s)i.push(u);else if(u!=null)a.push(u);else throw new Ge("Null argument, please report this as a bug")}return{args:a,optArgs:i}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var a=this.parseArgumentGroup(n,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text"}:null}case"raw":{var i=this.parseStringGroup("raw",n);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(n)throw new Ge("A primitive argument cannot be optional");var o=this.parseGroup(t);if(o==null)throw new Ge("Expected group as "+t,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new Ge("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var a="",i;(i=this.fetch()).text!=="EOF";)a+=i.text,this.consume();return this.consume(),n.text=a,n}parseRegexGroup(t,r){for(var n=this.fetch(),a=n,i="",o;(o=this.fetch()).text!=="EOF"&&t.test(i+o.text);)a=o,i+=a.text,this.consume();if(i==="")throw new Ge("Invalid "+r+": '"+n.text+"'",n);return n.range(a,i)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new Ge("Invalid color: '"+r.text+"'",r);var a=n[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!a)throw new Ge("Invalid size: '"+r.text+"'",r);var i={number:+(a[1]+a[2]),unit:a[3]};if(!wp(i))throw new Ge("Invalid unit: '"+i.unit+"'",r);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var a=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return r&&this.switchMode(a),o}parseGroup(t,r){var n=this.fetch(),a=n.text,i;if(a==="{"||a==="\\begingroup"){this.consume();var o=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var l=this.parseExpression(!1,o),s=this.fetch();this.expect(o),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:sn.range(n,s),body:l,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,t)||this.parseSymbol(),i==null&&a[0]==="\\"&&!Gv.hasOwnProperty(a)){if(this.settings.throwOnError)throw new Ge("Undefined control sequence: "+a,n);i=this.formatUnsupportedCmd(a),this.consume()}return i}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var a=t[n];if(a.type==="textord"){var i=a.text,o=t[n+1];if(!(!o||o.type!=="textord")){if(i==="-"&&o.text==="-"){var l=t[n+2];n+1<r&&l&&l.type==="textord"&&l.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:sn.range(a,l),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:sn.range(a,o),text:"--"}),r-=1)}(i==="'"||i==="`")&&o.text===i&&(t.splice(n,2,{type:"textord",mode:"text",loc:sn.range(a,o),text:i+i}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),a=n.charAt(0)==="*";if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new Ge(`\\verb assertion failed --
279
+ please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}qv.hasOwnProperty(r[0])&&!or[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=qv[r[0]]+r.slice(1));var i=Nk.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var o;if(or[this.mode][r]){this.settings.strict&&this.mode==="math"&&Dc.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var l=or[this.mode][r].group,s=sn.range(t),u;if($9.hasOwnProperty(l)){var c=l;u={type:"atom",mode:this.mode,family:c,loc:s,text:r}}else u={type:l,mode:this.mode,loc:s,text:r};o=u}else if(r.charCodeAt(0)>=128)this.settings.strict&&(xp(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),o={type:"textord",mode:"text",loc:sn.range(t),text:r};else return null;if(this.consume(),i)for(var f=0;f<i[0].length;f++){var d=i[0][f];if(!sf[d])throw new Ge("Unknown accent ' "+d+"'",t);var h=sf[d][this.mode]||sf[d].text;if(!h)throw new Ge("Accent "+d+" unsupported in "+this.mode+" mode",t);o={type:"accent",mode:this.mode,loc:sn.range(t),label:h,isStretchy:!1,isShifty:!0,base:o}}return o}}S0.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var uf=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new S0(t,r);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new Ge("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new mn("\\df@tag")])}]}return a},cf=function(t,r,n){r.textContent="";var a=C0(t,n).toNode();r.appendChild(a)};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."),cf=function(){throw new Ge("KaTeX doesn't work in quirks mode.")});var Wv=function(t,r){var n=C0(t,r).toMarkup();return n},Kv=function(t,r){var n=new xc(r);return uf(t,n)},Xv=function(t,r,n){if(n.throwOnError||!(t instanceof Ge))throw t;var a=$e(["katex-error"],[new hn(r)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+n.errorColor),a},C0=function(t,r){var n=new xc(r);try{var a=uf(t,n);return rk(a,t,n)}catch(i){return Xv(i,t,n)}},Yv=function(t,r){var n=new xc(r);try{var a=uf(t,n);return nk(a,t,n)}catch(i){return Xv(i,t,n)}},Zv="0.16.45",Jv={Span:go,Anchor:Qs,SymbolNode:hn,SvgNode:Oa,PathNode:ai,LineNode:Sc},Vk={version:Zv,render:cf,renderToString:Wv,ParseError:Ge,SETTINGS_SCHEMA:Ys,__parse:Kv,__renderToDomTree:C0,__renderToHTMLTree:Yv,__setFontMetrics:Ep,__defineSymbol:w,__defineFunction:nt,__defineMacro:L,__domTree:Jv};const qk=Object.freeze(Object.defineProperty({__proto__:null,ParseError:Ge,SETTINGS_SCHEMA:Ys,__defineFunction:nt,__defineMacro:L,__defineSymbol:w,__domTree:Jv,__parse:Kv,__renderToDomTree:C0,__renderToHTMLTree:Yv,__setFontMetrics:Ep,default:Vk,get render(){return cf},renderToString:Wv,version:Zv},Symbol.toStringTag,{value:"Module"}));var Wk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Kk(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var em={exports:{}},ff={},tm;function ci(){return tm||(tm=1,function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(i,o){return Object.prototype.hasOwnProperty.call(i,o)}e.assign=function(i){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var l=o.shift();if(l){if(typeof l!="object")throw new TypeError(l+"must be non-object");for(var s in l)r(l,s)&&(i[s]=l[s])}}return i},e.shrinkBuf=function(i,o){return i.length===o?i:i.subarray?i.subarray(0,o):(i.length=o,i)};var n={arraySet:function(i,o,l,s,u){if(o.subarray&&i.subarray){i.set(o.subarray(l,l+s),u);return}for(var c=0;c<s;c++)i[u+c]=o[l+c]},flattenChunks:function(i){var o,l,s,u,c,f;for(s=0,o=0,l=i.length;o<l;o++)s+=i[o].length;for(f=new Uint8Array(s),u=0,o=0,l=i.length;o<l;o++)c=i[o],f.set(c,u),u+=c.length;return f}},a={arraySet:function(i,o,l,s,u){for(var c=0;c<s;c++)i[u+c]=o[l+c]},flattenChunks:function(i){return[].concat.apply([],i)}};e.setTyped=function(i){i?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,n)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(t)}(ff)),ff}var wo={},jn={},Oi={},rm;function Xk(){if(rm)return Oi;rm=1;var e=ci(),t=4,r=0,n=1,a=2;function i(D){for(var re=D.length;--re>=0;)D[re]=0}var o=0,l=1,s=2,u=3,c=258,f=29,d=256,h=d+1+f,b=30,p=19,x=2*h+1,g=15,m=16,y=7,v=256,k=16,C=17,A=18,_=[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],E=[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],M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],R=512,O=new Array((h+2)*2);i(O);var H=new Array(b*2);i(H);var Z=new Array(R);i(Z);var q=new Array(c-u+1);i(q);var X=new Array(f);i(X);var Q=new Array(b);i(Q);function te(D,re,Ae,Re,$){this.static_tree=D,this.extra_bits=re,this.extra_base=Ae,this.elems=Re,this.max_length=$,this.has_stree=D&&D.length}var _e,he,we;function pe(D,re){this.dyn_tree=D,this.max_code=0,this.stat_desc=re}function De(D){return D<256?Z[D]:Z[256+(D>>>7)]}function Ee(D,re){D.pending_buf[D.pending++]=re&255,D.pending_buf[D.pending++]=re>>>8&255}function Oe(D,re,Ae){D.bi_valid>m-Ae?(D.bi_buf|=re<<D.bi_valid&65535,Ee(D,D.bi_buf),D.bi_buf=re>>m-D.bi_valid,D.bi_valid+=Ae-m):(D.bi_buf|=re<<D.bi_valid&65535,D.bi_valid+=Ae)}function Pe(D,re,Ae){Oe(D,Ae[re*2],Ae[re*2+1])}function Me(D,re){var Ae=0;do Ae|=D&1,D>>>=1,Ae<<=1;while(--re>0);return Ae>>>1}function ce(D){D.bi_valid===16?(Ee(D,D.bi_buf),D.bi_buf=0,D.bi_valid=0):D.bi_valid>=8&&(D.pending_buf[D.pending++]=D.bi_buf&255,D.bi_buf>>=8,D.bi_valid-=8)}function ye(D,re){var Ae=re.dyn_tree,Re=re.max_code,$=re.stat_desc.static_tree,W=re.stat_desc.has_stree,I=re.stat_desc.extra_bits,Te=re.stat_desc.extra_base,ke=re.stat_desc.max_length,S,me,Se,P,ne,be,pt=0;for(P=0;P<=g;P++)D.bl_count[P]=0;for(Ae[D.heap[D.heap_max]*2+1]=0,S=D.heap_max+1;S<x;S++)me=D.heap[S],P=Ae[Ae[me*2+1]*2+1]+1,P>ke&&(P=ke,pt++),Ae[me*2+1]=P,!(me>Re)&&(D.bl_count[P]++,ne=0,me>=Te&&(ne=I[me-Te]),be=Ae[me*2],D.opt_len+=be*(P+ne),W&&(D.static_len+=be*($[me*2+1]+ne)));if(pt!==0){do{for(P=ke-1;D.bl_count[P]===0;)P--;D.bl_count[P]--,D.bl_count[P+1]+=2,D.bl_count[ke]--,pt-=2}while(pt>0);for(P=ke;P!==0;P--)for(me=D.bl_count[P];me!==0;)Se=D.heap[--S],!(Se>Re)&&(Ae[Se*2+1]!==P&&(D.opt_len+=(P-Ae[Se*2+1])*Ae[Se*2],Ae[Se*2+1]=P),me--)}}function ge(D,re,Ae){var Re=new Array(g+1),$=0,W,I;for(W=1;W<=g;W++)Re[W]=$=$+Ae[W-1]<<1;for(I=0;I<=re;I++){var Te=D[I*2+1];Te!==0&&(D[I*2]=Me(Re[Te]++,Te))}}function B(){var D,re,Ae,Re,$,W=new Array(g+1);for(Ae=0,Re=0;Re<f-1;Re++)for(X[Re]=Ae,D=0;D<1<<_[Re];D++)q[Ae++]=Re;for(q[Ae-1]=Re,$=0,Re=0;Re<16;Re++)for(Q[Re]=$,D=0;D<1<<E[Re];D++)Z[$++]=Re;for($>>=7;Re<b;Re++)for(Q[Re]=$<<7,D=0;D<1<<E[Re]-7;D++)Z[256+$++]=Re;for(re=0;re<=g;re++)W[re]=0;for(D=0;D<=143;)O[D*2+1]=8,D++,W[8]++;for(;D<=255;)O[D*2+1]=9,D++,W[9]++;for(;D<=279;)O[D*2+1]=7,D++,W[7]++;for(;D<=287;)O[D*2+1]=8,D++,W[8]++;for(ge(O,h+1,W),D=0;D<b;D++)H[D*2+1]=5,H[D*2]=Me(D,5);_e=new te(O,_,d+1,h,g),he=new te(H,E,0,b,g),we=new te(new Array(0),M,0,p,y)}function V(D){var re;for(re=0;re<h;re++)D.dyn_ltree[re*2]=0;for(re=0;re<b;re++)D.dyn_dtree[re*2]=0;for(re=0;re<p;re++)D.bl_tree[re*2]=0;D.dyn_ltree[v*2]=1,D.opt_len=D.static_len=0,D.last_lit=D.matches=0}function oe(D){D.bi_valid>8?Ee(D,D.bi_buf):D.bi_valid>0&&(D.pending_buf[D.pending++]=D.bi_buf),D.bi_buf=0,D.bi_valid=0}function de(D,re,Ae,Re){oe(D),Ee(D,Ae),Ee(D,~Ae),e.arraySet(D.pending_buf,D.window,re,Ae,D.pending),D.pending+=Ae}function ee(D,re,Ae,Re){var $=re*2,W=Ae*2;return D[$]<D[W]||D[$]===D[W]&&Re[re]<=Re[Ae]}function ie(D,re,Ae){for(var Re=D.heap[Ae],$=Ae<<1;$<=D.heap_len&&($<D.heap_len&&ee(re,D.heap[$+1],D.heap[$],D.depth)&&$++,!ee(re,Re,D.heap[$],D.depth));)D.heap[Ae]=D.heap[$],Ae=$,$<<=1;D.heap[Ae]=Re}function ue(D,re,Ae){var Re,$,W=0,I,Te;if(D.last_lit!==0)do Re=D.pending_buf[D.d_buf+W*2]<<8|D.pending_buf[D.d_buf+W*2+1],$=D.pending_buf[D.l_buf+W],W++,Re===0?Pe(D,$,re):(I=q[$],Pe(D,I+d+1,re),Te=_[I],Te!==0&&($-=X[I],Oe(D,$,Te)),Re--,I=De(Re),Pe(D,I,Ae),Te=E[I],Te!==0&&(Re-=Q[I],Oe(D,Re,Te)));while(W<D.last_lit);Pe(D,v,re)}function ve(D,re){var Ae=re.dyn_tree,Re=re.stat_desc.static_tree,$=re.stat_desc.has_stree,W=re.stat_desc.elems,I,Te,ke=-1,S;for(D.heap_len=0,D.heap_max=x,I=0;I<W;I++)Ae[I*2]!==0?(D.heap[++D.heap_len]=ke=I,D.depth[I]=0):Ae[I*2+1]=0;for(;D.heap_len<2;)S=D.heap[++D.heap_len]=ke<2?++ke:0,Ae[S*2]=1,D.depth[S]=0,D.opt_len--,$&&(D.static_len-=Re[S*2+1]);for(re.max_code=ke,I=D.heap_len>>1;I>=1;I--)ie(D,Ae,I);S=W;do I=D.heap[1],D.heap[1]=D.heap[D.heap_len--],ie(D,Ae,1),Te=D.heap[1],D.heap[--D.heap_max]=I,D.heap[--D.heap_max]=Te,Ae[S*2]=Ae[I*2]+Ae[Te*2],D.depth[S]=(D.depth[I]>=D.depth[Te]?D.depth[I]:D.depth[Te])+1,Ae[I*2+1]=Ae[Te*2+1]=S,D.heap[1]=S++,ie(D,Ae,1);while(D.heap_len>=2);D.heap[--D.heap_max]=D.heap[1],ye(D,re),ge(Ae,ke,D.bl_count)}function Ce(D,re,Ae){var Re,$=-1,W,I=re[0*2+1],Te=0,ke=7,S=4;for(I===0&&(ke=138,S=3),re[(Ae+1)*2+1]=65535,Re=0;Re<=Ae;Re++)W=I,I=re[(Re+1)*2+1],!(++Te<ke&&W===I)&&(Te<S?D.bl_tree[W*2]+=Te:W!==0?(W!==$&&D.bl_tree[W*2]++,D.bl_tree[k*2]++):Te<=10?D.bl_tree[C*2]++:D.bl_tree[A*2]++,Te=0,$=W,I===0?(ke=138,S=3):W===I?(ke=6,S=3):(ke=7,S=4))}function xe(D,re,Ae){var Re,$=-1,W,I=re[0*2+1],Te=0,ke=7,S=4;for(I===0&&(ke=138,S=3),Re=0;Re<=Ae;Re++)if(W=I,I=re[(Re+1)*2+1],!(++Te<ke&&W===I)){if(Te<S)do Pe(D,W,D.bl_tree);while(--Te!==0);else W!==0?(W!==$&&(Pe(D,W,D.bl_tree),Te--),Pe(D,k,D.bl_tree),Oe(D,Te-3,2)):Te<=10?(Pe(D,C,D.bl_tree),Oe(D,Te-3,3)):(Pe(D,A,D.bl_tree),Oe(D,Te-11,7));Te=0,$=W,I===0?(ke=138,S=3):W===I?(ke=6,S=3):(ke=7,S=4)}}function je(D){var re;for(Ce(D,D.dyn_ltree,D.l_desc.max_code),Ce(D,D.dyn_dtree,D.d_desc.max_code),ve(D,D.bl_desc),re=p-1;re>=3&&D.bl_tree[z[re]*2+1]===0;re--);return D.opt_len+=3*(re+1)+5+5+4,re}function Ne(D,re,Ae,Re){var $;for(Oe(D,re-257,5),Oe(D,Ae-1,5),Oe(D,Re-4,4),$=0;$<Re;$++)Oe(D,D.bl_tree[z[$]*2+1],3);xe(D,D.dyn_ltree,re-1),xe(D,D.dyn_dtree,Ae-1)}function Ue(D){var re=4093624447,Ae;for(Ae=0;Ae<=31;Ae++,re>>>=1)if(re&1&&D.dyn_ltree[Ae*2]!==0)return r;if(D.dyn_ltree[9*2]!==0||D.dyn_ltree[10*2]!==0||D.dyn_ltree[13*2]!==0)return n;for(Ae=32;Ae<d;Ae++)if(D.dyn_ltree[Ae*2]!==0)return n;return r}var Ke=!1;function at(D){Ke||(B(),Ke=!0),D.l_desc=new pe(D.dyn_ltree,_e),D.d_desc=new pe(D.dyn_dtree,he),D.bl_desc=new pe(D.bl_tree,we),D.bi_buf=0,D.bi_valid=0,V(D)}function ut(D,re,Ae,Re){Oe(D,(o<<1)+(Re?1:0),3),de(D,re,Ae)}function st(D){Oe(D,l<<1,3),Pe(D,v,O),ce(D)}function yt(D,re,Ae,Re){var $,W,I=0;D.level>0?(D.strm.data_type===a&&(D.strm.data_type=Ue(D)),ve(D,D.l_desc),ve(D,D.d_desc),I=je(D),$=D.opt_len+3+7>>>3,W=D.static_len+3+7>>>3,W<=$&&($=W)):$=W=Ae+5,Ae+4<=$&&re!==-1?ut(D,re,Ae,Re):D.strategy===t||W===$?(Oe(D,(l<<1)+(Re?1:0),3),ue(D,O,H)):(Oe(D,(s<<1)+(Re?1:0),3),Ne(D,D.l_desc.max_code+1,D.d_desc.max_code+1,I+1),ue(D,D.dyn_ltree,D.dyn_dtree)),V(D),Re&&oe(D)}function Ie(D,re,Ae){return D.pending_buf[D.d_buf+D.last_lit*2]=re>>>8&255,D.pending_buf[D.d_buf+D.last_lit*2+1]=re&255,D.pending_buf[D.l_buf+D.last_lit]=Ae&255,D.last_lit++,re===0?D.dyn_ltree[Ae*2]++:(D.matches++,re--,D.dyn_ltree[(q[Ae]+d+1)*2]++,D.dyn_dtree[De(re)*2]++),D.last_lit===D.lit_bufsize-1}return Oi._tr_init=at,Oi._tr_stored_block=ut,Oi._tr_flush_block=yt,Oi._tr_tally=Ie,Oi._tr_align=st,Oi}var df,nm;function am(){if(nm)return df;nm=1;function e(t,r,n,a){for(var i=t&65535|0,o=t>>>16&65535|0,l=0;n!==0;){l=n>2e3?2e3:n,n-=l;do i=i+r[a++]|0,o=o+i|0;while(--l);i%=65521,o%=65521}return i|o<<16|0}return df=e,df}var hf,im;function om(){if(im)return hf;im=1;function e(){for(var n,a=[],i=0;i<256;i++){n=i;for(var o=0;o<8;o++)n=n&1?3988292384^n>>>1:n>>>1;a[i]=n}return a}var t=e();function r(n,a,i,o){var l=t,s=o+i;n^=-1;for(var u=o;u<s;u++)n=n>>>8^l[(n^a[u])&255];return n^-1}return hf=r,hf}var pf,lm;function vf(){return lm||(lm=1,pf={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"}),pf}var sm;function Yk(){if(sm)return jn;sm=1;var e=ci(),t=Xk(),r=am(),n=om(),a=vf(),i=0,o=1,l=3,s=4,u=5,c=0,f=1,d=-2,h=-3,b=-5,p=-1,x=1,g=2,m=3,y=4,v=0,k=2,C=8,A=9,_=15,E=8,M=29,z=256,R=z+1+M,O=30,H=19,Z=2*R+1,q=15,X=3,Q=258,te=Q+X+1,_e=32,he=42,we=69,pe=73,De=91,Ee=103,Oe=113,Pe=666,Me=1,ce=2,ye=3,ge=4,B=3;function V(S,me){return S.msg=a[me],me}function oe(S){return(S<<1)-(S>4?9:0)}function de(S){for(var me=S.length;--me>=0;)S[me]=0}function ee(S){var me=S.state,Se=me.pending;Se>S.avail_out&&(Se=S.avail_out),Se!==0&&(e.arraySet(S.output,me.pending_buf,me.pending_out,Se,S.next_out),S.next_out+=Se,me.pending_out+=Se,S.total_out+=Se,S.avail_out-=Se,me.pending-=Se,me.pending===0&&(me.pending_out=0))}function ie(S,me){t._tr_flush_block(S,S.block_start>=0?S.block_start:-1,S.strstart-S.block_start,me),S.block_start=S.strstart,ee(S.strm)}function ue(S,me){S.pending_buf[S.pending++]=me}function ve(S,me){S.pending_buf[S.pending++]=me>>>8&255,S.pending_buf[S.pending++]=me&255}function Ce(S,me,Se,P){var ne=S.avail_in;return ne>P&&(ne=P),ne===0?0:(S.avail_in-=ne,e.arraySet(me,S.input,S.next_in,ne,Se),S.state.wrap===1?S.adler=r(S.adler,me,ne,Se):S.state.wrap===2&&(S.adler=n(S.adler,me,ne,Se)),S.next_in+=ne,S.total_in+=ne,ne)}function xe(S,me){var Se=S.max_chain_length,P=S.strstart,ne,be,pt=S.prev_length,tt=S.nice_match,lt=S.strstart>S.w_size-te?S.strstart-(S.w_size-te):0,It=S.window,Jn=S.w_mask,rr=S.prev,Rt=S.strstart+Q,nr=It[P+pt-1],wr=It[P+pt];S.prev_length>=S.good_match&&(Se>>=2),tt>S.lookahead&&(tt=S.lookahead);do if(ne=me,!(It[ne+pt]!==wr||It[ne+pt-1]!==nr||It[ne]!==It[P]||It[++ne]!==It[P+1])){P+=2,ne++;do;while(It[++P]===It[++ne]&&It[++P]===It[++ne]&&It[++P]===It[++ne]&&It[++P]===It[++ne]&&It[++P]===It[++ne]&&It[++P]===It[++ne]&&It[++P]===It[++ne]&&It[++P]===It[++ne]&&P<Rt);if(be=Q-(Rt-P),P=Rt-Q,be>pt){if(S.match_start=me,pt=be,be>=tt)break;nr=It[P+pt-1],wr=It[P+pt]}}while((me=rr[me&Jn])>lt&&--Se!==0);return pt<=S.lookahead?pt:S.lookahead}function je(S){var me=S.w_size,Se,P,ne,be,pt;do{if(be=S.window_size-S.lookahead-S.strstart,S.strstart>=me+(me-te)){e.arraySet(S.window,S.window,me,me,0),S.match_start-=me,S.strstart-=me,S.block_start-=me,P=S.hash_size,Se=P;do ne=S.head[--Se],S.head[Se]=ne>=me?ne-me:0;while(--P);P=me,Se=P;do ne=S.prev[--Se],S.prev[Se]=ne>=me?ne-me:0;while(--P);be+=me}if(S.strm.avail_in===0)break;if(P=Ce(S.strm,S.window,S.strstart+S.lookahead,be),S.lookahead+=P,S.lookahead+S.insert>=X)for(pt=S.strstart-S.insert,S.ins_h=S.window[pt],S.ins_h=(S.ins_h<<S.hash_shift^S.window[pt+1])&S.hash_mask;S.insert&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[pt+X-1])&S.hash_mask,S.prev[pt&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=pt,pt++,S.insert--,!(S.lookahead+S.insert<X)););}while(S.lookahead<te&&S.strm.avail_in!==0)}function Ne(S,me){var Se=65535;for(Se>S.pending_buf_size-5&&(Se=S.pending_buf_size-5);;){if(S.lookahead<=1){if(je(S),S.lookahead===0&&me===i)return Me;if(S.lookahead===0)break}S.strstart+=S.lookahead,S.lookahead=0;var P=S.block_start+Se;if((S.strstart===0||S.strstart>=P)&&(S.lookahead=S.strstart-P,S.strstart=P,ie(S,!1),S.strm.avail_out===0)||S.strstart-S.block_start>=S.w_size-te&&(ie(S,!1),S.strm.avail_out===0))return Me}return S.insert=0,me===s?(ie(S,!0),S.strm.avail_out===0?ye:ge):(S.strstart>S.block_start&&(ie(S,!1),S.strm.avail_out===0),Me)}function Ue(S,me){for(var Se,P;;){if(S.lookahead<te){if(je(S),S.lookahead<te&&me===i)return Me;if(S.lookahead===0)break}if(Se=0,S.lookahead>=X&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+X-1])&S.hash_mask,Se=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart),Se!==0&&S.strstart-Se<=S.w_size-te&&(S.match_length=xe(S,Se)),S.match_length>=X)if(P=t._tr_tally(S,S.strstart-S.match_start,S.match_length-X),S.lookahead-=S.match_length,S.match_length<=S.max_lazy_match&&S.lookahead>=X){S.match_length--;do S.strstart++,S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+X-1])&S.hash_mask,Se=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart;while(--S.match_length!==0);S.strstart++}else S.strstart+=S.match_length,S.match_length=0,S.ins_h=S.window[S.strstart],S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+1])&S.hash_mask;else P=t._tr_tally(S,0,S.window[S.strstart]),S.lookahead--,S.strstart++;if(P&&(ie(S,!1),S.strm.avail_out===0))return Me}return S.insert=S.strstart<X-1?S.strstart:X-1,me===s?(ie(S,!0),S.strm.avail_out===0?ye:ge):S.last_lit&&(ie(S,!1),S.strm.avail_out===0)?Me:ce}function Ke(S,me){for(var Se,P,ne;;){if(S.lookahead<te){if(je(S),S.lookahead<te&&me===i)return Me;if(S.lookahead===0)break}if(Se=0,S.lookahead>=X&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+X-1])&S.hash_mask,Se=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart),S.prev_length=S.match_length,S.prev_match=S.match_start,S.match_length=X-1,Se!==0&&S.prev_length<S.max_lazy_match&&S.strstart-Se<=S.w_size-te&&(S.match_length=xe(S,Se),S.match_length<=5&&(S.strategy===x||S.match_length===X&&S.strstart-S.match_start>4096)&&(S.match_length=X-1)),S.prev_length>=X&&S.match_length<=S.prev_length){ne=S.strstart+S.lookahead-X,P=t._tr_tally(S,S.strstart-1-S.prev_match,S.prev_length-X),S.lookahead-=S.prev_length-1,S.prev_length-=2;do++S.strstart<=ne&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+X-1])&S.hash_mask,Se=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart);while(--S.prev_length!==0);if(S.match_available=0,S.match_length=X-1,S.strstart++,P&&(ie(S,!1),S.strm.avail_out===0))return Me}else if(S.match_available){if(P=t._tr_tally(S,0,S.window[S.strstart-1]),P&&ie(S,!1),S.strstart++,S.lookahead--,S.strm.avail_out===0)return Me}else S.match_available=1,S.strstart++,S.lookahead--}return S.match_available&&(P=t._tr_tally(S,0,S.window[S.strstart-1]),S.match_available=0),S.insert=S.strstart<X-1?S.strstart:X-1,me===s?(ie(S,!0),S.strm.avail_out===0?ye:ge):S.last_lit&&(ie(S,!1),S.strm.avail_out===0)?Me:ce}function at(S,me){for(var Se,P,ne,be,pt=S.window;;){if(S.lookahead<=Q){if(je(S),S.lookahead<=Q&&me===i)return Me;if(S.lookahead===0)break}if(S.match_length=0,S.lookahead>=X&&S.strstart>0&&(ne=S.strstart-1,P=pt[ne],P===pt[++ne]&&P===pt[++ne]&&P===pt[++ne])){be=S.strstart+Q;do;while(P===pt[++ne]&&P===pt[++ne]&&P===pt[++ne]&&P===pt[++ne]&&P===pt[++ne]&&P===pt[++ne]&&P===pt[++ne]&&P===pt[++ne]&&ne<be);S.match_length=Q-(be-ne),S.match_length>S.lookahead&&(S.match_length=S.lookahead)}if(S.match_length>=X?(Se=t._tr_tally(S,1,S.match_length-X),S.lookahead-=S.match_length,S.strstart+=S.match_length,S.match_length=0):(Se=t._tr_tally(S,0,S.window[S.strstart]),S.lookahead--,S.strstart++),Se&&(ie(S,!1),S.strm.avail_out===0))return Me}return S.insert=0,me===s?(ie(S,!0),S.strm.avail_out===0?ye:ge):S.last_lit&&(ie(S,!1),S.strm.avail_out===0)?Me:ce}function ut(S,me){for(var Se;;){if(S.lookahead===0&&(je(S),S.lookahead===0)){if(me===i)return Me;break}if(S.match_length=0,Se=t._tr_tally(S,0,S.window[S.strstart]),S.lookahead--,S.strstart++,Se&&(ie(S,!1),S.strm.avail_out===0))return Me}return S.insert=0,me===s?(ie(S,!0),S.strm.avail_out===0?ye:ge):S.last_lit&&(ie(S,!1),S.strm.avail_out===0)?Me:ce}function st(S,me,Se,P,ne){this.good_length=S,this.max_lazy=me,this.nice_length=Se,this.max_chain=P,this.func=ne}var yt;yt=[new st(0,0,0,0,Ne),new st(4,4,8,4,Ue),new st(4,5,16,8,Ue),new st(4,6,32,32,Ue),new st(4,4,16,16,Ke),new st(8,16,32,32,Ke),new st(8,16,128,128,Ke),new st(8,32,128,256,Ke),new st(32,128,258,1024,Ke),new st(32,258,258,4096,Ke)];function Ie(S){S.window_size=2*S.w_size,de(S.head),S.max_lazy_match=yt[S.level].max_lazy,S.good_match=yt[S.level].good_length,S.nice_match=yt[S.level].nice_length,S.max_chain_length=yt[S.level].max_chain,S.strstart=0,S.block_start=0,S.lookahead=0,S.insert=0,S.match_length=S.prev_length=X-1,S.match_available=0,S.ins_h=0}function D(){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=C,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 e.Buf16(Z*2),this.dyn_dtree=new e.Buf16((2*O+1)*2),this.bl_tree=new e.Buf16((2*H+1)*2),de(this.dyn_ltree),de(this.dyn_dtree),de(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(q+1),this.heap=new e.Buf16(2*R+1),de(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*R+1),de(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 re(S){var me;return!S||!S.state?V(S,d):(S.total_in=S.total_out=0,S.data_type=k,me=S.state,me.pending=0,me.pending_out=0,me.wrap<0&&(me.wrap=-me.wrap),me.status=me.wrap?he:Oe,S.adler=me.wrap===2?0:1,me.last_flush=i,t._tr_init(me),c)}function Ae(S){var me=re(S);return me===c&&Ie(S.state),me}function Re(S,me){return!S||!S.state||S.state.wrap!==2?d:(S.state.gzhead=me,c)}function $(S,me,Se,P,ne,be){if(!S)return d;var pt=1;if(me===p&&(me=6),P<0?(pt=0,P=-P):P>15&&(pt=2,P-=16),ne<1||ne>A||Se!==C||P<8||P>15||me<0||me>9||be<0||be>y)return V(S,d);P===8&&(P=9);var tt=new D;return S.state=tt,tt.strm=S,tt.wrap=pt,tt.gzhead=null,tt.w_bits=P,tt.w_size=1<<tt.w_bits,tt.w_mask=tt.w_size-1,tt.hash_bits=ne+7,tt.hash_size=1<<tt.hash_bits,tt.hash_mask=tt.hash_size-1,tt.hash_shift=~~((tt.hash_bits+X-1)/X),tt.window=new e.Buf8(tt.w_size*2),tt.head=new e.Buf16(tt.hash_size),tt.prev=new e.Buf16(tt.w_size),tt.lit_bufsize=1<<ne+6,tt.pending_buf_size=tt.lit_bufsize*4,tt.pending_buf=new e.Buf8(tt.pending_buf_size),tt.d_buf=1*tt.lit_bufsize,tt.l_buf=3*tt.lit_bufsize,tt.level=me,tt.strategy=be,tt.method=Se,Ae(S)}function W(S,me){return $(S,me,C,_,E,v)}function I(S,me){var Se,P,ne,be;if(!S||!S.state||me>u||me<0)return S?V(S,d):d;if(P=S.state,!S.output||!S.input&&S.avail_in!==0||P.status===Pe&&me!==s)return V(S,S.avail_out===0?b:d);if(P.strm=S,Se=P.last_flush,P.last_flush=me,P.status===he)if(P.wrap===2)S.adler=0,ue(P,31),ue(P,139),ue(P,8),P.gzhead?(ue(P,(P.gzhead.text?1:0)+(P.gzhead.hcrc?2:0)+(P.gzhead.extra?4:0)+(P.gzhead.name?8:0)+(P.gzhead.comment?16:0)),ue(P,P.gzhead.time&255),ue(P,P.gzhead.time>>8&255),ue(P,P.gzhead.time>>16&255),ue(P,P.gzhead.time>>24&255),ue(P,P.level===9?2:P.strategy>=g||P.level<2?4:0),ue(P,P.gzhead.os&255),P.gzhead.extra&&P.gzhead.extra.length&&(ue(P,P.gzhead.extra.length&255),ue(P,P.gzhead.extra.length>>8&255)),P.gzhead.hcrc&&(S.adler=n(S.adler,P.pending_buf,P.pending,0)),P.gzindex=0,P.status=we):(ue(P,0),ue(P,0),ue(P,0),ue(P,0),ue(P,0),ue(P,P.level===9?2:P.strategy>=g||P.level<2?4:0),ue(P,B),P.status=Oe);else{var pt=C+(P.w_bits-8<<4)<<8,tt=-1;P.strategy>=g||P.level<2?tt=0:P.level<6?tt=1:P.level===6?tt=2:tt=3,pt|=tt<<6,P.strstart!==0&&(pt|=_e),pt+=31-pt%31,P.status=Oe,ve(P,pt),P.strstart!==0&&(ve(P,S.adler>>>16),ve(P,S.adler&65535)),S.adler=1}if(P.status===we)if(P.gzhead.extra){for(ne=P.pending;P.gzindex<(P.gzhead.extra.length&65535)&&!(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>ne&&(S.adler=n(S.adler,P.pending_buf,P.pending-ne,ne)),ee(S),ne=P.pending,P.pending===P.pending_buf_size));)ue(P,P.gzhead.extra[P.gzindex]&255),P.gzindex++;P.gzhead.hcrc&&P.pending>ne&&(S.adler=n(S.adler,P.pending_buf,P.pending-ne,ne)),P.gzindex===P.gzhead.extra.length&&(P.gzindex=0,P.status=pe)}else P.status=pe;if(P.status===pe)if(P.gzhead.name){ne=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>ne&&(S.adler=n(S.adler,P.pending_buf,P.pending-ne,ne)),ee(S),ne=P.pending,P.pending===P.pending_buf_size)){be=1;break}P.gzindex<P.gzhead.name.length?be=P.gzhead.name.charCodeAt(P.gzindex++)&255:be=0,ue(P,be)}while(be!==0);P.gzhead.hcrc&&P.pending>ne&&(S.adler=n(S.adler,P.pending_buf,P.pending-ne,ne)),be===0&&(P.gzindex=0,P.status=De)}else P.status=De;if(P.status===De)if(P.gzhead.comment){ne=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>ne&&(S.adler=n(S.adler,P.pending_buf,P.pending-ne,ne)),ee(S),ne=P.pending,P.pending===P.pending_buf_size)){be=1;break}P.gzindex<P.gzhead.comment.length?be=P.gzhead.comment.charCodeAt(P.gzindex++)&255:be=0,ue(P,be)}while(be!==0);P.gzhead.hcrc&&P.pending>ne&&(S.adler=n(S.adler,P.pending_buf,P.pending-ne,ne)),be===0&&(P.status=Ee)}else P.status=Ee;if(P.status===Ee&&(P.gzhead.hcrc?(P.pending+2>P.pending_buf_size&&ee(S),P.pending+2<=P.pending_buf_size&&(ue(P,S.adler&255),ue(P,S.adler>>8&255),S.adler=0,P.status=Oe)):P.status=Oe),P.pending!==0){if(ee(S),S.avail_out===0)return P.last_flush=-1,c}else if(S.avail_in===0&&oe(me)<=oe(Se)&&me!==s)return V(S,b);if(P.status===Pe&&S.avail_in!==0)return V(S,b);if(S.avail_in!==0||P.lookahead!==0||me!==i&&P.status!==Pe){var lt=P.strategy===g?ut(P,me):P.strategy===m?at(P,me):yt[P.level].func(P,me);if((lt===ye||lt===ge)&&(P.status=Pe),lt===Me||lt===ye)return S.avail_out===0&&(P.last_flush=-1),c;if(lt===ce&&(me===o?t._tr_align(P):me!==u&&(t._tr_stored_block(P,0,0,!1),me===l&&(de(P.head),P.lookahead===0&&(P.strstart=0,P.block_start=0,P.insert=0))),ee(S),S.avail_out===0))return P.last_flush=-1,c}return me!==s?c:P.wrap<=0?f:(P.wrap===2?(ue(P,S.adler&255),ue(P,S.adler>>8&255),ue(P,S.adler>>16&255),ue(P,S.adler>>24&255),ue(P,S.total_in&255),ue(P,S.total_in>>8&255),ue(P,S.total_in>>16&255),ue(P,S.total_in>>24&255)):(ve(P,S.adler>>>16),ve(P,S.adler&65535)),ee(S),P.wrap>0&&(P.wrap=-P.wrap),P.pending!==0?c:f)}function Te(S){var me;return!S||!S.state?d:(me=S.state.status,me!==he&&me!==we&&me!==pe&&me!==De&&me!==Ee&&me!==Oe&&me!==Pe?V(S,d):(S.state=null,me===Oe?V(S,h):c))}function ke(S,me){var Se=me.length,P,ne,be,pt,tt,lt,It,Jn;if(!S||!S.state||(P=S.state,pt=P.wrap,pt===2||pt===1&&P.status!==he||P.lookahead))return d;for(pt===1&&(S.adler=r(S.adler,me,Se,0)),P.wrap=0,Se>=P.w_size&&(pt===0&&(de(P.head),P.strstart=0,P.block_start=0,P.insert=0),Jn=new e.Buf8(P.w_size),e.arraySet(Jn,me,Se-P.w_size,P.w_size,0),me=Jn,Se=P.w_size),tt=S.avail_in,lt=S.next_in,It=S.input,S.avail_in=Se,S.next_in=0,S.input=me,je(P);P.lookahead>=X;){ne=P.strstart,be=P.lookahead-(X-1);do P.ins_h=(P.ins_h<<P.hash_shift^P.window[ne+X-1])&P.hash_mask,P.prev[ne&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=ne,ne++;while(--be);P.strstart=ne,P.lookahead=X-1,je(P)}return P.strstart+=P.lookahead,P.block_start=P.strstart,P.insert=P.lookahead,P.lookahead=0,P.match_length=P.prev_length=X-1,P.match_available=0,S.next_in=lt,S.input=It,S.avail_in=tt,P.wrap=pt,c}return jn.deflateInit=W,jn.deflateInit2=$,jn.deflateReset=Ae,jn.deflateResetKeep=re,jn.deflateSetHeader=Re,jn.deflate=I,jn.deflateEnd=Te,jn.deflateSetDictionary=ke,jn.deflateInfo="pako deflate (from Nodeca project)",jn}var Pi={},um;function cm(){if(um)return Pi;um=1;var e=ci(),t=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch{t=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{r=!1}for(var n=new e.Buf8(256),a=0;a<256;a++)n[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;n[254]=n[254]=1,Pi.string2buf=function(o){var l,s,u,c,f,d=o.length,h=0;for(c=0;c<d;c++)s=o.charCodeAt(c),(s&64512)===55296&&c+1<d&&(u=o.charCodeAt(c+1),(u&64512)===56320&&(s=65536+(s-55296<<10)+(u-56320),c++)),h+=s<128?1:s<2048?2:s<65536?3:4;for(l=new e.Buf8(h),f=0,c=0;f<h;c++)s=o.charCodeAt(c),(s&64512)===55296&&c+1<d&&(u=o.charCodeAt(c+1),(u&64512)===56320&&(s=65536+(s-55296<<10)+(u-56320),c++)),s<128?l[f++]=s:s<2048?(l[f++]=192|s>>>6,l[f++]=128|s&63):s<65536?(l[f++]=224|s>>>12,l[f++]=128|s>>>6&63,l[f++]=128|s&63):(l[f++]=240|s>>>18,l[f++]=128|s>>>12&63,l[f++]=128|s>>>6&63,l[f++]=128|s&63);return l};function i(o,l){if(l<65534&&(o.subarray&&r||!o.subarray&&t))return String.fromCharCode.apply(null,e.shrinkBuf(o,l));for(var s="",u=0;u<l;u++)s+=String.fromCharCode(o[u]);return s}return Pi.buf2binstring=function(o){return i(o,o.length)},Pi.binstring2buf=function(o){for(var l=new e.Buf8(o.length),s=0,u=l.length;s<u;s++)l[s]=o.charCodeAt(s);return l},Pi.buf2string=function(o,l){var s,u,c,f,d=l||o.length,h=new Array(d*2);for(u=0,s=0;s<d;){if(c=o[s++],c<128){h[u++]=c;continue}if(f=n[c],f>4){h[u++]=65533,s+=f-1;continue}for(c&=f===2?31:f===3?15:7;f>1&&s<d;)c=c<<6|o[s++]&63,f--;if(f>1){h[u++]=65533;continue}c<65536?h[u++]=c:(c-=65536,h[u++]=55296|c>>10&1023,h[u++]=56320|c&1023)}return i(h,u)},Pi.utf8border=function(o,l){var s;for(l=l||o.length,l>o.length&&(l=o.length),s=l-1;s>=0&&(o[s]&192)===128;)s--;return s<0||s===0?l:s+n[o[s]]>l?s:l},Pi}var mf,fm;function dm(){if(fm)return mf;fm=1;function e(){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}return mf=e,mf}var hm;function Zk(){if(hm)return wo;hm=1;var e=Yk(),t=ci(),r=cm(),n=vf(),a=dm(),i=Object.prototype.toString,o=0,l=4,s=0,u=1,c=2,f=-1,d=0,h=8;function b(m){if(!(this instanceof b))return new b(m);this.options=t.assign({level:f,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},m||{});var y=this.options;y.raw&&y.windowBits>0?y.windowBits=-y.windowBits:y.gzip&&y.windowBits>0&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var v=e.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(v!==s)throw new Error(n[v]);if(y.header&&e.deflateSetHeader(this.strm,y.header),y.dictionary){var k;if(typeof y.dictionary=="string"?k=r.string2buf(y.dictionary):i.call(y.dictionary)==="[object ArrayBuffer]"?k=new Uint8Array(y.dictionary):k=y.dictionary,v=e.deflateSetDictionary(this.strm,k),v!==s)throw new Error(n[v]);this._dict_set=!0}}b.prototype.push=function(m,y){var v=this.strm,k=this.options.chunkSize,C,A;if(this.ended)return!1;A=y===~~y?y:y===!0?l:o,typeof m=="string"?v.input=r.string2buf(m):i.call(m)==="[object ArrayBuffer]"?v.input=new Uint8Array(m):v.input=m,v.next_in=0,v.avail_in=v.input.length;do{if(v.avail_out===0&&(v.output=new t.Buf8(k),v.next_out=0,v.avail_out=k),C=e.deflate(v,A),C!==u&&C!==s)return this.onEnd(C),this.ended=!0,!1;(v.avail_out===0||v.avail_in===0&&(A===l||A===c))&&(this.options.to==="string"?this.onData(r.buf2binstring(t.shrinkBuf(v.output,v.next_out))):this.onData(t.shrinkBuf(v.output,v.next_out)))}while((v.avail_in>0||v.avail_out===0)&&C!==u);return A===l?(C=e.deflateEnd(this.strm),this.onEnd(C),this.ended=!0,C===s):(A===c&&(this.onEnd(s),v.avail_out=0),!0)},b.prototype.onData=function(m){this.chunks.push(m)},b.prototype.onEnd=function(m){m===s&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg};function p(m,y){var v=new b(y);if(v.push(m,!0),v.err)throw v.msg||n[v.err];return v.result}function x(m,y){return y=y||{},y.raw=!0,p(m,y)}function g(m,y){return y=y||{},y.gzip=!0,p(m,y)}return wo.Deflate=b,wo.deflate=p,wo.deflateRaw=x,wo.gzip=g,wo}var ko={},zn={},gf,pm;function Jk(){if(pm)return gf;pm=1;var e=30,t=12;return gf=function(n,a){var i,o,l,s,u,c,f,d,h,b,p,x,g,m,y,v,k,C,A,_,E,M,z,R,O;i=n.state,o=n.next_in,R=n.input,l=o+(n.avail_in-5),s=n.next_out,O=n.output,u=s-(a-n.avail_out),c=s+(n.avail_out-257),f=i.dmax,d=i.wsize,h=i.whave,b=i.wnext,p=i.window,x=i.hold,g=i.bits,m=i.lencode,y=i.distcode,v=(1<<i.lenbits)-1,k=(1<<i.distbits)-1;e:do{g<15&&(x+=R[o++]<<g,g+=8,x+=R[o++]<<g,g+=8),C=m[x&v];t:for(;;){if(A=C>>>24,x>>>=A,g-=A,A=C>>>16&255,A===0)O[s++]=C&65535;else if(A&16){_=C&65535,A&=15,A&&(g<A&&(x+=R[o++]<<g,g+=8),_+=x&(1<<A)-1,x>>>=A,g-=A),g<15&&(x+=R[o++]<<g,g+=8,x+=R[o++]<<g,g+=8),C=y[x&k];r:for(;;){if(A=C>>>24,x>>>=A,g-=A,A=C>>>16&255,A&16){if(E=C&65535,A&=15,g<A&&(x+=R[o++]<<g,g+=8,g<A&&(x+=R[o++]<<g,g+=8)),E+=x&(1<<A)-1,E>f){n.msg="invalid distance too far back",i.mode=e;break e}if(x>>>=A,g-=A,A=s-u,E>A){if(A=E-A,A>h&&i.sane){n.msg="invalid distance too far back",i.mode=e;break e}if(M=0,z=p,b===0){if(M+=d-A,A<_){_-=A;do O[s++]=p[M++];while(--A);M=s-E,z=O}}else if(b<A){if(M+=d+b-A,A-=b,A<_){_-=A;do O[s++]=p[M++];while(--A);if(M=0,b<_){A=b,_-=A;do O[s++]=p[M++];while(--A);M=s-E,z=O}}}else if(M+=b-A,A<_){_-=A;do O[s++]=p[M++];while(--A);M=s-E,z=O}for(;_>2;)O[s++]=z[M++],O[s++]=z[M++],O[s++]=z[M++],_-=3;_&&(O[s++]=z[M++],_>1&&(O[s++]=z[M++]))}else{M=s-E;do O[s++]=O[M++],O[s++]=O[M++],O[s++]=O[M++],_-=3;while(_>2);_&&(O[s++]=O[M++],_>1&&(O[s++]=O[M++]))}}else if(A&64){n.msg="invalid distance code",i.mode=e;break e}else{C=y[(C&65535)+(x&(1<<A)-1)];continue r}break}}else if(A&64)if(A&32){i.mode=t;break e}else{n.msg="invalid literal/length code",i.mode=e;break e}else{C=m[(C&65535)+(x&(1<<A)-1)];continue t}break}}while(o<l&&s<c);_=g>>3,o-=_,g-=_<<3,x&=(1<<g)-1,n.next_in=o,n.next_out=s,n.avail_in=o<l?5+(l-o):5-(o-l),n.avail_out=s<c?257+(c-s):257-(s-c),i.hold=x,i.bits=g},gf}var bf,vm;function Qk(){if(vm)return bf;vm=1;var e=ci(),t=15,r=852,n=592,a=0,i=1,o=2,l=[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],s=[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],u=[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],c=[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];return bf=function(d,h,b,p,x,g,m,y){var v=y.bits,k=0,C=0,A=0,_=0,E=0,M=0,z=0,R=0,O=0,H=0,Z,q,X,Q,te,_e=null,he=0,we,pe=new e.Buf16(t+1),De=new e.Buf16(t+1),Ee=null,Oe=0,Pe,Me,ce;for(k=0;k<=t;k++)pe[k]=0;for(C=0;C<p;C++)pe[h[b+C]]++;for(E=v,_=t;_>=1&&pe[_]===0;_--);if(E>_&&(E=_),_===0)return x[g++]=1<<24|64<<16|0,x[g++]=1<<24|64<<16|0,y.bits=1,0;for(A=1;A<_&&pe[A]===0;A++);for(E<A&&(E=A),R=1,k=1;k<=t;k++)if(R<<=1,R-=pe[k],R<0)return-1;if(R>0&&(d===a||_!==1))return-1;for(De[1]=0,k=1;k<t;k++)De[k+1]=De[k]+pe[k];for(C=0;C<p;C++)h[b+C]!==0&&(m[De[h[b+C]]++]=C);if(d===a?(_e=Ee=m,we=19):d===i?(_e=l,he-=257,Ee=s,Oe-=257,we=256):(_e=u,Ee=c,we=-1),H=0,C=0,k=A,te=g,M=E,z=0,X=-1,O=1<<E,Q=O-1,d===i&&O>r||d===o&&O>n)return 1;for(;;){Pe=k-z,m[C]<we?(Me=0,ce=m[C]):m[C]>we?(Me=Ee[Oe+m[C]],ce=_e[he+m[C]]):(Me=96,ce=0),Z=1<<k-z,q=1<<M,A=q;do q-=Z,x[te+(H>>z)+q]=Pe<<24|Me<<16|ce|0;while(q!==0);for(Z=1<<k-1;H&Z;)Z>>=1;if(Z!==0?(H&=Z-1,H+=Z):H=0,C++,--pe[k]===0){if(k===_)break;k=h[b+m[C]]}if(k>E&&(H&Q)!==X){for(z===0&&(z=E),te+=A,M=k-z,R=1<<M;M+z<_&&(R-=pe[M+z],!(R<=0));)M++,R<<=1;if(O+=1<<M,d===i&&O>r||d===o&&O>n)return 1;X=H&Q,x[X]=E<<24|M<<16|te-g|0}}return H!==0&&(x[te+H]=k-z<<24|64<<16|0),y.bits=E,0},bf}var mm;function eS(){if(mm)return zn;mm=1;var e=ci(),t=am(),r=om(),n=Jk(),a=Qk(),i=0,o=1,l=2,s=4,u=5,c=6,f=0,d=1,h=2,b=-2,p=-3,x=-4,g=-5,m=8,y=1,v=2,k=3,C=4,A=5,_=6,E=7,M=8,z=9,R=10,O=11,H=12,Z=13,q=14,X=15,Q=16,te=17,_e=18,he=19,we=20,pe=21,De=22,Ee=23,Oe=24,Pe=25,Me=26,ce=27,ye=28,ge=29,B=30,V=31,oe=32,de=852,ee=592,ie=15,ue=ie;function ve($){return($>>>24&255)+($>>>8&65280)+(($&65280)<<8)+(($&255)<<24)}function Ce(){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 e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function xe($){var W;return!$||!$.state?b:(W=$.state,$.total_in=$.total_out=W.total=0,$.msg="",W.wrap&&($.adler=W.wrap&1),W.mode=y,W.last=0,W.havedict=0,W.dmax=32768,W.head=null,W.hold=0,W.bits=0,W.lencode=W.lendyn=new e.Buf32(de),W.distcode=W.distdyn=new e.Buf32(ee),W.sane=1,W.back=-1,f)}function je($){var W;return!$||!$.state?b:(W=$.state,W.wsize=0,W.whave=0,W.wnext=0,xe($))}function Ne($,W){var I,Te;return!$||!$.state||(Te=$.state,W<0?(I=0,W=-W):(I=(W>>4)+1,W<48&&(W&=15)),W&&(W<8||W>15))?b:(Te.window!==null&&Te.wbits!==W&&(Te.window=null),Te.wrap=I,Te.wbits=W,je($))}function Ue($,W){var I,Te;return $?(Te=new Ce,$.state=Te,Te.window=null,I=Ne($,W),I!==f&&($.state=null),I):b}function Ke($){return Ue($,ue)}var at=!0,ut,st;function yt($){if(at){var W;for(ut=new e.Buf32(512),st=new e.Buf32(32),W=0;W<144;)$.lens[W++]=8;for(;W<256;)$.lens[W++]=9;for(;W<280;)$.lens[W++]=7;for(;W<288;)$.lens[W++]=8;for(a(o,$.lens,0,288,ut,0,$.work,{bits:9}),W=0;W<32;)$.lens[W++]=5;a(l,$.lens,0,32,st,0,$.work,{bits:5}),at=!1}$.lencode=ut,$.lenbits=9,$.distcode=st,$.distbits=5}function Ie($,W,I,Te){var ke,S=$.state;return S.window===null&&(S.wsize=1<<S.wbits,S.wnext=0,S.whave=0,S.window=new e.Buf8(S.wsize)),Te>=S.wsize?(e.arraySet(S.window,W,I-S.wsize,S.wsize,0),S.wnext=0,S.whave=S.wsize):(ke=S.wsize-S.wnext,ke>Te&&(ke=Te),e.arraySet(S.window,W,I-Te,ke,S.wnext),Te-=ke,Te?(e.arraySet(S.window,W,I-Te,Te,0),S.wnext=Te,S.whave=S.wsize):(S.wnext+=ke,S.wnext===S.wsize&&(S.wnext=0),S.whave<S.wsize&&(S.whave+=ke))),0}function D($,W){var I,Te,ke,S,me,Se,P,ne,be,pt,tt,lt,It,Jn,rr=0,Rt,nr,wr,Wr,Yo,Zo,fr,cn,Ar=new e.Buf8(4),Qn,An,_u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!$||!$.state||!$.output||!$.input&&$.avail_in!==0)return b;I=$.state,I.mode===H&&(I.mode=Z),me=$.next_out,ke=$.output,P=$.avail_out,S=$.next_in,Te=$.input,Se=$.avail_in,ne=I.hold,be=I.bits,pt=Se,tt=P,cn=f;e:for(;;)switch(I.mode){case y:if(I.wrap===0){I.mode=Z;break}for(;be<16;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}if(I.wrap&2&&ne===35615){I.check=0,Ar[0]=ne&255,Ar[1]=ne>>>8&255,I.check=r(I.check,Ar,2,0),ne=0,be=0,I.mode=v;break}if(I.flags=0,I.head&&(I.head.done=!1),!(I.wrap&1)||(((ne&255)<<8)+(ne>>8))%31){$.msg="incorrect header check",I.mode=B;break}if((ne&15)!==m){$.msg="unknown compression method",I.mode=B;break}if(ne>>>=4,be-=4,fr=(ne&15)+8,I.wbits===0)I.wbits=fr;else if(fr>I.wbits){$.msg="invalid window size",I.mode=B;break}I.dmax=1<<fr,$.adler=I.check=1,I.mode=ne&512?R:H,ne=0,be=0;break;case v:for(;be<16;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}if(I.flags=ne,(I.flags&255)!==m){$.msg="unknown compression method",I.mode=B;break}if(I.flags&57344){$.msg="unknown header flags set",I.mode=B;break}I.head&&(I.head.text=ne>>8&1),I.flags&512&&(Ar[0]=ne&255,Ar[1]=ne>>>8&255,I.check=r(I.check,Ar,2,0)),ne=0,be=0,I.mode=k;case k:for(;be<32;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}I.head&&(I.head.time=ne),I.flags&512&&(Ar[0]=ne&255,Ar[1]=ne>>>8&255,Ar[2]=ne>>>16&255,Ar[3]=ne>>>24&255,I.check=r(I.check,Ar,4,0)),ne=0,be=0,I.mode=C;case C:for(;be<16;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}I.head&&(I.head.xflags=ne&255,I.head.os=ne>>8),I.flags&512&&(Ar[0]=ne&255,Ar[1]=ne>>>8&255,I.check=r(I.check,Ar,2,0)),ne=0,be=0,I.mode=A;case A:if(I.flags&1024){for(;be<16;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}I.length=ne,I.head&&(I.head.extra_len=ne),I.flags&512&&(Ar[0]=ne&255,Ar[1]=ne>>>8&255,I.check=r(I.check,Ar,2,0)),ne=0,be=0}else I.head&&(I.head.extra=null);I.mode=_;case _:if(I.flags&1024&&(lt=I.length,lt>Se&&(lt=Se),lt&&(I.head&&(fr=I.head.extra_len-I.length,I.head.extra||(I.head.extra=new Array(I.head.extra_len)),e.arraySet(I.head.extra,Te,S,lt,fr)),I.flags&512&&(I.check=r(I.check,Te,lt,S)),Se-=lt,S+=lt,I.length-=lt),I.length))break e;I.length=0,I.mode=E;case E:if(I.flags&2048){if(Se===0)break e;lt=0;do fr=Te[S+lt++],I.head&&fr&&I.length<65536&&(I.head.name+=String.fromCharCode(fr));while(fr&&lt<Se);if(I.flags&512&&(I.check=r(I.check,Te,lt,S)),Se-=lt,S+=lt,fr)break e}else I.head&&(I.head.name=null);I.length=0,I.mode=M;case M:if(I.flags&4096){if(Se===0)break e;lt=0;do fr=Te[S+lt++],I.head&&fr&&I.length<65536&&(I.head.comment+=String.fromCharCode(fr));while(fr&&lt<Se);if(I.flags&512&&(I.check=r(I.check,Te,lt,S)),Se-=lt,S+=lt,fr)break e}else I.head&&(I.head.comment=null);I.mode=z;case z:if(I.flags&512){for(;be<16;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}if(ne!==(I.check&65535)){$.msg="header crc mismatch",I.mode=B;break}ne=0,be=0}I.head&&(I.head.hcrc=I.flags>>9&1,I.head.done=!0),$.adler=I.check=0,I.mode=H;break;case R:for(;be<32;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}$.adler=I.check=ve(ne),ne=0,be=0,I.mode=O;case O:if(I.havedict===0)return $.next_out=me,$.avail_out=P,$.next_in=S,$.avail_in=Se,I.hold=ne,I.bits=be,h;$.adler=I.check=1,I.mode=H;case H:if(W===u||W===c)break e;case Z:if(I.last){ne>>>=be&7,be-=be&7,I.mode=ce;break}for(;be<3;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}switch(I.last=ne&1,ne>>>=1,be-=1,ne&3){case 0:I.mode=q;break;case 1:if(yt(I),I.mode=we,W===c){ne>>>=2,be-=2;break e}break;case 2:I.mode=te;break;case 3:$.msg="invalid block type",I.mode=B}ne>>>=2,be-=2;break;case q:for(ne>>>=be&7,be-=be&7;be<32;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}if((ne&65535)!==(ne>>>16^65535)){$.msg="invalid stored block lengths",I.mode=B;break}if(I.length=ne&65535,ne=0,be=0,I.mode=X,W===c)break e;case X:I.mode=Q;case Q:if(lt=I.length,lt){if(lt>Se&&(lt=Se),lt>P&&(lt=P),lt===0)break e;e.arraySet(ke,Te,S,lt,me),Se-=lt,S+=lt,P-=lt,me+=lt,I.length-=lt;break}I.mode=H;break;case te:for(;be<14;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}if(I.nlen=(ne&31)+257,ne>>>=5,be-=5,I.ndist=(ne&31)+1,ne>>>=5,be-=5,I.ncode=(ne&15)+4,ne>>>=4,be-=4,I.nlen>286||I.ndist>30){$.msg="too many length or distance symbols",I.mode=B;break}I.have=0,I.mode=_e;case _e:for(;I.have<I.ncode;){for(;be<3;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}I.lens[_u[I.have++]]=ne&7,ne>>>=3,be-=3}for(;I.have<19;)I.lens[_u[I.have++]]=0;if(I.lencode=I.lendyn,I.lenbits=7,Qn={bits:I.lenbits},cn=a(i,I.lens,0,19,I.lencode,0,I.work,Qn),I.lenbits=Qn.bits,cn){$.msg="invalid code lengths set",I.mode=B;break}I.have=0,I.mode=he;case he:for(;I.have<I.nlen+I.ndist;){for(;rr=I.lencode[ne&(1<<I.lenbits)-1],Rt=rr>>>24,nr=rr>>>16&255,wr=rr&65535,!(Rt<=be);){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}if(wr<16)ne>>>=Rt,be-=Rt,I.lens[I.have++]=wr;else{if(wr===16){for(An=Rt+2;be<An;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}if(ne>>>=Rt,be-=Rt,I.have===0){$.msg="invalid bit length repeat",I.mode=B;break}fr=I.lens[I.have-1],lt=3+(ne&3),ne>>>=2,be-=2}else if(wr===17){for(An=Rt+3;be<An;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}ne>>>=Rt,be-=Rt,fr=0,lt=3+(ne&7),ne>>>=3,be-=3}else{for(An=Rt+7;be<An;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}ne>>>=Rt,be-=Rt,fr=0,lt=11+(ne&127),ne>>>=7,be-=7}if(I.have+lt>I.nlen+I.ndist){$.msg="invalid bit length repeat",I.mode=B;break}for(;lt--;)I.lens[I.have++]=fr}}if(I.mode===B)break;if(I.lens[256]===0){$.msg="invalid code -- missing end-of-block",I.mode=B;break}if(I.lenbits=9,Qn={bits:I.lenbits},cn=a(o,I.lens,0,I.nlen,I.lencode,0,I.work,Qn),I.lenbits=Qn.bits,cn){$.msg="invalid literal/lengths set",I.mode=B;break}if(I.distbits=6,I.distcode=I.distdyn,Qn={bits:I.distbits},cn=a(l,I.lens,I.nlen,I.ndist,I.distcode,0,I.work,Qn),I.distbits=Qn.bits,cn){$.msg="invalid distances set",I.mode=B;break}if(I.mode=we,W===c)break e;case we:I.mode=pe;case pe:if(Se>=6&&P>=258){$.next_out=me,$.avail_out=P,$.next_in=S,$.avail_in=Se,I.hold=ne,I.bits=be,n($,tt),me=$.next_out,ke=$.output,P=$.avail_out,S=$.next_in,Te=$.input,Se=$.avail_in,ne=I.hold,be=I.bits,I.mode===H&&(I.back=-1);break}for(I.back=0;rr=I.lencode[ne&(1<<I.lenbits)-1],Rt=rr>>>24,nr=rr>>>16&255,wr=rr&65535,!(Rt<=be);){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}if(nr&&!(nr&240)){for(Wr=Rt,Yo=nr,Zo=wr;rr=I.lencode[Zo+((ne&(1<<Wr+Yo)-1)>>Wr)],Rt=rr>>>24,nr=rr>>>16&255,wr=rr&65535,!(Wr+Rt<=be);){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}ne>>>=Wr,be-=Wr,I.back+=Wr}if(ne>>>=Rt,be-=Rt,I.back+=Rt,I.length=wr,nr===0){I.mode=Me;break}if(nr&32){I.back=-1,I.mode=H;break}if(nr&64){$.msg="invalid literal/length code",I.mode=B;break}I.extra=nr&15,I.mode=De;case De:if(I.extra){for(An=I.extra;be<An;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}I.length+=ne&(1<<I.extra)-1,ne>>>=I.extra,be-=I.extra,I.back+=I.extra}I.was=I.length,I.mode=Ee;case Ee:for(;rr=I.distcode[ne&(1<<I.distbits)-1],Rt=rr>>>24,nr=rr>>>16&255,wr=rr&65535,!(Rt<=be);){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}if(!(nr&240)){for(Wr=Rt,Yo=nr,Zo=wr;rr=I.distcode[Zo+((ne&(1<<Wr+Yo)-1)>>Wr)],Rt=rr>>>24,nr=rr>>>16&255,wr=rr&65535,!(Wr+Rt<=be);){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}ne>>>=Wr,be-=Wr,I.back+=Wr}if(ne>>>=Rt,be-=Rt,I.back+=Rt,nr&64){$.msg="invalid distance code",I.mode=B;break}I.offset=wr,I.extra=nr&15,I.mode=Oe;case Oe:if(I.extra){for(An=I.extra;be<An;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}I.offset+=ne&(1<<I.extra)-1,ne>>>=I.extra,be-=I.extra,I.back+=I.extra}if(I.offset>I.dmax){$.msg="invalid distance too far back",I.mode=B;break}I.mode=Pe;case Pe:if(P===0)break e;if(lt=tt-P,I.offset>lt){if(lt=I.offset-lt,lt>I.whave&&I.sane){$.msg="invalid distance too far back",I.mode=B;break}lt>I.wnext?(lt-=I.wnext,It=I.wsize-lt):It=I.wnext-lt,lt>I.length&&(lt=I.length),Jn=I.window}else Jn=ke,It=me-I.offset,lt=I.length;lt>P&&(lt=P),P-=lt,I.length-=lt;do ke[me++]=Jn[It++];while(--lt);I.length===0&&(I.mode=pe);break;case Me:if(P===0)break e;ke[me++]=I.length,P--,I.mode=pe;break;case ce:if(I.wrap){for(;be<32;){if(Se===0)break e;Se--,ne|=Te[S++]<<be,be+=8}if(tt-=P,$.total_out+=tt,I.total+=tt,tt&&($.adler=I.check=I.flags?r(I.check,ke,tt,me-tt):t(I.check,ke,tt,me-tt)),tt=P,(I.flags?ne:ve(ne))!==I.check){$.msg="incorrect data check",I.mode=B;break}ne=0,be=0}I.mode=ye;case ye:if(I.wrap&&I.flags){for(;be<32;){if(Se===0)break e;Se--,ne+=Te[S++]<<be,be+=8}if(ne!==(I.total&4294967295)){$.msg="incorrect length check",I.mode=B;break}ne=0,be=0}I.mode=ge;case ge:cn=d;break e;case B:cn=p;break e;case V:return x;case oe:default:return b}return $.next_out=me,$.avail_out=P,$.next_in=S,$.avail_in=Se,I.hold=ne,I.bits=be,(I.wsize||tt!==$.avail_out&&I.mode<B&&(I.mode<ce||W!==s))&&Ie($,$.output,$.next_out,tt-$.avail_out),pt-=$.avail_in,tt-=$.avail_out,$.total_in+=pt,$.total_out+=tt,I.total+=tt,I.wrap&&tt&&($.adler=I.check=I.flags?r(I.check,ke,tt,$.next_out-tt):t(I.check,ke,tt,$.next_out-tt)),$.data_type=I.bits+(I.last?64:0)+(I.mode===H?128:0)+(I.mode===we||I.mode===X?256:0),(pt===0&&tt===0||W===s)&&cn===f&&(cn=g),cn}function re($){if(!$||!$.state)return b;var W=$.state;return W.window&&(W.window=null),$.state=null,f}function Ae($,W){var I;return!$||!$.state||(I=$.state,!(I.wrap&2))?b:(I.head=W,W.done=!1,f)}function Re($,W){var I=W.length,Te,ke,S;return!$||!$.state||(Te=$.state,Te.wrap!==0&&Te.mode!==O)?b:Te.mode===O&&(ke=1,ke=t(ke,W,I,0),ke!==Te.check)?p:(S=Ie($,W,I,I),S?(Te.mode=V,x):(Te.havedict=1,f))}return zn.inflateReset=je,zn.inflateReset2=Ne,zn.inflateResetKeep=xe,zn.inflateInit=Ke,zn.inflateInit2=Ue,zn.inflate=D,zn.inflateEnd=re,zn.inflateGetHeader=Ae,zn.inflateSetDictionary=Re,zn.inflateInfo="pako inflate (from Nodeca project)",zn}var yf,gm;function bm(){return gm||(gm=1,yf={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}),yf}var xf,ym;function tS(){if(ym)return xf;ym=1;function e(){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}return xf=e,xf}var xm;function rS(){if(xm)return ko;xm=1;var e=eS(),t=ci(),r=cm(),n=bm(),a=vf(),i=dm(),o=tS(),l=Object.prototype.toString;function s(f){if(!(this instanceof s))return new s(f);this.options=t.assign({chunkSize:16384,windowBits:0,to:""},f||{});var d=this.options;d.raw&&d.windowBits>=0&&d.windowBits<16&&(d.windowBits=-d.windowBits,d.windowBits===0&&(d.windowBits=-15)),d.windowBits>=0&&d.windowBits<16&&!(f&&f.windowBits)&&(d.windowBits+=32),d.windowBits>15&&d.windowBits<48&&(d.windowBits&15||(d.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var h=e.inflateInit2(this.strm,d.windowBits);if(h!==n.Z_OK)throw new Error(a[h]);if(this.header=new o,e.inflateGetHeader(this.strm,this.header),d.dictionary&&(typeof d.dictionary=="string"?d.dictionary=r.string2buf(d.dictionary):l.call(d.dictionary)==="[object ArrayBuffer]"&&(d.dictionary=new Uint8Array(d.dictionary)),d.raw&&(h=e.inflateSetDictionary(this.strm,d.dictionary),h!==n.Z_OK)))throw new Error(a[h])}s.prototype.push=function(f,d){var h=this.strm,b=this.options.chunkSize,p=this.options.dictionary,x,g,m,y,v,k=!1;if(this.ended)return!1;g=d===~~d?d:d===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof f=="string"?h.input=r.binstring2buf(f):l.call(f)==="[object ArrayBuffer]"?h.input=new Uint8Array(f):h.input=f,h.next_in=0,h.avail_in=h.input.length;do{if(h.avail_out===0&&(h.output=new t.Buf8(b),h.next_out=0,h.avail_out=b),x=e.inflate(h,n.Z_NO_FLUSH),x===n.Z_NEED_DICT&&p&&(x=e.inflateSetDictionary(this.strm,p)),x===n.Z_BUF_ERROR&&k===!0&&(x=n.Z_OK,k=!1),x!==n.Z_STREAM_END&&x!==n.Z_OK)return this.onEnd(x),this.ended=!0,!1;h.next_out&&(h.avail_out===0||x===n.Z_STREAM_END||h.avail_in===0&&(g===n.Z_FINISH||g===n.Z_SYNC_FLUSH))&&(this.options.to==="string"?(m=r.utf8border(h.output,h.next_out),y=h.next_out-m,v=r.buf2string(h.output,m),h.next_out=y,h.avail_out=b-y,y&&t.arraySet(h.output,h.output,m,y,0),this.onData(v)):this.onData(t.shrinkBuf(h.output,h.next_out))),h.avail_in===0&&h.avail_out===0&&(k=!0)}while((h.avail_in>0||h.avail_out===0)&&x!==n.Z_STREAM_END);return x===n.Z_STREAM_END&&(g=n.Z_FINISH),g===n.Z_FINISH?(x=e.inflateEnd(this.strm),this.onEnd(x),this.ended=!0,x===n.Z_OK):(g===n.Z_SYNC_FLUSH&&(this.onEnd(n.Z_OK),h.avail_out=0),!0)},s.prototype.onData=function(f){this.chunks.push(f)},s.prototype.onEnd=function(f){f===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg};function u(f,d){var h=new s(d);if(h.push(f,!0),h.err)throw h.msg||a[h.err];return h.result}function c(f,d){return d=d||{},d.raw=!0,u(f,d)}return ko.Inflate=s,ko.inflate=u,ko.inflateRaw=c,ko.ungzip=u,ko}var _f,_m;function nS(){if(_m)return _f;_m=1;var e=ci().assign,t=Zk(),r=rS(),n=bm(),a={};return e(a,t,r,n),_f=a,_f}(function(e){(function(){var t={};e.exports=t;var r;typeof Kk=="function"?r=nS():r=self.pako;function n(){typeof process>"u"&&console.log.apply(console,arguments)}(function(a,i){(function(){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},l=function(){function u(c){this.message="JPEG error: "+c}return u.prototype=Error(),u.prototype.name="JpegError",u.constructor=u}(),s=function(){function u(c,f){this.message=c,this.g=f}return u.prototype=Error(),u.prototype.name="DNLMarkerError",u.constructor=u}();(function(){function u(){this.M=null,this.B=-1}function c(p,x){for(var g=0,m=[],y,v,k=16;0<k&&!p[k-1];)k--;m.push({children:[],index:0});var C=m[0],A;for(y=0;y<k;y++){for(v=0;v<p[y];v++){for(C=m.pop(),C.children[C.index]=x[g];0<C.index;)C=m.pop();for(C.index++,m.push(C);m.length<=y;)m.push(A={children:[],index:0}),C.children[C.index]=A.children,C=A;g++}y+1<k&&(m.push(A={children:[],index:0}),C.children[C.index]=A.children,C=A)}return m[0].children}function f(p,x,g,m,y,v,k,C,A){function _(){if(0<he)return he--,_e>>he&1;if(_e=p[x++],_e===255){var ie=p[x++];if(ie){if(ie===220&&X){x+=2;var ue=p[x++]<<8|p[x++];if(0<ue&&ue!==g.g)throw new s("Found DNL marker (0xFFDC) while parsing scan data",ue)}throw new l("unexpected marker "+(_e<<8|ie).toString(16))}}return he=7,_e>>>7}function E(ie){for(;;){if(ie=ie[_()],typeof ie=="number")return ie;if((typeof ie>"u"?"undefined":o(ie))!=="object")throw new l("invalid huffman sequence")}}function M(ie){for(var ue=0;0<ie;)ue=ue<<1|_(),ie--;return ue}function z(ie){if(ie===1)return _()===1?1:-1;var ue=M(ie);return ue>=1<<ie-1?ue:ue+(-1<<ie)+1}function R(ie,ue){var ve=E(ie.D);for(ve=ve===0?0:z(ve),ie.a[ue]=ie.m+=ve,ve=1;64>ve;){var Ce=E(ie.o),xe=Ce&15;if(Ce>>=4,xe===0){if(15>Ce)break;ve+=16}else ve+=Ce,ie.a[ue+b[ve]]=z(xe),ve++}}function O(ie,ue){var ve=E(ie.D);ve=ve===0?0:z(ve)<<A,ie.a[ue]=ie.m+=ve}function H(ie,ue){ie.a[ue]|=_()<<A}function Z(ie,ue){if(0<we)we--;else for(var ve=v;ve<=k;){var Ce=E(ie.o),xe=Ce&15;if(Ce>>=4,xe===0){if(15>Ce){we=M(Ce)+(1<<Ce)-1;break}ve+=16}else ve+=Ce,ie.a[ue+b[ve]]=z(xe)*(1<<A),ve++}}function q(ie,ue){for(var ve=v,Ce=0,xe;ve<=k;){xe=ue+b[ve];var je=0>ie.a[xe]?-1:1;switch(pe){case 0:if(Ce=E(ie.o),xe=Ce&15,Ce>>=4,xe===0)15>Ce?(we=M(Ce)+(1<<Ce),pe=4):(Ce=16,pe=1);else{if(xe!==1)throw new l("invalid ACn encoding");De=z(xe),pe=Ce?2:3}continue;case 1:case 2:ie.a[xe]?ie.a[xe]+=je*(_()<<A):(Ce--,Ce===0&&(pe=pe===2?3:0));break;case 3:ie.a[xe]?ie.a[xe]+=je*(_()<<A):(ie.a[xe]=De<<A,pe=0);break;case 4:ie.a[xe]&&(ie.a[xe]+=je*(_()<<A))}ve++}pe===4&&(we--,we===0&&(pe=0))}for(var X=9<arguments.length&&arguments[9]!==void 0?arguments[9]:!1,Q=g.P,te=x,_e=0,he=0,we=0,pe=0,De,Ee=m.length,Oe,Pe,Me,ce,ye=g.S?v===0?C===0?O:H:C===0?Z:q:R,ge=0,B=Ee===1?m[0].c*m[0].l:Q*g.O,V,oe;ge<B;){var de=y?Math.min(B-ge,y):B;for(Oe=0;Oe<Ee;Oe++)m[Oe].m=0;if(we=0,Ee===1){var ee=m[0];for(ce=0;ce<de;ce++)ye(ee,64*((ee.c+1)*(ge/ee.c|0)+ge%ee.c)),ge++}else for(ce=0;ce<de;ce++){for(Oe=0;Oe<Ee;Oe++)for(ee=m[Oe],V=ee.h,oe=ee.j,Pe=0;Pe<oe;Pe++)for(Me=0;Me<V;Me++)ye(ee,64*((ee.c+1)*((ge/Q|0)*ee.j+Pe)+(ge%Q*ee.h+Me)));ge++}if(he=0,(ee=h(p,x))&&ee.f&&((0,_util.warn)("decodeScan - unexpected MCU data, current marker is: "+ee.f),x=ee.offset),ee=ee&&ee.F,!ee||65280>=ee)throw new l("marker was not found");if(65488<=ee&&65495>=ee)x+=2;else break}return(ee=h(p,x))&&ee.f&&((0,_util.warn)("decodeScan - unexpected Scan data, current marker is: "+ee.f),x=ee.offset),x-te}function d(p,x){for(var g=x.c,m=x.l,y=new Int16Array(64),v=0;v<m;v++)for(var k=0;k<g;k++){var C=64*((x.c+1)*v+k),A=y,_=x.G,E=x.a;if(!_)throw new l("missing required Quantization Table.");for(var M=0;64>M;M+=8){var z=E[C+M],R=E[C+M+1],O=E[C+M+2],H=E[C+M+3],Z=E[C+M+4],q=E[C+M+5],X=E[C+M+6],Q=E[C+M+7];if(z*=_[M],!(R|O|H|Z|q|X|Q))z=5793*z+512>>10,A[M]=z,A[M+1]=z,A[M+2]=z,A[M+3]=z,A[M+4]=z,A[M+5]=z,A[M+6]=z,A[M+7]=z;else{R*=_[M+1],O*=_[M+2],H*=_[M+3],Z*=_[M+4],q*=_[M+5],X*=_[M+6],Q*=_[M+7];var te=5793*z+128>>8,_e=5793*Z+128>>8,he=O,we=X;Z=2896*(R-Q)+128>>8,Q=2896*(R+Q)+128>>8,H<<=4,q<<=4,te=te+_e+1>>1,_e=te-_e,z=3784*he+1567*we+128>>8,he=1567*he-3784*we+128>>8,we=z,Z=Z+q+1>>1,q=Z-q,Q=Q+H+1>>1,H=Q-H,te=te+we+1>>1,we=te-we,_e=_e+he+1>>1,he=_e-he,z=2276*Z+3406*Q+2048>>12,Z=3406*Z-2276*Q+2048>>12,Q=z,z=799*H+4017*q+2048>>12,H=4017*H-799*q+2048>>12,q=z,A[M]=te+Q,A[M+7]=te-Q,A[M+1]=_e+q,A[M+6]=_e-q,A[M+2]=he+H,A[M+5]=he-H,A[M+3]=we+Z,A[M+4]=we-Z}}for(_=0;8>_;++_)z=A[_],R=A[_+8],O=A[_+16],H=A[_+24],Z=A[_+32],q=A[_+40],X=A[_+48],Q=A[_+56],R|O|H|Z|q|X|Q?(te=5793*z+2048>>12,_e=5793*Z+2048>>12,he=O,we=X,Z=2896*(R-Q)+2048>>12,Q=2896*(R+Q)+2048>>12,te=(te+_e+1>>1)+4112,_e=te-_e,z=3784*he+1567*we+2048>>12,he=1567*he-3784*we+2048>>12,we=z,Z=Z+q+1>>1,q=Z-q,Q=Q+H+1>>1,H=Q-H,te=te+we+1>>1,we=te-we,_e=_e+he+1>>1,he=_e-he,z=2276*Z+3406*Q+2048>>12,Z=3406*Z-2276*Q+2048>>12,Q=z,z=799*H+4017*q+2048>>12,H=4017*H-799*q+2048>>12,q=z,z=te+Q,Q=te-Q,R=_e+q,X=_e-q,O=he+H,q=he-H,H=we+Z,Z=we-Z,z=16>z?0:4080<=z?255:z>>4,R=16>R?0:4080<=R?255:R>>4,O=16>O?0:4080<=O?255:O>>4,H=16>H?0:4080<=H?255:H>>4,Z=16>Z?0:4080<=Z?255:Z>>4,q=16>q?0:4080<=q?255:q>>4,X=16>X?0:4080<=X?255:X>>4,Q=16>Q?0:4080<=Q?255:Q>>4,E[C+_]=z,E[C+_+8]=R,E[C+_+16]=O,E[C+_+24]=H,E[C+_+32]=Z,E[C+_+40]=q,E[C+_+48]=X,E[C+_+56]=Q):(z=5793*z+8192>>14,z=-2040>z?0:2024<=z?255:z+2056>>4,E[C+_]=z,E[C+_+8]=z,E[C+_+16]=z,E[C+_+24]=z,E[C+_+32]=z,E[C+_+40]=z,E[C+_+48]=z,E[C+_+56]=z)}return x.a}function h(p,x){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:x,m=p.length-1;if(g=g<x?g:x,x>=m)return null;var y=p[x]<<8|p[x+1];if(65472<=y&&65534>=y)return{f:null,F:y,offset:x};for(var v=p[g]<<8|p[g+1];!(65472<=v&&65534>=v);){if(++g>=m)return null;v=p[g]<<8|p[g+1]}return{f:y.toString(16),F:v,offset:g}}var b=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);u.prototype={parse:function(p){function x(){var he=p[k]<<8|p[k+1];return k+=2,he}function g(){var he=x();he=k+he-2;var we=h(p,he,k);return we&&we.f&&((0,_util.warn)("readDataBlock - incorrect length, current marker is: "+we.f),he=we.offset),he=p.subarray(k,he),k+=he.length,he}function m(he){for(var we=Math.ceil(he.v/8/he.s),pe=Math.ceil(he.g/8/he.u),De=0;De<he.b.length;De++){te=he.b[De];var Ee=Math.ceil(Math.ceil(he.v/8)*te.h/he.s),Oe=Math.ceil(Math.ceil(he.g/8)*te.j/he.u);te.a=new Int16Array(64*pe*te.j*(we*te.h+1)),te.c=Ee,te.l=Oe}he.P=we,he.O=pe}var y=(1<arguments.length&&arguments[1]!==void 0?arguments[1]:{}).N,v=y===void 0?null:y,k=0,C=null,A=0;y=[];var _=[],E=[],M=x();if(M!==65496)throw new l("SOI not found");for(M=x();M!==65497;){switch(M){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var z=g();M===65518&&z[0]===65&&z[1]===100&&z[2]===111&&z[3]===98&&z[4]===101&&(C={version:z[5]<<8|z[6],Y:z[7]<<8|z[8],Z:z[9]<<8|z[10],W:z[11]});break;case 65499:M=x()+k-2;for(var R;k<M;){var O=p[k++],H=new Uint16Array(64);if(O>>4)if(O>>4===1)for(z=0;64>z;z++)R=b[z],H[R]=x();else throw new l("DQT - invalid table spec");else for(z=0;64>z;z++)R=b[z],H[R]=p[k++];y[O&15]=H}break;case 65472:case 65473:case 65474:if(Z)throw new l("Only single frame JPEGs supported");x();var Z={};for(Z.X=M===65473,Z.S=M===65474,Z.precision=p[k++],M=x(),Z.g=v||M,Z.v=x(),Z.b=[],Z.C={},z=p[k++],M=H=O=0;M<z;M++){R=p[k];var q=p[k+1]>>4,X=p[k+1]&15;O<q&&(O=q),H<X&&(H=X),q=Z.b.push({h:q,j:X,T:p[k+2],G:null}),Z.C[R]=q-1,k+=3}Z.s=O,Z.u=H,m(Z);break;case 65476:for(R=x(),M=2;M<R;){for(O=p[k++],H=new Uint8Array(16),z=q=0;16>z;z++,k++)q+=H[z]=p[k];for(X=new Uint8Array(q),z=0;z<q;z++,k++)X[z]=p[k];M+=17+q,(O>>4?_:E)[O&15]=c(H,X)}break;case 65501:x();var Q=x();break;case 65498:for(z=++A===1&&!v,x(),O=p[k++],R=[],M=0;M<O;M++){H=Z.C[p[k++]];var te=Z.b[H];H=p[k++],te.D=E[H>>4],te.o=_[H&15],R.push(te)}M=p[k++],O=p[k++],H=p[k++];try{var _e=f(p,k,Z,R,Q,M,O,H>>4,H&15,z);k+=_e}catch(he){if(he instanceof s)return(0,_util.warn)('Attempting to re-parse JPEG image using "scanLines" parameter found in DNL marker (0xFFDC) segment.'),this.parse(p,{N:he.g});throw he}break;case 65500:k+=4;break;case 65535:p[k]!==255&&k--;break;default:if(p[k-3]===255&&192<=p[k-2]&&254>=p[k-2])k-=3;else if((z=h(p,k-2))&&z.f)(0,_util.warn)("JpegImage.parse - unexpected data, current marker is: "+z.f),k=z.offset;else throw new l("unknown marker "+M.toString(16))}M=x()}for(this.width=Z.v,this.height=Z.g,this.A=C,this.b=[],M=0;M<Z.b.length;M++)te=Z.b[M],(Q=y[te.T])&&(te.G=Q),this.b.push({R:d(Z,te),U:te.h/Z.s,V:te.j/Z.u,c:te.c,l:te.l});this.i=this.b.length},L:function(p,x){var g=this.width/p,m=this.height/x,y,v,k=this.b.length,C=p*x*k,A=new Uint8ClampedArray(C),_=new Uint32Array(p);for(v=0;v<k;v++){var E=this.b[v],M=E.U*g,z=E.V*m,R=v,O=E.R,H=E.c+1<<3;for(y=0;y<p;y++)E=0|y*M,_[y]=(E&4294967288)<<3|E&7;for(M=0;M<x;M++)for(E=0|M*z,E=H*(E&4294967288)|(E&7)<<3,y=0;y<p;y++)A[R]=O[E+_[y]],R+=k}if(m=this.M)for(v=0;v<C;)for(g=E=0;E<k;E++,v++,g+=2)A[v]=(A[v]*m[g]>>8)+m[g+1];return A},w:function(){return this.A?!!this.A.W:this.i===3?this.B!==0:this.B===1},I:function(p){for(var x,g,m,y=0,v=p.length;y<v;y+=3)x=p[y],g=p[y+1],m=p[y+2],p[y]=x-179.456+1.402*m,p[y+1]=x+135.459-.344*g-.714*m,p[y+2]=x-226.816+1.772*g;return p},K:function(p){for(var x,g,m,y,v=0,k=0,C=p.length;k<C;k+=4)x=p[k],g=p[k+1],m=p[k+2],y=p[k+3],p[v++]=-122.67195406894+g*(-660635669420364e-19*g+.000437130475926232*m-54080610064599e-18*x+.00048449797120281*y-.154362151871126)+m*(-.000957964378445773*m+.000817076911346625*x-.00477271405408747*y+1.53380253221734)+x*(.000961250184130688*x-.00266257332283933*y+.48357088451265)+y*(-.000336197177618394*y+.484791561490776),p[v++]=107.268039397724+g*(219927104525741e-19*g-.000640992018297945*m+.000659397001245577*x+.000426105652938837*y-.176491792462875)+m*(-.000778269941513683*m+.00130872261408275*x+.000770482631801132*y-.151051492775562)+x*(.00126935368114843*x-.00265090189010898*y+.25802910206845)+y*(-.000318913117588328*y-.213742400323665),p[v++]=-20.810012546947+g*(-.000570115196973677*g-263409051004589e-19*m+.0020741088115012*x-.00288260236853442*y+.814272968359295)+m*(-153496057440975e-19*m-.000132689043961446*x+.000560833691242812*y-.195152027534049)+x*(.00174418132927582*x-.00255243321439347*y+.116935020465145)+y*(-.000343531996510555*y+.24165260232407);return p.subarray(0,v)},J:function(p){for(var x,g,m,y=0,v=p.length;y<v;y+=4)x=p[y],g=p[y+1],m=p[y+2],p[y]=434.456-x-1.402*m,p[y+1]=119.541-x+.344*g+.714*m,p[y+2]=481.816-x-1.772*g;return p},H:function(p){for(var x,g,m,y,v=0,k=1/255,C=0,A=p.length;C<A;C+=4)x=p[C]*k,g=p[C+1]*k,m=p[C+2]*k,y=p[C+3]*k,p[v++]=255+x*(-4.387332384609988*x+54.48615194189176*g+18.82290502165302*m+212.25662451639585*y-285.2331026137004)+g*(1.7149763477362134*g-5.6096736904047315*m-17.873870861415444*y-5.497006427196366)+m*(-2.5217340131683033*m-21.248923337353073*y+17.5119270841813)-y*(21.86122147463605*y+189.48180835922747),p[v++]=255+x*(8.841041422036149*x+60.118027045597366*g+6.871425592049007*m+31.159100130055922*y-79.2970844816548)+g*(-15.310361306967817*g+17.575251261109482*m+131.35250912493976*y-190.9453302588951)+m*(4.444339102852739*m+9.8632861493405*y-24.86741582555878)-y*(20.737325471181034*y+187.80453709719578),p[v++]=255+x*(.8842522430003296*x+8.078677503112928*g+30.89978309703729*m-.23883238689178934*y-14.183576799673286)+g*(10.49593273432072*g+63.02378494754052*m+50.606957656360734*y-112.23884253719248)+m*(.03296041114873217*m+115.60384449646641*y-193.58209356861505)-y*(22.33816807309886*y+180.12613974708367);return p.subarray(0,v)},getData:function(p,x,g){if(4<this.i)throw new l("Unsupported color mode");if(p=this.L(p,x),this.i===1&&g){g=p.length,x=new Uint8ClampedArray(3*g);for(var m=0,y=0;y<g;y++){var v=p[y];x[m++]=v,x[m++]=v,x[m++]=v}return x}if(this.i===3&&this.w())return this.I(p);if(this.i===4){if(this.w())return g?this.K(p):this.J(p);if(g)return this.H(p)}return p}},a.JpegDecoder=u})()})(),a.encodeImage=function(o,l,s,u){var c={t256:[l],t257:[s],t258:[8,8,8,8],t259:[1],t262:[2],t273:[1e3],t277:[4],t278:[s],t279:[l*s*4],t282:[1],t283:[1],t284:[1],t286:[0],t287:[0],t296:[1],t305:["Photopea (UTIF.js)"],t338:[1]};if(u)for(var f in u)c[f]=u[f];for(var d=new Uint8Array(a.encode([c])),h=new Uint8Array(o),b=new Uint8Array(1e3+l*s*4),f=0;f<d.length;f++)b[f]=d[f];for(var f=0;f<h.length;f++)b[1e3+f]=h[f];return b.buffer},a.encode=function(o){var l=new Uint8Array(2e4),s=4,u=a._binBE;l[0]=77,l[1]=77,l[3]=42;var c=8;u.writeUint(l,s,c),s+=4;for(var f=0;f<o.length;f++){var d=a._writeIFD(u,l,c,o[f]);c=d[1],f<o.length-1&&u.writeUint(l,d[0],c)}return l.slice(0,c).buffer},a.decode=function(o){a.decode._decodeG3.allow2D=null;var l=new Uint8Array(o),s=0,u=a._binBE.readASCII(l,s,2);s+=2;var c=u=="II"?a._binLE:a._binBE;c.readUshort(l,s),s+=2;var f=c.readUint(l,s);s+=4;for(var d=[];;){var h=a._readIFD(c,l,f,d,0,!1);if(f=c.readUint(l,h),f==0)break}return d},a.decodeImage=function(o,l,s){var u=new Uint8Array(o),c=a._binBE.readASCII(u,0,2);if(l.t256!=null){l.isLE=c=="II",l.width=l.t256[0],l.height=l.t257[0];var f=l.t259?l.t259[0]:1,d=l.t266?l.t266[0]:1;l.t284&&l.t284[0]==2&&n("PlanarConfiguration 2 should not be used!");var h;l.t258?h=Math.min(32,l.t258[0])*l.t258.length:h=l.t277?l.t277[0]:1,f==1&&l.t279!=null&&l.t278&&l.t262[0]==32803&&(h=Math.round(l.t279[0]*8/(l.width*l.t278[0])));var b=Math.ceil(l.width*h/8)*8,p=l.t273;p==null&&(p=l.t324);var x=l.t279;f==1&&p.length==1&&(x=[l.height*(b>>>3)]),x==null&&(x=l.t325);var g=new Uint8Array(l.height*(b>>>3)),m=0;if(l.t322!=null){for(var y=l.t322[0],v=l.t323[0],k=Math.floor((l.width+y-1)/y),C=Math.floor((l.height+v-1)/v),A=new Uint8Array(Math.ceil(y*v*h/8)|0),_=0;_<C;_++)for(var E=0;E<k;E++){for(var M=_*k+E,z=0;z<A.length;z++)A[z]=0;a.decode._decompress(l,s,u,p[M],x[M],f,A,0,d),f==6?g=A:a._copyTile(A,Math.ceil(y*h/8)|0,v,g,Math.ceil(l.width*h/8)|0,l.height,Math.ceil(E*y*h/8)|0,_*v)}m=g.length*8}else{var R=l.t278?l.t278[0]:l.height;R=Math.min(R,l.height);for(var M=0;M<p.length;M++)a.decode._decompress(l,s,u,p[M],x[M],f,g,Math.ceil(m/8)|0,d),m+=b*R;m=Math.min(m,g.length*8)}l.data=new Uint8Array(g.buffer,0,Math.ceil(m/8)|0)}},a.decode._decompress=function(o,l,s,u,c,f,d,h,b){if(f==1||c==d.length&&f!=32767)for(var p=0;p<c;p++)d[h+p]=s[u+p];else if(f==3)a.decode._decodeG3(s,u,c,d,h,o.width,b);else if(f==4)a.decode._decodeG4(s,u,c,d,h,o.width,b);else if(f==5)a.decode._decodeLZW(s,u,d,h);else if(f==6)a.decode._decodeOldJPEG(o,s,u,c,d,h);else if(f==7)a.decode._decodeNewJPEG(o,s,u,c,d,h);else if(f==8)for(var x=new Uint8Array(s.buffer,u,c),g=i.inflate(x),m=0;m<g.length;m++)d[h+m]=g[m];else f==32767?a.decode._decodeARW(o,s,u,c,d,h):f==32773?a.decode._decodePackBits(s,u,c,d,h):f==32809?a.decode._decodeThunder(s,u,c,d,h):f==34713?a.decode._decodeNikon(o,l,s,u,c,d,h):n("Unknown compression",f);var y=o.t258?Math.min(32,o.t258[0]):1,v=o.t277?o.t277[0]:1,k=y*v>>>3,C=o.t278?o.t278[0]:o.height,A=Math.ceil(y*v*o.width/8);if(y==16&&!o.isLE&&o.t33422==null)for(var _=0;_<C;_++)for(var E=h+_*A,M=1;M<A;M+=2){var z=d[E+M];d[E+M]=d[E+M-1],d[E+M-1]=z}if(o.t317&&o.t317[0]==2)for(var _=0;_<C;_++){var R=h+_*A;if(y==16)for(var p=k;p<A;p+=2){var O=(d[R+p+1]<<8|d[R+p])+(d[R+p-k+1]<<8|d[R+p-k]);d[R+p]=O&255,d[R+p+1]=O>>>8&255}else if(v==3)for(var p=3;p<A;p+=3)d[R+p]=d[R+p]+d[R+p-3]&255,d[R+p+1]=d[R+p+1]+d[R+p-2]&255,d[R+p+2]=d[R+p+2]+d[R+p-1]&255;else for(var p=k;p<A;p++)d[R+p]=d[R+p]+d[R+p-k]&255}},a.decode._ljpeg_diff=function(o,l,s){var u=a.decode._getbithuff,c,f;return c=u(o,l,s[0],s),f=u(o,l,c,0),f&1<<c-1||(f-=(1<<c)-1),f},a.decode._decodeARW=function(o,l,s,u,c,f){var d=o.t256[0],h=o.t257[0],b=o.t258[0],p=o.isLE?a._binLE:a._binBE,x=d*h==u||d*h*1.5==u;if(!x){h+=8;var g=[s,0,0,0],m=new Uint16Array(32770),y=[3857,3856,3599,3342,3085,2828,2571,2314,2057,1800,1543,1286,1029,772,771,768,514,513],pe,v,k,Z,H,C=0,A=a.decode._ljpeg_diff;for(m[0]=15,k=pe=0;pe<18;pe++)for(var _=32768>>>(y[pe]>>>8),v=0;v<_;v++)m[++k]=y[pe];for(Z=d;Z--;)for(H=0;H<h+1;H+=2)if(H==h&&(H=1),C+=A(l,g,m),H<h){var E=C&4095;a.decode._putsF(c,(H*d+Z)*b,E<<16-b)}return}if(d*h*1.5==u){for(var pe=0;pe<u;pe+=3){var M=l[s+pe+0],z=l[s+pe+1],R=l[s+pe+2];c[f+pe]=z<<4|M>>>4,c[f+pe+1]=M<<4|R>>>4,c[f+pe+2]=R<<4|z>>>4}return}var O=new Uint16Array(16),H,Z,q,X,Q,te,_e,he,we,pe,De,Ee=new Uint8Array(d+1);for(H=0;H<h;H++){for(var Oe=0;Oe<d;Oe++)Ee[Oe]=l[s++];for(De=0,Z=0;Z<d-30;De+=16){for(X=2047&(q=p.readUint(Ee,De)),Q=2047&q>>>11,te=15&q>>>22,_e=15&q>>>26,he=0;he<4&&128<<he<=X-Q;he++);for(we=30,pe=0;pe<16;pe++)pe==te?O[pe]=X:pe==_e?O[pe]=Q:(O[pe]=((p.readUshort(Ee,De+(we>>3))>>>(we&7)&127)<<he)+Q,O[pe]>2047&&(O[pe]=2047),we+=7);for(pe=0;pe<16;pe++,Z+=2){var E=O[pe]<<1;a.decode._putsF(c,(H*d+Z)*b,E<<16-b)}Z-=Z&1?1:31}}},a.decode._decodeNikon=function(o,l,s,u,c,f,d){var h=[[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,5,4,3,6,2,7,1,0,8,9,11,10,12],[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,57,90,56,39,22,5,4,3,2,1,0,11,12,12],[0,0,1,4,2,3,1,2,0,0,0,0,0,0,0,0,0,5,4,6,3,7,2,8,1,9,0,10,11,12],[0,0,1,4,3,1,1,1,1,1,2,0,0,0,0,0,0,5,6,4,7,8,3,9,2,1,0,10,11,12,13,14],[0,0,1,5,1,1,1,1,1,1,1,2,0,0,0,0,0,8,92,75,58,41,7,6,5,4,3,2,1,0,13,14],[0,0,1,4,2,2,3,1,2,0,0,0,0,0,0,0,0,7,6,8,5,9,4,10,3,11,12,2,0,1,13,14]],b=o.t256[0],p=o.t257[0],x=o.t258[0],g=0,m=0,y=a.decode._make_decoder,v=a.decode._getbithuff,k=l[0].exifIFD.makerNote,C=k.t150?k.t150:k.t140,A=0,_=C[A++],E=C[A++];(_==73||E==88)&&(A+=2110),_==70&&(g=2),x==14&&(g+=3);for(var M=[[0,0],[0,0]],z=o.isLE?a._binLE:a._binBE,q=0;q<2;q++)for(var R=0;R<2;R++)M[q][R]=z.readShort(C,A),A+=2;var O=1<<x&32767,H=0,Z=z.readShort(C,A);A+=2,Z>1&&(H=Math.floor(O/(Z-1))),_==68&&E==32&&H>0&&(m=z.readShort(C,562));var q,X,Q,te,_e,he,we=[0,0],pe=y(h[g]),De=[u,0,0,0];for(X=0;X<p;X++)for(m&&X==m&&(pe=y(h[g+1])),Q=0;Q<b;Q++){q=v(s,De,pe[0],pe),te=q&15,_e=q>>>4,he=(v(s,De,te-_e,0)<<1)+1<<_e>>>1,he&1<<te-1||(he-=(1<<te)-(_e==0?1:0)),Q<2?we[Q]=M[X&1][Q]+=he:we[Q&1]+=he;var Ee=Math.min(Math.max(we[Q&1],0),(1<<x)-1),Oe=(X*b+Q)*x;a.decode._putsF(f,Oe,Ee<<16-x)}},a.decode._putsF=function(o,l,s){s=s<<8-(l&7);var u=l>>>3;o[u]|=s>>>16,o[u+1]|=s>>>8,o[u+2]|=s},a.decode._getbithuff=function(o,l,s,u){var c=0;a.decode._get_byte;var f,d=l[0],h=l[1],b=l[2],p=l[3];if(s==0||b<0)return 0;for(;!p&&b<s&&(f=o[d++])!=-1&&!(p=c);)h=(h<<8)+f,b+=8;if(f=h<<32-b>>>32-s,u?(b-=u[f+1]>>>8,f=u[f+1]&255):b-=s,b<0)throw"e";return l[0]=d,l[1]=h,l[2]=b,l[3]=p,f},a.decode._make_decoder=function(o){var l,s,u,c,f,d=[];for(l=16;l!=0&&!o[l];l--);var h=17;for(d[0]=l,u=s=1;s<=l;s++)for(c=0;c<o[s];c++,++h)for(f=0;f<1<<l-s;f++)u<=1<<l&&(d[u++]=s<<8|o[h]);return d},a.decode._decodeNewJPEG=function(o,l,s,u,c,f){var d=o.t347,h=d?d.length:0,b=new Uint8Array(h+u);if(d){for(var p=216,x=217,g=0,m=0;m<h-1&&!(d[m]==255&&d[m+1]==x);m++)b[g++]=d[m];var y=l[s],v=l[s+1];(y!=255||v!=p)&&(b[g++]=y,b[g++]=v);for(var m=2;m<u;m++)b[g++]=l[s+m]}else for(var m=0;m<u;m++)b[m]=l[s+m];if(o.t262[0]==32803||o.t262[0]==34892){var k=o.t258[0],C=a.LosslessJpegDecode(b),A=C.length;if(k==16)if(o.isLE)for(var m=0;m<A;m++)c[f+(m<<1)]=C[m]&255,c[f+(m<<1)+1]=C[m]>>>8;else for(var m=0;m<A;m++)c[f+(m<<1)]=C[m]>>>8,c[f+(m<<1)+1]=C[m]&255;else if(k==14||k==12)for(var _=16-k,m=0;m<A;m++)a.decode._putsF(c,m*k,C[m]<<_);else throw new Error("unsupported bit depth "+k)}else{var E=new a.JpegDecoder;E.parse(b);for(var M=E.getData(E.width,E.height),m=0;m<M.length;m++)c[f+m]=M[m]}o.t262[0]==6&&(o.t262[0]=2)},a.decode._decodeOldJPEGInit=function(o,l,s,u){var c=216,f=219,d=196,h=221,b=192,p=218,x=0,g=0,m,y,v=!1,k,C,A,_=o.t513,E=_?_[0]:0,M=o.t514,z=M?M[0]:0,R=o.t324||o.t273||_,O=o.t530,H=0,Z=0,q=o.t277?o.t277[0]:1,X=o.t515;if(R&&(g=R[0],v=R.length>1),!v){if(l[s]==255&&l[s+1]==c)return{jpegOffset:s};if(_!=null&&(l[s+E]==255&&l[s+E+1]==c?x=s+E:n("JPEGInterchangeFormat does not point to SOI"),M==null?n("JPEGInterchangeFormatLength field is missing"):(E>=g||E+z<=g)&&n("JPEGInterchangeFormatLength field value is invalid"),x!=null))return{jpegOffset:x}}if(O!=null&&(H=O[0],Z=O[1]),_!=null&&M!=null)if(z>=2&&E+z<=g){for(l[s+E+z-2]==255&&l[s+E+z-1]==c?m=new Uint8Array(z-2):m=new Uint8Array(z),k=0;k<m.length;k++)m[k]=l[s+E+k];n("Incorrect JPEG interchange format: using JPEGInterchangeFormat offset to derive tables")}else n("JPEGInterchangeFormat+JPEGInterchangeFormatLength > offset to first strip or tile");if(m==null){var Q=0,te=[];te[Q++]=255,te[Q++]=c;var _e=o.t519;if(_e==null)throw new Error("JPEGQTables tag is missing");for(k=0;k<_e.length;k++)for(te[Q++]=255,te[Q++]=f,te[Q++]=0,te[Q++]=67,te[Q++]=k,C=0;C<64;C++)te[Q++]=l[s+_e[k]+C];for(A=0;A<2;A++){var he=o[A==0?"t520":"t521"];if(he==null)throw new Error((A==0?"JPEGDCTables":"JPEGACTables")+" tag is missing");for(k=0;k<he.length;k++){te[Q++]=255,te[Q++]=d;var we=19;for(C=0;C<16;C++)we+=l[s+he[k]+C];for(te[Q++]=we>>>8,te[Q++]=we&255,te[Q++]=k|A<<4,C=0;C<16;C++)te[Q++]=l[s+he[k]+C];for(C=0;C<we;C++)te[Q++]=l[s+he[k]+16+C]}}if(te[Q++]=255,te[Q++]=b,te[Q++]=0,te[Q++]=8+3*q,te[Q++]=8,te[Q++]=o.height>>>8&255,te[Q++]=o.height&255,te[Q++]=o.width>>>8&255,te[Q++]=o.width&255,te[Q++]=q,q==1)te[Q++]=1,te[Q++]=17,te[Q++]=0;else for(k=0;k<3;k++)te[Q++]=k+1,te[Q++]=k!=0?17:(H&15)<<4|Z&15,te[Q++]=k;X!=null&&X[0]!=0&&(te[Q++]=255,te[Q++]=h,te[Q++]=0,te[Q++]=4,te[Q++]=X[0]>>>8&255,te[Q++]=X[0]&255),m=new Uint8Array(te)}var pe=-1;for(k=0;k<m.length-1;){if(m[k]==255&&m[k+1]==b){pe=k;break}k++}if(pe==-1){var De=new Uint8Array(m.length+10+3*q);De.set(m);var Ee=m.length;if(pe=m.length,m=De,m[Ee++]=255,m[Ee++]=b,m[Ee++]=0,m[Ee++]=8+3*q,m[Ee++]=8,m[Ee++]=o.height>>>8&255,m[Ee++]=o.height&255,m[Ee++]=o.width>>>8&255,m[Ee++]=o.width&255,m[Ee++]=q,q==1)m[Ee++]=1,m[Ee++]=17,m[Ee++]=0;else for(k=0;k<3;k++)m[Ee++]=k+1,m[Ee++]=k!=0?17:(H&15)<<4|Z&15,m[Ee++]=k}if(l[g]==255&&l[g+1]==p){var Oe=l[g+2]<<8|l[g+3];for(y=new Uint8Array(Oe+2),y[0]=l[g],y[1]=l[g+1],y[2]=l[g+2],y[3]=l[g+3],k=0;k<Oe-2;k++)y[k+4]=l[g+k+4]}else{y=new Uint8Array(8+2*q);var Pe=0;if(y[Pe++]=255,y[Pe++]=p,y[Pe++]=0,y[Pe++]=6+2*q,y[Pe++]=q,q==1)y[Pe++]=1,y[Pe++]=0;else for(k=0;k<3;k++)y[Pe++]=k+1,y[Pe++]=k<<4|k;y[Pe++]=0,y[Pe++]=63,y[Pe++]=0}return{jpegOffset:s,tables:m,sosMarker:y,sofPosition:pe}},a.decode._decodeOldJPEG=function(o,l,s,u,c,f){var d,h,b,p,x,g=a.decode._decodeOldJPEGInit(o,l,s,u);if(g.jpegOffset!=null)for(h=s+u-g.jpegOffset,p=new Uint8Array(h),d=0;d<h;d++)p[d]=l[g.jpegOffset+d];else{for(b=g.tables.length,p=new Uint8Array(b+g.sosMarker.length+u+2),p.set(g.tables),x=b,p[g.sofPosition+5]=o.height>>>8&255,p[g.sofPosition+6]=o.height&255,p[g.sofPosition+7]=o.width>>>8&255,p[g.sofPosition+8]=o.width&255,(l[s]!=255||l[s+1]!=SOS)&&(p.set(g.sosMarker,x),x+=sosMarker.length),d=0;d<u;d++)p[x++]=l[s+d];p[x++]=255,p[x++]=EOI}var m=new a.JpegDecoder;m.parse(p);for(var y=m.getData(m.width,m.height),d=0;d<y.length;d++)c[f+d]=y[d];o.t262&&o.t262[0]==6&&(o.t262[0]=2)},a.decode._decodePackBits=function(o,l,s,u,c){for(var f=new Int8Array(o.buffer),d=new Int8Array(u.buffer),h=l+s;l<h;){var b=f[l];if(l++,b>=0&&b<128)for(var p=0;p<b+1;p++)d[c]=f[l],c++,l++;if(b>=-127&&b<0){for(var p=0;p<-b+1;p++)d[c]=f[l],c++;l++}}},a.decode._decodeThunder=function(o,l,s,u,c){for(var f=[0,1,0,-1],d=[0,1,2,3,0,-3,-2,-1],h=l+s,b=c*2,p=0;l<h;){var x=o[l],g=x>>>6,m=x&63;if(l++,g==3&&(p=m&15,u[b>>>1]|=p<<4*(1-b&1),b++),g==0)for(var y=0;y<m;y++)u[b>>>1]|=p<<4*(1-b&1),b++;if(g==2)for(var y=0;y<2;y++){var v=m>>>3*(1-y)&7;v!=4&&(p+=d[v],u[b>>>1]|=p<<4*(1-b&1),b++)}if(g==1)for(var y=0;y<3;y++){var v=m>>>2*(2-y)&3;v!=2&&(p+=f[v],u[b>>>1]|=p<<4*(1-b&1),b++)}}},a.decode._dmap={1:0,"011":1,"000011":2,"0000011":3,"010":-1,"000010":-2,"0000010":-3},a.decode._lens=function(){var o=function(b,p,x,g){for(var m=0;m<p.length;m++)b[p[m]]=x+m*g},l="00110101,000111,0111,1000,1011,1100,1110,1111,10011,10100,00111,01000,001000,000011,110100,110101,101010,101011,0100111,0001100,0001000,0010111,0000011,0000100,0101000,0101011,0010011,0100100,0011000,00000010,00000011,00011010,00011011,00010010,00010011,00010100,00010101,00010110,00010111,00101000,00101001,00101010,00101011,00101100,00101101,00000100,00000101,00001010,00001011,01010010,01010011,01010100,01010101,00100100,00100101,01011000,01011001,01011010,01011011,01001010,01001011,00110010,00110011,00110100",s="0000110111,010,11,10,011,0011,0010,00011,000101,000100,0000100,0000101,0000111,00000100,00000111,000011000,0000010111,0000011000,0000001000,00001100111,00001101000,00001101100,00000110111,00000101000,00000010111,00000011000,000011001010,000011001011,000011001100,000011001101,000001101000,000001101001,000001101010,000001101011,000011010010,000011010011,000011010100,000011010101,000011010110,000011010111,000001101100,000001101101,000011011010,000011011011,000001010100,000001010101,000001010110,000001010111,000001100100,000001100101,000001010010,000001010011,000000100100,000000110111,000000111000,000000100111,000000101000,000001011000,000001011001,000000101011,000000101100,000001011010,000001100110,000001100111",u="11011,10010,010111,0110111,00110110,00110111,01100100,01100101,01101000,01100111,011001100,011001101,011010010,011010011,011010100,011010101,011010110,011010111,011011000,011011001,011011010,011011011,010011000,010011001,010011010,011000,010011011",c="0000001111,000011001000,000011001001,000001011011,000000110011,000000110100,000000110101,0000001101100,0000001101101,0000001001010,0000001001011,0000001001100,0000001001101,0000001110010,0000001110011,0000001110100,0000001110101,0000001110110,0000001110111,0000001010010,0000001010011,0000001010100,0000001010101,0000001011010,0000001011011,0000001100100,0000001100101",f="00000001000,00000001100,00000001101,000000010010,000000010011,000000010100,000000010101,000000010110,000000010111,000000011100,000000011101,000000011110,000000011111";l=l.split(","),s=s.split(","),u=u.split(","),c=c.split(","),f=f.split(",");var d={},h={};return o(d,l,0,1),o(d,u,64,64),o(d,f,1792,64),o(h,s,0,1),o(h,c,64,64),o(h,f,1792,64),[d,h]}(),a.decode._decodeG4=function(o,l,s,u,c,f,d){for(var h=a.decode,b=l<<3,p=0,x="",g=[],m=[],y=0;y<f;y++)m.push(0);m=h._makeDiff(m);for(var v=0,k=0,C=0,A=0,_=0,E=0,M="",z=0,R=Math.ceil(f/8)*8;b>>>3<l+s;){C=h._findDiff(m,v+(v==0?0:1),1-_),A=h._findDiff(m,C,_);var O=0;if(d==1&&(O=o[b>>>3]>>>7-(b&7)&1),d==2&&(O=o[b>>>3]>>>(b&7)&1),b++,x+=O,M=="H"){if(h._lens[_][x]!=null){var H=h._lens[_][x];x="",p+=H,H<64&&(h._addNtimes(g,p,_),v+=p,_=1-_,p=0,z--,z==0&&(M=""))}}else x=="0001"&&(x="",h._addNtimes(g,A-v,_),v=A),x=="001"&&(x="",M="H",z=2),h._dmap[x]!=null&&(k=C+h._dmap[x],h._addNtimes(g,k-v,_),v=k,x="",_=1-_);g.length==f&&M==""&&(h._writeBits(g,u,c*8+E*R),_=0,E++,v=0,m=h._makeDiff(g),g=[])}},a.decode._findDiff=function(o,l,s){for(var u=0;u<o.length;u+=2)if(o[u]>=l&&o[u+1]==s)return o[u]},a.decode._makeDiff=function(o){var l=[];o[0]==1&&l.push(0,1);for(var s=1;s<o.length;s++)o[s-1]!=o[s]&&l.push(s,o[s]);return l.push(o.length,0,o.length,1),l},a.decode._decodeG3=function(o,l,s,u,c,f,d){for(var h=a.decode,b=l<<3,p=0,x="",g=[],m=[],y=0;y<f;y++)g.push(0);for(var v=0,k=0,C=0,A=0,_=0,E=-1,M="",z=0,R=!1,O=Math.ceil(f/8)*8;b>>>3<l+s;){C=h._findDiff(m,v+(v==0?0:1),1-_),A=h._findDiff(m,C,_);var H=0;if(d==1&&(H=o[b>>>3]>>>7-(b&7)&1),d==2&&(H=o[b>>>3]>>>(b&7)&1),b++,x+=H,R){if(h._lens[_][x]!=null){var Z=h._lens[_][x];x="",p+=Z,Z<64&&(h._addNtimes(g,p,_),_=1-_,p=0)}}else if(M=="H"){if(h._lens[_][x]!=null){var Z=h._lens[_][x];x="",p+=Z,Z<64&&(h._addNtimes(g,p,_),v+=p,_=1-_,p=0,z--,z==0&&(M=""))}}else x=="0001"&&(x="",h._addNtimes(g,A-v,_),v=A),x=="001"&&(x="",M="H",z=2),h._dmap[x]!=null&&(k=C+h._dmap[x],h._addNtimes(g,k-v,_),v=k,x="",_=1-_);x.endsWith("000000000001")&&(E>=0&&h._writeBits(g,u,c*8+E*O),d==1&&(R=(o[b>>>3]>>>7-(b&7)&1)==1),d==2&&(R=(o[b>>>3]>>>(b&7)&1)==1),b++,h._decodeG3.allow2D==null&&(h._decodeG3.allow2D=R),h._decodeG3.allow2D||(R=!0,b--),x="",_=0,E++,v=0,m=h._makeDiff(g),g=[])}g.length==f&&h._writeBits(g,u,c*8+E*O)},a.decode._addNtimes=function(o,l,s){for(var u=0;u<l;u++)o.push(s)},a.decode._writeBits=function(o,l,s){for(var u=0;u<o.length;u++)l[s+u>>>3]|=o[u]<<7-(s+u&7)},a.decode._decodeLZW=function(o,l,s,u){if(a.decode._lzwTab==null){for(var c=new Uint32Array(65535),f=new Uint16Array(65535),x=new Uint8Array(2e6),d=0;d<256;d++)x[d<<2]=d,c[d]=d<<2,f[d]=1;a.decode._lzwTab=[c,f,x]}for(var h=a.decode._copyData,b=a.decode._lzwTab[0],p=a.decode._lzwTab[1],x=a.decode._lzwTab[2],g=258,m=1032,y=9,v=l<<3,k=256,C=257,A=0,_=0,E=0;A=o[v>>>3]<<16|o[v+8>>>3]<<8|o[v+16>>>3],_=A>>24-(v&7)-y&(1<<y)-1,v+=y,_!=C;){if(_==k){if(y=9,g=258,m=1032,A=o[v>>>3]<<16|o[v+8>>>3]<<8|o[v+16>>>3],_=A>>24-(v&7)-y&(1<<y)-1,v+=y,_==C)break;s[u]=_,u++}else if(_<g){var M=b[_],z=p[_];if(h(x,M,s,u,z),u+=z,E>=g)b[g]=m,x[b[g]]=M[0],p[g]=1,m=m+1+3&-4,g++;else{b[g]=m;var R=b[E],O=p[E];h(x,R,x,m,O),x[m+O]=x[M],O++,p[g]=O,g++,m=m+O+3&-4}g+1==1<<y&&y++}else{if(E>=g)b[g]=m,p[g]=0,g++;else{b[g]=m;var R=b[E],O=p[E];h(x,R,x,m,O),x[m+O]=x[m],O++,p[g]=O,g++,h(x,m,s,u,O),u+=O,m=m+O+3&-4}g+1==1<<y&&y++}E=_}},a.decode._copyData=function(o,l,s,u,c){for(var f=0;f<c;f+=4)s[u+f]=o[l+f],s[u+f+1]=o[l+f+1],s[u+f+2]=o[l+f+2],s[u+f+3]=o[l+f+3]},a.tags={},a.ttypes={256:3,257:3,258:3,259:3,262:3,273:4,274:3,277:3,278:4,279:4,282:5,283:5,284:3,286:5,287:5,296:3,305:2,306:2,338:3,513:4,514:4,34665:4},a._readIFD=function(o,l,s,u,c,f){var d=o.readUshort(l,s);s+=2;var h={};u.push(h),f&&n(" ".repeat(c),u.length-1,">>>----------------");for(var b=0;b<d;b++){var p=o.readUshort(l,s);s+=2;var x=o.readUshort(l,s);s+=2;var g=o.readUint(l,s);s+=4;var m=o.readUint(l,s);s+=4;var y=[];if((x==1||x==7)&&(y=new Uint8Array(l.buffer,g<5?s-4:m,g)),x==2){var v=g<5?s-4:m,k=l[v];k<128?y.push(o.readASCII(l,v,g-1)):y=new Uint8Array(l.buffer,v,g-1)}if(x==3)for(var C=0;C<g;C++)y.push(o.readUshort(l,(g<3?s-4:m)+2*C));if(x==4)for(var C=0;C<g;C++)y.push(o.readUint(l,(g<2?s-4:m)+4*C));if(x==5)for(var C=0;C<g;C++)y.push(o.readUint(l,m+C*8)/o.readUint(l,m+C*8+4));if(x==8)for(var C=0;C<g;C++)y.push(o.readShort(l,(g<3?s-4:m)+2*C));if(x==9)for(var C=0;C<g;C++)y.push(o.readInt(l,(g<2?s-4:m)+4*C));if(x==10)for(var C=0;C<g;C++)y.push(o.readInt(l,m+C*8)/o.readInt(l,m+C*8+4));if(x==11)for(var C=0;C<g;C++)y.push(o.readFloat(l,m+C*4));if(x==12)for(var C=0;C<g;C++)y.push(o.readDouble(l,m+C*8));if(h["t"+p]=y,g!=0&&y.length==0&&n("unknown TIFF tag type: ",x,"num:",g),f&&n(" ".repeat(c),p,x,a.tags[p],y),!(p==330&&h.t272&&h.t272[0]=="DSLR-A100")){if(p==330||p==34665||p==50740&&o.readUshort(l,o.readUint(y,0))<300){for(var A=p==50740?[o.readUint(y,0)]:y,_=[],C=0;C<A.length;C++)a._readIFD(o,l,A[C],_,c+1,f);p==330&&(h.subIFD=_),p==34665&&(h.exifIFD=_[0]),p==50740&&(h.dngPrvt=_[0])}}if(p==37500){var E=y;if(o.readASCII(E,0,5)=="Nikon")h.makerNote=a.decode(E.slice(10).buffer)[0];else if(o.readUshort(l,m)<300){var M=[];a._readIFD(o,l,m,M,c+1,f),h.makerNote=M[0]}}}return f&&n(" ".repeat(c),"<<<---------------"),s},a._writeIFD=function(o,l,s,u){var c=Object.keys(u);o.writeUshort(l,s,c.length),s+=2;for(var f=s+c.length*12+4,d=0;d<c.length;d++){var h=c[d],b=parseInt(h.slice(1)),p=a.ttypes[b];if(p==null)throw new Error("unknown type of tag: "+b);var x=u[h];p==2&&(x=x[0]+"\0");var g=x.length;o.writeUshort(l,s,b),s+=2,o.writeUshort(l,s,p),s+=2,o.writeUint(l,s,g),s+=4;var m=[-1,1,1,2,4,8,0,0,0,0,0,0,8][p]*g,y=s;if(m>4&&(o.writeUint(l,s,f),y=f),p==2&&o.writeASCII(l,y,x),p==3)for(var v=0;v<g;v++)o.writeUshort(l,y+2*v,x[v]);if(p==4)for(var v=0;v<g;v++)o.writeUint(l,y+4*v,x[v]);if(p==5)for(var v=0;v<g;v++)o.writeUint(l,y+8*v,Math.round(x[v]*1e4)),o.writeUint(l,y+8*v+4,1e4);if(p==12)for(var v=0;v<g;v++)o.writeDouble(l,y+8*v,x[v]);m>4&&(m+=m&1,f+=m),s+=4}return[s,f]},a.toRGBA8=function(o){var l=o.width,s=o.height,u=l*s,c=u*4,f=o.data,d=new Uint8Array(u*4),h=o.t262?o.t262[0]:2,b=o.t258?Math.min(32,o.t258[0]):1;if(h==0)for(var p=Math.ceil(b*l/8),x=0;x<s;x++){var g=x*p,m=x*l;if(b==1)for(var y=0;y<l;y++){var v=m+y<<2,k=f[g+(y>>3)]>>7-(y&7)&1;d[v]=d[v+1]=d[v+2]=(1-k)*255,d[v+3]=255}if(b==4)for(var y=0;y<l;y++){var v=m+y<<2,k=f[g+(y>>1)]>>4-4*(y&1)&15;d[v]=d[v+1]=d[v+2]=(15-k)*17,d[v+3]=255}if(b==8)for(var y=0;y<l;y++){var v=m+y<<2,k=f[g+y];d[v]=d[v+1]=d[v+2]=255-k,d[v+3]=255}}else if(h==1)for(var p=Math.ceil(b*l/8),x=0;x<s;x++){var g=x*p,m=x*l;if(b==1)for(var y=0;y<l;y++){var v=m+y<<2,k=f[g+(y>>3)]>>7-(y&7)&1;d[v]=d[v+1]=d[v+2]=k*255,d[v+3]=255}if(b==2)for(var y=0;y<l;y++){var v=m+y<<2,k=f[g+(y>>2)]>>6-2*(y&3)&3;d[v]=d[v+1]=d[v+2]=k*85,d[v+3]=255}if(b==8)for(var y=0;y<l;y++){var v=m+y<<2,k=f[g+y];d[v]=d[v+1]=d[v+2]=k,d[v+3]=255}if(b==16)for(var y=0;y<l;y++){var v=m+y<<2,k=f[g+(2*y+1)];d[v]=d[v+1]=d[v+2]=Math.min(255,k),d[v+3]=255}}else if(h==2){var C=o.t258?o.t258.length:3;if(b==8){if(C==4)for(var y=0;y<c;y++)d[y]=f[y];if(C==3)for(var y=0;y<u;y++){var v=y<<2,A=y*3;d[v]=f[A],d[v+1]=f[A+1],d[v+2]=f[A+2],d[v+3]=255}}else{if(C==4)for(var y=0;y<u;y++){var v=y<<2,A=y*8+1;d[v]=f[A],d[v+1]=f[A+2],d[v+2]=f[A+4],d[v+3]=f[A+6]}if(C==3)for(var y=0;y<u;y++){var v=y<<2,A=y*6+1;d[v]=f[A],d[v+1]=f[A+2],d[v+2]=f[A+4],d[v+3]=255}}}else if(h==3)for(var _=o.t320,y=0;y<u;y++){var v=y<<2,E=f[y];d[v]=_[E]>>8,d[v+1]=_[256+E]>>8,d[v+2]=_[512+E]>>8,d[v+3]=255}else if(h==5)for(var C=o.t258?o.t258.length:4,M=C>4?1:0,y=0;y<u;y++){var v=y<<2,z=y*C,R=255-f[z],O=255-f[z+1],H=255-f[z+2],Z=(255-f[z+3])*(1/255);d[v]=~~(R*Z+.5),d[v+1]=~~(O*Z+.5),d[v+2]=~~(H*Z+.5),d[v+3]=255*(1-M)+f[z+4]*M}else n("Unknown Photometric interpretation: "+h);return d},a.replaceIMG=function(o){o==null&&(o=document.getElementsByTagName("img"));for(var l=["tif","tiff","dng","cr2","nef"],s=0;s<o.length;s++){var u=o[s],c=u.getAttribute("src");if(c!=null){var f=c.split(".").pop().toLowerCase();if(l.indexOf(f)!=-1){var d=new XMLHttpRequest;a._xhrs.push(d),a._imgs.push(u),d.open("GET",c),d.responseType="arraybuffer",d.onload=a._imgLoaded,d.send()}}}},a._xhrs=[],a._imgs=[],a._imgLoaded=function(o){var l=o.target.response,s=a.decode(l),u=s,c=0,f=u[0];s[0].subIFD&&(u=u.concat(s[0].subIFD));for(var d=0;d<u.length;d++){var m=u[d];if(!(m.t258==null||m.t258.length<3)){var h=m.t256*m.t257;h>c&&(c=h,f=m)}}a.decodeImage(l,f,s);var b=a.toRGBA8(f),p=f.width,x=f.height,g=a._xhrs.indexOf(o.target),m=a._imgs[g];a._xhrs.splice(g,1),a._imgs.splice(g,1);var y=document.createElement("canvas");y.width=p,y.height=x;for(var v=y.getContext("2d"),k=v.createImageData(p,x),d=0;d<b.length;d++)k.data[d]=b[d];v.putImageData(k,0,0),m.setAttribute("src",y.toDataURL())},a._binBE={nextZero:function(o,l){for(;o[l]!=0;)l++;return l},readUshort:function(o,l){return o[l]<<8|o[l+1]},readShort:function(o,l){var s=a._binBE.ui8;return s[0]=o[l+1],s[1]=o[l+0],a._binBE.i16[0]},readInt:function(o,l){var s=a._binBE.ui8;return s[0]=o[l+3],s[1]=o[l+2],s[2]=o[l+1],s[3]=o[l+0],a._binBE.i32[0]},readUint:function(o,l){var s=a._binBE.ui8;return s[0]=o[l+3],s[1]=o[l+2],s[2]=o[l+1],s[3]=o[l+0],a._binBE.ui32[0]},readASCII:function(o,l,s){for(var u="",c=0;c<s;c++)u+=String.fromCharCode(o[l+c]);return u},readFloat:function(o,l){for(var s=a._binBE.ui8,u=0;u<4;u++)s[u]=o[l+3-u];return a._binBE.fl32[0]},readDouble:function(o,l){for(var s=a._binBE.ui8,u=0;u<8;u++)s[u]=o[l+7-u];return a._binBE.fl64[0]},writeUshort:function(o,l,s){o[l]=s>>8&255,o[l+1]=s&255},writeUint:function(o,l,s){o[l]=s>>24&255,o[l+1]=s>>16&255,o[l+2]=s>>8&255,o[l+3]=s>>0&255},writeASCII:function(o,l,s){for(var u=0;u<s.length;u++)o[l+u]=s.charCodeAt(u)},writeDouble:function(o,l,s){a._binBE.fl64[0]=s;for(var u=0;u<8;u++)o[l+u]=a._binBE.ui8[7-u]}},a._binBE.ui8=new Uint8Array(8),a._binBE.i16=new Int16Array(a._binBE.ui8.buffer),a._binBE.i32=new Int32Array(a._binBE.ui8.buffer),a._binBE.ui32=new Uint32Array(a._binBE.ui8.buffer),a._binBE.fl32=new Float32Array(a._binBE.ui8.buffer),a._binBE.fl64=new Float64Array(a._binBE.ui8.buffer),a._binLE={nextZero:a._binBE.nextZero,readUshort:function(o,l){return o[l+1]<<8|o[l]},readShort:function(o,l){var s=a._binBE.ui8;return s[0]=o[l+0],s[1]=o[l+1],a._binBE.i16[0]},readInt:function(o,l){var s=a._binBE.ui8;return s[0]=o[l+0],s[1]=o[l+1],s[2]=o[l+2],s[3]=o[l+3],a._binBE.i32[0]},readUint:function(o,l){var s=a._binBE.ui8;return s[0]=o[l+0],s[1]=o[l+1],s[2]=o[l+2],s[3]=o[l+3],a._binBE.ui32[0]},readASCII:a._binBE.readASCII,readFloat:function(o,l){for(var s=a._binBE.ui8,u=0;u<4;u++)s[u]=o[l+u];return a._binBE.fl32[0]},readDouble:function(o,l){for(var s=a._binBE.ui8,u=0;u<8;u++)s[u]=o[l+u];return a._binBE.fl64[0]}},a._copyTile=function(o,l,s,u,c,f,d,h){for(var b=Math.min(l,c-d),p=Math.min(s,f-h),x=0;x<p;x++)for(var g=(h+x)*c+d,m=x*l,y=0;y<b;y++)u[g+y]=o[m+y]},a.LosslessJpegDecode=function(){function o(c){this.w=c,this.N=0,this._=0,this.G=0}o.prototype={t:function(c){this.N=Math.max(0,Math.min(this.w.length,c))},i:function(){return this.w[this.N++]},l:function(){var c=this.N;return this.N+=2,this.w[c]<<8|this.w[c+1]},J:function(){return this._==0&&(this.G=this.w[this.N],this.N+=1+(this.G+1>>>8),this._=8),this.G>>>--this._&1},Z:function(c){var f=this._,d=this.G,h=Math.min(f,c);c-=h,f-=h;for(var b=d>>>f&(1<<h)-1;c>0;)d=this.w[this.N],this.N+=1+(d+1>>>8),h=Math.min(8,c),c-=h,f=8-h,b<<=h,b|=d>>>f&(1<<h)-1;return this._=f,this.G=d,b}};var l={};l.X=function(){return[0,0,-1]},l.s=function(c,f,d){c[l.Y(c,0,d)+2]=f},l.Y=function(c,f,d){if(c[f+2]!=-1)return 0;if(d==0)return f;for(var h=0;h<2;h++){c[f+h]==0&&(c[f+h]=c.length,c.push(0),c.push(0),c.push(-1));var b=l.Y(c,c[f+h],d-1);if(b!=0)return b}return 0},l.B=function(c,f){for(var d=0,h=0,b=0,p=f._,x=f.G,g=f.N;;)if(p==0&&(x=f.w[g],g+=1+(x+1>>>8),p=8),b=x>>>--p&1,d=c[d+b],h=c[d+2],h!=-1)return f._=p,f.G=x,f.N=g,h;return-1};function s(c){this.z=new o(c),this.D(this.z)}s.prototype={$:function(c,f){this.Q=c.i(),this.F=c.l(),this.o=c.l();var d=this.O=c.i();this.L=[];for(var h=0;h<d;h++){var b=c.i();c.i(),c.i(),this.L[b]=h}c.t(c.N+f-(6+d*3))},e:function(){var c=0,f=this.z.i();this.H==null&&(this.H={});for(var d=this.H[f]=l.X(),h=[],b=0;b<16;b++)h[b]=this.z.i(),c+=h[b];for(var b=0;b<16;b++)for(var p=0;p<h[b];p++)l.s(d,this.z.i(),b+1);return c+17},W:function(c){for(;c>0;)c-=this.e()},p:function(c,f){var d=c.i();this.U||(this.U=[]);for(var h=0;h<d;h++){var b=c.i(),p=c.i();this.U[this.L[b]]=this.H[p>>>4]}this.g=c.i(),c.t(c.N+f-(2+d*2))},D:function(c){var f=!1,d=c.l();if(d===s.q)do{var d=c.l(),h=c.l()-2;switch(d){case s.m:this.$(c,h);break;case s.K:this.W(h);break;case s.V:this.p(c,h),f=!0;break;default:c.t(c.N+h);break}}while(!f)},I:function(c,f){var d=l.B(f,c);if(d==16)return-32768;var h=c.Z(d);return h&1<<d-1||(h-=(1<<d)-1),h},B:function(c,f){for(var d=this.z,h=this.O,b=this.F,p=this.I,x=this.g,g=this.o*h,m=this.U,y=0;y<h;y++)c[y]=p(d,m[y])+(1<<this.Q-1);for(var v=h;v<g;v+=h)for(var y=0;y<h;y++)c[v+y]=p(d,m[y])+c[v+y-h];for(var k=f,C=1;C<b;C++){for(var y=0;y<h;y++)c[k+y]=p(d,m[y])+c[k+y-f];for(var v=h;v<g;v+=h)for(var y=0;y<h;y++){var A=k+v+y,_=c[A-h];x==6&&(_=c[A-f]+(_-c[A-h-f]>>>1)),c[A]=_+p(d,m[y])}k+=f}}},s.m=65475,s.K=65476,s.q=65496,s.V=65498;function u(c){var f=new s(c),d=f.Q>8?Uint16Array:Uint8Array,h=new d(f.o*f.F*f.O),b=f.o*f.O;return f.B(h,b),h}return u}()})(t,r)})()})(em);var wm=em.exports;const aS=Yi({__proto__:null,default:Qv(wm)},[wm]);/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const iS=4,km=0,Sm=1,oS=2;function So(e){let t=e.length;for(;--t>=0;)e[t]=0}const lS=0,Cm=1,sS=2,uS=3,cS=258,wf=29,Il=256,zl=Il+1+wf,Co=30,kf=19,Am=2*zl+1,Ri=15,Sf=16,fS=7,Cf=256,Em=16,Tm=17,Mm=18,Af=new Uint8Array([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]),A0=new Uint8Array([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]),dS=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Dm=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),hS=512,Na=new Array((zl+2)*2);So(Na);const Fl=new Array(Co*2);So(Fl);const Ol=new Array(hS);So(Ol);const Pl=new Array(cS-uS+1);So(Pl);const Ef=new Array(wf);So(Ef);const E0=new Array(Co);So(E0);function Tf(e,t,r,n,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=a,this.has_stree=e&&e.length}let Im,zm,Fm;function Mf(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const Om=e=>e<256?Ol[e]:Ol[256+(e>>>7)],Rl=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},un=(e,t,r)=>{e.bi_valid>Sf-r?(e.bi_buf|=t<<e.bi_valid&65535,Rl(e,e.bi_buf),e.bi_buf=t>>Sf-e.bi_valid,e.bi_valid+=r-Sf):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},ma=(e,t,r)=>{un(e,r[t*2],r[t*2+1])},Pm=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},pS=e=>{e.bi_valid===16?(Rl(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},vS=(e,t)=>{const r=t.dyn_tree,n=t.max_code,a=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,l=t.stat_desc.extra_base,s=t.stat_desc.max_length;let u,c,f,d,h,b,p=0;for(d=0;d<=Ri;d++)e.bl_count[d]=0;for(r[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;u<Am;u++)c=e.heap[u],d=r[r[c*2+1]*2+1]+1,d>s&&(d=s,p++),r[c*2+1]=d,!(c>n)&&(e.bl_count[d]++,h=0,c>=l&&(h=o[c-l]),b=r[c*2],e.opt_len+=b*(d+h),i&&(e.static_len+=b*(a[c*2+1]+h)));if(p!==0){do{for(d=s-1;e.bl_count[d]===0;)d--;e.bl_count[d]--,e.bl_count[d+1]+=2,e.bl_count[s]--,p-=2}while(p>0);for(d=s;d!==0;d--)for(c=e.bl_count[d];c!==0;)f=e.heap[--u],!(f>n)&&(r[f*2+1]!==d&&(e.opt_len+=(d-r[f*2+1])*r[f*2],r[f*2+1]=d),c--)}},Rm=(e,t,r)=>{const n=new Array(Ri+1);let a=0,i,o;for(i=1;i<=Ri;i++)a=a+r[i-1]<<1,n[i]=a;for(o=0;o<=t;o++){let l=e[o*2+1];l!==0&&(e[o*2]=Pm(n[l]++,l))}},mS=()=>{let e,t,r,n,a;const i=new Array(Ri+1);for(r=0,n=0;n<wf-1;n++)for(Ef[n]=r,e=0;e<1<<Af[n];e++)Pl[r++]=n;for(Pl[r-1]=n,a=0,n=0;n<16;n++)for(E0[n]=a,e=0;e<1<<A0[n];e++)Ol[a++]=n;for(a>>=7;n<Co;n++)for(E0[n]=a<<7,e=0;e<1<<A0[n]-7;e++)Ol[256+a++]=n;for(t=0;t<=Ri;t++)i[t]=0;for(e=0;e<=143;)Na[e*2+1]=8,e++,i[8]++;for(;e<=255;)Na[e*2+1]=9,e++,i[9]++;for(;e<=279;)Na[e*2+1]=7,e++,i[7]++;for(;e<=287;)Na[e*2+1]=8,e++,i[8]++;for(Rm(Na,zl+1,i),e=0;e<Co;e++)Fl[e*2+1]=5,Fl[e*2]=Pm(e,5);Im=new Tf(Na,Af,Il+1,zl,Ri),zm=new Tf(Fl,A0,0,Co,Ri),Fm=new Tf(new Array(0),dS,0,kf,fS)},Lm=e=>{let t;for(t=0;t<zl;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Co;t++)e.dyn_dtree[t*2]=0;for(t=0;t<kf;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Cf*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},Bm=e=>{e.bi_valid>8?Rl(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Nm=(e,t,r,n)=>{const a=t*2,i=r*2;return e[a]<e[i]||e[a]===e[i]&&n[t]<=n[r]},Df=(e,t,r)=>{const n=e.heap[r];let a=r<<1;for(;a<=e.heap_len&&(a<e.heap_len&&Nm(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!Nm(t,n,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=n},$m=(e,t,r)=>{let n,a,i=0,o,l;if(e.sym_next!==0)do n=e.pending_buf[e.sym_buf+i++]&255,n+=(e.pending_buf[e.sym_buf+i++]&255)<<8,a=e.pending_buf[e.sym_buf+i++],n===0?ma(e,a,t):(o=Pl[a],ma(e,o+Il+1,t),l=Af[o],l!==0&&(a-=Ef[o],un(e,a,l)),n--,o=Om(n),ma(e,o,r),l=A0[o],l!==0&&(n-=E0[o],un(e,n,l)));while(i<e.sym_next);ma(e,Cf,t)},If=(e,t)=>{const r=t.dyn_tree,n=t.stat_desc.static_tree,a=t.stat_desc.has_stree,i=t.stat_desc.elems;let o,l,s=-1,u;for(e.heap_len=0,e.heap_max=Am,o=0;o<i;o++)r[o*2]!==0?(e.heap[++e.heap_len]=s=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)u=e.heap[++e.heap_len]=s<2?++s:0,r[u*2]=1,e.depth[u]=0,e.opt_len--,a&&(e.static_len-=n[u*2+1]);for(t.max_code=s,o=e.heap_len>>1;o>=1;o--)Df(e,r,o);u=i;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Df(e,r,1),l=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=l,r[u*2]=r[o*2]+r[l*2],e.depth[u]=(e.depth[o]>=e.depth[l]?e.depth[o]:e.depth[l])+1,r[o*2+1]=r[l*2+1]=u,e.heap[1]=u++,Df(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],vS(e,t),Rm(r,s,e.bl_count)},Um=(e,t,r)=>{let n,a=-1,i,o=t[0*2+1],l=0,s=7,u=4;for(o===0&&(s=138,u=3),t[(r+1)*2+1]=65535,n=0;n<=r;n++)i=o,o=t[(n+1)*2+1],!(++l<s&&i===o)&&(l<u?e.bl_tree[i*2]+=l:i!==0?(i!==a&&e.bl_tree[i*2]++,e.bl_tree[Em*2]++):l<=10?e.bl_tree[Tm*2]++:e.bl_tree[Mm*2]++,l=0,a=i,o===0?(s=138,u=3):i===o?(s=6,u=3):(s=7,u=4))},Hm=(e,t,r)=>{let n,a=-1,i,o=t[0*2+1],l=0,s=7,u=4;for(o===0&&(s=138,u=3),n=0;n<=r;n++)if(i=o,o=t[(n+1)*2+1],!(++l<s&&i===o)){if(l<u)do ma(e,i,e.bl_tree);while(--l!==0);else i!==0?(i!==a&&(ma(e,i,e.bl_tree),l--),ma(e,Em,e.bl_tree),un(e,l-3,2)):l<=10?(ma(e,Tm,e.bl_tree),un(e,l-3,3)):(ma(e,Mm,e.bl_tree),un(e,l-11,7));l=0,a=i,o===0?(s=138,u=3):i===o?(s=6,u=3):(s=7,u=4)}},gS=e=>{let t;for(Um(e,e.dyn_ltree,e.l_desc.max_code),Um(e,e.dyn_dtree,e.d_desc.max_code),If(e,e.bl_desc),t=kf-1;t>=3&&e.bl_tree[Dm[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},bS=(e,t,r,n)=>{let a;for(un(e,t-257,5),un(e,r-1,5),un(e,n-4,4),a=0;a<n;a++)un(e,e.bl_tree[Dm[a]*2+1],3);Hm(e,e.dyn_ltree,t-1),Hm(e,e.dyn_dtree,r-1)},yS=e=>{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return km;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Sm;for(r=32;r<Il;r++)if(e.dyn_ltree[r*2]!==0)return Sm;return km};let jm=!1;const xS=e=>{jm||(mS(),jm=!0),e.l_desc=new Mf(e.dyn_ltree,Im),e.d_desc=new Mf(e.dyn_dtree,zm),e.bl_desc=new Mf(e.bl_tree,Fm),e.bi_buf=0,e.bi_valid=0,Lm(e)},Gm=(e,t,r,n)=>{un(e,(lS<<1)+(n?1:0),3),Bm(e),Rl(e,r),Rl(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},_S=e=>{un(e,Cm<<1,3),ma(e,Cf,Na),pS(e)},wS=(e,t,r,n)=>{let a,i,o=0;e.level>0?(e.strm.data_type===oS&&(e.strm.data_type=yS(e)),If(e,e.l_desc),If(e,e.d_desc),o=gS(e),a=e.opt_len+3+7>>>3,i=e.static_len+3+7>>>3,i<=a&&(a=i)):a=i=r+5,r+4<=a&&t!==-1?Gm(e,t,r,n):e.strategy===iS||i===a?(un(e,(Cm<<1)+(n?1:0),3),$m(e,Na,Fl)):(un(e,(sS<<1)+(n?1:0),3),bS(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),$m(e,e.dyn_ltree,e.dyn_dtree)),Lm(e),n&&Bm(e)},kS=(e,t,r)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=r,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Pl[r]+Il+1)*2]++,e.dyn_dtree[Om(t)*2]++),e.sym_next===e.sym_end);var SS=xS,CS=Gm,AS=wS,ES=kS,TS=_S,MS={_tr_init:SS,_tr_stored_block:CS,_tr_flush_block:AS,_tr_tally:ES,_tr_align:TS},Ll=(e,t,r,n)=>{let a=e&65535|0,i=e>>>16&65535|0,o=0;for(;r!==0;){o=r>2e3?2e3:r,r-=o;do a=a+t[n++]|0,i=i+a|0;while(--o);a%=65521,i%=65521}return a|i<<16|0};const DS=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},IS=new Uint32Array(DS());var Mr=(e,t,r,n)=>{const a=IS,i=n+r;e^=-1;for(let o=n;o<i;o++)e=e>>>8^a[(e^t[o])&255];return e^-1},Li={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"},T0={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_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:zS,_tr_stored_block:zf,_tr_flush_block:FS,_tr_tally:fi,_tr_align:OS}=MS,{Z_NO_FLUSH:di,Z_PARTIAL_FLUSH:PS,Z_FULL_FLUSH:RS,Z_FINISH:Fn,Z_BLOCK:Vm,Z_OK:Lr,Z_STREAM_END:qm,Z_STREAM_ERROR:ga,Z_DATA_ERROR:LS,Z_BUF_ERROR:Ff,Z_DEFAULT_COMPRESSION:BS,Z_FILTERED:NS,Z_HUFFMAN_ONLY:M0,Z_RLE:$S,Z_FIXED:US,Z_DEFAULT_STRATEGY:HS,Z_UNKNOWN:jS,Z_DEFLATED:D0}=T0,GS=9,VS=15,qS=8,Of=256+1+29,WS=30,KS=19,XS=2*Of+1,YS=15,zt=3,hi=258,ba=hi+zt+1,ZS=32,Ao=42,Pf=57,Rf=69,Lf=73,Bf=91,Nf=103,Bi=113,Bl=666,rn=1,Eo=2,Ni=3,To=4,JS=3,$i=(e,t)=>(e.msg=Li[t],t),Wm=e=>e*2-(e>4?9:0),pi=e=>{let t=e.length;for(;--t>=0;)e[t]=0},QS=e=>{let t,r,n,a=e.w_size;t=e.hash_size,n=t;do r=e.head[--n],e.head[n]=r>=a?r-a:0;while(--t);t=a,n=t;do r=e.prev[--n],e.prev[n]=r>=a?r-a:0;while(--t)};let vi=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask;const gn=e=>{const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))},bn=(e,t)=>{FS(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,gn(e.strm)},jt=(e,t)=>{e.pending_buf[e.pending++]=t},Nl=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},$f=(e,t,r,n)=>{let a=e.avail_in;return a>n&&(a=n),a===0?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),r),e.state.wrap===1?e.adler=Ll(e.adler,t,a,r):e.state.wrap===2&&(e.adler=Mr(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)},Km=(e,t)=>{let r=e.max_chain_length,n=e.strstart,a,i,o=e.prev_length,l=e.nice_match;const s=e.strstart>e.w_size-ba?e.strstart-(e.w_size-ba):0,u=e.window,c=e.w_mask,f=e.prev,d=e.strstart+hi;let h=u[n+o-1],b=u[n+o];e.prev_length>=e.good_match&&(r>>=2),l>e.lookahead&&(l=e.lookahead);do if(a=t,!(u[a+o]!==b||u[a+o-1]!==h||u[a]!==u[n]||u[++a]!==u[n+1])){n+=2,a++;do;while(u[++n]===u[++a]&&u[++n]===u[++a]&&u[++n]===u[++a]&&u[++n]===u[++a]&&u[++n]===u[++a]&&u[++n]===u[++a]&&u[++n]===u[++a]&&u[++n]===u[++a]&&n<d);if(i=hi-(d-n),n=d-hi,i>o){if(e.match_start=t,o=i,i>=l)break;h=u[n+o-1],b=u[n+o]}}while((t=f[t&c])>s&&--r!==0);return o<=e.lookahead?o:e.lookahead},Mo=e=>{const t=e.w_size;let r,n,a;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-ba)&&(e.window.set(e.window.subarray(t,t+t-n),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),QS(e),n+=t),e.strm.avail_in===0)break;if(r=$f(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=r,e.lookahead+e.insert>=zt)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=vi(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=vi(e,e.ins_h,e.window[a+zt-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<zt)););}while(e.lookahead<ba&&e.strm.avail_in!==0)},Xm=(e,t)=>{let r=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,n,a,i,o=0,l=e.strm.avail_in;do{if(n=65535,i=e.bi_valid+42>>3,e.strm.avail_out<i||(i=e.strm.avail_out-i,a=e.strstart-e.block_start,n>a+e.strm.avail_in&&(n=a+e.strm.avail_in),n>i&&(n=i),n<r&&(n===0&&t!==Fn||t===di||n!==a+e.strm.avail_in)))break;o=t===Fn&&n===a+e.strm.avail_in?1:0,zf(e,0,0,o),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,gn(e.strm),a&&(a>n&&(a=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+a),e.strm.next_out),e.strm.next_out+=a,e.strm.avail_out-=a,e.strm.total_out+=a,e.block_start+=a,n-=a),n&&($f(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(o===0);return l-=e.strm.avail_in,l&&(l>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=l&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-l,e.strm.next_in),e.strstart),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?To:t!==di&&t!==Fn&&e.strm.avail_in===0&&e.strstart===e.block_start?Eo:(i=e.window_size-e.strstart,e.strm.avail_in>i&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),i>e.strm.avail_in&&(i=e.strm.avail_in),i&&($f(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=i>e.w_size-e.insert?e.w_size-e.insert:i),e.high_water<e.strstart&&(e.high_water=e.strstart),i=e.bi_valid+42>>3,i=e.pending_buf_size-i>65535?65535:e.pending_buf_size-i,r=i>e.w_size?e.w_size:i,a=e.strstart-e.block_start,(a>=r||(a||t===Fn)&&t!==di&&e.strm.avail_in===0&&a<=i)&&(n=a>i?i:a,o=t===Fn&&e.strm.avail_in===0&&n===a?1:0,zf(e,e.block_start,n,o),e.block_start+=n,gn(e.strm)),o?Ni:rn)},Uf=(e,t)=>{let r,n;for(;;){if(e.lookahead<ba){if(Mo(e),e.lookahead<ba&&t===di)return rn;if(e.lookahead===0)break}if(r=0,e.lookahead>=zt&&(e.ins_h=vi(e,e.ins_h,e.window[e.strstart+zt-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-ba&&(e.match_length=Km(e,r)),e.match_length>=zt)if(n=fi(e,e.strstart-e.match_start,e.match_length-zt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=zt){e.match_length--;do e.strstart++,e.ins_h=vi(e,e.ins_h,e.window[e.strstart+zt-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=vi(e,e.ins_h,e.window[e.strstart+1]);else n=fi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(bn(e,!1),e.strm.avail_out===0))return rn}return e.insert=e.strstart<zt-1?e.strstart:zt-1,t===Fn?(bn(e,!0),e.strm.avail_out===0?Ni:To):e.sym_next&&(bn(e,!1),e.strm.avail_out===0)?rn:Eo},Do=(e,t)=>{let r,n,a;for(;;){if(e.lookahead<ba){if(Mo(e),e.lookahead<ba&&t===di)return rn;if(e.lookahead===0)break}if(r=0,e.lookahead>=zt&&(e.ins_h=vi(e,e.ins_h,e.window[e.strstart+zt-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=zt-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-ba&&(e.match_length=Km(e,r),e.match_length<=5&&(e.strategy===NS||e.match_length===zt&&e.strstart-e.match_start>4096)&&(e.match_length=zt-1)),e.prev_length>=zt&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-zt,n=fi(e,e.strstart-1-e.prev_match,e.prev_length-zt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=vi(e,e.ins_h,e.window[e.strstart+zt-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=zt-1,e.strstart++,n&&(bn(e,!1),e.strm.avail_out===0))return rn}else if(e.match_available){if(n=fi(e,0,e.window[e.strstart-1]),n&&bn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return rn}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=fi(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<zt-1?e.strstart:zt-1,t===Fn?(bn(e,!0),e.strm.avail_out===0?Ni:To):e.sym_next&&(bn(e,!1),e.strm.avail_out===0)?rn:Eo},eC=(e,t)=>{let r,n,a,i;const o=e.window;for(;;){if(e.lookahead<=hi){if(Mo(e),e.lookahead<=hi&&t===di)return rn;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=zt&&e.strstart>0&&(a=e.strstart-1,n=o[a],n===o[++a]&&n===o[++a]&&n===o[++a])){i=e.strstart+hi;do;while(n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&a<i);e.match_length=hi-(i-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=zt?(r=fi(e,1,e.match_length-zt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=fi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(bn(e,!1),e.strm.avail_out===0))return rn}return e.insert=0,t===Fn?(bn(e,!0),e.strm.avail_out===0?Ni:To):e.sym_next&&(bn(e,!1),e.strm.avail_out===0)?rn:Eo},tC=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(Mo(e),e.lookahead===0)){if(t===di)return rn;break}if(e.match_length=0,r=fi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(bn(e,!1),e.strm.avail_out===0))return rn}return e.insert=0,t===Fn?(bn(e,!0),e.strm.avail_out===0?Ni:To):e.sym_next&&(bn(e,!1),e.strm.avail_out===0)?rn:Eo};function ya(e,t,r,n,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=a}const $l=[new ya(0,0,0,0,Xm),new ya(4,4,8,4,Uf),new ya(4,5,16,8,Uf),new ya(4,6,32,32,Uf),new ya(4,4,16,16,Do),new ya(8,16,32,32,Do),new ya(8,16,128,128,Do),new ya(8,32,128,256,Do),new ya(32,128,258,1024,Do),new ya(32,258,258,4096,Do)],rC=e=>{e.window_size=2*e.w_size,pi(e.head),e.max_lazy_match=$l[e.level].max_lazy,e.good_match=$l[e.level].good_length,e.nice_match=$l[e.level].nice_length,e.max_chain_length=$l[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=zt-1,e.match_available=0,e.ins_h=0};function nC(){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=D0,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 Uint16Array(XS*2),this.dyn_dtree=new Uint16Array((2*WS+1)*2),this.bl_tree=new Uint16Array((2*KS+1)*2),pi(this.dyn_ltree),pi(this.dyn_dtree),pi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(YS+1),this.heap=new Uint16Array(2*Of+1),pi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Of+1),pi(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ul=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Ao&&t.status!==Pf&&t.status!==Rf&&t.status!==Lf&&t.status!==Bf&&t.status!==Nf&&t.status!==Bi&&t.status!==Bl?1:0},Ym=e=>{if(Ul(e))return $i(e,ga);e.total_in=e.total_out=0,e.data_type=jS;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Pf:t.wrap?Ao:Bi,e.adler=t.wrap===2?0:1,t.last_flush=-2,zS(t),Lr},Zm=e=>{const t=Ym(e);return t===Lr&&rC(e.state),t},aC=(e,t)=>Ul(e)||e.state.wrap!==2?ga:(e.state.gzhead=t,Lr),Jm=(e,t,r,n,a,i)=>{if(!e)return ga;let o=1;if(t===BS&&(t=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),a<1||a>GS||r!==D0||n<8||n>15||t<0||t>9||i<0||i>US||n===8&&o!==1)return $i(e,ga);n===8&&(n=9);const l=new nC;return e.state=l,l.strm=e,l.status=Ao,l.wrap=o,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+zt-1)/zt),l.window=new Uint8Array(l.w_size*2),l.head=new Uint16Array(l.hash_size),l.prev=new Uint16Array(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=l.lit_bufsize*4,l.pending_buf=new Uint8Array(l.pending_buf_size),l.sym_buf=l.lit_bufsize,l.sym_end=(l.lit_bufsize-1)*3,l.level=t,l.strategy=i,l.method=r,Zm(e)},iC=(e,t)=>Jm(e,t,D0,VS,qS,HS),oC=(e,t)=>{if(Ul(e)||t>Vm||t<0)return e?$i(e,ga):ga;const r=e.state;if(!e.output||e.avail_in!==0&&!e.input||r.status===Bl&&t!==Fn)return $i(e,e.avail_out===0?Ff:ga);const n=r.last_flush;if(r.last_flush=t,r.pending!==0){if(gn(e),e.avail_out===0)return r.last_flush=-1,Lr}else if(e.avail_in===0&&Wm(t)<=Wm(n)&&t!==Fn)return $i(e,Ff);if(r.status===Bl&&e.avail_in!==0)return $i(e,Ff);if(r.status===Ao&&r.wrap===0&&(r.status=Bi),r.status===Ao){let a=D0+(r.w_bits-8<<4)<<8,i=-1;if(r.strategy>=M0||r.level<2?i=0:r.level<6?i=1:r.level===6?i=2:i=3,a|=i<<6,r.strstart!==0&&(a|=ZS),a+=31-a%31,Nl(r,a),r.strstart!==0&&(Nl(r,e.adler>>>16),Nl(r,e.adler&65535)),e.adler=1,r.status=Bi,gn(e),r.pending!==0)return r.last_flush=-1,Lr}if(r.status===Pf){if(e.adler=0,jt(r,31),jt(r,139),jt(r,8),r.gzhead)jt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),jt(r,r.gzhead.time&255),jt(r,r.gzhead.time>>8&255),jt(r,r.gzhead.time>>16&255),jt(r,r.gzhead.time>>24&255),jt(r,r.level===9?2:r.strategy>=M0||r.level<2?4:0),jt(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(jt(r,r.gzhead.extra.length&255),jt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=Mr(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=Rf;else if(jt(r,0),jt(r,0),jt(r,0),jt(r,0),jt(r,0),jt(r,r.level===9?2:r.strategy>=M0||r.level<2?4:0),jt(r,JS),r.status=Bi,gn(e),r.pending!==0)return r.last_flush=-1,Lr}if(r.status===Rf){if(r.gzhead.extra){let a=r.pending,i=(r.gzhead.extra.length&65535)-r.gzindex;for(;r.pending+i>r.pending_buf_size;){let l=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+l),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>a&&(e.adler=Mr(e.adler,r.pending_buf,r.pending-a,a)),r.gzindex+=l,gn(e),r.pending!==0)return r.last_flush=-1,Lr;a=0,i-=l}let o=new Uint8Array(r.gzhead.extra);r.pending_buf.set(o.subarray(r.gzindex,r.gzindex+i),r.pending),r.pending+=i,r.gzhead.hcrc&&r.pending>a&&(e.adler=Mr(e.adler,r.pending_buf,r.pending-a,a)),r.gzindex=0}r.status=Lf}if(r.status===Lf){if(r.gzhead.name){let a=r.pending,i;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>a&&(e.adler=Mr(e.adler,r.pending_buf,r.pending-a,a)),gn(e),r.pending!==0)return r.last_flush=-1,Lr;a=0}r.gzindex<r.gzhead.name.length?i=r.gzhead.name.charCodeAt(r.gzindex++)&255:i=0,jt(r,i)}while(i!==0);r.gzhead.hcrc&&r.pending>a&&(e.adler=Mr(e.adler,r.pending_buf,r.pending-a,a)),r.gzindex=0}r.status=Bf}if(r.status===Bf){if(r.gzhead.comment){let a=r.pending,i;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>a&&(e.adler=Mr(e.adler,r.pending_buf,r.pending-a,a)),gn(e),r.pending!==0)return r.last_flush=-1,Lr;a=0}r.gzindex<r.gzhead.comment.length?i=r.gzhead.comment.charCodeAt(r.gzindex++)&255:i=0,jt(r,i)}while(i!==0);r.gzhead.hcrc&&r.pending>a&&(e.adler=Mr(e.adler,r.pending_buf,r.pending-a,a))}r.status=Nf}if(r.status===Nf){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(gn(e),r.pending!==0))return r.last_flush=-1,Lr;jt(r,e.adler&255),jt(r,e.adler>>8&255),e.adler=0}if(r.status=Bi,gn(e),r.pending!==0)return r.last_flush=-1,Lr}if(e.avail_in!==0||r.lookahead!==0||t!==di&&r.status!==Bl){let a=r.level===0?Xm(r,t):r.strategy===M0?tC(r,t):r.strategy===$S?eC(r,t):$l[r.level].func(r,t);if((a===Ni||a===To)&&(r.status=Bl),a===rn||a===Ni)return e.avail_out===0&&(r.last_flush=-1),Lr;if(a===Eo&&(t===PS?OS(r):t!==Vm&&(zf(r,0,0,!1),t===RS&&(pi(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),gn(e),e.avail_out===0))return r.last_flush=-1,Lr}return t!==Fn?Lr:r.wrap<=0?qm:(r.wrap===2?(jt(r,e.adler&255),jt(r,e.adler>>8&255),jt(r,e.adler>>16&255),jt(r,e.adler>>24&255),jt(r,e.total_in&255),jt(r,e.total_in>>8&255),jt(r,e.total_in>>16&255),jt(r,e.total_in>>24&255)):(Nl(r,e.adler>>>16),Nl(r,e.adler&65535)),gn(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?Lr:qm)},lC=e=>{if(Ul(e))return ga;const t=e.state.status;return e.state=null,t===Bi?$i(e,LS):Lr},sC=(e,t)=>{let r=t.length;if(Ul(e))return ga;const n=e.state,a=n.wrap;if(a===2||a===1&&n.status!==Ao||n.lookahead)return ga;if(a===1&&(e.adler=Ll(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){a===0&&(pi(n.head),n.strstart=0,n.block_start=0,n.insert=0);let s=new Uint8Array(n.w_size);s.set(t.subarray(r-n.w_size,r),0),t=s,r=n.w_size}const i=e.avail_in,o=e.next_in,l=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,Mo(n);n.lookahead>=zt;){let s=n.strstart,u=n.lookahead-(zt-1);do n.ins_h=vi(n,n.ins_h,n.window[s+zt-1]),n.prev[s&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=s,s++;while(--u);n.strstart=s,n.lookahead=zt-1,Mo(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=zt-1,n.match_available=0,e.next_in=o,e.input=l,e.avail_in=i,n.wrap=a,Lr};var uC=iC,cC=Jm,fC=Zm,dC=Ym,hC=aC,pC=oC,vC=lC,mC=sC,gC="pako deflate (from Nodeca project)",Hl={deflateInit:uC,deflateInit2:cC,deflateReset:fC,deflateResetKeep:dC,deflateSetHeader:hC,deflate:pC,deflateEnd:vC,deflateSetDictionary:mC,deflateInfo:gC};const bC=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var yC=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)bC(r,n)&&(e[n]=r[n])}}return e},xC=e=>{let t=0;for(let n=0,a=e.length;n<a;n++)t+=e[n].length;const r=new Uint8Array(t);for(let n=0,a=0,i=e.length;n<i;n++){let o=e[n];r.set(o,a),a+=o.length}return r},I0={assign:yC,flattenChunks:xC};let Qm=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Qm=!1}const jl=new Uint8Array(256);for(let e=0;e<256;e++)jl[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;jl[254]=jl[254]=1;var _C=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,n,a,i,o=e.length,l=0;for(a=0;a<o;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<o&&(n=e.charCodeAt(a+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),a++)),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(l),i=0,a=0;i<l;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<o&&(n=e.charCodeAt(a+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),a++)),r<128?t[i++]=r:r<2048?(t[i++]=192|r>>>6,t[i++]=128|r&63):r<65536?(t[i++]=224|r>>>12,t[i++]=128|r>>>6&63,t[i++]=128|r&63):(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63,t[i++]=128|r>>>6&63,t[i++]=128|r&63);return t};const wC=(e,t)=>{if(t<65534&&e.subarray&&Qm)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r};var kC=(e,t)=>{const r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,a;const i=new Array(r*2);for(a=0,n=0;n<r;){let o=e[n++];if(o<128){i[a++]=o;continue}let l=jl[o];if(l>4){i[a++]=65533,n+=l-1;continue}for(o&=l===2?31:l===3?15:7;l>1&&n<r;)o=o<<6|e[n++]&63,l--;if(l>1){i[a++]=65533;continue}o<65536?i[a++]=o:(o-=65536,i[a++]=55296|o>>10&1023,i[a++]=56320|o&1023)}return wC(i,a)},SC=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+jl[e[r]]>t?r:t},Gl={string2buf:_C,buf2string:kC,utf8border:SC};function CC(){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}var e4=CC;const t4=Object.prototype.toString,{Z_NO_FLUSH:AC,Z_SYNC_FLUSH:EC,Z_FULL_FLUSH:TC,Z_FINISH:MC,Z_OK:z0,Z_STREAM_END:DC,Z_DEFAULT_COMPRESSION:IC,Z_DEFAULT_STRATEGY:zC,Z_DEFLATED:FC}=T0;function F0(e){this.options=I0.assign({level:IC,method:FC,chunkSize:16384,windowBits:15,memLevel:8,strategy:zC},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new e4,this.strm.avail_out=0;let r=Hl.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==z0)throw new Error(Li[r]);if(t.header&&Hl.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=Gl.string2buf(t.dictionary):t4.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,r=Hl.deflateSetDictionary(this.strm,n),r!==z0)throw new Error(Li[r]);this._dict_set=!0}}F0.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize;let a,i;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?MC:AC,typeof e=="string"?r.input=Gl.string2buf(e):t4.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){if(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(i===EC||i===TC)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(a=Hl.deflate(r,i),a===DC)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Hl.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===z0;if(r.avail_out===0){this.onData(r.output);continue}if(i>0&&r.next_out>0){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(r.avail_in===0)break}return!0},F0.prototype.onData=function(e){this.chunks.push(e)},F0.prototype.onEnd=function(e){e===z0&&(this.result=I0.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function OC(e,t){const r=new F0(t);if(r.push(e,!0),r.err)throw r.msg||Li[r.err];return r.result}var PC=OC,RC={deflate:PC};const O0=16209,LC=16191;var BC=function(t,r){let n,a,i,o,l,s,u,c,f,d,h,b,p,x,g,m,y,v,k,C,A,_,E,M;const z=t.state;n=t.next_in,E=t.input,a=n+(t.avail_in-5),i=t.next_out,M=t.output,o=i-(r-t.avail_out),l=i+(t.avail_out-257),s=z.dmax,u=z.wsize,c=z.whave,f=z.wnext,d=z.window,h=z.hold,b=z.bits,p=z.lencode,x=z.distcode,g=(1<<z.lenbits)-1,m=(1<<z.distbits)-1;e:do{b<15&&(h+=E[n++]<<b,b+=8,h+=E[n++]<<b,b+=8),y=p[h&g];t:for(;;){if(v=y>>>24,h>>>=v,b-=v,v=y>>>16&255,v===0)M[i++]=y&65535;else if(v&16){k=y&65535,v&=15,v&&(b<v&&(h+=E[n++]<<b,b+=8),k+=h&(1<<v)-1,h>>>=v,b-=v),b<15&&(h+=E[n++]<<b,b+=8,h+=E[n++]<<b,b+=8),y=x[h&m];r:for(;;){if(v=y>>>24,h>>>=v,b-=v,v=y>>>16&255,v&16){if(C=y&65535,v&=15,b<v&&(h+=E[n++]<<b,b+=8,b<v&&(h+=E[n++]<<b,b+=8)),C+=h&(1<<v)-1,C>s){t.msg="invalid distance too far back",z.mode=O0;break e}if(h>>>=v,b-=v,v=i-o,C>v){if(v=C-v,v>c&&z.sane){t.msg="invalid distance too far back",z.mode=O0;break e}if(A=0,_=d,f===0){if(A+=u-v,v<k){k-=v;do M[i++]=d[A++];while(--v);A=i-C,_=M}}else if(f<v){if(A+=u+f-v,v-=f,v<k){k-=v;do M[i++]=d[A++];while(--v);if(A=0,f<k){v=f,k-=v;do M[i++]=d[A++];while(--v);A=i-C,_=M}}}else if(A+=f-v,v<k){k-=v;do M[i++]=d[A++];while(--v);A=i-C,_=M}for(;k>2;)M[i++]=_[A++],M[i++]=_[A++],M[i++]=_[A++],k-=3;k&&(M[i++]=_[A++],k>1&&(M[i++]=_[A++]))}else{A=i-C;do M[i++]=M[A++],M[i++]=M[A++],M[i++]=M[A++],k-=3;while(k>2);k&&(M[i++]=M[A++],k>1&&(M[i++]=M[A++]))}}else if(v&64){t.msg="invalid distance code",z.mode=O0;break e}else{y=x[(y&65535)+(h&(1<<v)-1)];continue r}break}}else if(v&64)if(v&32){z.mode=LC;break e}else{t.msg="invalid literal/length code",z.mode=O0;break e}else{y=p[(y&65535)+(h&(1<<v)-1)];continue t}break}}while(n<a&&i<l);k=b>>3,n-=k,b-=k<<3,h&=(1<<b)-1,t.next_in=n,t.next_out=i,t.avail_in=n<a?5+(a-n):5-(n-a),t.avail_out=i<l?257+(l-i):257-(i-l),z.hold=h,z.bits=b};const Io=15,r4=852,n4=592,a4=0,Hf=1,i4=2,NC=new Uint16Array([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]),$C=new Uint8Array([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]),UC=new Uint16Array([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]),HC=new Uint8Array([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]);var Vl=(e,t,r,n,a,i,o,l)=>{const s=l.bits;let u=0,c=0,f=0,d=0,h=0,b=0,p=0,x=0,g=0,m=0,y,v,k,C,A,_=null,E;const M=new Uint16Array(Io+1),z=new Uint16Array(Io+1);let R=null,O,H,Z;for(u=0;u<=Io;u++)M[u]=0;for(c=0;c<n;c++)M[t[r+c]]++;for(h=s,d=Io;d>=1&&M[d]===0;d--);if(h>d&&(h=d),d===0)return a[i++]=1<<24|64<<16|0,a[i++]=1<<24|64<<16|0,l.bits=1,0;for(f=1;f<d&&M[f]===0;f++);for(h<f&&(h=f),x=1,u=1;u<=Io;u++)if(x<<=1,x-=M[u],x<0)return-1;if(x>0&&(e===a4||d!==1))return-1;for(z[1]=0,u=1;u<Io;u++)z[u+1]=z[u]+M[u];for(c=0;c<n;c++)t[r+c]!==0&&(o[z[t[r+c]]++]=c);if(e===a4?(_=R=o,E=20):e===Hf?(_=NC,R=$C,E=257):(_=UC,R=HC,E=0),m=0,c=0,u=f,A=i,b=h,p=0,k=-1,g=1<<h,C=g-1,e===Hf&&g>r4||e===i4&&g>n4)return 1;for(;;){O=u-p,o[c]+1<E?(H=0,Z=o[c]):o[c]>=E?(H=R[o[c]-E],Z=_[o[c]-E]):(H=96,Z=0),y=1<<u-p,v=1<<b,f=v;do v-=y,a[A+(m>>p)+v]=O<<24|H<<16|Z|0;while(v!==0);for(y=1<<u-1;m&y;)y>>=1;if(y!==0?(m&=y-1,m+=y):m=0,c++,--M[u]===0){if(u===d)break;u=t[r+o[c]]}if(u>h&&(m&C)!==k){for(p===0&&(p=h),A+=f,b=u-p,x=1<<b;b+p<d&&(x-=M[b+p],!(x<=0));)b++,x<<=1;if(g+=1<<b,e===Hf&&g>r4||e===i4&&g>n4)return 1;k=m&C,a[k]=h<<24|b<<16|A-i|0}}return m!==0&&(a[A+m]=u-p<<24|64<<16|0),l.bits=h,0};const jC=0,o4=1,l4=2,{Z_FINISH:s4,Z_BLOCK:GC,Z_TREES:P0,Z_OK:Ui,Z_STREAM_END:VC,Z_NEED_DICT:qC,Z_STREAM_ERROR:On,Z_DATA_ERROR:u4,Z_MEM_ERROR:c4,Z_BUF_ERROR:WC,Z_DEFLATED:f4}=T0,R0=16180,d4=16181,h4=16182,p4=16183,v4=16184,m4=16185,g4=16186,b4=16187,y4=16188,x4=16189,L0=16190,$a=16191,jf=16192,_4=16193,Gf=16194,w4=16195,k4=16196,S4=16197,C4=16198,B0=16199,N0=16200,A4=16201,E4=16202,T4=16203,M4=16204,D4=16205,Vf=16206,I4=16207,z4=16208,sr=16209,F4=16210,O4=16211,KC=852,XC=592,YC=15,P4=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function ZC(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Hi=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<R0||t.mode>O4?1:0},R4=e=>{if(Hi(e))return On;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=R0,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(KC),t.distcode=t.distdyn=new Int32Array(XC),t.sane=1,t.back=-1,Ui},L4=e=>{if(Hi(e))return On;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,R4(e)},B4=(e,t)=>{let r;if(Hi(e))return On;const n=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?On:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,L4(e))},N4=(e,t)=>{if(!e)return On;const r=new ZC;e.state=r,r.strm=e,r.window=null,r.mode=R0;const n=B4(e,t);return n!==Ui&&(e.state=null),n},JC=e=>N4(e,YC);let $4=!0,qf,Wf;const QC=e=>{if($4){qf=new Int32Array(512),Wf=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Vl(o4,e.lens,0,288,qf,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Vl(l4,e.lens,0,32,Wf,0,e.work,{bits:5}),$4=!1}e.lencode=qf,e.lenbits=9,e.distcode=Wf,e.distbits=5},U4=(e,t,r,n)=>{let a;const i=e.state;return i.window===null&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),n>=i.wsize?(i.window.set(t.subarray(r-i.wsize,r),0),i.wnext=0,i.whave=i.wsize):(a=i.wsize-i.wnext,a>n&&(a=n),i.window.set(t.subarray(r-n,r-n+a),i.wnext),n-=a,n?(i.window.set(t.subarray(r-n,r),0),i.wnext=n,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a))),0},eA=(e,t)=>{let r,n,a,i,o,l,s,u,c,f,d,h,b,p,x=0,g,m,y,v,k,C,A,_;const E=new Uint8Array(4);let M,z;const R=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Hi(e)||!e.output||!e.input&&e.avail_in!==0)return On;r=e.state,r.mode===$a&&(r.mode=jf),o=e.next_out,a=e.output,s=e.avail_out,i=e.next_in,n=e.input,l=e.avail_in,u=r.hold,c=r.bits,f=l,d=s,_=Ui;e:for(;;)switch(r.mode){case R0:if(r.wrap===0){r.mode=jf;break}for(;c<16;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}if(r.wrap&2&&u===35615){r.wbits===0&&(r.wbits=15),r.check=0,E[0]=u&255,E[1]=u>>>8&255,r.check=Mr(r.check,E,2,0),u=0,c=0,r.mode=d4;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=sr;break}if((u&15)!==f4){e.msg="unknown compression method",r.mode=sr;break}if(u>>>=4,c-=4,A=(u&15)+8,r.wbits===0&&(r.wbits=A),A>15||A>r.wbits){e.msg="invalid window size",r.mode=sr;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=u&512?x4:$a,u=0,c=0;break;case d4:for(;c<16;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}if(r.flags=u,(r.flags&255)!==f4){e.msg="unknown compression method",r.mode=sr;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=sr;break}r.head&&(r.head.text=u>>8&1),r.flags&512&&r.wrap&4&&(E[0]=u&255,E[1]=u>>>8&255,r.check=Mr(r.check,E,2,0)),u=0,c=0,r.mode=h4;case h4:for(;c<32;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}r.head&&(r.head.time=u),r.flags&512&&r.wrap&4&&(E[0]=u&255,E[1]=u>>>8&255,E[2]=u>>>16&255,E[3]=u>>>24&255,r.check=Mr(r.check,E,4,0)),u=0,c=0,r.mode=p4;case p4:for(;c<16;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}r.head&&(r.head.xflags=u&255,r.head.os=u>>8),r.flags&512&&r.wrap&4&&(E[0]=u&255,E[1]=u>>>8&255,r.check=Mr(r.check,E,2,0)),u=0,c=0,r.mode=v4;case v4:if(r.flags&1024){for(;c<16;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}r.length=u,r.head&&(r.head.extra_len=u),r.flags&512&&r.wrap&4&&(E[0]=u&255,E[1]=u>>>8&255,r.check=Mr(r.check,E,2,0)),u=0,c=0}else r.head&&(r.head.extra=null);r.mode=m4;case m4:if(r.flags&1024&&(h=r.length,h>l&&(h=l),h&&(r.head&&(A=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(i,i+h),A)),r.flags&512&&r.wrap&4&&(r.check=Mr(r.check,n,h,i)),l-=h,i+=h,r.length-=h),r.length))break e;r.length=0,r.mode=g4;case g4:if(r.flags&2048){if(l===0)break e;h=0;do A=n[i+h++],r.head&&A&&r.length<65536&&(r.head.name+=String.fromCharCode(A));while(A&&h<l);if(r.flags&512&&r.wrap&4&&(r.check=Mr(r.check,n,h,i)),l-=h,i+=h,A)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=b4;case b4:if(r.flags&4096){if(l===0)break e;h=0;do A=n[i+h++],r.head&&A&&r.length<65536&&(r.head.comment+=String.fromCharCode(A));while(A&&h<l);if(r.flags&512&&r.wrap&4&&(r.check=Mr(r.check,n,h,i)),l-=h,i+=h,A)break e}else r.head&&(r.head.comment=null);r.mode=y4;case y4:if(r.flags&512){for(;c<16;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}if(r.wrap&4&&u!==(r.check&65535)){e.msg="header crc mismatch",r.mode=sr;break}u=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=$a;break;case x4:for(;c<32;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}e.adler=r.check=P4(u),u=0,c=0,r.mode=L0;case L0:if(r.havedict===0)return e.next_out=o,e.avail_out=s,e.next_in=i,e.avail_in=l,r.hold=u,r.bits=c,qC;e.adler=r.check=1,r.mode=$a;case $a:if(t===GC||t===P0)break e;case jf:if(r.last){u>>>=c&7,c-=c&7,r.mode=Vf;break}for(;c<3;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}switch(r.last=u&1,u>>>=1,c-=1,u&3){case 0:r.mode=_4;break;case 1:if(QC(r),r.mode=B0,t===P0){u>>>=2,c-=2;break e}break;case 2:r.mode=k4;break;case 3:e.msg="invalid block type",r.mode=sr}u>>>=2,c-=2;break;case _4:for(u>>>=c&7,c-=c&7;c<32;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=sr;break}if(r.length=u&65535,u=0,c=0,r.mode=Gf,t===P0)break e;case Gf:r.mode=w4;case w4:if(h=r.length,h){if(h>l&&(h=l),h>s&&(h=s),h===0)break e;a.set(n.subarray(i,i+h),o),l-=h,i+=h,s-=h,o+=h,r.length-=h;break}r.mode=$a;break;case k4:for(;c<14;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}if(r.nlen=(u&31)+257,u>>>=5,c-=5,r.ndist=(u&31)+1,u>>>=5,c-=5,r.ncode=(u&15)+4,u>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=sr;break}r.have=0,r.mode=S4;case S4:for(;r.have<r.ncode;){for(;c<3;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}r.lens[R[r.have++]]=u&7,u>>>=3,c-=3}for(;r.have<19;)r.lens[R[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,M={bits:r.lenbits},_=Vl(jC,r.lens,0,19,r.lencode,0,r.work,M),r.lenbits=M.bits,_){e.msg="invalid code lengths set",r.mode=sr;break}r.have=0,r.mode=C4;case C4:for(;r.have<r.nlen+r.ndist;){for(;x=r.lencode[u&(1<<r.lenbits)-1],g=x>>>24,m=x>>>16&255,y=x&65535,!(g<=c);){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}if(y<16)u>>>=g,c-=g,r.lens[r.have++]=y;else{if(y===16){for(z=g+2;c<z;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}if(u>>>=g,c-=g,r.have===0){e.msg="invalid bit length repeat",r.mode=sr;break}A=r.lens[r.have-1],h=3+(u&3),u>>>=2,c-=2}else if(y===17){for(z=g+3;c<z;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}u>>>=g,c-=g,A=0,h=3+(u&7),u>>>=3,c-=3}else{for(z=g+7;c<z;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}u>>>=g,c-=g,A=0,h=11+(u&127),u>>>=7,c-=7}if(r.have+h>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=sr;break}for(;h--;)r.lens[r.have++]=A}}if(r.mode===sr)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=sr;break}if(r.lenbits=9,M={bits:r.lenbits},_=Vl(o4,r.lens,0,r.nlen,r.lencode,0,r.work,M),r.lenbits=M.bits,_){e.msg="invalid literal/lengths set",r.mode=sr;break}if(r.distbits=6,r.distcode=r.distdyn,M={bits:r.distbits},_=Vl(l4,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,M),r.distbits=M.bits,_){e.msg="invalid distances set",r.mode=sr;break}if(r.mode=B0,t===P0)break e;case B0:r.mode=N0;case N0:if(l>=6&&s>=258){e.next_out=o,e.avail_out=s,e.next_in=i,e.avail_in=l,r.hold=u,r.bits=c,BC(e,d),o=e.next_out,a=e.output,s=e.avail_out,i=e.next_in,n=e.input,l=e.avail_in,u=r.hold,c=r.bits,r.mode===$a&&(r.back=-1);break}for(r.back=0;x=r.lencode[u&(1<<r.lenbits)-1],g=x>>>24,m=x>>>16&255,y=x&65535,!(g<=c);){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}if(m&&!(m&240)){for(v=g,k=m,C=y;x=r.lencode[C+((u&(1<<v+k)-1)>>v)],g=x>>>24,m=x>>>16&255,y=x&65535,!(v+g<=c);){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}u>>>=v,c-=v,r.back+=v}if(u>>>=g,c-=g,r.back+=g,r.length=y,m===0){r.mode=D4;break}if(m&32){r.back=-1,r.mode=$a;break}if(m&64){e.msg="invalid literal/length code",r.mode=sr;break}r.extra=m&15,r.mode=A4;case A4:if(r.extra){for(z=r.extra;c<z;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=E4;case E4:for(;x=r.distcode[u&(1<<r.distbits)-1],g=x>>>24,m=x>>>16&255,y=x&65535,!(g<=c);){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}if(!(m&240)){for(v=g,k=m,C=y;x=r.distcode[C+((u&(1<<v+k)-1)>>v)],g=x>>>24,m=x>>>16&255,y=x&65535,!(v+g<=c);){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}u>>>=v,c-=v,r.back+=v}if(u>>>=g,c-=g,r.back+=g,m&64){e.msg="invalid distance code",r.mode=sr;break}r.offset=y,r.extra=m&15,r.mode=T4;case T4:if(r.extra){for(z=r.extra;c<z;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=sr;break}r.mode=M4;case M4:if(s===0)break e;if(h=d-s,r.offset>h){if(h=r.offset-h,h>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=sr;break}h>r.wnext?(h-=r.wnext,b=r.wsize-h):b=r.wnext-h,h>r.length&&(h=r.length),p=r.window}else p=a,b=o-r.offset,h=r.length;h>s&&(h=s),s-=h,r.length-=h;do a[o++]=p[b++];while(--h);r.length===0&&(r.mode=N0);break;case D4:if(s===0)break e;a[o++]=r.length,s--,r.mode=N0;break;case Vf:if(r.wrap){for(;c<32;){if(l===0)break e;l--,u|=n[i++]<<c,c+=8}if(d-=s,e.total_out+=d,r.total+=d,r.wrap&4&&d&&(e.adler=r.check=r.flags?Mr(r.check,a,d,o-d):Ll(r.check,a,d,o-d)),d=s,r.wrap&4&&(r.flags?u:P4(u))!==r.check){e.msg="incorrect data check",r.mode=sr;break}u=0,c=0}r.mode=I4;case I4:if(r.wrap&&r.flags){for(;c<32;){if(l===0)break e;l--,u+=n[i++]<<c,c+=8}if(r.wrap&4&&u!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=sr;break}u=0,c=0}r.mode=z4;case z4:_=VC;break e;case sr:_=u4;break e;case F4:return c4;case O4:default:return On}return e.next_out=o,e.avail_out=s,e.next_in=i,e.avail_in=l,r.hold=u,r.bits=c,(r.wsize||d!==e.avail_out&&r.mode<sr&&(r.mode<Vf||t!==s4))&&U4(e,e.output,e.next_out,d-e.avail_out),f-=e.avail_in,d-=e.avail_out,e.total_in+=f,e.total_out+=d,r.total+=d,r.wrap&4&&d&&(e.adler=r.check=r.flags?Mr(r.check,a,d,e.next_out-d):Ll(r.check,a,d,e.next_out-d)),e.data_type=r.bits+(r.last?64:0)+(r.mode===$a?128:0)+(r.mode===B0||r.mode===Gf?256:0),(f===0&&d===0||t===s4)&&_===Ui&&(_=WC),_},tA=e=>{if(Hi(e))return On;let t=e.state;return t.window&&(t.window=null),e.state=null,Ui},rA=(e,t)=>{if(Hi(e))return On;const r=e.state;return r.wrap&2?(r.head=t,t.done=!1,Ui):On},nA=(e,t)=>{const r=t.length;let n,a,i;return Hi(e)||(n=e.state,n.wrap!==0&&n.mode!==L0)?On:n.mode===L0&&(a=1,a=Ll(a,t,r,0),a!==n.check)?u4:(i=U4(e,t,r,r),i?(n.mode=F4,c4):(n.havedict=1,Ui))};var aA=L4,iA=B4,oA=R4,lA=JC,sA=N4,uA=eA,cA=tA,fA=rA,dA=nA,hA="pako inflate (from Nodeca project)",Ua={inflateReset:aA,inflateReset2:iA,inflateResetKeep:oA,inflateInit:lA,inflateInit2:sA,inflate:uA,inflateEnd:cA,inflateGetHeader:fA,inflateSetDictionary:dA,inflateInfo:hA};function pA(){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}var vA=pA;const H4=Object.prototype.toString,{Z_NO_FLUSH:mA,Z_FINISH:gA,Z_OK:ql,Z_STREAM_END:Kf,Z_NEED_DICT:Xf,Z_STREAM_ERROR:bA,Z_DATA_ERROR:j4,Z_MEM_ERROR:yA}=T0;function $0(e){this.options=I0.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new e4,this.strm.avail_out=0;let r=Ua.inflateInit2(this.strm,t.windowBits);if(r!==ql)throw new Error(Li[r]);if(this.header=new vA,Ua.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Gl.string2buf(t.dictionary):H4.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Ua.inflateSetDictionary(this.strm,t.dictionary),r!==ql)))throw new Error(Li[r])}$0.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,a=this.options.dictionary;let i,o,l;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?gA:mA,H4.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),i=Ua.inflate(r,o),i===Xf&&a&&(i=Ua.inflateSetDictionary(r,a),i===ql?i=Ua.inflate(r,o):i===j4&&(i=Xf));r.avail_in>0&&i===Kf&&r.state.wrap>0&&e[r.next_in]!==0;)Ua.inflateReset(r),i=Ua.inflate(r,o);switch(i){case bA:case j4:case Xf:case yA:return this.onEnd(i),this.ended=!0,!1}if(l=r.avail_out,r.next_out&&(r.avail_out===0||i===Kf))if(this.options.to==="string"){let s=Gl.utf8border(r.output,r.next_out),u=r.next_out-s,c=Gl.buf2string(r.output,s);r.next_out=u,r.avail_out=n-u,u&&r.output.set(r.output.subarray(s,s+u),0),this.onData(c)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(i===ql&&l===0)){if(i===Kf)return i=Ua.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(r.avail_in===0)break}}return!0},$0.prototype.onData=function(e){this.chunks.push(e)},$0.prototype.onEnd=function(e){e===ql&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=I0.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function xA(e,t){const r=new $0(t);if(r.push(e),r.err)throw r.msg||Li[r.err];return r.result}var _A=xA,wA={inflate:_A};const{deflate:kA}=RC,{inflate:SA}=wA;var CA=kA,AA=SA,Wl=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),U0=4017,H0=799,j0=3406,G0=2276,V0=1567,q0=3784,zo=5793,W0=2896,EA=100,G4=64*1024*1024,Yf=0;function Fo(e){var t=Yf+e;if(t>G4){var r=Math.ceil((t-G4)/1024/1024);throw new Error("Max memory limit exceeded by at least ".concat(r,"MB"))}Yf=t}function TA(e,t){for(var r=16;r>0&&!e[r-1];)r--;for(var n=[{children:[],index:0}],a=0,i=n[0],o=0;o<r;o++){for(var l=0;l<e[o];l++){for(i=n.pop(),i.children[i.index]=t[a];i.index>0;){if(n.length===0)throw new Error("Could not recreate Huffman Table");i=n.pop()}for(i.index++,n.push(i);n.length<=o;){var s={children:[],index:0};n.push(s),i.children[i.index]=s.children,i=s}a++}if(o+1<r){var s={children:[],index:0};n.push(s),i.children[i.index]=s.children,i=s}}return n[0].children}function MA(e,t,r,n,a,i,o,l,s){var u=r.mcusPerLine,c=r.progressive,f=t,d=0,h=0;function b(){if(h>0)return h--,d>>h&1;if(d=e[t++],d==255){var De=e[t++];if(De)throw new Error("unexpected marker: ".concat((d<<8|De).toString(16)))}return h=7,d>>>7}function p(De){for(var Ee=De;;){if(Ee=Ee[b()],typeof Ee=="number")return Ee;if(Ee===void 0)throw new Error("invalid huffman sequence")}}function x(De){for(var Ee=0;De>0;)Ee=Ee<<1|b(),De--;return Ee}function g(De){var Ee=x(De);return Ee>=1<<De-1?Ee:Ee+(-1<<De)+1}function m(De,Ee){var Oe=p(De.huffmanTableDC),Pe=Oe===0?0:g(Oe);Ee[0]=De.pred+=Pe;for(var Me=1;Me<64;){var ce=p(De.huffmanTableAC),ye=ce&15,ge=ce>>4;if(ye===0){if(ge<15)break;Me+=16;continue}Me+=ge;var B=Wl[Me];Ee[B]=g(ye),Me++}}function y(De,Ee){var Oe=p(De.huffmanTableDC),Pe=Oe===0?0:g(Oe)<<s;Ee[0]=De.pred+=Pe}function v(De,Ee){Ee[0]|=b()<<s}var k=0;function C(De,Ee){if(k>0){k--;return}for(var Oe=i,Pe=o;Oe<=Pe;){var Me=p(De.huffmanTableAC),ce=Me&15,ye=Me>>4;if(ce===0){if(ye<15){k=x(ye)+(1<<ye)-1;break}Oe+=16;continue}Oe+=ye;var ge=Wl[Oe];Ee[ge]=g(ce)*(1<<s),Oe++}}var A=0,_=0;function E(De,Ee){for(var Oe=i,Pe=o,Me=0;Oe<=Pe;){var ce=Wl[Oe],ye=Ee[ce]<0?-1:1;switch(A){case 0:var ge=p(De.huffmanTableAC),B=ge&15;if(Me=ge>>4,B===0)Me<15?(k=x(Me)+(1<<Me),A=4):(Me=16,A=1);else{if(B!==1)throw new Error("invalid ACn encoding");_=g(B),A=Me?2:3}continue;case 1:case 2:Ee[ce]?Ee[ce]+=(b()<<s)*ye:(Me--,Me===0&&(A=A==2?3:0));break;case 3:Ee[ce]?Ee[ce]+=(b()<<s)*ye:(Ee[ce]=_<<s,A=0);break;case 4:Ee[ce]&&(Ee[ce]+=(b()<<s)*ye);break}Oe++}A===4&&(k--,k===0&&(A=0))}function M(De,Ee,Oe,Pe,Me){var ce=Oe/u|0,ye=Oe%u,ge=ce*De.v+Pe,B=ye*De.h+Me;De.blocks[ge]!==void 0&&Ee(De,De.blocks[ge][B])}function z(De,Ee,Oe){var Pe=Oe/De.blocksPerLine|0,Me=Oe%De.blocksPerLine;De.blocks[Pe]!==void 0&&Ee(De,De.blocks[Pe][Me])}var R=n.length,O,H;c?i===0?H=l===0?y:v:H=l===0?C:E:H=m;var Z=0,q;R==1?q=n[0].blocksPerLine*n[0].blocksPerColumn:q=u*r.mcusPerColumn,a||(a=q);for(var X,Q,te;Z<q;){for(var _e=0;_e<R;_e++)n[_e].pred=0;if(k=0,R==1){O=n[0];for(var he=0;he<a;he++)z(O,H,Z),Z++}else for(var he=0;he<a;he++){for(var _e=0;_e<R;_e++){O=n[_e],X=O.h,Q=O.v;for(var we=0;we<Q;we++)for(var pe=0;pe<X;pe++)M(O,H,Z,we,pe)}if(Z++,Z===q)break}if(Z===q)do{if(e[t]===255&&e[t+1]!==0)break;t+=1}while(t<e.length-2);if(h=0,te=e[t]<<8|e[t+1],te<65280)throw new Error("marker was not found");if(te>=65488&&te<=65495)t+=2;else break}return t-f}function DA(e){var t=[],r=e.blocksPerLine,n=e.blocksPerColumn,a=r<<3,i=new Int32Array(64),o=new Uint8Array(64);function l(x,g,m){for(var y=e.quantizationTable,v=m,k=0;k<64;k++)v[k]=x[k]*y[k];for(var k=0;k<8;++k){var C=8*k;if(v[1+C]==0&&v[2+C]==0&&v[3+C]==0&&v[4+C]==0&&v[5+C]==0&&v[6+C]==0&&v[7+C]==0){var A=zo*v[0+C]+512>>10;v[0+C]=A,v[1+C]=A,v[2+C]=A,v[3+C]=A,v[4+C]=A,v[5+C]=A,v[6+C]=A,v[7+C]=A;continue}var _=zo*v[0+C]+128>>8,E=zo*v[4+C]+128>>8,M=v[2+C],z=v[6+C],R=W0*(v[1+C]-v[7+C])+128>>8,O=W0*(v[1+C]+v[7+C])+128>>8,H=v[3+C]<<4,Z=v[5+C]<<4,q=_-E+1>>1;_=_+E+1>>1,E=q,q=M*q0+z*V0+128>>8,M=M*V0-z*q0+128>>8,z=q,q=R-Z+1>>1,R=R+Z+1>>1,Z=q,q=O+H+1>>1,H=O-H+1>>1,O=q,q=_-z+1>>1,_=_+z+1>>1,z=q,q=E-M+1>>1,E=E+M+1>>1,M=q,q=R*G0+O*j0+2048>>12,R=R*j0-O*G0+2048>>12,O=q,q=H*H0+Z*U0+2048>>12,H=H*U0-Z*H0+2048>>12,Z=q,v[0+C]=_+O,v[7+C]=_-O,v[1+C]=E+Z,v[6+C]=E-Z,v[2+C]=M+H,v[5+C]=M-H,v[3+C]=z+R,v[4+C]=z-R}for(var k=0;k<8;++k){var X=k;if(v[1*8+X]==0&&v[2*8+X]==0&&v[3*8+X]==0&&v[4*8+X]==0&&v[5*8+X]==0&&v[6*8+X]==0&&v[7*8+X]==0){var Q=zo*m[k+0]+8192>>14;v[0*8+X]=Q,v[1*8+X]=Q,v[2*8+X]=Q,v[3*8+X]=Q,v[4*8+X]=Q,v[5*8+X]=Q,v[6*8+X]=Q,v[7*8+X]=Q;continue}var _=zo*v[0*8+X]+2048>>12,E=zo*v[4*8+X]+2048>>12,M=v[2*8+X],z=v[6*8+X],R=W0*(v[1*8+X]-v[7*8+X])+2048>>12,O=W0*(v[1*8+X]+v[7*8+X])+2048>>12,H=v[3*8+X],Z=v[5*8+X],q=_-E+1>>1;_=_+E+1>>1,E=q,q=M*q0+z*V0+2048>>12,M=M*V0-z*q0+2048>>12,z=q,q=R-Z+1>>1,R=R+Z+1>>1,Z=q,q=O+H+1>>1,H=O-H+1>>1,O=q,q=_-z+1>>1,_=_+z+1>>1,z=q,q=E-M+1>>1,E=E+M+1>>1,M=q,q=R*G0+O*j0+2048>>12,R=R*j0-O*G0+2048>>12,O=q,q=H*H0+Z*U0+2048>>12,H=H*U0-Z*H0+2048>>12,Z=q,v[0*8+X]=_+O,v[7*8+X]=_-O,v[1*8+X]=E+Z,v[6*8+X]=E-Z,v[2*8+X]=M+H,v[5*8+X]=M-H,v[3*8+X]=z+R,v[4*8+X]=z-R}for(var k=0;k<64;++k){var te=128+(v[k]+8>>4);g[k]=te<0?0:te>255?255:te}}Fo(a*n*8);for(var s=0;s<n;s++){for(var u=s<<3,c=0;c<8;c++)t.push(new Uint8Array(a));for(var f=0;f<r;f++){l(e.blocks[s][f],o,i);for(var d=0,h=f<<3,b=0;b<8;b++)for(var p=t[u+b],c=0;c<8;c++)p[h+c]=o[d++]}}return t}function Ha(e){return e<0?0:e>255?255:e}function IA(e){var t={width:0,height:0,comments:[],adobe:void 0,components:[],exifBuffer:void 0,jfif:void 0},r=EA*1e3*1e3,n=0;function a(){var de=e[n]<<8|e[n+1];return n+=2,de}function i(){var de=a(),ee=e.subarray(n,n+de-2);return n+=ee.length,ee}function o(de){var ee=0,ie=0;for(var ue in de.components)if(de.components.hasOwnProperty(ue)){var ve=de.components[ue];ee<ve.h&&(ee=ve.h),ie<ve.v&&(ie=ve.v)}var Ce=Math.ceil(de.samplesPerLine/8/ee),xe=Math.ceil(de.scanLines/8/ie);for(var ue in de.components)if(de.components.hasOwnProperty(ue)){var ve=de.components[ue],je=Math.ceil(Math.ceil(de.samplesPerLine/8)*ve.h/ee),Ne=Math.ceil(Math.ceil(de.scanLines/8)*ve.v/ie),Ue=Ce*ve.h,Ke=xe*ve.v,at=Ke*Ue,ut=[];Fo(at*256);for(var st=0;st<Ke;st++){for(var yt=[],Ie=0;Ie<Ue;Ie++)yt.push(new Int32Array(64));ut.push(yt)}ve.blocksPerLine=je,ve.blocksPerColumn=Ne,ve.blocks=ut}de.maxH=ee,de.maxV=ie,de.mcusPerLine=Ce,de.mcusPerColumn=xe}var l=null,s=null,u=void 0,c=0,f=[],d=[],h=[],b=[],p=a(),x=-1;if(p!=65496)throw new Error("SOI not found");for(p=a();p!=65497;){switch(p){case 65280:break;case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:{var g=i();if(p===65534){for(var m="",y=0;y<g.byteLength;y++)m+=String.fromCharCode(g[y]);t.comments.push(m)}p===65504&&g[0]===74&&g[1]===70&&g[2]===73&&g[3]===70&&g[4]===0&&(l={version:{major:g[5],minor:g[6]},densityUnits:g[7],xDensity:g[8]<<8|g[9],yDensity:g[10]<<8|g[11],thumbWidth:g[12],thumbHeight:g[13],thumbData:g.subarray(14,14+3*g[12]*g[13])}),p===65505&&g[0]===69&&g[1]===120&&g[2]===105&&g[3]===102&&g[4]===0&&(t.exifBuffer=g.subarray(5,g.length)),p===65518&&g[0]===65&&g[1]===100&&g[2]===111&&g[3]===98&&g[4]===101&&g[5]===0&&(s={version:g[6],flags0:g[7]<<8|g[8],flags1:g[9]<<8|g[10],transformCode:g[11]});break}case 65499:{for(var v=a(),k=v+n-2;n<k;){var C=e[n++];Fo(64*4);var A=new Int32Array(64);if(C>>4)if(C>>4===1)for(var _=0;_<64;_++){var E=Wl[_];A[E]=a()}else throw new Error("DQT: invalid table spec");else for(var _=0;_<64;_++){var E=Wl[_];A[E]=e[n++]}f[C&15]=A}break}case 65472:case 65473:case 65474:{a(),u={extended:p===65473,progressive:p===65474,precision:e[n++],scanLines:a(),samplesPerLine:a(),components:{},componentsOrder:[],maxH:0,maxV:0,mcusPerLine:0,mcusPerColumn:0};var M=u.scanLines*u.samplesPerLine;if(M>r){var z=Math.ceil((M-r)/1e6);throw new Error("maxResolutionInMP limit exceeded by ".concat(z,"MP"))}for(var R=e[n++],O=0;O<R;O++){var H=e[n],Z=e[n+1]>>4,q=e[n+1]&15,X=e[n+2];u.componentsOrder.push(H),u.components[H]={h:Z,v:q,quantizationIdx:X,blocksPerColumn:0,blocksPerLine:0,blocks:[],pred:0},n+=3}o(u),d.push(u);break}case 65476:{for(var Q=a(),O=2;O<Q;){for(var te=e[n++],_e=new Uint8Array(16),he=0,_=0;_<16;_++,n++)he+=_e[_]=e[n];Fo(16+he);for(var we=new Uint8Array(he),_=0;_<he;_++,n++)we[_]=e[n];O+=17+he;var pe=te&15,De=te>>4?h:b;De[pe]=TA(_e,we)}break}case 65501:a(),c=a();break;case 65500:a(),a();break;case 65498:{a();for(var Ee=e[n++],Oe=[],O=0;O<Ee;O++){var Pe=u.components[e[n++]],Me=e[n++];Pe.huffmanTableDC=b[Me>>4],Pe.huffmanTableAC=h[Me&15],Oe.push(Pe)}var ce=e[n++],ye=e[n++],ge=e[n++],B=MA(e,n,u,Oe,c,ce,ye,ge>>4,ge&15);n+=B;break}case 65535:e[n]!==255&&n--;break;default:{if(e[n-3]==255&&e[n-2]>=192&&e[n-2]<=254){n-=3;break}else if(p===224||p==225){if(x!==-1)throw new Error("first unknown JPEG marker at offset ".concat(x.toString(16),", second unknown JPEG marker ").concat(p.toString(16)," at offset ").concat((n-1).toString(16)));x=n-1;var V=a();if(e[n+V-2]===255){n+=V-2;break}}throw new Error("unknown JPEG marker "+p.toString(16))}}p=a()}if(d.length!=1)throw new Error("only single frame JPEGs supported");for(var O=0;O<d.length;O++){var oe=d[O].components;for(var _ in oe)oe[_].quantizationTable=f[oe[_].quantizationIdx],delete oe[_].quantizationIdx}t.width=u.samplesPerLine,t.height=u.scanLines,t.jfif=l,t.adobe=s,t.components=[];for(var O=0;O<u.componentsOrder.length;O++){var Pe=u.components[u.componentsOrder[O]];t.components.push({lines:DA(Pe),scaleX:Pe.h/u.maxH,scaleY:Pe.v/u.maxV})}return t}function zA(e){var t=0,r=!1,n=e.width,a=e.height,i=n*a*e.components.length;Fo(i);var o=new Uint8Array(i);switch(e.components.length){case 1:{for(var l=e.components[0],s=0;s<a;s++)for(var u=l.lines[0|s*l.scaleY],c=0;c<n;c++){var f=u[0|c*l.scaleX];o[t++]=f}break}case 2:{for(var l=e.components[0],d=e.components[1],s=0;s<a;s++)for(var u=l.lines[0|s*l.scaleY],h=d.lines[0|s*d.scaleY],c=0;c<n;c++){var b=u[0|c*l.scaleX];o[t++]=b;var p=h[0|c*d.scaleX];o[t++]=p}break}case 3:{r=!0,e.adobe&&e.adobe.transformCode&&(r=!0);for(var l=e.components[0],d=e.components[1],x=e.components[2],s=0;s<a;s++)for(var u=l.lines[0|s*l.scaleY],h=d.lines[0|s*d.scaleY],g=x.lines[0|s*x.scaleY],c=0;c<n;c++){var f=void 0,m=void 0,y=void 0,v=void 0,k=void 0,C=void 0;r?(f=u[0|c*l.scaleX],m=h[0|c*d.scaleX],y=g[0|c*x.scaleX],v=Ha(f+1.402*(y-128)),k=Ha(f-.3441363*(m-128)-.71413636*(y-128)),C=Ha(f+1.772*(m-128))):(v=u[0|c*l.scaleX],k=h[0|c*d.scaleX],C=g[0|c*x.scaleX]),o[t++]=v,o[t++]=k,o[t++]=C}break}case 4:{if(!e.adobe)throw new Error("Unsupported color mode (4 components)");r=!1,e.adobe&&e.adobe.transformCode&&(r=!0);for(var l=e.components[0],d=e.components[1],x=e.components[2],A=e.components[3],s=0;s<a;s++)for(var u=l.lines[0|s*l.scaleY],h=d.lines[0|s*d.scaleY],g=x.lines[0|s*x.scaleY],_=A.lines[0|s*A.scaleY],c=0;c<n;c++){var f=void 0,m=void 0,y=void 0,E=void 0,M=void 0,z=void 0,R=void 0;r?(f=u[0|c*l.scaleX],m=h[0|c*d.scaleX],y=g[0|c*x.scaleX],E=_[0|c*A.scaleX],M=255-Ha(f+1.402*(y-128)),z=255-Ha(f-.3441363*(m-128)-.71413636*(y-128)),R=255-Ha(f+1.772*(m-128))):(M=u[0|c*l.scaleX],z=h[0|c*d.scaleX],R=g[0|c*x.scaleX],E=_[0|c*A.scaleX]),o[t++]=255-M,o[t++]=255-z,o[t++]=255-R,o[t++]=255-E}break}default:throw new Error("Unsupported color mode")}return o}function FA(e,t){if(Yf=0,e.length===0)throw new Error("Empty jpeg buffer");var r=IA(e);Fo(r.width*r.height*4);var n=zA(r),a=t(r.width,r.height),i=a.width,o=a.height,l=a.data,s=0,u=0;switch(r.components.length){case 1:for(var c=0;c<o;c++)for(var f=0;f<i;f++){var d=n[s++];l[u++]=d,l[u++]=d,l[u++]=d,l[u++]=255}break;case 3:for(var c=0;c<o;c++)for(var f=0;f<i;f++){var h=n[s++],b=n[s++],p=n[s++];l[u++]=h,l[u++]=b,l[u++]=p,l[u++]=255}break;case 4:for(var c=0;c<o;c++)for(var f=0;f<i;f++){var x=n[s++],g=n[s++],d=n[s++],m=n[s++],h=255-Ha(x*(1-m/255)+m),b=255-Ha(g*(1-m/255)+m),p=255-Ha(d*(1-m/255)+m);l[u++]=h,l[u++]=b,l[u++]=p,l[u++]=255}break;default:throw new Error("Unsupported color mode")}return a}var OA=!1,K0={},Oo={pass:"pass through",norm:"normal",diss:"dissolve",dark:"darken","mul ":"multiply",idiv:"color burn",lbrn:"linear burn",dkCl:"darker color",lite:"lighten",scrn:"screen","div ":"color dodge",lddg:"linear dodge",lgCl:"lighter color",over:"overlay",sLit:"soft light",hLit:"hard light",vLit:"vivid light",lLit:"linear light",pLit:"pin light",hMix:"hard mix",diff:"difference",smud:"exclusion",fsub:"subtract",fdiv:"divide","hue ":"hue","sat ":"saturation",colr:"color","lum ":"luminosity"};Object.keys(Oo).forEach(function(e){return K0[Oo[e]]=e});var V4=["none","red","orange","yellow","green","blue","violet","gray"],q4=["LMsk","Lr16","Lr32","Layr","Mt16","Mt32","Mtrn","Alph","FMsk","lnk2","FEid","FXid","PxSD","cinf"];function PA(e){var t={};return Object.keys(e).forEach(function(r){return t[e[r]]=r}),t}function mt(e,t,r){var n=PA(r),a=function(o){var l=o.split(".")[1];if(l&&!n[l])throw new Error("Unrecognized value for enum: '".concat(o,"'"));return n[l]||t},i=function(o){if(o&&!r[o])throw new Error("Invalid value for enum: '".concat(o,"'"));return"".concat(e,".").concat(r[o]||r[t])};return{decode:a,encode:i}}var W4;(function(e){e[e.RGB=0]="RGB",e[e.HSB=1]="HSB",e[e.CMYK=2]="CMYK",e[e.Lab=7]="Lab",e[e.Grayscale=8]="Grayscale"})(W4||(W4={}));var K4;(function(e){e[e.PositionRelativeToLayer=1]="PositionRelativeToLayer",e[e.LayerMaskDisabled=2]="LayerMaskDisabled",e[e.InvertLayerMaskWhenBlending=4]="InvertLayerMaskWhenBlending",e[e.LayerMaskFromRenderingOtherData=8]="LayerMaskFromRenderingOtherData",e[e.MaskHasParametersAppliedToIt=16]="MaskHasParametersAppliedToIt"})(K4||(K4={}));var X4;(function(e){e[e.UserMaskDensity=1]="UserMaskDensity",e[e.UserMaskFeather=2]="UserMaskFeather",e[e.VectorMaskDensity=4]="VectorMaskDensity",e[e.VectorMaskFeather=8]="VectorMaskFeather"})(X4||(X4={}));function Y4(e,t){switch(e){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return t?3:e+1;case-1:return t?4:3;default:return e+1}}function Zf(e,t,r){return e<t?t:e>r?r:e}function Z4(e){for(var t=e.width*e.height*4,r=3;r<t;r+=4)if(e.data[r]!==255)return!0;return!1}function RA(e){for(var t=e.data,r=t instanceof Float32Array?1:t instanceof Uint16Array?65535:255,n=0,a=t.length|0;n<a;n=n+4|0)t[n+0]=0,t[n+1]=0,t[n+2]=0,t[n+3]=r}function X0(e){var t=Po(e.width,e.height),r;if(e.data instanceof Uint8ClampedArray)r=e;else{r=Ro(e.width,e.height);var n=e.data,a=r.data;if(n instanceof Float32Array)for(var i=0,o=n.length;i<o;i+=4)a[i+0]=Math.round(Math.pow(n[i+0],1/2.2)*255),a[i+1]=Math.round(Math.pow(n[i+1],1/2.2)*255),a[i+2]=Math.round(Math.pow(n[i+2],1/2.2)*255),a[i+3]=Math.round(n[i+3]*255);else for(var l=n instanceof Uint16Array?8:0,i=0,o=n.length;i<o;i++)a[i]=n[i]>>>l}return t.getContext("2d").putImageData(r,0,0),t}function LA(e,t,r,n){if(!(e instanceof Uint8Array||e instanceof Uint8ClampedArray))throw new Error("Invalid bit depth");for(var a=0,i=0,o=0;a<n;a++)for(var l=0;l<r;)for(var s=e[o++],u=0;u<8&&l<r;u++,l++,i+=4){var c=s&128?0:255;s=s<<1,t[i+0]=c,t[i+1]=c,t[i+2]=c,t[i+3]=255}}function Jf(e,t,r,n){var a=t.data,i=t.width,o=t.height;if(!(!i||!o)){for(var l=4*i|0,s=0,u=r.length*(n?4:2)*o|0,c=0,f=r;c<f.length;c++)for(var d=f[c],h=0,b=d|0;h<o;h++){var p=h*l|0,x=p+l|0,g=x+d-4|0,m=g-4|0,y=u;for(b=p+d|0;b<x;b=b+4|0)if(b<m){var v=a[b];b=b+4|0;var k=a[b];b=b+4|0;var C=a[b];if(v===k&&v===C){for(var A=3;A<128&&b<g&&a[b+4|0]===v;)A=A+1|0,b=b+4|0;e[u++]=1-A,e[u++]=v}else{var _=u,E=!0,A=1;for(e[u++]=0,e[u++]=v;b<g&&A<128;)if(b=b+4|0,v=k,k=C,C=a[b],v===k&&v===C){b=b-12|0,E=!1;break}else A++,e[u++]=v;E&&(A<127?(e[u++]=k,e[u++]=C,A+=2):A<128?(e[u++]=k,A++,b=b-4|0):b=b-8|0),e[_]=A-1}}else b===g?(e[u++]=0,e[u++]=a[b]):(e[u++]=1,e[u++]=a[b],b=b+4|0,e[u++]=a[b]);var M=u-y;n&&(e[s++]=M>>24&255,e[s++]=M>>16&255),e[s++]=M>>8&255,e[s++]=M&255}return e.slice(0,u)}}function J4(e,t){for(var r=e.data,n=e.width,a=e.height,i=n*a,o=new Uint8Array(i),l=[],s=0,u=0,c=t;u<c.length;u++){for(var f=c[u],d=0,h=f;d<i;d++,h+=4)o[d]=r[h];var b=CA(o);l.push(b),s+=b.byteLength}if(l.length>0){for(var b=new Uint8Array(s),f=0,p=0,x=l;p<x.length;p++){var g=x[p];b.set(g,f),f+=g.byteLength}return b}else return l[0]}function BA(e){var t=Po(100,100);try{var r=t.getContext("2d"),n=FA(e,function(a,i){return r.createImageData(a,i)});t.width=n.width,t.height=n.height,r.putImageData(n,0,0)}catch(a){console.error("JPEG decompression error",a.message)}return t}var Po=function(){throw new Error("Canvas not initialized, use initializeCanvas method to set up createCanvas method")},Qf=void 0,Ro=function(e,t){return Qf||(Qf=Po(1,1)),Qf.getContext("2d").createImageData(e,t)};typeof document<"u"&&(Po=function(e,t){var r=document.createElement("canvas");return r.width=e,r.height=t,r});function NA(e,t){Po=e,Ro=t||Ro}for(var Q4=GA,e2=WA,xa=[],Pn=[],$A=typeof Uint8Array<"u"?Uint8Array:Array,ed="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lo=0,UA=ed.length;Lo<UA;++Lo)xa[Lo]=ed[Lo],Pn[ed.charCodeAt(Lo)]=Lo;Pn[45]=62,Pn[95]=63;function HA(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function jA(e,t,r){return(t+r)*3/4-r}function GA(e){var t,r=HA(e),n=r[0],a=r[1],i=new $A(jA(e,n,a)),o=0,l=a>0?n-4:n,s;for(s=0;s<l;s+=4)t=Pn[e.charCodeAt(s)]<<18|Pn[e.charCodeAt(s+1)]<<12|Pn[e.charCodeAt(s+2)]<<6|Pn[e.charCodeAt(s+3)],i[o++]=t>>16&255,i[o++]=t>>8&255,i[o++]=t&255;return a===2&&(t=Pn[e.charCodeAt(s)]<<2|Pn[e.charCodeAt(s+1)]>>4,i[o++]=t&255),a===1&&(t=Pn[e.charCodeAt(s)]<<10|Pn[e.charCodeAt(s+1)]<<4|Pn[e.charCodeAt(s+2)]>>2,i[o++]=t>>8&255,i[o++]=t&255),i}function VA(e){return xa[e>>18&63]+xa[e>>12&63]+xa[e>>6&63]+xa[e&63]}function qA(e,t,r){for(var n,a=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),a.push(VA(n));return a.join("")}function WA(e){for(var t,r=e.length,n=r%3,a=[],i=16383,o=0,l=r-n;o<l;o+=i)a.push(qA(e,o,o+i>l?l:o+i));return n===1?(t=e[r-1],a.push(xa[t>>2]+xa[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],a.push(xa[t>>10]+xa[t>>4&63]+xa[t<<2&63]+"=")),a.join("")}function td(e){return e&4294967168?e&4294965248?e&4294901760?4:3:2:1}function KA(e){for(var t=0,r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n>=55296&&n<=56319){if(r+1<e.length){var a=e.charCodeAt(r+1);(a&64512)===56320&&(r++,t+=td(((n&1023)<<10)+(a&1023)+65536))}}else t+=td(n)}return t}function t2(e,t,r){var n=td(r);switch(n){case 1:e[t]=r;break;case 2:e[t]=r>>6&31|192,e[t+1]=r&63|128;break;case 3:e[t]=r>>12&15|224,e[t+1]=r>>6&63|128,e[t+2]=r&63|128;break;default:e[t]=r>>18&7|240,e[t+1]=r>>12&63|128,e[t+2]=r>>6&63|128,e[t+3]=r&63|128;break}return n}function XA(e,t,r){for(var n=0;n<r.length;n++){var a=r.charCodeAt(n);if(a>=55296&&a<=56319){if(n+1<r.length){var i=r.charCodeAt(n+1);if((i&64512)===56320){n++;var o=((a&1023)<<10)+(i&1023)+65536;t+=t2(e,t,o)}}}else t+=t2(e,t,a)}return t}function r2(e){if(e.length>1e3&&typeof TextEncoder<"u")return new TextEncoder().encode(e);var t=new Uint8Array(KA(e));return XA(t,0,e),t}function Bo(e,t){if(t>=e.length)throw Error("Invalid byte index");var r=e[t];if((r&192)===128)return r&63;throw Error("Invalid continuation byte")}function n2(e){if(e.byteLength>1e3&&typeof TextDecoder<"u")return new TextDecoder().decode(e);for(var t=[],r=0;r<e.length;){var n=e[r++],a=void 0;if(!(n&128))a=n;else if((n&224)===192){var i=Bo(e,r++);if(a=(n&31)<<6|i,a<128)throw Error("Invalid continuation byte")}else if((n&240)===224){var i=Bo(e,r++),o=Bo(e,r++);if(a=(n&15)<<12|i<<6|o,a<2048)throw Error("Invalid continuation byte");if(a>=55296&&a<=57343)throw Error("Lone surrogate U+".concat(a.toString(16).toUpperCase()," is not a scalar value"))}else if((n&248)===240){var i=Bo(e,r++),o=Bo(e,r++),l=Bo(e,r++);if(a=(n&15)<<18|i<<12|o<<6|l,a<65536||a>1114111)throw Error("Invalid continuation byte")}else throw Error("Invalid UTF-8 detected");a>65535&&(a-=65536,t.push(String.fromCharCode(a>>>10&1023|55296)),a=56320|a&1023),t.push(String.fromCharCode(a))}return t.join("")}var ja=function(){return ja=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ja.apply(this,arguments)},YA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function ZA(e){var t={};return Object.keys(e).forEach(function(r){return t[e[r]]=r}),t}var Kl={"#Ang":"Angle","#Rsl":"Density","#Rlt":"Distance","#Nne":"None","#Prc":"Percent","#Pxl":"Pixels","#Mlm":"Millimeters","#Pnt":"Points",RrPi:"Picas",RrIn:"Inches",RrCm:"Centimeters"},Y0=ZA(Kl);function Je(e,t){return{name:e,classID:t}}for(var Dt=Je("","null"),a2={strokeStyleContent:Je("","solidColorLayer"),printProofSetup:Je("Proof Setup","proofSetup"),Grad:Je("Gradient","Grdn"),Trnf:Je("Transform","Trnf"),patternFill:Je("","patternFill"),ebbl:Je("","ebbl"),SoFi:Je("","SoFi"),GrFl:Je("","GrFl"),sdwC:Je("","RGBC"),hglC:Je("","RGBC"),"Clr ":Je("","RGBC"),tintColor:Je("","RGBC"),Ofst:Je("","Pnt "),ChFX:Je("","ChFX"),MpgS:Je("","ShpC"),DrSh:Je("","DrSh"),IrSh:Je("","IrSh"),OrGl:Je("","OrGl"),IrGl:Je("","IrGl"),TrnS:Je("","ShpC"),Ptrn:Je("","Ptrn"),FrFX:Je("","FrFX"),phase:Je("","Pnt "),frameStep:Dt,duration:Dt,workInTime:Dt,workOutTime:Dt,audioClipGroupList:Dt,bounds:Je("","Rctn"),customEnvelopeWarp:Je("","customEnvelopeWarp"),warp:Je("","warp"),"Sz ":Je("","Pnt "),origin:Je("","Pnt "),autoExpandOffset:Je("","Pnt "),keyOriginShapeBBox:Je("","unitRect"),Vrsn:Dt,psVersion:Dt,docDefaultNewArtboardBackgroundColor:Je("","RGBC"),artboardRect:Je("","classFloatRect"),keyOriginRRectRadii:Je("","radii"),keyOriginBoxCorners:Dt,rectangleCornerA:Je("","Pnt "),rectangleCornerB:Je("","Pnt "),rectangleCornerC:Je("","Pnt "),rectangleCornerD:Je("","Pnt "),compInfo:Dt,quiltWarp:Je("","quiltWarp"),generatorSettings:Dt,crema:Dt,FrIn:Dt,blendOptions:Dt,FXRf:Dt,Lefx:Dt,time:Dt,animKey:Dt,timeScope:Dt,inTime:Dt,outTime:Dt,sheetStyle:Dt,translation:Dt,Skew:Dt,boundingBox:Je("","boundingBox"),"Lnk ":Je("","ExternalFileLink"),frameReader:Je("","FrameReader"),effectParams:Je("","motionTrackEffectParams"),Impr:Je("None","none"),Anch:Je("","Pnt "),"Fwd ":Je("","Pnt "),"Bwd ":Je("","Pnt "),FlrC:Je("","Pnt "),meshBoundaryPath:Je("","pathClass"),filterFX:Je("","filterFXStyle"),Fltr:Je("","rigidTransform"),FrgC:Je("","RGBC"),BckC:Je("","RGBC"),sdwM:Je("Parameters","adaptCorrectTones"),hglM:Je("Parameters","adaptCorrectTones"),customShape:Je("","customShape"),origFXRefPoint:Dt,FXRefPoint:Dt,ClMg:Je("","ClMg")},i2={"Crv ":Je("","CrPt"),Clrs:Je("","Clrt"),Trns:Je("","TrnS"),keyDescriptorList:Dt,solidFillMulti:Je("","SoFi"),gradientFillMulti:Je("","GrFl"),dropShadowMulti:Je("","DrSh"),innerShadowMulti:Je("","IrSh"),frameFXMulti:Je("","FrFX"),FrIn:Dt,FSts:Dt,LaSt:Dt,sheetTimelineOptions:Dt,trackList:Je("","animationTrack"),globalTrackList:Je("","animationTrack"),keyList:Dt,audioClipGroupList:Dt,audioClipList:Dt,countObjectList:Je("","countObject"),countGroupList:Je("","countGroup"),slices:Je("","slice"),"Pts ":Je("","Pthp"),SbpL:Je("","SbpL"),pathComponents:Je("","PaCm"),filterFXList:Je("","filterFX"),puppetShapeList:Je("","puppetShape"),channelDenoise:Je("","channelDenoiseParams"),ShrP:Je("","Pnt "),layerSettings:Dt,list:Dt,Adjs:Je("","CrvA")},o2={TEXT:["Txt ","printerName","Nm ","Idnt","blackAndWhitePresetFileName","LUT3DFileName","presetFileName","curvesPresetFileName","mixerPresetFileName","placed","description","reason","artboardPresetName","json","clipID","relPath","fullPath","mediaDescriptor","Msge","altTag","url","cellText","preset","KnNm","FPth","comment","originalPath"],tdta:["EngineData","LUT3DFileData","indexArray","originalVertexArray","deformedVertexArray","LqMe"],long:["TextIndex","RndS","Mdpn","Smth","Lctn","strokeStyleVersion","LaID","Vrsn","Cnt ","Brgh","Cntr","means","vibrance","Strt","bwPresetKind","comp","compID","originalCompID","curvesPresetKind","mixerPresetKind","uOrder","vOrder","PgNm","totalPages","Crop","numerator","denominator","frameCount","Annt","keyOriginType","unitValueQuadVersion","keyOriginIndex","major","minor","fix","docDefaultNewArtboardBackgroundType","artboardBackgroundType","numModifyingFX","deformNumRows","deformNumCols","FrID","FrDl","FsID","LCnt","AFrm","AFSt","numBefore","numAfter","Spcn","minOpacity","maxOpacity","BlnM","sheetID","gblA","globalAltitude","descVersion","frameReaderType","LyrI","zoomOrigin","fontSize","Rds ","sliceID","topOutset","leftOutset","bottomOutset","rightOutset","filterID","meshQuality","meshExpansion","meshRigidity","VrsM","VrsN","NmbG","WLMn","WLMx","AmMn","AmMx","SclH","SclV","Lvl ","TlNm","TlOf","FlRs","Thsh","ShrS","ShrE","FlRs","Vrnc","Strg","ExtS","ExtD","HrzS","VrtS","NmbR","EdgF","Ang1","Ang2","Ang3","Ang4","lastAppliedComp","capturedInfo"],enum:["textGridding","Ornt","warpStyle","warpRotate","Inte","Bltn","ClrS","BlrQ","bvlT","bvlS","bvlD","Md ","glwS","GrdF","GlwT","RplS","BlrM","SmBM","strokeStyleLineCapType","strokeStyleLineJoinType","strokeStyleLineAlignment","strokeStyleBlendMode","PntT","Styl","lookupType","LUTFormat","dataOrder","tableOrder","enableCompCore","enableCompCoreGPU","compCoreSupport","compCoreGPUSupport","Engn","enableCompCoreThreads","gs99","FrDs","trackID","animInterpStyle","horzAlign","vertAlign","bgColorType","shapeOperation","UndA","Wvtp","Drct","WndM","Edg ","FlCl","IntE","IntC","Cnvr","Fl ","Dstr","MztT","Lns ","ExtT","DspM","ExtR","ZZTy","SphM","SmBQ","placedLayerOCIOConversion","gradientsInterpolationMethod"],bool:["PstS","printSixteenBit","masterFXSwitch","enab","uglg","antialiasGloss","useShape","useTexture","uglg","antialiasGloss","useShape","Vsbl","useTexture","Algn","Rvrs","Dthr","Invr","VctC","ShTr","layerConceals","strokeEnabled","fillEnabled","strokeStyleScaleLock","strokeStyleStrokeAdjust","hardProof","MpBl","paperWhite","useLegacy","Auto","Lab ","useTint","keyShapeInvalidated","autoExpandEnabled","autoNestEnabled","autoPositionEnabled","shrinkwrapOnSaveEnabled","present","showInDialog","overprint","sheetDisclosed","lightsDisclosed","meshesDisclosed","materialsDisclosed","hasMotion","muted","Effc","selected","autoScope","fillCanvas","cellTextIsHTML","Smoo","Clsp","validAtPosition","rigidType","hasoptions","filterMaskEnable","filterMaskLinked","filterMaskExtendWithWhite","removeJPEGArtifact","Mnch","ExtF","ExtM","moreAccurate","GpuY","LIWy","Cnty"],doub:["warpValue","warpPerspective","warpPerspectiveOther","Intr","Wdth","Hght","strokeStyleMiterLimit","strokeStyleResolution","layerTime","keyOriginResolution","xx","xy","yx","yy","tx","ty","FrGA","frameRate","audioLevel","rotation","X ","Y ","redFloat","greenFloat","blueFloat","imageResolution","PuX0","PuX1","PuX2","PuX3","PuY0","PuY1","PuY2","PuY3"],UntF:["sdwO","hglO","lagl","Lald","srgR","blur","Sftn","Opct","Dstn","Angl","Ckmt","Nose","Inpr","ShdN","strokeStyleLineWidth","strokeStyleLineDashOffset","strokeStyleOpacity","H ","Top ","Left","Btom","Rght","Rslt","topRight","topLeft","bottomLeft","bottomRight","ClNs","Shrp"],VlLs:["Crv ","Clrs","Mnm ","Mxm ","Trns","pathList","strokeStyleLineDashSet","FrLs","slices","LaSt","Trnf","nonAffineTransform","keyDescriptorList","guideIndeces","gradientFillMulti","solidFillMulti","frameFXMulti","innerShadowMulti","dropShadowMulti","FrIn","FSts","FsFr","sheetTimelineOptions","audioClipList","trackList","globalTrackList","keyList","audioClipList","warpValues","selectedPin","Pts ","SbpL","pathComponents","pinOffsets","posFinalPins","pinVertexIndices","PinP","PnRt","PnOv","PnDp","filterFXList","puppetShapeList","ShrP","channelDenoise","Mtrx","layerSettings","list","compList","Adjs"],ObAr:["meshPoints","quiltSliceX","quiltSliceY"],"obj ":["null","Chnl"],"Pth ":["DspF"]},JA=["Rd ","Grn ","Bl ","Yllw","Ylw ","Cyn ","Mgnt","Blck","Gry ","Lmnc","A ","B "],l2={"Mnm ":"long","Mxm ":"long",FrLs:"long",strokeStyleLineDashSet:"UntF",Trnf:"doub",nonAffineTransform:"doub",keyDescriptorList:"Objc",gradientFillMulti:"Objc",solidFillMulti:"Objc",frameFXMulti:"Objc",innerShadowMulti:"Objc",dropShadowMulti:"Objc",LaSt:"Objc",FrIn:"Objc",FSts:"Objc",FsFr:"long",blendOptions:"Objc",sheetTimelineOptions:"Objc",keyList:"Objc",warpValues:"doub",selectedPin:"long","Pts ":"Objc",SbpL:"Objc",pathComponents:"Objc",pinOffsets:"doub",posFinalPins:"doub",pinVertexIndices:"long",PinP:"doub",PnRt:"long",PnOv:"bool",PnDp:"doub",filterFXList:"Objc",puppetShapeList:"Objc",ShrP:"Objc",channelDenoise:"Objc",Mtrx:"long",compList:"long",Chnl:"enum"},Z0={},rd=0,s2=Object.keys(o2);rd<s2.length;rd++)for(var u2=s2[rd],nd=0,c2=o2[u2];nd<c2.length;nd++){var No=c2[nd];Z0[No]=u2}for(var ad=0,f2=Object.keys(a2);ad<f2.length;ad++){var No=f2[ad];Z0[No]||(Z0[No]="Objc")}for(var id=0,d2=Object.keys(i2);id<d2.length;id++){var No=d2[id];l2[No]="Objc"}function QA(e,t,r,n){return e==="presetKind"?typeof t=="string"?"enum":"long":e==="null"&&r==="slices"?"TEXT":e==="groupID"?r==="slices"?"long":"TEXT":e==="Sz "?"Wdth"in t?"Objc":"units"in t?"UntF":"doub":e==="Type"?typeof t=="string"?"enum":"long":e==="AntA"?typeof t=="string"?"enum":"bool":(e==="Hrzn"||e==="Vrtc")&&(n.Type==="keyType.Pstn"||n._classID==="Ofst")?"long":e==="Hrzn"||e==="Vrtc"||e==="Top "||e==="Left"||e==="Btom"||e==="Rght"?r==="slices"?"long":typeof t=="number"?"doub":"UntF":e==="Vrsn"?typeof t=="number"?"long":"Objc":e==="Rd "||e==="Grn "||e==="Bl "?r==="artd"?"long":"doub":e==="Trnf"?Array.isArray(t)?"VlLs":"Objc":Z0[e]}function Ga(e){var t=it(e);return su(e,t||4)}function Va(e,t){if(t.length===4&&t!=="warp"&&t!=="time"&&t!=="hold"&&t!=="list")ht(e,0),vt(e,t);else{ht(e,t.length);for(var r=0;r<t.length;r++)qe(e,t.charCodeAt(r))}}function h2(e,t){for(var r=ji(e),n=t?{_name:r.name,_classID:r.classID}:{},a=Fe(e),i=0;i<a;i++){var o=Ga(e),l=qt(e),s=v2(e,l,t);n[o]=s}return n}function p2(e,t,r,n,a){qi(e,t),Va(e,r);var i=Object.keys(n),o=i.length;"_name"in n&&o--,"_classID"in n&&o--,Ze(e,o);for(var l=0,s=i;l<s.length;l++){var u=s[l];if(!(u==="_name"||u==="_classID")){var c=QA(u,n[u],a,n),f=a2[u];u==="bounds"&&a==="text"?f=Je("","bounds"):u==="origin"?c=a==="slices"?"enum":"Objc":(u==="Cyn "||u==="Mgnt"||u==="Ylw "||u==="Blck")&&n._classID==="CMYC"?c="doub":/^PN[a-z][a-z]$/.test(u)?c="TEXT":/^PT[a-z][a-z]$/.test(u)?c="long":/^PF[a-z][a-z]$/.test(u)||(u==="Rds "||u==="Thsh")&&typeof n[u]=="number"&&n._classID==="SmrB"?c="doub":u==="ClSz"||u==="Rds "||u==="Amnt"?c=typeof n[u]=="number"?"long":"UntF":(u==="sdwM"||u==="hglM")&&typeof n[u]=="string"||u==="blur"&&typeof n[u]=="string"?c="enum":u==="Hght"&&typeof n[u]=="number"&&n._classID==="Embs"||u==="Angl"&&typeof n[u]=="number"&&(n._classID==="Embs"||n._classID==="smartSharpen"||n._classID==="Twrl"||n._classID==="MtnB")?c="long":u==="Angl"&&typeof n[u]=="number"?c="doub":u==="bounds"&&a==="slices"?(c="Objc",f=Je("","Rct1")):u==="Scl "?typeof n[u]=="object"&&"Hrzn"in n[u]?(c="Objc",f=Dt):typeof n[u]=="number"?c="long":c="UntF":u==="audioClipGroupList"&&i.length===1?c="VlLs":(u==="Strt"||u==="Brgh")&&"H "in n?c="doub":u==="Wdth"&&typeof n[u]=="object"?c="UntF":u==="Ofst"&&typeof n[u]=="number"?c="long":u==="Strt"&&typeof n[u]=="object"?(c="Objc",f=Dt):JA.indexOf(u)!==-1?c=r==="RGBC"&&a!=="artd"?"doub":"long":u==="profile"?c=r==="printOutput"?"TEXT":"tdta":u==="strokeStyleContent"?n[u]["Clr "]?f=Je("","solidColorLayer"):n[u].Grad?f=Je("","gradientLayer"):n[u].Ptrn&&(f=Je("","patternLayer")):u==="bounds"&&a==="quiltWarp"&&(f=Je("","classFloatRect")),f&&f.classID==="RGBC"&&"H "in n[u]&&(f={classID:"HSBC",name:""}),Va(e,u),vt(e,c||"long"),m2(e,c||"long",n[u],u,f,a)}}}function v2(e,t,r){switch(t){case"obj ":return tE(e);case"Objc":case"GlbO":return h2(e,r);case"VlLs":{for(var n=it(e),a=[],i=0;i<n;i++){var o=qt(e);a.push(v2(e,o,r))}return a}case"doub":return Ln(e);case"UntF":{var l=qt(e),s=Ln(e);if(!Kl[l])throw new Error("Invalid units: ".concat(l));return{units:Kl[l],value:s}}case"UnFl":{var l=qt(e),s=qn(e);if(!Kl[l])throw new Error("Invalid units: ".concat(l));return{units:Kl[l],value:s}}case"TEXT":return xr(e);case"enum":{var u=Ga(e),s=Ga(e);return"".concat(u,".").concat(s)}case"long":return it(e);case"comp":{var c=Fe(e),f=Fe(e);return{low:c,high:f}}case"bool":return!!Ye(e);case"type":case"GlbC":return ji(e);case"alis":{var d=it(e);return su(e,d)}case"tdta":{var h=it(e);return hr(e,h)}case"ObAr":{it(e),xr(e),Ga(e);for(var b=it(e),a=[],i=0;i<b;i++){var p=Ga(e);qt(e),qt(e);for(var x=it(e),g=[],m=0;m<x;m++)g.push(Ln(e));a.push({type:p,values:g})}return a}case"Pth ":{it(e);var y=qt(e);Fg(e);var v=Fg(e),k=dE(e,v);return{sig:y,path:k}}default:throw new Error("Invalid TySh descriptor OSType: ".concat(t," at ").concat(e.offset.toString(16)))}}var eE={meshPoints:"rationalPoint",quiltSliceX:"UntF",quiltSliceY:"UntF"};function m2(e,t,r,n,a,i){switch(t){case"obj ":rE(e,n,r);break;case"Objc":case"GlbO":{if(typeof r!="object")throw new Error("Invalid struct value: ".concat(JSON.stringify(r),", key: ").concat(n));if(!a)throw new Error("Missing ext type for: '".concat(n,"' (").concat(JSON.stringify(r),")"));var o=r._name||a.name,l=r._classID||a.classID;p2(e,o,l,r,i);break}case"VlLs":if(!Array.isArray(r))throw new Error("Invalid list value: ".concat(JSON.stringify(r),", key: ").concat(n));ht(e,r.length);for(var s=0;s<r.length;s++){var u=l2[n];vt(e,u||"long"),m2(e,u||"long",r[s],"".concat(n,"[]"),i2[n],i)}break;case"doub":if(typeof r!="number")throw new Error("Invalid number value: ".concat(JSON.stringify(r),", key: ").concat(n));Bn(e,r);break;case"UntF":if(!Y0[r.units])throw new Error("Invalid units: ".concat(r.units," in ").concat(n));vt(e,Y0[r.units]),Bn(e,r.value);break;case"UnFl":if(!Y0[r.units])throw new Error("Invalid units: ".concat(r.units," in ").concat(n));vt(e,Y0[r.units]),Xn(e,r.value);break;case"TEXT":qi(e,r);break;case"enum":{if(typeof r!="string")throw new Error("Invalid enum value: ".concat(JSON.stringify(r),", key: ").concat(n));var c=r.split("."),f=c[0],d=c[1];Va(e,f),Va(e,d);break}case"long":if(typeof r!="number")throw new Error("Invalid integer value: ".concat(JSON.stringify(r),", key: ").concat(n));ht(e,r);break;case"bool":if(typeof r!="boolean")throw new Error("Invalid boolean value: ".concat(JSON.stringify(r),", key: ").concat(n));qe(e,r?1:0);break;case"tdta":ht(e,r.byteLength),Zn(e,r);break;case"ObAr":{ht(e,16),qi(e,"");var h=eE[n];if(!h)throw new Error("Not implemented ObArType for: ".concat(n));Va(e,h),ht(e,r.length);for(var s=0;s<r.length;s++){Va(e,r[s].type),vt(e,"UnFl"),vt(e,"#Pxl"),ht(e,r[s].values.length);for(var b=0;b<r[s].values.length;b++)Bn(e,r[s].values[b])}break}case"Pth ":{var p=12+r.path.length*2;ht(e,p),vt(e,r.sig),xb(e,p),xb(e,r.path.length),eT(e,r.path);break}default:throw new Error("Not implemented descriptor OSType: ".concat(t))}}function tE(e){for(var t=it(e),r=[],n=0;n<t;n++){var a=qt(e);switch(a){case"prop":{ji(e);var i=Ga(e);r.push(i);break}case"Clss":r.push(ji(e));break;case"Enmr":{ji(e);var o=Ga(e),l=Ga(e);r.push("".concat(o,".").concat(l));break}case"rele":{ji(e),r.push(Fe(e));break}case"Idnt":r.push(it(e));break;case"indx":r.push(it(e));break;case"name":{ji(e),r.push(xr(e));break}default:throw new Error("Invalid descriptor reference type: ".concat(a))}}return r}function rE(e,t,r){ht(e,r.length);for(var n=0;n<r.length;n++){var a=r[n],i="unknown";switch(typeof a=="string"&&(/^[a-z ]+\.[a-z ]+$/i.test(a)?i="Enmr":i="name"),vt(e,i),i){case"Enmr":{var o=a.split("."),l=o[0],s=o[1];g2(e,"\0",l),Va(e,l),Va(e,s);break}case"name":{g2(e,"\0","Lyr "),Cn(e,a+"\0");break}default:throw new Error("Invalid descriptor reference type: ".concat(i))}}return r}function ji(e){var t=xr(e),r=Ga(e);return{name:t,classID:r}}function g2(e,t,r){Cn(e,t),Va(e,r)}function Et(e,t){t===void 0&&(t=!1);var r=Fe(e);if(r!==16)throw new Error("Invalid descriptor version: ".concat(r));var n=h2(e,t);return n}function Mt(e,t,r,n,a){a===void 0&&(a=""),Ze(e,16),p2(e,t,r,n,a)}function Xl(e){return{x:e.Hrzn,y:e.Vrtc}}function Yl(e){return{Hrzn:e.x,Vrtc:e.y}}function b2(e){return{top:Nt(e["Top "]),left:Nt(e.Left),right:Nt(e.Rght),bottom:Nt(e.Btom)}}function y2(e){var t;return t={Left:Zt(e.left,"bounds.left")},t["Top "]=Zt(e.top,"bounds.top"),t.Rght=Zt(e.right,"bounds.right"),t.Btom=Zt(e.bottom,"bounds.bottom"),t}function x2(e){var t={enabled:!!e.enab,position:tu.decode(e.Styl),fillType:U2.decode(e.PntT),blendMode:an.decode(e["Md "]),opacity:dt(e.Opct),size:Nt(e["Sz "])};return e.present!==void 0&&(t.present=e.present),e.showInDialog!==void 0&&(t.showInDialog=e.showInDialog),e.overprint!==void 0&&(t.overprint=e.overprint),e["Clr "]&&(t.color=Gn(e["Clr "])),e.Grad&&(t.gradient=T2(e)),e.Ptrn&&(t.pattern=M2(e)),t}function _2(e){var t={};return t.enab=!!e.enabled,e.present!==void 0&&(t.present=!!e.present),e.showInDialog!==void 0&&(t.showInDialog=!!e.showInDialog),t.Styl=tu.encode(e.position),t.PntT=U2.encode(e.fillType),t["Md "]=an.encode(e.blendMode),t.Opct=Dr(e.opacity),t["Sz "]=Zt(e.size,"size"),e.color&&(t["Clr "]=Vn(e.color)),e.gradient&&(t=ja(ja({},t),D2(e.gradient))),e.pattern&&(t=ja(ja({},t),I2(e.pattern))),e.overprint!==void 0&&(t.overprint=!!e.overprint),t}function Zl(e,t,r){for(var n,a,i,o=r?{"Scl ":Rn((n=e.scale)!==null&&n!==void 0?n:1),masterFXSwitch:!e.disabled}:{masterFXSwitch:!e.disabled,"Scl ":Rn((a=e.scale)!==null&&a!==void 0?a:1)},l=["dropShadow","innerShadow","solidFill","gradientOverlay","stroke"],s=0,u=l;s<u.length;s++){var c=u[s];if(e[c]&&!Array.isArray(e[c]))throw new Error("".concat(c," should be an array"))}var f=function(y){return!!y&&y.length>1&&r},d=function(y){return!!y&&y.length>=1&&(!r||y.length===1)};if(d(e.dropShadow)&&(o.DrSh=xn(e.dropShadow[0],"dropShadow",t)),f(e.dropShadow)&&(o.dropShadowMulti=e.dropShadow.map(function(y){return xn(y,"dropShadow",t)})),d(e.innerShadow)&&(o.IrSh=xn(e.innerShadow[0],"innerShadow",t)),f(e.innerShadow)&&(o.innerShadowMulti=e.innerShadow.map(function(y){return xn(y,"innerShadow",t)})),e.outerGlow&&(o.OrGl=xn(e.outerGlow,"outerGlow",t)),f(e.solidFill)&&(o.solidFillMulti=e.solidFill.map(function(y){return xn(y,"solidFill",t)})),f(e.gradientOverlay)&&(o.gradientFillMulti=e.gradientOverlay.map(function(y){return xn(y,"gradientOverlay",t)})),f(e.stroke)&&(o.frameFXMulti=e.stroke.map(function(y){return _2(y)})),e.innerGlow&&(o.IrGl=xn(e.innerGlow,"innerGlow",t)),e.bevel&&(o.ebbl=xn(e.bevel,"bevel",t)),d(e.solidFill)&&(o.SoFi=xn(e.solidFill[0],"solidFill",t)),e.patternOverlay&&(o.patternFill=xn(e.patternOverlay,"patternOverlay",t)),d(e.gradientOverlay)&&(o.GrFl=xn(e.gradientOverlay[0],"gradientOverlay",t)),e.satin&&(o.ChFX=xn(e.satin,"satin",t)),d(e.stroke)&&(o.FrFX=_2((i=e.stroke)===null||i===void 0?void 0:i[0])),r){o.numModifyingFX=0;for(var h=0,b=Object.keys(e);h<b.length;h++){var c=b[h],p=e[c];if(Array.isArray(p))for(var x=0,g=p;x<g.length;x++){var m=g[x];m.enabled&&o.numModifyingFX++}else p.enabled&&o.numModifyingFX++}}return o}function Jl(e,t){var r={},n=e.masterFXSwitch,a=e.DrSh,i=e.dropShadowMulti,o=e.IrSh,l=e.innerShadowMulti,s=e.OrGl,u=e.IrGl,c=e.ebbl,f=e.SoFi,d=e.solidFillMulti,h=e.patternFill,b=e.GrFl,p=e.gradientFillMulti,x=e.ChFX,g=e.FrFX,m=e.frameFXMulti;e.numModifyingFX;var y=YA(e,["masterFXSwitch","DrSh","dropShadowMulti","IrSh","innerShadowMulti","OrGl","IrGl","ebbl","SoFi","solidFillMulti","patternFill","GrFl","gradientFillMulti","ChFX","FrFX","frameFXMulti","numModifyingFX"]);return n||(r.disabled=!0),e["Scl "]&&(r.scale=dt(e["Scl "])),a&&(r.dropShadow=[yn(a,t)]),i&&(r.dropShadow=i.map(function(v){return yn(v,t)})),o&&(r.innerShadow=[yn(o,t)]),l&&(r.innerShadow=l.map(function(v){return yn(v,t)})),s&&(r.outerGlow=yn(s,t)),u&&(r.innerGlow=yn(u,t)),c&&(r.bevel=yn(c,t)),f&&(r.solidFill=[yn(f,t)]),d&&(r.solidFill=d.map(function(v){return yn(v,t)})),h&&(r.patternOverlay=yn(h,t)),b&&(r.gradientOverlay=[yn(b,t)]),p&&(r.gradientOverlay=p.map(function(v){return yn(v,t)})),x&&(r.satin=yn(x,t)),g&&(r.stroke=[x2(g)]),m&&(r.stroke=m.map(function(v){return x2(v)})),t&&Object.keys(y).length>1&&console.log("Unhandled effect keys:",y),r}function w2(e,t){for(var r=[],n=0;n<e.length;n++){var a=e[n],i=a.time,o=i.denominator,l=i.numerator,s=a.selected,u=a.animKey,c={numerator:l,denominator:o},f=N2.decode(a.animInterpStyle);switch(u.Type){case"keyType.Opct":r.push({interpolation:f,time:c,selected:s,type:"opacity",value:dt(u.Opct)});break;case"keyType.Pstn":r.push({interpolation:f,time:c,selected:s,type:"position",x:u.Hrzn,y:u.Vrtc});break;case"keyType.Trnf":r.push({interpolation:f,time:c,selected:s,type:"transform",scale:Xl(u["Scl "]),skew:Xl(u.Skew),rotation:u.rotation,translation:Xl(u.translation)});break;case"keyType.sheetStyle":{var d={interpolation:f,time:c,selected:s,type:"style"};u.sheetStyle.Lefx&&(d.style=Jl(u.sheetStyle.Lefx,t)),r.push(d);break}case"keyType.globalLighting":{r.push({interpolation:f,time:c,selected:s,type:"globalLighting",globalAngle:u.gblA,globalAltitude:u.globalAltitude});break}default:throw new Error("Unsupported keyType value")}}return r}function k2(e){for(var t=[],r=0;r<e.length;r++){var n=e[r],a=n.time,i=n.selected,o=i===void 0?!1:i,l=n.interpolation,s=N2.encode(l),u=void 0;switch(n.type){case"opacity":u={Type:"keyType.Opct",Opct:Dr(n.value)};break;case"position":u={Type:"keyType.Pstn",Hrzn:n.x,Vrtc:n.y};break;case"transform":u={Type:"keyType.Trnf","Scl ":Yl(n.scale),Skew:Yl(n.skew),rotation:n.rotation,translation:Yl(n.translation)};break;case"style":u={Type:"keyType.sheetStyle",sheetStyle:{Vrsn:1,blendOptions:{}}},n.style&&(u.sheetStyle={Vrsn:1,Lefx:Zl(n.style,!1,!1),blendOptions:{}});break;case"globalLighting":{u={Type:"keyType.globalLighting",gblA:n.globalAngle,globalAltitude:n.globalAltitude};break}default:throw new Error("Unsupported keyType value")}t.push({Vrsn:1,animInterpStyle:s,time:a,animKey:u,selected:o})}return t}function S2(e,t){for(var r=[],n=0;n<e.length;n++){var a=e[n],i={type:$2.decode(a.trackID),enabled:a.enab,keys:w2(a.keyList,t)};a.effectParams&&(i.effectParams={fillCanvas:a.effectParams.fillCanvas,zoomOrigin:a.effectParams.zoomOrigin,keys:w2(a.effectParams.keyList,t)}),r.push(i)}return r}function C2(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(ja(ja({trackID:$2.encode(n.type),Vrsn:1,enab:!!n.enabled,Effc:!!n.effectParams},n.effectParams?{effectParams:{keyList:k2(n.keys),fillCanvas:n.effectParams.fillCanvas,zoomOrigin:n.effectParams.zoomOrigin}}:{}),{keyList:k2(n.keys)}))}return t}function yn(e,t){for(var r={},n=0,a=Object.keys(e);n<a.length;n++){var i=a[n],o=e[i];switch(i){case"enab":r.enabled=!!o;break;case"uglg":r.useGlobalLight=!!o;break;case"AntA":r.antialiased=!!o;break;case"Algn":r.align=!!o;break;case"Dthr":r.dither=!!o;break;case"Invr":r.invert=!!o;break;case"Rvrs":r.reverse=!!o;break;case"Clr ":r.color=Gn(o);break;case"hglC":r.highlightColor=Gn(o);break;case"sdwC":r.shadowColor=Gn(o);break;case"Styl":r.position=tu.decode(o);break;case"Md ":r.blendMode=an.decode(o);break;case"hglM":r.highlightBlendMode=an.decode(o);break;case"sdwM":r.shadowBlendMode=an.decode(o);break;case"bvlS":r.style=O2.decode(o);break;case"bvlD":r.direction=R2.decode(o);break;case"bvlT":r.technique=P2.decode(o);break;case"GlwT":r.technique=L2.decode(o);break;case"glwS":r.source=B2.decode(o);break;case"Type":r.type=Q0.decode(o);break;case"gs99":r.interpolationMethod=$o.decode(o);break;case"Opct":r.opacity=dt(o);break;case"hglO":r.highlightOpacity=dt(o);break;case"sdwO":r.shadowOpacity=dt(o);break;case"lagl":r.angle=mi(o);break;case"Angl":r.angle=mi(o);break;case"Lald":r.altitude=mi(o);break;case"Sftn":r.soften=Nt(o);break;case"srgR":r.strength=dt(o);break;case"blur":r.size=Nt(o);break;case"Nose":r.noise=dt(o);break;case"Inpr":r.range=dt(o);break;case"Ckmt":r.choke=Nt(o);break;case"ShdN":r.jitter=dt(o);break;case"Dstn":r.distance=Nt(o);break;case"Scl ":r.scale=dt(o);break;case"Ptrn":r.pattern={name:o["Nm "],id:o.Idnt};break;case"phase":r.phase={x:o.Hrzn,y:o.Vrtc};break;case"Ofst":r.offset={x:dt(o.Hrzn),y:dt(o.Vrtc)};break;case"MpgS":case"TrnS":r.contour={name:o["Nm "],curve:o["Crv "].map(function(l){return{x:l.Hrzn,y:l.Vrtc}})};break;case"Grad":r.gradient=A2(o);break;case"useTexture":case"useShape":case"layerConceals":case"present":case"showInDialog":case"antialiasGloss":r[i]=o;break;case"_name":case"_classID":break;default:t&&console.log("Invalid effect key: '".concat(i,"', value:"),o)}}return r}function xn(e,t,r){var n={enab:!1};t==="dropShadow"&&(n.TrnS={"Nm ":"","Crv ":[]});for(var a=0,i=Object.keys(e);a<i.length;a++){var o=i[a],l=o,s=e[l];switch(l){case"enabled":n.enab=!!s;break;case"useGlobalLight":n.uglg=!!s;break;case"antialiased":n.AntA=!!s;break;case"align":n.Algn=!!s;break;case"dither":n.Dthr=!!s;break;case"invert":n.Invr=!!s;break;case"reverse":n.Rvrs=!!s;break;case"color":n["Clr "]=Vn(s);break;case"highlightColor":n.hglC=Vn(s);break;case"shadowColor":n.sdwC=Vn(s);break;case"position":n.Styl=tu.encode(s);break;case"blendMode":n["Md "]=an.encode(s);break;case"highlightBlendMode":n.hglM=an.encode(s);break;case"shadowBlendMode":n.sdwM=an.encode(s);break;case"style":n.bvlS=O2.encode(s);break;case"direction":n.bvlD=R2.encode(s);break;case"technique":t==="bevel"?n.bvlT=P2.encode(s):n.GlwT=L2.encode(s);break;case"source":n.glwS=B2.encode(s);break;case"type":n.Type=Q0.encode(s);break;case"interpolationMethod":n.gs99=$o.encode(s);break;case"opacity":n.Opct=Dr(s);break;case"highlightOpacity":n.hglO=Dr(s);break;case"shadowOpacity":n.sdwO=Dr(s);break;case"angle":t==="gradientOverlay"||t==="patternFill"?n.Angl=ts(s):n.lagl=ts(s);break;case"altitude":n.Lald=ts(s);break;case"soften":n.Sftn=Zt(s,l);break;case"strength":n.srgR=Dr(s);break;case"size":n.blur=Zt(s,l);break;case"noise":n.Nose=Dr(s);break;case"range":n.Inpr=Dr(s);break;case"choke":n.Ckmt=Zt(s,l);break;case"jitter":n.ShdN=Dr(s);break;case"distance":n.Dstn=Zt(s,l);break;case"scale":n["Scl "]=Dr(s);break;case"pattern":n.Ptrn={"Nm ":s.name,Idnt:s.id};break;case"phase":n.phase={Hrzn:s.x,Vrtc:s.y};break;case"offset":n.Ofst={Hrzn:Dr(s.x),Vrtc:Dr(s.y)};break;case"contour":{n[t==="satin"?"MpgS":"TrnS"]={"Nm ":s.name,"Crv ":s.curve.map(function(u){return{Hrzn:u.x,Vrtc:u.y}})};break}case"gradient":n.Grad=E2(s);break;case"useTexture":case"useShape":case"layerConceals":case"present":case"showInDialog":case"antialiasGloss":n[l]=s;break;default:r&&console.log("Invalid effect key: '".concat(l,"', value:"),s)}}return n}function A2(e){if(e.GrdF==="GrdF.CstS"){var t=e.Intr||4096;return{type:"solid",name:e["Nm "],smoothness:e.Intr/4096,colorStops:e.Clrs.map(function(r){return{color:Gn(r["Clr "]),location:r.Lctn/t,midpoint:r.Mdpn/100}}),opacityStops:e.Trns.map(function(r){return{opacity:dt(r.Opct),location:r.Lctn/t,midpoint:r.Mdpn/100}})}}else return{type:"noise",name:e["Nm "],roughness:e.Smth/4096,colorModel:eu.decode(e.ClrS),randomSeed:e.RndS,restrictColors:!!e.VctC,addTransparency:!!e.ShTr,min:e["Mnm "].map(function(r){return r/100}),max:e["Mxm "].map(function(r){return r/100})}}function E2(e){var t,r;if(e.type==="solid"){var n=Math.round(((t=e.smoothness)!==null&&t!==void 0?t:1)*4096);return{"Nm ":e.name||"",GrdF:"GrdF.CstS",Intr:n,Clrs:e.colorStops.map(function(a){var i;return{"Clr ":Vn(a.color),Type:"Clry.UsrS",Lctn:Math.round(a.location*n),Mdpn:Math.round(((i=a.midpoint)!==null&&i!==void 0?i:.5)*100)}}),Trns:e.opacityStops.map(function(a){var i;return{Opct:Dr(a.opacity),Lctn:Math.round(a.location*n),Mdpn:Math.round(((i=a.midpoint)!==null&&i!==void 0?i:.5)*100)}})}}else return{GrdF:"GrdF.ClNs","Nm ":e.name||"",ShTr:!!e.addTransparency,VctC:!!e.restrictColors,ClrS:eu.encode(e.colorModel),RndS:e.randomSeed||0,Smth:Math.round(((r=e.roughness)!==null&&r!==void 0?r:1)*4096),"Mnm ":(e.min||[0,0,0,0]).map(function(a){return a*100}),"Mxm ":(e.max||[1,1,1,1]).map(function(a){return a*100})}}function T2(e){var t=A2(e.Grad);return t.style=Q0.decode(e.Type),e.Dthr!==void 0&&(t.dither=e.Dthr),e.gradientsInterpolationMethod!==void 0&&(t.interpolationMethod=$o.decode(e.gradientsInterpolationMethod)),e.Rvrs!==void 0&&(t.reverse=e.Rvrs),e.Angl!==void 0&&(t.angle=mi(e.Angl)),e["Scl "]!==void 0&&(t.scale=dt(e["Scl "])),e.Algn!==void 0&&(t.align=e.Algn),e.Ofst!==void 0&&(t.offset={x:dt(e.Ofst.Hrzn),y:dt(e.Ofst.Vrtc)}),t}function M2(e){var t={name:e.Ptrn["Nm "],id:e.Ptrn.Idnt};return e.Lnkd!==void 0&&(t.linked=e.Lnkd),e.phase!==void 0&&(t.phase={x:e.phase.Hrzn,y:e.phase.Vrtc}),t}function Ql(e){if("Grad"in e)return T2(e);if("Ptrn"in e)return ja({type:"pattern"},M2(e));if("Clr "in e)return{type:"color",color:Gn(e["Clr "])};throw new Error("Invalid vector content")}function D2(e){var t={};return e.dither!==void 0&&(t.Dthr=e.dither),e.interpolationMethod!==void 0&&(t.gradientsInterpolationMethod=$o.encode(e.interpolationMethod)),e.reverse!==void 0&&(t.Rvrs=e.reverse),e.angle!==void 0&&(t.Angl=ts(e.angle)),t.Type=Q0.encode(e.style),e.align!==void 0&&(t.Algn=e.align),e.scale!==void 0&&(t["Scl "]=Dr(e.scale)),e.offset&&(t.Ofst={Hrzn:Dr(e.offset.x),Vrtc:Dr(e.offset.y)}),t.Grad=E2(e),t}function I2(e){var t={Ptrn:{"Nm ":e.name||"",Idnt:e.id||""}};return e.linked!==void 0&&(t.Lnkd=!!e.linked),e.phase!==void 0&&(t.phase={Hrzn:e.phase.x,Vrtc:e.phase.y}),t}function es(e){return e.type==="color"?{key:"SoCo",descriptor:{"Clr ":Vn(e.color)}}:e.type==="pattern"?{key:"PtFl",descriptor:I2(e)}:{key:"GdFl",descriptor:D2(e)}}function Gn(e){if("H "in e)return{h:nE(e["H "]),s:e.Strt,b:e.Brgh};if("Rd "in e)return{r:e["Rd "],g:e["Grn "],b:e["Bl "]};if("Cyn "in e)return{c:e["Cyn "],m:e.Mgnt,y:e["Ylw "],k:e.Blck};if("Gry "in e)return{k:e["Gry "]};if("Lmnc"in e)return{l:e.Lmnc,a:e["A "],b:e["B "]};if("redFloat"in e)return{fr:e.redFloat,fg:e.greenFloat,fb:e.blueFloat};throw new Error("Unsupported color descriptor")}function Vn(e){if(e){if("r"in e)return{_name:"",_classID:"RGBC","Rd ":e.r||0,"Grn ":e.g||0,"Bl ":e.b||0};if("fr"in e)return{_name:"",_classID:"RGBC",redFloat:e.fr,greenFloat:e.fg,blueFloat:e.fb};if("h"in e)return{_name:"",_classID:"HSBC","H ":ts(e.h*360),Strt:e.s||0,Brgh:e.b||0};if("c"in e)return{_name:"",_classID:"CMYC","Cyn ":e.c||0,Mgnt:e.m||0,"Ylw ":e.y||0,Blck:e.k||0};if("l"in e)return{_name:"",_classID:"LABC",Lmnc:e.l||0,"A ":e.a||0,"B ":e.b||0};if("k"in e)return{_name:"",_classID:"GRYC","Gry ":e.k};throw new Error("Invalid color value")}else return{_name:"",_classID:"RGBC","Rd ":0,"Grn ":0,"Bl ":0}}function mi(e){if(e===void 0)return 0;if(e.units!=="Angle")throw new Error("Invalid units: ".concat(e.units));return e.value}function dt(e){if(e===void 0)return 1;if(e.units!=="Percent")throw new Error("Invalid units: ".concat(e.units));return e.value/100}function nE(e){if(e===void 0)return 1;if(e.units==="Percent")return e.value/100;if(e.units==="Angle")return e.value/360;throw new Error("Invalid units: ".concat(e.units))}function Nt(e){var t=e.units,r=e.value;if(t!=="Pixels"&&t!=="Millimeters"&&t!=="Points"&&t!=="None"&&t!=="Picas"&&t!=="Inches"&&t!=="Centimeters"&&t!=="Density")throw new Error("Invalid units: ".concat(JSON.stringify({units:t,value:r})));return{value:r,units:t}}function gi(e,t){return t===void 0&&(t="Pixels"),typeof e=="number"?{value:e,units:t}:Nt(e)}function J0(e,t){var r=e.units,n=e.value;if(r!==t)throw new Error("Invalid units: ".concat(JSON.stringify({units:r,value:n})));return n}function ts(e){return{units:"Angle",value:e||0}}function Dr(e){return{units:"Percent",value:Math.round((e||0)*100)}}function Rn(e){return{units:"Percent",value:(e||0)*100}}function Zt(e,t){if(e==null)return{units:"Pixels",value:0};if(typeof e!="object")throw new Error("Invalid value: ".concat(JSON.stringify(e)," (key: ").concat(t,") (should have value and units)"));var r=e.units,n=e.value;if(typeof n!="number")throw new Error("Invalid value in ".concat(JSON.stringify(e)," (key: ").concat(t,")"));if(r!=="Pixels"&&r!=="Millimeters"&&r!=="Points"&&r!=="None"&&r!=="Picas"&&r!=="Inches"&&r!=="Centimeters"&&r!=="Density")throw new Error("Invalid units in ".concat(JSON.stringify(e)," (key: ").concat(t,")"));return{units:r,value:n}}function nn(e){var t=e.numerator,r=e.denominator;return{numerator:t,denominator:r}}var z2=mt("textGridding","none",{none:"None",round:"Rnd "}),rs=mt("Ornt","horizontal",{horizontal:"Hrzn",vertical:"Vrtc"}),F2=mt("Annt","sharp",{none:"Anno",sharp:"antiAliasSharp",crisp:"AnCr",strong:"AnSt",smooth:"AnSm",platform:"antiAliasPlatformGray",platformLCD:"antiAliasPlatformLCD"}),od=mt("warpStyle","none",{none:"warpNone",arc:"warpArc",arcLower:"warpArcLower",arcUpper:"warpArcUpper",arch:"warpArch",bulge:"warpBulge",shellLower:"warpShellLower",shellUpper:"warpShellUpper",flag:"warpFlag",wave:"warpWave",fish:"warpFish",rise:"warpRise",fisheye:"warpFisheye",inflate:"warpInflate",squeeze:"warpSqueeze",twist:"warpTwist",cylinder:"warpCylinder",custom:"warpCustom"}),an=mt("BlnM","normal",{normal:"Nrml",dissolve:"Dslv",darken:"Drkn",multiply:"Mltp","color burn":"CBrn","linear burn":"linearBurn","darker color":"darkerColor",lighten:"Lghn",screen:"Scrn","color dodge":"CDdg","linear dodge":"linearDodge","lighter color":"lighterColor",overlay:"Ovrl","soft light":"SftL","hard light":"HrdL","vivid light":"vividLight","linear light":"linearLight","pin light":"pinLight","hard mix":"hardMix",difference:"Dfrn",exclusion:"Xclu",subtract:"blendSubtraction",divide:"blendDivide",hue:"H ",saturation:"Strt",color:"Clr ",luminosity:"Lmns","linear height":"linearHeight",height:"Hght",subtraction:"Sbtr"}),O2=mt("BESl","inner bevel",{"inner bevel":"InrB","outer bevel":"OtrB",emboss:"Embs","pillow emboss":"PlEb","stroke emboss":"strokeEmboss"}),P2=mt("bvlT","smooth",{smooth:"SfBL","chisel hard":"PrBL","chisel soft":"Slmt"}),R2=mt("BESs","up",{up:"In ",down:"Out "}),L2=mt("BETE","softer",{softer:"SfBL",precise:"PrBL"}),B2=mt("IGSr","edge",{edge:"SrcE",center:"SrcC"}),Q0=mt("GrdT","linear",{linear:"Lnr ",radial:"Rdl ",angle:"Angl",reflected:"Rflc",diamond:"Dmnd"}),N2=mt("animInterpStyle","linear",{linear:"Lnr ",hold:"hold"}),$2=mt("stdTrackID","opacity",{opacity:"opacityTrack",style:"styleTrack",sheetTransform:"sheetTransformTrack",sheetPosition:"sheetPositionTrack",globalLighting:"globalLightingTrack"}),$o=mt("gradientInterpolationMethodType","perceptual",{perceptual:"Perc",linear:"Lnr ",classic:"Gcls",smooth:"Smoo"}),eu=mt("ClrS","rgb",{rgb:"RGBC",hsb:"HSBl",lab:"LbCl",hsl:"HSLC"}),tu=mt("FStl","outside",{outside:"OutF",center:"CtrF",inside:"InsF"}),U2=mt("FrFl","color",{color:"SClr",gradient:"GrFl",pattern:"Ptrn"}),H2=mt("ESliceType","image",{image:"Img ",noImage:"noImage"}),j2=mt("ESliceHorzAlign","default",{default:"default"}),G2=mt("ESliceVertAlign","default",{default:"default"}),V2=mt("ESliceOrigin","userGenerated",{userGenerated:"userGenerated",autoGenerated:"autoGenerated",layer:"layer"}),q2=mt("ESliceBGColorType","none",{none:"None",matte:"matte",color:"Clr "}),W2=mt("strokeStyleLineCapType","butt",{butt:"strokeStyleButtCap",round:"strokeStyleRoundCap",square:"strokeStyleSquareCap"}),K2=mt("strokeStyleLineJoinType","miter",{miter:"strokeStyleMiterJoin",round:"strokeStyleRoundJoin",bevel:"strokeStyleBevelJoin"}),X2=mt("strokeStyleLineAlignment","inside",{inside:"strokeStyleAlignInside",center:"strokeStyleAlignCenter",outside:"strokeStyleAlignOutside"}),Y2=mt("BlrM","ispinmage",{spin:"Spn ",zoom:"Zm "}),Z2=mt("BlrQ","good",{draft:"Drft",good:"Gd ",best:"Bst "}),J2=mt("SmBM","normal",{normal:"SBMN","edge only":"SBME","overlay edge":"SBMO"}),Q2=mt("SmBQ","medium",{low:"SBQL",medium:"SBQM",high:"SBQH"}),eg=mt("DspM","stretch to fit",{"stretch to fit":"StrF",tile:"Tile"}),Uo=mt("UndA","repeat edge pixels",{"wrap around":"WrpA","repeat edge pixels":"RptE"}),tg=mt("Cnvr","rectangular to polar",{"rectangular to polar":"RctP","polar to rectangular":"PlrR"}),rg=mt("RplS","medium",{small:"Sml ",medium:"Mdm ",large:"Lrg "}),ng=mt("SphM","normal",{normal:"Nrml","horizontal only":"HrzO","vertical only":"VrtO"}),ag=mt("Wvtp","sine",{sine:"WvSn",triangle:"WvTr",square:"WvSq"}),ig=mt("ZZTy","pond ripples",{"around center":"ArnC","out from center":"OtFr","pond ripples":"PndR"}),og=mt("Dstr","uniform",{uniform:"Unfr",gaussian:"Gsn "}),ns=mt("Chnl","composite",{red:"Rd ",green:"Grn ",blue:"Bl ",composite:"Cmps"}),lg=mt("MztT","fine dots",{"fine dots":"FnDt","medium dots":"MdmD","grainy dots":"GrnD","coarse dots":"CrsD","short lines":"ShrL","medium lines":"MdmL","long lines":"LngL","short strokes":"ShSt","medium strokes":"MdmS","long strokes":"LngS"}),sg=mt("Lns ","50-300mm zoom",{"50-300mm zoom":"Zm ","32mm prime":"Nkn ","105mm prime":"Nkn1","movie prime":"PnVs"}),ug=mt("blurType","gaussian blur",{"gaussian blur":"GsnB","lens blur":"lensBlur","motion blur":"MtnB"}),cg=mt("DfsM","normal",{normal:"Nrml","darken only":"DrkO","lighten only":"LghO",anisotropic:"anisotropic"}),fg=mt("ExtT","blocks",{blocks:"Blks",pyramids:"Pyrm"}),dg=mt("ExtR","random",{random:"Rndm","level-based":"LvlB"}),hg=mt("FlCl","background color",{"background color":"FlBc","foreground color":"FlFr","inverse image":"FlIn","unaltered image":"FlSm"}),pg=mt("CntE","upper",{lower:"Lwr ",upper:"Upr "}),vg=mt("WndM","wind",{wind:"Wnd ",blast:"Blst",stagger:"Stgr"}),mg=mt("Drct","from the right",{left:"Left",right:"Rght"}),gg=mt("IntE","odd lines",{"odd lines":"ElmO","even lines":"ElmE"}),bg=mt("IntC","interpolation",{duplication:"CrtD",interpolation:"CrtI"}),yg=mt("FlMd","wrap around",{"set to transparent":"Bckg","repeat edge pixels":"Rpt ","wrap around":"Wrp "});mt("prjM","fisheye",{fisheye:"fisP",perspective:"perP",auto:"auto","full spherical":"fusP"});var xg=mt("presetKindType","presetKindCustom",{custom:"presetKindCustom",default:"presetKindDefault"}),Ho=function(){return Ho=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ho.apply(this,arguments)},_g=[],wg={};function Ft(e,t,r,n){var a={key:e,has:t,read:r,write:n};_g.push(a),wg[a.key]=a}var ru=[void 0,"PPI","PPCM"],nu=[void 0,"Inches","Centimeters","Points","Picas","Columns"],kg="0123456789abcdef";function Sg(e){return e<=57?e-48:e-87}function aE(e,t){return Sg(e.charCodeAt(t))<<4|Sg(e.charCodeAt(t+1))}function ld(e,t){var r=hr(e,t);return n2(r)}function sd(e,t){var r=r2(t);Zn(e,r)}function iE(e){for(var t=Ye(e),r=hr(e,t),n=!1,a=0;a<r.byteLength;a++)if(r[a]&128){n=!0;break}if(n){var i=new TextDecoder("gbk");return i.decode(r)}else return n2(r)}function oE(e,t){for(var r="",n=0,a=t.codePointAt(n++);a!==void 0;a=t.codePointAt(n++))r+=a>127?"?":String.fromCodePoint(a);var i=r2(r);qe(e,i.byteLength),Zn(e,i)}Ft(1061,function(e){return e.captionDigest!==void 0},function(e,t){for(var r="",n=0;n<16;n++){var a=Ye(e);r+=kg[a>>4],r+=kg[a&15]}t.captionDigest=r},function(e,t){for(var r=0;r<16;r++)qe(e,aE(t.captionDigest,r*2))}),Ft(1060,function(e){return e.xmpMetadata!==void 0},function(e,t,r){t.xmpMetadata=ld(e,r())},function(e,t){sd(e,t.xmpMetadata)});var au=mt("Inte","perceptual",{perceptual:"Img ",saturation:"Grp ","relative colorimetric":"Clrm","absolute colorimetric":"AClr"});Ft(1082,function(e){return e.printInformation!==void 0},function(e,t){var r,n,a=Et(e);t.printInformation={printerName:a.printerName||"",renderingIntent:au.decode((r=a.Inte)!==null&&r!==void 0?r:"Inte.Img ")};var i=t.printInformation;a.PstS!==void 0&&(i.printerManagesColors=a.PstS),a["Nm "]!==void 0&&(i.printerProfile=a["Nm "]),a.MpBl!==void 0&&(i.blackPointCompensation=a.MpBl),a.printSixteenBit!==void 0&&(i.printSixteenBit=a.printSixteenBit),a.hardProof!==void 0&&(i.hardProof=a.hardProof),a.printProofSetup&&("Bltn"in a.printProofSetup?i.proofSetup={builtin:a.printProofSetup.Bltn.split(".")[1]}:i.proofSetup={profile:a.printProofSetup.profile,renderingIntent:au.decode((n=a.printProofSetup.Inte)!==null&&n!==void 0?n:"Inte.Img "),blackPointCompensation:!!a.printProofSetup.MpBl,paperWhite:!!a.printProofSetup.paperWhite})},function(e,t){var r,n,a=t.printInformation,i={};a.printerManagesColors?i.PstS=!0:(a.hardProof!==void 0&&(i.hardProof=!!a.hardProof),i.ClrS="ClrS.RGBC",i["Nm "]=(r=a.printerProfile)!==null&&r!==void 0?r:"CIE RGB"),i.Inte=au.encode(a.renderingIntent),a.printerManagesColors||(i.MpBl=!!a.blackPointCompensation),i.printSixteenBit=!!a.printSixteenBit,i.printerName=a.printerName||"",a.proofSetup&&"profile"in a.proofSetup?i.printProofSetup={profile:a.proofSetup.profile||"",Inte:au.encode(a.proofSetup.renderingIntent),MpBl:!!a.proofSetup.blackPointCompensation,paperWhite:!!a.proofSetup.paperWhite}:i.printProofSetup={Bltn:!((n=a.proofSetup)===null||n===void 0)&&n.builtin?"builtinProof.".concat(a.proofSetup.builtin):"builtinProof.proofCMYK"},Mt(e,"","printOutput",i)}),Ft(1005,function(e){return e.resolutionInfo!==void 0},function(e,t){var r=_n(e),n=We(e),a=We(e),i=_n(e),o=We(e),l=We(e);t.resolutionInfo={horizontalResolution:r,horizontalResolutionUnit:ru[n]||"PPI",widthUnit:nu[a]||"Inches",verticalResolution:i,verticalResolutionUnit:ru[o]||"PPI",heightUnit:nu[l]||"Inches"}},function(e,t){var r=t.resolutionInfo;Sn(e,r.horizontalResolution||0),Le(e,Math.max(1,ru.indexOf(r.horizontalResolutionUnit))),Le(e,Math.max(1,nu.indexOf(r.widthUnit))),Sn(e,r.verticalResolution||0),Le(e,Math.max(1,ru.indexOf(r.verticalResolutionUnit))),Le(e,Math.max(1,nu.indexOf(r.heightUnit)))});var Cg=["centered","size to fit","user defined"];Ft(1062,function(e){return e.printScale!==void 0},function(e,t){t.printScale={style:Cg[At(e)],x:qn(e),y:qn(e),scale:qn(e)}},function(e,t){var r=t.printScale,n=r.style,a=r.x,i=r.y,o=r.scale;Ot(e,Math.max(0,Cg.indexOf(n))),Xn(e,a||0),Xn(e,i||0),Xn(e,o||0)}),Ft(1006,function(e){return e.alphaChannelNames!==void 0},function(e,t,r){if(t.alphaChannelNames)et(e,r());else for(t.alphaChannelNames=[];r()>0;){var n=iE(e);t.alphaChannelNames.push(n)}},function(e,t){for(var r=0,n=t.alphaChannelNames;r<n.length;r++){var a=n[r];oE(e,a)}}),Ft(1045,function(e){return e.alphaChannelNames!==void 0},function(e,t,r){for(t.alphaChannelNames=[];r()>0;)t.alphaChannelNames.push(xr(e))},function(e,t){for(var r=0,n=t.alphaChannelNames;r<n.length;r++){var a=n[r];qi(e,a)}}),Ft(1053,function(e){return e.alphaIdentifiers!==void 0},function(e,t,r){for(t.alphaIdentifiers=[];r()>=4;)t.alphaIdentifiers.push(Fe(e))},function(e,t){for(var r=0,n=t.alphaIdentifiers;r<n.length;r++){var a=n[r];Ze(e,a)}}),Ft(1010,function(e){return e.backgroundColor!==void 0},function(e,t){return t.backgroundColor=Ir(e)},function(e,t){return zr(e,t.backgroundColor)}),Ft(1037,function(e){return e.globalAngle!==void 0},function(e,t){return t.globalAngle=it(e)},function(e,t){return ht(e,t.globalAngle)}),Ft(1049,function(e){return e.globalAltitude!==void 0},function(e,t){return t.globalAltitude=Fe(e)},function(e,t){return Ze(e,t.globalAltitude)}),Ft(1011,function(e){return e.printFlags!==void 0},function(e,t){t.printFlags={labels:!!Ye(e),cropMarks:!!Ye(e),colorBars:!!Ye(e),registrationMarks:!!Ye(e),negative:!!Ye(e),flip:!!Ye(e),interpolate:!!Ye(e),caption:!!Ye(e),printFlags:!!Ye(e)}},function(e,t){var r=t.printFlags;qe(e,r.labels?1:0),qe(e,r.cropMarks?1:0),qe(e,r.colorBars?1:0),qe(e,r.registrationMarks?1:0),qe(e,r.negative?1:0),qe(e,r.flip?1:0),qe(e,r.interpolate?1:0),qe(e,r.caption?1:0),qe(e,r.printFlags?1:0)}),Ft(1034,function(e){return e.copyrighted!==void 0},function(e,t){t.copyrighted=!!Ye(e)},function(e,t){qe(e,t.copyrighted?1:0)}),Ft(1035,function(e){return e.url!==void 0},function(e,t,r){t.url=su(e,r())},function(e,t){JE(e,t.url)}),Ft(1080,function(e){return e.countInformation!==void 0},function(e,t){var r=Et(e);t.countInformation=r.countGroupList.map(function(n){return{color:{r:n["Rd "],g:n["Grn "],b:n["Bl "]},name:n["Nm "],size:n["Rds "],fontSize:n.fontSize,visible:n.Vsbl,points:n.countObjectList.map(function(a){return{x:a["X "],y:a["Y "]}})}})},function(e,t){var r={Vrsn:1,countGroupList:t.countInformation.map(function(n){return{"Rd ":n.color.r,"Grn ":n.color.g,"Bl ":n.color.b,"Nm ":n.name,"Rds ":n.size,fontSize:n.fontSize,Vsbl:n.visible,countObjectList:n.points.map(function(a){return{"X ":a.x,"Y ":a.y}})}})};Mt(e,"","Cnt ",r)}),Ft(1024,function(e){return e.layerState!==void 0},function(e,t){return t.layerState=We(e)},function(e,t){return Le(e,t.layerState)}),Ft(1026,function(e){return e.layersGroup!==void 0},function(e,t,r){for(t.layersGroup=[];r()>0;)t.layersGroup.push(We(e))},function(e,t){for(var r=0,n=t.layersGroup;r<n.length;r++){var a=n[r];Le(e,a)}}),Ft(1072,function(e){return e.layerGroupsEnabledId!==void 0},function(e,t,r){for(t.layerGroupsEnabledId=[];r()>0;)t.layerGroupsEnabledId.push(Ye(e))},function(e,t){for(var r=0,n=t.layerGroupsEnabledId;r<n.length;r++){var a=n[r];qe(e,a)}}),Ft(1069,function(e){return e.layerSelectionIds!==void 0},function(e,t){var r=We(e);for(t.layerSelectionIds=[];r--;)t.layerSelectionIds.push(Fe(e))},function(e,t){Le(e,t.layerSelectionIds.length);for(var r=0,n=t.layerSelectionIds;r<n.length;r++){var a=n[r];Ze(e,a)}}),Ft(1032,function(e){return e.gridAndGuidesInformation!==void 0},function(e,t){var r=Fe(e),n=Fe(e),a=Fe(e),i=Fe(e);if(r!==1)throw new Error("Invalid 1032 resource version: ".concat(r));t.gridAndGuidesInformation={grid:{horizontal:n,vertical:a},guides:[]};for(var o=0;o<i;o++)t.gridAndGuidesInformation.guides.push({location:Fe(e)/32,direction:Ye(e)?"horizontal":"vertical"})},function(e,t){var r=t.gridAndGuidesInformation,n=r.grid||{horizontal:18*32,vertical:18*32},a=r.guides||[];Ze(e,1),Ze(e,n.horizontal),Ze(e,n.vertical),Ze(e,a.length);for(var i=0,o=a;i<o.length;i++){var l=o[i];Ze(e,l.location*32),qe(e,l.direction==="horizontal"?1:0)}}),Ft(1065,function(e){return e.layerComps!==void 0},function(e,t){var r=Et(e,!0);t.layerComps={list:[]};for(var n=0,a=r.list;n<a.length;n++){var i=a[n];t.layerComps.list.push({id:i.compID,name:i["Nm "],capturedInfo:i.capturedInfo}),"comment"in i&&(t.layerComps.list[t.layerComps.list.length-1].comment=i.comment)}"lastAppliedComp"in r&&(t.layerComps.lastApplied=r.lastAppliedComp)},function(e,t){for(var r=t.layerComps,n={list:[]},a=0,i=r.list;a<i.length;a++){var o=i[a],l={};l._classID="Comp",l["Nm "]=o.name,"comment"in o&&(l.comment=o.comment),l.compID=o.id,l.capturedInfo=o.capturedInfo,n.list.push(l)}"lastApplied"in r&&(n.lastAppliedComp=r.lastApplied),Mt(e,"","CompList",n)});var Ag=["normal",void 0,void 0,void 0,void 0,void 0,void 0,"multiply","screen",void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"difference"];Ft(1078,function(e){return e.onionSkins!==void 0},function(e,t){var r=Et(e);t.onionSkins={enabled:r.enab,framesBefore:r.numBefore,framesAfter:r.numAfter,frameSpacing:r.Spcn,minOpacity:r.minOpacity/100,maxOpacity:r.maxOpacity/100,blendMode:Ag[r.BlnM]||"normal"}},function(e,t){var r=t.onionSkins,n={Vrsn:1,enab:r.enabled,numBefore:r.framesBefore,numAfter:r.framesAfter,Spcn:r.frameSpacing,minOpacity:r.minOpacity*100|0,maxOpacity:r.maxOpacity*100|0,BlnM:Math.max(0,Ag.indexOf(r.blendMode))};Mt(e,"","null",n)}),Ft(1075,function(e){return e.timelineInformation!==void 0},function(e,t){var r,n,a=Et(e);t.timelineInformation={enabled:a.enab,frameStep:nn(a.frameStep),frameRate:a.frameRate,time:nn(a.time),duration:nn(a.duration),workInTime:nn(a.workInTime),workOutTime:nn(a.workOutTime),repeats:a.LCnt,hasMotion:a.hasMotion,globalTracks:S2(a.globalTrackList,!!e.logMissingFeatures)},!((n=(r=a.audioClipGroupList)===null||r===void 0?void 0:r.audioClipGroupList)===null||n===void 0)&&n.length&&(t.timelineInformation.audioClipGroups=a.audioClipGroupList.audioClipGroupList.map(function(i){return{id:i.groupID,muted:i.muted,audioClips:i.audioClipList.map(function(o){var l=o.clipID,s=o.timeScope,u=o.muted,c=o.audioLevel,f=o.frameReader;return{id:l,start:nn(s.Strt),duration:nn(s.duration),inTime:nn(s.inTime),outTime:nn(s.outTime),muted:u,audioLevel:c,frameReader:{type:f.frameReaderType,mediaDescriptor:f.mediaDescriptor,link:{name:f["Lnk "]["Nm "],fullPath:f["Lnk "].fullPath,relativePath:f["Lnk "].relPath}}}})}}))},function(e,t){var r,n=t.timelineInformation,a={Vrsn:1,enab:n.enabled,frameStep:n.frameStep,frameRate:n.frameRate,time:n.time,duration:n.duration,workInTime:n.workInTime,workOutTime:n.workOutTime,LCnt:n.repeats,globalTrackList:C2(n.globalTracks),audioClipGroupList:{audioClipGroupList:(r=n.audioClipGroups)===null||r===void 0?void 0:r.map(function(i){return{groupID:i.id,muted:i.muted,audioClipList:i.audioClips.map(function(o){return{clipID:o.id,timeScope:{Vrsn:1,Strt:o.start,duration:o.duration,inTime:o.inTime,outTime:o.outTime},frameReader:{frameReaderType:o.frameReader.type,descVersion:1,"Lnk ":{descVersion:1,"Nm ":o.frameReader.link.name,fullPath:o.frameReader.link.fullPath,relPath:o.frameReader.link.relativePath},mediaDescriptor:o.frameReader.mediaDescriptor},muted:o.muted,audioLevel:o.audioLevel}})}})},hasMotion:n.hasMotion};Mt(e,"","null",a,"anim")}),Ft(1076,function(e){return e.sheetDisclosure!==void 0},function(e,t){var r=Et(e);t.sheetDisclosure={},r.sheetTimelineOptions&&(t.sheetDisclosure.sheetTimelineOptions=r.sheetTimelineOptions.map(function(n){return{sheetID:n.sheetID,sheetDisclosed:n.sheetDisclosed,lightsDisclosed:n.lightsDisclosed,meshesDisclosed:n.meshesDisclosed,materialsDisclosed:n.materialsDisclosed}}))},function(e,t){var r=t.sheetDisclosure,n={Vrsn:1};r.sheetTimelineOptions&&(n.sheetTimelineOptions=r.sheetTimelineOptions.map(function(a){return{Vrsn:2,sheetID:a.sheetID,sheetDisclosed:a.sheetDisclosed,lightsDisclosed:a.lightsDisclosed,meshesDisclosed:a.meshesDisclosed,materialsDisclosed:a.materialsDisclosed}})),Mt(e,"","null",n)}),Ft(1054,function(e){return e.urlsList!==void 0},function(e,t){var r=Fe(e);t.urlsList=[];for(var n=0;n<r;n++){var a=qt(e);if(a!=="slic"&&e.throwForMissingFeatures)throw new Error("Unknown long");var i=Fe(e),o=xr(e);t.urlsList.push({id:i,url:o,ref:"slice"})}},function(e,t){var r=t.urlsList;Ze(e,r.length);for(var n=0;n<r.length;n++)vt(e,"slic"),Ze(e,r[n].id),Cn(e,r[n].url)});function Eg(e){return{"Top ":e.top,Left:e.left,Btom:e.bottom,Rght:e.right}}function Tg(e){return{top:e["Top "],left:e.Left,bottom:e.Btom,right:e.Rght}}function iu(e,t){return e[Math.max(0,Math.min(e.length-1,t))]}var Mg=["autoGenerated","layer","userGenerated"],Dg=["noImage","image"],ou=["default"];Ft(1050,function(e){return e.slices?e.slices.length:0},function(e,t){var r=Fe(e);if(r===6){t.slices||(t.slices=[]);var n=it(e),a=it(e),i=it(e),o=it(e),l=xr(e),s=Fe(e);t.slices.push({bounds:{top:n,left:a,bottom:i,right:o},groupName:l,slices:[]});for(var u=t.slices[t.slices.length-1].slices,c=0;c<s;c++){var f=Fe(e),d=Fe(e),h=iu(Mg,Fe(e)),b=h=="layer"?Fe(e):0,p=xr(e),x=iu(Dg,Fe(e)),g=it(e),m=it(e),y=it(e),v=it(e),k=xr(e),C=xr(e),A=xr(e),_=xr(e),E=!!Ye(e),M=xr(e),z=iu(ou,Fe(e)),R=iu(ou,Fe(e)),O=Ye(e),H=Ye(e),Z=Ye(e),q=Ye(e),X=O+H+Z+q===0?"none":O===0?"matte":"color";u.push({id:f,groupId:d,origin:h,associatedLayerId:b,name:p,target:C,message:A,altTag:_,cellTextIsHTML:E,cellText:M,horizontalAlignment:z,verticalAlignment:R,type:x,url:k,bounds:{top:m,left:g,bottom:v,right:y},backgroundColorType:X,backgroundColor:{r:H,g:Z,b:q,a:O}})}var Q=Et(e);Q.slices.forEach(function(te){var _e=u.find(function(he){return te.sliceID==he.id});_e&&(_e.topOutset=te.topOutset,_e.leftOutset=te.leftOutset,_e.bottomOutset=te.bottomOutset,_e.rightOutset=te.rightOutset)})}else if(r===7||r===8){var Q=Et(e);t.slices||(t.slices=[]),t.slices.push({groupName:Q.baseName,bounds:Tg(Q.bounds),slices:Q.slices.map(function(_e){return Ho(Ho({},_e["Nm "]?{name:_e["Nm "]}:{}),{id:_e.sliceID,groupId:_e.groupID,associatedLayerId:0,origin:V2.decode(_e.origin),type:H2.decode(_e.Type),bounds:Tg(_e.bounds),url:_e.url,target:_e.null,message:_e.Msge,altTag:_e.altTag,cellTextIsHTML:_e.cellTextIsHTML,cellText:_e.cellText,horizontalAlignment:j2.decode(_e.horzAlign),verticalAlignment:G2.decode(_e.vertAlign),backgroundColorType:q2.decode(_e.bgColorType),backgroundColor:_e.bgColor?{r:_e.bgColor["Rd "],g:_e.bgColor["Grn "],b:_e.bgColor["Bl "],a:_e.bgColor.alpha}:{r:0,g:0,b:0,a:0},topOutset:_e.topOutset||0,leftOutset:_e.leftOutset||0,bottomOutset:_e.bottomOutset||0,rightOutset:_e.rightOutset||0})})})}else throw new Error("Invalid slices version (".concat(r,")"))},function(e,t,r){var n=t.slices[r],a=n.bounds,i=n.groupName,o=n.slices;Ze(e,6),ht(e,a.top),ht(e,a.left),ht(e,a.bottom),ht(e,a.right),Cn(e,i),Ze(e,o.length);for(var l=0;l<o.length;l++){var s=o[l],u=s.backgroundColor,c=u.a,f=u.r,d=u.g,h=u.b;s.backgroundColorType==="none"?c=f=d=h=0:s.backgroundColorType==="matte"&&(c=0,f=d=h=255),Ze(e,s.id),Ze(e,s.groupId),Ze(e,Mg.indexOf(s.origin)),s.origin==="layer"&&Ze(e,s.associatedLayerId),Cn(e,s.name||""),Ze(e,Dg.indexOf(s.type)),ht(e,s.bounds.left),ht(e,s.bounds.top),ht(e,s.bounds.right),ht(e,s.bounds.bottom),Cn(e,s.url),Cn(e,s.target),Cn(e,s.message),Cn(e,s.altTag),qe(e,s.cellTextIsHTML?1:0),Cn(e,s.cellText),Ze(e,ou.indexOf(s.horizontalAlignment)),Ze(e,ou.indexOf(s.verticalAlignment)),qe(e,c),qe(e,f),qe(e,d),qe(e,h)}var b={bounds:Eg(a),slices:[]};o.forEach(function(p){var x=Ho(Ho({sliceID:p.id,groupID:p.groupId,origin:V2.encode(p.origin),Type:H2.encode(p.type),bounds:Eg(p.bounds)},p.name?{"Nm ":p.name}:{}),{url:p.url,null:p.target,Msge:p.message,altTag:p.altTag,cellTextIsHTML:p.cellTextIsHTML,cellText:p.cellText,horzAlign:j2.encode(p.horizontalAlignment),vertAlign:G2.encode(p.verticalAlignment),bgColorType:q2.encode(p.backgroundColorType)});if(p.backgroundColorType==="color"){var g=p.backgroundColor,m=g.r,y=g.g,v=g.b,k=g.a;x.bgColor={"Rd ":m,"Grn ":y,"Bl ":v,alpha:k}}x.topOutset=p.topOutset||0,x.leftOutset=p.leftOutset||0,x.bottomOutset=p.bottomOutset||0,x.rightOutset=p.rightOutset||0,b.slices.push(x)}),Mt(e,"","null",b,"slices")}),Ft(1064,function(e){return e.pixelAspectRatio!==void 0},function(e,t){if(Fe(e)>2)throw new Error("Invalid pixelAspectRatio version");t.pixelAspectRatio={aspect:Ln(e)}},function(e,t){Ze(e,2),Bn(e,t.pixelAspectRatio.aspect)}),Ft(1041,function(e){return e.iccUntaggedProfile!==void 0},function(e,t){t.iccUntaggedProfile=!!Ye(e)},function(e,t){qe(e,t.iccUntaggedProfile?1:0)}),Ft(1044,function(e){return e.idsSeedNumber!==void 0},function(e,t){return t.idsSeedNumber=Fe(e)},function(e,t){return Ze(e,t.idsSeedNumber)}),Ft(1036,function(e){return e.thumbnail!==void 0||e.thumbnailRaw!==void 0},function(e,t,r){var n=Fe(e),a=Fe(e),i=Fe(e);Fe(e),Fe(e),Fe(e);var o=We(e),l=We(e);if(n!==1||o!==24||l!==1){e.logMissingFeatures&&e.log("Invalid thumbnail data (format: ".concat(n,", bitsPerPixel: ").concat(o,", planes: ").concat(l,")")),et(e,r());return}var s=r(),u=hr(e,s);e.useRawThumbnail?t.thumbnailRaw={width:a,height:i,data:u}:u.byteLength&&(t.thumbnail=BA(u))},function(e,t){var r,n=0,a=0,i=new Uint8Array(0);if(t.thumbnailRaw)n=t.thumbnailRaw.width,a=t.thumbnailRaw.height,i=t.thumbnailRaw.data;else try{var o=(r=t.thumbnail.toDataURL("image/jpeg",1))===null||r===void 0?void 0:r.substring(23);o&&(i=Q4(o),n=t.thumbnail.width,a=t.thumbnail.height)}catch{}var l=24,s=Math.floor((n*l+31)/32)*4,u=1,c=s*a*u,f=i.length;Ze(e,1),Ze(e,n),Ze(e,a),Ze(e,s),Ze(e,c),Ze(e,f),Le(e,l),Le(e,u),Zn(e,i)}),Ft(1057,function(e){return e.versionInfo!==void 0},function(e,t,r){var n=Fe(e);if(n!==1)throw new Error("Invalid versionInfo version");t.versionInfo={hasRealMergedData:!!Ye(e),writerName:xr(e),readerName:xr(e),fileVersion:Fe(e)},et(e,r())},function(e,t){var r=t.versionInfo;Ze(e,1),qe(e,r.hasRealMergedData?1:0),Cn(e,r.writerName),Cn(e,r.readerName),Ze(e,r.fileVersion)}),Ft(7e3,function(e){return e.imageReadyVariables!==void 0},function(e,t,r){t.imageReadyVariables=ld(e,r())},function(e,t){sd(e,t.imageReadyVariables)}),Ft(7001,function(e){return e.imageReadyDataSets!==void 0},function(e,t,r){t.imageReadyDataSets=ld(e,r())},function(e,t){sd(e,t.imageReadyDataSets)}),Ft(1088,function(e){return e.pathSelectionState!==void 0},function(e,t,r){var n=Et(e);t.pathSelectionState=n.null},function(e,t){var r={null:t.pathSelectionState};Mt(e,"","null",r)});var Ig=mt("FrmD","",{auto:"Auto",none:"None",dispose:"Disp"});Ft(4e3,function(e){return e.animations!==void 0},function(e,t,r){var n=qt(e);if(n==="mani")_a(e,"IRFR"),wn(e,1,function(i){for(var o=function(){_a(e,"8BIM");var l=qt(e);wn(e,1,function(s){if(l==="AnDs"){var u=Et(e);t.animations={frames:u.FrIn.map(function(f){return{id:f.FrID,delay:(f.FrDl||0)/100,dispose:f.FrDs?Ig.decode(f.FrDs):"auto"}}),animations:u.FSts.map(function(f){return{id:f.FsID,frames:f.FsFr,repeats:f.LCnt,activeFrame:f.AFrm||0}})}}else if(l==="Roll"){var c=hr(e,s());e.logDevFeatures&&e.log("#4000 Roll",c)}else e.logMissingFeatures&&e.log("Unhandled subsection in #4000",l)})};i()>0;)o()});else if(n==="mopt"){var a=hr(e,r());e.logDevFeatures&&e.log("#4000 mopt",a)}else e.logMissingFeatures&&e.log("Unhandled key in #4000:",n)},function(e,t){t.animations&&(vt(e,"mani"),vt(e,"IRFR"),Br(e,1,function(){vt(e,"8BIM"),vt(e,"AnDs"),Br(e,1,function(){for(var r={FrIn:[],FSts:[]},n=0;n<t.animations.frames.length;n++){var a=t.animations.frames[n],i={FrID:a.id};a.delay&&(i.FrDl=a.delay*100|0),i.FrDs=Ig.encode(a.dispose),r.FrIn.push(i)}for(var n=0;n<t.animations.animations.length;n++){var o=t.animations.animations[n],l={FsID:o.id,AFrm:o.activeFrame|0,FsFr:o.frames,LCnt:o.repeats|0};r.FSts.push(l)}Mt(e,"","null",r)})}))});var lE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},zg=[0,1,3,2],sE=["bitmap","grayscale","indexed","RGB","CMYK","multichannel","duotone","lab"];function lu(e){for(var t=e.width*e.height*4,r=0;r<t;r+=4){var n=e.data[r];e.data[r+1]=n,e.data[r+2]=n}}function jo(e,t,r){var n=new DataView(e,t,r);return{view:n,offset:0,strict:!1,debug:!1,large:!1,globalAlpha:!1,log:console.log}}function ud(e,t){if(e.strict)throw new Error(t);e.debug&&e.log(t)}function Ye(e){return e.offset+=1,e.view.getUint8(e.offset-1)}function uE(e){return e.view.getUint8(e.offset)}function At(e){return e.offset+=2,e.view.getInt16(e.offset-2,!1)}function We(e){return e.offset+=2,e.view.getUint16(e.offset-2,!1)}function cE(e){return e.offset+=2,e.view.getUint16(e.offset-2,!0)}function it(e){return e.offset+=4,e.view.getInt32(e.offset-4,!1)}function Fg(e){return e.offset+=4,e.view.getInt32(e.offset-4,!0)}function Fe(e){return e.offset+=4,e.view.getUint32(e.offset-4,!1)}function qn(e){return e.offset+=4,e.view.getFloat32(e.offset-4,!1)}function Ln(e){return e.offset+=8,e.view.getFloat64(e.offset-8,!1)}function _n(e){return it(e)/65536}function Wn(e){return it(e)/(1<<24)}function hr(e,t){var r=e.view.byteOffset+e.offset;if(e.offset+=t,r+t>e.view.buffer.byteLength){if(ud(e,"Reading bytes exceeding buffer length"),t>100*1024*1024)throw new Error("Reading past end of file");var n=new Uint8Array(t),a=Math.min(t,e.view.byteLength-r);return a>0&&n.set(new Uint8Array(e.view.buffer,r,a)),n}else return new Uint8Array(e.view.buffer,r,t)}function qt(e){return Og(e,4)}function fE(e,t){var r=String.fromCharCode(e.view.getUint8(t))+String.fromCharCode(e.view.getUint8(t+1))+String.fromCharCode(e.view.getUint8(t+2))+String.fromCharCode(e.view.getUint8(t+3));return r=="8BIM"||r=="8B64"}function Kn(e,t){for(var r=Ye(e),n=r?Og(e,r):"";++r%t;)e.offset++;return n}function xr(e){var t=Fe(e);return cd(e,t)}function cd(e,t){for(var r="";t--;){var n=We(e);(n||t>0)&&(r+=String.fromCharCode(n))}return r}function dE(e,t){for(var r="";t--;){var n=cE(e);(n||t>0)&&(r+=String.fromCharCode(n))}return r}function su(e,t){for(var r="";t--;)r+=String.fromCharCode(Ye(e));return r}function et(e,t){e.offset+=t}function _a(e,t,r){var n=e.offset,a=qt(e);if(a!==t&&a!==r)throw new Error("Invalid signature: '".concat(a,"' at 0x").concat(n.toString(16)))}function Og(e,t){for(var r=hr(e,t),n="",a=0;a<r.length;a++)n+=String.fromCharCode(r[a]);return n}function hE(e){return e==="8BIM"||e==="MeSa"||e==="AgHg"||e==="PHUT"||e==="DCSR"}function pE(e,t){var r;t===void 0&&(t={}),_a(e,"8BPS");var n=We(e);if(n!==1&&n!==2)throw new Error("Invalid PSD file version: ".concat(n));et(e,6);var a=We(e),i=Fe(e),o=Fe(e),l=We(e),s=We(e),u=n===1?3e4:3e5;if(o>u||i>u)throw new Error("Invalid size: ".concat(o,"x").concat(i));if(a>16)throw new Error("Invalid channel count: ".concat(a));if(![1,8,16,32].includes(l))throw new Error("Invalid bitsPerChannel: ".concat(l));if(zg.indexOf(s)===-1)throw new Error("Color mode not supported: ".concat((r=sE[s])!==null&&r!==void 0?r:s));var c={width:o,height:i,channels:a,bitsPerChannel:l,colorMode:s};Object.assign(e,t),e.large=n===2,e.globalAlpha=!1,wn(e,1,function(p){if(p()){if(s===2){if(p()!=768)throw new Error("Invalid color palette size");c.palette=[];for(var x=0;x<256;x++)c.palette.push({r:Ye(e),g:0,b:0});for(var x=0;x<256;x++)c.palette[x].g=Ye(e);for(var x=0;x<256;x++)c.palette[x].b=Ye(e)}et(e,p())}});var f={};wn(e,1,function(p){for(var x=function(){Bg(e,hE);var g=We(e);Kn(e,2),wn(e,2,function(m){var y=wg[g],v=g===1036&&!!e.skipThumbnail;if(y&&!v)try{y.read(e,f,m)}catch(k){if(e.throwForMissingFeatures)throw k;et(e,m())}else et(e,m())})};p()>0;)x()}),f.layersGroup,f.layerGroupsEnabledId;var d=lE(f,["layersGroup","layerGroupsEnabledId"]);Object.keys(d)&&(c.imageResources=d),wn(e,1,function(p){if(wn(e,2,function(g){fd(e,c,f),et(e,g())},void 0,e.large),p()>0){var x=yE(e);x&&(c.globalLayerMaskInfo=x)}else et(e,p());for(;p()>0;){for(;p()&&uE(e)===0;)et(e,1);p()>=12?Ng(e,c,c,f):et(e,p())}},void 0,e.large);var h=c.children&&c.children.length,b=e.skipCompositeImageData&&(e.skipLayerImageData||h);return b||wE(e,c),c}function fd(e,t,r){var n,a,i=r.layersGroup,o=i===void 0?[]:i,l=r.layerGroupsEnabledId,s=l===void 0?[]:l,u=At(e);u<0&&(e.globalAlpha=!0,u=-u);for(var c=[],f=[],d=0;d<u;d++){var h=vE(e,t,r),b=h.layer,p=h.channels;o[d]!==void 0&&(b.linkGroup=o[d]),s[d]!==void 0&&(b.linkGroupEnabled=!!s[d]),c.push(b),f.push(p)}for(var d=0;d<u;d++)bE(e,t,c[d],f[d]);t.children||(t.children=[]);for(var x=[t],d=c.length-1;d>=0;d--){var g=c[d],m=g.sectionDivider?g.sectionDivider.type:0;m===1||m===2?(g.opened=m===1,g.children=[],!((n=g.sectionDivider)===null||n===void 0)&&n.key&&(g.blendMode=(a=Oo[g.sectionDivider.key])!==null&&a!==void 0?a:g.blendMode),x[x.length-1].children.unshift(g),x.push(g)):m===3?x.pop():x[x.length-1].children.unshift(g)}}function vE(e,t,r){var n={};n.top=it(e),n.left=it(e),n.bottom=it(e),n.right=it(e);for(var a=We(e),i=[],o=0;o<a;o++){var l=At(e),s=Fe(e);if(e.large){if(s!==0)throw new Error("Sizes larger than 4GB are not supported");s=Fe(e)}i.push({id:l,length:s})}_a(e,"8BIM");var u=qt(e);if(!Oo[u])throw new Error("Invalid blend mode: '".concat(u,"'"));n.blendMode=Oo[u],n.opacity=Ye(e)/255,n.clipping=Ye(e)===1;var c=Ye(e);return n.transparencyProtected=(c&1)!==0,n.hidden=(c&2)!==0,c&32&&(n.effectsOpen=!0),et(e,1),wn(e,1,function(f){mE(e,n);var d=gE(e);for(d&&(n.blendingRanges=d),n.name=Kn(e,1);f()>4&&!fE(e,e.offset);)e.offset++;for(;f()>=12;)Ng(e,n,t,r);et(e,f())}),{layer:n,channels:i}}function mE(e,t){return wn(e,1,function(r){if(r()){var n={};t.mask=n,n.top=it(e),n.left=it(e),n.bottom=it(e),n.right=it(e),n.defaultColor=Ye(e);var a=Ye(e);if(n.positionRelativeToLayer=(a&1)!==0,n.disabled=(a&2)!==0,n.fromVectorData=(a&8)!==0,r()>=18){var i={};t.realMask=i;var o=Ye(e);i.positionRelativeToLayer=(o&1)!==0,i.disabled=(o&2)!==0,i.fromVectorData=(o&8)!==0,i.defaultColor=Ye(e),i.top=it(e),i.left=it(e),i.bottom=it(e),i.right=it(e)}if(a&16){var l=Ye(e);l&1&&(n.userMaskDensity=Ye(e)/255),l&2&&(n.userMaskFeather=Ln(e)),l&4&&(n.vectorMaskDensity=Ye(e)/255),l&8&&(n.vectorMaskFeather=Ln(e))}et(e,r())}})}function uu(e){return[Ye(e),Ye(e),Ye(e),Ye(e)]}function gE(e){return wn(e,1,function(t){for(var r=uu(e),n=uu(e),a=[];t()>0;){var i=uu(e),o=uu(e);a.push({sourceRange:i,destRange:o})}return{compositeGrayBlendSource:r,compositeGraphBlendDestinationRange:n,ranges:a}})}function bE(e,t,r,n){if(!e.skipLayerImageData){var a=t.colorMode,i=a===void 0?3:a,o=t.bitsPerChannel,l=o===void 0?8:o;r.rawData={colorMode:i,bitsPerChannel:l,channels:[],large:e.large};for(var s=0,u=n;s<u.length;s++){var c=u[s],f=e.offset,d=0,h=void 0;if(c.length===1)throw new Error("Invalid channel length");if(c.length){if(d=We(e),d>3&&(e.offset-=1,d=We(e)),d>3&&(e.offset-=3,d=We(e)),d>3)throw new Error("Invalid compression: ".concat(d));c.length>2&&(h=hr(e,c.length-2))}e.offset=f+c.length,r.rawData.channels.push({id:c.id,compression:d,data:h})}e.useRawData||Rg(r,!!e.useImageData,!!e.throwForMissingFeatures)}}function Pg(e,t){for(var r=e.data,n=r instanceof Float32Array?1:r instanceof Uint16Array?65535:255,a=(t?4:3)|0,i=r.length|0,o=(t?5:4)|0,l=a;l<i;l=l+o|0)r[l]=n}function Rg(e,t,r){if(e.rawData){var n=e.rawData,a=n.colorMode,i=n.bitsPerChannel,o=n.channels,l=n.large,s=(e.right||0)-(e.left||0),u=(e.bottom||0)-(e.top||0),c=a===4,f,d=!1;if(s&&u)if(c){if(i!==8)throw new Error("bitsPerChannel Not supproted");f={width:s,height:u,data:new Uint8ClampedArray(s*u*5)}}else f=dd(s,u,i);for(var h=0,b=o;h<b.length;h++){var p=b[h],x=p.id,g=p.compression,m=p.data;if(m){var y=jo(m.buffer,m.byteOffset,m.byteLength);if(x===-2||x===-3){var v=x===-2?e.mask:e.realMask;if(!v)throw new Error("Missing layer ".concat(x===-2?"mask":"real mask"," data"));var k=(v.right||0)-(v.left||0),C=(v.bottom||0)-(v.top||0);if(k<0||C<0||k>3e4||C>3e4)throw new Error("Invalid mask size");if(k&&C){var A=dd(k,C,i);Lg(y,m.byteLength,A,g,k,C,i,0,l,4),lu(A),Pg(A,!1),t?v.imageData=A:v.canvas=X0(A)}}else{var _=Y4(x,c),E=f;if(_<0&&(E=void 0,r))throw new Error("Channel not supported: ".concat(x));Lg(y,m.byteLength,E,g,s,u,i,_,l,c?5:4),E&&a===1&&lu(E)}x===-1&&(d=!0)}}if(f){if(d||Pg(f,c),c){var M=f;f=Ro(M.width,M.height),$g(M,f,!1)}t?e.imageData=f:e.canvas=X0(f)}delete e.rawData}}function Lg(e,t,r,n,a,i,o,l,s,u){if(t)if(n===0){t!==a*i*Math.floor(o/8)&&e.log("Invalid length (".concat(t,", ").concat(a*i*Math.floor(o/8),")"));var c=hr(e,t);Hg(c,r,o,u,l)}else if(n===1)bi(e,r,a,i,o,u,[l],s);else if(n===2){var c=hr(e,t);jg(c,r,a,i,o,u,l,!1)}else if(n===3){var c=hr(e,t);jg(c,r,a,i,o,u,l,!0)}else throw new Error("Invalid Compression type: ".concat(n))}function yE(e){return wn(e,1,function(t){if(t()){var r=We(e),n=We(e),a=We(e),i=We(e),o=We(e),l=We(e)/255,s=Ye(e);return et(e,t()),{overlayColorSpace:r,colorSpace1:n,colorSpace2:a,colorSpace3:i,colorSpace4:o,opacity:l,kind:s}}})}var xE=[0,1,-1,2,-2,3,-3,4,-4];function Bg(e,t){for(var r=e.offset,n="",a=0,i=xE;a<i.length;a++){var o=i[a];try{e.offset=r+o,n=qt(e)}catch{}if(t(n))break}if(!t(n))throw new Error("Invalid signature: '".concat(n,"' at 0x").concat(r.toString(16)));return n}function _E(e){return e==="8BIM"||e==="8B64"}function Ng(e,t,r,n){var a=Bg(e,_E),i=qt(e),o=a==="8B64"||e.large&&q4.indexOf(i)!==-1;wn(e,2,function(l){var s=du[i];if(s)try{s.read(e,t,l,r,n)}catch(u){if(e.throwForMissingFeatures)throw u}else e.logMissingFeatures&&e.log("Unhandled additional info: ".concat(i)),et(e,l());l()&&(e.logMissingFeatures&&e.log("Unread ".concat(l()," bytes left for additional info: ").concat(i)),et(e,l()))},!1,o)}function dd(e,t,r,n){if(n===void 0&&(n=4),r===1||r===8)return n===4?Ro(e,t):{width:e,height:t,data:new Uint8ClampedArray(e*t*n)};if(r===16)return{width:e,height:t,data:new Uint16Array(e*t*n)};if(r===32)return{width:e,height:t,data:new Float32Array(e*t*n)};throw new Error("Invalid bitDepth (".concat(r,")"))}function wE(e,t){var r,n=We(e),a=(r=t.bitsPerChannel)!==null&&r!==void 0?r:8;if(zg.indexOf(t.colorMode)===-1)throw new Error("Color mode not supported: ".concat(t.colorMode));if(n!==0&&n!==1)throw new Error("Compression type not supported: ".concat(n));var i=dd(t.width,t.height,a);switch(RA(i),t.colorMode){case 0:{if(a!==1)throw new Error("Invalid bitsPerChannel for bitmap color mode");var o=void 0;if(n===0)o=hr(e,Math.ceil(t.width/8)*t.height);else if(n===1)o=new Uint8Array(t.width*t.height),bi(e,{data:o,width:t.width,height:t.height},t.width,t.height,8,1,[0],e.large);else throw new Error("Bitmap compression not supported: ".concat(n));LA(o,i.data,t.width,t.height);break}case 3:case 1:{var l=t.colorMode===1?[0]:[0,1,2];if(t.channels&&t.channels>3)for(var s=3;s<t.channels;s++)l.push(s);else e.globalAlpha&&l.push(3);if(n===0)for(var s=0;s<l.length;s++){var u=hr(e,t.width*t.height*Math.floor(a/8));Hg(u,i,a,4,l[s])}else n===1&&(e.offset,bi(e,i,t.width,t.height,a,4,l,e.large));t.colorMode===1&&lu(i);break}case 2:{if(a!==8)throw new Error("bitsPerChannel Not supproted");if(t.channels!==1)throw new Error("Invalid channel count");if(!t.palette)throw new Error("Missing color palette");if(n===0)throw new Error("Not implemented");if(n===1){var c={width:i.width,height:i.height,data:new Uint8Array(i.width*i.height)};bi(e,c,t.width,t.height,a,1,[0],e.large),kE(c,i,t.palette)}else throw new Error("Not implemented");break}case 4:{if(a!==8)throw new Error("bitsPerChannel Not supproted");if(t.channels!==4)throw new Error("Invalid channel count");var l=[0,1,2,3];if(e.globalAlpha&&l.push(4),n===0)throw new Error("Not implemented");if(n===1){var f={width:i.width,height:i.height,data:new Uint8Array(i.width*i.height*5)};e.offset,bi(e,f,t.width,t.height,a,5,l,e.large),$g(f,i,!0)}else throw new Error("Not implemented");break}default:throw new Error("Color mode not supported: ".concat(t.colorMode))}if(e.globalAlpha){if(t.bitsPerChannel!==8)throw new Error("bitsPerChannel Not supproted");for(var d=i.data,h=i.width*i.height*4,s=0;s<h;s+=4){var b=d[s+3];if(b!=0&&b!=255){var p=b/255,x=1/p,g=255*(1-x);d[s+0]=d[s+0]*x+g,d[s+1]=d[s+1]*x+g,d[s+2]=d[s+2]*x+g}}}e.useImageData?t.imageData=i:t.canvas=X0(i)}function $g(e,t,r){for(var n=t.width*t.height*4,a=e.data,i=t.data,o=0,l=0;l<n;o+=5,l+=4){var s=a[o],u=a[o+1],c=a[o+2],f=a[o+3];i[l]=(s*f|0)/255|0,i[l+1]=(u*f|0)/255|0,i[l+2]=(c*f|0)/255|0,i[l+3]=r?255-a[o+4]:a[o+4]}}function kE(e,t,r){for(var n=e.width*e.height,a=e.data,i=t.data,o=0,l=0;o<n;o++,l+=4){var s=r[a[o]];i[l+0]=s.r,i[l+1]=s.g,i[l+2]=s.b,i[l+3]=255}}function SE(e,t){if(e.byteLength/e.length!==t.byteLength/t.length)throw new Error("Invalid array types")}function Ug(e,t){if(t===8)return e;if(t===16){for(var r=0;r<e.byteLength;r+=2){var n=e[r];e[r]=e[r+1],e[r+1]=n}if(e.byteOffset%2){var a=new Uint16Array(e.byteLength/2);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength).set(e),a}else return new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2)}else if(t===32)if(e.byteOffset%4){var a=new Float32Array(e.byteLength/4);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength).set(e),a}else return new Float32Array(e.buffer,e.byteOffset,e.byteLength/4);else throw new Error("Invalid bitDepth (".concat(t,")"))}function hd(e,t,r,n){SE(e.data,t);for(var a=e.width*e.height,i=e.data,o=0,l=r|0;o<a;o++,l=l+n|0)i[l]=t[o]}function Hg(e,t,r,n,a){if(r==32)for(var i=0;i<e.byteLength;i+=4){var o=e[i+0],l=e[i+1],s=e[i+2],u=e[i+3];e[i+0]=u,e[i+1]=s,e[i+2]=l,e[i+3]=o}var c=Ug(e,r);t&&a<n&&hd(t,c,a,n)}function pd(e,t,r,n){for(var a=0;a<r;a++)for(var i=a*t,o=1,l=i+1;o<t;o++,l++)e[l]=(e[l-1]+e[l])%n}function jg(e,t,r,n,a,i,o,l){var s=AA(e);if(t&&o<i){var u=Ug(s,a);if(a===8)l&&pd(s,r,n,256),hd(t,s,o,i);else if(a===16)l&&pd(u,r,n,65536),hd(t,u,o,i);else if(a===32){l&&pd(s,r*4,n,256);for(var c=o,f=new Uint32Array(t.data.buffer,t.data.byteOffset,t.data.length),d=0;d<n;d++)for(var h=r*4*d,b=0;b<r;b++,h++,c+=i){var p=h+r,x=p+r,g=x+r;f[c]=(s[h]<<24|s[p]<<16|s[x]<<8|s[g])>>>0}}else throw new Error("Invalid bitDepth")}}function bi(e,t,r,n,a,i,o,l){var s=t&&t.data,u;if(l){u=new Uint32Array(o.length*n);for(var c=0,f=0;c<o.length;c++)for(var d=0;d<n;d++,f++)u[f]=Fe(e)}else{u=new Uint16Array(o.length*n);for(var c=0,f=0;c<o.length;c++)for(var d=0;d<n;d++,f++)u[f]=We(e)}for(var h=i-1|0,b=0,f=0;b<o.length;b++){var p=o[b]|0,x=b>h||p>h;if(!s||x)for(var d=0;d<n;d++,f++)et(e,u[f]);else for(var d=0,g=p|0;d<n;d++,f++)for(var m=u[f],y=hr(e,m),v=0,k=0;v<m;v++){var C=y[v];if(C>128){var A=y[++v];C=256-C|0;for(var _=0;_<=C&&k<r;_=_+1|0,k=k+1|0)s[g]=A,g=g+i|0}else if(C<128)for(var _=0;_<=C&&k<r;_=_+1|0,k=k+1|0)s[g]=y[++v],g=g+i|0}}}function wn(e,t,r,n,a){n===void 0&&(n=!0),a===void 0&&(a=!1);var i=Fe(e);if(a){if(i!==0)throw new Error("Sizes larger than 4GB are not supported");i=Fe(e)}if(!(i<=0&&n)){var o=e.offset+i;if(o>e.view.byteLength)throw new Error("Section exceeds file size");var l=r(function(){return o-e.offset});for(e.offset!==o&&(e.offset>o?ud(e,"Exceeded section limits"):ud(e,"Unread section data"));i%t;)i++,o++;return e.offset=o,l}}function Ir(e){var t=We(e);switch(t){case 0:{var r=We(e)/257,n=We(e)/257,a=We(e)/257;return et(e,2),{r,g:n,b:a}}case 1:{var i=We(e)/65535,o=We(e)/65535,a=We(e)/65535;return et(e,2),{h:i,s:o,b:a}}case 2:{var l=We(e)/257,s=We(e)/257,u=We(e)/257,c=We(e)/257;return{c:l,m:s,y:u,k:c}}case 7:{var f=At(e)/1e4,d=At(e),h=At(e),b=d<0?d/12800:d/12700,a=h<0?h/12800:h/12700;return et(e,2),{l:f,a:b,b:a}}case 8:{var c=We(e)*255/1e4;return et(e,6),{k:c}}default:throw new Error("Invalid color space")}}function CE(e){for(var t=Fe(e);t%4;)t++;var r=e.offset+t,n=Fe(e);if(n!==1)throw new Error("Invalid pattern version: ".concat(n));var a=Fe(e),i=At(e),o=At(e);if(a!==3&&a!==1&&a!==2)throw new Error("Unsupported pattern color mode: ".concat(a));var l=xr(e),s=Kn(e,1),u=[];if(a===2){for(var c=0;c<256;c++)u.push({r:Ye(e),g:Ye(e),b:Ye(e)});et(e,4)}var f=Fe(e);if(f!==3)throw new Error("Invalid pattern VMAL version: ".concat(f));Fe(e);for(var d=Fe(e),h=Fe(e),b=Fe(e),p=Fe(e),x=Fe(e),g=p-h,m=b-d,y=new Uint8Array(g*m*4),c=3;c<y.byteLength;c+=4)y[c]=255;for(var c=0,v=0;c<x+2;c++){var k=Fe(e);if(k){var C=Fe(e),A=Fe(e),_=Fe(e),E=Fe(e),M=Fe(e),z=Fe(e),R=We(e),O=Ye(e),H=C-23,Z=hr(e,H);if(A!==8||R!==8)throw new Error("16bit pixel depth not supported for patterns");var q=z-E,X=M-_,Q=E-h,te=_-d;if(O===0){if(a===3&&v<3)for(var _e=0;_e<X;_e++)for(var he=0;he<q;he++){var we=he+_e*q,pe=(Q+he+(_e+te)*g)*4;y[pe+v]=Z[we]}if(a===1&&v<1)for(var De=0;De<X;De++)for(var Ee=0;Ee<q;Ee++){var we=Ee+De*q,pe=(Q+Ee+(De+te)*g)*4,Oe=Z[we];y[pe+0]=Oe,y[pe+1]=Oe,y[pe+2]=Oe}if(a===2)throw new Error("Indexed pattern color mode not implemented")}else if(O===1){var Pe={data:y,width:g,height:m},Me={data:new Uint8Array(q*X),width:q,height:X},ce=jo(Z.buffer,Z.byteOffset,Z.byteLength);if(a===3&&v<3&&(bi(ce,Me,q,X,8,1,[0],!1),Gg(Me,Pe,Q,te,v)),a===1&&v<1&&(bi(ce,Me,q,X,8,1,[0],!1),Gg(Me,Pe,Q,te,0),lu(Pe)),a===2)throw new Error("Indexed pattern color mode not implemented")}else throw new Error("Invalid pattern compression mode");v++}}return e.offset=r,{id:s,name:l,x:i,y:o,bounds:{x:h,y:d,w:g,h:m},data:y}}function Gg(e,t,r,n,a){for(var i=e.width,o=e.height,l=t.width,s=0;s<o;s++)for(var u=0;u<i;u++){var c=u+s*i,f=(r+u+(s+n)*l)*4,d=e.data[c];t.data[f+a]=d}}var Vg=[void 0,"outer bevel","inner bevel","emboss","pillow emboss","stroke emboss"];function Go(e){return _a(e,"8BIM"),Oo[qt(e)]||"normal"}function Vo(e,t){vt(e,"8BIM"),vt(e,K0[t]||"norm")}function qo(e){return Ye(e)/255}function Wo(e,t){qe(e,Math.round(t*255)|0)}function AE(e){var t=We(e);if(t!==0)throw new Error("Invalid effects layer version: ".concat(t));for(var r=We(e),n={},a=0;a<r;a++){_a(e,"8BIM");var i=qt(e);switch(i){case"cmnS":{var o=Fe(e),l=Fe(e),s=!!Ye(e);if(et(e,2),o!==7||l!==0||!s)throw new Error("Invalid effects common state");break}case"dsdw":case"isdw":{var u=Fe(e),c=Fe(e);if(u!==41&&u!==51)throw new Error("Invalid shadow size: ".concat(u));if(c!==0&&c!==2)throw new Error("Invalid shadow version: ".concat(c));var o=_n(e);_n(e);var f=_n(e),d=_n(e),h=Ir(e),b=Go(e),p=!!Ye(e),x=!!Ye(e),g=qo(e);u>=51&&Ir(e);var m={size:{units:"Pixels",value:o},distance:{units:"Pixels",value:d},angle:f,color:h,blendMode:b,enabled:p,useGlobalLight:x,opacity:g};i==="dsdw"?n.dropShadow=[m]:n.innerShadow=[m];break}case"oglw":{var u=Fe(e),y=Fe(e);if(u!==32&&u!==42)throw new Error("Invalid outer glow size: ".concat(u));if(y!==0&&y!==2)throw new Error("Invalid outer glow version: ".concat(y));var o=_n(e);_n(e);var h=Ir(e),b=Go(e),p=!!Ye(e),g=qo(e);u>=42&&Ir(e),n.outerGlow={size:{units:"Pixels",value:o},color:h,blendMode:b,enabled:p,opacity:g};break}case"iglw":{var u=Fe(e),v=Fe(e);if(u!==32&&u!==43)throw new Error("Invalid inner glow size: ".concat(u));if(v!==0&&v!==2)throw new Error("Invalid inner glow version: ".concat(v));var o=_n(e);_n(e);var h=Ir(e),b=Go(e),p=!!Ye(e),g=qo(e);u>=43&&(Ye(e),Ir(e)),n.innerGlow={size:{units:"Pixels",value:o},color:h,blendMode:b,enabled:p,opacity:g};break}case"bevl":{var u=Fe(e),k=Fe(e);if(u!==58&&u!==78)throw new Error("Invalid bevel size: ".concat(u));if(k!==0&&k!==2)throw new Error("Invalid bevel version: ".concat(k));var f=_n(e),C=_n(e),o=_n(e),A=Go(e),_=Go(e),E=Ir(e),M=Ir(e),z=Vg[Ye(e)]||"inner bevel",R=qo(e),O=qo(e),p=!!Ye(e),x=!!Ye(e),H=Ye(e)?"down":"up";u>=78&&(Ir(e),Ir(e)),n.bevel={size:{units:"Pixels",value:o},angle:f,strength:C,highlightBlendMode:A,shadowBlendMode:_,highlightColor:E,shadowColor:M,style:z,highlightOpacity:R,shadowOpacity:O,enabled:p,useGlobalLight:x,direction:H};break}case"sofi":{var o=Fe(e),Z=Fe(e);if(o!==34)throw new Error("Invalid effects solid fill info size: ".concat(o));if(Z!==2)throw new Error("Invalid effects solid fill info version: ".concat(Z));var b=Go(e),h=Ir(e),g=qo(e),p=!!Ye(e);Ir(e),n.solidFill=[{blendMode:b,color:h,opacity:g,enabled:p}];break}default:throw new Error("Invalid effect type: '".concat(i,"'"))}}return n}function qg(e,t){var r;Ze(e,51),Ze(e,2),Sn(e,t.size&&t.size.value||0),Sn(e,0),Sn(e,t.angle||0),Sn(e,t.distance&&t.distance.value||0),zr(e,t.color),Vo(e,t.blendMode),qe(e,t.enabled?1:0),qe(e,t.useGlobalLight?1:0),Wo(e,(r=t.opacity)!==null&&r!==void 0?r:1),zr(e,t.color)}function EE(e,t){var r,n,a,i,o,l,s=(r=t.dropShadow)===null||r===void 0?void 0:r[0],u=(n=t.innerShadow)===null||n===void 0?void 0:n[0],c=t.outerGlow,f=t.innerGlow,d=t.bevel,h=(a=t.solidFill)===null||a===void 0?void 0:a[0],b=1;if(s&&b++,u&&b++,c&&b++,f&&b++,d&&b++,h&&b++,Le(e,0),Le(e,b),vt(e,"8BIM"),vt(e,"cmnS"),Ze(e,7),Ze(e,0),qe(e,1),Pt(e,2),s&&(vt(e,"8BIM"),vt(e,"dsdw"),qg(e,s)),u&&(vt(e,"8BIM"),vt(e,"isdw"),qg(e,u)),c&&(vt(e,"8BIM"),vt(e,"oglw"),Ze(e,42),Ze(e,2),Sn(e,((i=c.size)===null||i===void 0?void 0:i.value)||0),Sn(e,0),zr(e,c.color),Vo(e,c.blendMode),qe(e,c.enabled?1:0),Wo(e,c.opacity||0),zr(e,c.color)),f&&(vt(e,"8BIM"),vt(e,"iglw"),Ze(e,43),Ze(e,2),Sn(e,((o=f.size)===null||o===void 0?void 0:o.value)||0),Sn(e,0),zr(e,f.color),Vo(e,f.blendMode),qe(e,f.enabled?1:0),Wo(e,f.opacity||0),qe(e,0),zr(e,f.color)),d){vt(e,"8BIM"),vt(e,"bevl"),Ze(e,78),Ze(e,2),Sn(e,d.angle||0),Sn(e,d.strength||0),Sn(e,((l=d.size)===null||l===void 0?void 0:l.value)||0),Vo(e,d.highlightBlendMode),Vo(e,d.shadowBlendMode),zr(e,d.highlightColor),zr(e,d.shadowColor);var p=Vg.indexOf(d.style);qe(e,p<=0?1:p),Wo(e,d.highlightOpacity||0),Wo(e,d.shadowOpacity||0),qe(e,d.enabled?1:0),qe(e,d.useGlobalLight?1:0),qe(e,d.direction==="down"?1:0),zr(e,d.highlightColor),zr(e,d.shadowColor)}h&&(vt(e,"8BIM"),vt(e,"sofi"),Ze(e,34),Ze(e,2),Vo(e,h.blendMode),zr(e,h.color),Wo(e,h.opacity||0),qe(e,h.enabled?1:0),zr(e,h.color))}function Wg(e){return e===32||e===10||e===13||e===9}function Kg(e){return e>=48&&e<=57||e===46||e===45}function Xg(e){var t=0;function r(){for(;t<e.length&&Wg(e[t]);)t++}function n(){var m=e[t];return t++,m===92&&(m=e[t],t++),m}function a(){var m="";if(e[t]===41)return t++,m;if(e[t]!==254||e[t+1]!==255)throw new Error("Invalid utf-16 BOM");for(t+=2;t<e.length&&e[t]!==41;){var y=n(),v=n(),k=y<<8|v;m+=String.fromCharCode(k)}return t++,m}var i=null,o=[];function l(m){o.length?(s(m),o.push(m)):(o.push(m),i=m)}function s(m){if(!o.length)throw new Error("Invalid data");var y=o[o.length-1];if(typeof y=="string")o[o.length-2][y]=m,c();else if(Array.isArray(y))y.push(m);else throw new Error("Invalid data")}function u(m){o.length||l({});var y=o[o.length-1];if(y&&typeof y=="string")s(m==="nil"?null:"/".concat(m));else if(y&&typeof y=="object")o.push(m);else throw new Error("Invalid data")}function c(){if(!o.length)throw new Error("Invalid data");o.pop()}r();for(var f=e.length;f>0&&e[f-1]===0;)f--;for(;t<f;){var d=t,h=e[d];if(h===60&&e[d+1]===60)t+=2,l({});else if(h===62&&e[d+1]===62)t+=2,c();else if(h===47){t+=1;for(var b=t;t<e.length&&!Wg(e[t]);)t++;for(var p="",x=b;x<t;x++)p+=String.fromCharCode(e[x]);u(p)}else if(h===40)t+=1,s(a());else if(h===91)t+=1,l([]);else if(h===93)t+=1,c();else if(h===110&&e[d+1]===117&&e[d+2]===108&&e[d+3]===108)t+=4,s(null);else if(h===116&&e[d+1]===114&&e[d+2]===117&&e[d+3]===101)t+=4,s(!0);else if(h===102&&e[d+1]===97&&e[d+2]===108&&e[d+3]===115&&e[d+4]===101)t+=5,s(!1);else if(Kg(h)){for(var g="";t<e.length&&Kg(e[t]);)g+=String.fromCharCode(e[t]),t++;s(parseFloat(g))}else t+=1,console.log("Invalid token '".concat(String.fromCharCode(h),"' (").concat(h,") at ").concat(t));r()}return i}var TE=["Axis","XY","Zone","WordSpacing","FirstLineIndent","GlyphSpacing","StartIndent","EndIndent","SpaceBefore","SpaceAfter","LetterSpacing","Values","GridSize","GridLeading","PointBase","BoxBounds","TransformPoint0","TransformPoint1","TransformPoint2","FontSize","Leading","HorizontalScale","VerticalScale","BaselineShift","Tsume","OutlineWidth","AutoLeading"],ME=["RunLengthArray"];function DE(e,t){t===void 0&&(t=!1);var r=new Uint8Array(1024),n=0,a=0;function i(m){if(n>=r.length){var y=new Uint8Array(r.length*2);y.set(r),r=y}r[n]=m,n++}function o(m){for(var y=0;y<m.length;y++)i(m.charCodeAt(y))}function l(){if(t)o(" ");else for(var m=0;m<a;m++)o(" ")}function s(m,y){l(),o("/".concat(m)),b(y,m,!0),t||o(`
280
+ `)}function u(m){return m.toString()}function c(m){return m.toFixed(5).replace(/(\d)0+$/g,"$1").replace(/^0+\.([1-9])/g,".$1").replace(/^-0+\.0(\d)/g,"-.0$1")}function f(m,y){var v=y&&TE.indexOf(y)!==-1||(m|0)!==m;return v?c(m):u(m)}function d(m){var y=Object.keys(m);return y.indexOf("98")!==-1&&y.unshift.apply(y,y.splice(y.indexOf("99"),1)),y.indexOf("99")!==-1&&y.unshift.apply(y,y.splice(y.indexOf("99"),1)),y}function h(m){(m===40||m===41||m===92)&&i(92),i(m)}function b(m,y,v){v===void 0&&(v=!1);function k(){v?o(" "):l()}if(m===null)k(),o(t?"/nil":"null");else if(typeof m=="number")k(),o(f(m,y));else if(typeof m=="boolean")k(),o(m?"true":"false");else if(typeof m=="string")if(k(),(y==="99"||y==="98")&&m.charAt(0)==="/")o(m);else{o("("),i(254),i(255);for(var C=0;C<m.length;C++){var A=m.charCodeAt(C);h(A>>8&255),h(A&255)}o(")")}else if(Array.isArray(m))if(k(),m.every(function(X){return typeof X=="number"})){o("[");for(var _=ME.indexOf(y)!==-1,E=0,M=m;E<M.length;E++){var z=M[E];o(" "),o(_?f(z):c(z))}o(" ]")}else{o("["),t||o(`
281
+ `);for(var R=0,O=m;R<O.length;R++){var z=O[R];b(z,y),t||o(`
282
+ `)}l(),o("]")}else if(typeof m=="object"){v&&!t&&o(`
283
+ `),l(),o("<<"),t||o(`
284
+ `),a++;for(var H=0,Z=d(m);H<Z.length;H++){var q=Z[H];s(q,m[q])}a--,l(),o(">>")}}if(t){if(typeof e=="object")for(var p=0,x=d(e);p<x.length;p++){var g=x[p];s(g,e[g])}}else o(`
285
+
286
+ `),b(e);return r.slice(0,n)}var _r=function(){return _r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},_r.apply(this,arguments)},Yg={name:"MyriadPro-Regular",script:0,type:0,synthetic:0},cu={justification:"left",firstLineIndent:0,startIndent:0,endIndent:0,spaceBefore:0,spaceAfter:0,autoHyphenate:!0,hyphenatedWordSize:6,preHyphen:2,postHyphen:2,consecutiveHyphens:8,zone:36,wordSpacing:[.8,1,1.33],letterSpacing:[0,0,0],glyphSpacing:[1,1,1],autoLeading:1.2,leadingType:0,hanging:!1,burasagari:!1,kinsokuOrder:0,everyLineComposer:!1},IE={font:Yg,fontSize:12,fauxBold:!1,fauxItalic:!1,autoLeading:!0,leading:0,horizontalScale:1,verticalScale:1,tracking:0,autoKerning:!0,kerning:0,baselineShift:0,fontCaps:0,fontBaseline:0,underline:!1,strikethrough:!1,ligatures:!0,dLigatures:!1,baselineDirection:2,tsume:0,styleRunAlignment:2,language:0,noBreak:!1,fillColor:{r:0,g:0,b:0},strokeColor:{r:0,g:0,b:0},fillFlag:!0,strokeFlag:!1,fillFirst:!0,yUnderline:1,outlineWidth:1,characterDirection:0,hindiNumbers:!1,kashida:1,diacriticPos:2},zE={isOn:!1,show:!1,size:18,leading:22,color:{r:0,g:0,b:255},leadingFillColor:{r:0,g:0,b:255},alignLineHeightToGridFlags:!1},vd=["justification","firstLineIndent","startIndent","endIndent","spaceBefore","spaceAfter","autoHyphenate","hyphenatedWordSize","preHyphen","postHyphen","consecutiveHyphens","zone","wordSpacing","letterSpacing","glyphSpacing","autoLeading","leadingType","hanging","burasagari","kinsokuOrder","everyLineComposer"],md=["font","fontSize","fauxBold","fauxItalic","autoLeading","leading","horizontalScale","verticalScale","tracking","autoKerning","kerning","baselineShift","fontCaps","fontBaseline","underline","strikethrough","ligatures","dLigatures","baselineDirection","tsume","styleRunAlignment","language","noBreak","fillColor","strokeColor","fillFlag","strokeFlag","fillFirst","yUnderline","outlineWidth","characterDirection","hindiNumbers","kashida","diacriticPos"],Zg=["none","crisp","strong","smooth","sharp"],Jg=["left","right","center","justify-left","justify-right","justify-center","justify-all"];function Qg(e){return e.substring(0,1).toUpperCase()+e.substring(1)}function FE(e){var t=e.Values;switch(e.Type){case 0:return{k:t[1]*255};case 1:return t[0]===1?{r:t[1]*255,g:t[2]*255,b:t[3]*255}:{r:t[1]*255,g:t[2]*255,b:t[3]*255,a:t[0]*255};case 2:return{c:t[1]*255,m:t[2]*255,y:t[3]*255,k:t[4]*255};default:throw new Error("Unknown color type in text layer")}}function gd(e){if(e){if("r"in e)return{Type:1,Values:["a"in e?e.a/255:1,e.r/255,e.g/255,e.b/255]};if("c"in e)return{Type:2,Values:[1,e.c/255,e.m/255,e.y/255,e.k/255]};if("k"in e)return{Type:0,Values:[1,e.k/255]};throw new Error("Invalid color type in text layer")}else return{Type:1,Values:[0,0,0,0]}}function eb(e,t){if(!e||!t||e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function tb(e,t){if(!e||!t)return!1;for(var r=0,n=Object.keys(e);r<n.length;r++){var a=n[r];if(e[a]!==t[a])return!1}for(var i=0,o=Object.keys(t);i<o.length;i++){var a=o[i];if(e[a]!==t[a])return!1}return!0}function OE(e,t){for(var r=0;r<e.length;r++)if(e[r].name===t.name)return r;return e.push(t),e.length-1}function rb(e,t,r){for(var n={},a=0,i=t;a<i.length;a++){var o=i[a],l=Qg(o);e[l]!==void 0&&(o==="justification"?n[o]=Jg[e[l]]:o==="font"?n[o]=r[e[l]]:o==="fillColor"||o==="strokeColor"?n[o]=FE(e[l]):n[o]=e[l])}return n}function nb(e,t,r){for(var n,a={},i=0,o=t;i<o.length;i++){var l=o[i],s=Qg(l);e[l]!==void 0&&(l==="justification"?a[s]=Jg.indexOf((n=e[l])!==null&&n!==void 0?n:"left"):l==="font"?a[s]=OE(r,e[l]):l==="fillColor"||l==="strokeColor"?a[s]=gd(e[l]):a[s]=e[l])}return a}function PE(e,t){return rb(e,vd,t)}function RE(e,t){return rb(e,md,t)}function fu(e,t){return nb(e,vd,t)}function bd(e,t){return nb(e,md,t)}function ab(e,t,r){if(t.length){for(var n=function(l){var s=t[0].style[l];if(s!==void 0){var u=!1;Array.isArray(s)?u=t.every(function(p){return eb(p.style[l],s)}):typeof s=="object"?u=t.every(function(p){return tb(p.style[l],s)}):u=t.every(function(p){return p.style[l]===s}),u&&(e[l]=s)}var c=e[l];if(c!==void 0)for(var f=0,d=t;f<d.length;f++){var h=d[f],b=!1;Array.isArray(s)?b=eb(h.style[l],s):typeof s=="object"?b=tb(h.style[l],s):b=h.style[l]===s,b&&delete h.style[l]}},a=0,i=r;a<i.length;a++){var o=i[a];n(o)}t.every(function(l){return Object.keys(l.style).length===0})&&(t.length=0)}}function LE(e){for(var t,r,n,a,i,o,l=e.EngineDict,s=e.ResourceDict,u=s.FontSet.map(function(C){return{name:C.Name,script:C.Script,type:C.FontType,synthetic:C.Synthetic}}),c=l.Editor.Text.replace(/\r/g,`
287
+ `),f=0;/\n$/.test(c);)c=c.substring(0,c.length-1),f++;var d={text:c,antiAlias:(t=Zg[l.AntiAlias])!==null&&t!==void 0?t:"smooth",useFractionalGlyphWidths:!!l.UseFractionalGlyphWidths,superscriptSize:s.SuperscriptSize,superscriptPosition:s.SuperscriptPosition,subscriptSize:s.SubscriptSize,subscriptPosition:s.SubscriptPosition,smallCapSize:s.SmallCapSize},h=(o=(i=(a=(n=(r=l.Rendered)===null||r===void 0?void 0:r.Shapes)===null||n===void 0?void 0:n.Children)===null||a===void 0?void 0:a[0])===null||i===void 0?void 0:i.Cookie)===null||o===void 0?void 0:o.Photoshop;h&&(d.shapeType=h.ShapeType===1?"box":"point",h.PointBase&&(d.pointBase=h.PointBase),h.BoxBounds&&(d.boxBounds=h.BoxBounds));var b=l.ParagraphRun;d.paragraphStyle={},d.paragraphStyleRuns=[];for(var p=0;p<b.RunArray.length;p++){var x=b.RunArray[p],g=b.RunLengthArray[p],m=PE(x.ParagraphSheet.Properties,u);d.paragraphStyleRuns.push({length:g,style:m})}for(var y=f;d.paragraphStyleRuns.length&&y>0;y--)--d.paragraphStyleRuns[d.paragraphStyleRuns.length-1].length===0&&d.paragraphStyleRuns.pop();ab(d.paragraphStyle,d.paragraphStyleRuns,vd),d.paragraphStyleRuns.length||delete d.paragraphStyleRuns;var v=l.StyleRun;d.style={},d.styleRuns=[];for(var p=0;p<v.RunArray.length;p++){var k=v.RunLengthArray[p],m=RE(v.RunArray[p].StyleSheet.StyleSheetData,u);m.font||(m.font=u[0]),d.styleRuns.push({length:k,style:m})}for(var y=f;d.styleRuns.length&&y>0;y--)--d.styleRuns[d.styleRuns.length-1].length===0&&d.styleRuns.pop();return ab(d.style,d.styleRuns,md),d.styleRuns.length||delete d.styleRuns,d}function BE(e){var t,r,n,a,i,o,l,s,u,c,f,d,h="".concat((e.text||"").replace(/\r?\n/g,"\r"),"\r"),b=[{name:"AdobeInvisFont",script:0,type:0,synthetic:0}],p=((t=e.style)===null||t===void 0?void 0:t.font)||((n=(r=e.styleRuns)===null||r===void 0?void 0:r.find(function(Ee){return Ee.style.font}))===null||n===void 0?void 0:n.style.font)||Yg,x=[],g=[],m=e.paragraphStyleRuns;if(m&&m.length){for(var y=h.length,v=0,k=m;v<k.length;v++){var C=k[v],A=Math.min(C.length,y);y-=A,A&&(y===1&&C===m[m.length-1]&&(A++,y--),g.push(A),x.push({ParagraphSheet:{DefaultStyleSheet:0,Properties:fu(_r(_r(_r({},cu),e.paragraphStyle),C.style),b)},Adjustments:{Axis:[1,0,1],XY:[0,0]}}))}y&&(g.push(y),x.push({ParagraphSheet:{DefaultStyleSheet:0,Properties:fu(_r(_r({},cu),e.paragraphStyle),b)},Adjustments:{Axis:[1,0,1],XY:[0,0]}}))}else for(var _=0,E=0;_<h.length;_++)h.charCodeAt(_)===13&&(g.push(_-E+1),x.push({ParagraphSheet:{DefaultStyleSheet:0,Properties:fu(_r(_r({},cu),e.paragraphStyle),b)},Adjustments:{Axis:[1,0,1],XY:[0,0]}}),E=_+1);for(var M=bd(_r(_r({},IE),{font:p}),b),z=e.styleRuns||[{length:h.length,style:e.style||{}}],R=[],O=[],H=h.length,Z=0,q=z;Z<q.length;Z++){var X=q[Z],A=Math.min(X.length,H);H-=A,A&&(H===1&&X===z[z.length-1]&&(A++,H--),O.push(A),R.push({StyleSheet:{StyleSheetData:bd(_r(_r({kerning:0,autoKerning:!0,fillColor:{r:0,g:0,b:0}},e.style),X.style),b)}}))}H&&z.length&&(O.push(H),R.push({StyleSheet:{StyleSheetData:bd(_r({kerning:0,autoKerning:!0,fillColor:{r:0,g:0,b:0}},e.style),b)}}));var Q=_r(_r({},zE),e.gridInfo),te=e.orientation==="vertical"?2:0,_e=e.orientation==="vertical"?1:0,he=e.shapeType==="box"?1:0,we={ShapeType:he};he===0?we.PointBase=e.pointBase||[0,0]:we.BoxBounds=e.boxBounds||[0,0,0,0],we.Base={ShapeType:he,TransformPoint0:[1,0],TransformPoint1:[0,1],TransformPoint2:[0,0]};var pe={KinsokuSet:[{Name:"PhotoshopKinsokuHard",NoStart:"、。,.・:;?!ー―’”)〕]}〉》」』】ヽヾゝゞ々ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ゛゜?!)]},.:;℃℉¢%‰",NoEnd:"‘“(〔[{〈《「『【([{¥$£@§〒#",Keep:"―‥",Hanging:"、。.,"},{Name:"PhotoshopKinsokuSoft",NoStart:"、。,.・:;?!’”)〕]}〉》」』】ヽヾゝゞ々",NoEnd:"‘“(〔[{〈《「『【",Keep:"―‥",Hanging:"、。.,"}],MojiKumiSet:[{InternalName:"Photoshop6MojiKumiSet1"},{InternalName:"Photoshop6MojiKumiSet2"},{InternalName:"Photoshop6MojiKumiSet3"},{InternalName:"Photoshop6MojiKumiSet4"}],TheNormalStyleSheet:0,TheNormalParagraphSheet:0,ParagraphSheetSet:[{Name:"Normal RGB",DefaultStyleSheet:0,Properties:fu(_r(_r({},cu),e.paragraphStyle),b)}],StyleSheetSet:[{Name:"Normal RGB",StyleSheetData:M}],FontSet:b.map(function(Ee){return{Name:Ee.name,Script:Ee.script||0,FontType:Ee.type||0,Synthetic:Ee.synthetic||0}}),SuperscriptSize:(a=e.superscriptSize)!==null&&a!==void 0?a:.583,SuperscriptPosition:(i=e.superscriptPosition)!==null&&i!==void 0?i:.333,SubscriptSize:(o=e.subscriptSize)!==null&&o!==void 0?o:.583,SubscriptPosition:(l=e.subscriptPosition)!==null&&l!==void 0?l:.333,SmallCapSize:(s=e.smallCapSize)!==null&&s!==void 0?s:.7},De={EngineDict:{Editor:{Text:h},ParagraphRun:{DefaultRunData:{ParagraphSheet:{DefaultStyleSheet:0,Properties:{}},Adjustments:{Axis:[1,0,1],XY:[0,0]}},RunArray:x,RunLengthArray:g,IsJoinable:1},StyleRun:{DefaultRunData:{StyleSheet:{StyleSheetData:{}}},RunArray:R,RunLengthArray:O,IsJoinable:2},GridInfo:{GridIsOn:!!Q.isOn,ShowGrid:!!Q.show,GridSize:(u=Q.size)!==null&&u!==void 0?u:18,GridLeading:(c=Q.leading)!==null&&c!==void 0?c:22,GridColor:gd(Q.color),GridLeadingFillColor:gd(Q.color),AlignLineHeightToGridFlags:!!Q.alignLineHeightToGridFlags},AntiAlias:Zg.indexOf((f=e.antiAlias)!==null&&f!==void 0?f:"sharp"),UseFractionalGlyphWidths:(d=e.useFractionalGlyphWidths)!==null&&d!==void 0?d:!0,Rendered:{Version:1,Shapes:{WritingDirection:te,Children:[{ShapeType:he,Procession:_e,Lines:{WritingDirection:te,Children:[]},Cookie:{Photoshop:we}}]}}},ResourceDict:_r({},pe),DocumentResources:_r({},pe)};return De}var yd={0:{uproot:!0,children:{0:{name:"Type"},1:{name:"Values"}}}},xd={0:{name:"Font"},1:{name:"FontSize"},2:{name:"FauxBold"},3:{name:"FauxItalic"},4:{name:"AutoLeading"},5:{name:"Leading"},6:{name:"HorizontalScale"},7:{name:"VerticalScale"},8:{name:"Tracking"},9:{name:"BaselineShift"},11:{name:"Kerning?"},12:{name:"FontCaps"},13:{name:"FontBaseline"},15:{name:"Strikethrough?"},16:{name:"Underline?"},18:{name:"Ligatures"},19:{name:"DLigatures"},23:{name:"Fractions"},24:{name:"Ordinals"},28:{name:"StylisticAlternates"},30:{name:"OldStyle?"},35:{name:"BaselineDirection"},38:{name:"Language"},52:{name:"NoBreak"},53:{name:"FillColor",children:yd},54:{name:"StrokeColor",children:yd},55:{children:{99:{uproot:!0}}},79:{children:yd}},_d={0:{name:"Justification"},1:{name:"FirstLineIndent"},2:{name:"StartIndent"},3:{name:"EndIndent"},4:{name:"SpaceBefore"},5:{name:"SpaceAfter"},7:{name:"AutoLeading"},9:{name:"AutoHyphenate"},10:{name:"HyphenatedWordSize"},11:{name:"PreHyphen"},12:{name:"PostHyphen"},13:{name:"ConsecutiveHyphens?"},14:{name:"Zone"},15:{name:"HypenateCapitalizedWords"},17:{name:"WordSpacing"},18:{name:"LetterSpacing"},19:{name:"GlyphSpacing"},32:{name:"StyleSheet",children:xd}},ib={name:"StyleSheetData",children:xd},NE={0:{name:"ResourceDict",children:{1:{name:"FontSet",children:{0:{uproot:!0,children:{0:{uproot:!0,children:{0:{uproot:!0,children:{0:{name:"Name"},2:{name:"FontType"}}}}}}}}},2:{name:"2",children:{}},3:{name:"MojiKumiSet",children:{0:{uproot:!0,children:{0:{uproot:!0,children:{0:{name:"InternalName"}}}}}}},4:{name:"KinsokuSet",children:{0:{uproot:!0,children:{0:{uproot:!0,children:{0:{name:"Name"},5:{uproot:!0,children:{0:{name:"NoStart"},1:{name:"NoEnd"},2:{name:"Keep"},3:{name:"Hanging"},4:{name:"Name"}}}}}}}}},5:{name:"StyleSheetSet",children:{0:{uproot:!0,children:{0:{uproot:!0,children:{0:{name:"Name"},6:ib}}}}}},6:{name:"ParagraphSheetSet",children:{0:{uproot:!0,children:{0:{uproot:!0,children:{0:{name:"Name"},5:{name:"Properties",children:_d},6:{name:"DefaultStyleSheet"}}}}}}},8:{name:"TextFrameSet",children:{0:{uproot:!0,children:{0:{name:"path",children:{0:{name:"name"},1:{name:"bezierCurve",children:{0:{name:"controlPoints"}}},2:{name:"data",children:{0:{name:"type"},1:{name:"orientation"},2:{name:"frameMatrix"},4:{name:"4"},6:{name:"textRange"},7:{name:"rowGutter"},8:{name:"columnGutter"},9:{name:"9"},10:{name:"baselineAlignment",children:{0:{name:"flag"},1:{name:"min"}}},11:{name:"pathData",children:{1:{name:"1"},0:{name:"reversed"},2:{name:"2"},3:{name:"3"},4:{name:"spacing"},5:{name:"5"},6:{name:"6"},7:{name:"7"},18:{name:"18"}}},12:{name:"12"},13:{name:"13"}}},3:{name:"3"},97:{name:"uuid"}}}}}}},9:{name:"Predefined",children:{0:{children:{0:{uproot:!0}}},1:{children:{0:{uproot:!0}}}}}}},1:{name:"EngineDict",children:{0:{name:"0",children:{3:{name:"SuperscriptSize"},4:{name:"SuperscriptPosition"},5:{name:"SubscriptSize"},6:{name:"SubscriptPosition"},7:{name:"SmallCapSize"},8:{name:"UseFractionalGlyphWidths"},15:{children:{0:{uproot:!0}}}}},1:{name:"Editors?",children:{0:{name:"Editor",children:{0:{name:"Text"},5:{name:"ParagraphRun",children:{0:{name:"RunArray",children:{0:{name:"ParagraphSheet",children:{0:{uproot:!0,children:{0:{name:"0"},5:{name:"5",children:_d},6:{name:"6"}}}}},1:{name:"RunLength"}}}}},6:{name:"StyleRun",children:{0:{name:"RunArray",children:{0:{name:"StyleSheet",children:{0:{uproot:!0,children:{6:ib}}}},1:{name:"RunLength"}}}}}}},1:{name:"FontVectorData ???"}}},2:{name:"StyleSheet",children:xd},3:{name:"ParagraphSheet",children:_d}}}};function as(e,t){var r,n;if(e===null)return e;if(Array.isArray(e))return e.map(function(s){return as(s,t)});if(typeof e!="object")return e;for(var a={},i=0,o=Object.keys(e);i<o.length;i++){var l=o[i];if(t[l])if(t[l].uproot){l!=="99"&&(a=as(e[l],(r=t[l].children)!==null&&r!==void 0?r:{})),e[99]&&(a._type=e[99]);break}else a[t[l].name||l]=as(e[l],(n=t[l].children)!==null&&n!==void 0?n:{});else l==="99"?a._type=e[l]:a[l]=as(e[l],{})}return a}function $E(e){return as(e,NE)}var U=function(){return U=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},U.apply(this,arguments)},kn="abcdefghijklmnopqrstuvwxyz",ob=[],du={};function ft(e,t,r,n){var a={key:e,has:t,read:r,write:n};ob.push(a),du[a.key]=a}function Ko(e,t){du[e]=du[t]}function Gt(e){return function(t){return t[e]!==void 0}}function wd(e){if(Fe(e))throw new Error("Resource size above 4 GB limit at ".concat(e.offset.toString(16)));return Fe(e)}function kd(e,t){Ze(e,0),Ze(e,t)}ft("TySh",Gt("text"),function(e,t,r){if(At(e)!==1)throw new Error("Invalid TySh version");for(var n=[],a=0;a<6;a++)n.push(Ln(e));if(At(e)!==50)throw new Error("Invalid TySh text version");var i=Et(e);if(At(e)!==1)throw new Error("Invalid TySh warp version");var o=Et(e);if(t.text={transform:n,left:qn(e),top:qn(e),right:qn(e),bottom:qn(e),text:i["Txt "].replace(/\r/g,`
288
+ `),index:i.TextIndex||0,gridding:z2.decode(i.textGridding),antiAlias:F2.decode(i.AntA),orientation:rs.decode(i.Ornt),warp:{style:od.decode(o.warpStyle),value:o.warpValue||0,perspective:o.warpPerspective||0,perspectiveOther:o.warpPerspectiveOther||0,rotate:rs.decode(o.warpRotate)}},i.bounds&&(t.text.bounds=b2(i.bounds)),i.boundingBox&&(t.text.boundingBox=b2(i.boundingBox)),i.EngineData){var l=Xg(i.EngineData),s=LE(l);t.text=U(U({},t.text),s)}et(e,r())},function(e,t){var r=t.text,n=r.warp||{},a=r.transform||[1,0,0,1,0,0],i=U(U(U({"Txt ":(r.text||"").replace(/\r?\n/g,"\r"),textGridding:z2.encode(r.gridding),Ornt:rs.encode(r.orientation),AntA:F2.encode(r.antiAlias)},r.bounds?{bounds:y2(r.bounds)}:{}),r.boundingBox?{boundingBox:y2(r.boundingBox)}:{}),{TextIndex:r.index||0,EngineData:DE(BE(r))});Ot(e,1);for(var o=0;o<6;o++)Bn(e,a[o]);Ot(e,50),Mt(e,"","TxLr",i,"text"),Ot(e,1),Mt(e,"","warp",hu(n)),Xn(e,r.left),Xn(e,r.top),Xn(e,r.right),Xn(e,r.bottom)}),ft("SoCo",function(e){return e.vectorFill!==void 0&&e.vectorStroke===void 0&&e.vectorFill.type==="color"},function(e,t){var r=Et(e);t.vectorFill=Ql(r)},function(e,t){var r=es(t.vectorFill).descriptor;Mt(e,"","null",r)}),ft("GdFl",function(e){return e.vectorFill!==void 0&&e.vectorStroke===void 0&&(e.vectorFill.type==="solid"||e.vectorFill.type==="noise")},function(e,t,r){var n=Et(e);t.vectorFill=Ql(n),et(e,r())},function(e,t){var r=es(t.vectorFill).descriptor;Mt(e,"","null",r)}),ft("PtFl",function(e){return e.vectorFill!==void 0&&e.vectorStroke===void 0&&e.vectorFill.type==="pattern"},function(e,t){var r=Et(e);t.vectorFill=Ql(r)},function(e,t){var r=es(t.vectorFill).descriptor;Mt(e,"","null",r)}),ft("vscg",function(e){return e.vectorFill!==void 0&&e.vectorStroke!==void 0},function(e,t,r){qt(e);var n=Et(e);t.vectorFill=Ql(n),et(e,r())},function(e,t){var r=es(t.vectorFill),n=r.descriptor,a=r.key;vt(e,a),Mt(e,"","null",n)});function UE(e,t,r){var n=Wn(e)*r,a=Wn(e)*t,i=Wn(e)*r,o=Wn(e)*t,l=Wn(e)*r,s=Wn(e)*t;return[a,n,o,i,s,l]}function HE(e,t,r,n){Yn(e,t[1]/n),Yn(e,t[0]/r),Yn(e,t[3]/n),Yn(e,t[2]/r),Yn(e,t[5]/n),Yn(e,t[4]/r)}var lb=["exclude","combine","subtract","intersect"];function sb(e,t,r,n,a){for(var i=e.offset+a,o=t.paths,l=void 0;i-e.offset>=26;){var s=We(e);switch(s){case 0:case 3:{We(e);var u=At(e),c=We(e);et(e,18),l={open:s===3,knots:[],fillRule:c===2?"non-zero":"even-odd"},u!==-1&&(l.operation=lb[u]),o.push(l);break}case 1:case 2:case 4:case 5:l.knots.push({linked:s===1||s===4,points:UE(e,r,n)});break;case 6:et(e,24);break;case 7:{var f=Wn(e),d=Wn(e),h=Wn(e),b=Wn(e),p=Wn(e);et(e,4),t.clipboard={top:f,left:d,bottom:h,right:b,resolution:p};break}case 8:t.fillStartsWithAllPixels=!!We(e),et(e,22);break;default:throw new Error("Invalid vmsk section")}}return o}ft("vmsk",Gt("vectorMask"),function(e,t,r,n){var a=n.width,i=n.height;if(Fe(e)!==3)throw new Error("Invalid vmsk version");t.vectorMask={paths:[]};var o=t.vectorMask,l=Fe(e);o.invert=(l&1)!==0,o.notLink=(l&2)!==0,o.disable=(l&4)!==0,sb(e,o,a,i,r()),et(e,r())},function(e,t,r){var n=r.width,a=r.height,i=t.vectorMask,o=(i.invert?1:0)|(i.notLink?2:0)|(i.disable?4:0);Ze(e,3),Ze(e,o),Le(e,6),Pt(e,24);var l=i.clipboard;l&&(Le(e,7),Yn(e,l.top),Yn(e,l.left),Yn(e,l.bottom),Yn(e,l.right),Yn(e,l.resolution),Pt(e,4)),Le(e,8),Le(e,i.fillStartsWithAllPixels?1:0),Pt(e,22);for(var s=0,u=i.paths;s<u.length;s++){var c=u[s];Le(e,c.open?3:0),Le(e,c.knots.length),Le(e,c.operation?lb.indexOf(c.operation):-1),Le(e,c.fillRule==="non-zero"?2:1),Pt(e,18);for(var f=c.open?4:1,d=c.open?5:2,h=0,b=c.knots;h<b.length;h++){var p=b[h],x=p.linked,g=p.points;Le(e,x?f:d),HE(e,g,n,a)}}}),Ko("vsms","vmsk"),ft("vowv",Gt("vowv"),function(e,t){t.vowv=Fe(e)},function(e,t){Ze(e,t.vowv)}),ft("vogk",Gt("vectorOrigination"),function(e,t,r){if(it(e)!==1)throw new Error("Invalid vogk version");var n=Et(e);t.vectorOrigination={keyDescriptorList:[]};for(var a=0,i=n.keyDescriptorList;a<i.length;a++){var o=i[a],l={};o.keyShapeInvalidated!=null&&(l.keyShapeInvalidated=o.keyShapeInvalidated),o.keyOriginType!=null&&(l.keyOriginType=o.keyOriginType),o.keyOriginResolution!=null&&(l.keyOriginResolution=o.keyOriginResolution),o.keyOriginShapeBBox&&(l.keyOriginShapeBoundingBox={top:gi(o.keyOriginShapeBBox["Top "]),left:gi(o.keyOriginShapeBBox.Left),bottom:gi(o.keyOriginShapeBBox.Btom),right:gi(o.keyOriginShapeBBox.Rght)});var s=o.keyOriginRRectRadii;s&&(l.keyOriginRRectRadii={topRight:Nt(s.topRight),topLeft:Nt(s.topLeft),bottomLeft:Nt(s.bottomLeft),bottomRight:Nt(s.bottomRight)});var u=o.keyOriginBoxCorners;u&&(l.keyOriginBoxCorners=[{x:u.rectangleCornerA.Hrzn,y:u.rectangleCornerA.Vrtc},{x:u.rectangleCornerB.Hrzn,y:u.rectangleCornerB.Vrtc},{x:u.rectangleCornerC.Hrzn,y:u.rectangleCornerC.Vrtc},{x:u.rectangleCornerD.Hrzn,y:u.rectangleCornerD.Vrtc}]);var c=o.Trnf;c&&(l.transform=[c.xx,c.xy,c.yx,c.yy,c.tx,c.ty]),t.vectorOrigination.keyDescriptorList.push(l)}et(e,r())},function(e,t){for(var r=t.vectorOrigination,n={keyDescriptorList:[]},a=0;a<r.keyDescriptorList.length;a++){var i=r.keyDescriptorList[a];n.keyDescriptorList.push({});var o=n.keyDescriptorList[n.keyDescriptorList.length-1];i.keyOriginType!=null&&(o.keyOriginType=i.keyOriginType),i.keyOriginResolution!=null&&(o.keyOriginResolution=i.keyOriginResolution);var l=i.keyOriginRRectRadii;l&&(o.keyOriginRRectRadii={unitValueQuadVersion:1,topRight:Zt(l.topRight,"topRight"),topLeft:Zt(l.topLeft,"topLeft"),bottomLeft:Zt(l.bottomLeft,"bottomLeft"),bottomRight:Zt(l.bottomRight,"bottomRight")});var s=i.keyOriginShapeBoundingBox;s&&(o.keyOriginShapeBBox={unitValueQuadVersion:1,"Top ":Zt(s.top,"top"),Left:Zt(s.left,"left"),Btom:Zt(s.bottom,"bottom"),Rght:Zt(s.right,"right")});var u=i.keyOriginBoxCorners;u&&u.length===4&&(o.keyOriginBoxCorners={rectangleCornerA:{Hrzn:u[0].x,Vrtc:u[0].y},rectangleCornerB:{Hrzn:u[1].x,Vrtc:u[1].y},rectangleCornerC:{Hrzn:u[2].x,Vrtc:u[2].y},rectangleCornerD:{Hrzn:u[3].x,Vrtc:u[3].y}});var c=i.transform;c&&c.length===6&&(o.Trnf={xx:c[0],xy:c[1],yx:c[2],yy:c[3],tx:c[4],ty:c[5]}),i.keyShapeInvalidated!=null&&(o.keyShapeInvalidated=i.keyShapeInvalidated),o.keyOriginIndex=a}ht(e,1),Mt(e,"","null",n)}),ft("lmfx",function(e){return e.effects!==void 0&&bb(e.effects)},function(e,t,r){var n=Fe(e);if(n!==0)throw new Error("Invalid lmfx version");var a=Et(e);t.effects=Jl(a,!!e.logMissingFeatures),et(e,r())},function(e,t,r,n){var a=Zl(t.effects,!!n.logMissingFeatures,!0);Ze(e,0),Mt(e,"","null",a)}),ft("lrFX",Gt("effects"),function(e,t,r){t.effects||(t.effects=AE(e)),et(e,r())},function(e,t){EE(e,t.effects)}),ft("luni",Gt("name"),function(e,t,r){if(r()>4){var n=Fe(e);r()>=n*2?t.name=cd(e,n):e.logDevFeatures&&e.log("name in luni section is too long")}else e.logDevFeatures&&e.log("empty luni section");et(e,r())},function(e,t){Cn(e,t.name)}),ft("lnsr",Gt("nameSource"),function(e,t){return t.nameSource=qt(e)},function(e,t){return vt(e,t.nameSource)}),ft("lyid",Gt("id"),function(e,t){t.id=Fe(e)},function(e,t,r,n){for(var a=t.id;n.layerIds.has(a);)a+=100;Ze(e,a),n.layerIds.add(a),n.layerToId.set(t,a)}),ft("lsct",Gt("sectionDivider"),function(e,t,r){t.sectionDivider={type:Fe(e)},r()&&(_a(e,"8BIM"),t.sectionDivider.key=qt(e)),r()&&(t.sectionDivider.subType=Fe(e))},function(e,t){Ze(e,t.sectionDivider.type),t.sectionDivider.key&&(vt(e,"8BIM"),vt(e,t.sectionDivider.key),t.sectionDivider.subType!==void 0&&Ze(e,t.sectionDivider.subType))}),Ko("lsdk","lsct"),ft("clbl",Gt("blendClippendElements"),function(e,t){t.blendClippendElements=!!Ye(e),et(e,3)},function(e,t){qe(e,t.blendClippendElements?1:0),Pt(e,3)}),ft("infx",Gt("blendInteriorElements"),function(e,t){t.blendInteriorElements=!!Ye(e),et(e,3)},function(e,t){qe(e,t.blendInteriorElements?1:0),Pt(e,3)}),ft("knko",Gt("knockout"),function(e,t){t.knockout=!!Ye(e),et(e,3)},function(e,t){qe(e,t.knockout?1:0),Pt(e,3)}),ft("lmgm",Gt("layerMaskAsGlobalMask"),function(e,t){t.layerMaskAsGlobalMask=!!Ye(e),et(e,3)},function(e,t){qe(e,t.layerMaskAsGlobalMask?1:0),Pt(e,3)}),ft("lspf",Gt("protected"),function(e,t){var r=Fe(e);t.protected={transparency:(r&1)!==0,composite:(r&2)!==0,position:(r&4)!==0},r&8&&(t.protected.artboards=!0)},function(e,t){var r=(t.protected.transparency?1:0)|(t.protected.composite?2:0)|(t.protected.position?4:0)|(t.protected.artboards?8:0);Ze(e,r)}),ft("lclr",Gt("layerColor"),function(e,t){var r=We(e);et(e,6),t.layerColor=V4[r]},function(e,t){var r=V4.indexOf(t.layerColor);Le(e,r===-1?0:r),Pt(e,6)}),ft("shmd",function(e){return e.timestamp!==void 0||e.animationFrames!==void 0||e.animationFrameFlags!==void 0||e.timeline!==void 0||e.comps!==void 0},function(e,t,r){for(var n=Fe(e),a=function(o){_a(e,"8BIM");var l=qt(e);Ye(e),et(e,3),wn(e,1,function(s){if(l==="cust"){var u=Et(e);u.layerTime!==void 0&&(t.timestamp=u.layerTime)}else if(l==="mlst"){var u=Et(e);t.animationFrames=[];for(var c=0;c<u.LaSt.length;c++){var f=u.LaSt[c],d={frames:f.FrLs};f.enab!==void 0&&(d.enable=f.enab),f.Ofst&&(d.offset=Xl(f.Ofst)),f.FXRf&&(d.referencePoint=Xl(f.FXRf)),f.Lefx&&(d.effects=Jl(f.Lefx,!!e.logMissingFeatures)),f.blendOptions&&f.blendOptions.Opct&&(d.opacity=dt(f.blendOptions.Opct)),t.animationFrames.push(d)}}else if(l==="mdyn"){We(e);var h=Ye(e),b=Ye(e);t.animationFrameFlags={propagateFrameOne:!h,unifyLayerPosition:(b&1)!==0,unifyLayerStyle:(b&2)!==0,unifyLayerVisibility:(b&4)!==0}}else if(l==="tmln"){var u=Et(e),p=u.timeScope,x={start:nn(p.Strt),duration:nn(p.duration),inTime:nn(p.inTime),outTime:nn(p.outTime),autoScope:u.autoScope,audioLevel:u.audioLevel};u.trackList&&(x.tracks=S2(u.trackList,!!e.logMissingFeatures)),t.timeline=x}else if(l==="cmls"){var u=Et(e);t.comps={settings:[]},u.origFXRefPoint&&(t.comps.originalEffectsReferencePoint={x:u.origFXRefPoint.Hrzn,y:u.origFXRefPoint.Vrtc});for(var g=0,m=u.layerSettings;g<m.length;g++){var y=m[g];t.comps.settings.push({compList:y.compList});var v=t.comps.settings[t.comps.settings.length-1];"enab"in y&&(v.enabled=y.enab),y.Ofst&&(v.offset={x:y.Ofst.Hrzn,y:y.Ofst.Vrtc}),y.FXRefPoint&&(v.effectsReferencePoint={x:y.FXRefPoint.Hrzn,y:y.FXRefPoint.Vrtc})}}else if(l==="extn"){var u=Et(e);e.logMissingFeatures&&e.log('Unhandled "shmd" section key',l)}else e.logMissingFeatures&&e.log('Unhandled "shmd" section key',l);et(e,s())})},i=0;i<n;i++)a();et(e,r())},function(e,t,r,n){var a=t.animationFrames,i=t.animationFrameFlags,o=t.timestamp,l=t.timeline,s=t.comps,u=0;a&&u++,i&&u++,l&&u++,o!==void 0&&u++,s&&u++,Ze(e,u),a&&(vt(e,"8BIM"),vt(e,"mlst"),qe(e,0),Pt(e,3),Br(e,2,function(){for(var c,f={LaID:(c=t.id)!==null&&c!==void 0?c:0,LaSt:[]},d=0;d<a.length;d++){var h=a[d],b={};h.enable!==void 0&&(b.enab=h.enable),b.FrLs=h.frames,h.offset&&(b.Ofst=Yl(h.offset)),h.referencePoint&&(b.FXRf=Yl(h.referencePoint)),h.effects&&(b.Lefx=Zl(h.effects,!1,!1)),h.opacity!==void 0&&(b.blendOptions={Opct:Dr(h.opacity)}),f.LaSt.push(b)}Mt(e,"","null",f)},!0)),i&&(vt(e,"8BIM"),vt(e,"mdyn"),qe(e,0),Pt(e,3),Br(e,2,function(){Le(e,0),qe(e,i.propagateFrameOne?0:15),qe(e,(i.unifyLayerPosition?1:0)|(i.unifyLayerStyle?2:0)|(i.unifyLayerVisibility?4:0))})),l&&(vt(e,"8BIM"),vt(e,"tmln"),qe(e,0),Pt(e,3),Br(e,2,function(){var c={Vrsn:1,timeScope:{Vrsn:1,Strt:l.start,duration:l.duration,inTime:l.inTime,outTime:l.outTime},autoScope:l.autoScope,audioLevel:l.audioLevel};l.tracks&&(c.trackList=C2(l.tracks));var f=n.layerToId.get(t)||t.id;if(!f)throw new Error("You need to provide layer.id value whan writing document with animations");c.LyrI=f,Mt(e,"","null",c,"anim")},!0)),o!==void 0&&(vt(e,"8BIM"),vt(e,"cust"),qe(e,0),Pt(e,3),Br(e,2,function(){var c={layerTime:o};Mt(e,"","metadata",c)},!0)),s&&(vt(e,"8BIM"),vt(e,"cmls"),qe(e,0),Pt(e,3),Br(e,2,function(){var c=n.layerToId.get(t)||t.id;if(!c)throw new Error("You need to provide layer.id value whan writing document with layer comps");var f={};s.originalEffectsReferencePoint&&(f.origFXRefPoint={Hrzn:s.originalEffectsReferencePoint.x,Vrtc:s.originalEffectsReferencePoint.y}),f.LyrI=c,f.layerSettings=[];for(var d=0,h=s.settings;d<h.length;d++){var b=h[d],p={};b.enabled!==void 0&&(p.enab=b.enabled),b.offset&&(p.Ofst={Hrzn:b.offset.x,Vrtc:b.offset.y}),b.effectsReferencePoint&&(p.FXRefPoint={Hrzn:b.effectsReferencePoint.x,Vrtc:b.effectsReferencePoint.y}),p.compList=b.compList,f.layerSettings.push(p)}Mt(e,"","null",f)},!0))}),ft("PxSc",function(){return!1},function(e,t){var r=Et(e,!0);r.pixelSourceType===1986285651?t.pixelSource={type:"vdPS",origin:{x:r.origin.Hrzn,y:r.origin.Vrtc},interpretation:{interpretAlpha:r.interpretation.interpretAlpha.split(".")[1],profile:r.interpretation.profile},frameReader:{type:"QTFR",link:{name:r.frameReader["Lnk "]["Nm "],fullPath:r.frameReader["Lnk "].fullPath,originalPath:r.frameReader["Lnk "].originalPath,relativePath:r.frameReader["Lnk "].relPath,alias:r.frameReader["Lnk "].alis},mediaDescriptor:r.frameReader.mediaDescriptor},showAlteredVideo:r.showAlteredVideo}:e.log("Unknown pixelSourceType")},function(e,t){var r=t.pixelSource,n={_name:"",_classID:"PixelSource",pixelSourceType:1986285651,descVersion:1,origin:{Hrzn:r.origin.x,Vrtc:r.origin.y},interpretation:{_name:"",_classID:"footageInterpretation",Vrsn:1,interpretAlpha:"alphaInterpretation.".concat(r.interpretation.interpretAlpha),profile:r.interpretation.profile},frameReader:{_name:"",_classID:"FrameReader",frameReaderType:1364477522,descVersion:1,"Lnk ":{_name:"",_classID:"ExternalFileLink",descVersion:2,"Nm ":r.frameReader.link.name,fullPath:r.frameReader.link.fullPath,originalPath:r.frameReader.link.originalPath,alis:r.frameReader.link.alias,relPath:r.frameReader.link.relativePath},mediaDescriptor:r.frameReader.mediaDescriptor},showAlteredVideo:r.showAlteredVideo};Mt(e,"","PixelSource",n)}),ft("vstk",Gt("vectorStroke"),function(e,t,r){var n=Et(e);t.vectorStroke={strokeEnabled:n.strokeEnabled,fillEnabled:n.fillEnabled,lineWidth:Nt(n.strokeStyleLineWidth),lineDashOffset:Nt(n.strokeStyleLineDashOffset),miterLimit:n.strokeStyleMiterLimit,lineCapType:W2.decode(n.strokeStyleLineCapType),lineJoinType:K2.decode(n.strokeStyleLineJoinType),lineAlignment:X2.decode(n.strokeStyleLineAlignment),scaleLock:n.strokeStyleScaleLock,strokeAdjust:n.strokeStyleStrokeAdjust,lineDashSet:n.strokeStyleLineDashSet.map(Nt),blendMode:an.decode(n.strokeStyleBlendMode),opacity:dt(n.strokeStyleOpacity),content:Ql(n.strokeStyleContent),resolution:n.strokeStyleResolution},et(e,r())},function(e,t){var r,n,a,i=t.vectorStroke,o={strokeStyleVersion:2,strokeEnabled:!!i.strokeEnabled,fillEnabled:!!i.fillEnabled,strokeStyleLineWidth:i.lineWidth||{value:3,units:"Points"},strokeStyleLineDashOffset:i.lineDashOffset||{value:0,units:"Points"},strokeStyleMiterLimit:(r=i.miterLimit)!==null&&r!==void 0?r:100,strokeStyleLineCapType:W2.encode(i.lineCapType),strokeStyleLineJoinType:K2.encode(i.lineJoinType),strokeStyleLineAlignment:X2.encode(i.lineAlignment),strokeStyleScaleLock:!!i.scaleLock,strokeStyleStrokeAdjust:!!i.strokeAdjust,strokeStyleLineDashSet:i.lineDashSet||[],strokeStyleBlendMode:an.encode(i.blendMode),strokeStyleOpacity:Dr((n=i.opacity)!==null&&n!==void 0?n:1),strokeStyleContent:es(i.content||{type:"color",color:{r:0,g:0,b:0}}).descriptor,strokeStyleResolution:(a=i.resolution)!==null&&a!==void 0?a:72};Mt(e,"","strokeStyle",o)}),ft("artb",Gt("artboard"),function(e,t,r){var n=Et(e),a=n.artboardRect;t.artboard={rect:{top:a["Top "],left:a.Left,bottom:a.Btom,right:a.Rght},guideIndices:n.guideIndeces,presetName:n.artboardPresetName,color:Gn(n["Clr "]),backgroundType:n.artboardBackgroundType},et(e,r())},function(e,t){var r,n=t.artboard,a=n.rect,i={artboardRect:{"Top ":a.top,Left:a.left,Btom:a.bottom,Rght:a.right},guideIndeces:n.guideIndices||[],artboardPresetName:n.presetName||"","Clr ":Vn(n.color),artboardBackgroundType:(r=n.backgroundType)!==null&&r!==void 0?r:1};Mt(e,"","artboard",i)}),ft("sn2P",Gt("usingAlignedRendering"),function(e,t){return t.usingAlignedRendering=!!Fe(e)},function(e,t){return Ze(e,t.usingAlignedRendering?1:0)});var Xo=["unknown","vector","raster","image stack"];function ub(e){var t,r,n,a,i,o,l=U(U({style:od.decode(e.warpStyle)},e.warpValues?{values:e.warpValues}:{value:e.warpValue||0}),{perspective:e.warpPerspective||0,perspectiveOther:e.warpPerspectiveOther||0,rotate:rs.decode(e.warpRotate),bounds:e.bounds&&{top:gi(e.bounds["Top "]),left:gi(e.bounds.Left),bottom:gi(e.bounds.Btom),right:gi(e.bounds.Rght)},uOrder:e.uOrder,vOrder:e.vOrder});(e.deformNumRows!=null||e.deformNumCols!=null)&&(l.deformNumRows=e.deformNumRows,l.deformNumCols=e.deformNumCols);var s=e.customEnvelopeWarp;if(s){l.customEnvelopeWarp={meshPoints:[]};for(var u=((t=s.meshPoints.find(function(d){return d.type==="Hrzn"}))===null||t===void 0?void 0:t.values)||[],c=((r=s.meshPoints.find(function(d){return d.type==="Vrtc"}))===null||r===void 0?void 0:r.values)||[],f=0;f<u.length;f++)l.customEnvelopeWarp.meshPoints.push({x:u[f],y:c[f]});(s.quiltSliceX||s.quiltSliceY)&&(l.customEnvelopeWarp.quiltSliceX=((a=(n=s.quiltSliceX)===null||n===void 0?void 0:n[0])===null||a===void 0?void 0:a.values)||[],l.customEnvelopeWarp.quiltSliceY=((o=(i=s.quiltSliceY)===null||i===void 0?void 0:i[0])===null||o===void 0?void 0:o.values)||[])}return l}function Sd(e){var t,r;return e.deformNumCols!=null||e.deformNumRows!=null||((t=e.customEnvelopeWarp)===null||t===void 0?void 0:t.quiltSliceX)||((r=e.customEnvelopeWarp)===null||r===void 0?void 0:r.quiltSliceY)}function hu(e){var t=e.bounds,r=U(U({warpStyle:od.encode(e.style)},e.values?{warpValues:e.values}:{warpValue:e.value||0}),{warpPerspective:e.perspective||0,warpPerspectiveOther:e.perspectiveOther||0,warpRotate:rs.encode(e.rotate),bounds:{"Top ":Zt(t&&t.top||{units:"Pixels",value:0},"bounds.top"),Left:Zt(t&&t.left||{units:"Pixels",value:0},"bounds.left"),Btom:Zt(t&&t.bottom||{units:"Pixels",value:0},"bounds.bottom"),Rght:Zt(t&&t.right||{units:"Pixels",value:0},"bounds.right")},uOrder:e.uOrder||0,vOrder:e.vOrder||0}),n=Sd(e);if(n){var a=r;a.deformNumRows=e.deformNumRows||0,a.deformNumCols=e.deformNumCols||0}var i=e.customEnvelopeWarp;if(i){var o=i.meshPoints||[];if(n){var a=r;a.customEnvelopeWarp={_name:"",_classID:"customEnvelopeWarp",quiltSliceX:[{type:"quiltSliceX",values:i.quiltSliceX||[]}],quiltSliceY:[{type:"quiltSliceY",values:i.quiltSliceY||[]}],meshPoints:[{type:"Hrzn",values:o.map(function(s){return s.x})},{type:"Vrtc",values:o.map(function(s){return s.y})}]}}else r.customEnvelopeWarp={_name:"",_classID:"customEnvelopeWarp",meshPoints:[{type:"Hrzn",values:o.map(function(l){return l.x})},{type:"Vrtc",values:o.map(function(l){return l.y})}]}}return r}ft("PlLd",Gt("placedLayer"),function(e,t,r){if(qt(e)!=="plcL")throw new Error("Invalid PlLd signature");if(it(e)!==3)throw new Error("Invalid PlLd version");var n=Kn(e,1),a=it(e),i=it(e);it(e);var o=it(e);if(!Xo[o])throw new Error("Invalid PlLd type");for(var l=[],s=0;s<8;s++)l.push(Ln(e));var u=it(e);if(u!==0)throw new Error("Invalid Warp version ".concat(u));var c=Et(e);t.placedLayer=t.placedLayer||{id:n,type:Xo[o],pageNumber:a,totalPages:i,transform:l,warp:ub(c)},et(e,r())},function(e,t){var r=t.placedLayer;if(vt(e,"plcL"),ht(e,3),!r.id||typeof r.id!="string"||!/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.test(r.id))throw new Error("Placed layer ID must be in a GUID format (example: 20953ddb-9391-11ec-b4f1-c15674f50bc4)");if(_i(e,r.id,1),ht(e,1),ht(e,1),ht(e,16),Xo.indexOf(r.type)===-1)throw new Error("Invalid placedLayer type");ht(e,Xo.indexOf(r.type));for(var n=0;n<8;n++)Bn(e,r.transform[n]);ht(e,0);var a=fb(r),i=Sd(a),o=i?"quiltWarp":"warp";Mt(e,"",o,hu(a),o)});function jE(e){return new Float32Array(e.buffer.slice(e.byteOffset),0,e.byteLength/4)}function GE(e){return new Uint32Array(e.buffer.slice(e.byteOffset),0,e.byteLength/4)}function Cd(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function pu(e){for(var t=[],r=0;r<e.length;r+=2)t.push({x:e[r],y:e[r+1]});return t}function is(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].x,e[r].y);return t}function cb(e){return pu(jE(e))}function os(e){return{x:Nt(e.Hrzn),y:Nt(e.Vrtc)}}function ls(e){return{_name:"",_classID:"Pnt ",Hrzn:Zt(e.x,"x"),Vrtc:Zt(e.y,"y")}}function VE(e,t){var r={name:e["Nm "],opacity:dt(e.blendOptions.Opct),blendMode:an.decode(e.blendOptions["Md "]),enabled:e.enab,hasOptions:e.hasoptions,foregroundColor:Gn(e.FrgC),backgroundColor:Gn(e.BckC)};if("Fltr"in e)switch(e.Fltr._classID){case"boxblur":return U(U({},r),{type:"box blur",filter:{radius:Nt(e.Fltr["Rds "])}});case"GsnB":return U(U({},r),{type:"gaussian blur",filter:{radius:Nt(e.Fltr["Rds "])}});case"MtnB":return U(U({},r),{type:"motion blur",filter:{angle:e.Fltr.Angl,distance:Nt(e.Fltr.Dstn)}});case"RdlB":return U(U({},r),{type:"radial blur",filter:{amount:e.Fltr.Amnt,method:Y2.decode(e.Fltr.BlrM),quality:Z2.decode(e.Fltr.BlrQ)}});case"shapeBlur":return U(U({},r),{type:"shape blur",filter:{radius:Nt(e.Fltr["Rds "]),customShape:{name:e.Fltr.customShape["Nm "],id:e.Fltr.customShape.Idnt}}});case"SmrB":return U(U({},r),{type:"smart blur",filter:{radius:e.Fltr["Rds "],threshold:e.Fltr.Thsh,quality:Q2.decode(e.Fltr.SmBQ),mode:J2.decode(e.Fltr.SmBM)}});case"surfaceBlur":return U(U({},r),{type:"surface blur",filter:{radius:Nt(e.Fltr["Rds "]),threshold:e.Fltr.Thsh}});case"Dspl":return U(U({},r),{type:"displace",filter:{horizontalScale:e.Fltr.HrzS,verticalScale:e.Fltr.VrtS,displacementMap:eg.decode(e.Fltr.DspM),undefinedAreas:Uo.decode(e.Fltr.UndA),displacementFile:{signature:e.Fltr.DspF.sig,path:e.Fltr.DspF.path}}});case"Pnch":return U(U({},r),{type:"pinch",filter:{amount:e.Fltr.Amnt}});case"Plr ":return U(U({},r),{type:"polar coordinates",filter:{conversion:tg.decode(e.Fltr.Cnvr)}});case"Rple":return U(U({},r),{type:"ripple",filter:{amount:e.Fltr.Amnt,size:rg.decode(e.Fltr.RplS)}});case"Shr ":return U(U({},r),{type:"shear",filter:{shearPoints:e.Fltr.ShrP.map(function(l){return{x:l.Hrzn,y:l.Vrtc}}),shearStart:e.Fltr.ShrS,shearEnd:e.Fltr.ShrE,undefinedAreas:Uo.decode(e.Fltr.UndA)}});case"Sphr":return U(U({},r),{type:"spherize",filter:{amount:e.Fltr.Amnt,mode:ng.decode(e.Fltr.SphM)}});case"Twrl":return U(U({},r),{type:"twirl",filter:{angle:e.Fltr.Angl}});case"Wave":return U(U({},r),{type:"wave",filter:{numberOfGenerators:e.Fltr.NmbG,type:ag.decode(e.Fltr.Wvtp),wavelength:{min:e.Fltr.WLMn,max:e.Fltr.WLMx},amplitude:{min:e.Fltr.AmMn,max:e.Fltr.AmMx},scale:{x:e.Fltr.SclH,y:e.Fltr.SclV},randomSeed:e.Fltr.RndS,undefinedAreas:Uo.decode(e.Fltr.UndA)}});case"ZgZg":return U(U({},r),{type:"zigzag",filter:{amount:e.Fltr.Amnt,ridges:e.Fltr.NmbR,style:ig.decode(e.Fltr.ZZTy)}});case"AdNs":return U(U({},r),{type:"add noise",filter:{amount:dt(e.Fltr.Nose),distribution:og.decode(e.Fltr.Dstr),monochromatic:e.Fltr.Mnch,randomSeed:e.Fltr.FlRs}});case"DstS":return U(U({},r),{type:"dust and scratches",filter:{radius:e.Fltr["Rds "],threshold:e.Fltr.Thsh}});case"Mdn ":return U(U({},r),{type:"median",filter:{radius:Nt(e.Fltr["Rds "])}});case"denoise":return U(U({},r),{type:"reduce noise",filter:{preset:e.Fltr.preset,removeJpegArtifact:e.Fltr.removeJPEGArtifact,reduceColorNoise:dt(e.Fltr.ClNs),sharpenDetails:dt(e.Fltr.Shrp),channelDenoise:e.Fltr.channelDenoise.map(function(l){return U({channels:l.Chnl.map(ns.decode),amount:l.Amnt},l.EdgF?{preserveDetails:l.EdgF}:{})})}});case"ClrH":return U(U({},r),{type:"color halftone",filter:{radius:e.Fltr["Rds "],angle1:e.Fltr.Ang1,angle2:e.Fltr.Ang2,angle3:e.Fltr.Ang3,angle4:e.Fltr.Ang4}});case"Crst":return U(U({},r),{type:"crystallize",filter:{cellSize:e.Fltr.ClSz,randomSeed:e.Fltr.FlRs}});case"Mztn":return U(U({},r),{type:"mezzotint",filter:{type:lg.decode(e.Fltr.MztT),randomSeed:e.Fltr.FlRs}});case"Msc ":return U(U({},r),{type:"mosaic",filter:{cellSize:Nt(e.Fltr.ClSz)}});case"Pntl":return U(U({},r),{type:"pointillize",filter:{cellSize:e.Fltr.ClSz,randomSeed:e.Fltr.FlRs}});case"Clds":return U(U({},r),{type:"clouds",filter:{randomSeed:e.Fltr.FlRs}});case"DfrC":return U(U({},r),{type:"difference clouds",filter:{randomSeed:e.Fltr.FlRs}});case"Fbrs":return U(U({},r),{type:"fibers",filter:{variance:e.Fltr.Vrnc,strength:e.Fltr.Strg,randomSeed:e.Fltr.RndS}});case"LnsF":return U(U({},r),{type:"lens flare",filter:{brightness:e.Fltr.Brgh,position:{x:e.Fltr.FlrC.Hrzn,y:e.Fltr.FlrC.Vrtc},lensType:sg.decode(e.Fltr["Lns "])}});case"smartSharpen":return U(U({},r),{type:"smart sharpen",filter:{amount:dt(e.Fltr.Amnt),radius:Nt(e.Fltr["Rds "]),threshold:e.Fltr.Thsh,angle:e.Fltr.Angl,moreAccurate:e.Fltr.moreAccurate,blur:ug.decode(e.Fltr.blur),preset:e.Fltr.preset,shadow:{fadeAmount:dt(e.Fltr.sdwM.Amnt),tonalWidth:dt(e.Fltr.sdwM.Wdth),radius:e.Fltr.sdwM["Rds "]},highlight:{fadeAmount:dt(e.Fltr.hglM.Amnt),tonalWidth:dt(e.Fltr.hglM.Wdth),radius:e.Fltr.hglM["Rds "]}}});case"UnsM":return U(U({},r),{type:"unsharp mask",filter:{amount:dt(e.Fltr.Amnt),radius:Nt(e.Fltr["Rds "]),threshold:e.Fltr.Thsh}});case"Dfs ":return U(U({},r),{type:"diffuse",filter:{mode:cg.decode(e.Fltr["Md "]),randomSeed:e.Fltr.FlRs}});case"Embs":return U(U({},r),{type:"emboss",filter:{angle:e.Fltr.Angl,height:e.Fltr.Hght,amount:e.Fltr.Amnt}});case"Extr":return U(U({},r),{type:"extrude",filter:{type:fg.decode(e.Fltr.ExtT),size:e.Fltr.ExtS,depth:e.Fltr.ExtD,depthMode:dg.decode(e.Fltr.ExtR),randomSeed:e.Fltr.FlRs,solidFrontFaces:e.Fltr.ExtF,maskIncompleteBlocks:e.Fltr.ExtM}});case"Tls ":return U(U({},r),{type:"tiles",filter:{numberOfTiles:e.Fltr.TlNm,maximumOffset:e.Fltr.TlOf,fillEmptyAreaWith:hg.decode(e.Fltr.FlCl),randomSeed:e.Fltr.FlRs}});case"TrcC":return U(U({},r),{type:"trace contour",filter:{level:e.Fltr["Lvl "],edge:pg.decode(e.Fltr["Edg "])}});case"Wnd ":return U(U({},r),{type:"wind",filter:{method:vg.decode(e.Fltr.WndM),direction:mg.decode(e.Fltr.Drct)}});case"Dntr":return U(U({},r),{type:"de-interlace",filter:{eliminate:gg.decode(e.Fltr.IntE),newFieldsBy:bg.decode(e.Fltr.IntC)}});case"Cstm":return U(U({},r),{type:"custom",filter:{scale:e.Fltr["Scl "],offset:e.Fltr.Ofst,matrix:e.Fltr.Mtrx}});case"HghP":return U(U({},r),{type:"high pass",filter:{radius:Nt(e.Fltr["Rds "])}});case"Mxm ":return U(U({},r),{type:"maximum",filter:{radius:Nt(e.Fltr["Rds "])}});case"Mnm ":return U(U({},r),{type:"minimum",filter:{radius:Nt(e.Fltr["Rds "])}});case"Ofst":return U(U({},r),{type:"offset",filter:{horizontal:e.Fltr.Hrzn,vertical:e.Fltr.Vrtc,undefinedAreas:yg.decode(e.Fltr["Fl "])}});case"rigidTransform":return U(U({},r),{type:"puppet",filter:{rigidType:e.Fltr.rigidType,bounds:[{x:e.Fltr.PuX0,y:e.Fltr.PuY0},{x:e.Fltr.PuX1,y:e.Fltr.PuY1},{x:e.Fltr.PuX2,y:e.Fltr.PuY2},{x:e.Fltr.PuX3,y:e.Fltr.PuY3}],puppetShapeList:e.Fltr.puppetShapeList.map(function(l){return{rigidType:l.rigidType,originalVertexArray:cb(l.originalVertexArray),deformedVertexArray:cb(l.deformedVertexArray),indexArray:Array.from(GE(l.indexArray)),pinOffsets:pu(l.pinOffsets),posFinalPins:pu(l.posFinalPins),pinVertexIndices:l.pinVertexIndices,selectedPin:l.selectedPin,pinPosition:pu(l.PinP),pinRotation:l.PnRt,pinOverlay:l.PnOv,pinDepth:l.PnDp,meshQuality:l.meshQuality,meshExpansion:l.meshExpansion,meshRigidity:l.meshRigidity,imageResolution:l.imageResolution,meshBoundaryPath:{pathComponents:l.meshBoundaryPath.pathComponents.map(function(s){return{shapeOperation:s.shapeOperation.split(".")[1],paths:s.SbpL.map(function(u){return{closed:u.Clsp,points:u["Pts "].map(function(c){return{anchor:os(c.Anch),forward:os(c["Fwd "]),backward:os(c["Bwd "]),smooth:c.Smoo}})}})}})}}})}});case"PbPl":{for(var n=[],a=e.Fltr,i=0;i<kn.length&&a["PN".concat(kn[i],"a")];i++)for(var o=0;o<kn.length&&a["PN".concat(kn[i]).concat(kn[o])];o++)n.push({name:a["PN".concat(kn[i]).concat(kn[o])],value:a["PF".concat(kn[i]).concat(kn[o])]});return U(U({},r),{type:"oil paint plugin",filter:{name:e.Fltr.KnNm,gpu:e.Fltr.GpuY,lighting:e.Fltr.LIWy,parameters:n}})}case"HsbP":return U(U({},r),{type:"hsb/hsl",filter:{inputMode:eu.decode(e.Fltr.Inpt),rowOrder:eu.decode(e.Fltr.Otpt)}});case"oilPaint":return U(U({},r),{type:"oil paint",filter:{lightingOn:e.Fltr.lightingOn,stylization:e.Fltr.stylization,cleanliness:e.Fltr.cleanliness,brushScale:e.Fltr.brushScale,microBrush:e.Fltr.microBrush,lightDirection:e.Fltr.LghD,specularity:e.Fltr.specularity}});case"LqFy":return U(U({},r),{type:"liquify",filter:{liquifyMesh:e.Fltr.LqMe}});case"perspectiveWarpTransform":return U(U({},r),{type:"perspective warp",filter:{vertices:e.Fltr.vertices.map(os),warpedVertices:e.Fltr.warpedVertices.map(os),quads:e.Fltr.quads.map(function(l){return l.indices})}});case"Crvs":return U(U({},r),{type:"curves",filter:U({presetKind:xg.decode(e.Fltr.presetKind)},e.Fltr.Adjs?{adjustments:e.Fltr.Adjs.map(function(l){var s=l.Chnl.map(ns.decode);if(l["Crv "])return{channels:s,curve:l["Crv "].map(function(u){var c={x:u.Hrzn,y:u.Vrtc};return u.Cnty&&(c.curved=!0),c})};if(l.Mpng)return{channels:s,values:l.Mpng};throw new Error("Unknown curve adjustment")})}:{})});case"BrgC":return U(U({},r),{type:"brightness/contrast",filter:{brightness:e.Fltr.Brgh,contrast:e.Fltr.Cntr,useLegacy:!!e.Fltr.useLegacy}});default:if(t.throwForMissingFeatures)throw new Error("Unknown filter classId: ".concat(e.Fltr._classID));return}else switch(e.filterID){case 1098281575:return U(U({},r),{type:"average"});case 1114403360:return U(U({},r),{type:"blur"});case 1114403405:return U(U({},r),{type:"blur more"});case 1148416099:return U(U({},r),{type:"despeckle"});case 1180922912:return U(U({},r),{type:"facet"});case 1181902701:return U(U({},r),{type:"fragment"});case 1399353968:return U(U({},r),{type:"sharpen"});case 1399353925:return U(U({},r),{type:"sharpen edges"});case 1399353933:return U(U({},r),{type:"sharpen more"});case 1181639749:return U(U({},r),{type:"find edges"});case 1399616122:return U(U({},r),{type:"solarize"});case 1314149187:return U(U({},r),{type:"ntsc colors"});case 1231976050:return U(U({},r),{type:"invert"});default:if(t.throwForMissingFeatures)throw new Error("Unknown filterID: ".concat(e.filterID))}}function qE(e,t){return{enabled:e.enab,validAtPosition:e.validAtPosition,maskEnabled:e.filterMaskEnable,maskLinked:e.filterMaskLinked,maskExtendWithWhite:e.filterMaskExtendWithWhite,list:e.filterFXList.map(function(r){return VE(r,t)}).filter(function(r){return!!r})}}function wa(e){return Zt(e.radius,"radius")}function WE(e){var t={_name:"",_classID:"filterFX","Nm ":e.name,blendOptions:{_name:"",_classID:"blendOptions",Opct:Rn(e.opacity),"Md ":an.encode(e.blendMode)},enab:e.enabled,hasoptions:e.hasOptions,FrgC:Vn(e.foregroundColor),BckC:Vn(e.backgroundColor)};switch(e.type){case"average":return U(U({},t),{filterID:1098281575});case"blur":return U(U({},t),{filterID:1114403360});case"blur more":return U(U({},t),{filterID:1114403405});case"box blur":return U(U({},t),{Fltr:{_name:"Box Blur",_classID:"boxblur","Rds ":wa(e.filter)},filterID:697});case"gaussian blur":return U(U({},t),{Fltr:{_name:"Gaussian Blur",_classID:"GsnB","Rds ":wa(e.filter)},filterID:1198747202});case"motion blur":return U(U({},t),{Fltr:{_name:"Motion Blur",_classID:"MtnB",Angl:e.filter.angle,Dstn:Zt(e.filter.distance,"distance")},filterID:1299476034});case"radial blur":return U(U({},t),{Fltr:{_name:"Radial Blur",_classID:"RdlB",Amnt:e.filter.amount,BlrM:Y2.encode(e.filter.method),BlrQ:Z2.encode(e.filter.quality)},filterID:1382313026});case"shape blur":return U(U({},t),{Fltr:{_name:"Shape Blur",_classID:"shapeBlur","Rds ":wa(e.filter),customShape:{_name:"",_classID:"customShape","Nm ":e.filter.customShape.name,Idnt:e.filter.customShape.id}},filterID:702});case"smart blur":return U(U({},t),{Fltr:{_name:"Smart Blur",_classID:"SmrB","Rds ":e.filter.radius,Thsh:e.filter.threshold,SmBQ:Q2.encode(e.filter.quality),SmBM:J2.encode(e.filter.mode)},filterID:1399681602});case"surface blur":return U(U({},t),{Fltr:{_name:"Surface Blur",_classID:"surfaceBlur","Rds ":wa(e.filter),Thsh:e.filter.threshold},filterID:701});case"displace":return U(U({},t),{Fltr:{_name:"Displace",_classID:"Dspl",HrzS:e.filter.horizontalScale,VrtS:e.filter.verticalScale,DspM:eg.encode(e.filter.displacementMap),UndA:Uo.encode(e.filter.undefinedAreas),DspF:{sig:e.filter.displacementFile.signature,path:e.filter.displacementFile.path}},filterID:1148416108});case"pinch":return U(U({},t),{Fltr:{_name:"Pinch",_classID:"Pnch",Amnt:e.filter.amount},filterID:1349411688});case"polar coordinates":return U(U({},t),{Fltr:{_name:"Polar Coordinates",_classID:"Plr ",Cnvr:tg.encode(e.filter.conversion)},filterID:1349284384});case"ripple":return U(U({},t),{Fltr:{_name:"Ripple",_classID:"Rple",Amnt:e.filter.amount,RplS:rg.encode(e.filter.size)},filterID:1383099493});case"shear":return U(U({},t),{Fltr:{_name:"Shear",_classID:"Shr ",ShrP:e.filter.shearPoints.map(function(s){return{_name:"",_classID:"Pnt ",Hrzn:s.x,Vrtc:s.y}}),UndA:Uo.encode(e.filter.undefinedAreas),ShrS:e.filter.shearStart,ShrE:e.filter.shearEnd},filterID:1399353888});case"spherize":return U(U({},t),{Fltr:{_name:"Spherize",_classID:"Sphr",Amnt:e.filter.amount,SphM:ng.encode(e.filter.mode)},filterID:1399875698});case"twirl":return U(U({},t),{Fltr:{_name:"Twirl",_classID:"Twrl",Angl:e.filter.angle},filterID:1417114220});case"wave":return U(U({},t),{Fltr:{_name:"Wave",_classID:"Wave",Wvtp:ag.encode(e.filter.type),NmbG:e.filter.numberOfGenerators,WLMn:e.filter.wavelength.min,WLMx:e.filter.wavelength.max,AmMn:e.filter.amplitude.min,AmMx:e.filter.amplitude.max,SclH:e.filter.scale.x,SclV:e.filter.scale.y,UndA:Uo.encode(e.filter.undefinedAreas),RndS:e.filter.randomSeed},filterID:1466005093});case"zigzag":return U(U({},t),{Fltr:{_name:"ZigZag",_classID:"ZgZg",Amnt:e.filter.amount,NmbR:e.filter.ridges,ZZTy:ig.encode(e.filter.style)},filterID:1516722791});case"add noise":return U(U({},t),{Fltr:{_name:"Add Noise",_classID:"AdNs",Dstr:og.encode(e.filter.distribution),Nose:Rn(e.filter.amount),Mnch:e.filter.monochromatic,FlRs:e.filter.randomSeed},filterID:1097092723});case"despeckle":return U(U({},t),{filterID:1148416099});case"dust and scratches":return U(U({},t),{Fltr:{_name:"Dust & Scratches",_classID:"DstS","Rds ":e.filter.radius,Thsh:e.filter.threshold},filterID:1148417107});case"median":return U(U({},t),{Fltr:{_name:"Median",_classID:"Mdn ","Rds ":wa(e.filter)},filterID:1298427424});case"reduce noise":return U(U({},t),{Fltr:{_name:"Reduce Noise",_classID:"denoise",ClNs:Rn(e.filter.reduceColorNoise),Shrp:Rn(e.filter.sharpenDetails),removeJPEGArtifact:e.filter.removeJpegArtifact,channelDenoise:e.filter.channelDenoise.map(function(s){return U({_name:"",_classID:"channelDenoiseParams",Chnl:s.channels.map(function(u){return ns.encode(u)}),Amnt:s.amount},s.preserveDetails?{EdgF:s.preserveDetails}:{})}),preset:e.filter.preset},filterID:633});case"color halftone":return U(U({},t),{Fltr:{_name:"Color Halftone",_classID:"ClrH","Rds ":e.filter.radius,Ang1:e.filter.angle1,Ang2:e.filter.angle2,Ang3:e.filter.angle3,Ang4:e.filter.angle4},filterID:1131180616});case"crystallize":return U(U({},t),{Fltr:{_name:"Crystallize",_classID:"Crst",ClSz:e.filter.cellSize,FlRs:e.filter.randomSeed},filterID:1131574132});case"facet":return U(U({},t),{filterID:1180922912});case"fragment":return U(U({},t),{filterID:1181902701});case"mezzotint":return U(U({},t),{Fltr:{_name:"Mezzotint",_classID:"Mztn",MztT:lg.encode(e.filter.type),FlRs:e.filter.randomSeed},filterID:1299870830});case"mosaic":return U(U({},t),{Fltr:{_name:"Mosaic",_classID:"Msc ",ClSz:Zt(e.filter.cellSize,"cellSize")},filterID:1299407648});case"pointillize":return U(U({},t),{Fltr:{_name:"Pointillize",_classID:"Pntl",ClSz:e.filter.cellSize,FlRs:e.filter.randomSeed},filterID:1349416044});case"clouds":return U(U({},t),{Fltr:{_name:"Clouds",_classID:"Clds",FlRs:e.filter.randomSeed},filterID:1131177075});case"difference clouds":return U(U({},t),{Fltr:{_name:"Difference Clouds",_classID:"DfrC",FlRs:e.filter.randomSeed},filterID:1147564611});case"fibers":return U(U({},t),{Fltr:{_name:"Fibers",_classID:"Fbrs",Vrnc:e.filter.variance,Strg:e.filter.strength,RndS:e.filter.randomSeed},filterID:1180856947});case"lens flare":return U(U({},t),{Fltr:{_name:"Lens Flare",_classID:"LnsF",Brgh:e.filter.brightness,FlrC:{_name:"",_classID:"Pnt ",Hrzn:e.filter.position.x,Vrtc:e.filter.position.y},"Lns ":sg.encode(e.filter.lensType)},filterID:1282306886});case"sharpen":return U(U({},t),{filterID:1399353968});case"sharpen edges":return U(U({},t),{filterID:1399353925});case"sharpen more":return U(U({},t),{filterID:1399353933});case"smart sharpen":return U(U({},t),{Fltr:{_name:"Smart Sharpen",_classID:"smartSharpen",Amnt:Rn(e.filter.amount),"Rds ":wa(e.filter),Thsh:e.filter.threshold,Angl:e.filter.angle,moreAccurate:e.filter.moreAccurate,blur:ug.encode(e.filter.blur),preset:e.filter.preset,sdwM:{_name:"Parameters",_classID:"adaptCorrectTones",Amnt:Rn(e.filter.shadow.fadeAmount),Wdth:Rn(e.filter.shadow.tonalWidth),"Rds ":e.filter.shadow.radius},hglM:{_name:"Parameters",_classID:"adaptCorrectTones",Amnt:Rn(e.filter.highlight.fadeAmount),Wdth:Rn(e.filter.highlight.tonalWidth),"Rds ":e.filter.highlight.radius}},filterID:698});case"unsharp mask":return U(U({},t),{Fltr:{_name:"Unsharp Mask",_classID:"UnsM",Amnt:Rn(e.filter.amount),"Rds ":wa(e.filter),Thsh:e.filter.threshold},filterID:1433301837});case"diffuse":return U(U({},t),{Fltr:{_name:"Diffuse",_classID:"Dfs ","Md ":cg.encode(e.filter.mode),FlRs:e.filter.randomSeed},filterID:1147564832});case"emboss":return U(U({},t),{Fltr:{_name:"Emboss",_classID:"Embs",Angl:e.filter.angle,Hght:e.filter.height,Amnt:e.filter.amount},filterID:1164796531});case"extrude":return U(U({},t),{Fltr:{_name:"Extrude",_classID:"Extr",ExtS:e.filter.size,ExtD:e.filter.depth,ExtF:e.filter.solidFrontFaces,ExtM:e.filter.maskIncompleteBlocks,ExtT:fg.encode(e.filter.type),ExtR:dg.encode(e.filter.depthMode),FlRs:e.filter.randomSeed},filterID:1165522034});case"find edges":return U(U({},t),{filterID:1181639749});case"solarize":return U(U({},t),{filterID:1399616122});case"tiles":return U(U({},t),{Fltr:{_name:"Tiles",_classID:"Tls ",TlNm:e.filter.numberOfTiles,TlOf:e.filter.maximumOffset,FlCl:hg.encode(e.filter.fillEmptyAreaWith),FlRs:e.filter.randomSeed},filterID:1416393504});case"trace contour":return U(U({},t),{Fltr:{_name:"Trace Contour",_classID:"TrcC","Lvl ":e.filter.level,"Edg ":pg.encode(e.filter.edge)},filterID:1416782659});case"wind":return U(U({},t),{Fltr:{_name:"Wind",_classID:"Wnd ",WndM:vg.encode(e.filter.method),Drct:mg.encode(e.filter.direction)},filterID:1466852384});case"de-interlace":return U(U({},t),{Fltr:{_name:"De-Interlace",_classID:"Dntr",IntE:gg.encode(e.filter.eliminate),IntC:bg.encode(e.filter.newFieldsBy)},filterID:1148089458});case"ntsc colors":return U(U({},t),{filterID:1314149187});case"invert":return U(U({},t),{filterID:1231976050});case"custom":return U(U({},t),{Fltr:{_name:"Custom",_classID:"Cstm","Scl ":e.filter.scale,Ofst:e.filter.offset,Mtrx:e.filter.matrix},filterID:1131639917});case"high pass":return U(U({},t),{Fltr:{_name:"High Pass",_classID:"HghP","Rds ":wa(e.filter)},filterID:1214736464});case"maximum":return U(U({},t),{Fltr:{_name:"Maximum",_classID:"Mxm ","Rds ":wa(e.filter)},filterID:1299737888});case"minimum":return U(U({},t),{Fltr:{_name:"Minimum",_classID:"Mnm ","Rds ":wa(e.filter)},filterID:1299082528});case"offset":return U(U({},t),{Fltr:{_name:"Offset",_classID:"Ofst",Hrzn:e.filter.horizontal,Vrtc:e.filter.vertical,"Fl ":yg.encode(e.filter.undefinedAreas)},filterID:1332114292});case"puppet":return U(U({},t),{Fltr:{_name:"Rigid Transform",_classID:"rigidTransform",null:["Ordn.Trgt"],rigidType:e.filter.rigidType,puppetShapeList:e.filter.puppetShapeList.map(function(s){return{_name:"",_classID:"puppetShape",rigidType:s.rigidType,VrsM:1,VrsN:0,originalVertexArray:Cd(new Float32Array(is(s.originalVertexArray))),deformedVertexArray:Cd(new Float32Array(is(s.deformedVertexArray))),indexArray:Cd(new Uint32Array(s.indexArray)),pinOffsets:is(s.pinOffsets),posFinalPins:is(s.posFinalPins),pinVertexIndices:s.pinVertexIndices,PinP:is(s.pinPosition),PnRt:s.pinRotation,PnOv:s.pinOverlay,PnDp:s.pinDepth,meshQuality:s.meshQuality,meshExpansion:s.meshExpansion,meshRigidity:s.meshRigidity,imageResolution:s.imageResolution,meshBoundaryPath:{_name:"",_classID:"pathClass",pathComponents:s.meshBoundaryPath.pathComponents.map(function(u){return{_name:"",_classID:"PaCm",shapeOperation:"shapeOperation.".concat(u.shapeOperation),SbpL:u.paths.map(function(c){return{_name:"",_classID:"Sbpl",Clsp:c.closed,"Pts ":c.points.map(function(f){return{_name:"",_classID:"Pthp",Anch:ls(f.anchor),"Fwd ":ls(f.forward),"Bwd ":ls(f.backward),Smoo:f.smooth}})}})}})},selectedPin:s.selectedPin}}),PuX0:e.filter.bounds[0].x,PuX1:e.filter.bounds[1].x,PuX2:e.filter.bounds[2].x,PuX3:e.filter.bounds[3].x,PuY0:e.filter.bounds[0].y,PuY1:e.filter.bounds[1].y,PuY2:e.filter.bounds[2].y,PuY3:e.filter.bounds[3].y},filterID:991});case"oil paint plugin":{for(var r={},n=0;n<e.filter.parameters.length;n++){var a=e.filter.parameters[n],i=a.name,o=a.value,l="".concat(kn[Math.floor(n/kn.length)]).concat(kn[n%kn.length]);r["PN".concat(l)]=i,r["PT".concat(l)]=0,r["PF".concat(l)]=o}return U(U({},t),{Fltr:U({_name:"Oil Paint Plugin",_classID:"PbPl",KnNm:e.filter.name,GpuY:e.filter.gpu,LIWy:e.filter.lighting,FPth:"1"},r),filterID:1348620396})}case"oil paint":return U(U({},t),{Fltr:{_name:"Oil Paint",_classID:"oilPaint",lightingOn:e.filter.lightingOn,stylization:e.filter.stylization,cleanliness:e.filter.cleanliness,brushScale:e.filter.brushScale,microBrush:e.filter.microBrush,LghD:e.filter.lightDirection,specularity:e.filter.specularity},filterID:1122});case"liquify":return U(U({},t),{Fltr:{_name:"Liquify",_classID:"LqFy",LqMe:e.filter.liquifyMesh},filterID:1282492025});case"perspective warp":return U(U({},t),{Fltr:{_name:"Perspective Warp",_classID:"perspectiveWarpTransform",vertices:e.filter.vertices.map(ls),warpedVertices:e.filter.warpedVertices.map(ls),quads:e.filter.quads.map(function(s){return{indices:s}})},filterID:442});case"curves":return U(U({},t),{Fltr:U({_name:"Curves",_classID:"Crvs",presetKind:xg.encode(e.filter.presetKind)},e.filter.adjustments?{Adjs:e.filter.adjustments.map(function(s){return"curve"in s?{_name:"",_classID:"CrvA",Chnl:s.channels.map(ns.encode),"Crv ":s.curve.map(function(u){return U({_name:"",_classID:"Pnt ",Hrzn:u.x,Vrtc:u.y},u.curved?{Cnty:!0}:{})})}:{_name:"",_classID:"CrvA",Chnl:s.channels.map(ns.encode),Mpng:s.values}})}:{}),filterID:1131574899});case"brightness/contrast":return U(U({},t),{Fltr:{_name:"Brightness/Contrast",_classID:"BrgC",Brgh:e.filter.brightness,Cntr:e.filter.contrast,useLegacy:!!e.filter.useLegacy},filterID:1114793795});default:throw new Error("Unknow filter type: ".concat(e.type))}}function fb(e){if(e.warp)return e.warp;if(!e.width||!e.height)throw new Error("You must provide width and height of the linked image in placedLayer");var t=e.width,r=e.height,n=0,a=t/3,i=t*2/3,o=t,l=0,s=r/3,u=r*2/3,c=r;return{style:"custom",value:0,perspective:0,perspectiveOther:0,rotate:"horizontal",bounds:{top:{value:0,units:"Pixels"},left:{value:0,units:"Pixels"},bottom:{value:r,units:"Pixels"},right:{value:t,units:"Pixels"}},uOrder:4,vOrder:4,customEnvelopeWarp:{meshPoints:[{x:n,y:l},{x:a,y:l},{x:i,y:l},{x:o,y:l},{x:n,y:s},{x:a,y:s},{x:i,y:s},{x:o,y:s},{x:n,y:u},{x:a,y:u},{x:i,y:u},{x:o,y:u},{x:n,y:c},{x:a,y:c},{x:i,y:c},{x:o,y:c}]}}}ft("SoLd",Gt("placedLayer"),function(e,t,r){if(qt(e)!=="soLD")throw new Error("Invalid SoLd type");var n=it(e);if(n!==4&&n!==5)throw new Error("Invalid SoLd version");var a=Et(e,!0);t.placedLayer={id:a.Idnt,placed:a.placed,type:Xo[a.Type],pageNumber:a.PgNm,totalPages:a.totalPages,frameStep:nn(a.frameStep),duration:nn(a.duration),frameCount:a.frameCount,transform:a.Trnf,width:a["Sz "].Wdth,height:a["Sz "].Hght,resolution:Nt(a.Rslt),warp:ub(a.quiltWarp||a.warp)},a.nonAffineTransform&&a.nonAffineTransform.some(function(i,o){return i!==a.Trnf[o]})&&(t.placedLayer.nonAffineTransform=a.nonAffineTransform),a.Crop&&(t.placedLayer.crop=a.Crop),a.comp&&(t.placedLayer.comp=a.comp),a.compInfo&&(t.placedLayer.compInfo={compID:a.compInfo.compID,originalCompID:a.compInfo.originalCompID}),a.filterFX&&(t.placedLayer.filter=qE(a.filterFX,e)),et(e,r())},function(e,t){var r,n;vt(e,"soLD"),ht(e,4);var a=t.placedLayer;if(!a.id||typeof a.id!="string"||!/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.test(a.id))throw new Error("Placed layer ID must be in a GUID format (example: 20953ddb-9391-11ec-b4f1-c15674f50bc4)");var i=U(U({Idnt:a.id,placed:(r=a.placed)!==null&&r!==void 0?r:a.id,PgNm:a.pageNumber||1,totalPages:a.totalPages||1},a.crop?{Crop:a.crop}:{}),{frameStep:a.frameStep||{numerator:0,denominator:600},duration:a.duration||{numerator:0,denominator:600},frameCount:a.frameCount||0,Annt:16,Type:Xo.indexOf(a.type),Trnf:a.transform,nonAffineTransform:(n=a.nonAffineTransform)!==null&&n!==void 0?n:a.transform,warp:hu(fb(a)),"Sz ":{_name:"",_classID:"Pnt ",Wdth:a.width||0,Hght:a.height||0},Rslt:a.resolution?Zt(a.resolution,"resolution"):{units:"Density",value:72}});if(a.filter&&(i.filterFX={_name:"",_classID:"filterFXStyle",enab:a.filter.enabled,validAtPosition:a.filter.validAtPosition,filterMaskEnable:a.filter.maskEnabled,filterMaskLinked:a.filter.maskLinked,filterMaskExtendWithWhite:a.filter.maskExtendWithWhite,filterFXList:a.filter.list.map(function(l){return WE(l)})}),a.warp&&Sd(a.warp)){var o=hu(a.warp);i.quiltWarp=o,i.warp={warpStyle:"warpStyle.warpNone",warpValue:o.warpValue,warpPerspective:o.warpPerspective,warpPerspectiveOther:o.warpPerspectiveOther,warpRotate:o.warpRotate,bounds:o.bounds,uOrder:o.uOrder,vOrder:o.vOrder}}else delete i.quiltWarp;a.comp&&(i.comp=a.comp),a.compInfo&&(i.compInfo=a.compInfo),Mt(e,"","null",i,i.quiltWarp?"quiltWarp":"warp")}),Ko("SoLE","SoLd"),ft("fxrp",Gt("referencePoint"),function(e,t){t.referencePoint={x:Ln(e),y:Ln(e)}},function(e,t){Bn(e,t.referencePoint.x),Bn(e,t.referencePoint.y)}),ft("Lr16",function(){return!1},function(e,t,r,n,a){fd(e,n,a)},function(e,t){}),ft("Lr32",function(){return!1},function(e,t,r,n,a){fd(e,n,a)},function(e,t){}),ft("LMsk",Gt("userMask"),function(e,t){t.userMask={colorSpace:Ir(e),opacity:We(e)/255};var r=Ye(e);if(r!==128)throw new Error("Invalid flag value");et(e,1)},function(e,t){var r=t.userMask;zr(e,r.colorSpace),Le(e,Zf(r.opacity,0,1)*255),qe(e,128),Pt(e,1)}),ft("Patt",function(e){return!e},function(e,t,r){r()&&et(e,r())},function(e,t){});function db(e){var t=it(e),r=it(e),n=it(e),a=it(e);return{top:t,left:r,bottom:n,right:a}}function hb(e,t){ht(e,t.top),ht(e,t.left),ht(e,t.bottom),ht(e,t.right)}ft("Anno",function(e){return e.annotations!==void 0},function(e,t,r){var n=We(e),a=We(e);if(n!==2||a!==1)throw new Error("Invalid Anno version");for(var i=Fe(e),o=[],l=0;l<i;l++){Fe(e);var s=qt(e),u=!!Ye(e);Ye(e),We(e);var c=db(e),f=db(e),d=Ir(e),h=Kn(e,2),b=Kn(e,2),p=Kn(e,2);Fe(e),qt(e);var x=Fe(e),g=void 0;if(s==="txtA")x>=2&&We(e)===65279?g=cd(e,(x-2)/2):(e.offset-=2,g=su(e,x)),g=g.replace(/\r/g,`
289
+ `);else if(s==="sndA")g=hr(e,x);else throw new Error("Unknown annotation type");o.push({type:s==="txtA"?"text":"sound",open:u,iconLocation:c,popupLocation:f,color:d,author:h,name:b,date:p,data:g})}t.annotations=o,et(e,r())},function(e,t){var r=t.annotations;Le(e,2),Le(e,1),Ze(e,r.length);for(var n=0,a=r;n<a.length;n++){var i=a[n],o=i.type==="sound";if(o&&!(i.data instanceof Uint8Array))throw new Error("Sound annotation data should be Uint8Array");if(!o&&typeof i.data!="string")throw new Error("Text annotation data should be string");var l=e.offset;Ze(e,0),vt(e,o?"sndA":"txtA"),qe(e,i.open?1:0),qe(e,28),Le(e,1),hb(e,i.iconLocation),hb(e,i.popupLocation),zr(e,i.color),_i(e,i.author||"",2),_i(e,i.name||"",2),_i(e,i.date||"",2);var s=e.offset;Ze(e,0),vt(e,o?"sndM":"txtC"),Ze(e,0);var u=e.offset;if(o)Zn(e,i.data);else{Le(e,65279);for(var c=i.data.replace(/\n/g,"\r"),f=0;f<c.length;f++)Le(e,c.charCodeAt(f))}e.view.setUint32(l,e.offset-l,!1),e.view.setUint32(s,e.offset-s,!1),e.view.setUint32(u-4,e.offset-u,!1)}});function pb(e){ft(e,function(t){var r=t;return!(!r.linkedFiles||!r.linkedFiles.length||e==="lnkE"&&!r.linkedFiles.some(function(n){return n.linkedFile}))},function(t,r,n,a){var i=r;for(i.linkedFiles=i.linkedFiles||[];n()>8;){var o=wd(t),l=t.offset,s=qt(t),u=it(t),c=Kn(t,1),f=xr(t),d=qt(t).trim(),h=qt(t).trim(),b=wd(t),p=Ye(t),x=p?Et(t):void 0,g=s==="liFE"?Et(t):void 0,m={id:c,name:f};if(d&&(m.type=d),h&&(m.creator=h),x&&(m.descriptor={compInfo:{compID:x.compInfo.compID,originalCompID:x.compInfo.originalCompID}}),s==="liFE"&&u>3){var y=it(t),v=Ye(t),k=Ye(t),C=Ye(t),A=Ye(t),_=Ln(t),E=Math.floor(_),M=(_-E)*1e3;m.time=new Date(Date.UTC(y,v,k,C,A,E,M)).toISOString()}var z=s==="liFE"?wd(t):0;for(s==="liFA"&&et(t,8),s==="liFD"&&(m.data=hr(t,b)),u>=5&&(m.childDocumentID=xr(t)),u>=6&&(m.assetModTime=Ln(t)),u>=7&&(m.assetLockedState=Ye(t)),s==="liFE"&&u===2&&(m.data=hr(t,z)),t.skipLinkedFilesData&&(m.data=void 0),e==="lnkE"&&(m.linkedFile={fileSize:z,name:(g==null?void 0:g["Nm "])||"",fullPath:(g==null?void 0:g.fullPath)||"",originalPath:(g==null?void 0:g.originalPath)||"",relativePath:(g==null?void 0:g.relPath)||""}),i.linkedFiles.push(m);o%4;)o++;t.offset=l+o}et(t,n())},function(t,r){for(var n,a,i,o,l,s,u,c,f,d=r,h=0,b=d.linkedFiles;h<b.length;h++){var p=b[h];if(e==="lnkE"==!!p.linkedFile){var x=2;p.assetLockedState!=null?x=7:p.assetModTime!=null?x=6:p.childDocumentID!=null?x=5:e==="lnkE"&&(x=3),kd(t,0);var g=t.offset;if(vt(t,e==="lnkE"?"liFE":p.data?"liFD":"liFA"),ht(t,x),!p.id||typeof p.id!="string"||!/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.test(p.id))throw new Error("Linked file ID must be in a GUID format (example: 20953ddb-9391-11ec-b4f1-c15674f50bc4)");if(_i(t,p.id,1),qi(t,p.name||""),vt(t,p.type?"".concat(p.type," ").substring(0,4):" "),vt(t,p.creator?"".concat(p.creator," ").substring(0,4):"\0\0\0\0"),kd(t,p.data?p.data.byteLength:0),p.descriptor&&p.descriptor.compInfo){var m={compInfo:{compID:p.descriptor.compInfo.compID,originalCompID:p.descriptor.compInfo.originalCompID}};qe(t,1),Mt(t,"","null",m)}else qe(t,0);if(e==="lnkE"){var m={descVersion:2,"Nm ":(a=(n=p.linkedFile)===null||n===void 0?void 0:n.name)!==null&&a!==void 0?a:"",fullPath:(o=(i=p.linkedFile)===null||i===void 0?void 0:i.fullPath)!==null&&o!==void 0?o:"",originalPath:(s=(l=p.linkedFile)===null||l===void 0?void 0:l.originalPath)!==null&&s!==void 0?s:"",relPath:(c=(u=p.linkedFile)===null||u===void 0?void 0:u.relativePath)!==null&&c!==void 0?c:""};Mt(t,"","ExternalFileLink",m);var y=p.time?new Date(p.time):new Date;ht(t,y.getUTCFullYear()),qe(t,y.getUTCMonth()),qe(t,y.getUTCDate()),qe(t,y.getUTCHours()),qe(t,y.getUTCMinutes()),Bn(t,y.getUTCSeconds()+y.getUTCMilliseconds()/1e3)}p.data?Zn(t,p.data):kd(t,((f=p.linkedFile)===null||f===void 0?void 0:f.fileSize)||0),x>=5&&qi(t,p.childDocumentID||""),x>=6&&Bn(t,p.assetModTime||0),x>=7&&qe(t,p.assetLockedState||0);var v=t.offset-g;for(t.view.setUint32(g-4,v,!1);v%4;)v++,qe(t,0)}}})}pb("lnk2"),pb("lnkE"),Ko("lnkD","lnk2"),Ko("lnk3","lnk2"),ft("pths",Gt("pathList"),function(e,t){Et(e,!0),t.pathList=[]},function(e,t){var r={pathList:[]};Mt(e,"","pathsDataClass",r)}),ft("lyvr",Gt("version"),function(e,t){return t.version=Fe(e)},function(e,t){return Ze(e,t.version)}),ft("lfxs",function(){return!1},function(e,t,r){var n=Fe(e);if(n!==0)throw new Error("Invalid lfxs version");var a=Et(e);t.effects=Jl(a,!!e.logMissingFeatures),et(e,r())},function(e,t,r,n){var a=Zl(t.effects,!!n.logMissingFeatures,!0);Ze(e,0),Mt(e,"","null",a)});function Vr(e){return function(t){return!!t.adjustment&&t.adjustment.type===e}}ft("brit",Vr("brightness/contrast"),function(e,t,r){t.adjustment||(t.adjustment={type:"brightness/contrast",brightness:At(e),contrast:At(e),meanValue:At(e),labColorOnly:!!Ye(e),useLegacy:!0}),et(e,r())},function(e,t){var r,n=t.adjustment;Ot(e,n.brightness||0),Ot(e,n.contrast||0),Ot(e,(r=n.meanValue)!==null&&r!==void 0?r:127),qe(e,n.labColorOnly?1:0),Pt(e,1)});function vu(e){var t=At(e),r=At(e),n=At(e),a=At(e),i=At(e)/100;return{shadowInput:t,highlightInput:r,shadowOutput:n,highlightOutput:a,midtoneInput:i}}function ss(e,t){Ot(e,t.shadowInput),Ot(e,t.highlightInput),Ot(e,t.shadowOutput),Ot(e,t.highlightOutput),Ot(e,Math.round(t.midtoneInput*100))}ft("levl",Vr("levels"),function(e,t,r){if(We(e)!==2)throw new Error("Invalid levl version");t.adjustment=U(U({},t.adjustment),{type:"levels",rgb:vu(e),red:vu(e),green:vu(e),blue:vu(e)}),et(e,r())},function(e,t){var r=t.adjustment,n={shadowInput:0,highlightInput:255,shadowOutput:0,highlightOutput:255,midtoneInput:1};Le(e,2),ss(e,r.rgb||n),ss(e,r.red||n),ss(e,r.blue||n),ss(e,r.green||n);for(var a=0;a<59;a++)ss(e,n)});function mu(e){for(var t=We(e),r=[],n=0;n<t;n++){var a=At(e),i=At(e);r.push({input:i,output:a})}return r}function yi(e,t){Le(e,t.length);for(var r=0,n=t;r<n.length;r++){var a=n[r];Le(e,a.output),Le(e,a.input)}}ft("curv",Vr("curves"),function(e,t,r){if(Ye(e),We(e)!==1)throw new Error("Invalid curv version");We(e);var n=We(e),a={type:"curves"};n&1&&(a.rgb=mu(e)),n&2&&(a.red=mu(e)),n&4&&(a.green=mu(e)),n&8&&(a.blue=mu(e)),t.adjustment=U(U({},t.adjustment),a),et(e,r())},function(e,t){var r=t.adjustment,n=r.rgb,a=r.red,i=r.green,o=r.blue,l=0,s=0;n&&n.length&&(l|=1,s++),a&&a.length&&(l|=2,s++),i&&i.length&&(l|=4,s++),o&&o.length&&(l|=8,s++),qe(e,0),Le(e,1),Le(e,0),Le(e,l),n&&n.length&&yi(e,n),a&&a.length&&yi(e,a),i&&i.length&&yi(e,i),o&&o.length&&yi(e,o),vt(e,"Crv "),Le(e,4),Le(e,0),Le(e,s),n&&n.length&&(Le(e,0),yi(e,n)),a&&a.length&&(Le(e,1),yi(e,a)),i&&i.length&&(Le(e,2),yi(e,i)),o&&o.length&&(Le(e,3),yi(e,o))}),ft("expA",Vr("exposure"),function(e,t,r){if(We(e)!==1)throw new Error("Invalid expA version");t.adjustment=U(U({},t.adjustment),{type:"exposure",exposure:qn(e),offset:qn(e),gamma:qn(e)}),et(e,r())},function(e,t){var r=t.adjustment;Le(e,1),Xn(e,r.exposure),Xn(e,r.offset),Xn(e,r.gamma),Pt(e,2)}),ft("vibA",Vr("vibrance"),function(e,t,r){var n=Et(e);t.adjustment={type:"vibrance"},n.vibrance!==void 0&&(t.adjustment.vibrance=n.vibrance),n.Strt!==void 0&&(t.adjustment.saturation=n.Strt),et(e,r())},function(e,t){var r=t.adjustment,n={};r.vibrance!==void 0&&(n.vibrance=r.vibrance),r.saturation!==void 0&&(n.Strt=r.saturation),Mt(e,"","null",n)});function Gi(e){return{a:At(e),b:At(e),c:At(e),d:At(e),hue:At(e),saturation:At(e),lightness:At(e)}}function Vi(e,t){var r=t||{};Ot(e,r.a||0),Ot(e,r.b||0),Ot(e,r.c||0),Ot(e,r.d||0),Ot(e,r.hue||0),Ot(e,r.saturation||0),Ot(e,r.lightness||0)}ft("hue2",Vr("hue/saturation"),function(e,t,r){if(We(e)!==2)throw new Error("Invalid hue2 version");t.adjustment=U(U({},t.adjustment),{type:"hue/saturation",master:Gi(e),reds:Gi(e),yellows:Gi(e),greens:Gi(e),cyans:Gi(e),blues:Gi(e),magentas:Gi(e)}),et(e,r())},function(e,t){var r=t.adjustment;Le(e,2),Vi(e,r.master),Vi(e,r.reds),Vi(e,r.yellows),Vi(e,r.greens),Vi(e,r.cyans),Vi(e,r.blues),Vi(e,r.magentas)});function Ad(e){return{cyanRed:At(e),magentaGreen:At(e),yellowBlue:At(e)}}function Ed(e,t){Ot(e,t.cyanRed||0),Ot(e,t.magentaGreen||0),Ot(e,t.yellowBlue||0)}ft("blnc",Vr("color balance"),function(e,t,r){t.adjustment={type:"color balance",shadows:Ad(e),midtones:Ad(e),highlights:Ad(e),preserveLuminosity:!!Ye(e)},et(e,r())},function(e,t){var r=t.adjustment;Ed(e,r.shadows||{}),Ed(e,r.midtones||{}),Ed(e,r.highlights||{}),qe(e,r.preserveLuminosity?1:0),Pt(e,1)}),ft("blwh",Vr("black & white"),function(e,t,r){var n=Et(e);t.adjustment={type:"black & white",reds:n["Rd "],yellows:n.Yllw,greens:n["Grn "],cyans:n["Cyn "],blues:n["Bl "],magentas:n.Mgnt,useTint:!!n.useTint,presetKind:n.bwPresetKind,presetFileName:n.blackAndWhitePresetFileName},n.tintColor!==void 0&&(t.adjustment.tintColor=Gn(n.tintColor)),et(e,r())},function(e,t){var r=t.adjustment,n={"Rd ":r.reds||0,Yllw:r.yellows||0,"Grn ":r.greens||0,"Cyn ":r.cyans||0,"Bl ":r.blues||0,Mgnt:r.magentas||0,useTint:!!r.useTint,tintColor:Vn(r.tintColor),bwPresetKind:r.presetKind||0,blackAndWhitePresetFileName:r.presetFileName||""};Mt(e,"","null",n)}),ft("phfl",Vr("photo filter"),function(e,t,r){var n=We(e);if(n!==2&&n!==3)throw new Error("Invalid phfl version");var a;n===2?a=Ir(e):a={l:it(e)/100,a:it(e)/100,b:it(e)/100},t.adjustment={type:"photo filter",color:a,density:Fe(e)/100,preserveLuminosity:!!Ye(e)},et(e,r())},function(e,t){var r=t.adjustment;Le(e,2),zr(e,r.color||{l:0,a:0,b:0}),Ze(e,(r.density||0)*100),qe(e,r.preserveLuminosity?1:0),Pt(e,3)});function gu(e){var t=At(e),r=At(e),n=At(e);et(e,2);var a=At(e);return{red:t,green:r,blue:n,constant:a}}function us(e,t){var r=t||{};Ot(e,r.red),Ot(e,r.green),Ot(e,r.blue),Pt(e,2),Ot(e,r.constant)}ft("mixr",Vr("channel mixer"),function(e,t,r){if(We(e)!==1)throw new Error("Invalid mixr version");var n=t.adjustment=U(U({},t.adjustment),{type:"channel mixer",monochrome:!!We(e)});n.monochrome||(n.red=gu(e),n.green=gu(e),n.blue=gu(e)),n.gray=gu(e),et(e,r())},function(e,t){var r=t.adjustment;Le(e,1),Le(e,r.monochrome?1:0),r.monochrome?(us(e,r.gray),Pt(e,3*5*2)):(us(e,r.red),us(e,r.green),us(e,r.blue),us(e,r.gray))});var vb=mt("colorLookupType","3DLUT",{"3dlut":"3DLUT",abstractProfile:"abstractProfile",deviceLinkProfile:"deviceLinkProfile"}),mb=mt("LUTFormatType","look",{look:"LUTFormatLOOK",cube:"LUTFormatCUBE","3dl":"LUTFormat3DL"}),bu=mt("colorLookupOrder","rgb",{rgb:"rgbOrder",bgr:"bgrOrder"});ft("clrL",Vr("color lookup"),function(e,t,r){if(We(e)!==1)throw new Error("Invalid clrL version");var n=Et(e);t.adjustment={type:"color lookup"};var a=t.adjustment;n.lookupType!==void 0&&(a.lookupType=vb.decode(n.lookupType)),n["Nm "]!==void 0&&(a.name=n["Nm "]),n.Dthr!==void 0&&(a.dither=n.Dthr),n.profile!==void 0&&(a.profile=n.profile),n.LUTFormat!==void 0&&(a.lutFormat=mb.decode(n.LUTFormat)),n.dataOrder!==void 0&&(a.dataOrder=bu.decode(n.dataOrder)),n.tableOrder!==void 0&&(a.tableOrder=bu.decode(n.tableOrder)),n.LUT3DFileData!==void 0&&(a.lut3DFileData=n.LUT3DFileData),n.LUT3DFileName!==void 0&&(a.lut3DFileName=n.LUT3DFileName),et(e,r())},function(e,t){var r=t.adjustment,n={};r.lookupType!==void 0&&(n.lookupType=vb.encode(r.lookupType)),r.name!==void 0&&(n["Nm "]=r.name),r.dither!==void 0&&(n.Dthr=r.dither),r.profile!==void 0&&(n.profile=r.profile),r.lutFormat!==void 0&&(n.LUTFormat=mb.encode(r.lutFormat)),r.dataOrder!==void 0&&(n.dataOrder=bu.encode(r.dataOrder)),r.tableOrder!==void 0&&(n.tableOrder=bu.encode(r.tableOrder)),r.lut3DFileData!==void 0&&(n.LUT3DFileData=r.lut3DFileData),r.lut3DFileName!==void 0&&(n.LUT3DFileName=r.lut3DFileName),Le(e,1),Mt(e,"","null",n)}),ft("nvrt",Vr("invert"),function(e,t,r){t.adjustment={type:"invert"},et(e,r())},function(){}),ft("post",Vr("posterize"),function(e,t,r){t.adjustment={type:"posterize",levels:We(e)},et(e,r())},function(e,t){var r,n=t.adjustment;Le(e,(r=n.levels)!==null&&r!==void 0?r:4),Pt(e,2)}),ft("thrs",Vr("threshold"),function(e,t,r){t.adjustment={type:"threshold",level:We(e)},et(e,r())},function(e,t){var r,n=t.adjustment;Le(e,(r=n.level)!==null&&r!==void 0?r:128),Pt(e,2)});var gb=["","","","rgb","hsb","","lab"];ft("grdm",Vr("gradient map"),function(e,t,r){var n=We(e);if(n!==1&&n!==3)throw new Error("Invalid grdm version");var a={type:"gradient map",gradientType:"solid"};a.reverse=!!Ye(e),a.dither=!!Ye(e);var i=!!Ye(e);if(e.offset--,i){var o=qt(e);a.method=$o.decode(o)}a.name=xr(e),a.colorStops=[],a.opacityStops=[];for(var l=We(e),s=0;s<l;s++)a.colorStops.push({location:Fe(e),midpoint:Fe(e)/100,color:Ir(e)}),et(e,2);for(var u=We(e),s=0;s<u;s++)a.opacityStops.push({location:Fe(e),midpoint:Fe(e)/100,opacity:We(e)/255});var c=We(e);if(c!==2)throw new Error("Invalid grdm expansion count");var f=We(e);a.smoothness=f/4096;var d=We(e);if(d!==32)throw new Error("Invalid grdm length");a.gradientType=We(e)?"noise":"solid",a.randomSeed=Fe(e),a.addTransparency=!!We(e),a.restrictColors=!!We(e),a.roughness=Fe(e)/4096,a.colorModel=gb[We(e)]||"rgb",a.min=[We(e)/32768,We(e)/32768,We(e)/32768,We(e)/32768],a.max=[We(e)/32768,We(e)/32768,We(e)/32768,We(e)/32768],et(e,r());for(var h=0,b=a.colorStops;h<b.length;h++){var p=b[h];p.location/=f}for(var x=0,g=a.opacityStops;x<g.length;x++){var p=g[x];p.location/=f}t.adjustment=a},function(e,t){var r,n,a,i=t.adjustment;Le(e,i.method!==void 0?3:1),qe(e,i.reverse?1:0),qe(e,i.dither?1:0),i.method!==void 0&&vt(e,$o.encode(i.method)),qi(e,i.name||""),Le(e,i.colorStops&&i.colorStops.length||0);for(var o=Math.round(((r=i.smoothness)!==null&&r!==void 0?r:1)*4096),l=0,s=i.colorStops||[];l<s.length;l++){var u=s[l];Ze(e,Math.round(u.location*o)),Ze(e,Math.round(u.midpoint*100)),zr(e,u.color),Pt(e,2)}Le(e,i.opacityStops&&i.opacityStops.length||0);for(var c=0,f=i.opacityStops||[];c<f.length;c++){var u=f[c];Ze(e,Math.round(u.location*o)),Ze(e,Math.round(u.midpoint*100)),Le(e,Math.round(u.opacity*255))}Le(e,2),Le(e,o),Le(e,32),Le(e,i.gradientType==="noise"?1:0),Ze(e,i.randomSeed||0),Le(e,i.addTransparency?1:0),Le(e,i.restrictColors?1:0),Ze(e,Math.round(((n=i.roughness)!==null&&n!==void 0?n:1)*4096));var d=gb.indexOf((a=i.colorModel)!==null&&a!==void 0?a:"rgb");Le(e,d===-1?3:d);for(var h=0;h<4;h++)Le(e,Math.round((i.min&&i.min[h]||0)*32768));for(var h=0;h<4;h++)Le(e,Math.round((i.max&&i.max[h]||0)*32768));Pt(e,4)});function qa(e){return{c:At(e),m:At(e),y:At(e),k:At(e)}}function Wa(e,t){var r=t||{};Ot(e,r.c),Ot(e,r.m),Ot(e,r.y),Ot(e,r.k)}ft("selc",Vr("selective color"),function(e,t){if(We(e)!==1)throw new Error("Invalid selc version");var r=We(e)?"absolute":"relative";et(e,8),t.adjustment={type:"selective color",mode:r,reds:qa(e),yellows:qa(e),greens:qa(e),cyans:qa(e),blues:qa(e),magentas:qa(e),whites:qa(e),neutrals:qa(e),blacks:qa(e)}},function(e,t){var r=t.adjustment;Le(e,1),Le(e,r.mode==="absolute"?1:0),Pt(e,8),Wa(e,r.reds),Wa(e,r.yellows),Wa(e,r.greens),Wa(e,r.cyans),Wa(e,r.blues),Wa(e,r.magentas),Wa(e,r.whites),Wa(e,r.neutrals),Wa(e,r.blacks)}),ft("CgEd",function(e){var t=e.adjustment;return t?t.type==="brightness/contrast"&&!t.useLegacy||(t.type==="levels"||t.type==="curves"||t.type==="exposure"||t.type==="channel mixer"||t.type==="hue/saturation")&&t.presetFileName!==void 0:!1},function(e,t,r){var n=Et(e);if(n.Vrsn!==1)throw new Error("Invalid CgEd version");"presetFileName"in n?t.adjustment=U(U({},t.adjustment),{presetKind:n.presetKind,presetFileName:n.presetFileName}):"curvesPresetFileName"in n?t.adjustment=U(U({},t.adjustment),{presetKind:n.curvesPresetKind,presetFileName:n.curvesPresetFileName}):"mixerPresetFileName"in n?t.adjustment=U(U({},t.adjustment),{presetKind:n.mixerPresetKind,presetFileName:n.mixerPresetFileName}):t.adjustment={type:"brightness/contrast",brightness:n.Brgh,contrast:n.Cntr,meanValue:n.means,useLegacy:!!n.useLegacy,labColorOnly:!!n["Lab "],auto:!!n.Auto},et(e,r())},function(e,t){var r,n,a,i,o=t.adjustment;if(o.type==="levels"||o.type==="exposure"||o.type==="hue/saturation"){var l={Vrsn:1,presetKind:(r=o.presetKind)!==null&&r!==void 0?r:1,presetFileName:o.presetFileName||""};Mt(e,"","null",l)}else if(o.type==="curves"){var l={Vrsn:1,curvesPresetKind:(n=o.presetKind)!==null&&n!==void 0?n:1,curvesPresetFileName:o.presetFileName||""};Mt(e,"","null",l)}else if(o.type==="channel mixer"){var l={Vrsn:1,mixerPresetKind:(a=o.presetKind)!==null&&a!==void 0?a:1,mixerPresetFileName:o.presetFileName||""};Mt(e,"","null",l)}else if(o.type==="brightness/contrast"){var l={Vrsn:1,Brgh:o.brightness||0,Cntr:o.contrast||0,means:(i=o.meanValue)!==null&&i!==void 0?i:127,"Lab ":!!o.labColorOnly,useLegacy:!!o.useLegacy,Auto:!!o.auto};Mt(e,"","null",l)}else throw new Error("Unhandled CgEd case")});function KE(e){var t=[];function r(n){var a;if(n.children)for(var i=0,o=n.children;i<o.length;i++){var l=o[i];((a=l.text)===null||a===void 0?void 0:a.index)!==void 0&&(t[l.text.index]=l),r(l)}}return r(e),t}ft("Txt2",Gt("engineData"),function(e,t,r,n){var a=hr(e,r());t.engineData=e2(a);var i=KE(n),o=Xg(a),l=$E(o),s=l.ResourceDict.TextFrameSet;if(s)for(var u=0;u<s.length;u++){var c=i[u];s[u].path&&(c!=null&&c.text)&&(c.text.textPath=s[u].path)}},function(e,t){var r=Q4(t.engineData);Zn(e,r)}),ft("FEid",Gt("filterEffectsMasks"),function(e,t,r){var n=it(e);if(n<1||n>3)throw new Error("Invalid filterEffects version ".concat(n));for(t.filterEffectsMasks=[];r()>8;){if(Fe(e))throw new Error("filterEffects: 64 bit length is not supported");var a=Fe(e),i=e.offset+a,o=Kn(e,1),l=it(e);if(l!==1)throw new Error("Invalid filterEffect version ".concat(l));if(Fe(e))throw new Error("filterEffect: 64 bit length is not supported");Fe(e);for(var s=it(e),u=it(e),c=it(e),f=it(e),d=it(e),h=it(e),b=[],p=0;p<h+2;p++){var x=it(e);if(x){if(Fe(e))throw new Error("filterEffect: 64 bit length is not supported");var g=Fe(e);if(!g)throw new Error("filterEffect: Empty channel");var m=We(e),y=hr(e,g-2);b.push({compressionMode:m,data:y})}else b.push(void 0)}if(t.filterEffectsMasks.push({id:o,top:s,left:u,bottom:c,right:f,depth:d,channels:b}),e.offset<i&&Ye(e)){var v=it(e),k=it(e),C=it(e),A=it(e);if(Fe(e))throw new Error("filterEffect: 64 bit length is not supported");var _=Fe(e),m=We(e),y=hr(e,_-2);t.filterEffectsMasks[t.filterEffectsMasks.length-1].extra={top:v,left:k,bottom:C,right:A,compressionMode:m,data:y}}e.offset=i;for(var E=a;E%4;)e.offset++,E++}},function(e,t){var r;ht(e,3);for(var n=0,a=t.filterEffectsMasks;n<a.length;n++){var i=a[n];Ze(e,0),Ze(e,0);var o=e.offset;_i(e,i.id,1),ht(e,1),Ze(e,0),Ze(e,0);var l=e.offset;ht(e,i.top),ht(e,i.left),ht(e,i.bottom),ht(e,i.right),ht(e,i.depth);var s=Math.max(0,i.channels.length-2);ht(e,s);for(var u=0;u<s+2;u++){var c=i.channels[u];ht(e,c?1:0),c&&(Ze(e,0),Ze(e,c.data.length+2),Le(e,c.compressionMode),Zn(e,c.data))}e.view.setUint32(l-4,e.offset-l,!1);var f=(r=t.filterEffectsMasks[t.filterEffectsMasks.length-1])===null||r===void 0?void 0:r.extra;f&&(qe(e,1),ht(e,f.top),ht(e,f.left),ht(e,f.bottom),ht(e,f.right),Ze(e,0),Ze(e,f.data.byteLength+2),Le(e,f.compressionMode),Zn(e,f.data));var d=e.offset-o;for(e.view.setUint32(o-4,d,!1);d%4;)Pt(e,1),d++}}),Ko("FXid","FEid"),ft("FMsk",Gt("filterMask"),function(e,t){t.filterMask={colorSpace:Ir(e),opacity:We(e)/255}},function(e,t){var r;zr(e,t.filterMask.colorSpace),Le(e,Zf((r=t.filterMask.opacity)!==null&&r!==void 0?r:1,0,1)*255)}),ft("artd",function(e){return e.artboards!==void 0},function(e,t,r){var n=Et(e);t.artboards={count:n["Cnt "],autoExpandOffset:{horizontal:n.autoExpandOffset.Hrzn,vertical:n.autoExpandOffset.Vrtc},origin:{horizontal:n.origin.Hrzn,vertical:n.origin.Vrtc},autoExpandEnabled:n.autoExpandEnabled,autoNestEnabled:n.autoNestEnabled,autoPositionEnabled:n.autoPositionEnabled,shrinkwrapOnSaveEnabled:!!n.shrinkwrapOnSaveEnabled,docDefaultNewArtboardBackgroundColor:Gn(n.docDefaultNewArtboardBackgroundColor),docDefaultNewArtboardBackgroundType:n.docDefaultNewArtboardBackgroundType},et(e,r())},function(e,t){var r,n,a,i,o,l=t.artboards,s={"Cnt ":l.count,autoExpandOffset:l.autoExpandOffset?{Hrzn:l.autoExpandOffset.horizontal,Vrtc:l.autoExpandOffset.vertical}:{Hrzn:0,Vrtc:0},origin:l.origin?{Hrzn:l.origin.horizontal,Vrtc:l.origin.vertical}:{Hrzn:0,Vrtc:0},autoExpandEnabled:(r=l.autoExpandEnabled)!==null&&r!==void 0?r:!0,autoNestEnabled:(n=l.autoNestEnabled)!==null&&n!==void 0?n:!0,autoPositionEnabled:(a=l.autoPositionEnabled)!==null&&a!==void 0?a:!0,shrinkwrapOnSaveEnabled:(i=l.shrinkwrapOnSaveEnabled)!==null&&i!==void 0?i:!0,docDefaultNewArtboardBackgroundColor:Vn(l.docDefaultNewArtboardBackgroundColor),docDefaultNewArtboardBackgroundType:(o=l.docDefaultNewArtboardBackgroundType)!==null&&o!==void 0?o:1};Mt(e,"","null",s,"artd")});function bb(e){return Object.keys(e).map(function(t){return e[t]}).some(function(t){return Array.isArray(t)&&t.length>1})}ft("lfx2",function(e){return e.effects!==void 0&&!bb(e.effects)},function(e,t,r){var n=Fe(e);if(n!==0)throw new Error("Invalid lfx2 version");var a=Et(e);t.effects=Jl(a,!!e.logMissingFeatures),et(e,r())},function(e,t,r,n){var a=Zl(t.effects,!!n.logMissingFeatures,!0);Ze(e,0),Mt(e,"","null",a)}),ft("cinf",Gt("compositorUsed"),function(e,t,r){var n=Et(e);function a(i){return i.split(".")[1]}t.compositorUsed={description:n.description,reason:n.reason,engine:a(n.Engn)},n.Vrsn&&(t.compositorUsed.version=n.Vrsn),n.psVersion&&(t.compositorUsed.photoshopVersion=n.psVersion),n.enableCompCore&&(t.compositorUsed.enableCompCore=a(n.enableCompCore)),n.enableCompCoreGPU&&(t.compositorUsed.enableCompCoreGPU=a(n.enableCompCoreGPU)),n.enableCompCoreThreads&&(t.compositorUsed.enableCompCoreThreads=a(n.enableCompCoreThreads)),n.compCoreSupport&&(t.compositorUsed.compCoreSupport=a(n.compCoreSupport)),n.compCoreGPUSupport&&(t.compositorUsed.compCoreGPUSupport=a(n.compCoreGPUSupport)),et(e,r())},function(e,t){var r=t.compositorUsed,n={Vrsn:r.version||{major:1,minor:0,fix:0}};r.photoshopVersion&&(n.psVersion=r.photoshopVersion),n.description=r.description,n.reason=r.reason,n.Engn="Engn.".concat(r.engine),r.enableCompCore&&(n.enableCompCore="enable.".concat(r.enableCompCore)),r.enableCompCoreGPU&&(n.enableCompCoreGPU="enable.".concat(r.enableCompCoreGPU)),r.enableCompCoreThreads&&(n.enableCompCoreThreads="enable.".concat(r.enableCompCoreThreads)),r.compCoreSupport&&(n.compCoreSupport="reason.".concat(r.compCoreSupport)),r.compCoreGPUSupport&&(n.compCoreGPUSupport="reason.".concat(r.compCoreGPUSupport)),Mt(e,"","null",n)}),ft("extn",function(e){return e._extn!==void 0},function(e,t){Et(e)},function(e,t){}),ft("iOpa",Gt("fillOpacity"),function(e,t){t.fillOpacity=Ye(e)/255,et(e,3)},function(e,t){qe(e,t.fillOpacity*255),Pt(e,3)}),ft("brst",Gt("channelBlendingRestrictions"),function(e,t,r){for(t.channelBlendingRestrictions=[];r()>4;)t.channelBlendingRestrictions.push(it(e))},function(e,t){for(var r=0,n=t.channelBlendingRestrictions;r<n.length;r++){var a=n[r];ht(e,a)}}),ft("tsly",Gt("transparencyShapesLayer"),function(e,t){t.transparencyShapesLayer=!!Ye(e),et(e,3)},function(e,t){qe(e,t.transparencyShapesLayer?1:0),Pt(e,3)});var xi=function(){return xi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},xi.apply(this,arguments)};function yb(e){e===void 0&&(e=4096);var t=new ArrayBuffer(e),r=new DataView(t),n=0;return{buffer:t,view:r,offset:n,tempBuffer:void 0}}function XE(e){return e.buffer.slice(0,e.offset)}function YE(e){return new Uint8Array(e.buffer,0,e.offset)}function qe(e,t){var r=Ka(e,1);e.view.setUint8(r,t)}function Ot(e,t){var r=Ka(e,2);e.view.setInt16(r,t,!1)}function Le(e,t){var r=Ka(e,2);e.view.setUint16(r,t,!1)}function ZE(e,t){var r=Ka(e,2);e.view.setUint16(r,t,!0)}function ht(e,t){var r=Ka(e,4);e.view.setInt32(r,t,!1)}function xb(e,t){var r=Ka(e,4);e.view.setInt32(r,t,!0)}function Ze(e,t){var r=Ka(e,4);e.view.setUint32(r,t,!1)}function Xn(e,t){var r=Ka(e,4);e.view.setFloat32(r,t,!1)}function Bn(e,t){var r=Ka(e,8);e.view.setFloat64(r,t,!1)}function Sn(e,t){ht(e,t*65536)}function Yn(e,t){ht(e,t*(1<<24))}function Zn(e,t){if(t){Ab(e,e.offset+t.length);var r=new Uint8Array(e.buffer);r.set(t,e.offset),e.offset+=t.length}}function Pt(e,t){for(var r=0;r<t;r++)qe(e,0)}function vt(e,t){if(t.length!==4)throw new Error("Invalid signature: '".concat(t,"'"));for(var r=0;r<4;r++)qe(e,t.charCodeAt(r))}function JE(e,t){for(var r=0;r<t.length;r++)qe(e,t.charCodeAt(r))}function _i(e,t,r){var n=t.length;if(n>255)throw new Error("String too long");qe(e,n);for(var a=0;a<n;a++){var i=t.charCodeAt(a);qe(e,i<128?i:63)}for(;++n%r;)qe(e,0)}function QE(e,t){for(var r=0;r<t.length;r++)Le(e,t.charCodeAt(r))}function eT(e,t){for(var r=0;r<t.length;r++)ZE(e,t.charCodeAt(r))}function Cn(e,t){Ze(e,t.length),QE(e,t)}function qi(e,t){Ze(e,t.length+1);for(var r=0;r<t.length;r++)Le(e,t.charCodeAt(r));Le(e,0)}function _b(e){e===void 0&&(e=[]);for(var t=0,r=0,n=e;r<n.length;r++){var a=n[r];if(a.canvas||a.imageData){var i=Td(a),o=i.width,l=i.height;t=Math.max(t,2*l+2*o*l)}a.children&&(t=Math.max(t,_b(a.children)))}return t}function Br(e,t,r,n,a){n===void 0&&(n=!1),a===void 0&&(a=!1),a&&Ze(e,0);var i=e.offset;Ze(e,0),r();for(var o=e.offset-i-4,l=o;l%t;)qe(e,0),l++;n&&(o=l),e.view.setUint32(i,o,!1)}function wb(e){var t;(t=e.children)===null||t===void 0||t.forEach(wb);var r=e.imageData;if(r&&(r.data instanceof Uint32Array||r.data instanceof Uint16Array))throw new Error("imageData has incorrect bitDepth");if("mask"in e&&e.mask){var n=e.mask.imageData;if(n&&(n.data instanceof Uint32Array||n.data instanceof Uint16Array))throw new Error("mask imageData has incorrect bitDepth")}}function kb(e,t,r){var n;if(r===void 0&&(r={}),!(+t.width>0&&+t.height>0))throw new Error("Invalid document size");if((t.width>3e4||t.height>3e4)&&!r.psb)throw new Error("Document size is too large (max is 30000x30000, use PSB format instead)");var a=(n=t.bitsPerChannel)!==null&&n!==void 0?n:8;if(a!==8)throw new Error("bitsPerChannel other than 8 are not supported for writing");wb(t);var i=xi({},t.imageResources),o=xi(xi({},r),{layerIds:new Set,layerToId:new Map});o.generateThumbnail&&(i.thumbnail=oT(t));var l=t.imageData;if(!l&&t.canvas&&(l=t.canvas.getContext("2d").getImageData(0,0,t.canvas.width,t.canvas.height)),l&&(t.width!==l.width||t.height!==l.height))throw new Error("Document canvas must have the same size as document");var s=!!l&&Z4(l),u=Math.max(_b(t.children),4*2*t.width*t.height+2*t.height);e.tempBuffer=new Uint8Array(u),vt(e,"8BPS"),Le(e,r.psb?2:1),Pt(e,6),Le(e,s?4:3),Ze(e,t.height),Ze(e,t.width),Le(e,a),Le(e,3),Br(e,1,function(){var k,C,A;if(t.palette){for(var _=0;_<256;_++)qe(e,((k=t.palette[_])===null||k===void 0?void 0:k.r)||0);for(var _=0;_<256;_++)qe(e,((C=t.palette[_])===null||C===void 0?void 0:C.g)||0);for(var _=0;_<256;_++)qe(e,((A=t.palette[_])===null||A===void 0?void 0:A.b)||0)}});var c=[];Cb(c,t.children),c.length||c.push({}),i.layersGroup=c.map(function(k){return k.linkGroup||0}),i.layerGroupsEnabledId=c.map(function(k){return k.linkGroupEnabled==!1?0:1}),Br(e,1,function(){for(var k=function(E){for(var M=E.has(i),z=M===!1?0:M===!0?1:M,R=function(H){vt(e,"8BIM"),Le(e,E.key),_i(e,"",2),Br(e,2,function(){return E.write(e,i,H)})},O=0;O<z;O++)R(O)},C=0,A=_g;C<A.length;C++){var _=A[C];k(_)}}),Br(e,2,function(){tT(e,c,t,s,o),aT(e,t.globalLayerMaskInfo),Sb(e,t,t,o)},void 0,!!o.psb);var f=s?[0,1,2,3]:[0,1,2],d=l?l.width:t.width,h=l?l.height:t.height,b={data:new Uint8Array(d*h*4),width:d,height:h};Le(e,1);{if(l&&b.data.set(new Uint8Array(l.data.buffer,l.data.byteOffset,l.data.byteLength)),s)for(var p=b.width*b.height*4,x=b.data,g=0;g<p;g+=4){var m=x[g+3];if(m!=0&&m!=255){var y=m/255,v=255*(1-y);x[g+0]=x[g+0]*y+v,x[g+1]=x[g+1]*y+v,x[g+2]=x[g+2]*y+v}}Zn(e,Jf(e.tempBuffer,b,f,!!r.psb))}}function tT(e,t,r,n,a){Br(e,4,function(){var i;Ot(e,n?-t.length:t.length);for(var o=t.map(function(x,g){return lT(e.tempBuffer,x,g===0,a)}),l=function(x){var g=x.layer,m=x.top,y=x.left,v=x.bottom,k=x.right,C=x.channels;ht(e,m),ht(e,y),ht(e,v),ht(e,k),Le(e,C.length);for(var A=0,_=C;A<_.length;A++){var E=_[A];Ot(e,E.channelId),a.psb&&Ze(e,0),Ze(e,E.length)}vt(e,"8BIM"),vt(e,K0[g.blendMode]||"norm"),qe(e,Math.round(Zf((i=g.opacity)!==null&&i!==void 0?i:1,0,1)*255)),qe(e,g.clipping?1:0);var M=8;g.transparencyProtected&&(M|=1),g.hidden&&(M|=2),(g.vectorMask||g.sectionDivider&&g.sectionDivider.type!==0||g.adjustment)&&(M|=16),g.effectsOpen&&(M|=32),qe(e,M),qe(e,0),Br(e,1,function(){rT(e,g,x),nT(e,g),_i(e,(g.name||"").substring(0,255),4),Sb(e,g,r,a)})},s=0,u=o;s<u.length;s++){var c=u[s];l(c)}for(var f=0,d=o;f<d.length;f++)for(var c=d[f],h=0,b=c.channels;h<b.length;h++){var p=b[h];Le(e,p.compression),p.buffer&&Zn(e,p.buffer)}},!0,a.psb)}function rT(e,t,r){var n=t.mask,a=t.realMask;Br(e,1,function(){if(!(!n&&!a)){var i=0,o=0,l=0;n&&(n.userMaskDensity!==void 0&&(i|=1),n.userMaskFeather!==void 0&&(i|=2),n.vectorMaskDensity!==void 0&&(i|=4),n.vectorMaskFeather!==void 0&&(i|=8),n.disabled&&(o|=2),n.positionRelativeToLayer&&(o|=1),n.fromVectorData&&(o|=8),i&&(o|=16));var s=r.mask||{};if(ht(e,s.top||0),ht(e,s.left||0),ht(e,s.bottom||0),ht(e,s.right||0),qe(e,n&&n.defaultColor||0),qe(e,o),a){a.disabled&&(l|=2),a.positionRelativeToLayer&&(l|=1),a.fromVectorData&&(l|=8);var u=r.realMask||{};qe(e,l),qe(e,a.defaultColor||0),ht(e,u.top||0),ht(e,u.left||0),ht(e,u.bottom||0),ht(e,u.right||0)}i&&n&&(qe(e,i),n.userMaskDensity!==void 0&&qe(e,Math.round(n.userMaskDensity*255)),n.userMaskFeather!==void 0&&Bn(e,n.userMaskFeather),n.vectorMaskDensity!==void 0&&qe(e,Math.round(n.vectorMaskDensity*255)),n.vectorMaskFeather!==void 0&&Bn(e,n.vectorMaskFeather)),Pt(e,2)}})}function yu(e,t){qe(e,t[0]),qe(e,t[1]),qe(e,t[2]),qe(e,t[3])}function nT(e,t){Br(e,1,function(){var r=t.blendingRanges;if(r){yu(e,r.compositeGrayBlendSource),yu(e,r.compositeGraphBlendDestinationRange);for(var n=0,a=r.ranges;n<a.length;n++){var i=a[n];yu(e,i.sourceRange),yu(e,i.destRange)}}})}function aT(e,t){Br(e,1,function(){t&&(Le(e,t.overlayColorSpace),Le(e,t.colorSpace1),Le(e,t.colorSpace2),Le(e,t.colorSpace3),Le(e,t.colorSpace4),Le(e,t.opacity*255),qe(e,t.kind),Pt(e,3))})}function Sb(e,t,r,n){for(var a=function(s){var u=s.key;if(u==="Txt2"&&n.invalidateTextLayers)return"continue";if(u==="vmsk"&&n.psb&&(u="vsms"),s.has(t)){var c=n.psb&&q4.indexOf(u)!==-1,f=u!=="Txt2"&&u!=="cinf"&&u!=="extn"&&u!=="CAI "&&u!=="OCIO",d=u==="Txt2"||u==="luni"||u==="vmsk"||u==="artb"||u==="artd"||u==="vogk"||u==="SoLd"||u==="lnk2"||u==="vscg"||u==="vsms"||u==="GdFl"||u==="lmfx"||u==="lrFX"||u==="cinf"||u==="PlLd"||u==="Anno"||u==="CAI "||u==="OCIO"||u==="GenI"||u==="FEid"||u==="curv"||u==="CgEd"||u==="vibA"||u==="blwh"||u==="grdm";vt(e,c?"8B64":"8BIM"),vt(e,u),Br(e,d?4:2,function(){s.write(e,t,r,n)},f,c)}},i=0,o=ob;i<o.length;i++){var l=o[i];a(l)}}function Cb(e,t){if(t)for(var r=0,n=t;r<n.length;r++){var a=n[r];if(a.children&&a.canvas)throw new Error("Invalid layer, cannot have both 'canvas' and 'children' properties");if(a.children&&a.imageData)throw new Error("Invalid layer, cannot have both 'imageData' and 'children' properties");a.children?(e.push({name:"</Layer group>",sectionDivider:{type:3}}),Cb(e,a.children),e.push(xi(xi({},a),{blendMode:a.blendMode==="pass through"?"normal":a.blendMode,sectionDivider:{type:a.opened===!1?2:1,key:K0[a.blendMode]||"pass",subType:0}}))):e.push(xi({},a))}}function iT(e,t){var r=e.buffer.byteLength;do r*=2;while(t>r);var n=new ArrayBuffer(r),a=new Uint8Array(n),i=new Uint8Array(e.buffer);a.set(i),e.buffer=n,e.view=new DataView(e.buffer)}function Ab(e,t){t>e.buffer.byteLength&&iT(e,t)}function Ka(e,t){var r=e.offset;return Ab(e,e.offset+=t),r}function oT(e){var t=Po(10,10),r=1;e.width>e.height?(t.width=160,t.height=Math.floor(e.height*(t.width/e.width)),r=t.width/e.width):(t.height=160,t.width=Math.floor(e.width*(t.height/e.height)),r=t.height/e.height);var n=t.getContext("2d");return n.scale(r,r),e.imageData?n.drawImage(X0(e.imageData),0,0):e.canvas&&n.drawImage(e.canvas,0,0),t}function Eb(e,t,r,n,a,i){var o=n.top|0,l=n.left|0,s=n.right|0,u=n.bottom|0,c=Td(n),f=c.width,d=c.height,h=n.imageData;if(!h&&n.canvas&&f&&d&&(h=n.canvas.getContext("2d").getImageData(0,0,f,d)),h&&(h.width!==f||h.height!==d))throw new Error("Invalid imageData dimentions");s=l+f,u=o+d;var b,p;h?a.compress?(b=J4(h,[0]),p=2):(b=Jf(e,h,[0],!!a.psb),p=1):(b=new Uint8Array(0),p=1),t.channels.push({channelId:i?-3:-2,compression:p,buffer:b,length:2+b.length}),t[i?"realMask":"mask"]={top:o,left:l,right:s,bottom:u}}function lT(e,t,r,n){var a=uT(e,t,r,n);return t.mask&&Eb(e,a,t,t.mask,n,!1),t.realMask&&Eb(e,a,t,t.realMask,n,!0),a}function Td(e){var t,r,n,a,i=e.canvas,o=e.imageData,l=(r=(t=o==null?void 0:o.width)!==null&&t!==void 0?t:i==null?void 0:i.width)!==null&&r!==void 0?r:0,s=(a=(n=o==null?void 0:o.height)!==null&&n!==void 0?n:i==null?void 0:i.height)!==null&&a!==void 0?a:0;return{width:l,height:s}}function sT(e,t,r,n,a){if(e.data instanceof Uint32Array||e.data instanceof Uint16Array)throw new Error("imageData has incorrect bit depth");for(var i=Ro(n,a),o=e.data,l=i.data,s=0;s<a;s++)for(var u=0;u<n;u++){var c=(u+t+(s+r)*e.width)*4,f=(u+s*n)*4;l[f]=o[c],l[f+1]=o[c+1],l[f+2]=o[c+2],l[f+3]=o[c+3]}return i}function uT(e,t,r,n){var a=t.top|0,i=t.left|0,o=t.right|0,l=t.bottom|0,s=[{channelId:-1,compression:0,buffer:void 0,length:2},{channelId:0,compression:0,buffer:void 0,length:2},{channelId:1,compression:0,buffer:void 0,length:2},{channelId:2,compression:0,buffer:void 0,length:2}],u=Td(t),c=u.width,f=u.height;if(!(t.canvas||t.imageData)||!c||!f)return o=i,l=a,{layer:t,top:a,left:i,right:o,bottom:l,channels:s};o=i+c,l=a+f;var d=t.imageData||t.canvas.getContext("2d").getImageData(0,0,c,f);if(n.trimImageData){var h=cT(d);if(h.left!==0||h.top!==0||h.right!==d.width||h.bottom!==d.height){if(i+=h.left,a+=h.top,o-=d.width-h.right,l-=d.height-h.bottom,c=o-i,f=l-a,!c||!f)return{layer:t,top:a,left:i,right:o,bottom:l,channels:s};d=sT(d,h.left,h.top,c,f)}}var b=[0,1,2];return(!r||n.noBackground||t.mask||Z4(d)||OA)&&b.unshift(-1),s=b.map(function(p){var x=Y4(p,!1),g,m;return n.compress?(g=J4(d,[x]),m=2):(g=Jf(e,d,[x],!!n.psb),m=1),{channelId:p,compression:m,buffer:g,length:2+g.length}}),{layer:t,top:a,left:i,right:o,bottom:l,channels:s}}function Tb(e,t,r,n){for(var a=e.data,i=e.width,o=(t*i+r)*4+3|0,l=o+(n-r)*4|0,s=o;s<l;s=s+4|0)if(a[s]!==0)return!1;return!0}function Mb(e,t,r,n){for(var a=e.data,i=e.width,o=i*4|0,l=r*o+t*4+3|0,s=r,u=l;s<n;s++,u=u+o|0)if(a[u]!==0)return!1;return!0}function cT(e){for(var t=0,r=0,n=e.width,a=e.height;t<a&&Tb(e,t,r,n);)t++;for(;a>t&&Tb(e,a-1,r,n);)a--;for(;r<n&&Mb(e,r,t,a);)r++;for(;n>r&&Mb(e,n-1,t,a);)n--;return{top:t,left:r,right:n,bottom:a}}function zr(e,t){t?"r"in t?(Le(e,0),Le(e,Math.round(t.r*257)),Le(e,Math.round(t.g*257)),Le(e,Math.round(t.b*257)),Le(e,0)):"fr"in t?(Le(e,0),Le(e,Math.round(t.fr*255*257)),Le(e,Math.round(t.fg*255*257)),Le(e,Math.round(t.fb*255*257)),Le(e,0)):"l"in t?(Le(e,7),Ot(e,Math.round(t.l*1e4)),Ot(e,Math.round(t.a<0?t.a*12800:t.a*12700)),Ot(e,Math.round(t.b<0?t.b*12800:t.b*12700)),Le(e,0)):"h"in t?(Le(e,1),Le(e,Math.round(t.h*65535)),Le(e,Math.round(t.s*65535)),Le(e,Math.round(t.b*65535)),Le(e,0)):"c"in t?(Le(e,2),Le(e,Math.round(t.c*257)),Le(e,Math.round(t.m*257)),Le(e,Math.round(t.y*257)),Le(e,Math.round(t.k*257))):(Le(e,8),Le(e,Math.round(t.k*1e4/255)),Pt(e,6)):(Le(e,0),Pt(e,8))}var xu=function(){return xu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},xu.apply(this,arguments)},fT=["off","fade","pen pressure","pen tilt","stylus wheel","initial direction","direction","initial rotation","rotation"],Db=["round point","round blunt","round curve","round angle","round fan","flat point","flat blunt","flat curve","flat angle","flat fan"],dT=["erodible point","erodible flat","erodible round","erodible square","erodible triangle","custom"],hT={_:"brush",MixB:"mixer brush",SmTl:"smudge brush"};function qr(e){return{control:fT[e.bVTy],steps:e.fStp,jitter:dt(e.jitter),minimum:dt(e["Mnm "])}}function Ib(e){switch(e._classID){case"computedBrush":return{type:"computed",size:J0(e.Dmtr,"Pixels"),angle:mi(e.Angl),roundness:dt(e.Rndn),spacingOn:e.Intr,spacing:dt(e.Spcn),flipX:e.flipX,flipY:e.flipY,hardness:dt(e.Hrdn)};case"sampledBrush":return{type:"sampled",size:J0(e.Dmtr,"Pixels"),angle:mi(e.Angl),roundness:dt(e.Rndn),spacingOn:e.Intr,spacing:dt(e.Spcn),flipX:e.flipX,flipY:e.flipY,name:e["Nm "],sampledData:e.sampledData};case"dBrush":return{type:"dynamic",shape:Db[e["Shp "]],angle:mi(e.Angl),size:J0(e.Dmtr,"Pixels"),density:dt(e.Dnst),length:dt(e.Lngt),clumping:dt(e.clumping),thickness:dt(e.thickness),stiffness:dt(e.stiffness),physics:e.physics,spacing:dt(e.Spcn),spacingOn:e.Intr,flipX:e.flipX,flipY:e.flipY};case"dTips":return xu(xu({type:"tips",angle:mi(e.Angl),size:J0(e.Dmtr,"Pixels"),shape:Db[e["Shp "]],physics:e.physics,spacing:dt(e.Spcn),spacingOn:e.Intr,flipX:e.flipX,flipY:e.flipY,tipsType:dT[e.dtipsType],tipsLengthRatio:dt(e.dtipsLengthRatio),tipsHardness:dt(e.dtipsHardness)},e.dtipsGridSize&&e.dtipsErodibleTipHeightMap?{tipsGridSize:e.dtipsGridSize,tipsErodibleTipHeightMap:pT(e.dtipsErodibleTipHeightMap)}:{}),{tipsAirbrushCutoffAngle:e.dtipsAirbrushCutoffAngle,tipsAirbrushGranularity:dt(e.dtipsAirbrushGranularity),tipsAirbrushStreakiness:dt(e.dtipsAirbrushStreakiness),tipsAirbrushSplatSize:dt(e.dtipsAirbrushSplatSize),tipsAirbrushSplatCount:e.dtipsAirbrushSplatCount});default:throw console.log(require("util").inspect(e,!1,99,!0)),new Error("Unknown brush classId: ".concat(e._classID))}}function pT(e){for(var t=[],r=0;r<e.byteLength;r++)t.push(e[r]);return t}function vT(e,t){var r,n,a,i;t===void 0&&(t={});var o=jo(e.buffer,e.byteOffset,e.byteLength),l=At(o),s=[],u=[],c=[];if(l===1||l===2)throw new Error("Unsupported ABR version (".concat(l,")"));if(l===6||l===7||l===9||l===10){var f=At(o);if(f!==1&&f!==2)throw new Error("Unsupported ABR minor version");for(;o.offset<o.view.byteLength;){_a(o,"8BIM");var d=qt(o),h=Fe(o),b=o.offset+h;switch(d){case"samp":{for(;o.offset<b;){for(var p=Fe(o);p&3;)p++;var x=o.offset+p,g=Kn(o,1);et(o,f===1?10:264);var m=it(o),y=it(o),v=it(o)-m,k=it(o)-y;if(k<=0||v<=0)throw new Error("Invalid bounds");var C=At(o),A=Ye(o),_=new Uint8Array(k*v);if(C===8)if(A===0)_.set(hr(o,_.byteLength));else if(A===1)bi(o,{width:k,height:v,data:_},k,v,C,1,[0],!1);else throw new Error("Invalid compression");else if(C===16)if(A===0)for(var E=0;E<_.byteLength;E++)_[E]=We(o)>>8;else throw A===1?new Error("not implemented (16bit RLE)"):new Error("Invalid compression");else throw new Error("Invalid depth");s.push({id:g,bounds:{x:y,y:m,w:k,h:v},alpha:_}),o.offset=x}break}case"desc":{for(var M=Et(o,!0),z=0,R=M.Brsh;z<R.length;z++){var O=R[z],H={name:O["Nm "],shape:Ib(O.Brsh),spacing:dt(O.Spcn),wetEdges:O.Wtdg,noise:O.Nose,useBrushSize:O.useBrushSize};O.interpretation!=null&&(H.interpretation=O.interpretation),O.protectTexture!=null&&(H.protectTexture=O.protectTexture),O.useTipDynamics&&(H.shapeDynamics={tiltScale:dt(O.tiltScale),sizeDynamics:qr(O.szVr),angleDynamics:qr(O.angleDynamics),roundnessDynamics:qr(O.roundnessDynamics),flipX:O.flipX,flipY:O.flipY,brushProjection:O.brushProjection,minimumDiameter:dt(O.minimumDiameter),minimumRoundness:dt(O.minimumRoundness)}),O.useScatter&&(H.scatter={count:O["Cnt "],bothAxes:O.bothAxes,countDynamics:qr(O.countDynamics),scatterDynamics:qr(O.scatterDynamics)}),O.useTexture&&O.Txtr&&(H.texture={id:O.Txtr.Idnt,name:O.Txtr["Nm "],blendMode:an.decode(O.textureBlendMode),depth:dt(O.textureDepth),depthMinimum:dt(O.minimumDepth),depthDynamics:qr(O.textureDepthDynamics),scale:dt(O.textureScale),invert:O.InvT,brightness:O.textureBrightness,contrast:O.textureContrast,textureEachTip:!!O.TxtC});var Z=O.dualBrush;Z&&Z.useDualBrush&&(H.dualBrush={flip:Z.Flip,shape:Ib(Z.Brsh),blendMode:an.decode(Z.BlnM),useScatter:Z.useScatter,spacing:dt(Z.Spcn),count:Z["Cnt "],bothAxes:Z.bothAxes,countDynamics:qr(Z.countDynamics),scatterDynamics:qr(Z.scatterDynamics)}),O.useColorDynamics&&(H.colorDynamics={foregroundBackground:qr(O.clVr),hue:dt(O["H "]),saturation:dt(O.Strt),brightness:dt(O.Brgh),purity:dt(O.purity),perTip:O.colorDynamicsPerTip}),O.usePaintDynamics&&(H.transfer={flowDynamics:qr(O.prVr),opacityDynamics:qr(O.opVr),wetnessDynamics:qr(O.wtVr),mixDynamics:qr(O.mxVr)}),O.useBrushPose&&(H.brushPose={overrideAngle:O.overridePoseAngle,overrideTiltX:O.overridePoseTiltX,overrideTiltY:O.overridePoseTiltY,overridePressure:O.overridePosePressure,pressure:dt(O.brushPosePressure),tiltX:O.brushPoseTiltX,tiltY:O.brushPoseTiltY,angle:O.brushPoseAngle});var q=O.toolOptions;q&&(H.toolOptions={type:hT[q._classID]||"brush",brushPreset:q.brushPreset,flow:(r=q.flow)!==null&&r!==void 0?r:100,smooth:(n=q.Smoo)!==null&&n!==void 0?n:0,mode:an.decode(q["Md "]||"BlnM.Nrml"),opacity:(a=q.Opct)!==null&&a!==void 0?a:100,smoothing:!!q.smoothing,smoothingValue:q.smoothingValue||0,smoothingRadiusMode:!!q.smoothingRadiusMode,smoothingCatchup:!!q.smoothingCatchup,smoothingCatchupAtEnd:!!q.smoothingCatchupAtEnd,smoothingZoomCompensation:!!q.smoothingZoomCompensation,pressureSmoothing:!!q.pressureSmoothing,usePressureOverridesSize:!!q.usePressureOverridesSize,usePressureOverridesOpacity:!!q.usePressureOverridesOpacity,useLegacy:!!q.useLegacy},q.prVr&&(H.toolOptions.flowDynamics=qr(q.prVr)),q.opVr&&(H.toolOptions.opacityDynamics=qr(q.opVr)),q.szVr&&(H.toolOptions.sizeDynamics=qr(q.szVr)),"wetness"in q&&(H.toolOptions.wetness=q.wetness),"dryness"in q&&(H.toolOptions.dryness=q.dryness),"mix"in q&&(H.toolOptions.mix=q.mix),"autoFill"in q&&(H.toolOptions.autoFill=q.autoFill),"autoClean"in q&&(H.toolOptions.autoClean=q.autoClean),"loadSolidColorOnly"in q&&(H.toolOptions.loadSolidColorOnly=q.loadSolidColorOnly),"sampleAllLayers"in q&&(H.toolOptions.sampleAllLayers=q.sampleAllLayers),"SmdF"in q&&(H.toolOptions.smudgeFingerPainting=q.SmdF),"SmdS"in q&&(H.toolOptions.smudgeSampleAllLayers=q.SmdS),"Prs "in q&&(H.toolOptions.strength=q["Prs "]),"SmdF"in q&&(H.toolOptions.smudgeFingerPainting=q.SmdF),"SmdS"in q&&(H.toolOptions.smudgeSampleAllLayers=q.SmdS)),u.push(H)}break}case"patt":{for(;o.offset<b;)c.push(CE(o));o.offset=b;break}case"phry":{var M=Et(o);t.logMissingFeatures&&!((i=M.hierarchy)===null||i===void 0)&&i.length;break}default:throw new Error("Invalid brush type: ".concat(d))}for(;h%4;)o.offset++,h++}}else throw new Error("Unsupported ABR version (".concat(l,")"));return{samples:s,patterns:c,brushes:u}}var Md=function(){return Md=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Md.apply(this,arguments)};function mT(e){var t=jo(e.buffer,e.byteOffset,e.byteLength),r={shapes:[]};if(_a(t,"cush"),Fe(t)!==2)throw new Error("Invalid version");for(var n=Fe(t),a=0;a<n;a++){for(var i=xr(t);t.offset%4;)t.offset++;if(Fe(t)!==1)throw new Error("Invalid shape version");var o=Fe(t),l=t.offset+o,s=Kn(t,1),u=Fe(t),c=Fe(t),f=Fe(t),d=Fe(t),h=d-c,b=f-u,p={paths:[]};sb(t,p,h,b,l-t.offset),r.shapes.push(Md({name:i,id:s,width:h,height:b},p)),t.offset=l}return r}var Dd;(function(e){e[e.Bitmap=0]="Bitmap",e[e.Grayscale=1]="Grayscale",e[e.Indexed=2]="Indexed",e[e.RGB=3]="RGB",e[e.CMYK=4]="CMYK",e[e.Multichannel=7]="Multichannel",e[e.Duotone=8]="Duotone",e[e.Lab=9]="Lab"})(Dd||(Dd={}));var Id;(function(e){e[e.Other=0]="Other",e[e.OpenFolder=1]="OpenFolder",e[e.ClosedFolder=2]="ClosedFolder",e[e.BoundingSectionDivider=3]="BoundingSectionDivider"})(Id||(Id={}));var zd;(function(e){e[e.None=0]="None",e[e.Visibility=1]="Visibility",e[e.Position=2]="Position",e[e.Appearance=4]="Appearance"})(zd||(zd={}));var Fd;(function(e){e[e.Color0=0]="Color0",e[e.Color1=1]="Color1",e[e.Color2=2]="Color2",e[e.Color3=3]="Color3",e[e.Transparency=-1]="Transparency",e[e.UserMask=-2]="UserMask",e[e.RealUserMask=-3]="RealUserMask"})(Fd||(Fd={}));var Od;(function(e){e[e.RawData=0]="RawData",e[e.RleCompressed=1]="RleCompressed",e[e.ZipWithoutPrediction=2]="ZipWithoutPrediction",e[e.ZipWithPrediction=3]="ZipWithPrediction"})(Od||(Od={}));var gT=e2;function bT(e,t){var r="buffer"in e?jo(e.buffer,e.byteOffset,e.byteLength):jo(e);return pE(r,t)}function yT(e,t){var r=yb();return kb(r,e,t),XE(r)}function zb(e,t){var r=yb();return kb(r,e,t),YE(r)}function xT(e,t){if(typeof Buffer>"u")throw new Error("Buffer not supported on this platform");return Buffer.from(zb(e,t))}function _T(e,t){Rg(e,t)}const wT=Object.freeze(Object.defineProperty({__proto__:null,get ChannelID(){return Fd},get ColorMode(){return Dd},get Compression(){return Od},get LayerCompCapturedInfo(){return zd},get SectionDividerType(){return Id},byteArrayToBase64:gT,decodeLayerPixels:_T,initializeCanvas:NA,readAbr:vT,readCsh:mT,readPsd:bT,writePsd:yT,writePsdBuffer:xT,writePsdUint8Array:zb},Symbol.toStringTag,{value:"Module"}));var Fb={exports:{}};/* @license
290
+ Papa Parse
291
+ v5.5.3
292
+ https://github.com/mholt/PapaParse
293
+ License: MIT
294
+ */(function(e,t){((r,n)=>{e.exports=n()})(Wk,function r(){var n=typeof self<"u"?self:typeof window<"u"?window:n!==void 0?n:{},a,i=!n.document&&!!n.postMessage,o=n.IS_PAPA_WORKER||!1,l={},s=0,u={};function c(_){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 M=k(E);M.chunkSize=parseInt(M.chunkSize),E.step||E.chunk||(M.chunkSize=null),this._handle=new p(M),(this._handle.streamer=this)._config=M}).call(this,_),this.parseChunk=function(E,M){var z=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<z){let O=this._config.newline;O||(R=this._config.quoteChar||'"',O=this._handle.guessLineEndings(E,R)),E=[...E.split(O).slice(z)].join(O)}this.isFirstChunk&&A(this._config.beforeFirstChunk)&&(R=this._config.beforeFirstChunk(E))!==void 0&&(E=R),this.isFirstChunk=!1,this._halted=!1;var z=this._partialLine+E,R=(this._partialLine="",this._handle.parse(z,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(E=R.meta.cursor,z=(this._finished||(this._partialLine=z.substring(E-this._baseIndex),this._baseIndex=E),R&&R.data&&(this._rowCount+=R.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),o)n.postMessage({results:R,workerId:u.WORKER_ID,finished:z});else if(A(this._config.chunk)&&!M){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||!z||!A(this._config.complete)||R&&R.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),z||R&&R.meta.paused||this._nextChunk(),R}this._halted=!0},this._sendError=function(E){A(this._config.error)?this._config.error(E):o&&this._config.error&&n.postMessage({workerId:u.WORKER_ID,error:E,finished:!1})}}function f(_){var E;(_=_||{}).chunkSize||(_.chunkSize=u.RemoteChunkSize),c.call(this,_),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(M){this._input=M,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(E=new XMLHttpRequest,this._config.withCredentials&&(E.withCredentials=this._config.withCredentials),i||(E.onload=C(this._chunkLoaded,this),E.onerror=C(this._chunkError,this)),E.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var M,z=this._config.downloadRequestHeaders;for(M in z)E.setRequestHeader(M,z[M])}var R;this._config.chunkSize&&(R=this._start+this._config.chunkSize-1,E.setRequestHeader("Range","bytes="+this._start+"-"+R));try{E.send(this._config.downloadRequestBody)}catch(O){this._chunkError(O.message)}i&&E.status===0&&this._chunkError()}},this._chunkLoaded=function(){E.readyState===4&&(E.status<200||400<=E.status?this._chunkError():(this._start+=this._config.chunkSize||E.responseText.length,this._finished=!this._config.chunkSize||this._start>=(M=>(M=M.getResponseHeader("Content-Range"))!==null?parseInt(M.substring(M.lastIndexOf("/")+1)):-1)(E),this.parseChunk(E.responseText)))},this._chunkError=function(M){M=E.statusText||M,this._sendError(new Error(M))}}function d(_){(_=_||{}).chunkSize||(_.chunkSize=u.LocalChunkSize),c.call(this,_);var E,M,z=typeof FileReader<"u";this.stream=function(R){this._input=R,M=R.slice||R.webkitSlice||R.mozSlice,z?((E=new FileReader).onload=C(this._chunkLoaded,this),E.onerror=C(this._chunkError,this)):E=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var R=this._input,O=(this._config.chunkSize&&(O=Math.min(this._start+this._config.chunkSize,this._input.size),R=M.call(R,this._start,O)),E.readAsText(R,this._config.encoding));z||this._chunkLoaded({target:{result:O}})},this._chunkLoaded=function(R){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(R.target.result)},this._chunkError=function(){this._sendError(E.error)}}function h(_){var E;c.call(this,_=_||{}),this.stream=function(M){return E=M,this._nextChunk()},this._nextChunk=function(){var M,z;if(!this._finished)return M=this._config.chunkSize,E=M?(z=E.substring(0,M),E.substring(M)):(z=E,""),this._finished=!E,this.parseChunk(z)}}function b(_){c.call(this,_=_||{});var E=[],M=!0,z=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(R){this._input=R,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){z&&E.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),E.length?this.parseChunk(E.shift()):M=!0},this._streamData=C(function(R){try{E.push(typeof R=="string"?R:R.toString(this._config.encoding)),M&&(M=!1,this._checkIsFinished(),this.parseChunk(E.shift()))}catch(O){this._streamError(O)}},this),this._streamError=C(function(R){this._streamCleanUp(),this._sendError(R)},this),this._streamEnd=C(function(){this._streamCleanUp(),z=!0,this._streamData("")},this),this._streamCleanUp=C(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function p(_){var E,M,z,R,O=Math.pow(2,53),H=-O,Z=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,q=/^((\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)))$/,X=this,Q=0,te=0,_e=!1,he=!1,we=[],pe={data:[],errors:[],meta:{}};function De(Me){return _.skipEmptyLines==="greedy"?Me.join("").trim()==="":Me.length===1&&Me[0].length===0}function Ee(){if(pe&&z&&(Pe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),z=!1),_.skipEmptyLines&&(pe.data=pe.data.filter(function(ge){return!De(ge)})),Oe()){let ge=function(B,V){A(_.transformHeader)&&(B=_.transformHeader(B,V)),we.push(B)};if(pe)if(Array.isArray(pe.data[0])){for(var Me=0;Oe()&&Me<pe.data.length;Me++)pe.data[Me].forEach(ge);pe.data.splice(0,1)}else pe.data.forEach(ge)}function ce(ge,B){for(var V=_.header?{}:[],oe=0;oe<ge.length;oe++){var de=oe,ee=ge[oe],ee=((ie,ue)=>(ve=>(_.dynamicTypingFunction&&_.dynamicTyping[ve]===void 0&&(_.dynamicTyping[ve]=_.dynamicTypingFunction(ve)),(_.dynamicTyping[ve]||_.dynamicTyping)===!0))(ie)?ue==="true"||ue==="TRUE"||ue!=="false"&&ue!=="FALSE"&&((ve=>{if(Z.test(ve)&&(ve=parseFloat(ve),H<ve&&ve<O))return 1})(ue)?parseFloat(ue):q.test(ue)?new Date(ue):ue===""?null:ue):ue)(de=_.header?oe>=we.length?"__parsed_extra":we[oe]:de,ee=_.transform?_.transform(ee,de):ee);de==="__parsed_extra"?(V[de]=V[de]||[],V[de].push(ee)):V[de]=ee}return _.header&&(oe>we.length?Pe("FieldMismatch","TooManyFields","Too many fields: expected "+we.length+" fields but parsed "+oe,te+B):oe<we.length&&Pe("FieldMismatch","TooFewFields","Too few fields: expected "+we.length+" fields but parsed "+oe,te+B)),V}var ye;pe&&(_.header||_.dynamicTyping||_.transform)&&(ye=1,!pe.data.length||Array.isArray(pe.data[0])?(pe.data=pe.data.map(ce),ye=pe.data.length):pe.data=ce(pe.data,0),_.header&&pe.meta&&(pe.meta.fields=we),te+=ye)}function Oe(){return _.header&&we.length===0}function Pe(Me,ce,ye,ge){Me={type:Me,code:ce,message:ye},ge!==void 0&&(Me.row=ge),pe.errors.push(Me)}A(_.step)&&(R=_.step,_.step=function(Me){pe=Me,Oe()?Ee():(Ee(),pe.data.length!==0&&(Q+=Me.data.length,_.preview&&Q>_.preview?M.abort():(pe.data=pe.data[0],R(pe,X))))}),this.parse=function(Me,ce,ye){var ge=_.quoteChar||'"',ge=(_.newline||(_.newline=this.guessLineEndings(Me,ge)),z=!1,_.delimiter?A(_.delimiter)&&(_.delimiter=_.delimiter(Me),pe.meta.delimiter=_.delimiter):((ge=((B,V,oe,de,ee)=>{var ie,ue,ve,Ce;ee=ee||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var xe=0;xe<ee.length;xe++){for(var je,Ne=ee[xe],Ue=0,Ke=0,at=0,ut=(ve=void 0,new g({comments:de,delimiter:Ne,newline:V,preview:10}).parse(B)),st=0;st<ut.data.length;st++)oe&&De(ut.data[st])?at++:(je=ut.data[st].length,Ke+=je,ve===void 0?ve=je:0<je&&(Ue+=Math.abs(je-ve),ve=je));0<ut.data.length&&(Ke/=ut.data.length-at),(ue===void 0||Ue<=ue)&&(Ce===void 0||Ce<Ke)&&1.99<Ke&&(ue=Ue,ie=Ne,Ce=Ke)}return{successful:!!(_.delimiter=ie),bestDelimiter:ie}})(Me,_.newline,_.skipEmptyLines,_.comments,_.delimitersToGuess)).successful?_.delimiter=ge.bestDelimiter:(z=!0,_.delimiter=u.DefaultDelimiter),pe.meta.delimiter=_.delimiter),k(_));return _.preview&&_.header&&ge.preview++,E=Me,M=new g(ge),pe=M.parse(E,ce,ye),Ee(),_e?{meta:{paused:!0}}:pe||{meta:{paused:!1}}},this.paused=function(){return _e},this.pause=function(){_e=!0,M.abort(),E=A(_.chunk)?"":E.substring(M.getCharIndex())},this.resume=function(){X.streamer._halted?(_e=!1,X.streamer.parseChunk(E,!0)):setTimeout(X.resume,3)},this.aborted=function(){return he},this.abort=function(){he=!0,M.abort(),pe.meta.aborted=!0,A(_.complete)&&_.complete(pe),E=""},this.guessLineEndings=function(B,ge){B=B.substring(0,1048576);var ge=new RegExp(x(ge)+"([^]*?)"+x(ge),"gm"),ye=(B=B.replace(ge,"")).split("\r"),ge=B.split(`
295
+ `),B=1<ge.length&&ge[0].length<ye[0].length;if(ye.length===1||B)return`
296
+ `;for(var V=0,oe=0;oe<ye.length;oe++)ye[oe][0]===`
297
+ `&&V++;return V>=ye.length/2?`\r
298
+ `:"\r"}}function x(_){return _.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function g(_){var E=(_=_||{}).delimiter,M=_.newline,z=_.comments,R=_.step,O=_.preview,H=_.fastMode,Z=null,q=!1,X=_.quoteChar==null?'"':_.quoteChar,Q=X;if(_.escapeChar!==void 0&&(Q=_.escapeChar),(typeof E!="string"||-1<u.BAD_DELIMITERS.indexOf(E))&&(E=","),z===E)throw new Error("Comment character same as delimiter");z===!0?z="#":(typeof z!="string"||-1<u.BAD_DELIMITERS.indexOf(z))&&(z=!1),M!==`
299
+ `&&M!=="\r"&&M!==`\r
300
+ `&&(M=`
301
+ `);var te=0,_e=!1;this.parse=function(he,we,pe){if(typeof he!="string")throw new Error("Input must be a string");var De=he.length,Ee=E.length,Oe=M.length,Pe=z.length,Me=A(R),ce=[],ye=[],ge=[],B=te=0;if(!he)return Ue();if(H||H!==!1&&he.indexOf(X)===-1){for(var V=he.split(M),oe=0;oe<V.length;oe++){if(ge=V[oe],te+=ge.length,oe!==V.length-1)te+=M.length;else if(pe)return Ue();if(!z||ge.substring(0,Pe)!==z){if(Me){if(ce=[],Ce(ge.split(E)),Ke(),_e)return Ue()}else Ce(ge.split(E));if(O&&O<=oe)return ce=ce.slice(0,O),Ue(!0)}}return Ue()}for(var de=he.indexOf(E,te),ee=he.indexOf(M,te),ie=new RegExp(x(Q)+x(X),"g"),ue=he.indexOf(X,te);;)if(he[te]===X)for(ue=te,te++;;){if((ue=he.indexOf(X,ue+1))===-1)return pe||ye.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ce.length,index:te}),je();if(ue===De-1)return je(he.substring(te,ue).replace(ie,X));if(X===Q&&he[ue+1]===Q)ue++;else if(X===Q||ue===0||he[ue-1]!==Q){de!==-1&&de<ue+1&&(de=he.indexOf(E,ue+1));var ve=xe((ee=ee!==-1&&ee<ue+1?he.indexOf(M,ue+1):ee)===-1?de:Math.min(de,ee));if(he.substr(ue+1+ve,Ee)===E){ge.push(he.substring(te,ue).replace(ie,X)),he[te=ue+1+ve+Ee]!==X&&(ue=he.indexOf(X,te)),de=he.indexOf(E,te),ee=he.indexOf(M,te);break}if(ve=xe(ee),he.substring(ue+1+ve,ue+1+ve+Oe)===M){if(ge.push(he.substring(te,ue).replace(ie,X)),Ne(ue+1+ve+Oe),de=he.indexOf(E,te),ue=he.indexOf(X,te),Me&&(Ke(),_e))return Ue();if(O&&ce.length>=O)return Ue(!0);break}ye.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ce.length,index:te}),ue++}}else if(z&&ge.length===0&&he.substring(te,te+Pe)===z){if(ee===-1)return Ue();te=ee+Oe,ee=he.indexOf(M,te),de=he.indexOf(E,te)}else if(de!==-1&&(de<ee||ee===-1))ge.push(he.substring(te,de)),te=de+Ee,de=he.indexOf(E,te);else{if(ee===-1)break;if(ge.push(he.substring(te,ee)),Ne(ee+Oe),Me&&(Ke(),_e))return Ue();if(O&&ce.length>=O)return Ue(!0)}return je();function Ce(at){ce.push(at),B=te}function xe(at){var ut=0;return ut=at!==-1&&(at=he.substring(ue+1,at))&&at.trim()===""?at.length:ut}function je(at){return pe||(at===void 0&&(at=he.substring(te)),ge.push(at),te=De,Ce(ge),Me&&Ke()),Ue()}function Ne(at){te=at,Ce(ge),ge=[],ee=he.indexOf(M,te)}function Ue(at){if(_.header&&!we&&ce.length&&!q){var ut=ce[0],st=Object.create(null),yt=new Set(ut);let Ie=!1;for(let D=0;D<ut.length;D++){let re=ut[D];if(st[re=A(_.transformHeader)?_.transformHeader(re,D):re]){let Ae,Re=st[re];for(;Ae=re+"_"+Re,Re++,yt.has(Ae););yt.add(Ae),ut[D]=Ae,st[re]++,Ie=!0,(Z=Z===null?{}:Z)[Ae]=re}else st[re]=1,ut[D]=re;yt.add(re)}Ie&&console.warn("Duplicate headers found and renamed."),q=!0}return{data:ce,errors:ye,meta:{delimiter:E,linebreak:M,aborted:_e,truncated:!!at,cursor:B+(we||0),renamedHeaders:Z}}}function Ke(){R(Ue()),ce=[],ye=[]}},this.abort=function(){_e=!0},this.getCharIndex=function(){return te}}function m(_){var E=_.data,M=l[E.workerId],z=!1;if(E.error)M.userError(E.error,E.file);else if(E.results&&E.results.data){var R={abort:function(){z=!0,y(E.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(A(M.userStep)){for(var O=0;O<E.results.data.length&&(M.userStep({data:E.results.data[O],errors:E.results.errors,meta:E.results.meta},R),!z);O++);delete E.results}else A(M.userChunk)&&(M.userChunk(E.results,R,E.file),delete E.results)}E.finished&&!z&&y(E.workerId,E.results)}function y(_,E){var M=l[_];A(M.userComplete)&&M.userComplete(E),M.terminate(),delete l[_]}function v(){throw new Error("Not implemented.")}function k(_){if(typeof _!="object"||_===null)return _;var E,M=Array.isArray(_)?[]:{};for(E in _)M[E]=k(_[E]);return M}function C(_,E){return function(){_.apply(E,arguments)}}function A(_){return typeof _=="function"}return u.parse=function(_,E){var M=(E=E||{}).dynamicTyping||!1;if(A(M)&&(E.dynamicTypingFunction=M,M={}),E.dynamicTyping=M,E.transform=!!A(E.transform)&&E.transform,!E.worker||!u.WORKERS_SUPPORTED)return M=null,u.NODE_STREAM_INPUT,typeof _=="string"?(_=(z=>z.charCodeAt(0)!==65279?z:z.slice(1))(_),M=new(E.download?f:h)(E)):_.readable===!0&&A(_.read)&&A(_.on)?M=new b(E):(n.File&&_ instanceof File||_ instanceof Object)&&(M=new d(E)),M.stream(_);(M=(()=>{var z;return!!u.WORKERS_SUPPORTED&&(z=(()=>{var R=n.URL||n.webkitURL||null,O=r.toString();return u.BLOB_URL||(u.BLOB_URL=R.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; ","(",O,")();"],{type:"text/javascript"})))})(),(z=new n.Worker(z)).onmessage=m,z.id=s++,l[z.id]=z)})()).userStep=E.step,M.userChunk=E.chunk,M.userComplete=E.complete,M.userError=E.error,E.step=A(E.step),E.chunk=A(E.chunk),E.complete=A(E.complete),E.error=A(E.error),delete E.worker,M.postMessage({input:_,config:E,workerId:M.id})},u.unparse=function(_,E){var M=!1,z=!0,R=",",O=`\r
302
+ `,H='"',Z=H+H,q=!1,X=null,Q=!1,te=((()=>{if(typeof E=="object"){if(typeof E.delimiter!="string"||u.BAD_DELIMITERS.filter(function(we){return E.delimiter.indexOf(we)!==-1}).length||(R=E.delimiter),typeof E.quotes!="boolean"&&typeof E.quotes!="function"&&!Array.isArray(E.quotes)||(M=E.quotes),typeof E.skipEmptyLines!="boolean"&&typeof E.skipEmptyLines!="string"||(q=E.skipEmptyLines),typeof E.newline=="string"&&(O=E.newline),typeof E.quoteChar=="string"&&(H=E.quoteChar),typeof E.header=="boolean"&&(z=E.header),Array.isArray(E.columns)){if(E.columns.length===0)throw new Error("Option columns is empty");X=E.columns}E.escapeChar!==void 0&&(Z=E.escapeChar+H),E.escapeFormulae instanceof RegExp?Q=E.escapeFormulae:typeof E.escapeFormulae=="boolean"&&E.escapeFormulae&&(Q=/^[=+\-@\t\r].*$/)}})(),new RegExp(x(H),"g"));if(typeof _=="string"&&(_=JSON.parse(_)),Array.isArray(_)){if(!_.length||Array.isArray(_[0]))return _e(null,_,q);if(typeof _[0]=="object")return _e(X||Object.keys(_[0]),_,q)}else if(typeof _=="object")return typeof _.data=="string"&&(_.data=JSON.parse(_.data)),Array.isArray(_.data)&&(_.fields||(_.fields=_.meta&&_.meta.fields||X),_.fields||(_.fields=Array.isArray(_.data[0])?_.fields:typeof _.data[0]=="object"?Object.keys(_.data[0]):[]),Array.isArray(_.data[0])||typeof _.data[0]=="object"||(_.data=[_.data])),_e(_.fields||[],_.data||[],q);throw new Error("Unable to serialize unrecognized input");function _e(we,pe,De){var Ee="",Oe=(typeof we=="string"&&(we=JSON.parse(we)),typeof pe=="string"&&(pe=JSON.parse(pe)),Array.isArray(we)&&0<we.length),Pe=!Array.isArray(pe[0]);if(Oe&&z){for(var Me=0;Me<we.length;Me++)0<Me&&(Ee+=R),Ee+=he(we[Me],Me);0<pe.length&&(Ee+=O)}for(var ce=0;ce<pe.length;ce++){var ye=(Oe?we:pe[ce]).length,ge=!1,B=Oe?Object.keys(pe[ce]).length===0:pe[ce].length===0;if(De&&!Oe&&(ge=De==="greedy"?pe[ce].join("").trim()==="":pe[ce].length===1&&pe[ce][0].length===0),De==="greedy"&&Oe){for(var V=[],oe=0;oe<ye;oe++){var de=Pe?we[oe]:oe;V.push(pe[ce][de])}ge=V.join("").trim()===""}if(!ge){for(var ee=0;ee<ye;ee++){0<ee&&!B&&(Ee+=R);var ie=Oe&&Pe?we[ee]:ee;Ee+=he(pe[ce][ie],ee)}ce<pe.length-1&&(!De||0<ye&&!B)&&(Ee+=O)}}return Ee}function he(we,pe){var De,Ee;return we==null?"":we.constructor===Date?JSON.stringify(we).slice(1,25):(Ee=!1,Q&&typeof we=="string"&&Q.test(we)&&(we="'"+we,Ee=!0),De=we.toString().replace(te,Z),(Ee=Ee||M===!0||typeof M=="function"&&M(we,pe)||Array.isArray(M)&&M[pe]||((Oe,Pe)=>{for(var Me=0;Me<Pe.length;Me++)if(-1<Oe.indexOf(Pe[Me]))return!0;return!1})(De,u.BAD_DELIMITERS)||-1<De.indexOf(R)||De.charAt(0)===" "||De.charAt(De.length-1)===" ")?H+De+H:De)}},u.RECORD_SEP="",u.UNIT_SEP="",u.BYTE_ORDER_MARK="\uFEFF",u.BAD_DELIMITERS=["\r",`
303
+ `,'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!i&&!!n.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=g,u.ParserHandle=p,u.NetworkStreamer=f,u.FileStreamer=d,u.StringStreamer=h,u.ReadableStreamStreamer=b,n.jQuery&&((a=n.jQuery).fn.parse=function(_){var E=_.config||{},M=[];return this.each(function(O){if(!(a(this).prop("tagName").toUpperCase()==="INPUT"&&a(this).attr("type").toLowerCase()==="file"&&n.FileReader)||!this.files||this.files.length===0)return!0;for(var H=0;H<this.files.length;H++)M.push({file:this.files[H],inputElem:this,instanceConfig:a.extend({},E)})}),z(),this;function z(){if(M.length===0)A(_.complete)&&_.complete();else{var O,H,Z,q,X=M[0];if(A(_.before)){var Q=_.before(X.file,X.inputElem);if(typeof Q=="object"){if(Q.action==="abort")return O="AbortError",H=X.file,Z=X.inputElem,q=Q.reason,void(A(_.error)&&_.error({name:O},H,Z,q));if(Q.action==="skip")return void R();typeof Q.config=="object"&&(X.instanceConfig=a.extend(X.instanceConfig,Q.config))}else if(Q==="skip")return void R()}var te=X.instanceConfig.complete;X.instanceConfig.complete=function(_e){A(te)&&te(_e,X.file,X.inputElem),R()},u.parse(X.file,X.instanceConfig)}}function R(){M.splice(0,1),z()}}),o&&(n.onmessage=function(_){_=_.data,u.WORKER_ID===void 0&&_&&(u.WORKER_ID=_.workerId),typeof _.input=="string"?n.postMessage({workerId:u.WORKER_ID,results:u.parse(_.input,_.config),finished:!0}):(n.File&&_.input instanceof File||_.input instanceof Object)&&(_=u.parse(_.input,_.config))&&n.postMessage({workerId:u.WORKER_ID,results:_,finished:!0})}),(f.prototype=Object.create(c.prototype)).constructor=f,(d.prototype=Object.create(c.prototype)).constructor=d,(h.prototype=Object.create(h.prototype)).constructor=h,(b.prototype=Object.create(c.prototype)).constructor=b,u})})(Fb);var Ob=Fb.exports;const kT=Yi({__proto__:null,default:Qv(Ob)},[Ob]);Xi.FilexElement=K_,Object.defineProperty(Xi,Symbol.toStringTag,{value:"Module"})});
304
+ //# sourceMappingURL=filex.umd.cjs.map