relaton-cli 3.0.7 → 3.1.0

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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/relaton-cli.rb +4 -16
  3. metadata +11 -123
  4. data/.gitignore +0 -22
  5. data/.hound.yml +0 -3
  6. data/.rspec +0 -1
  7. data/CLAUDE.md +0 -524
  8. data/Gemfile +0 -42
  9. data/Rakefile +0 -21
  10. data/bin/console +0 -11
  11. data/bin/rspec +0 -29
  12. data/bin/setup +0 -8
  13. data/docs/README.adoc +0 -589
  14. data/exe/relaton +0 -20
  15. data/frontend/dist/404.html +0 -18
  16. data/frontend/dist/app.iife.js +0 -1
  17. data/frontend/dist/style.css +0 -3
  18. data/i18n.yaml +0 -1
  19. data/lib/relaton/bibcollection.rb +0 -146
  20. data/lib/relaton/bibdata.rb +0 -92
  21. data/lib/relaton/cli/base_convertor.rb +0 -134
  22. data/lib/relaton/cli/command.rb +0 -390
  23. data/lib/relaton/cli/data_fetcher.rb +0 -20
  24. data/lib/relaton/cli/frontend_assets.rb +0 -58
  25. data/lib/relaton/cli/full_text_search.rb +0 -98
  26. data/lib/relaton/cli/index_item_normalizer.rb +0 -380
  27. data/lib/relaton/cli/index_site_generator.rb +0 -1008
  28. data/lib/relaton/cli/relaton_file.rb +0 -290
  29. data/lib/relaton/cli/subcommand_collection.rb +0 -263
  30. data/lib/relaton/cli/subcommand_db.rb +0 -81
  31. data/lib/relaton/cli/util.rb +0 -8
  32. data/lib/relaton/cli/version.rb +0 -11
  33. data/lib/relaton/cli/xml_convertor.rb +0 -47
  34. data/lib/relaton/cli/xml_to_html_renderer.rb +0 -117
  35. data/lib/relaton/cli/yaml_convertor.rb +0 -102
  36. data/lib/relaton/cli.rb +0 -113
  37. data/lib/relaton/element_finder.rb +0 -29
  38. data/relaton-cli.gemspec +0 -49
  39. data/templates/_document.liquid +0 -111
  40. data/templates/_index.liquid +0 -61
  41. data/templates/index/page.liquid +0 -20
  42. data/templates/index-style.css +0 -1017
@@ -1 +0,0 @@
1
- !function(){function e(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}var t,n={},s=[],r=()=>{},l=()=>!1,o=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),a=e=>e.startsWith("onUpdate:"),i=Object.assign,c=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,d=(e,t)=>u.call(e,t),f=Array.isArray,p=e=>"[object Map]"===w(e),h=e=>"[object Set]"===w(e),v=e=>"[object Date]"===w(e),m=e=>"function"==typeof e,g=e=>"string"==typeof e,y=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,x=e=>(b(e)||m(e))&&m(e.then)&&m(e.catch),_=Object.prototype.toString,w=e=>_.call(e),k=e=>"[object Object]"===w(e),S=e=>g(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,C=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),M=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},O=/-\w/g,E=M(e=>e.replace(O,e=>e.slice(1).toUpperCase())),T=/\B([A-Z])/g,P=M(e=>e.replace(T,"-$1").toLowerCase()),A=M(e=>e.charAt(0).toUpperCase()+e.slice(1)),D=M(e=>e?`on${A(e)}`:""),j=(e,t)=>!Object.is(e,t),$=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},I=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},R=e=>{const t=parseFloat(e);return isNaN(t)?e:t},F=()=>t||(t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function L(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=g(s)?z(s):L(s);if(r)for(const e in r)t[e]=r[e]}return t}if(g(e)||b(e))return e}var V=/;(?![^(]*\))/g,N=/:([^]+)/,U=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function z(e){const t={};return e.replace(U,e=>e.startsWith("/*")?"":e).split(V).forEach(e=>{if(e){const n=e.split(N);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function B(e){let t="";if(g(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const s=B(e[n]);s&&(t+=s+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var W=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly");function H(e){return!!e||""===e}function q(e,t,n){if(e.length!==t.length)return!1;let s=!0;for(let r=0;s&&r<e.length;r++)s=X(e[r],t[r],n);return s}function K(e,t,n){if(e.size!==t.size)return!1;const s=Array.from(t),r=new Uint8Array(s.length);for(const l of e){let e=-1;for(let t=0;t<s.length;t++)if(!r[t]&&X(l,s[t],n)){e=t;break}if(e<0)return!1;r[e]=1}return!0}function G(e,t,n){let s=p(e),r=p(t);if(s||r)return!(!s||!r)&&K(e,t,n);if(s=h(e),r=h(t),s||r)return!(!s||!r)&&K(e,t,n);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const l in e){const s=e.hasOwnProperty(l),r=t.hasOwnProperty(l);if(s&&!r||!s&&r||!X(e[l],t[l],n))return!1}return String(e)===String(t)}function J(e,t,n,s){n||(n=[new Map,new Map]);const[r,l]=n;if(r.has(e)||l.has(t))return r.get(e)===t&&l.get(t)===e;r.set(e,t),l.set(t,e);const o=s(e,t,n);return r.delete(e),l.delete(t),o}function X(e,t,n){if(e===t)return!0;let s=v(e),r=v(t);return s||r?!(!s||!r)&&e.getTime()===t.getTime():(s=y(e),r=y(t),s||r?e===t:(s=f(e),r=f(t),s||r?!(!s||!r)&&J(e,t,n,q):(s=b(e),r=b(t),s||r?!(!s||!r)&&J(e,t,n,G):String(e)===String(t))))}var Z,Y,Q=e=>!(!e||!0!==e.__v_isRef),ee=e=>g(e)?e:null==e?"":f(e)||b(e)&&(e.toString===_||!m(e.toString))?Q(e)?ee(e.value):JSON.stringify(e,te,2):String(e),te=(e,t)=>Q(t)?te(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],s)=>(e[ne(t,s)+" =>"]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>ne(e))}:y(t)?ne(t):!b(t)||f(t)||k(t)?t:String(t),ne=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},se=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Z&&(Z.active?(this.parent=Z,this.index=(Z.scopes||(Z.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}const n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){const t=Z;try{return Z=this,e()}finally{Z=t}}}on(){1===++this._on&&(this.prevScope=Z,Z=this)}off(){if(this._on>0&&0===--this._on){if(Z===this)Z=this.prevScope;else{let e=Z;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){const e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};var re,le,oe=new WeakSet,ae=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Z&&(Z.active?Z.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,oe.has(this)&&(oe.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||ce(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,we(this),fe(this);const e=Y,t=ye;Y=this,ye=!0;try{return this.fn()}finally{pe(this),Y=e,ye=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)me(e);this.deps=this.depsTail=void 0,we(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?oe.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){he(this)&&this.run()}get dirty(){return he(this)}},ie=0;function ce(e,t=!1){if(e.flags|=8,t)return e.next=le,void(le=e);e.next=re,re=e}function ue(){ie++}function de(){if(--ie>0)return;if(le){let e=le;for(le=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;re;){let n=re;for(re=void 0;n;){const s=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=s}}if(e)throw e}function fe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function pe(e){let t,n=e.depsTail,s=n;for(;s;){const e=s.prevDep;-1===s.version?(s===n&&(n=e),me(s),ge(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=e}e.deps=t,e.depsTail=n}function he(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ve(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ve(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===ke)return;if(e.globalVersion=ke,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!he(e)))return;e.flags|=2;const t=e.dep,n=Y,s=ye;Y=e,ye=!0;try{fe(e);const n=e.fn(e._value);(0===t.version||j(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(r){throw t.version++,r}finally{Y=n,ye=s,pe(e),e.flags&=-3}}function me(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)me(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function ge(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var ye=!0,be=[];function xe(){be.push(ye),ye=!1}function _e(){const e=be.pop();ye=void 0===e||e}function we(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=Y;Y=void 0;try{t()}finally{Y=e}}}var ke=0,Se=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Ce=class{constructor(e){this.computed=e,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(e){if(!Y||!ye||Y===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==Y)t=this.activeLink=new Se(Y,this),Y.deps?(t.prevDep=Y.depsTail,Y.depsTail.nextDep=t,Y.depsTail=t):Y.deps=Y.depsTail=t,Me(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Y.depsTail,t.nextDep=void 0,Y.depsTail.nextDep=t,Y.depsTail=t,Y.deps===t&&(Y.deps=e)}return t}trigger(e){this.version++,ke++,this.notify(e)}notify(e){ue();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{de()}}};function Me(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Me(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Oe=new WeakMap,Ee=Symbol(""),Te=Symbol(""),Pe=Symbol("");function Ae(e,t,n){if(ye&&Y){let t=Oe.get(e);t||Oe.set(e,t=new Map);let s=t.get(n);s||(t.set(n,s=new Ce),s.map=t,s.key=n),s.track()}}function De(e,t,n,s,r,l){const o=Oe.get(e);if(!o)return void ke++;const a=e=>{e&&e.trigger()};if(ue(),"clear"===t)o.forEach(a);else{const r=f(e),l=r&&S(n);if(r&&"length"===n){const e=Number(s);o.forEach((t,n)=>{("length"===n||n===Pe||!y(n)&&n>=e)&&a(t)})}else switch((void 0!==n||o.has(void 0))&&a(o.get(n)),l&&a(o.get(Pe)),t){case"add":r?l&&a(o.get("length")):(a(o.get(Ee)),p(e)&&a(o.get(Te)));break;case"delete":r||(a(o.get(Ee)),p(e)&&a(o.get(Te)));break;case"set":p(e)&&a(o.get(Ee))}}de()}function je(e){const t=yt(e);return t===e?t:(Ae(t,0,Pe),mt(e)?t:vt(e)?ht(e)?t.map(e=>xt(bt(e))):t.map(xt):t.map(bt))}function $e(e){return Ae(e=yt(e),0,Pe),e}function Ie(e,t){return vt(e)?xt(ht(e)?bt(t):t):bt(t)}var Re={__proto__:null,[Symbol.iterator](){return Fe(this,Symbol.iterator,e=>Ie(this,e))},concat(...e){return je(this).concat(...e.map(e=>f(e)?je(e):e))},entries(){return Fe(this,"entries",e=>(e[1]=Ie(this,e[1]),e))},every(e,t){return Ne(this,"every",e,t,void 0,arguments)},filter(e,t){return Ne(this,"filter",e,t,e=>e.map(e=>Ie(this,e)),arguments)},find(e,t){return Ne(this,"find",e,t,e=>Ie(this,e),arguments)},findIndex(e,t){return Ne(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ne(this,"findLast",e,t,e=>Ie(this,e),arguments)},findLastIndex(e,t){return Ne(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ne(this,"forEach",e,t,void 0,arguments)},includes(...e){return ze(this,"includes",e)},indexOf(...e){return ze(this,"indexOf",e)},join(e){return je(this).join(e)},lastIndexOf(...e){return ze(this,"lastIndexOf",e)},map(e,t){return Ne(this,"map",e,t,void 0,arguments)},pop(){return Be(this,"pop")},push(...e){return Be(this,"push",e)},reduce(e,...t){return Ue(this,"reduce",e,t)},reduceRight(e,...t){return Ue(this,"reduceRight",e,t)},shift(){return Be(this,"shift")},some(e,t){return Ne(this,"some",e,t,void 0,arguments)},splice(...e){return Be(this,"splice",e)},toReversed(){return je(this).toReversed()},toSorted(e){return je(this).toSorted(e)},toSpliced(...e){return je(this).toSpliced(...e)},unshift(...e){return Be(this,"unshift",e)},values(){return Fe(this,"values",e=>Ie(this,e))}};function Fe(e,t,n){const s=$e(e),r=s[t],l=r.call(s);if(s!==e&&!mt(e)){if("Array Iterator"===l[Symbol.toStringTag]){const e=Object.create(Object.getPrototypeOf(l));return e.next=()=>Le(l.next(),n),r!==Ve[t]&&Object.defineProperties(e,{return:{get(){const e=l.return;return"function"==typeof e?e.bind(l):e}},throw:{get(){const e=l.throw;return"function"==typeof e?e.bind(l):e}}}),e}l._next=l.next,l.next=()=>Le(l._next(),n)}return l}function Le(e,t){return e.done||(e.value=t(e.value)),e}var Ve=Array.prototype;function Ne(e,t,n,s,r,l){const o=$e(e),a=o!==e&&!mt(e),i=o[t];if(i!==Ve[t]){const t=i.apply(e,l);return a?bt(t):t}let c=n;o!==e&&(a?c=function(t,s){return n.call(this,Ie(e,t),s,e)}:n.length>2&&(c=function(t,s){return n.call(this,t,s,e)}));const u=i.call(o,c,s);return a&&r?r(u):u}function Ue(e,t,n,s){const r=$e(e);let l=n,o=!1;r!==e&&(r!==e&&!mt(e)?(o=0===s.length,l=function(t,s,r){return o&&(o=!1,t=Ie(e,t)),n.call(this,t,Ie(e,s),r,e)}):n.length>3&&(l=function(t,s,r){return n.call(this,t,s,r,e)}));const a=r[t](l,...s);return o?Ie(e,a):a}function ze(e,t,n){const s=yt(e);Ae(s,0,Pe);const r=s[t](...n);return-1!==r&&!1!==r||!gt(n[0])?r:(n[0]=yt(n[0]),s[t](...n))}function Be(e,t,n=[]){xe(),ue();const s=yt(e)[t].apply(e,n);return de(),_e(),s}var We=e("__proto__,__v_isRef,__isVue"),He=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(y));function qe(e){y(e)||(e=String(e));const t=yt(this);return Ae(t,0,e),t.hasOwnProperty(e)}var Ke=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?ut:ct:r?it:at).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const l=f(e);if(!s){let e;if(l&&(e=Re[t]))return e;if("hasOwnProperty"===t)return qe}const o=Reflect.get(e,t,_t(e)?e:n);if(y(t)?He.has(t):We(t))return o;if(s||Ae(e,0,t),r)return o;if(_t(o)){const e=l&&S(t)?o:o.value;return s&&b(e)?ft(e):e}return b(o)?s?ft(o):dt(o):o}},Ge=class extends Ke{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];const l=f(e)&&S(t);if(!this._isShallow){const e=vt(r);if(mt(n)||vt(n)||(r=yt(r),n=yt(n)),!l&&_t(r)&&!_t(n))return e||(r.value=n),!0}const o=l?Number(t)<e.length:d(e,t),a=Reflect.set(e,t,n,_t(e)?e:s);return e===yt(s)&&a&&(o?j(n,r)&&De(e,"set",t,n):De(e,"add",t,n)),a}deleteProperty(e,t){const n=d(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&De(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return y(t)&&He.has(t)||Ae(e,0,t),n}ownKeys(e){return Ae(e,0,f(e)?"length":Ee),Reflect.ownKeys(e)}},Je=class extends Ke{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Xe=new Ge,Ze=new Je,Ye=new Ge(!0),Qe=e=>e,et=e=>Reflect.getPrototypeOf(e);function tt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function nt(e,t){const n={get(n){const s=this.__v_raw,r=yt(s),l=yt(n);e||(j(n,l)&&Ae(r,0,n),Ae(r,0,l));const{has:o}=et(r),a=t?Qe:e?xt:bt;return o.call(r,n)?a(s.get(n)):o.call(r,l)?a(s.get(l)):void(s!==r&&s.get(n))},get size(){const t=this.__v_raw;return!e&&Ae(yt(t),0,Ee),t.size},has(t){const n=this.__v_raw,s=yt(n),r=yt(t);return e||(j(t,r)&&Ae(s,0,t),Ae(s,0,r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,s){const r=this,l=r.__v_raw,o=t?Qe:e?xt:bt;return!e&&Ae(yt(l),0,Ee),l.forEach((e,t)=>n.call(s,o(e),o(t),r))}};return i(n,e?{add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear")}:{add(e){const n=yt(this),s=et(n),r=yt(e),l=t||mt(e)||vt(e)?e:r;return s.has.call(n,l)||j(e,l)&&s.has.call(n,e)||j(r,l)&&s.has.call(n,r)||(n.add(l),De(n,"add",l,l)),this},set(e,n){t||mt(n)||vt(n)||(n=yt(n));const s=yt(this),{has:r,get:l}=et(s);let o=r.call(s,e);o||(e=yt(e),o=r.call(s,e));const a=l.call(s,e);return s.set(e,n),o?j(n,a)&&De(s,"set",e,n):De(s,"add",e,n),this},delete(e){const t=yt(this),{has:n,get:s}=et(t);let r=n.call(t,e);r||(e=yt(e),r=n.call(t,e));s&&s.call(t,e);const l=t.delete(e);return r&&De(t,"delete",e,void 0),l},clear(){const e=yt(this),t=0!==e.size,n=e.clear();return t&&De(e,"clear",void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=function(e,t,n){return function(...s){const r=this.__v_raw,l=yt(r),o=p(l),a="entries"===e||e===Symbol.iterator&&o,c="keys"===e&&o,u=r[e](...s),d=n?Qe:t?xt:bt;return!t&&Ae(l,0,c?Te:Ee),i(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[d(e[0]),d(e[1])]:d(e),done:t}}})}}(s,e,t)}),n}function st(e,t){const n=nt(e,t);return(s,r,l)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_isShallow"===r?t:"__v_raw"===r?s:Reflect.get(d(n,r)&&r in s?n:s,r,l)}var rt={get:st(!1,!1)},lt={get:st(!1,!0)},ot={get:st(!0,!1)},at=new WeakMap,it=new WeakMap,ct=new WeakMap,ut=new WeakMap;function dt(e){return vt(e)?e:pt(e,!1,Xe,rt,at)}function ft(e){return pt(e,!0,Ze,ot,ct)}function pt(e,t,n,s,r){if(!b(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;if(e.__v_skip||!Object.isExtensible(e))return e;const l=r.get(e);if(l)return l;const o=function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(w(e).slice(8,-1));if(0===o)return e;const a=new Proxy(e,2===o?s:n);return r.set(e,a),a}function ht(e){return vt(e)?ht(e.__v_raw):!(!e||!e.__v_isReactive)}function vt(e){return!(!e||!e.__v_isReadonly)}function mt(e){return!(!e||!e.__v_isShallow)}function gt(e){return!!e&&!!e.__v_raw}function yt(e){const t=e&&e.__v_raw;return t?yt(t):e}var bt=e=>b(e)?dt(e):e,xt=e=>b(e)?ft(e):e;function _t(e){return!!e&&!0===e.__v_isRef}function wt(e){return n=!1,_t(t=e)?t:new kt(t,n);var t,n}var kt=class{constructor(e,t){this.dep=new Ce,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:yt(e),this._value=t?e:bt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||mt(e)||vt(e);j(e=n?e:yt(e),t)&&(this._rawValue=e,this._value=n?e:bt(e),this.dep.trigger())}};var St={get:(e,t,n)=>{return"__v_raw"===t?e:_t(s=Reflect.get(e,t,n))?s.value:s;var s},set:(e,t,n,s)=>{const r=e[t];return _t(r)&&!_t(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Ct(e){return ht(e)?e:new Proxy(e,St)}var Mt=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ce(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ke-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&Y!==this)return ce(this,!0),!0}get value(){const e=this.dep.track();return ve(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};var Ot={},Et=new WeakMap,Tt=void 0;function Pt(e,t,s=n){const{immediate:l,deep:o,once:a,scheduler:i,augmentJob:u,call:d}=s,p=e=>o?e:mt(e)||!1===o||0===o?At(e,1):At(e);let h,v,g,y,b=!1,x=!1;if(_t(e)?(v=()=>e.value,b=mt(e)):ht(e)?(v=()=>p(e),b=!0):f(e)?(x=!0,b=e.some(e=>ht(e)||mt(e)),v=()=>e.map(e=>_t(e)?e.value:ht(e)?p(e):m(e)?d?d(e,2):e():void 0)):v=m(e)?t?d?()=>d(e,2):e:()=>{if(g){xe();try{g()}finally{_e()}}const t=Tt;Tt=h;try{return d?d(e,3,[y]):e(y)}finally{Tt=t}}:r,t&&o){const e=v,t=!0===o?1/0:o;v=()=>At(e(),t)}const _=Z,w=()=>{h.stop(),_&&_.active&&c(_.effects,h)};if(a&&t){const e=t;t=(...t)=>{try{return e(...t)}finally{w()}}}let k=x?new Array(e.length).fill(Ot):Ot;const S=e=>{if(1&h.flags&&(h.dirty||e))if(t){const n=h.run();if(e||o||b||(x?n.some((e,t)=>j(e,k[t])):j(n,k))){const e=Tt;xe();try{g&&g(),Tt=h;const e=[n,k===Ot?void 0:x&&k[0]===Ot?[]:k,y];k=n,d?d(t,3,e):t(...e)}finally{Tt=e,_e()}}}else h.run()};return u&&u(S),h=new ae(v),h.scheduler=i?()=>i(S,!1):S,y=e=>function(e,t=!1,n=Tt){if(n){let t=Et.get(n);t||Et.set(n,t=[]),t.push(e)}}(e,!1,h),g=h.onStop=()=>{const e=Et.get(h);if(e){if(d)d(e,4);else for(const t of e)t();Et.delete(h)}},t?l?S(!0):k=h.run():i?i(S.bind(null,!0),!0):h.run(),w.pause=h.pause.bind(h),w.resume=h.resume.bind(h),w.stop=w,w}function At(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,_t(e))At(e.value,t,n);else if(f(e))for(let s=0;s<e.length;s++)At(e[s],t,n);else if(h(e)||p(e))e.forEach(e=>{At(e,t,n)});else if(k(e)){for(const s in e)At(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&At(e[s],t,n)}return e}function Dt(e,t,n,s){try{return s?e(...s):e()}catch(r){$t(r,t,n)}}function jt(e,t,n,s){if(m(e)){const r=Dt(e,t,n,s);return r&&x(r)&&r.catch(e=>{$t(e,t,n)}),r}if(f(e)){const r=[];for(let l=0;l<e.length;l++)r.push(jt(e[l],t,n,s));return r}}function $t(e,t,s,r=!0){t&&t.vnode;const{errorHandler:l,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||n;if(t){let n=t.parent;const r=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${s}`;for(;n;){const t=n.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,o))return;n=n.parent}if(l)return xe(),Dt(l,null,10,[e,r,o]),void _e()}!function(e,t,n,s=!0,r=!1){if(r)throw e}(e,0,0,r,o)}var It=[],Rt=-1,Ft=[],Lt=null,Vt=0,Nt=Promise.resolve(),Ut=null;function zt(e){const t=Ut||Nt;return e?t.then(this?e.bind(this):e):t}function Bt(e){if(!(1&e.flags)){const t=Gt(e),n=It[It.length-1];!n||!(2&e.flags)&&t>=Gt(n)?It.push(e):It.splice(function(e){let t=Rt+1,n=It.length;for(;t<n;){const s=t+n>>>1,r=It[s],l=Gt(r);l<e||l===e&&2&r.flags?t=s+1:n=s}return t}(t),0,e),e.flags|=1,Wt()}}function Wt(){Ut||(Ut=Nt.then(Jt))}function Ht(e,t,n,s=Rt+1){for(;s<It.length;s++){const n=It[s];if(n&&2&n.flags){if(e&&n.id!==e.uid||void 0!==t&&!(n.id>=t))continue;It.splice(s,1),s=e?s-1:Rt,4&n.flags&&(n.flags&=-2),n(),4&n.flags||(n.flags&=-2)}}}function qt(e,t,n=0){if(Ft.length){let e=Ft,s=0;if(t){e=[];for(let r=0;r<Ft.length;r++){const l=Ft[r];(void 0!==l.i?!l.i||l.i.uid<n:t.has(l))?Ft[s++]=l:e.push(l)}}const r=[...new Set(e)].sort((e,t)=>Gt(e)-Gt(t));if(Ft.length=s,Lt){for(let e=0;e<r.length;e++)Lt.push(r[e]);return}for(Lt=r,Vt=0;Vt<Lt.length;Vt++){const e=Lt[Vt];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Lt=null,Vt=0}}var Kt=!1;var Gt=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Jt(e){try{for(Rt=0;Rt<It.length;Rt++){const e=It[Rt];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Dt(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Rt<It.length;Rt++){const e=It[Rt];e&&(e.flags&=-2)}Rt=-1,It.length=0,qt(),Ut=null,(It.length||Ft.length)&&Jt(e)}}var Xt=null,Zt=null;function Yt(e){const t=Xt;return Xt=e,Zt=e&&e.type.__scopeId||null,t}function Qt(e,t){if(null===Xt)return e;const s=Er(Xt),r=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[e,o,a,i=n]=t[l];e&&(m(e)&&(e={mounted:e,updated:e}),e.deep&&At(o),r.push({dir:e,instance:s,value:o,oldValue:void 0,arg:a,modifiers:i}))}return e}function en(e,t,n,s){const r=e.dirs,l=t&&t.dirs;for(let o=0;o<r.length;o++){const a=r[o];l&&(a.oldValue=l[o].value);let i=a.dir[s];i&&(xe(),jt(i,n,8,[e.el,a,e,t]),_e())}}function tn(e,t,n=!1){const s=yr();if(s||os){let r=os?os._context.provides:s?null==s.parent||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&m(t)?t.call(s&&s.proxy):t}}var nn=Symbol.for("v-scx");function sn(e,t,n){return rn(e,t,n)}function rn(e,t,s=n){const{immediate:l,deep:o,flush:a,once:c}=s,u=i({},s),d=t&&l||!t&&"post"!==a;let f;if(Sr)if("sync"===a){const e=tn(nn);f=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){const e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}const p=gr;u.call=(e,t,n)=>jt(e,p,t,n);let h=!1;"post"===a?u.scheduler=e=>{e.i=p,Ds(e,p&&p.suspense)}:"sync"!==a&&(h=!0,u.scheduler=(e,t)=>{t?e():Bt(e)}),u.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const v=Pt(e,t,u);return Sr&&(f?f.push(v):d&&v()),v}function ln(e,t,n){const s=this.proxy,r=g(e)?e.includes(".")?on(s,e):()=>s[e]:e.bind(s,s);let l;m(t)?l=t:(l=t.handler,n=t);const o=br(this),a=rn(r,l.bind(s),n);return o(),a}function on(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var an=Symbol("_vte"),cn=e=>e.__isTeleport,un=Symbol("_leaveCb");function dn(e){if(!_n(e))return cn(e.type)&&e.children?function(e){let t=e[0];if(e.length>1)for(const n of e)if(n.type!==Bs){t=n;break}return t}(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&m(n.default))return n.default()}}function fn(e,t){if(6&e.shapeFlag&&e.component){e.transition=t;const n=e.component.subTree;fn(cn(n.type)&&dn(n)||n,t)}else if(128&e.shapeFlag)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===Us&&f(e.children)){const n=fs(e.children,!1);n&&fn(n,t)}}function pn(e){if(e.component)return pn(e.component.subTree);if(e.type===Us){const t=f(e.children)&&fs(e.children,!1);return t?pn(t):void 0}return e.type!==Bs?e:void 0}function hn(e,t){return m(e)?(()=>i({name:e.name},t,{setup:e}))():e}function vn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mn(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}var gn=new WeakMap;function yn(e,t,s,r,o=!1){if(f(e))return void e.forEach((e,n)=>yn(e,t&&(f(t)?t[n]:t),s,r,o));if(xn(r)&&!o)return void(512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&yn(e,t,s,r.component.subTree));const a=4&r.shapeFlag?Er(r.component):r.el,i=o?null:a,{i:u,r:p}=e,h=t&&t.r,v=u.refs===n?u.refs={}:u.refs,y=u.setupState,b=yt(y),x=y===n?l:e=>!mn(v,e)&&d(b,e),_=(e,t)=>!t||!mn(v,t);if(null!=h&&h!==p)if(bn(t),g(h))v[h]=null,x(h)&&(y[h]=null);else if(_t(h)){const e=t;_(0,e.k)&&(h.value=null),e.k&&(v[e.k]=null)}if(m(p))Dt(p,u,12,[i,v]);else{const t=g(p),n=_t(p);if(t||n){const r=()=>{if(e.f){const n=t?x(p)?y[p]:v[p]:_()||!e.k?p.value:v[e.k];if(o)f(n)&&c(n,a);else if(f(n))n.includes(a)||n.push(a);else if(t)v[p]=[a],x(p)&&(y[p]=v[p]);else{const t=[a];_(0,e.k)&&(p.value=t),e.k&&(v[e.k]=t)}}else t?(v[p]=i,x(p)&&(y[p]=i)):n&&(_(0,e.k)&&(p.value=i),e.k&&(v[e.k]=i))};if(i){const t=()=>{r(),gn.delete(e)};t.id=-1,gn.set(e,t),Ds(t,s)}else bn(e),r()}}}function bn(e){const t=gn.get(e);t&&(t.flags|=8,gn.delete(e))}F().requestIdleCallback,F().cancelIdleCallback;var xn=e=>!!e.type.__asyncLoader,_n=e=>e.type.__isKeepAlive;function wn(e,t){Sn(e,"a",t)}function kn(e,t){Sn(e,"da",t)}function Sn(e,t,n=gr){const s=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Mn(t,s,n),n){let e=n.parent;for(;e&&e.parent;)_n(e.parent.vnode)&&Cn(s,t,n,e),e=e.parent}}function Cn(e,t,n,s){const r=Mn(t,e,s,!0);jn(()=>{c(s[t],r)},n)}function Mn(e,t,n=gr,s=!1){if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...s)=>{xe();const r=br(n),l=jt(t,n,e,s);return r(),_e(),l});return s?r.unshift(l):r.push(l),l}}var On=e=>(t,n=gr)=>{Sr&&"sp"!==e||Mn(e,(...e)=>t(...e),n)},En=On("bm"),Tn=On("m"),Pn=On("bu"),An=On("u"),Dn=On("bum"),jn=On("um"),$n=On("sp"),In=On("rtg"),Rn=On("rtc");function Fn(e,t=gr){Mn("ec",e,t)}var Ln=Symbol.for("v-ndc");function Vn(e,t,n,s){let r;const l=n&&n[s],o=f(e);if(o||g(e)){let n=!1,s=!1;o&&ht(e)&&(n=!mt(e),s=vt(e),e=$e(e)),r=new Array(e.length);for(let o=0,a=e.length;o<a;o++)r[o]=t(n?s?xt(bt(e[o])):bt(e[o]):e[o],o,void 0,l&&l[o])}else if("number"==typeof e)if(!Number.isInteger(e)||e<0)r=[];else{r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,l&&l[n])}else if(b(e))if(e[Symbol.iterator])r=Array.from(e,(e,n)=>t(e,n,void 0,l&&l[n]));else{const n=Object.keys(e);r=new Array(n.length);for(let s=0,o=n.length;s<o;s++){const o=n[s];r[s]=t(e[o],o,s,l&&l[s])}}else r=[];return n&&(n[s]=r),r}var Nn=e=>e?_r(e)?Er(e):Nn(e.parent):null,Un=i(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=>Nn(e.parent),$root:e=>Nn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Jn(e),$forceUpdate:e=>e.f||(e.f=()=>{Bt(e.update)}),$nextTick:e=>e.n||(e.n=zt.bind(e.proxy)),$watch:e=>ln.bind(e)}),zn=(e,t)=>e!==n&&!e.__isScriptSetup&&d(e,t),Bn={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:s,setupState:r,data:l,props:o,accessCache:a,type:i,appContext:c}=e;if("$"!==t[0]){const e=a[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return l[t];case 4:return s[t];case 3:return o[t]}else{if(zn(r,t))return a[t]=1,r[t];if(l!==n&&d(l,t))return a[t]=2,l[t];if(d(o,t))return a[t]=3,o[t];if(s!==n&&d(s,t))return a[t]=4,s[t];Hn&&(a[t]=0)}}const u=Un[t];let f,p;return u?("$attrs"===t&&Ae(e.attrs,0,""),u(e)):(f=i.__cssModules)&&(f=f[t])?f:s!==n&&d(s,t)?(a[t]=4,s[t]):(p=c.config.globalProperties,d(p,t)?p[t]:void 0)},set({_:e},t,s){const{data:r,setupState:l,ctx:o}=e;return zn(l,t)?(l[t]=s,!0):r!==n&&d(r,t)?(r[t]=s,!0):!d(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=s,!0))},has({_:{data:e,setupState:t,accessCache:s,ctx:r,appContext:l,props:o,type:a}},i){let c;return!!(s[i]||e!==n&&"$"!==i[0]&&d(e,i)||zn(t,i)||d(o,i)||d(r,i)||d(Un,i)||d(l.config.globalProperties,i)||(c=a.__cssModules)&&c[i])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:d(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Wn(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var Hn=!0;function qn(e){const t=Jn(e),n=e.proxy,s=e.ctx;Hn=!1,t.beforeCreate&&Kn(t.beforeCreate,e,"bc");const{data:l,computed:o,methods:a,watch:i,provide:c,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:v,updated:g,activated:y,deactivated:x,beforeDestroy:_,beforeUnmount:w,destroyed:k,unmounted:S,render:C,renderTracked:M,renderTriggered:O,errorCaptured:E,serverPrefetch:T,expose:P,inheritAttrs:A,components:D,directives:j,filters:$}=t;if(u&&function(e,t){f(e)&&(e=Qn(e));for(const n in e){const s=e[n];let r;r=b(s)?"default"in s?tn(s.from||n,s.default,!0):tn(s.from||n):tn(s),_t(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,s,null),a)for(const r in a){const e=a[r];m(e)&&(s[r]=e.bind(n))}if(l){const t=l.call(n,n);b(t)&&(e.data=dt(t))}if(Hn=!0,o)for(const f in o){const e=o[f],t=m(e)?e.bind(n,n):m(e.get)?e.get.bind(n,n):r,l=!m(e)&&m(e.set)?e.set.bind(n):r,a=Tr({get:t,set:l});Object.defineProperty(s,f,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(i)for(const r in i)Gn(i[r],s,n,r);if(c){const e=m(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(gr){let n=gr.provides;const s=gr.parent&&gr.parent.provides;s===n&&(n=gr.provides=Object.create(s)),n[e]=t}}(t,e[t])})}function I(e,t){f(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(d&&Kn(d,e,"c"),I(En,p),I(Tn,h),I(Pn,v),I(An,g),I(wn,y),I(kn,x),I(Fn,E),I(Rn,M),I(In,O),I(Dn,w),I(jn,S),I($n,T),f(P))if(P.length){const t=e.exposed||(e.exposed={});P.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===r&&(e.render=C),null!=A&&(e.inheritAttrs=A),D&&(e.components=D),j&&(e.directives=j),T&&vn(e)}function Kn(e,t,n){jt(f(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Gn(e,t,n,s){let r=s.includes(".")?on(n,s):()=>n[s];if(g(e)){const n=t[e];m(n)&&sn(r,n)}else if(m(e))sn(r,e.bind(n));else if(b(e))if(f(e))e.forEach(e=>Gn(e,t,n,s));else{const s=m(e.handler)?e.handler.bind(n):t[e.handler];m(s)&&sn(r,s,e)}}function Jn(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:l,config:{optionMergeStrategies:o}}=e.appContext,a=l.get(t);let i;return a?i=a:r.length||n||s?(i={},r.length&&r.forEach(e=>Xn(i,e,o,!0)),Xn(i,t,o)):i=t,b(t)&&l.set(t,i),i}function Xn(e,t,n,s=!1){const{mixins:r,extends:l}=t;l&&Xn(e,l,n,!0),r&&r.forEach(t=>Xn(e,t,n,!0));for(const o in t)if(s&&"expose"===o);else{const s=Zn[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}var Zn={data:Yn,props:ns,emits:ns,methods:ts,computed:ts,beforeCreate:es,created:es,beforeMount:es,mounted:es,beforeUpdate:es,updated:es,beforeDestroy:es,beforeUnmount:es,destroyed:es,unmounted:es,activated:es,deactivated:es,errorCaptured:es,serverPrefetch:es,components:ts,directives:ts,watch:function(e,t){if(!e)return t;if(!t)return e;const n=i(Object.create(null),e);for(const s in t)n[s]=es(e[s],t[s]);return n},provide:Yn,inject:function(e,t){return ts(Qn(e),Qn(t))}};function Yn(e,t){return t?e?function(){return i(m(e)?e.call(this,this):e,m(t)?t.call(this,this):t)}:t:e}function Qn(e){if(f(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function es(e,t){return e?[...new Set([].concat(e,t))]:t}function ts(e,t){return e?i(Object.create(null),e,t):t}function ns(e,t){return e?f(e)&&f(t)?[...new Set([...e,...t])]:i(Object.create(null),Wn(e),Wn(null!=t?t:{})):t}function ss(){return{app:null,config:{isNativeTag:l,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}}var rs=0;function ls(e,t){return function(n,s=null){m(n)||(n=i({},n)),null==s||b(s)||(s=null);const r=ss(),l=new WeakSet,o=[];let a=!1;const c=r.app={_uid:rs++,_component:n,_props:s,_container:null,_context:r,_instance:null,version:Pr,get config(){return r.config},set config(e){},use:(e,...t)=>(l.has(e)||(e&&m(e.install)?(l.add(e),e.install(c,...t)):m(e)&&(l.add(e),e(c,...t))),c),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),c),component:(e,t)=>t?(r.components[e]=t,c):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,c):r.directives[e],mount(l,o,i){if(!a){const u=c._ceVNode||lr(n,s);return u.appContext=r,!0===i?i="svg":!1===i&&(i=void 0),o&&t?t(u,l):e(u,l,i),a=!0,c._container=l,l.__vue_app__=c,Er(u.component)}},onUnmount(e){o.push(e)},unmount(){a&&(jt(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,c),runWithContext(e){const t=os;os=c;try{return e()}finally{os=t}}};return c}}var os=null;function as(e,t,...s){if(e.isUnmounted)return;const r=e.vnode.props||n;let l=s;const o=t.startsWith("update:"),a=o&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${P(t)}Modifiers`])(r,t.slice(7));let i;a&&(a.trim&&(l=s.map(e=>g(e)?e.trim():e)),a.number&&(l=l.map(R)));let c=r[i=D(t)]||r[i=D(E(t))];!c&&o&&(c=r[i=D(P(t))]),c&&jt(c,e,6,l);const u=r[i+"Once"];if(u){if(e.emitted){if(e.emitted[i])return}else e.emitted={};e.emitted[i]=!0,jt(u,e,6,l)}}var is=new WeakMap;function cs(e,t,n=!1){const s=n?is:t.emitsCache,r=s.get(e);if(void 0!==r)return r;const l=e.emits;let o={},a=!1;if(!m(e)){const s=e=>{const n=cs(e,t,!0);n&&(a=!0,i(o,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return l||a?(f(l)?l.forEach(e=>o[e]=null):i(o,l),b(e)&&s.set(e,o),o):(b(e)&&s.set(e,null),null)}function us(e,t){return!(!e||!o(t))&&(t="Once"===(t=t.slice(2))?t:t.replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,P(t))||d(e,t))}function ds(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[l],slots:o,attrs:i,emit:c,render:u,renderCache:d,props:f,data:p,setupState:h,ctx:v,inheritAttrs:m}=e,g=Yt(e);let y,b;try{if(4&n.shapeFlag){const e=r||s,t=e;y=cr(u.call(t,e,d,f,h,p,v)),b=i}else{const e=t;y=cr(e.length>1?e(f,{attrs:i,slots:o,emit:c}):e(f,null)),b=t.props?i:ps(i)}}catch(_){Hs.length=0,$t(_,e,1),y=lr(Bs)}let x=y;if(b&&!1!==m){const e=Object.keys(b),{shapeFlag:t}=x;e.length&&7&t&&(l&&e.some(a)&&(b=hs(b,l)),x=or(x,b,!1,!0))}return n.dirs&&(x=or(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&fn(cn(x.type)&&dn(x)||x,n.transition),y=x,Yt(g),y}function fs(e,t=!0){let n;for(let s=0;s<e.length;s++){const t=e[s];if(!er(t))return;if(t.type!==Bs||"v-if"===t.children){if(n)return;n=t}}return n}var ps=e=>{let t;for(const n in e)("class"===n||"style"===n||o(n))&&((t||(t={}))[n]=e[n]);return t},hs=(e,t)=>{const n={};for(const s in e)a(s)&&s.slice(9)in t||(n[s]=e[s]);return n};function vs(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const l=s[r];if(!d(e,l)||ms(t,e,l)&&!us(n,l))return!0}return!1}function ms(e,t,n){const s=e[n],r=t[n];return"style"===n&&b(s)&&b(r)?!X(s,r):s!==r}var gs={},ys=()=>Object.create(gs),bs=e=>Object.getPrototypeOf(e)===gs;function xs(e,t,n,s=!1){const r={},l=ys();e.propsDefaults=Object.create(null),_s(e,t,r,l);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:pt(r,!1,Ye,lt,it):e.type.props?e.props=r:e.props=l,e.attrs=l}function _s(e,t,s,r){const[l,o]=e.propsOptions;let a,i=!1;if(t)for(let n in t){if(C(n))continue;const c=t[n];let u;l&&d(l,u=E(n))?o&&o.includes(u)?(a||(a={}))[u]=c:s[u]=c:us(e.emitsOptions,n)||n in r&&c===r[n]||(r[n]=c,i=!0)}if(o){const t=yt(s),r=a||n;for(let n=0;n<o.length;n++){const a=o[n];s[a]=ws(l,t,a,r[a],e,!d(r,a))}}return i}function ws(e,t,n,s,r,l){const o=e[n];if(null!=o){const e=d(o,"default");if(e&&void 0===s){const e=o.default;if(o.type!==Function&&!o.skipFactory&&m(e)){const{propsDefaults:l}=r;if(n in l)s=l[n];else{const o=br(r);s=l[n]=e.call(null,t),o()}}else s=e;r.ce&&r.ce._setProp(n,s)}o[0]&&(l&&!e?s=!1:!o[1]||""!==s&&s!==P(n)||(s=!0))}return s}var ks=new WeakMap;function Ss(e,t,r=!1){const l=r?ks:t.propsCache,o=l.get(e);if(o)return o;const a=e.props,c={},u=[];let p=!1;if(!m(e)){const n=e=>{p=!0;const[n,s]=Ss(e,t,!0);i(c,n),s&&u.push(...s)};!r&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!a&&!p)return b(e)&&l.set(e,s),s;if(f(a))for(let s=0;s<a.length;s++){const e=E(a[s]);Cs(e)&&(c[e]=n)}else if(a)for(const n in a){const e=E(n);if(Cs(e)){const t=a[n],s=c[e]=f(t)||m(t)?{type:t}:i({},t),r=s.type;let l=!1,o=!0;if(f(r))for(let e=0;e<r.length;++e){const t=r[e],n=m(t)&&t.name;if("Boolean"===n){l=!0;break}"String"===n&&(o=!1)}else l=m(r)&&"Boolean"===r.name;s[0]=l,s[1]=o,(l||d(s,"default"))&&u.push(e)}}const h=[c,u];return b(e)&&l.set(e,h),h}function Cs(e){return"$"!==e[0]&&!C(e)}var Ms=e=>"_"===e||"_ctx"===e||"$stable"===e,Os=e=>f(e)?e.map(cr):[cr(e)],Es=(e,t,n)=>{if(t._n)return t;const s=function(e,t=Xt){if(!t)return e;if(e._n)return e;const n=(...s)=>{n._d&&Xs(-1);const r=Yt(t),l=Hs.length;let o;try{o=e(...s)}finally{for(let e=Hs.length;e>l;e--)Gs();Yt(r),n._d&&Xs(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}((...e)=>Os(t(...e)),n);return s._c=!1,s},Ts=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Ms(r))continue;const n=e[r];if(m(n))t[r]=Es(0,n,s);else if(null!=n){const e=Os(n);t[r]=()=>e}}},Ps=(e,t)=>{const n=Os(t);e.slots.default=()=>n},As=(e,t,n)=>{for(const s in t)!n&&Ms(s)||(e[s]=t[s])},Ds=function(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):function(e){if(f(e))for(let t=0;t<e.length;t++)Ft.push(e[t]);else Lt&&-1===e.id?Lt.splice(Vt+1,0,e):1&e.flags||(Ft.push(e),e.flags|=1);Wt()}(e)};function js(e){return function(e,t){F().__VUE__=!0;const{insert:l,remove:o,patchProp:a,createElement:i,createText:c,createComment:u,setText:f,setElementText:p,parentNode:h,nextSibling:v,setScopeId:m=r,insertStaticContent:g}=e,y=(e,t,n,r=null,l=null,o=null,a=void 0,i=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!tr(e,t)&&(r=Q(e),G(e,l,o,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===s&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);const{type:u,ref:d,shapeFlag:f}=t;switch(u){case zs:b(e,t,n,r);break;case Bs:_(e,t,n,r);break;case Ws:null==e&&w(t,n,r,a);break;case Us:L(e,t,n,r,l,o,a,i,c);break;default:1&f?M(e,t,n,r,l,o,a,i,c):6&f?V(e,t,n,r,l,o,a,i,c):(64&f||128&f)&&u.process(e,t,n,r,l,o,a,i,c,te)}null!=d&&l?yn(d,e&&e.ref,o,t||e,!t):null==d&&e&&null!=e.ref&&yn(e.ref,null,o,e,!0)},b=(e,t,n,s)=>{if(null==e)l(t.el=c(t.children),n,s);else{const n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},_=(e,t,n,s)=>{null==e?l(t.el=u(t.children||""),n,s):t.el=e.el},w=(e,t,n,s)=>{[e.el,e.anchor]=g(e.children,t,n,s,e.el,e.anchor)},k=({el:e,anchor:t},n,s)=>{let r;for(;e&&e!==t;)r=v(e),l(e,n,s),e=r;l(t,n,s)},S=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=v(e),o(e),e=n;o(t)},M=(e,t,n,s,r,l,o,a,i)=>{if("svg"===t.type?o="svg":"math"===t.type&&(o="mathml"),null==e)O(t,n,s,r,l,o,a,i);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),D(e,t,r,l,o,a,i)}finally{n&&n._endPatch()}}},O=(e,t,n,s,r,o,c,u)=>{let d,f;const{props:h,shapeFlag:v,transition:m,dirs:g}=e;if(d=e.el=i(e.type,o,h&&h.is,h),8&v?p(d,e.children):16&v&&A(e.children,d,null,s,r,$s(e,o),c,u),g&&en(e,null,s,"created"),T(d,e,e.scopeId,c,s),h){for(const e in h)"value"===e||C(e)||a(d,e,null,h[e],o,s);"value"in h&&a(d,"value",null,h.value,o),(f=h.onVnodeBeforeMount)&&fr(f,s,e)}g&&en(e,null,s,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(r,m);y&&m.beforeEnter(d),l(d,t,n),((f=h&&h.onVnodeMounted)||y||g)&&Ds(()=>{try{f&&fr(f,s,e),y&&m.enter(d),g&&en(e,null,s,"mounted")}finally{}},r)},T=(e,t,n,s,r)=>{if(n&&m(e,n),s)for(let l=0;l<s.length;l++)m(e,s[l]);if(r){let n=r.subTree;if(t===n||Ns(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=r.vnode;T(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},A=(e,t,n,s,r,l,o,a,i=0)=>{for(let c=i;c<e.length;c++){const i=e[c]=a?ur(e[c]):cr(e[c]);y(null,i,t,n,s,r,l,o,a)}},D=(e,t,s,r,l,o,i)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=16&e.patchFlag;const h=e.props||n,v=t.props||n;let m;if(s&&Is(s,!1),(m=v.onVnodeBeforeUpdate)&&fr(m,s,t,e),f&&en(t,e,s,"beforeUpdate"),s&&Is(s,!0),!d||e.dynamicChildren&&e.dynamicChildren.length===d.length||(u=0,i=!1,d=null),(h.innerHTML&&null==v.innerHTML||h.textContent&&null==v.textContent)&&p(c,""),d?j(e.dynamicChildren,d,c,s,r,$s(t,l),o):i||W(e,t,c,null,s,r,$s(t,l),o,!1),u>0){if(16&u)R(c,h,v,s,l);else if(2&u&&h.class!==v.class&&a(c,"class",null,v.class,l),4&u&&a(c,"style",h.style,v.style,l),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t],r=h[n],o=v[n];o===r&&"value"!==n||a(c,n,r,o,l,s)}}1&u&&e.children!==t.children&&p(c,t.children)}else i||null!=d||R(c,h,v,s,l);((m=v.onVnodeUpdated)||f)&&Ds(()=>{m&&fr(m,s,t,e),f&&en(t,e,s,"updated")},r)},j=(e,t,n,s,r,l,o)=>{for(let a=0;a<t.length;a++){const i=e[a],c=t[a],u=i.el||Vs(i),d=u&&(i.type===Us||!tr(i,c)||198&i.shapeFlag)?h(u):n;y(i,c,d,null,s,r,l,o,!0)}},R=(e,t,s,r,l)=>{if(t!==s){if(t!==n)for(const n in t)C(n)||n in s||a(e,n,t[n],null,l,r);for(const n in s){if(C(n))continue;const o=s[n],i=t[n];o!==i&&"value"!==n&&a(e,n,i,o,l,r)}"value"in s&&a(e,"value",t.value,s.value,l)}},L=(e,t,n,s,r,o,a,i,u)=>{const d=t.el=e?e.el:c(""),f=t.anchor=e?e.anchor:c("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:v}=t;v&&(i=i?i.concat(v):v),null==e?(l(d,n,s),l(f,n,s),A(t.children||[],n,f,r,o,a,i,u)):p>0&&64&p&&h&&e.dynamicChildren&&e.dynamicChildren.length===h.length?(j(e.dynamicChildren,h,n,r,o,a,i),(null!=t.key||r&&t===r.subTree)&&Rs(e,t,!0)):W(e,t,n,f,r,o,a,i,u)},V=(e,t,n,s,r,l,o,a,i)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,s,o,i):N(t,n,s,r,l,o,i):U(e,t,i)},N=(e,t,s,r,l,o,a)=>{const i=e.component=function(e,t,s){const r=e.type,l=(t?t.appContext:e.appContext)||pr,o={uid:hr++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new se(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ss(r,l),emitsOptions:cs(r,l),emit:null,emitted:null,propsDefaults:n,inheritAttrs:r.inheritAttrs,ctx:n,data:n,props:n,attrs:n,slots:n,refs:n,setupState:n,setupContext:null,suspense:s,suspenseId:s?s.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};o.ctx={_:o},o.root=t?t.root:o,o.emit=as.bind(null,o),e.ce&&e.ce(o);return o}(e,r,l);if(_n(e)&&(i.ctx.renderer=te),function(e,t=!1,n=!1){t&&mr(t);const{props:s,children:r}=e.vnode,l=_r(e);xs(e,s,l,t),((e,t,n)=>{const s=e.slots=ys();if(32&e.vnode.shapeFlag){const e=t._;e?(As(s,t,n),n&&I(s,"_",e,!0)):Ts(t,s)}else t&&Ps(e,t)})(e,r,n||t);const o=l?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Bn);const{setup:s}=n;if(s){xe();const n=e.setupContext=s.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Or),slots:e.slots,emit:e.emit,expose:t}}(e):null,r=br(e),l=Dt(s,e,0,[e.props,n]),o=x(l);if(_e(),r(),!o&&!e.sp||xn(e)||vn(e),o){if(l.then(xr,xr),t)return l.then(n=>{mr(!0);try{Cr(e,n,t)}finally{mr(!1)}}).catch(t=>{$t(t,e,0)});e.asyncDep=l}else Cr(e,l,t)}else Mr(e,t)}(e,t):void 0;t&&mr(!1)}(i,!1,a),i.asyncDep){if(l&&l.registerDep(i,z,a,o),!e.el){const n=i.subTree=lr(Bs);_(null,n,t,s),e.placeholder=n.el}}else z(i,e,t,s,l,o,a)},U=(e,t,n)=>{const s=t.component=e.component;if(function(e,t,n){const{props:s,children:r,component:l}=e,{props:o,children:a,patchFlag:i}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&i>=0))return!(!r&&!a||a&&a.$stable)||s!==o&&(s?!o||vs(s,o,c):!!o);if(1024&i)return!0;if(16&i)return s?vs(s,o,c):!!o;if(8&i){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(ms(o,s,n)&&!us(c,n))return!0}}return!1}(e,t,n)){if(s.asyncDep&&!s.asyncResolved)return t.el=e.el,t.placeholder=e.placeholder,void B(s,t,n);s.next=t,s.update()}else t.el=e.el,t.placeholder=e.placeholder,s.vnode=t},z=(e,t,n,s,r,l,o)=>{const a=()=>{if(e.isMounted){let{next:t,bu:n,u:s,parent:a,vnode:i}=e;{const n=Fs(e);if(n)return t&&(t.el=i.el,B(e,t,o)),void n.asyncDep.then(()=>{Ds(()=>{e.isUnmounted||c()},r)})}let u,d=t;Is(e,!1),t?(t.el=i.el,B(e,t,o)):t=i,n&&$(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&fr(u,a,t,i),Is(e,!0);const f=ds(e),p=e.subTree;e.subTree=f,y(p,f,h(p.el),Q(p),e,r,l),t.el=f.el,null===d&&function({vnode:e,parent:t,suspense:n},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=s,e=n),n!==e)break;(e=t.vnode).el=s,t=t.parent}n&&n.activeBranch===e&&(n.vnode.el=s)}(e,f.el),s&&Ds(s,r),(u=t.props&&t.props.onVnodeUpdated)&&Ds(()=>fr(u,a,t,i),r)}else{let o;const{el:a,props:i}=t,{bm:c,m:u,parent:d,root:f,type:p}=e,h=xn(t);if(Is(e,!1),c&&$(c),!h&&(o=i&&i.onVnodeBeforeMount)&&fr(o,d,t),Is(e,!0),a&&re){const t=()=>{e.subTree=ds(e),re(a,e.subTree,e,r,null)};h&&p.__asyncHydrate?p.__asyncHydrate(a,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);const o=e.subTree=ds(e);y(null,o,n,s,e,r,l),t.el=o.el}if(u&&Ds(u,r),!h&&(o=i&&i.onVnodeMounted)){const e=t;Ds(()=>fr(o,d,e),r)}(256&t.shapeFlag||d&&xn(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Ds(e.a,r),e.isMounted=!0,t=n=s=null}};e.scope.on();const i=e.effect=new ae(a);e.scope.off();const c=e.update=i.run.bind(i),u=e.job=i.runIfDirty.bind(i);u.i=e,u.id=e.uid,i.scheduler=()=>Bt(u),Is(e,!0),c()},B=(e,t,s)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,s){const{props:r,attrs:l,vnode:{patchFlag:o}}=e,a=yt(r),[i]=e.propsOptions;let c=!1;if(!(s||o>0)||16&o){let s;_s(e,t,r,l)&&(c=!0);for(const l in a)t&&(d(t,l)||(s=P(l))!==l&&d(t,s))||(i?!n||void 0===n[l]&&void 0===n[s]||(r[l]=ws(i,a,l,void 0,e,!0)):delete r[l]);if(l!==a)for(const e in l)t&&d(t,e)||(delete l[e],c=!0)}else if(8&o){const n=e.vnode.dynamicProps;for(let s=0;s<n.length;s++){let o=n[s];if(us(e.emitsOptions,o))continue;const u=t[o];if(i)if(d(l,o))u!==l[o]&&(l[o]=u,c=!0);else{const t=E(o);r[t]=ws(i,a,t,u,e,!1)}else u!==l[o]&&(l[o]=u,c=!0)}}c&&De(e.attrs,"set","")}(e,t.props,r,s),((e,t,s)=>{const{vnode:r,slots:l}=e;let o=!0,a=n;if(32&r.shapeFlag){const e=t._;e?s&&1===e?o=!1:As(l,t,s):(o=!t.$stable,Ts(t,l)),a=t}else t&&(Ps(e,t),a={default:1});if(o)for(const n in l)Ms(n)||null!=a[n]||delete l[n]})(e,t.children,s),xe(),Ht(e),_e()},W=(e,t,n,s,r,l,o,a,i=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void q(c,d,n,s,r,l,o,a,i);if(256&f)return void H(c,d,n,s,r,l,o,a,i)}8&h?(16&u&&Y(c,r,l),d!==c&&p(n,d)):16&u?16&h?q(c,d,n,s,r,l,o,a,i):Y(c,r,l,!0):(8&u&&p(n,""),16&h&&A(d,n,s,r,l,o,a,i))},H=(e,t,n,r,l,o,a,i,c)=>{t=t||s;const u=(e=e||s).length,d=t.length,f=Math.min(u,d);let p=0;for(;p<f;p++){const s=t[p]=c?ur(t[p]):cr(t[p]);y(e[p],s,n,null,l,o,a,i,c)}u>d?Y(e,l,o,!0,!1,f):A(t,n,r,l,o,a,i,c,f)},q=(e,t,n,r,l,o,a,i,c)=>{let u=0;const d=t.length;let f=e.length-1,p=d-1;for(;u<=f&&u<=p;){const s=e[u],r=t[u]=c?ur(t[u]):cr(t[u]);if(!tr(s,r))break;y(s,r,n,null,l,o,a,i,c),u++}for(;u<=f&&u<=p;){const s=e[f],r=t[p]=c?ur(t[p]):cr(t[p]);if(!tr(s,r))break;y(s,r,n,null,l,o,a,i,c),f--,p--}if(u>f){if(u<=p){const e=p+1,s=e<d?t[e].el:r;for(;u<=p;)y(null,t[u]=c?ur(t[u]):cr(t[u]),n,s,l,o,a,i,c),u++}}else if(u>p)for(;u<=f;)G(e[u],l,o,!0),u++;else{const h=u,v=u,m=new Map;for(u=v;u<=p;u++){const e=t[u]=c?ur(t[u]):cr(t[u]);null!=e.key&&m.set(e.key,u)}let g,b=0;const x=p-v+1;let _=!1,w=0;const k=new Array(x);for(u=0;u<x;u++)k[u]=0;for(u=h;u<=f;u++){const s=e[u];if(b>=x){G(s,l,o,!0);continue}let r;if(null!=s.key)r=m.get(s.key);else for(g=v;g<=p;g++)if(0===k[g-v]&&tr(s,t[g])){r=g;break}void 0===r?G(s,l,o,!0):(k[r-v]=u+1,r>=w?w=r:_=!0,y(s,t[r],n,null,l,o,a,i,c),b++)}const S=_?function(e){const t=e.slice(),n=[0];let s,r,l,o,a;const i=e.length;for(s=0;s<i;s++){const i=e[s];if(0!==i){if(r=n[n.length-1],e[r]<i){t[s]=r,n.push(s);continue}for(l=0,o=n.length-1;l<o;)a=l+o>>1,e[n[a]]<i?l=a+1:o=a;i<e[n[l]]&&(l>0&&(t[s]=n[l-1]),n[l]=s)}}l=n.length,o=n[l-1];for(;l-- >0;)n[l]=o,o=t[o];return n}(k):s;for(g=S.length-1,u=x-1;u>=0;u--){const e=v+u,s=t[e],f=t[e+1],p=e+1<d?f.el||Vs(f):r;0===k[u]?y(null,s,n,p,l,o,a,i,c):_&&(g<0||u!==S[g]?K(s,n,p,2):g--)}}},K=(e,t,n,s,r=null)=>{const{el:a,type:i,transition:c,children:u,shapeFlag:d}=e;if(6&d)K(e.component.subTree,t,n,s);else if(128&d)e.suspense.move(t,n,s);else if(64&d)i.move(e,t,n,te);else if(i!==Us)if(i!==Ws)if(2!==s&&1&d&&c)if(0===s)c.persisted&&!a[un]?l(a,t,n):(c.beforeEnter(a),l(a,t,n),Ds(()=>c.enter(a),r));else{const{leave:s,delayLeave:r,afterLeave:i}=c,u=()=>{e.ctx.isUnmounted?o(a):l(a,t,n)},d=()=>{const e=a._isLeaving||!!a[un];a._isLeaving&&a[un](!0),c.persisted&&!e?u():s(a,()=>{u(),i&&i()})};r?r(a,u,d):d()}else l(a,t,n);else k(e,t,n);else{l(a,t,n);for(let e=0;e<u.length;e++)K(u[e],t,n,s);l(e.anchor,t,n)}},G=(e,t,n,s=!1,r=!1)=>{const{type:l,props:o,ref:a,children:i,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:h}=e;if((-2===d||c&&c.hasOnce)&&(r=!1),null!=a&&(xe(),yn(a,null,n,e,!0),_e()),null==p||e.ctx&&e.ctx!==t||(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const v=1&u&&f,m=!xn(e);let g;if(m&&(g=o&&o.onVnodeBeforeUnmount)&&fr(g,t,e),6&u)Z(e.component,n,s);else{if(128&u)return void e.suspense.unmount(n,s);v&&en(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,te,s):c&&!c.hasOnce&&(l!==Us||d>0&&64&d)?Y(c,t,n,!1,!0):(l===Us&&384&d||!r&&16&u)&&Y(i,t,n),s&&J(e)}const y=null!=h&&null==p;(m&&(g=o&&o.onVnodeUnmounted)||v||y)&&Ds(()=>{g&&fr(g,t,e),v&&en(e,null,t,"unmounted"),y&&(e.el=null)},n)},J=e=>{const{type:t,el:n,anchor:s,transition:r}=e,l=t===Us;if(l&&!r)return void X(n,s);if(t===Ws)return S(e),void(r&&!r.persisted&&r.afterLeave&&r.afterLeave());const a=l?pn(e):e,i=()=>{l?h(n)&&X(n,s):o(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(a&&1&a.shapeFlag&&r&&!r.persisted){const{leave:e,delayLeave:t}=r,n=a.el,s=()=>e(n,i);t?t(n,i,s):s()}else i()},X=(e,t)=>{let n;for(;e!==t;)n=v(e),o(e),e=n;o(t)},Z=(e,t,n)=>{const{bum:s,scope:r,job:l,subTree:o,um:a,m:i,a:c}=e;Ls(i),Ls(c),s&&$(s),r.stop(),l?(l.flags|=8,G(o,e,t,n)):e.vnode.el&&o&&(o.transition=e.vnode.transition,G(o,e,t,n)),a&&Ds(a,t),Ds(()=>{e.isUnmounted=!0},t)},Y=(e,t,n,s=!1,r=!1,l=0)=>{for(let o=l;o<e.length;o++)G(e[o],t,n,s,r)},Q=e=>{if(6&e.shapeFlag)return Q(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=v(e.anchor||e.el),n=t&&t[an];return n?v(n):t},ee=(e,t,n)=>{!function(e,t){if(Kt)return void e();const n=void 0===t?void 0:new Set(Ft);e(),Kt=!0;try{Ht(void 0,t),qt(0,n,t)}finally{Kt=!1}}(()=>{null==e?t._vnode&&G(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),t._vnode=e},e&&t._vnode?void 0:e&&e.component?e.component.uid:hr)},te={p:y,um:G,m:K,r:J,mt:N,mc:A,pc:W,pbc:j,n:Q,o:e};let ne,re;t&&([ne,re]=t(te));return{render:ee,hydrate:ne,createApp:ls(ee,ne)}}(e)}function $s({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Is({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Rs(e,t,n=!1){const s=e.children,r=t.children;if(f(s)&&f(r))for(let l=0;l<s.length;l++){const e=s[l];let t=r[l];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=r[l]=ur(r[l]),t.el=e.el),n||-2===t.patchFlag||Rs(e,t)),t.type===zs&&(-1===t.patchFlag&&(t=r[l]=ur(t)),t.el=e.el),t.type!==Bs||t.el||(t.el=e.el)}}function Fs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fs(t)}function Ls(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Vs(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Vs(t.subTree):null}var Ns=e=>e.__isSuspense;var Us=Symbol.for("v-fgt"),zs=Symbol.for("v-txt"),Bs=Symbol.for("v-cmt"),Ws=Symbol.for("v-stc"),Hs=[],qs=null;function Ks(e=!1){Hs.push(qs=e?null:[])}function Gs(){Hs.pop(),qs=Hs[Hs.length-1]||null}var Js=1;function Xs(e,t=!1){Js+=e,e<0&&qs&&t&&(qs.hasOnce=!0)}function Zs(e){return e.dynamicChildren=Js>0?qs||s:null,Gs(),Js>0&&qs&&qs.push(e),e}function Ys(e,t,n,s,r,l){return Zs(rr(e,t,n,s,r,l,!0))}function Qs(e,t,n,s,r){return Zs(lr(e,t,n,s,r,!0))}function er(e){return!!e&&!0===e.__v_isVNode}function tr(e,t){return e.type===t.type&&e.key===t.key}var nr=({key:e})=>null!=e?e:null,sr=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?g(e)||_t(e)||m(e)?{i:Xt,r:e,k:t,f:!!n}:e:null);function rr(e,t=null,n=null,s=0,r=null,l=(e===Us?0:1),o=!1,a=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nr(t),ref:t&&sr(t),scopeId:Zt,slotScopeIds:null,children:n,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:l,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Xt};return a?(dr(i,n),128&l&&e.normalize(i)):n&&(i.shapeFlag|=g(n)?8:16),Js>0&&!o&&qs&&(i.patchFlag>0||6&l)&&32!==i.patchFlag&&qs.push(i),i}var lr=function(e,t=null,n=null,s=0,r=null,l=!1){e&&e!==Ln||(e=Bs);if(er(e)){const s=or(e,t,!0);return n&&dr(s,n),Js>0&&!l&&qs&&(6&s.shapeFlag?qs[qs.indexOf(e)]=s:qs.push(s)),s.patchFlag=-2,s}o=e,m(o)&&"__vccOpts"in o&&(e=e.__vccOpts);var o;if(t){t=function(e){return e?gt(e)||bs(e)?i({},e):e:null}(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=B(e)),b(n)&&(gt(n)&&!f(n)&&(n=i({},n)),t.style=L(n))}const a=g(e)?1:Ns(e)?128:cn(e)?64:b(e)?4:m(e)?2:0;return rr(e,t,n,s,r,a,l,!0)};function or(e,t,n=!1,s=!1){const{props:r,ref:l,patchFlag:i,children:c,transition:u}=e,d=t?function(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const e in s)if("class"===e)t.class!==s.class&&(t.class=B([t.class,s.class]));else if("style"===e)t.style=L([t.style,s.style]);else if(o(e)){const n=t[e],r=s[e];!r||n===r||f(n)&&n.includes(r)?null!=r||null!=n||a(e)||(t[e]=r):t[e]=n?[].concat(n,r):r}else""!==e&&(t[e]=s[e])}return t}(r||{},t):r,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&nr(d),ref:t&&t.ref?n&&l?f(l)?l.concat(sr(t)):[l,sr(t)]:sr(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Us?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&or(e.ssContent),ssFallback:e.ssFallback&&or(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return u&&s&&fn(p,u.clone(p)),p}function ar(e=" ",t=0){return lr(zs,null,e,t)}function ir(e="",t=!1){return t?(Ks(),Qs(Bs,null,e)):lr(Bs,null,e)}function cr(e){return null==e||"boolean"==typeof e?lr(Bs):f(e)?lr(Us,null,e.slice()):er(e)?ur(e):lr(zs,null,String(e))}function ur(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:or(e)}function dr(e,t){let n=0;const{shapeFlag:s}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&s){const n=t.default;return void(n&&(n._c&&(n._d=!1),dr(e,n()),n._c&&(n._d=!0)))}{n=32;const s=t._;s||bs(t)?3===s&&Xt&&(1===Xt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Xt}}else if(m(t)){if(65&s)return void dr(e,{default:t});t={default:t,_ctx:Xt},n=32}else t=String(t),64&s?(n=16,t=[ar(t)]):n=8;e.children=t,e.shapeFlag|=n}function fr(e,t,n,s=null){jt(e,t,7,[n,s])}var pr=ss(),hr=0;var vr,mr,gr=null,yr=()=>gr||Xt;{const e=F(),t=(t,n)=>{let s;return(s=e[t])||(s=e[t]=[]),s.push(n),e=>{s.length>1?s.forEach(t=>t(e)):s[0](e)}};vr=t("__VUE_INSTANCE_SETTERS__",e=>gr=e),mr=t("__VUE_SSR_SETTERS__",e=>Sr=e)}var br=e=>{const t=gr;return vr(e),e.scope.on(),()=>{e.scope.off(),vr(t)}},xr=()=>{gr&&gr.scope.off(),vr(null)};function _r(e){return 4&e.vnode.shapeFlag}var wr,kr,Sr=!1;function Cr(e,t,n){m(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=Ct(t)),Mr(e,n)}function Mr(e,t,n){const s=e.type;if(!e.render){if(!t&&wr&&!s.render){const t=s.template||Jn(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:l,compilerOptions:o}=s,a=i(i({isCustomElement:n,delimiters:l},r),o);s.render=wr(t,a)}}e.render=s.render||r,kr&&kr(e)}{const t=br(e);xe();try{qn(e)}finally{_e(),t()}}}var Or={get:(e,t)=>(Ae(e,0,""),e[t])};function Er(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ct((t=e.exposed,!d(t,"__v_skip")&&Object.isExtensible(t)&&I(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in Un?Un[n](e):void 0,has:(e,t)=>t in e||t in Un})):e.proxy;var t}var Tr=(e,t)=>function(e,t,n=!1){let s,r;return m(e)?s=e:(s=e.get,r=e.set),new Mt(s,r,n)}(e,0,Sr),Pr="3.5.44",Ar=void 0,Dr="undefined"!=typeof window&&window.trustedTypes;if(Dr)try{Ar=Dr.createPolicy("vue",{createHTML:e=>e})}catch(ya){}var jr=Ar?e=>Ar.createHTML(e):e=>e,$r="undefined"!=typeof document?document:null,Ir=$r&&$r.createElement("template"),Rr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r="svg"===t?$r.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?$r.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?$r.createElement(e,{is:n}):$r.createElement(e);return"select"===e&&s&&null!=s.multiple&&r.setAttribute("multiple",s.multiple),r},createText:e=>$r.createTextNode(e),createComment:e=>$r.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$r.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,l){const o=n?n.previousSibling:t.lastChild;if(r&&(r===l||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==l&&(r=r.nextSibling););else{Ir.innerHTML=jr("svg"===s?`<svg>${e}</svg>`:"mathml"===s?`<math>${e}</math>`:e);const r=Ir.content;if("svg"===s||"mathml"===s){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Fr=Symbol("_vtc");var Lr=Symbol("_vod"),Vr=Symbol("_vsh"),Nr=Symbol(""),Ur=/(?:^|;)\s*display\s*:/;var zr=/\s*!important$/;function Br(e,t,n){if(f(n))n.forEach(n=>Br(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))zr.test(n)?e.setProperty(t,n.replace(zr,""),"important"):e.setProperty(t,n);else{const s=function(e,t){const n=Hr[t];if(n)return n;let s=E(t);if("filter"!==s&&s in e)return Hr[t]=s;s=A(s);for(let r=0;r<Wr.length;r++){const n=Wr[r]+s;if(n in e)return Hr[t]=n}return t}(e,t);zr.test(n)?e.setProperty(P(s),n.replace(zr,""),"important"):e[s]=n}}var Wr=["Webkit","Moz","ms"],Hr={};function qr(e,t,n,s){return"TEXTAREA"===e.tagName&&("width"===t||"height"===t)&&g(s)&&n===s}var Kr="http://www.w3.org/1999/xlink";function Gr(e,t,n,s,r,l=W(t)){s&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Kr,t.slice(6,t.length)):e.setAttributeNS(Kr,t,n):null==n||l&&!H(n)?e.removeAttribute(t):e.setAttribute(t,l?"":y(n)?String(n):n)}function Jr(e,t,n,s,r){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?jr(n):n));const l=e.tagName;if("value"===t&&"PROGRESS"!==l&&!l.includes("-")){const s="OPTION"===l?e.getAttribute("value")||"":e.value,r=null==n?"checkbox"===e.type?"on":"":String(n);return s===r&&"_value"in e||(e.value=r),null==n&&e.removeAttribute(t),void(e._value=n)}let o=!1;if(""===n||null==n){const s=typeof e[t];"boolean"===s?n=H(n):null==n&&"string"===s?(n="",o=!0):"number"===s&&(n=0,o=!0)}try{e[t]=n}catch(ya){}o&&e.removeAttribute(r||t)}function Xr(e,t,n,s){e.addEventListener(t,n,s)}var Zr=Symbol("_vei");function Yr(e,t,n,s,r=null){const l=e[Zr]||(e[Zr]={}),o=l[t];if(s&&o)o.value=s;else{const[n,a]=function(e){let t,n;for(;(n=e.match(Qr))&&!el.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[":"===e[2]?e.slice(3):P(e.slice(2)),t]}(t);s?Xr(e,n,l[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const s=n.value;if(f(s)){const n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};const r=s.slice(),l=[e];for(let s=0;s<r.length&&!e._stopped;s++){const e=r[s];e&&jt(e,t,5,l)}}else jt(s,t,5,[e])};return n.value=e,n.attached=sl(),n}(s,r),a):o&&(!function(e,t,n,s){e.removeEventListener(t,n,s)}(e,n,o,a),l[t]=void 0)}}var Qr=/(Once|Passive|Capture)$/,el=/^on:?(?:Once|Passive|Capture)$/;var tl=0,nl=Promise.resolve(),sl=()=>tl||(nl.then(()=>tl=0),tl=Date.now());var rl=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;var ll=e=>{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>$(t,e):t};function ol(e){e.target.composing=!0}function al(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var il=Symbol("_assign"),cl=Symbol("_initialValue");function ul(e,t,n){return t&&(e=e.trim()),n&&(e=R(e)),e}var dl,fl={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e.parentNode&&("text"===e.type?e[cl]=e.defaultValue.replace(/[\r\n]/g,""):"textarea"===e.type&&(e[cl]=e.defaultValue.replace(/\r\n?/g,"\n"))),e[il]=ll(r);const l=s||r.props&&"number"===r.props.type;Xr(e,t?"change":"input",t=>{t.target.composing||e[il](ul(e.value,n,l))}),(n||l)&&Xr(e,"change",()=>{e.value=ul(e.value,n,l)}),t||(Xr(e,"compositionstart",ol),Xr(e,"compositionend",al),Xr(e,"change",al))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=null==t?"":t,l=e[cl];delete e[cl],void 0===l||"text"!==e.type&&"textarea"!==e.type||e.value===l?e.value=r:e[il](ul(e.value,n,s))},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:l}},o){if(e[il]=ll(o),e.composing)return;const a=null==t?"":t;if((!l&&"number"!==e.type||/^0\d/.test(e.value)?e.value:R(e.value))===a)return;const i=e.getRootNode();if((i instanceof Document||i instanceof ShadowRoot)&&i.activeElement===e&&"range"!==e.type){if(s&&t===n)return;if(r&&e.value.trim()===a)return}e.value=a}},pl=["ctrl","shift","alt","meta"],hl={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>pl.some(n=>e[`${n}Key`]&&!t.includes(n))},vl=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(n,...s)=>{for(let e=0;e<t.length;e++){const s=hl[t[e]];if(s&&s(n,t))return}return e(n,...s)})},ml=i({patchProp:(e,t,n,s,r,l)=>{const i="svg"===r;"class"===t?function(e,t,n){const s=e[Fr];s&&(t=(t?[t,...s]:[...s]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,s,i):"style"===t?function(e,t,n){const s=e.style,r=g(n);let l=!1;if(n&&!r){if(t)if(g(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Br(s,t,"")}else for(const e in t)null==n[e]&&Br(s,e,"");for(const r in n){"display"===r&&(l=!0);const o=n[r];null!=o?qr(e,r,!g(t)&&t?t[r]:void 0,o)||Br(s,r,o):Br(s,r,"")}}else if(r){if(t!==n){const e=s[Nr];e&&(n+=";"+e),s.cssText=n,l=Ur.test(n)}}else t&&e.removeAttribute("style");Lr in e&&(r&&t===n||(e[Lr]=l?s.display:""),e[Vr]&&(s.display="none"))}(e,n,s):o(t)?a(t)||Yr(e,t,0,s,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,s){if(s)return"innerHTML"===t||"textContent"===t||!!(t in e&&rl(t)&&m(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!rl(t)||!g(n))&&t in e}(e,t,s,i))?(Jr(e,t,s),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Gr(e,t,s,i,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const s=E(t);return Array.isArray(n)?n.some(e=>E(e)===s):Object.keys(n).some(e=>E(e)===s)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(s)))?Jr(e,E(t),s,0,t):("true-value"===t?e._trueValue=s:"false-value"===t&&(e._falseValue=s),Gr(e,t,s,i))}},Rr);var gl=(...e)=>{const t=(dl||(dl=js(ml))).createApp(...e),{mount:n}=t;return t.mount=e=>{const s=function(e){return g(e)?document.querySelector(e):e}(e);if(!s)return;const r=t._component;m(r)||r.render||r.template||(r.template=s.innerHTML),1===s.nodeType&&(s.textContent="");const l=n(s,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t};function yl(e,t){const n=new Set;for(const s of e){const e=s[t];e&&n.add(e)}return Array.from(n).sort((e,t)=>e.localeCompare(t))}var bl=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function xl(e,t){return e.filter(e=>!!function(e,t){const n=t.trim().toLowerCase();if(!n)return!0;const s=function(e){return`${e.id} ${e.title} ${e.doctype??""}`.toLowerCase()}(e);return n.split(/\s+/).every(e=>s.includes(e))}(e,t.query)&&(!!(!t.doctypes.size||e.doctype&&t.doctypes.has(e.doctype))&&!!(!t.stages.size||e.stage&&t.stages.has(e.stage)))).sort((e,n)=>function(e,t,n,s){let r=0;switch(n){case"date":{const n=e.date,s=t.date;if(!n&&!s)return 0;if(!n)return 1;if(!s)return-1;r=n.localeCompare(s);break}case"title":r=bl.compare(e.title,t.title);break;default:r=bl.compare(e.id,t.id)}return"asc"===s?r:-r}(e,n,t.sortKey,t.sortDir))}var _l="page";function wl(e=("undefined"!=typeof window?window.location.search:"")){const t=new URLSearchParams(e).get(_l);if(null===t)return 1;const n=Number(t);return Number.isInteger(n)&&n>=1?n:1}function kl(e,t="replace"){if("undefined"==typeof window||!window.history)return;const n=new URL(window.location.href);e<=1?n.searchParams.delete(_l):n.searchParams.set(_l,String(e));const s=`${n.pathname}${n.search}${n.hash}`;"push"===t?window.history.pushState(window.history.state,"",s):window.history.replaceState(window.history.state,"",s)}function Sl(e){return`${Cl()}/doc/${encodeURIComponent(e)}`}function Cl(){const e=window.location.pathname,t=e.lastIndexOf("/doc/"),n=t>=0?e.slice(0,t):e.replace(/\/index\.html$/,"");return"/"===n?"":n.replace(/\/+$/,"")}function Ml(e=("undefined"!=typeof window?window.location.search:"")){if(e===("undefined"!=typeof window?window.location.search:"")){const e=window.location.pathname.match(/\/doc\/([^/?#]+)$/);if(e){const t=decodeURIComponent(e[1]);if(""!==t.trim())return t}}const t=new URLSearchParams(e).get("doc");return t&&""!==t.trim()?t:null}function Ol(e,t="replace"){if("undefined"==typeof window||!window.history)return;const n=new URL(window.location.href);if(e){const s=`${Cl()}/doc/${encodeURIComponent(e)}${n.search&&n.searchParams.has(_l)?`?${n.searchParams}`:""}${n.hash}`;return void("push"===t?window.history.pushState(window.history.state,"",s):window.history.replaceState(window.history.state,"",s))}n.searchParams.delete("doc");const s=`${Cl()}/${n.search}${n.hash}`;"push"===t?window.history.pushState(window.history.state,"",s):window.history.replaceState(window.history.state,"",s)}var El={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24","aria-hidden":"true"},Tl=["d"],Pl=hn({__name:"Icon",props:{name:{}},setup(e){const t={sun:["M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"],moon:["M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"],search:["M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"],"chevron-up":["M5 15l7-7 7 7"],"chevron-down":["M19 9l-7 7-7-7"],"chevron-right":["M9 5l7 7-7 7"],"arrow-left":["M10 19l-7-7m0 0l7-7m-7 7h18"],external:["M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"],list:["M4 6h16M4 12h16M4 18h16"],grid:["M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"],copy:["M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"],check:["M5 13l4 4L19 7"],document:["M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"]},n=e,s=Tr(()=>t[n.name]??null);return(e,t)=>s.value?(Ks(),Ys("svg",El,[(Ks(!0),Ys(Us,null,Vn(s.value,(e,t)=>(Ks(),Ys("path",{key:t,d:e},null,8,Tl))),128))])):ir("",!0)}}),Al={class:"flex items-start justify-between gap-3"},Dl={class:"min-w-0"},jl={class:"flex items-center gap-2"},$l={class:"truncate font-mono text-sm font-semibold text-brand dark:text-brand-dark"},Il=["href"],Rl=["aria-label","title"],Fl={class:"mt-1 text-sm text-slate-700 dark:text-slate-300"},Ll=["href"],Vl={class:"flex shrink-0 items-start gap-2"},Nl={class:"flex flex-col items-end gap-1 text-xs"},Ul={class:"flex flex-wrap justify-end gap-1"},zl={key:0,class:"rounded bg-slate-100 px-1.5 py-0.5 text-slate-600 dark:bg-slate-800 dark:text-slate-300"},Bl={key:1,class:"rounded bg-emerald-100 px-1.5 py-0.5 text-emerald-700 dark:bg-emerald-900/50 dark:text-emerald-300"},Wl={key:0,class:"text-slate-400"},Hl=["href"],ql=hn({__name:"DocumentRow",props:{doc:{},view:{}},emits:["open"],setup(e){const t=e,n=Tr(()=>Sl(t.doc.id)),s=wt(!1);return(t,r)=>(Ks(),Ys("article",{class:B(["document group py-4","grid"===e.view?"rounded-xl border border-slate-200 bg-white p-4 dark:border-slate-800 dark:bg-slate-900":""])},[rr("div",Al,[rr("div",Dl,[rr("div",jl,[rr("h2",$l,[rr("a",{href:n.value,class:"hover:underline",onClick:r[0]||(r[0]=vl(n=>t.$emit("open",e.doc.id),["exact","prevent"]))},ee(e.doc.id),9,Il)]),rr("button",{type:"button",class:"rounded p-0.5 text-slate-400 opacity-0 transition group-hover:opacity-100 hover:text-brand","aria-label":`Copy DocID ${e.doc.id}`,title:s.value?"Copied!":"Copy DocID",onClick:r[1]||(r[1]=t=>async function(e){try{await navigator.clipboard.writeText(e),s.value=!0,setTimeout(()=>s.value=!1,1200)}catch{}}(e.doc.id))},[lr(Pl,{name:s.value?"check":"copy",class:"h-4 w-4"},null,8,["name"])],8,Rl)]),rr("p",Fl,[rr("a",{href:n.value,class:"hover:underline",tabindex:"-1",onClick:r[2]||(r[2]=vl(n=>t.$emit("open",e.doc.id),["exact","prevent"]))},ee(e.doc.title),9,Ll)])]),rr("div",Vl,[rr("div",Nl,[rr("div",Ul,[e.doc.doctype?(Ks(),Ys("span",zl,ee(e.doc.doctype),1)):ir("",!0),e.doc.stage?(Ks(),Ys("span",Bl,ee(e.doc.stage),1)):ir("",!0)]),e.doc.date?(Ks(),Ys("time",Wl,ee(e.doc.date),1)):ir("",!0)]),rr("a",{href:n.value,class:"mt-0.5 text-slate-300 transition group-hover:text-brand dark:text-slate-600 dark:group-hover:text-brand-dark","aria-hidden":"true",tabindex:"-1",onClick:r[3]||(r[3]=vl(n=>t.$emit("open",e.doc.id),["exact","prevent"]))},[lr(Pl,{name:"chevron-right",class:"h-5 w-5"})],8,Hl)])])],2))}}),Kl={class:"py-2"},Gl={class:"mb-6"},Jl={class:"flex items-center gap-2"},Xl={class:"font-mono text-lg font-semibold text-brand dark:text-brand-dark"},Zl=["aria-label","title"],Yl={class:"mt-1 text-2xl font-semibold tracking-tight"},Ql={key:0,class:"mb-6"},eo={class:"text-sm leading-relaxed text-slate-700 dark:text-slate-300"},to={key:1,class:"mb-6"},no={class:"grid grid-cols-1 gap-x-6 gap-y-2 text-sm sm:grid-cols-2"},so={key:0,class:"flex gap-2"},ro={key:1,class:"flex gap-2"},lo={key:2,class:"flex gap-2"},oo={key:3,class:"flex gap-2"},ao={key:4,class:"flex gap-2"},io={key:5,class:"flex gap-2"},co={key:2,class:"mb-6"},uo={class:"flex flex-wrap gap-1.5"},fo={key:3,class:"mb-6"},po={class:"space-y-1 text-sm"},ho={class:"text-slate-700 dark:text-slate-300"},vo={key:0,class:"text-xs text-slate-500 dark:text-slate-400"},mo={key:4,class:"mb-6"},go={class:"space-y-1 text-sm"},yo={class:"font-mono text-slate-700 dark:text-slate-300"},bo={key:0,class:"text-xs text-slate-500 dark:text-slate-400"},xo={key:5,class:"mb-6"},_o={class:"space-y-1 text-sm"},wo={class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},ko=["href","onClick"],So={key:1,class:"font-mono text-slate-700 dark:text-slate-300"},Co={key:6,class:"mb-6"},Mo={class:"space-y-1 text-sm"},Oo={key:0,class:"text-slate-500 dark:text-slate-400"},Eo={class:"text-slate-700 dark:text-slate-300"},To={key:7,class:"flex flex-wrap gap-4 text-sm"},Po=["href"],Ao=["href"],Do=hn({__name:"DocumentDetail",props:{doc:{},hasDoc:{type:Function}},emits:["back","open"],setup(e){const t=e,n=wt(!1);async function s(){try{await navigator.clipboard.writeText(t.doc.id),n.value=!0,setTimeout(()=>n.value=!1,1200)}catch{}}const r=Tr(()=>(t.doc.languages??[]).join(", ")),l=Tr(()=>t.doc.keywords??[]),o=Tr(()=>t.doc.contributors??[]),a=Tr(()=>t.doc.docids??[]),i=Tr(()=>t.doc.dates??[]),c=Tr(()=>!!t.doc.date&&0===i.value.length),u=Tr(()=>!!(t.doc.doctype||t.doc.stage||t.doc.edition||r.value||t.doc.publisher||c.value));function d(e){return[e.type,e.language].filter(Boolean).join(" · ")}const f=Tr(()=>(t.doc.relations??[]).map(e=>({...e,label:p(e.type),href:t.hasDoc?.(e.id)?Sl(e.id):null})));function p(e){if(!e)return"Related";const t=e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}return(t,p)=>(Ks(),Ys("article",Kl,[rr("button",{type:"button",class:"mb-6 inline-flex items-center gap-1.5 text-sm text-brand hover:underline dark:text-brand-dark","aria-label":"Back to index",onClick:p[0]||(p[0]=e=>t.$emit("back"))},[lr(Pl,{name:"arrow-left",class:"h-4 w-4"}),p[1]||(p[1]=ar("Back to index ",-1))]),rr("header",Gl,[rr("div",Jl,[rr("h2",Xl,ee(e.doc.id),1),rr("button",{type:"button",class:"rounded p-0.5 text-slate-400 transition hover:text-brand","aria-label":`Copy DocID ${e.doc.id}`,title:n.value?"Copied!":"Copy DocID",onClick:s},[lr(Pl,{name:n.value?"check":"copy",class:"h-4 w-4"},null,8,["name"])],8,Zl)]),rr("h1",Yl,ee(e.doc.title),1)]),e.doc.abstract?(Ks(),Ys("section",Ql,[p[2]||(p[2]=rr("h3",{class:"mb-1 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Abstract ",-1)),rr("p",eo,ee(e.doc.abstract),1)])):ir("",!0),u.value?(Ks(),Ys("section",to,[rr("dl",no,[e.doc.doctype?(Ks(),Ys("div",so,[p[3]||(p[3]=rr("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Type",-1)),rr("dd",null,ee(e.doc.doctype),1)])):ir("",!0),e.doc.stage?(Ks(),Ys("div",ro,[p[4]||(p[4]=rr("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Stage",-1)),rr("dd",null,ee(e.doc.stage),1)])):ir("",!0),e.doc.edition?(Ks(),Ys("div",lo,[p[5]||(p[5]=rr("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Edition",-1)),rr("dd",null,ee(e.doc.edition),1)])):ir("",!0),r.value?(Ks(),Ys("div",oo,[p[6]||(p[6]=rr("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Language",-1)),rr("dd",null,ee(r.value),1)])):ir("",!0),e.doc.publisher?(Ks(),Ys("div",ao,[p[7]||(p[7]=rr("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Publisher",-1)),rr("dd",null,ee(e.doc.publisher),1)])):ir("",!0),c.value?(Ks(),Ys("div",io,[p[8]||(p[8]=rr("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Date",-1)),rr("dd",null,ee(e.doc.date),1)])):ir("",!0)])])):ir("",!0),l.value.length?(Ks(),Ys("section",co,[p[9]||(p[9]=rr("h3",{class:"mb-2 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Keywords ",-1)),rr("div",uo,[(Ks(!0),Ys(Us,null,Vn(l.value,e=>(Ks(),Ys("span",{key:e,class:"rounded-full bg-slate-100 px-3 py-1 text-xs text-slate-600 dark:bg-slate-800 dark:text-slate-300"},ee(e),1))),128))])])):ir("",!0),o.value.length?(Ks(),Ys("section",fo,[p[10]||(p[10]=rr("h3",{class:"mb-2 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Contributors ",-1)),rr("ul",po,[(Ks(!0),Ys(Us,null,Vn(o.value,(e,t)=>(Ks(),Ys("li",{key:t,class:"flex flex-wrap items-baseline gap-2"},[rr("span",ho,ee(e.name),1),e.role?(Ks(),Ys("span",vo,ee(e.role),1)):ir("",!0)]))),128))])])):ir("",!0),a.value.length?(Ks(),Ys("section",mo,[p[11]||(p[11]=rr("h3",{class:"mb-2 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Identifiers ",-1)),rr("ul",go,[(Ks(!0),Ys(Us,null,Vn(a.value,(e,t)=>(Ks(),Ys("li",{key:t,class:"flex flex-wrap items-baseline gap-2"},[rr("span",yo,ee(e.id),1),d(e)?(Ks(),Ys("span",bo,ee(d(e)),1)):ir("",!0)]))),128))])])):ir("",!0),f.value.length?(Ks(),Ys("section",xo,[p[12]||(p[12]=rr("h3",{class:"mb-2 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Relations ",-1)),rr("ul",_o,[(Ks(!0),Ys(Us,null,Vn(f.value,(e,n)=>(Ks(),Ys("li",{key:n,class:"flex flex-wrap items-baseline gap-2"},[rr("span",wo,ee(e.label),1),e.href?(Ks(),Ys("a",{key:0,href:e.href,class:"font-mono text-brand hover:underline dark:text-brand-dark",onClick:vl(n=>t.$emit("open",e.id),["exact","prevent"])},ee(e.id),9,ko)):(Ks(),Ys("span",So,ee(e.id),1))]))),128))])])):ir("",!0),i.value.length?(Ks(),Ys("section",Co,[p[13]||(p[13]=rr("h3",{class:"mb-2 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Dates ",-1)),rr("ul",Mo,[(Ks(!0),Ys(Us,null,Vn(i.value,(e,t)=>(Ks(),Ys("li",{key:t,class:"flex flex-wrap items-baseline gap-2"},[e.type?(Ks(),Ys("span",Oo,ee(e.type),1)):ir("",!0),rr("time",Eo,ee(e.value),1)]))),128))])])):ir("",!0),e.doc.link||e.doc.yaml?(Ks(),Ys("section",To,[e.doc.link?(Ks(),Ys("a",{key:0,href:e.doc.link,target:"_blank",rel:"noopener",class:"inline-flex items-center gap-1 text-brand hover:underline dark:text-brand-dark"},[lr(Pl,{name:"external",class:"h-4 w-4"}),p[14]||(p[14]=ar("Landing page",-1))],8,Po)):ir("",!0),e.doc.yaml?(Ks(),Ys("a",{key:1,href:e.doc.yaml,target:"_blank",rel:"noopener",class:"inline-flex items-center gap-1 text-brand hover:underline dark:text-brand-dark"},[lr(Pl,{name:"document",class:"h-4 w-4"}),p[15]||(p[15]=ar("Raw YAML",-1))],8,Ao)):ir("",!0)])):ir("",!0)]))}}),jo={key:0,class:"flex items-center justify-center gap-2 text-sm","aria-label":"Pagination"},$o=["disabled"],Io={class:"text-slate-500 dark:text-slate-400"},Ro=["disabled"],Fo=hn({__name:"Pagination",props:{page:{},pageCount:{}},emits:["go"],setup(e,{emit:t}){const n=t;return(t,s)=>e.pageCount>1?(Ks(),Ys("nav",jo,[rr("button",{type:"button",class:"rounded-md border border-slate-300 px-3 py-1 disabled:opacity-40 dark:border-slate-700",disabled:1===e.page,onClick:s[0]||(s[0]=t=>n("go",e.page-1))},"Prev",8,$o),rr("span",Io,"Page "+ee(e.page)+" of "+ee(e.pageCount),1),rr("button",{type:"button",class:"rounded-md border border-slate-300 px-3 py-1 disabled:opacity-40 dark:border-slate-700",disabled:e.page===e.pageCount,onClick:s[1]||(s[1]=t=>n("go",e.page+1))},"Next",8,Ro)])):ir("",!0)}}),Lo=Fo,Vo={class:"min-h-screen bg-slate-50 text-slate-900 dark:bg-slate-950 dark:text-slate-100"},No={class:"border-b border-slate-200 dark:border-slate-800"},Uo={class:"mx-auto flex max-w-5xl items-center justify-between gap-4 px-4 py-5"},zo={class:"text-2xl font-semibold tracking-tight"},Bo={class:"mt-1 text-sm text-slate-500 dark:text-slate-400"},Wo=["aria-label","title"],Ho={class:"mx-auto max-w-5xl px-4 py-6"},qo={class:"sticky top-0 z-10 -mx-4 mb-4 bg-slate-50/90 px-4 py-3 backdrop-blur dark:bg-slate-950/90"},Ko={class:"flex flex-wrap items-center gap-3"},Go={class:"relative min-w-56 flex-1"},Jo={class:"pointer-events-none absolute inset-y-0 left-3 flex items-center text-slate-400"},Xo={class:"flex items-center gap-1 text-sm"},Zo=["onClick"],Yo={class:"flex items-center gap-1 rounded-lg border border-slate-300 p-0.5 dark:border-slate-700"},Qo={key:0,class:"mt-3 flex flex-wrap items-center gap-2"},ea=["onClick"],ta=["onClick"],na={class:"mt-3 flex items-center gap-3 text-xs text-slate-500 dark:text-slate-400"},sa={key:0,class:"text-slate-400 dark:text-slate-500"},ra={key:1,class:"py-16 text-center text-slate-500 dark:text-slate-400"},la={class:"border-t border-slate-200 py-8 text-center text-xs text-slate-500 dark:border-slate-800 dark:text-slate-400"},oa={key:0,class:"mt-1"},aa=hn({__name:"App",props:{data:{},hydration:{},loadDetail:{type:Function}},setup(e){const t=e,n={loading:!1,total:null,requestAll:()=>{}},s=Tr(()=>t.hydration??n),r=Tr(()=>s.value.loading),l=wt(""),o=wt(new Set),a=wt(new Set),i=wt("id"),c=wt("asc"),u=wt(localStorage.getItem("relaton-index-view")||"list"),d=wt(document.documentElement.classList.contains("dark")),f=wt(null),p=Tr(()=>t.data.documents),h=Tr(()=>yl(p.value,"doctype")),v=Tr(()=>yl(p.value,"stage")),m=Tr(()=>Math.max(s.value.total??0,p.value.length)),g=wt(Ml()),y=Tr(()=>null==g.value?null:p.value.find(e=>e.id===g.value)??null);function b(e){g.value=e,Ol(e,"push"),window.scrollTo({top:0})}const x=Tr(()=>new Set(p.value.map(e=>e.id)));function _(e){return x.value.has(e)}function w(){g.value=null,Ol(null,"replace")}const k=Tr(()=>xl(p.value,{query:l.value,doctypes:o.value,stages:a.value,sortKey:i.value,sortDir:c.value})),S=wt(null),C={list:76,grid:128};function M(){const e=window.innerHeight||800,t=S.value?.getBoundingClientRect().top??300,n=Math.max(e-t-120,C.list),s="grid"===u.value&&window.innerWidth>=640?2:1,r=Math.floor(n/C[u.value])*s;return Math.min(100,Math.max(10,r))}const O=wt(M()),E=wt(wl()),T=Tr(()=>Math.max(1,Math.ceil(k.value.length/O.value))),P=Tr(()=>{const e=(E.value-1)*O.value;return k.value.slice(e,e+O.value)});function A(){const e=M();e!==O.value&&(O.value=e)}function D(){const e=Math.min(E.value,T.value);e!==E.value&&(E.value=e,kl(e,"replace"))}let j;function $(){clearTimeout(j),j=setTimeout(A,150)}sn(u,()=>zt(A)),sn([y,r],([e,t])=>{e||(zt(A),null!=g.value&&(t?s.value.requestAll():(g.value=null,Ol(null,"replace"))))},{immediate:!0}),sn(O,()=>{r.value||D()}),sn(r,e=>{e||D()}),sn([l,o,a,i,c],()=>{1!==E.value&&(E.value=1,kl(1,"replace")),s.value.requestAll()});const I=new Set;function R(e){const t=Math.min(T.value,Math.max(1,e));t!==E.value&&(E.value=t,kl(t,"push")),document.getElementById("relaton-index-app")?.scrollIntoView({block:"start"})}function F(){g.value=Ml();const e=Math.max(1,wl());E.value=r.value?e:Math.min(T.value,e)}function L(e,t){const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function V(){l.value="",o.value=new Set,a.value=new Set}function N(e){u.value=e,localStorage.setItem("relaton-index-view",e)}function U(){d.value=!d.value,document.documentElement.classList.toggle("dark",d.value);try{localStorage.setItem("relaton-index-theme",d.value?"dark":"light")}catch{}}sn(y,e=>{const n=t.loadDetail;if(!e||!n)return;const s=function(e){return`${e.id}|${e.yaml??""}`}(e);if(I.has(s))return;I.add(s);const r=e.pos??p.value.indexOf(e);r<0||n(r,e.id).then(n=>{if(!n)return;const{r:s,...r}=n;Object.assign(e,r),r.relations?.length&&t.hydration?.requestAll()}).catch(()=>{})});const z=Tr(()=>""!==l.value.trim()||o.value.size>0||a.value.size>0);function W(e){const t=e.target,n=t&&("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable);"/"!==e.key||n?"Escape"===e.key&&t===f.value&&(l.value="",f.value?.blur()):(e.preventDefault(),f.value?.focus())}return Tn(()=>{window.addEventListener("keydown",W),window.addEventListener("resize",$),window.addEventListener("popstate",F),zt(()=>{A(),r.value||D()})}),jn(()=>{window.removeEventListener("keydown",W),window.removeEventListener("resize",$),window.removeEventListener("popstate",F),clearTimeout(j)}),(t,n)=>(Ks(),Ys("div",Vo,[rr("header",No,[rr("div",Uo,[rr("div",null,[rr("h1",zo,ee(e.data.title),1),rr("p",Bo,ee(e.data.description||"Please use the provided Relaton DocID to refer to an item."),1)]),rr("button",{type:"button",class:"rounded-lg border border-slate-300 p-2 text-slate-600 hover:bg-slate-100 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800","aria-label":d.value?"Switch to light theme":"Switch to dark theme",title:d.value?"Light theme":"Dark theme",onClick:U},[lr(Pl,{name:d.value?"sun":"moon",class:"h-5 w-5"},null,8,["name"])],8,Wo)])]),rr("main",Ho,[y.value?(Ks(),Qs(Do,{key:0,doc:y.value,"has-doc":_,onBack:w,onOpen:b},null,8,["doc"])):(Ks(),Ys(Us,{key:1},[rr("div",qo,[rr("div",Ko,[rr("div",Go,[rr("span",Jo,[lr(Pl,{name:"search",class:"h-4 w-4"})]),Qt(rr("input",{ref_key:"searchEl",ref:f,"onUpdate:modelValue":n[0]||(n[0]=e=>l.value=e),type:"search",class:"w-full rounded-lg border border-slate-300 bg-white py-2 pl-9 pr-3 text-sm shadow-sm outline-none focus:border-brand focus:ring-2 focus:ring-brand/30 dark:border-slate-700 dark:bg-slate-900","aria-label":"Filter documents by identifier or title",placeholder:"Filter by identifier or title… ( / )"},null,512),[[fl,l.value]])]),rr("div",Xo,[n[3]||(n[3]=rr("span",{class:"text-slate-500 dark:text-slate-400"},"Sort",-1)),(Ks(),Ys(Us,null,Vn(["id","date","title"],e=>rr("button",{key:e,type:"button",class:B(["rounded-md px-2 py-1 capitalize",i.value===e?"bg-brand text-white":"text-slate-600 hover:bg-slate-200 dark:text-slate-300 dark:hover:bg-slate-800"]),onClick:t=>{return n=e,void(i.value===n?c.value="asc"===c.value?"desc":"asc":(i.value=n,c.value="asc"));var n}},[ar(ee(e),1),i.value===e?(Ks(),Qs(Pl,{key:0,name:"asc"===c.value?"chevron-up":"chevron-down",class:"ml-0.5 inline h-3.5 w-3.5"},null,8,["name"])):ir("",!0)],10,Zo)),64))]),rr("div",Yo,[rr("button",{type:"button",class:B(["rounded-md px-2 py-1 text-sm","list"===u.value?"bg-brand text-white":"text-slate-600 dark:text-slate-300"]),"aria-label":"List view",onClick:n[1]||(n[1]=e=>N("list"))},[lr(Pl,{name:"list",class:"h-4 w-4"})],2),rr("button",{type:"button",class:B(["rounded-md px-2 py-1 text-sm","grid"===u.value?"bg-brand text-white":"text-slate-600 dark:text-slate-300"]),"aria-label":"Grid view",onClick:n[2]||(n[2]=e=>N("grid"))},[lr(Pl,{name:"grid",class:"h-4 w-4"})],2)])]),h.value.length||v.value.length?(Ks(),Ys("div",Qo,[(Ks(!0),Ys(Us,null,Vn(h.value,e=>(Ks(),Ys("button",{key:"dt-"+e,type:"button",class:B(["rounded-full border px-3 py-1 text-xs",o.value.has(e)?"border-brand bg-brand text-white":"border-slate-300 text-slate-600 hover:border-brand dark:border-slate-700 dark:text-slate-300"]),onClick:t=>{return n=e,void(o.value=L(o.value,n));var n}},ee(e),11,ea))),128)),(Ks(!0),Ys(Us,null,Vn(v.value,e=>(Ks(),Ys("button",{key:"st-"+e,type:"button",class:B(["rounded-full border px-3 py-1 text-xs",a.value.has(e)?"border-emerald-500 bg-emerald-500 text-white":"border-slate-300 text-slate-600 hover:border-emerald-500 dark:border-slate-700 dark:text-slate-300"]),onClick:t=>{return n=e,void(a.value=L(a.value,n));var n}},ee(e),11,ta))),128))])):ir("",!0),rr("div",na,[rr("span",null,ee(k.value.length)+" of "+ee(m.value)+" documents",1),r.value?(Ks(),Ys("span",sa,"loading…")):ir("",!0),z.value?(Ks(),Ys("button",{key:1,type:"button",class:"text-brand hover:underline dark:text-brand-dark",onClick:V},"Clear filters")):ir("",!0)])]),lr(Lo,{class:"mb-4",page:E.value,"page-count":T.value,onGo:R},null,8,["page","page-count"]),k.value.length?(Ks(),Ys("div",{key:0,ref_key:"listEl",ref:S,class:B("grid"===u.value?"grid grid-cols-1 gap-3 sm:grid-cols-2":"flex flex-col divide-y divide-slate-200 dark:divide-slate-800")},[(Ks(!0),Ys(Us,null,Vn(P.value,e=>(Ks(),Qs(ql,{key:e.id+"|"+(e.yaml??""),doc:e,view:u.value,onOpen:b},null,8,["doc","view"]))),128))],2)):(Ks(),Ys("p",ra," No documents match your filters. ")),lr(Lo,{class:"mt-6",page:E.value,"page-count":T.value,onGo:R},null,8,["page","page-count"])],64))]),rr("footer",la,[n[4]||(n[4]=rr("p",null,[ar(" An open source project by "),rr("a",{class:"text-brand hover:underline dark:text-brand-dark",href:"https://www.ribose.com"},"Ribose"),ar(". Built with "),rr("a",{class:"text-brand hover:underline dark:text-brand-dark",href:"https://www.relaton.org"},"Relaton"),ar(". ")],-1)),e.data.generated?(Ks(),Ys("p",oa,"Generated "+ee(e.data.generated),1)):ir("",!0)])]))}}),ia=aa;function ca(e){const t=Number.parseInt(e??"",10);return Number.isFinite(t)&&t>0?t:0}function ua(e){return{total:ca(e.dataset.total),shards:ca(e.dataset.shards),shardSize:ca(e.dataset.shardSize),detailShards:ca(e.dataset.detailShards),detailShardSize:ca(e.dataset.detailShardSize)}}function da(e){return e.dataset.title||document.querySelector("h1")?.textContent?.trim()||document.title||"Relaton Index"}function fa(e){return e.dataset.description||null}function pa(e,t){return`${e}-${String(t).padStart(4,"0")}.json`}async function ha(e){try{const t=await fetch(e);if(!t.ok)return null;const n=await t.json();return Array.isArray(n)?n:null}catch{return null}}async function va(e){const t=await ha(e);return t||ha(e)}function ma(e){const t=new Map,n=new Map;return async function(s,r){const{detailShards:l,detailShardSize:o}=e;if(l<=0||o<=0||s<0)return null;const a=Math.floor(s/o);if(a>=l)return null;let i=t.get(a);if(!i){let e=n.get(a);e||(e=ha(pa("detail",a)).then(e=>e??[]),n.set(a,e)),i=await e,t.set(a,i),n.delete(a)}const c=i[s%o];return c&&c.r===r?c:i.find(e=>null!=e&&e.r===r)??null}}function ga(){const e=document.getElementById("relaton-index-app");if(!e)return;!function(){try{const e=localStorage.getItem("relaton-index-theme"),t="dark"===e||null===e&&window.matchMedia?.("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",!!t)}catch{}}();const{data:t,shards:n}=function(e){return{data:{title:da(e),description:fa(e),documents:[],generated:e.dataset.generated||null},shards:ua(e)}}(e),s=dt({...t});let r=!1;function l(){r||n.shards<=0||(r=!0,async function(e,t,n={}){const s=e.shards;if(s<=0)return;const r=n.flushMs??750,l=n.now??(()=>Date.now()),o=new Array(s).fill(null);let a=[],i=0,c=0,u=-1/0;const d=e=>{let n=!1;for(;i<s&&o[i];)a=a.concat(o[i]),o[i]=null,i++,n=!0;if(!n&&!e)return;const c=l();!e&&c-u<r||(u=c,t(a))},f=Math.max(1,Math.min(n.concurrency??4,s));await Promise.all(Array.from({length:f},async()=>{for(let t=c++;t<s;t=c++){const n=await va(pa("search",t));if(!n){o[t]=[],d(!1);continue}const s=t*e.shardSize;o[t]=n.map((e,t)=>{return r=s+t,{id:(n=e).r??"",title:n.c??"",doctype:n.t||null,stage:n.s||null,date:n.d||null,link:n.l||null,yaml:n.u||null,...void 0===r?{}:{pos:r}};var n,r}),d(!1)}})),d(!0)}(n,e=>{s.documents=e}).catch(e=>{}).finally(()=>{o.loading=!1}))}const o=dt({loading:n.shards>0,total:n.total,requestAll:l});var a;n.shards>0&&(a=l,"function"==typeof window.requestIdleCallback?window.requestIdleCallback(()=>a(),{timeout:2e3}):window.setTimeout(a,0)),gl(ia,{data:s,hydration:o,loadDetail:ma(n)}).mount(e)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ga,{once:!0}):ga()}();
@@ -1,3 +0,0 @@
1
- /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}::backdrop{--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:"Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-emerald-100:#d0fae5;--color-emerald-300:#5ee9b5;--color-emerald-500:#00bb7f;--color-emerald-700:#007956;--color-emerald-900:#004e3b;--color-slate-50:#f8fafc;--color-slate-100:#f1f5f9;--color-slate-200:#e2e8f0;--color-slate-300:#cad5e2;--color-slate-400:#90a1b9;--color-slate-500:#62748e;--color-slate-600:#45556c;--color-slate-700:#314158;--color-slate-800:#1d293d;--color-slate-900:#0f172b;--color-slate-950:#020618;--color-white:#fff;--spacing:.25rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-wide:.025em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-brand:#1e6bb8;--color-brand-dark:#4a9fe0}@supports (color:color(display-p3 0 0 0)){:root,:host{--color-emerald-100:color(display-p3 .848335 .975974 .901691);--color-emerald-300:color(display-p3 .524941 .903425 .722352);--color-emerald-500:color(display-p3 .267113 .726847 .508397);--color-emerald-700:color(display-p3 .164041 .470229 .343508);--color-emerald-900:color(display-p3 .117821 .302975 .234501);--color-slate-50:color(display-p3 .974377 .979815 .986207);--color-slate-100:color(display-p3 .947345 .959969 .97483);--color-slate-200:color(display-p3 .890322 .909405 .939294);--color-slate-300:color(display-p3 .800294 .834432 .882803);--color-slate-400:color(display-p3 .577446 .629622 .716602);--color-slate-500:color(display-p3 .397645 .452653 .547642);--color-slate-600:color(display-p3 .283418 .332214 .416355);--color-slate-700:color(display-p3 .205992 .253487 .336039);--color-slate-800:color(display-p3 .121994 .158688 .232363);--color-slate-900:color(display-p3 .0639692 .0891152 .163036);--color-slate-950:color(display-p3 .0102437 .0227555 .0878731)}}@supports (color:lab(0% 0 0)){:root,:host{--color-emerald-100:lab(94.9004% -17.0769 5.63836);--color-emerald-300:lab(83.9203% -48.7124 13.8849);--color-emerald-500:lab(66.9756% -58.27 19.5419);--color-emerald-700:lab(44.4871% -41.0396 11.0361);--color-emerald-900:lab(28.8637% -26.9249 5.45986);--color-slate-50:lab(98.1434% -.369519 -1.05966);--color-slate-100:lab(96.286% -.852436 -2.46847);--color-slate-200:lab(91.7353% -.998765 -4.76968);--color-slate-300:lab(84.7652% -1.94535 -7.93337);--color-slate-400:lab(65.5349% -2.25151 -14.5072);--color-slate-500:lab(48.0876% -2.03595 -16.5814);--color-slate-600:lab(35.5623% -1.74978 -15.4316);--color-slate-700:lab(26.9569% -1.47016 -15.6993);--color-slate-800:lab(16.132% -.318035 -14.6672);--color-slate-900:lab(7.78673% 1.82345 -15.0537);--color-slate-950:lab(1.76974% 1.32743 -9.28855)}}}@layer base{*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option{padding-inline-start:20px}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::-webkit-file-upload-button{margin-inline-end:4px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-year-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-month-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-day-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-hour-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-minute-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-second-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-millisecond-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-meridiem-field{padding-block-start:0;padding-block-end:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button{-webkit-appearance:button;appearance:button}input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-y-0{top:0;bottom:0}.top-0{top:0}.left-3{left:calc(var(--spacing) * 3)}.z-10{z-index:10}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.mx-auto{margin-inline-start:auto;margin-inline-end:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.block{display:block}.flex{display:flex}.grid{display:grid}.inline{display:inline}.inline-flex{display:inline-flex}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.min-h-screen{min-height:100vh}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-28{width:calc(var(--spacing) * 28)}.w-full{width:100%}.max-w-5xl{max-width:var(--container-5xl)}.min-w-0{min-width:0}.min-w-56{min-width:calc(var(--spacing) * 56)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-slate-200>:not(:last-child)){border-color:var(--color-slate-200)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-brand{border-color:var(--color-brand)}.border-emerald-500{border-color:var(--color-emerald-500)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-300{border-color:var(--color-slate-300)}.bg-brand{background-color:var(--color-brand)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-50\/90{background-color:#f8fafce6}@supports (color:color-mix(in lab, red, red)){.bg-slate-50\/90{background-color:color-mix(in oklab, var(--color-slate-50) 90%, transparent)}}.bg-slate-100{background-color:var(--color-slate-100)}.bg-white{background-color:var(--color-white)}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-16{padding-block:calc(var(--spacing) * 16)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-brand{color:var(--color-brand)}.text-emerald-700{color:var(--color-emerald-700)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.opacity-0{opacity:0}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.group-hover\:text-brand:is(:where(.group):hover *){color:var(--color-brand)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}.hover\:border-brand:hover{border-color:var(--color-brand)}.hover\:border-emerald-500:hover{border-color:var(--color-emerald-500)}.hover\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\:bg-slate-200:hover{background-color:var(--color-slate-200)}.hover\:text-brand:hover{color:var(--color-brand)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-brand:focus{border-color:var(--color-brand)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-brand\/30:focus{--tw-ring-color:#1e6bb84d}@supports (color:color-mix(in lab, red, red)){.focus\:ring-brand\/30:focus{--tw-ring-color:color-mix(in oklab, var(--color-brand) 30%, transparent)}}.disabled\:opacity-40:disabled{opacity:.4}@media (min-width:40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}:where(.dark\:divide-slate-800:where(.dark,.dark *)>:not(:last-child)){border-color:var(--color-slate-800)}.dark\:border-slate-700:where(.dark,.dark *){border-color:var(--color-slate-700)}.dark\:border-slate-800:where(.dark,.dark *){border-color:var(--color-slate-800)}.dark\:bg-emerald-900\/50:where(.dark,.dark *){background-color:#004e3b80}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/50:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-emerald-900) 50%, transparent)}}.dark\:bg-slate-800:where(.dark,.dark *){background-color:var(--color-slate-800)}.dark\:bg-slate-900:where(.dark,.dark *){background-color:var(--color-slate-900)}.dark\:bg-slate-950:where(.dark,.dark *){background-color:var(--color-slate-950)}.dark\:bg-slate-950\/90:where(.dark,.dark *){background-color:#020618e6}@supports (color:color-mix(in lab, red, red)){.dark\:bg-slate-950\/90:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-slate-950) 90%, transparent)}}.dark\:text-brand-dark:where(.dark,.dark *){color:var(--color-brand-dark)}.dark\:text-emerald-300:where(.dark,.dark *){color:var(--color-emerald-300)}.dark\:text-slate-100:where(.dark,.dark *){color:var(--color-slate-100)}.dark\:text-slate-300:where(.dark,.dark *){color:var(--color-slate-300)}.dark\:text-slate-400:where(.dark,.dark *){color:var(--color-slate-400)}.dark\:text-slate-500:where(.dark,.dark *){color:var(--color-slate-500)}.dark\:text-slate-600:where(.dark,.dark *){color:var(--color-slate-600)}@media (hover:hover){.dark\:group-hover\:text-brand-dark:where(.dark,.dark *):is(:where(.group):hover *){color:var(--color-brand-dark)}.dark\:hover\:bg-slate-800:where(.dark,.dark *):hover{background-color:var(--color-slate-800)}}}#relaton-index-app{font-family:var(--font-sans);-webkit-font-smoothing:antialiased;line-height:1.5}#relaton-index-app>.documents[hidden]{display:none}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}
3
- /*$vite$:1*/
data/i18n.yaml DELETED
@@ -1 +0,0 @@
1
- label: label
@@ -1,146 +0,0 @@
1
- require "relaton/element_finder"
2
-
3
- module Relaton
4
- class Bibcollection
5
- extend Relaton::ElementFinder
6
-
7
- ATTRIBS = %i[title items doctype author].freeze
8
-
9
- attr_accessor(*ATTRIBS)
10
-
11
- # @param options [Hash]
12
- def initialize(options)
13
- ATTRIBS.each do |k|
14
- value = options[k] || options[k.to_s]
15
- send("#{k}=", value)
16
- end
17
- reduce_items
18
- end
19
-
20
- # arbitrary number, must sort after all bib items
21
- def doc_number
22
- 9999999
23
- end
24
-
25
- # Add a dcoument to the collection
26
- # @param item [RelatonBib::BibliographicItem]
27
- def <<(item)
28
- items << new_bib_item_class(item)
29
- end
30
-
31
- # rubocop:disable Metrics/MethodLength
32
-
33
- # @param source [Nokogiri::XML::Element]
34
- def self.from_xml(source)
35
- title = find_html("./relaton-collection/title", source)
36
- author = find_html(
37
- "./relaton-collection/contributor[role/@type='author']/organization/"\
38
- "name", source
39
- )
40
-
41
- items = find_xpath("./relaton-collection/relation", source)&.map do |item|
42
- bibdata = find("./bibdata|./bibitem", item)
43
- klass = bibdata ? Bibdata : Bibcollection
44
- klass.from_xml(bibdata || item)
45
- end
46
-
47
- new(title: title, author: author, items: items)
48
- end
49
-
50
- # rubocop:disable Metrics/AbcSize
51
-
52
- # @param opts [Hash]
53
- # @return [String] XML
54
- def to_xml(opts = {})
55
- items.sort_by! &:doc_number
56
-
57
- collection_type = if doctype
58
- "type=\"#{doctype}\""
59
- else
60
- 'xmlns="https://open.ribose.com/relaton-xml"'
61
- end
62
-
63
- ret = "<relaton-collection #{collection_type}>"
64
- ret += "<title>#{xml_escape(title)}</title>" if title
65
- if author
66
- ret += "<contributor><role type='author'/><organization><name>"\
67
- "#{xml_escape(author)}</name></organization></contributor>"
68
- end
69
- unless items.empty?
70
- items.each do |item|
71
- ret += "<relation type='partOf'>"
72
- ret += item.to_xml(opts)
73
- ret += "</relation>\n"
74
- end
75
- end
76
- ret += "</relaton-collection>\n"
77
- end
78
- # rubocop:enable Metrics/AbcSize
79
-
80
- # @param item [Hash, RelatonBib::BibliographicItem, Relatin::Bibdata,
81
- # Relaton::Bibcollection]
82
- # @return [Relaton::Bibdata, Relaton::Bibcollection]
83
- def new_bib_item_class(item)
84
- if item.is_a?(Hash)
85
- if item["items"]
86
- ::Relaton::Bibcollection.new(item)
87
- else
88
- bibitem = ::Relaton::Cli::YAMLConvertor.convert_single_file item
89
- ::Relaton::Bibdata.new bibitem
90
- end
91
- elsif item.is_a?(Relaton::Bibdata) || item.is_a?(Relaton::Bibcollection)
92
- item
93
- else ::Relaton::Bibdata.new(item)
94
- end
95
- end
96
- # rubocop:enable Metrics/MethodLength
97
-
98
- def items_flattened
99
- items.sort_by! &:doc_number
100
-
101
- items.reduce([]) do |acc, item|
102
- acc << if item.is_a? ::Relaton::Bibcollection
103
- item.items_flattened
104
- else
105
- item
106
- end
107
- end
108
- end
109
-
110
- def to_yaml
111
- to_h.to_yaml
112
- end
113
-
114
- def to_h
115
- items.sort_by! &:doc_number
116
-
117
- a = ATTRIBS.reduce({}) do |acc, k|
118
- acc[k.to_s] = send(k)
119
- acc
120
- end
121
-
122
- a["items"] = a["items"].map(&:to_h)
123
-
124
- { "root" => a }
125
- end
126
-
127
- private
128
-
129
- def reduce_items
130
- self.items = (items || []).reduce([]) do |acc, item|
131
- acc << if item.is_a?(Bibcollection) || item.is_a?(Bibdata)
132
- item
133
- else new_bib_item_class(item)
134
- end
135
- end
136
- end
137
-
138
- # Escape bare & in content for XML serialization, leaving already-encoded
139
- # entity references (&amp;, &#123;, &#x1f;) and inline markup (<em> etc.)
140
- # untouched. This prevents invalid XML when plain-text values (e.g. from
141
- # YAML) contain literal ampersands.
142
- def xml_escape(str)
143
- str.gsub(/&(?![a-zA-Z][a-zA-Z0-9]*;|#[0-9]+;|#x[0-9a-fA-F]+;)/, "&amp;")
144
- end
145
- end
146
- end
@@ -1,92 +0,0 @@
1
- require "date"
2
-
3
- module Relaton
4
- class Bibdata
5
- URL_TYPES = %i[uri xml pdf doc html rxl txt].freeze
6
-
7
- # @return [RelatonBib::BibliographicItem]
8
- attr_reader :bibitem
9
-
10
- # @param bibitem [RelatonBib::BibliographicItem]
11
- def initialize(bibitem)
12
- @bibitem = bibitem
13
- end
14
-
15
- def docidentifier
16
- @bibitem.docidentifier.first&.content&.to_s
17
- end
18
-
19
- # def doctype
20
- # @bibitem.type
21
- # end
22
-
23
- # From http://gavinmiller.io/2016/creating-a-secure-sanitization-function/
24
- FILENAME_BAD_CHARS = ["/", '\\', "?", "%", "*", ":", "|", '"', "<", ">",
25
- ".", " "].freeze
26
-
27
- def docidentifier_code
28
- return "" if docidentifier.nil?
29
-
30
- FILENAME_BAD_CHARS.reduce(docidentifier.downcase) do |result, bad_char|
31
- result.gsub(bad_char, "-")
32
- end
33
- end
34
-
35
- DOC_NUMBER_REGEX = /([\w\/]+)\s+(\d+):?(\d*)/.freeze
36
- def doc_number
37
- docidentifier&.match(DOC_NUMBER_REGEX) ? $2.to_i : 999999
38
- end
39
-
40
- def self.from_xml(source)
41
- bi = Relaton::Cli.parse_xml(source)
42
- new(bi) if bi
43
- end
44
-
45
- def to_xml(opts = {})
46
- options = { bibdata: true, date_format: :full }.merge(
47
- opts.select { |k, _v| k.is_a? Symbol },
48
- )
49
- @bibitem.to_xml(**options)
50
- end
51
-
52
- def to_h
53
- URL_TYPES.each_with_object(YAML.safe_load(@bibitem.to_yaml)) do |t, h|
54
- value = send t
55
- h[t.to_s] = value if value
56
- end
57
- end
58
-
59
- def to_yaml
60
- to_h.to_yaml
61
- end
62
-
63
- # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize
64
- # rubocop:disable Metrics/MethodLength, Metrics/PerceivedComplexity, Style/MissingRespondToMissing
65
-
66
- def method_missing(meth, *args)
67
- if @bibitem.respond_to?(meth)
68
- @bibitem.send meth, *args
69
- elsif URL_TYPES.include? meth
70
- source = (@bibitem.source || []).detect do |l|
71
- l.type == meth.to_s || (meth == :uri && l.type.nil?)
72
- end
73
- source&.content&.to_s
74
- elsif URL_TYPES.include? meth.match(/^\w+(?==)/).to_s.to_sym
75
- /^(?<type>\w+)/ =~ meth
76
- @bibitem.source ||= []
77
- source = @bibitem.source.detect do |l|
78
- l.type == type || (type == "uri" && l.type.nil?)
79
- end
80
- if source
81
- source.content = args[0]
82
- else
83
- @bibitem.source << Relaton::Bib::Uri.new(type: type, content: args[0])
84
- end
85
- else
86
- super
87
- end
88
- end
89
- # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize
90
- # rubocop:enable Metrics/MethodLength, Metrics/PerceivedComplexity, Style/MissingRespondToMissing
91
- end
92
- end