1264 lines
1.9 MiB
JavaScript
1264 lines
1.9 MiB
JavaScript
(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},c=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),l=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},u=(e,r,i)=>(i=e==null?{}:t(a(e)),l(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),d,f,p=s((()=>{d=e=>typeof e==`object`&&!!e&&!Array.isArray(e),f=e=>JSON.parse(JSON.stringify(e))})),m=c((e=>{
|
||||
|
|
/**
|
|||
|
|
* @license React
|
|||
|
|
* react.production.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/
|
|||
|
|
var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return E(e.type,t,e.props)}function te(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ne(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var re=/\/+/g;function ie(e,t){return typeof e==`object`&&e&&e.key!=null?ne(``+e.key):t.toString(36)}function ae(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function oe(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,oe(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ie(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(re,`$&/`)+`/`),oe(o,r,i,``,function(e){return e})):o!=null&&(te(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(re,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ie(a,u),c+=oe(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ie(a,u++),c+=oe(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return oe(ae(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function se(e,t,n){if(e==null)return e;var r=[],i=0;return oe(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ce(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var le=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);ret
|
|||
|
|
/*
|
|||
|
|
object-assign
|
|||
|
|
(c) Sindre Sorhus
|
|||
|
|
@license MIT
|
|||
|
|
*/
|
|||
|
|
var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),_=c(((e,t)=>{var n=g(),r={};function i(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}var a=`mixins`;function o(e){return e}function s(e,t,s){var c=[],l={mixins:`DEFINE_MANY`,statics:`DEFINE_MANY`,propTypes:`DEFINE_MANY`,contextTypes:`DEFINE_MANY`,childContextTypes:`DEFINE_MANY`,getDefaultProps:`DEFINE_MANY_MERGED`,getInitialState:`DEFINE_MANY_MERGED`,getChildContext:`DEFINE_MANY_MERGED`,render:`DEFINE_ONCE`,componentWillMount:`DEFINE_MANY`,componentDidMount:`DEFINE_MANY`,componentWillReceiveProps:`DEFINE_MANY`,shouldComponentUpdate:`DEFINE_ONCE`,componentWillUpdate:`DEFINE_MANY`,componentDidUpdate:`DEFINE_MANY`,componentWillUnmount:`DEFINE_MANY`,UNSAFE_componentWillMount:`DEFINE_MANY`,UNSAFE_componentWillReceiveProps:`DEFINE_MANY`,UNSAFE_componentWillUpdate:`DEFINE_MANY`,updateComponent:`OVERRIDE_BASE`},u={getDerivedStateFromProps:`DEFINE_MANY_MERGED`},d={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=n({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=n({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=g(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=n({},e.propTypes,t)},statics:function(e,t){m(e,t)},autobind:function(){}};function f(e,t){var n=l.hasOwnProperty(t)?l[t]:null;S.hasOwnProperty(t)&&i(n===`OVERRIDE_BASE`,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&i(n===`DEFINE_MANY`||n===`DEFINE_MANY_MERGED`,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){i(typeof n!=`function`,`ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object.`),i(!t(n),`ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.`);var r=e.prototype,o=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(a)&&d.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==a){var c=n[s],u=r.hasOwnProperty(s);if(f(u,s),d.hasOwnProperty(s))d[s](e,c);else{var p=l.hasOwnProperty(s);if(typeof c==`function`&&!p&&!u&&n.autobind!==!1)o.push(s,c),r[s]=c;else if(u){var m=l[s];i(p&&(m===`DEFINE_MANY_MERGED`||m===`DEFINE_MANY`),`ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.`,m,s),m===`DEFINE_MANY_MERGED`?r[s]=g(r[s],c):m===`DEFINE_MANY`&&(r[s]=_(r[s],c))}else r[s]=c}}}}function m(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(i(!(n in d),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){i((u.hasOwnProper
|
|||
|
|
\r\f\xA0\v`]}));function ds(e,t,n,r,i,a){var o=e[Pe];if(yt||o!==n||o===void 0){var s=as(n,r,a);(!yt||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Pe]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var fs=s((()=>{us(),Be(),xt()}));function ps(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function ms(e,t,n,r){var i=e[Fe];if(yt||i!==t){var a=cs(t,r);(!yt||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Fe]=t}else r&&(Array.isArray(r)?(ps(e,n?.[0],r[0]),ps(e,n?.[1],r[1],`important`)):ps(e,n,r));return r}var hs=s((()=>{us(),Be(),xt()}));function gs(e,t,n=!1){if(e.multiple){if(t==null)return;if(!te(t))return ut();for(var r of e.options)r.selected=t.includes(vs(r));return}for(r of e.options)if(Fr(vs(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function _s(e){var t=new MutationObserver(()=>{gs(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),ni(()=>{t.disconnect()})}function vs(e){return`__value`in e?e.__value:e.value}var ys=s((()=>{Ei(),Mn(),Ir(),fe(),ft(),Sr()}));function bs(e){if(yt){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;K(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;K(e,`checked`,null),e.checked=r}}};e[Le]=n,Gt(n),Dn()}}function xs(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function K(e,t,n,r){var i=ws(e);yt&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===As)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Ts(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ss(e,t,n,r,i=!1,a=!1){if(yt&&i&&e.nodeName===js){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||bs(o)}var s=ws(e),c=s[Os],l=!s[ks];let u=yt&&c;u&&pt(!1);var d=t||{},f=e.nodeName===Ms;for(var p in t)p in n||(n[p]=null);n.class?n.class=is(n.class):(r||n[Es])&&(n.class=null),n[Ds]&&(n.style??=null);var m=Ts(e);if(e.nodeName===js&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==d.type||h===void 0&&e.hasAttribute(`type`))&&(d.type=h,K(e,`type`,h,a))}for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){ds(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[Es],n[Es]),d[i]=o,d[Es]=n[Es];continue}if(i===`style`){ms(e,o,t?.[Ds],n[Ds]),d[i]=o,d[Ds]=n[Ds];continue}var g=d[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var _=i[0]+i[1];if(_!==`$$`)if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=sa(r);if(oa(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(v)Ta(r,e,o),Ea([r]);else if(o!=null){function y(e){d[i].call(this,e)}d[n]=Sa(r,e,y,t)}}else if(i===`style`)K(e,i,o);else if(i===`autofocus`)Tn(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)xs(e,o);else{var b=i;l||(b=ca(b));var x=b===`defaultValue`||b===`defaultChecked`;if(o==null&&!c&&!x)if(s[i]=null,b===`value`||b===`checked`){let n=e,r=t===void 0;if(b===`value`){let e=n.defaultValue;n.removeAttribute(b),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(b),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i);else x||m.includes(b)&&(c||typeof o!=`string`)?(e[b]=o,b in s&&(s[b]=rt)):typeof o!=`function`&&K(e,b,o,a)}}}return u&&pt(!0),d}function Cs(e,t,n=[],r=[],i=[],a,o=!1,s=!1){zn(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Ns,l=!1;if(pi(()=>{var u=t(...n.map(z)),d=Ss(e,r,u,a,o,s);l&&c&&`value`in u&&gs(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||vi(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&vi(i[t]),i[t]=mi(()=>$o(e,()=>f))),d[t]=f}r=d}),c){var u=e;ci(()=>{gs(u,r.value,!0),_s(u)})}l=!0})}function ws(e){re
|
|||
|
|
/**
|
|||
|
|
* @license
|
|||
|
|
* MIT License
|
|||
|
|
*
|
|||
|
|
* Copyright (c) 2014-present, Lee Byron and other contributors.
|
|||
|
|
*
|
|||
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|||
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|||
|
|
* in the Software without restriction, including without limitation the rights
|
|||
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|||
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|||
|
|
* furnished to do so, subject to the following conditions:
|
|||
|
|
*
|
|||
|
|
* The above copyright notice and this permission notice shall be included in all
|
|||
|
|
* copies or substantial portions of the Software.
|
|||
|
|
*
|
|||
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|||
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|||
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|||
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|||
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|||
|
|
* SOFTWARE.
|
|||
|
|
*/
|
|||
|
|
function _c(e){return!!(e&&e[Td])}function vc(e){return!!(e&&e[Ed])}function yc(e){return vc(e)||_c(e)}function bc(e){return!!(e&&e[Dd])}function xc(e,t,n,r){var i=e===Md?t:e===Nd?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function Sc(){return{value:void 0,done:!0}}function Cc(e){return Array.isArray(e)?!0:!!Ec(e)}function wc(e){return!!(e&&typeof e.next==`function`)}function Tc(e){var t=Ec(e);return t&&t.call(e)}function Ec(e){var t=e&&(Fd&&e[Fd]||e[Id]);if(typeof t==`function`)return t}function Dc(e){var t=Ec(e);return t&&t===e.entries}function Oc(e){var t=Ec(e);return t&&t===e.keys}function kc(){return{value:!1}}function Ac(e){e&&(e.value=!0)}function jc(){}function Mc(e){return e.size===void 0&&(e.size=e.__iterate(Pc)),e.size}function Nc(e,t){if(typeof t!=`number`){var n=t>>>0;if(``+n!==t||n===4294967295)return NaN;t=n}return t<0?Mc(e)+t:t}function Pc(){return!0}function Fc(e,t,n){return(e===0&&!zc(e)||n!==void 0&&e<=-n)&&(t===void 0||n!==void 0&&t>=n)}function Ic(e,t){return Rc(e,t,0)}function Lc(e,t){return Rc(e,t,t)}function Rc(e,t,n){return e===void 0?n:zc(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function zc(e){return e<0||e===0&&1/e==-1/0}function Bc(e){return!!(e&&e[Wd])}function Vc(e){return bc(e)||Bc(e)}function Hc(e){return!!(e&&e[Gd])}function Uc(e){return!!(e&&e[Kd])}function Wc(e){return Array.isArray(e)||typeof e==`string`?!0:e&&typeof e==`object`&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}function Gc(){return tf||=new Qd([])}function Kc(e){var t=Yc(e);if(t)return t.fromEntrySeq();if(typeof e==`object`)return new $d(e);throw TypeError(`Expected Array or collection object of [k, v] entries, or keyed object: `+e)}function qc(e){var t=Yc(e);if(t)return t;throw TypeError(`Expected Array or collection object of values: `+e)}function Jc(e){var t=Yc(e);if(t)return Dc(e)?t.fromEntrySeq():Oc(e)?t.toSetSeq():t;if(typeof e==`object`)return new $d(e);throw TypeError(`Expected Array or collection object of values, or keyed object: `+e)}function Yc(e){return Wc(e)?new Qd(e):Cc(e)?new ef(e):void 0}function Xc(){return this.__ensureOwner()}function Zc(){return this.__ownerID?this:this.__ensureOwner(new jc)}function Qc(e){return e>>>1&1073741824|e&3221225471}function $c(e){if(e==null)return el(e);if(typeof e.hashCode==`function`)return Qc(e.hashCode(e));var t=sl(e);if(t==null)return el(t);switch(typeof t){case`boolean`:return t?1108378657:1108378656;case`number`:return tl(t);case`string`:return t.length>pf?nl(t):rl(t);case`object`:case`function`:return nee(t);case`symbol`:return al(t);default:if(typeof t.toString==`function`)return rl(t.toString());throw Error(`Value type `+typeof t+` cannot be hashed.`)}}function el(e){return e===null?1108378658:1108378659}function tl(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return Qc(t)}function nl(e){var t=gf[e];return t===void 0&&(t=rl(e),hf===mf&&(hf=0,gf={}),hf++,gf[e]=t),t}function rl(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Qc(t)}function il(e){if(typeof e!=`string`)return $c(e);for(var t=0,n=0;n<e.length;n++)t=af*t+e.charCodeAt(n)|0;return t}function al(e){var t=uf[e];return t===void 0?(t=cl(),uf[e]=t,t):t}function nee(e){var t;if(cf&&(t=lf.get(e),t!==void 0)||(t=e[ff],t!==void 0)||!sf&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ff],t!==void 0||(t=ol(e),t!==void 0)))return t;if(t=cl(),cf)lf.set(e,t);else if(of!==void 0&&of(e)===!1)throw Error(`Non-extensible objects are not allowed as keys.`);else if(sf)Object.defineProperty(e,ff,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[ff]=t;else if(e.nodeType!==void 0)e[ff]=t;else throw Error(`Unable to set a non-enumerable property on object.`);return t}function ol(e){if(e&&e.nodeType>0)switch(e.no
|
|||
|
|
`),Gp=async e=>{let t=typeof e==`string`?new Blob([e],{type:`text/plain`}):e,n=new FileReader;return new Promise((e,r)=>{n.onload=()=>{e(n.result)},n.onerror=()=>{r(n.error)},n.readAsDataURL(t)})},Kp=async e=>(await Gp(e)).split(`,`)[1],qp=async e=>{let t=Uint8Array.fromBase64(e);return new TextDecoder().decode(t)},Jp=(e,t)=>{let n=document.createElement(`a`),r=URL.createObjectURL(e);n.download=t??e.name??`${Date.now()}.${e.type.split(`/`)[1]}`,n.href=r,n.click(),globalThis.setTimeout(()=>{URL.revokeObjectURL(r)},0)}}));function Xp(e,t){var n=Xi,r=Ji,i=e();let a=ln(i,t=>{var a=i!==e(),o,s=Ji,c=Xi;Ai(r),ji(n);try{o=oi(()=>{ui(()=>{let n=e();a&&t(n)})})}finally{Ai(s),ji(c)}return a=!0,o});return t?{set:t,update:n=>t(n(e())),subscribe:a.subscribe}:{subscribe:a.subscribe}}var Zp=s((()=>{Ei(),pn(),Pn(),ia()})),Qp,$p,em,tm,nm,rm=s((()=>{Qp=/{{(.+?)}}/,$p=new RegExp(Qp.source,`g`),em=/\\\{\\\{.+?\\\}\\\}/g,tm=[`year`,`month`,`day`,`hour`,`minute`,`second`],nm=/^{{(?<innerTag>.+?)}}$/})),im,am,om,sm,cm,lm,uee,um,dm,fm=s((()=>{Yp(),Ip(),Zp(),rm(),im=ln([]),am=un([im],([e],t)=>{t(e.find(({collectionName:e,internalPath:t})=>e===void 0&&t!==void 0))}),om=ln(),sm=un([om,am],([e,t])=>e?.internalPath===void 0?t:e),cm=e=>{let t=`typedKeyPath`in e?e.typedKeyPath?.match(/[^:]+$/)?.[0]:e.typedKeyPath;return dn(im).find(n=>(`typedKeyPath`in e?n.typedKeyPath===t:!n.typedKeyPath)?`componentName`in e?n.componentName===e.componentName:n.collectionName===e.collectionName&&n.fileName===e.fileName&&(`isIndexFile`in e?n.isIndexFile===e.isIndexFile:!n.isIndexFile):!1)},lm={source:void 0,items:[],entryRelative:[]},uee=()=>{let e=dn(im);if(e===lm.source)return lm;let t=[],n=[];return e.forEach(e=>{let{internalPath:r,entryRelative:i}=e;if(r!==void 0)if(i)n.push(e);else{let n=jp(r).replace(em,`.+?`);t.push({folder:e,regexSub:RegExp(`^${n}${r?`(?=\\/|$)`:`$`}`),regexExact:RegExp(`^${n}$`)})}}),lm.source=e,lm.items=t,lm.entryRelative=n,lm},um=(e,{matchSubFolders:t=!0}={})=>{let{filename:n,dirname:r}=Vp(e);if(n.startsWith(`+`))return[];let{items:i,entryRelative:a}=uee(),o=r??``;return[...a.filter(({internalPath:t})=>e.startsWith(`${t}/`)),...i.filter(({regexSub:e,regexExact:n})=>(t?e:n).test(o)).map(({folder:e})=>e)].sort((e,t)=>t.internalPath.localeCompare(e.internalPath))},dm=e=>!!e&&!e.entryRelative&&!e.hasTemplateTags}));function dee(e,t){let n=t,r=e.slice(n).match(pm);r&&(n+=r[0].length);let i=e.slice(n).match(mm);if(!i)return null;let a=i[0];if(fee.test(a))return null;n+=a.length;let o=e.slice(n).match(pm);return o&&(n+=o[0].length),{value:a.normalize(),end:n}}var pm,mm,fee,pee,hm=s((()=>{pm=/^[\u061c\u200e\u200f\u2066-\u2069]+/,mm=/^[-.+0-9A-Z_a-z\u{a1}-\u{61b}\u{61d}-\u{167f}\u{1681}-\u{1fff}\u{200b}-\u{200d}\u{2010}-\u{2027}\u{2030}-\u{205e}\u{2060}-\u{2065}\u{206a}-\u{2fff}\u{3001}-\u{d7ff}\u{e000}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{1fffd}\u{20000}-\u{2fffd}\u{30000}-\u{3fffd}\u{40000}-\u{4fffd}\u{50000}-\u{5fffd}\u{60000}-\u{6fffd}\u{70000}-\u{7fffd}\u{80000}-\u{8fffd}\u{90000}-\u{9fffd}\u{a0000}-\u{afffd}\u{b0000}-\u{bfffd}\u{c0000}-\u{cfffd}\u{d0000}-\u{dfffd}\u{e0000}-\u{efffd}\u{f0000}-\u{ffffd}\u{100000}-\u{10fffd}]+/u,fee=/^[-.0-9]/,pee=(e,t)=>e.slice(t).match(mm)?.[0]??``})),gm,mee=s((()=>{gm=Symbol.for(`CST`)})),_m,vm,ym,bm,xm,Sm=s((()=>{mee(),_m=class extends Error{type;constructor(e,t){super(t),this.type=e}},vm=class extends _m{start;end;constructor(e,t,n,r){let i=r?`Missing ${r}`:e;t>=0&&(i+=` at ${t}`),super(e,i),this.start=t,this.end=n??t+1}},ym=class extends vm{constructor(e,t){let{start:n,end:r}=t[gm]??{start:-1,end:-1};super(e,n,r)}},bm=class extends _m{source;cause;constructor(e,t,n,r){super(e,t),this.source=n,r!==void 0&&(this.cause=r)}},xm=class extends _m{source;cause;constructor(e,t){super(e,t),this.source=`�`}}}));function Cm(e,t){if(Im.startsWith(e,Fm))t&&(Fm+=e.length);else throw Lm(Fm,e)}function hee(e){Fm=0,Im=e;let t=vee();if(Im.startsWith(`.match`,Fm))return gee(t);let n=t.length>0||Im.startsWith(`{{`,Fm);!n&&Fm>0&&(Fm=0);let r=wm(n);if(n&&(Mm(),Fm<Im.length))throw Rm(`extra-content`,Fm,Im.length);return{type:`m
|
|||
|
|
\r  `),Lm=(e,t)=>new vm(`missing-syntax`,e,e+t.length,t),Rm=(...e)=>new vm(...e)}));function Tee(e,t){let{node:n,pattern:r}=t,{functionRef:i=n,attributes:a=null,declaration:o=n,expression:s=n,key:c=n,markup:l=n,options:u=null,value:d=n,variant:f=n}=t,p=(e,t)=>{if(e){let n=u?.(e,t);if(d)for(let n of Object.values(e))d(n,t,`option`);n?.()}},m=(e,t)=>{if(e){let n=a?.(e,t);if(d)for(let n of Object.values(e))n!==!0&&d(n,t,`attribute`);n?.()}},h=(e,t)=>{if(typeof e==`object`){let n;switch(e.type){case`expression`:if(n=s?.(e,t),e.arg&&d?.(e.arg,t,`arg`),e.functionRef){let n=i?.(e.functionRef,t,e.arg);p(e.functionRef.options,t),n?.()}m(e.attributes,t);break;case`markup`:n=l?.(e,t),p(e.options,t),m(e.attributes,t);break}n?.()}},g=e=>{let t=r?.(e);for(let t of e)h(t,`placeholder`);t?.()};for(let t of e.declarations){let e=o?.(t);t.value&&h(t.value,`declaration`),e?.()}if(e.type===`message`)g(e.pattern);else{if(d)for(let t of e.selectors)d(t,`selector`,`arg`);for(let t of e.variants){let e=f?.(t);c&&t.keys.forEach(c),g(t.value),e?.()}}}var Eee=s((()=>{}));function Dee(e,t=(e,t)=>{throw new ym(e,t)}){let n=0,r=null,i=new Set,a=new Set,o=new Set,s=new Set,c=new Set,l=new Set,u=!0;Tee(e,{declaration(e){if(e.name)return(e.value.functionRef||e.type===`local`&&e.value.arg?.type===`variable`&&i.has(e.value.arg.name))&&i.add(e.name),e.type===`local`&&s.add(e.name),u=e.type===`local`,()=>{a.has(e.name)?t(`duplicate-declaration`,e):a.add(e.name)}},expression({functionRef:e}){e&&o.add(e.name)},value(e,o,s){if(e.type===`variable`)switch(c.add(e.name),o){case`declaration`:(s!==`arg`||u)&&a.add(e.name);break;case`selector`:n+=1,r=e,i.has(e.name)||t(`missing-selector-annotation`,e)}},variant(e){let{keys:i}=e;i.length!==n&&t(`key-mismatch`,e);let a=JSON.stringify(i.map(e=>e.type===`literal`?e.value:0));l.has(a)?t(`duplicate-variant`,e):l.add(a),r&&=i.every(e=>e.type===`*`)?null:e}}),r&&t(`missing-fallback`,r);for(let e of s)c.delete(e);return{functions:o,variables:c}}var Oee=s((()=>{Sm(),Eee()}));function zm(e){if(e)try{typeof e==`string`&&(e=new Intl.Locale(e));let t=e.getTextInfo?.()??e.textInfo;if(t?.direction)return t.direction;let n=e.maximize().script;if(n)return kee.includes(n)?`rtl`:`ltr`}catch{}return`auto`}var kee,Bm=s((()=>{kee=`Adlm,Arab,Hebr,Mand,Nkoo,Rohg,Syrc,Thaa`}));function Aee(e){if(e&&typeof e==`object`&&(e=e.valueOf()),typeof e==`boolean`)return e;if(e&&typeof e==`object`&&(e=String(e)),e===`true`)return!0;if(e===`false`)return!1;throw RangeError(`Not a boolean`)}function Vm(e){if(e&&typeof e==`object`&&(e=e.valueOf()),e&&typeof e==`object`&&(e=String(e)),typeof e==`string`&&/^(0|[1-9][0-9]*)$/.test(e)&&(e=Number(e)),typeof e==`number`&&e>=0&&Number.isInteger(e))return e;throw RangeError(`Not a positive integer`)}function Hm(e){if(e&&typeof e==`object`&&(e=e.valueOf()),typeof e==`string`)return e;if(e&&typeof e==`object`)return String(e);throw RangeError(`Not a string`)}var Um=s((()=>{}));function Wm(e){let t;if(typeof e==`object`){let n=e?.valueOf;typeof n==`function`&&(t=e.options,e=n.call(e))}if(typeof e==`string`)try{e=JSON.parse(e)}catch{}if(typeof e!=`bigint`&&typeof e!=`number`)throw new xm(`bad-operand`,`Input is not numeric`);return{value:e,options:t}}function Gm(e,t,n,r){let{dir:i,locales:a}=e;n.useGrouping===`never`&&(n.useGrouping=!1),r&&`select`in n&&!e.literalOptionKeys.has(`select`)&&(e.onError(`bad-option`,`The option select may only be set by a literal value`),r=!1);let o,s,c,l;return{type:`number`,get dir(){return i??=(o??=Intl.NumberFormat.supportedLocalesOf(a,n)[0],zm(o)),i},get options(){return{...n}},selectKey:r?e=>{let r=t;n.style===`percent`&&(typeof r==`bigint`?r*=100n:r*=100);let i=String(r);if(e.has(i))return i;if(n.select===`exact`)return null;let o=n.select?{...n,select:void 0,type:n.select}:n;return c??=new Intl.PluralRules(a,o).select(Number(r)),e.has(c)?c:null}:void 0,toParts(){s??=new Intl.NumberFormat(a,n);let e=s.formatToParts(t);return o??=s.resolvedOptions().locale,i??=zm(o),i===`ltr`||i===`rtl`?[{type:`number`,dir:i,locale:o,parts:e}]:[{type:`number`,locale:o,parts:e}]},toString(){retur
|
|||
|
|
`)}},Cg.defaultYaml={explicit:!1,version:`1.2`},Cg.defaultTags={"!!":`tag:yaml.org,2002:`}}));function cte(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function lte(e){let t=new Set;return hg(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function ute(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function dte(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=lte(e);let a=ute(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(dg(t.node)||Qh(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}var wg=s((()=>{mg(),Sg()}));function Tg(e,t,n,r){if(r&&typeof r==`object`)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=Tg(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=Tg(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=Tg(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=Tg(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}return e.call(t,n,r)}var Eg=s((()=>{}));function Dg(e,t,n){if(Array.isArray(e))return e.map((e,t)=>Dg(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!pg(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var Og=s((()=>{mg()})),kg,Ag=s((()=>{Eg(),mg(),Og(),kg=class{constructor(e){Object.defineProperty(this,og,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!cg(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=Dg(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?Tg(i,{"":o},``,o):o}}}));function jg(e,t,n){if(sg(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(Qh(t)){let r=0;for(let i of t.items){let t=jg(e,i,n);t>r&&(r=t)}return r}else if(ug(t)){let r=jg(e,t.key,n),i=jg(e,t.value,n);return Math.max(r,i)}return 1}var Mg,Ng=s((()=>{wg(),Sg(),mg(),Ag(),Og(),Mg=class extends kg{constructor(e){super(eg),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],hg(e,{Node:(e,t)=>{(sg(t)||pg(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(Dg(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=jg(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(cte(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}}})),Pg,Fg,Ig=s((()=>{mg(),Ag(),Og(),Pg=e=>!e||typeof e!=`function`&&typeof e!=`object`,Fg=class extends kg{constructor(e){super(ig),this.value=e}toJSON(e,t){return t?.keep?this.va
|
|||
|
|
`)?Wg(n,t):n.includes(`
|
|||
|
|
`)?`
|
|||
|
|
`+Wg(n,t):(e.endsWith(` `)?``:` `)+n}));function Jg(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=Yg(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===`
|
|||
|
|
`)n===`block`&&(h=Yg(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==`
|
|||
|
|
`&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==`
|
|||
|
|
`&&t!==` `&&(f=h)}if(h>=d)if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`\n${t}${e.slice(0,a)}`:(n===`quoted`&&u[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,a)}`)}return v}function Yg(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
|
|||
|
|
`);r=t,i=t+1,a=e[i]}return r}var Xg,Zg,Qg,pte=s((()=>{Xg=`flow`,Zg=`block`,Qg=`quoted`}));function mte(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
|
|||
|
|
`){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function $g(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(a_(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length<i)e+=1;else{for(o+=n.slice(s,e)+`
|
|||
|
|
|
|||
|
|
`;n[e+2]===`\\`&&n[e+3]===`n`&&n[e+4]!==`"`;)o+=`
|
|||
|
|
`,e+=2;o+=a,n[e+2]===` `&&(o+=`\\`),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:Jg(o,a,Qg,i_(t,!1))}function e_(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|||
|
|
`)||/[ \t]\n|\n[ \t]/.test(e))return $g(e,t);let n=t.indent||(a_(e)?` `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:Jg(r,n,Xg,i_(t,!1))}function t_(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=$g;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?e_:i&&!t?$g:n?e_:$g}return r(e,t)}function n_({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/\n[\t ]+$/.test(n))return t_(n,r);let l=r.indent||(r.forceBlockIndent||a_(n)?` `:``),u=o===`literal`?!0:o===`folded`||t===Fg.BLOCK_FOLDED?!1:t===Fg.BLOCK_LITERAL||!mte(n,c,l.length);if(!n)return u?`|
|
|||
|
|
`:`>
|
|||
|
|
`;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==`
|
|||
|
|
`&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(`
|
|||
|
|
`);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===`
|
|||
|
|
`&&(p=p.slice(0,-1)),p.replace(o_,`$&${l}`));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e===` `)h=!0;else if(e===`
|
|||
|
|
`)_=g;else break}let v=n.substring(0,_<g?_+1:g);v&&=(n=n.substring(v.length),v.replace(/\n+/g,`$&${l}`));let y=(h?l?`2`:`1`:``)+d;if(e&&(y+=` `+s(e.replace(/ ?[\r\n]+/g,` `)),i&&i()),!u){let e=n.replace(/\n+/g,`
|
|||
|
|
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${l}`),i=!1,a=i_(r,!0);o!==`folded`&&t!==Fg.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=Jg(`${v}${e}${p}`,l,Zg,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function hte(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(`
|
|||
|
|
`)||u&&/[[\]{},]/.test(a))return t_(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(`
|
|||
|
|
`)?t_(a,t):n_(e,t,n,r);if(!s&&!u&&i!==Fg.PLAIN&&a.includes(`
|
|||
|
|
`))return n_(e,t,n,r);if(a_(a)){if(c===``)return t.forceBlockIndent=!0,n_(e,t,n,r);if(s&&c===l)return t_(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return t_(a,t)}return s?d:Jg(d,c,Xg,i_(t,!1))}function r_(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==Fg.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=Fg.QUOTE_DOUBLE);let c=e=>{switch(e){case Fg.BLOCK_FOLDED:case Fg.BLOCK_LITERAL:return i||a?t_(o.value,t):n_(o,t,n,r);case Fg.QUOTE_DOUBLE:return $g(o.value,t);case Fg.QUOTE_SINGLE:return e_(o.value,t);case Fg.PLAIN:return hte(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}var i_,a_,o_,s_=s((()=>{Ig(),pte(),i_=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),a_=e=>/^(%|---|\.\.\.)/m.test(e);try{o_=RegExp(`(^|(?<!
|
|||
|
|
))
|
|||
|
|
+(?!
|
|||
|
|
|$)`,`g`)}catch{o_=/\n+(?!\n|$)/g}}));function c_(e,t){let n=Object.assign({blockQuote:!0,commentString:Gg,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function gte(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(dg(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function _te(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(dg(e)||Qh(e))&&e.anchor;a&&cte(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function l_(e,t,n,r){if(ug(e))return e.toString(t,n,r);if(sg(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=$h(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=gte(t.doc.schema.tags,a);let o=_te(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):dg(a)?r_(a,t,n,r):a.toString(t,n,r);return o?dg(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}var u_=s((()=>{wg(),mg(),qg(),s_()}));function vte({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=$h(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(Qh(e)||!$h(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||Qh(e)||(dg(e)?e.type===Fg.BLOCK_FOLDED||e.type===Fg.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=l_(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=Kg(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=Kg(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=Kg(g,n.indent,l(f))));let _,v,y;$h(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&dg(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&fg(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=l_(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?`
|
|||
|
|
`:``,v){let e=l(v);S+=`\n${Wg(e,n.indent)}`}x===``&&!n.inFlow?S===`
|
|||
|
|
`&&y&&(S=`
|
|||
|
|
|
|||
|
|
`):S+=`\n${n.indent}`}else if(!p&&Qh(t)){let e=x[0],r=x.indexOf(`
|
|||
|
|
`),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&n<r&&x[n+1]===`!`&&(n=x.indexOf(` `,n+1)),(n===-1||r<n)&&(t=!0)}t||(S=`\n${n.indent}`)}}else(x===``||x[0]===`
|
|||
|
|
`)&&(S=``);return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=Kg(g,n.indent,l(y)):h&&i&&i(),g}var yte=s((()=>{mg(),Ig(),u_(),qg()}));function d_(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}var f_=s((()=>{}));function p_(e,t,n){let r=h_(e,n);if(fg(r))for(let n of r.items)m_(e,t,n);else if(Array.isArray(r))for(let n of r)m_(e,t,n);else m_(e,t,r)}function m_(e,t,n){let r=h_(e,n);if(!lg(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function h_(e,t){return e&&sg(t)?t.resolve(e.doc,e):t}var g_,__,v_,y_=s((()=>{mg(),Ig(),g_=`<<`,__={identify:e=>e===g_||typeof e==`symbol`&&e.description===g_,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new Fg(Symbol(g_)),{addToJSMap:p_}),stringify:()=>g_},v_=(e,t)=>(__.identify(t)||dg(t)&&(!t.type||t.type===Fg.PLAIN)&&__.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===__.tag&&e.default)}));function b_(e,t,{key:n,value:r}){if($h(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(v_(e,n))p_(e,t,r);else{let i=Dg(n,``,e);if(t instanceof Map)t.set(i,Dg(r,i,e));else if(t instanceof Set)t.add(i);else{let a=bte(n,i,e),o=Dg(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function bte(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if($h(e)&&n?.doc){let t=c_(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),d_(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}var x_=s((()=>{f_(),y_(),u_(),mg(),Og()}));function S_(e,t,n){let r=Lg(e,void 0,n),i=Lg(t,void 0,n);return new C_(r,i)}var C_,w_=s((()=>{zg(),yte(),x_(),mg(),C_=class e{constructor(e,t=null){Object.defineProperty(this,og,{value:rg}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return $h(n)&&(n=n.clone(t)),$h(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return b_(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?vte(this,e,t,n):JSON.stringify(this)}}}));function T_(e,t,n){return(t.inFlow??e.flow?Ste:xte)(e,t,n)}function xte({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if($h(i))!d&&i.spaceBefore&&f.push(``),E_(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(ug(i)){let e=$h(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(``),E_(n,f,e.commentBefore,d))}d=!1;let s=l_(i,u,()=>o=null,()=>d=!0);o&&(s+=Kg(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t?`\n${c}${t}`:`
|
|||
|
|
`}}return e?(p+=`
|
|||
|
|
`+Wg(l(e),c),s&&s()):d&&o&&o(),p}function Ste({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if($h(i))i.spaceBefore&&d.push(``),E_(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(ug(i)){let e=$h(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),E_(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=$h(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=l_(i,c,()=>a=null);l||=d.length>u||o.includes(`
|
|||
|
|
`),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=Kg(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:`
|
|||
|
|
`;return`${e}\n${i}${p}`}else return`${f}${o}${d.join(` `)}${o}${p}`}function E_({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=Wg(t(r),e);n.push(i.trimStart())}}var D_=s((()=>{mg(),u_(),qg()}));function O_(e,t){let n=dg(t)?t.value:t;for(let r of e)if(ug(r)&&(r.key===t||r.key===n||dg(r.key)&&r.key.value===n))return r}var k_,A_=s((()=>{D_(),x_(),Ug(),mg(),w_(),Ig(),k_=class extends Hg{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(ng,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(S_(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=ug(e)?e:!e||typeof e!=`object`||!(`key`in e)?new C_(e,e?.value):new C_(e.key,e.value);let r=O_(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);dg(r.value)&&Pg(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=O_(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=O_(this.items,e)?.value;return(!t&&dg(n)?n.value:n)??void 0}has(e){return!!O_(this.items,e)}set(e,t){this.add(new C_(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)b_(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!ug(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),T_(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}}})),j_,M_=s((()=>{mg(),A_(),j_={collection:`map`,default:!0,nodeClass:k_,tag:`tag:yaml.org,2002:map`,resolve(e,t){return lg(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>k_.from(e,t,n)}}));function N_(e){let t=dg(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var P_,F_=s((()=>{zg(),D_(),Ug(),mg(),Ig(),Og(),P_=class extends Hg{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(ag,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=N_(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=N_(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&dg(r)?r.value:r}has(e){let t=N_(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=N_(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];dg(r)&&Pg(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(Dg(e,String(r++),t));return n}toString(e,t,n){return e?T_(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r==`function`){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(Lg(a,void 0,n))}}return i}}})),I_,L_=s((()=>{mg(),F_(),I_={collection:`seq`,default:!0,nodeClass:P_,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return fg(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>P_.from(e,t,n)}})),R_,z_=s((()=>{s_(),R_={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),r_(e,t,n,r)}}})),B_,V_=s((()=>{Ig(),B_={identify:e=>e==null,createNode:()=>new Fg(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Fg(null),stringify:({source:e},t)=>typeof e==`string`&&B_.test.tes
|
|||
|
|
`:` `)}return r_({comment:e,type:t,value:s},r,i,a)}}}));function uv(e,t){if(fg(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!ug(r)){if(lg(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new C_(new Fg(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=ug(r)?r:new C_(r)}}else t(`Expected a sequence for this tag`);return e}function dv(e,t,n){let{replacer:r}=n,i=new P_(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e))if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(S_(o,s,n))}return i}var fv,pv=s((()=>{mg(),w_(),Ig(),F_(),fv={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:uv,createNode:dv}})),mv,hv,gv=s((()=>{mg(),Og(),A_(),F_(),pv(),mv=class e extends P_{constructor(){super(),this.add=k_.prototype.add.bind(this),this.delete=k_.prototype.delete.bind(this),this.get=k_.prototype.get.bind(this),this.has=k_.prototype.has.bind(this),this.set=k_.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(ug(e)?(r=Dg(e.key,``,t),i=Dg(e.value,r,t)):r=Dg(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=dv(e,t,n),i=new this;return i.items=r.items,i}},mv.tag=`tag:yaml.org,2002:omap`,hv={collection:`seq`,identify:e=>e instanceof Map,nodeClass:mv,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=uv(e,t),r=[];for(let{key:e}of n.items)dg(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new mv,n)},createNode:(e,t,n)=>mv.from(e,t,n)}}));function _v({value:e,source:t},n){return t&&(e?vv:yv).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var vv,yv,Tte=s((()=>{Ig(),vv={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Fg(!0),stringify:_v},yv={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Fg(!1),stringify:_v}})),bv,xv,Sv,Ete=s((()=>{Ig(),G_(),bv={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:W_},xv={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():W_(e)}},Sv={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new Fg(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:W_}}));function Cv(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function wv(e,t,n){let{value:r}=e;if(Tv(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return W_(e)}var Tv,Ev,Dv,Ov,kv,Dte=s((()=>{G_(),Tv=e=>typeof e==`bigint`||Number.isInteger(e),Ev={identify:Tv,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Cv(e,2,2,n),stringify:e=>wv(e,2,`0b`)},
|
|||
|
|
`)?(n.push(`...`),n.push(Wg(t,``))):n.push(`... ${t}`)}else n.push(`...`);else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push(Wg(a(t),``)))}return n.join(`
|
|||
|
|
`)+`
|
|||
|
|
`}var jte=s((()=>{mg(),u_(),qg()}));function qv(e){if(Qh(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var Jv,Yv=s((()=>{Ng(),Ug(),mg(),w_(),Og(),Kv(),jte(),wg(),Eg(),zg(),ste(),Jv=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,og,{value:tg});let r=null;typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new Cg({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[og]:{value:tg}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=$h(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){qv(this.contents)&&this.contents.add(e)}addIn(e,t){qv(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=lte(this);e.anchor=!t||n.has(t)?ute(t||`a`,n):t}return new Mg(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=dte(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=Lg(e,l,p);return o&&Qh(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new C_(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return qv(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Vg(e)?this.contents==null?!1:(this.contents=null,!0):qv(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return Qh(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Vg(e)?!t&&dg(this.contents)?this.contents.value:this.contents:Qh(this.contents)?this.contents.getIn(e,t):void 0}has(e){return Qh(this.contents)?this.contents.has(e):!1}hasIn(e){return Vg(e)?this.contents!==void 0:Qh(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=Bg(this.schema,[e],t):qv(this.contents)&&this.contents.set(e,t)}setIn(e,t){Vg(e)?this.contents=t:this.contents==null?this.contents=Bg(this.schema,Array.from(e),t):qv(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new Cg({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new Cg({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new Gv(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},s=Dg(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?Tg(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.lengt
|
|||
|
|
`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}}}));function ty(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}var ny=s((()=>{}));function ry(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
|
|||
|
|
`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let t of e.items){for(let e of t.start)if(e.type===`newline`)return!0;if(t.sep){for(let e of t.sep)if(e.type===`newline`)return!0}if(ry(t.key)||ry(t.value))return!0}return!1;default:return!0}}var iy=s((()=>{}));function ay(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&ry(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}var oy=s((()=>{iy()}));function sy(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||dg(e)&&dg(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var cy=s((()=>{mg()}));function Mte({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??k_)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=ty(l,{indicator:`explicit-key-ind`,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type===`block-seq`?i(s,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in u&&u.indent!==r.indent&&i(s,`BAD_INDENT`,ly)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=`
|
|||
|
|
`+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||ry(u))&&i(u??l[l.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else p.found?.indent!==r.indent&&i(s,`BAD_INDENT`,ly);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&ay(r.indent,u,i),n.atKey=!1,sy(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=ty(d??[],{indicator:`map-value-ind`,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type===`block-scalar`});if(s=_.end,_.found){m&&(f?.type===`block-map`&&!_.hasNewline&&i(s,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),n.options.strict&&p.start<_.found.offset-1024&&i(g.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&ay(r.indent,f,i),s=c.range[2];let l=new C_(g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),_.comment&&(g.comment?g.comment+=`
|
|||
|
|
`+_.comment:g.comment=_.comment);let e=new C_(g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c<s&&i(c,`IMPOSSIBLE`,`Map comment with trailing content`),o.range=[r.offset,s,c??s],o}var ly,Nte=s((()=>{w_(),A_(),ny(),iy(),oy(),cy(),ly=`All mapping items must start at the same column`}));function Pte({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??P_)(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=ty(a,{indicator:`seq-item-ind`,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found)if(u.anchor||u.tag||l)l?.type===`block-seq`?i(u.end,`BAD_INDENT`,`All sequence items must start at the same column`):i(s,`MISSING_CHAR`,`Sequence item without - indicator`);else{c=u.end,u.comment&&(o.comment=u.comment);continue}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&ay(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}var Fte=s((()=>{F_(),ny(),oy()}));function uy(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}var dy=s((()=>{}));function Ite({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new((a?.nodeClass)??(o?k_:P_))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a<r.items.length;++a){let l=r.items[a],{start:d,key:f,sep:p,value:m}=l,h=ty(d,{flow:s,indicator:`explicit-key-ind`,next:f??p?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!h.found){if(!h.anchor&&!h.tag&&!p&&!m){a===0&&h.comma?i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`):a<r.items.length-1&&i(h.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${s}`),h.comment&&(c.comment?c.comment+=`
|
|||
|
|
`+h.comment:c.comment=h.comment),u=h.end;continue}!o&&n.options.strict&&ry(f)&&i(f,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`)}if(a===0)h.comma&&i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`);else if(h.comma||i(h.start,`MISSING_CHAR`,`Missing , between ${s} items`),h.comment){let e=``;loop:for(let t of d)switch(t.type){case`comma`:case`space`:break;case`comment`:e=t.source.substring(1);break loop;default:break loop}if(e){let t=c.items[c.items.length-1];ug(t)&&(t=t.value??t.key),t.comment?t.comment+=`
|
|||
|
|
`+e:t.comment=e,h.comment=h.comment.substring(e.length+1)}}if(!o&&!p&&!h.found){let r=m?e(n,m,h,i):t(n,h.end,p,null,h,i);c.items.push(r),u=r.range[2],py(m)&&i(r.range,`BLOCK_IN_FLOW`,fy)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);py(f)&&i(g.range,`BLOCK_IN_FLOW`,fy),n.atKey=!1;let _=ty(p??[],{flow:s,indicator:`map-value-ind`,next:m,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(_.found){if(!o&&!h.found&&n.options.strict){if(p)for(let e of p){if(e===_.found)break;if(e.type===`newline`){i(e,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`);break}}h.start<_.found.offset-1024&&i(_.found,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit flow sequence key`)}}else m&&(`source`in m&&m.source?.[0]===`:`?i(m,`MISSING_CHAR`,`Missing space after : in ${s}`):i(_.start,`MISSING_CHAR`,`Missing , or : between ${s} items`));let v=m?e(n,m,_,i):_.found?t(n,_.end,p,null,_,i):null;v?py(m)&&i(v.range,`BLOCK_IN_FLOW`,fy):_.comment&&(g.comment?g.comment+=`
|
|||
|
|
`+_.comment:g.comment=_.comment);let y=new C_(g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;sy(n,e.items,g)&&i(a,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(y)}else{let e=new k_(n.schema);e.flow=!0,e.items.push(y);let t=(v??g).range;e.range=[g.range[0],t[1],t[2]],c.items.push(e)}u=v?v.range[2]:_.end}}let d=o?`}`:`]`,[f,...p]=r.end,m=u;if(f?.source===d)m=f.offset+f.source.length;else{let e=s[0].toUpperCase()+s.substring(1),t=l?`${e} must end with a ${d}`:`${e} in block collection must be sufficiently indented and end with a ${d}`;i(u,l?`MISSING_CHAR`:`BAD_INDENT`,t),f&&f.source.length!==1&&p.unshift(f)}if(p.length>0){let e=uy(p,m,n.options.strict,i);e.comment&&(c.comment?c.comment+=`
|
|||
|
|
`+e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}var fy,py,Lte=s((()=>{mg(),w_(),A_(),F_(),dy(),ny(),iy(),cy(),fy=`Block collections are not allowed within flow collections`,py=e=>e&&(e.type===`block-map`||e.type===`block-seq`)}));function my(e,t,n,r,i,a){let o=n.type===`block-map`?Mte(e,t,n,r,a):n.type===`block-seq`?Pte(e,t,n,r,a):Ite(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function Rte(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a,`TAG_RESOLVE_FAILED`,e)):null;if(n.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offset<n.offset)&&i(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let s=n.type===`block-map`?`map`:n.type===`block-seq`?`seq`:n.start.source===`{`?`map`:`seq`;if(!a||!o||o===`!`||o===k_.tagName&&s===`map`||o===P_.tagName&&s===`seq`)return my(e,t,n,i,o);let c=t.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a,`BAD_COLLECTION_TYPE`,`${r.tag} used for ${s} collection, but expects ${r.collection??`scalar`}`,!0):i(a,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${o}`,!0),my(e,t,n,i,o)}let l=my(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=$h(u)?u:new Fg(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}var zte=s((()=>{mg(),Ig(),A_(),F_(),Nte(),Fte(),Lte()}));function Bte(e,t,n){let r=t.offset,i=Vte(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?Fg.BLOCK_FOLDED:Fg.BLOCK_LITERAL,o=t.source?Hte(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t===``||t===`\r`)s=e;else break}if(s===0){let e=i.chomp===`+`&&o.length>0?`
|
|||
|
|
`.repeat(Math.max(1,o.length-1)):``,n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:a,comment:i.comment,range:[r,n,n]}}let c=t.indent+i.indent,l=t.offset+i.length,u=0;for(let t=0;t<s;++t){let[r,a]=o[t];if(a===``||a===`\r`)i.indent===0&&r.length>c&&(c=r.length);else{r.length<c&&n(l+r.length,`MISSING_CHAR`,`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`),i.indent===0&&(c=r.length),u=t,c===0&&!e.atRoot&&n(l,`BAD_INDENT`,`Block scalar values in collections must be indented`);break}l+=r.length+a.length+1}for(let e=o.length-1;e>=s;--e)o[e][0].length>c&&(s=e+1);let d=``,f=``,p=!1;for(let e=0;e<u;++e)d+=o[e][0].slice(c)+`
|
|||
|
|
`;for(let e=u;e<s;++e){let[t,r]=o[e];l+=t.length+r.length+1;let s=r[r.length-1]===`\r`;if(s&&(r=r.slice(0,-1)),r&&t.length<c){let e=`Block scalar lines must not be less indented than their ${i.indent?`explicit indentation indicator`:`first line`}`;n(l-r.length-(s?2:1),`BAD_INDENT`,e),t=``}a===Fg.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f=`
|
|||
|
|
`):t.length>c||r[0]===` `?(f===` `?f=`
|
|||
|
|
`:!p&&f===`
|
|||
|
|
`&&(f=`
|
|||
|
|
|
|||
|
|
`),d+=f+t.slice(c)+r,f=`
|
|||
|
|
`,p=!0):r===``?f===`
|
|||
|
|
`?d+=`
|
|||
|
|
`:f=`
|
|||
|
|
`:(d+=f+r,f=` `,p=!1)}switch(i.chomp){case`-`:break;case`+`:for(let e=s;e<o.length;++e)d+=`
|
|||
|
|
`+o[e][0].slice(c);d[d.length-1]!==`
|
|||
|
|
`&&(d+=`
|
|||
|
|
`);break;default:d+=`
|
|||
|
|
`}let m=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,m,m]}}function Vte({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function Hte(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}var hy=s((()=>{Ig()}));function Ute(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case`scalar`:s=Fg.PLAIN,c=Wte(a,l);break;case`single-quoted-scalar`:s=Fg.QUOTE_SINGLE,c=Gte(a,l);break;case`double-quoted-scalar`:s=Fg.QUOTE_DOUBLE,c=Kte(a,l);break;default:return n(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${i}`),{value:``,type:null,comment:``,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=uy(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function Wte(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),gy(e)}function Gte(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),gy(e.slice(1,-1)).replace(/''/g,`'`)}function gy(e){let t,n;try{t=RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|||
|
|
`,`sy`),n=RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|||
|
|
`,`sy`)}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],a=` `,o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===``?a===`
|
|||
|
|
`?i+=a:a=`
|
|||
|
|
`:(i+=a+r[1],a=` `),o=n.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=o,r=s.exec(e),i+a+(r?.[1]??``)}function Kte(e,t){let n=``;for(let r=1;r<e.length-1;++r){let i=e[r];if(!(i===`\r`&&e[r+1]===`
|
|||
|
|
`))if(i===`
|
|||
|
|
`){let{fold:t,offset:i}=qte(e,r);n+=t,r=i}else if(i===`\\`){let i=e[++r],a=_y[i];if(a)n+=a;else if(i===`
|
|||
|
|
`)for(i=e[r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`\r`&&e[r+1]===`
|
|||
|
|
`)for(i=e[++r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`x`||i===`u`||i===`U`){let a=i===`x`?2:i===`u`?4:8;n+=Jte(e,r+1,a,t),r+=a}else{let i=e.substr(r-1,2);t(r-1,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),n+=i}}else if(i===` `||i===` `){let t=r,a=e[r+1];for(;a===` `||a===` `;)a=e[++r+1];a!==`
|
|||
|
|
`&&!(a===`\r`&&e[r+2]===`
|
|||
|
|
`)&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}return(e[e.length-1]!==`"`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing "quote`),n}function qte(e,t){let n=``,r=e[t+1];for(;(r===` `||r===` `||r===`
|
|||
|
|
`||r===`\r`)&&!(r===`\r`&&e[t+2]!==`
|
|||
|
|
`);)r===`
|
|||
|
|
`&&(n+=`
|
|||
|
|
`),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}function Jte(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}var _y,vy=s((()=>{Ig(),dy(),_y={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
|
|||
|
|
`,r:`\r`,t:` `,v:`\v`,N:`Â…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `}}));function yy(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?Bte(e,t,r):Ute(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,l;l=e.options.stringKeys&&e.atKey?e.schema[ig]:c?Yte(e.schema,i,c,n,r):t.type===`scalar`?Xte(e,i,t,r):e.schema[ig];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=dg(a)?a:new Fg(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new Fg(i)}return u.range=s,u.source=i,a&&(u.type=a),c&&(u.tag=c),l.format&&(u.format=l.format),o&&(u.comment=o),u}function Yte(e,t,n,r,i){if(n===`!`)return e[ig];let a=[];for(let t of e.tags)if(!t.collection&&t.tag===n)if(t.default&&t.test)a.push(t);else return t;for(let e of a)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[ig])}function Xte({atKey:e,directives:t,schema:n},r,i,a){let o=n.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(r))||n[ig];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[ig];o.tag!==e.tag&&a(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}var Zte=s((()=>{mg(),Ig(),hy(),vy()}));function Qte(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}var $te=s((()=>{}));function by(e,t,n,r){let i=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case`alias`:l=ene(e,t,r),(s||c)&&r(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:l=yy(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=Rte(Sy,e,t,n,r),s&&(l.anchor=s.source.substring(1))}catch(e){r(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),u=!1}return l??=xy(e,t.offset,void 0,null,n,r),s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!dg(l)||typeof l.value!=`string`||l.tag&&l.tag!==`tag:yaml.org,2002:str`)&&r(c??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),a&&(l.spaceBefore=!0),o&&(t.type===`scalar`&&t.source===``?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function xy(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=yy(e,{type:`scalar`,offset:Qte(t,n,r),indent:-1,source:``},s,l);return o&&(u.anchor=o.source.substring(1),u.anchor===``&&l(o,`BAD_ALIAS`,`Anchor cannot be an empty string`)),i&&(u.spaceBefore=!0),a&&(u.comment=a,u.range[2]=c),u}function ene({options:e},{offset:t,source:n,end:r},i){let a=new Mg(n.substring(1));a.source===``&&i(t,`BAD_ALIAS`,`Alias cannot be an empty string`),a.source.endsWith(`:`)&&i(t+n.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let o=t+n.length,s=uy(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}var Sy,tne=s((()=>{Ng(),mg(),zte(),Zte(),dy(),$te(),Sy={composeNode:by,composeEmptyNode:xy}}));function nne(e,t,{offset:n,start:r,value:i,end:a},o){let s=new Jv(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=ty(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!l.hasNewline&&o(l.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),s.contents=i?by(c,i,l,o):xy(c,l.end,r,null,l,o);let u=s.contents.range[2],d=uy(a,u,!1,o
|
|||
|
|
|
|||
|
|
`:`
|
|||
|
|
`)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var Ty,Ey=s((()=>{ste(),Yv(),ey(),mg(),rne(),dy(),Ty=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=Cy(e);r?this.warnings.push(new Qv(i,t,n)):this.errors.push(new Zv(i,t,n))},this.directives=new Cg({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=wy(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(Qh(i)&&!i.flow&&i.items.length>0){let e=i.items[0];ug(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:wy(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=Cy(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=nne(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Zv(Cy(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new Zv(Cy(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=uy(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Zv(Cy(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new Jv(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),e.range=[0,t,t],this.decorate(e,!1),yield e}}}})),ine=s((()=>{hy(),vy(),s_()}));function Dy(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),Oy(Object.freeze([]),e,t)}function Oy(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;t<a.items.length;++t){let r=Oy(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r==`number`)t=r-1;else if(r===ky)return ky;else r===jy&&(a.items.splice(t,1),--t)}typeof r==`function`&&i===`key`&&(r=r(t,e))}}return typeof r==`function`?r(t,e):r}var ky,Ay,jy,ane=s((()=>{ky=Symbol(`break visit`),Ay=Symbol(`skip children`),jy=Symbol(`remove item`),Dy.BREAK=ky,Dy.SKIP=Ay,Dy.REMOVE=jy,Dy.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},Dy.parentCollection=(e,t)=>{let n=Dy.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)}}));function one(e){switch(e){case``:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case`
|
|||
|
|
`:case`\r
|
|||
|
|
`:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}var My=s((()=>{ine(),ane()}));function Ny(e){switch(e){case void 0:case` `:case`
|
|||
|
|
`:case`\r`:case` `:return!0;default:return!1}}var Py,Fy,Iy,Ly,Ry,zy,By=s((()=>{My(),Py=new Set(`0123456789ABCDEFabcdef`),Fy=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),Iy=new Set(`,[]{}`),Ly=new Set(` ,[]{}
|
|||
|
|
\r `),Ry=e=>!e||Ly.has(e),zy=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===`
|
|||
|
|
`||t===`\r`&&this.buffer[e+1]===`
|
|||
|
|
`}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===` `;)t=this.buffer[++n+e];if(t===`\r`){let t=this.buffer[n+e+1];if(t===`
|
|||
|
|
`||!t&&!this.atEnd)return e+n+1}return t===`
|
|||
|
|
`||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t===`-`||t===`.`){let t=this.buffer.substr(e,3);if((t===`---`||t===`...`)&&Ny(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!=`number`||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
|
|||
|
|
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]===`\r`&&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case`stream`:return yield*this.parseStream();case`line-start`:return yield*this.parseLineStart();case`block-start`:return yield*this.parseBlockStart();case`doc`:return yield*this.parseDocument();case`flow`:return yield*this.parseFlowCollection();case`quoted-scalar`:return yield*this.parseQuotedScalar();case`block-scalar`:return yield*this.parseBlockScalar();case`plain-scalar`:return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext(`stream`);if(e[0]===``&&(yield*this.pushCount(1),e=e.substring(1)),e[0]===`%`){let t=e.length,n=e.indexOf(`#`);for(;n!==-1;){let r=e[n-1];if(r===` `||r===` `){t=n-1;break}else n=e.indexOf(`#`,n+1)}for(;;){let n=e[t-1];if(n===` `||n===` `)--t;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),`stream`}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),`stream`}return yield``,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext(`line-start`);if(e===`-`||e===`.`){if(!this.atEnd&&!this.hasChars(4))return this.setNext(`line-start`);let e=this.peek(3);if((e===`---`||e===`...`)&&Ny(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,e===`---`?`doc`:`stream`}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Ny(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext(`block-start`);if((e===`-`||e===`?`||e===`:`)&&Ny(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,`block-start`}return`doc`}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext(`doc`);let t=yield*this.pushIndicators();switch(e[t]){case`#`:yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),`doc`;case`*`:return yield*this.pushUntil(Ry),`doc`;case`"`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(r===null)return this.setNext(`flow`);if((n!==-1&&n<this.indentNext&&r[0]!==`#`||n===0&&(r.startsWith(`---`)||r.startsWith(`...`))&&Ny(r[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(r[0]===`]`||r[0]===`}`)))return this.flowLevel=0,yield``,yield*this.parseLineStart();let i=0;for(;r[i]===`,`;)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return`flow`;case`#`:return yield*this.pushCount(r.length-i),`flow`;case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),this.flowKey=!0,--this.flowLevel,this.flowLevel?`flow`:`doc`;case`*`:return yield*this.pushUntil(Ry),`flow`;case`"`:case`'`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||Ny(e)||e===`,`)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),`flow`}default:return
|
|||
|
|
`,this.pos);if(r!==-1){for(;r!==-1;){let e=this.continueScalar(r+1);if(e===-1)break;r=n.indexOf(`
|
|||
|
|
`,e)}r!==-1&&(t=r-(n[r-1]===`\r`?2:1))}if(t===-1){if(!this.atEnd)return this.setNext(`quoted-scalar`);t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?`flow`:`doc`}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t===`+`)this.blockScalarKeep=!0;else if(t>`0`&&t<=`9`)this.blockScalarIndent=Number(t)-1;else if(t!==`-`)break}return yield*this.pushUntil(e=>Ny(e)||e===`#`)}*parseBlockScalar(){let e=this.pos-1,t=0,n;loop:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case` `:t+=1;break;case`
|
|||
|
|
`:e=r,t=0;break;case`\r`:{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext(`block-scalar`);if(e===`
|
|||
|
|
`)break}default:break loop}if(!n&&!this.atEnd)return this.setNext(`block-scalar`);if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(`
|
|||
|
|
`,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n===` `;)n=this.buffer[++r];if(n===` `){for(;n===` `||n===` `||n===`\r`||n===`
|
|||
|
|
`;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r===`\r`&&(r=this.buffer[--n]);let i=n;for(;r===` `;)r=this.buffer[--n];if(r===`
|
|||
|
|
`&&n>=this.pos&&n+1+t>i)e=n;else break}while(!0);return yield``,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===`:`){let r=this.buffer[n+1];if(Ny(r)||e&&Iy.has(r))break;t=n}else if(Ny(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===`
|
|||
|
|
`?(n+=1,r=`
|
|||
|
|
`,i=this.buffer[n+1]):t=n),i===`#`||e&&Iy.has(i))break;if(r===`
|
|||
|
|
`){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&Iy.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield``,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(Ry),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,n=this.charAt(1);if(Ny(n)||t&&Iy.has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!Ny(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Fy.has(t))t=this.buffer[++e];else if(t===`%`&&Py.has(this.buffer[e+1])&&Py.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
|
|||
|
|
`?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
|
|||
|
|
`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}})),Vy,Hy=s((()=>{Vy=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}}}));function Uy(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Wy(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function Gy(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function Ky(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function qy(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function Jy(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function Yy(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!Uy(t.start,`explicit-key-ind`)&&!Uy(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,Gy(t.value)?t.value.end?Jy(t.value.end,t.sep):t.value.end=t.sep:Jy(t.start,t.sep),delete t.sep)}var Xy,Zy=s((()=>{My(),By(),Xy=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new zy,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=one(e);if(!t){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(t===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=t,yield*this.step(),t){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-coll
|
|||
|
|
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
|
|||
|
|
`,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Jy(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey)if(!t.sep)if(Uy(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=qy(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Uy(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(Gy(t.key)&&!Uy(t.sep,`newline`)){let e=qy(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):Uy(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!Uy(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Jy(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(thi
|
|||
|
|
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
|
|||
|
|
`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=qy(Ky(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=qy(Ky(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}}));function sne(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Vy||null,prettyErrors:t}}function cne(e,t={}){let{lineCounter:n,prettyErrors:r}=sne(t),i=new Xy(n?.addNewLine),a=new Ty(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new Zv(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach($v(e,n)),o.warnings.forEach($v(e,n))),o}function lne(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=cne(e,n);if(!i)return null;if(i.warnings.forEach(e=>d_(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function Qy(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return cg(e)&&!r?e.toString(n):new Jv(e,r,n).toString(n)}var une=s((()=>{Ey(),Yv(),ey(),f_(),mg(),Hy(),Zy()})),$y=s((()=>{Ey(),Yv(),Kv(),ey(),Ng(),mg(),w_(),Ig(),A_(),F_(),My(),By(),Hy(),Zy(),une(),Sg()})),eb=s((()=>{$y(),$y()})),tb,nb=s((()=>{tb=({date:e=new Date,timeZone:t=void 0}={})=>{let n={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:`longOffset`};return Object.fromEntries(new Intl.DateTimeFormat(`en-US`,{...n,hour12:!1,timeZone:t}).formatToParts(e).filter(({type:e})=>e in n).map(({type:e,value:t})=>[e,e===`hour`&&t===`24`?`00`:t]))}})),rb,dne=s((()=>{rb=new Map([[`ß`,`ss`],[`ẞ`,`Ss`],[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`À`,`A`],[`Ã�`,`A`],[`Â`,`A`],[`Ã`,`A`],[`Ä`,`Ae`],[`Ã…`,`A`],[`Æ`,`AE`],[`Ç`,`C`],[`È`,`E`],[`É`,`E`],[`Ê`,`E`],[`Ë`,`E`],[`Æ�`,`A`],[`ÃŒ`,`I`],[`Ã�`,`I`],[`ÃŽ`,`I`],[`Ã�`,`I`],[`Ã�`,`D`],[`Ñ`,`N`],[`Ã’`,`O`],[`Ó`,`O`],[`Ô`,`O`],[`Õ`,`O`],[`Ö`,`Oe`],[`ÅŒ`,`O`],[`Å�`,`O`],[`Ø`,`O`],[`Å’`,`OE`],[`Ù`,`U`],[`Ú`,`U`],[`Û`,`U`],[`Ü`,`Ue`],[`Ű`,`U`],[`Ã�`,`Y`],[`Þ`,`TH`],[`ß`,`ss`],[`à `,`a`],[`á`,`a`],[`â`,`a`],[`ã`,`a`],[`ä`,`ae`],[`Ã¥`,`a`],[`æ`,`ae`],[`ç`,`c`],[`è`,`e`],[`é`,`e`],[`ê`,`e`],[`ë`,`e`],[`É™`,`a`],[`ì`,`i`],[`Ã`,`i`],[`î`,`i`],[`ï`,`i`],[`ð`,`d`],[`ñ`,`n`],[`ò`,`o`],[`ó`,`o`],[`ô`,`o`],[`õ`,`o`],[`ö`,`oe`],[`Å�`,`o`],[`Å‘`,`o`],[`ø`,`o`],[`Å
|
|||
|
|
/*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */
|
|||
|
|
function _b(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hne(e){if(Array.isArray(e))return e}function gne(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function _ne(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vne(e,t){return hne(e)||gne(e,t)||yne(e,t)||_ne()}function yne(e,t){if(e){if(typeof e==`string`)return _b(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_b(e,t):void 0}}function vb(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Mb(e,t,r)}}function bne(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return Nb(e,n)}}function yb(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bb;if(wb&&wb(e,null),!zb(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Tb(t)||(t[r]=e),i=e)}e[i]=!0}return e}function xne(e){for(let t=0;t<e.length;t++)Xb(e,t)||(e[t]=null);return e}function bb(e){let t=Ab(null);for(let r of Cb(e)){var n=vne(r,2);let i=n[0],a=n[1];Xb(e,i)&&(zb(a)?t[i]=xne(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=bb(a):t[i]=a)}return t}function Sne(e){switch(typeof e){case`string`:return e;case`number`:return Kb(e);case`boolean`:return qb(e);case`bigint`:return Jb?Jb(e):`0`;case`symbol`:return Yb?Yb(e):`Symbol()`;case`undefined`:return Zb(e);case`function`:case`object`:{if(e===null)return Zb(e);let t=e,n=xb(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Zb(e)}return Zb(e)}default:return Zb(e)}}function xb(e,t){for(;e!==null;){let n=Db(e,t);if(n){if(n.get)return vb(n.get);if(typeof n.value==`function`)return vb(n.value)}e=Eb(e)}function n(){return null}return n}function Cne(e){try{return Qb(e,``),!0}catch{return!1}}function Sb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ane(),t=e=>Sb(e);if(t.version=`3.4.12`,t.removed=[],!e||!e.document||e.document.nodeType!==yx.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=xb(d,`cloneNode`),p=xb(d,`remove`),m=xb(d,`nextSibling`),h=xb(d,`childNodes`),g=xb(d,`parentNode`),_=xb(d,`shadowRoot`),v=xb(d,`attributes`),y=o&&o.prototype?xb(o.prototype,`nodeType`):null,b=o&&o.prototype?xb(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C,w=!1,T=0,E=function(){if(T>0)throw $b(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},ee=function(e){E(),T++;try{return x.createHTML(e)}finally{T--}},te=function(e){E(),T++;try{return x.createScriptURL(e)}finally{T--}},ne=function(){return w||=(C=jne(u,i),!0),C},re=n,ie=re.implementation,ae=re.createNodeIterator,oe=re.createDocumentFragment,se=re.getElementsByTagName,ce=r.importNode,le=bx();t.isSupported=typeof Cb==`function`&&typeof g==`function`&&ie&&ie.createHTMLDocument!==void 0;let ue=dx,de=fx,D=px,fe=mx,pe=hx,me=wne,he=Tne,ge=Dne,_e=gx,ve=null,ye=yb({},[...ex,...tx,...nx,...ix,...ox]),be=null,xe=yb({},[...sx,...cx,...lx,...ux]),Se=Object.seal(Ab(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,we=null,Te=Object.seal(Ab(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ee=!0,De=!0,Oe=!1,ke=!0,Ae=!1,je=!0,Me=!1,Ne=!1,Pe=null,Fe=null,Ie=!1,Le=!1,Re=!1,ze=!1,Be=!0,Ve=!1,He=`user-content-`,Ue=!0,
|
|||
|
|
`+d),Ae&&(d=At(d)),x&&ze?ee(d):d},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};O(e),Ne=!0,Pe=ve,Fe=be},t.clearConfig=function(){pt=null,Ne=!1,Pe=null,Fe=null,x=C,S=``},t.isValidAttribute=function(e,t,n){pt||O({});let r=ft(e),i=ft(t);return k(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Xb(le,e)&&Lb(le[e],t)},t.removeHook=function(e,t){if(Xb(le,e)){if(t!==void 0){let n=Fb(le[e],t);return n===-1?void 0:Rb(le[e],n,1)[0]}return Ib(le[e])}},t.removeHooks=function(e){Xb(le,e)&&(le[e]=[])},t.removeAllHooks=function(){le=bx()},t}var Cb,wb,Tb,Eb,Db,Ob,kb,Ab,jb,Mb,Nb,Pb,Fb,Ib,Lb,Rb,zb,Bb,Vb,Hb,Ub,Wb,Gb,Kb,qb,Jb,Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix,ax,ox,sx,cx,lx,ux,dx,fx,px,mx,hx,gx,wne,Tne,Ene,Dne,_x,vx,One,kne,yx,Ane,jne,bx,xx,Sx,Mne=s((()=>{Cb=Object.entries,wb=Object.setPrototypeOf,Tb=Object.isFrozen,Eb=Object.getPrototypeOf,Db=Object.getOwnPropertyDescriptor,Ob=Object.freeze,kb=Object.seal,Ab=Object.create,jb=typeof Reflect<`u`&&Reflect,Mb=jb.apply,Nb=jb.construct,Ob||=function(e){return e},kb||=function(e){return e},Mb||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},Nb||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)},Pb=vb(Array.prototype.forEach),Fb=vb(Array.prototype.lastIndexOf),Ib=vb(Array.prototype.pop),Lb=vb(Array.prototype.push),Rb=vb(Array.prototype.splice),zb=Array.isArray,Bb=vb(String.prototype.toLowerCase),Vb=vb(String.prototype.toString),Hb=vb(String.prototype.match),Ub=vb(String.prototype.replace),Wb=vb(String.prototype.indexOf),Gb=vb(String.prototype.trim),Kb=vb(Number.prototype.toString),qb=vb(Boolean.prototype.toString),Jb=typeof BigInt>`u`?null:vb(BigInt.prototype.toString),Yb=typeof Symbol>`u`?null:vb(Symbol.prototype.toString),Xb=vb(Object.prototype.hasOwnProperty),Zb=vb(Object.prototype.toString),Qb=vb(RegExp.prototype.test),$b=bne(TypeError),ex=Ob(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),tx=Ob(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),nx=Ob([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),rx=Ob([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),ix=Ob(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),ax=Ob([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),ox=Ob([`#text`]),sx=Ob(`accept.action.align.al
|
|||
|
|
`),n=t.length-1;for(;n>=0&&Nx.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|||
|
|
`)}function Lne(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Rne(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function zne(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Bne(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|||
|
|
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|||
|
|
`)}function Ax(e,t){return xS.parse(e,t)}var jx,Mx,Vne,Nx,Hne,Une,Wne,Px,Gne,Fx,Ix,Lx,Kne,Rx,qne,zx,Jne,Yne,Bx,Vx,Xne,Hx,Zne,Qne,Ux,Wx,$ne,ere,tre,nre,Gx,rre,Kx,qx,Jx,ire,Yx,are,ore,sre,Xx,cre,Zx,Qx,lre,ure,dre,$x,eS,tS,nS,fre,pre,rS,mre,iS,aS,oS,sS,cS,lS,uS,dS,fS,pS,hre,mS,hS,gS,_S,vS,yS,bS,gre,xS,SS,CS,wS,TS=s((()=>{jx=Tx(),Mx={exec:()=>null},Vne=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),Nx={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ex(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ex(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ex(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ex(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Ex(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:Ex(e=>RegExp(`^ {0,${e}}>`))},Hne=/^(?:[ \t]*(?:\n|$))+/,Une=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Wne=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Px=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Gne=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Fx=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Ix=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Lx=Dx(Ix).replace(/bull/g,Fx).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Kne=Dx(Ix).replace(/bull/g,Fx).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Rx=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,qne=/^[^\n]+/,zx=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Jne=Dx(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,zx).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Yne=Dx(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Fx).getRegex(),Bx=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta
|
|||
|
|
]`).replace(`lheading`,Lx).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},tre=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,nre=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Gx=/^( {2,}|\\)\n(?!\s*$)/,rre=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Kx=/[\p{P}\p{S}]/u,qx=/[\s\p{P}\p{S}]/u,Jx=/[^\s\p{P}\p{S}]/u,ire=Dx(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,qx).getRegex(),Yx=/(?!~)[\p{P}\p{S}]/u,are=/(?!~)[\s\p{P}\p{S}]/u,ore=/(?:[^\s\p{P}\p{S}]|~)/u,sre=Dx(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,Vne?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Xx=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,cre=Dx(Xx,`u`).replace(/punct/g,Kx).getRegex(),Zx=Dx(Xx,`u`).replace(/punct/g,Yx).getRegex(),Qx=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,lre=Dx(Qx,`gu`).replace(/notPunctSpace/g,Jx).replace(/punctSpace/g,qx).replace(/punct/g,Kx).getRegex(),ure=Dx(Qx,`gu`).replace(/notPunctSpace/g,ore).replace(/punctSpace/g,are).replace(/punct/g,Yx).getRegex(),dre=Dx(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Jx).replace(/punctSpace/g,qx).replace(/punct/g,Kx).getRegex(),$x=Dx(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,Kx).getRegex(),eS=Dx(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Jx).replace(/punctSpace/g,qx).replace(/punct/g,Kx).getRegex(),tS=Dx(/\\(punct)/,`gu`).replace(/punct/g,Kx).getRegex(),nS=Dx(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),fre=Dx(Vx).replace(`(?:-->|$)`,`-->`).getRegex(),pre=Dx(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,fre).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),rS=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,mre=Dx(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,rS).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),iS=Dx(/^!?\[(label)\]\[(ref)\]/).replace(`label`,rS).replace(`ref`,zx).getRegex(),aS=Dx(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,zx).getRegex(),oS=Dx(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,iS).replace(`nolink`,aS).getRegex(),sS=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,cS={_backpedal:Mx,anyPunctuation:tS,autolink:nS,blockSkip:sre,br:Gx,code:nre,del:Mx,delLDelim:Mx,delRDelim:Mx,emStrongLDelim:cre,emStrongRDelimAst:lre,emStrongRDelimUnd:dre,escape:tre,link:mre,nolink:aS,punctuation:ire,reflink:iS,reflinkSearch:oS,tag:pre,text:rre,url:Mx},lS={...cS,link:Dx(/^!?\[(label)\]\((.*?)\)/).replace(`label`,rS).getRegex(),reflink:Dx(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,rS).getRegex()},uS={...cS,emStrongRDelimAst:ure,emStrongLDelim:Zx,delLDelim:$x,delRDelim:eS,url:Dx(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,sS).re
|
|||
|
|
`),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:kx(t[0],`
|
|||
|
|
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=kx(t[0],`
|
|||
|
|
`).split(`
|
|||
|
|
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
|
|||
|
|
`),c=s.replace(this.rules.other.blockquoteSetextReplace,`
|
|||
|
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
|
|||
|
|
${s}`:s,r=r?`${r}
|
|||
|
|
${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
|
|||
|
|
`+e.join(`
|
|||
|
|
`),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
|
|||
|
|
`+e.join(`
|
|||
|
|
`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
|
|||
|
|
`);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Rne(t[2].split(`
|
|||
|
|
`,1)[0],t[1].length),l=e.split(`
|
|||
|
|
`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
|
|||
|
|
`,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
|
|||
|
|
`,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
|
|||
|
|
`+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
|
|||
|
|
`+l}u=!l.trim(),r+=p+`
|
|||
|
|
`,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1;if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=Ine(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:kx(t[0],`
|
|||
|
|
`),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Fne(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
|
|||
|
|
`):[],a={type:`table`,raw:kx(t[0],`
|
|||
|
|
`),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Fne(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:kx(t[0],`
|
|||
|
|
`),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|||
|
|
`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=kx(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Lne(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),zne(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return zne(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;
|
|||
|
|
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Nx.tabCharGlobal,` `).replace(Nx.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
|
|||
|
|
`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|||
|
|
`)?``:`
|
|||
|
|
`)+i.raw,n.text+=`
|
|||
|
|
`+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|||
|
|
`)?``:`
|
|||
|
|
`)+i.raw,n.text+=`
|
|||
|
|
`+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
|
|||
|
|
`)?``:`
|
|||
|
|
`)+i.raw,r.text+=`
|
|||
|
|
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|||
|
|
`)?``:`
|
|||
|
|
`)+i.raw,n.text+=`
|
|||
|
|
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links){let e=Object.keys(this.tokens.links);e.length>0&&(n=n.replace(this.tokenizer.rules.inline.reflinkSearch,t=>e.includes(t.slice(t.lastIndexOf(`[`)+1,-1))?`[`+`a`.repeat(t.length-2)+`]`:t))}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,`++`),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i=``,a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(i=``),r=!1;let o;if(this.options.extensions?.inline?.some(n=>(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},_S=class{options;parser;constructor(e){this.options=e||jx}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(Nx.notSpaceStart)?.[0],i=e.replace(Nx.endingNewline,``)+`
|
|||
|
|
`;return r?`<pre><code class="language-`+Ox(r)+`">`+(n?i:Ox(i,!0))+`</code></pre>
|
|||
|
|
`:`<pre><code>`+(n?i:Ox(i,!0))+`</code></pre>
|
|||
|
|
`}blockquote({tokens:e}){return`<blockquote>
|
|||
|
|
${this.parser.parse(e)}</blockquote>
|
|||
|
|
`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|||
|
|
`}hr(e){return`<hr>
|
|||
|
|
`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
|
|||
|
|
`+r+`</`+i+`>
|
|||
|
|
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|||
|
|
`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|||
|
|
`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
|
|||
|
|
<thead>
|
|||
|
|
`+t+`</thead>
|
|||
|
|
`+r+`</table>
|
|||
|
|
`}tablerow({text:e}){return`<tr>
|
|||
|
|
${e}</tr>
|
|||
|
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|||
|
|
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ox(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Pne(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+Ox(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Pne(e);if(i===null)return Ox(n);e=i;let a=`<img src="${e}" alt="${Ox(n)}"`;return t&&(a+=` title="${Ox(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Ox(e.text)}},vS=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},yS=class e{options;renderer;textRenderer;constructor(e){this.options=e||jx,this.options.renderer=this.options.renderer||new _S,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new vS}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},bS=class{options;block;constructor(e){this.options=e||jx}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?gS.lex:gS.lexInline}provideParser(e=this.block){return e?yS.parse:yS.parseInline}},gre=class{defaults=Tx();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=yS;Renderer=_S;TextRenderer=vS;Lexer=gS;Tokenizer=hS;Hooks=bS;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)
|
|||
|
|
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Ox(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},xS=new gre,Ax.options=Ax.setOptions=function(e){return xS.setOptions(e),Ax.defaults=xS.defaults,Nne(Ax.defaults),Ax},Ax.getDefaults=Tx,Ax.defaults=jx,Ax.use=function(...e){return xS.use(...e),Ax.defaults=xS.defaults,Nne(Ax.defaults),Ax},Ax.walkTokens=function(e,t){return xS.walkTokens(e,t)},Ax.parseInline=xS.parseInline,Ax.Parser=yS,Ax.parser=yS.parse,Ax.Renderer=_S,Ax.TextRenderer=vS,Ax.Lexer=gS,Ax.lexer=gS.lex,Ax.Tokenizer=hS,Ax.Hooks=bS,Ax.parse=Ax,Ax.options,Ax.setOptions,SS=Ax.use,Ax.walkTokens,CS=Ax.parseInline,wS=Ax,yS.parse,gS.lex})),ES,_re=s((()=>{ES=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`)})),DS,vre=s((()=>{DS={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`�`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`}}));function OS(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}var kS=s((()=>{}));function yre(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var bre=s((()=>{}));function xre(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var Sre=s((()=>{}));function AS(e){return xre(e)||OS(e)}var Cre=s((()=>{Sre(),kS()}));function jS(e){let t=`&`+e+`;`;MS.innerHTML=t;let n=MS.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}var MS,wre=s((()=>{MS=document.createElement(`i`)}));function NS(e,t){let n=t||{},r=typeof n.additional==`string`?n.additional.charCodeAt(0):n.additional,i=[],a=0,o=-1,s=``,c,l;n.position&&(`start`in n.position||`indent`in n.position?(l=n.position.indent,c=n.position.start):c=n.position);let u=(c?c.line:0)||1,d=(c?c.column:0)||1,f=m(),p;for(a--;++a<=e.length;)if(p===10&&(d=(l?l[o]:0)||1),p=e.charCodeAt(a),p===38){let t=e.charCodeAt(a+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||r&&t===r){s+=String.fromCharCode(p),d++;continue}let o=a+1,c=o,l=o,u;if(t===35){l=++c;let t=e.charCodeAt(l);t===88||t===120?(u=`hexadecimal`,l=++c):u=`decimal`}else u=`named`;let _=``,v=``,y=``,b=u===`named`?AS:u===`decimal`?OS:yre;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&ES.includes(y)&&(_=y,v=jS(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`&&jS(y);e&&(_=y,v=e)}let S=1+l-o,C=``;if(!(!x&&n.nonTerminated===!1))if(!y)u!==`named`&&h(4,S);else if(u===`named`){if(x&&!v)h(5,1);else if(_!==y&&(l=c+_.length,S=1+l-c,x=!1),!x){let t=_?1:3;if(n.attribute){let n=e.charCodeAt(l);n===61?(h(t,S),v=``):AS(n)?v=``:h(t,S)}else h(t,S)}C=v}else{x||h(2,S);let e=Number.parseInt(y,u===`hexadecimal`?16:10);if(Tre(e))h(7,S),C=`�`;else if(e in DS)h(6,S),C=DS[e];else{let t=``;Ere(e)&&h(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),C=t+String.fromCharCode(e)}}if(C){g(),f=m(),a=l-1,d+=l-o+1,i.push(C);let t=m();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,C,{start:f,end:t},e.slice(o-1,l)),f=t}else y=e.slice(o-1,l),s+=y,d+=y.length,a=l-1}else p===10&&(u++,o++,d=0),Number.isNaN(p)?g():(s+=String.fromCharCode(p),d++);return i.join(``);function m(){return{line:u,column:d,offset:a+((c?c.offset:0)||0)}}function h(e,t){let r;n.warning&&(r=m(),r.column
|
|||
|
|
`).split(`
|
|||
|
|
`).map(e=>e.startsWith(`*.`)&&e.includes(`filter=lfs`)?e.split(` `)[0].slice(2).toLowerCase():``).filter(Boolean)??[])})),PT,FT,IT=s((()=>{PT=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i,FT=class e extends Date{#e=!1;#t=!1;#n=null;constructor(e){
|
|||
|
|
/*!
|
|||
|
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|||
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|||
|
|
*
|
|||
|
|
* Redistribution and use in source and binary forms, with or without
|
|||
|
|
* modification, are permitted provided that the following conditions are met:
|
|||
|
|
*
|
|||
|
|
* 1. Redistributions of source code must retain the above copyright notice, this
|
|||
|
|
* list of conditions and the following disclaimer.
|
|||
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|||
|
|
* this list of conditions and the following disclaimer in the
|
|||
|
|
* documentation and/or other materials provided with the distribution.
|
|||
|
|
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|||
|
|
* may be used to endorse or promote products derived from this software without
|
|||
|
|
* specific prior written permission.
|
|||
|
|
*
|
|||
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|||
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|||
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|||
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|||
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|||
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|||
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|||
|
|
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|||
|
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|||
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
|
*/
|
|||
|
|
let t=!0,n=!0,r=`Z`;if(typeof e==`string`){let i=e.match(PT);i?(i[1]||(t=!1,e=`0000-01-01T${e}`),n=!!i[2],n&&e[10]===` `&&(e=e.replace(` `,`T`)),i[2]&&+i[2]>23?e=``:(r=i[3]||null,e=e.toUpperCase(),!r&&n&&(e+=`Z`))):e=``}super(e),isNaN(this.getTime())||(this.#e=t,this.#t=n,this.#n=r)}isDateTime(){return this.#e&&this.#t}isLocal(){return!this.#e||!this.#t||!this.#n}isDate(){return this.#e&&!this.#t}isTime(){return this.#t&&!this.#e}isValid(){return this.#e||this.#t}toISOString(){let e=super.toISOString();if(this.isDate())return e.slice(0,10);if(this.isTime())return e.slice(11,23);if(this.#n===null)return e.slice(0,-1);if(this.#n===`Z`)return e;let t=this.#n.slice(1,3)*60+ +this.#n.slice(4,6);return t=this.#n[0]===`-`?t:-t,new Date(this.getTime()-t*6e4).toISOString().slice(0,-1)+this.#n}static wrapAsOffsetDateTime(t,n=`Z`){let r=new e(t);return r.#n=n,r}static wrapAsLocalDateTime(t){let n=new e(t);return n.#n=null,n}static wrapAsLocalDate(t){let n=new e(t);return n.#t=!1,n.#n=null,n}static wrapAsLocalTime(t){let n=new e(t);return n.#e=!1,n.#n=null,n}}}));
|
|||
|
|
/*!
|
|||
|
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|||
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|||
|
|
*
|
|||
|
|
* Redistribution and use in source and binary forms, with or without
|
|||
|
|
* modification, are permitted provided that the following conditions are met:
|
|||
|
|
*
|
|||
|
|
* 1. Redistributions of source code must retain the above copyright notice, this
|
|||
|
|
* list of conditions and the following disclaimer.
|
|||
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|||
|
|
* this list of conditions and the following disclaimer in the
|
|||
|
|
* documentation and/or other materials provided with the distribution.
|
|||
|
|
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|||
|
|
* may be used to endorse or promote products derived from this software without
|
|||
|
|
* specific prior written permission.
|
|||
|
|
*
|
|||
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|||
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|||
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|||
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|||
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|||
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|||
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|||
|
|
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|||
|
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|||
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
|
*/
|
|||
|
|
function qre(e,t){let n=e.slice(0,t).split(/\r\n|\n|\r/g);return[n.length,n.pop().length+1]}function Jre(e,t,n){let r=e.split(/\r\n|\n|\r/g),i=``,a=(Math.log10(t+1)|0)+1;for(let e=t-1;e<=t+1;e++){let o=r[e-1];o&&(i+=e.toString().padEnd(a,` `),i+=`: `,i+=o,i+=`
|
|||
|
|
`,e===t&&(i+=` `.repeat(a+n+2),i+=`^
|
|||
|
|
`))}return i}var LT,RT=s((()=>{LT=class extends Error{line;column;codeblock;constructor(e,t){let[n,r]=qre(t.toml,t.ptr),i=Jre(t.toml,n,r);super(`Invalid TOML document: ${e}\n\n${i}`,t),this.line=n,this.column=r,this.codeblock=i}}}));
|
|||
|
|
/*!
|
|||
|
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|||
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|||
|
|
*
|
|||
|
|
* Redistribution and use in source and binary forms, with or without
|
|||
|
|
* modification, are permitted provided that the following conditions are met:
|
|||
|
|
*
|
|||
|
|
* 1. Redistributions of source code must retain the above copyright notice, this
|
|||
|
|
* list of conditions and the following disclaimer.
|
|||
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|||
|
|
* this list of conditions and the following disclaimer in the
|
|||
|
|
* documentation and/or other materials provided with the distribution.
|
|||
|
|
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|||
|
|
* may be used to endorse or promote products derived from this software without
|
|||
|
|
* specific prior written permission.
|
|||
|
|
*
|
|||
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|||
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|||
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|||
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|||
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|||
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|||
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|||
|
|
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|||
|
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|||
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
|
*/
|
|||
|
|
function zT(e,t){let n=e[t++],r=n,i=n===`'`,a=n===e[t]&&n===e[t+1];a&&(e[t+=2]===`
|
|||
|
|
`?t++:e[t]===`\r`&&e[t+1]===`
|
|||
|
|
`&&(t+=2));let o=``,s=t,c=0;for(let l=t;l<e.length;l++)if(n=e[l],a&&(n===`
|
|||
|
|
`||n===`\r`&&e[l+1]===`
|
|||
|
|
`))c&&=3;else if(n<` `&&n!==` `||n===``)throw new LT(`control characters are not allowed in strings`,{toml:e,ptr:l});else if((!c||c===3)&&n===r&&(!a||e[l+1]===r&&e[l+2]===r))return a&&(e[l+3]===r&&l++,e[l+3]===r&&l++),[c?o:o+e.slice(s,l),l+(a?3:1)];else if(!c)!i&&n===`\\`&&(o+=e.slice(s,s=l),c=1);else if(c===1)if(n===`x`||n===`u`||n===`U`){let t=0,r=n===`x`?2:n===`u`?4:8;for(let n=0;n<r;n++,l++){let n=e.charCodeAt(l+1),r=n>=48&&n<=57?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1;if(r<0)throw new LT(`invalid non-hex character in unicode escape`,{toml:e,ptr:l+1});t=t<<4|r}if(t<0||t>1114111||t>=55296&&t<=57343)throw new LT(`invalid unicode escape`,{toml:e,ptr:l});o+=String.fromCodePoint(t),s=l+1,c=0}else if(n===` `||n===` `)c=2;else{if(n===`b`)o+=`\b`;else if(n===`t`)o+=` `;else if(n===`n`)o+=`
|
|||
|
|
`;else if(n===`f`)o+=`\f`;else if(n===`r`)o+=`\r`;else if(n===`e`)o+=`\x1B`;else if(n===`"`)o+=`"`;else if(n===`\\`)o+=`\\`;else throw new LT(`unrecognized escape sequence`,{toml:e,ptr:l});s=l+1,c=0}else if(n!==` `&&n!==` `){if(c===2)throw new LT(`invalid escape: only line-ending whitespace may be escaped`,{toml:e,ptr:s});c=+(!i&&n===`\\`),s=l}throw new LT(`unfinished string`,{toml:e,ptr:t})}function Yre(e,t,n,r){if(e===`true`)return!0;if(e===`false`)return!1;if(e===`-inf`)return-1/0;if(e===`inf`||e===`+inf`)return 1/0;if(e===`nan`||e===`+nan`||e===`-nan`)return NaN;if(e===`-0`)return r?0n:0;let i=BT.test(e);if(i||VT.test(e)){if(HT.test(e))throw new LT(`leading zeroes are not allowed`,{toml:t,ptr:n});e=e.replace(/_/g,``);let a=+e;if(isNaN(a))throw new LT(`invalid number`,{toml:t,ptr:n});if(i){if((i=!Number.isSafeInteger(a))&&!r)throw new LT(`integer value cannot be represented losslessly`,{toml:t,ptr:n});(i||r===!0)&&(a=BigInt(e))}return a}let a=new FT(e);if(!a.isValid())throw new LT(`invalid value`,{toml:t,ptr:n});return a}var BT,VT,HT,UT=s((()=>{IT(),RT(),BT=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,VT=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,HT=/^[+-]?0[0-9_]/}));
|
|||
|
|
/*!
|
|||
|
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|||
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|||
|
|
*
|
|||
|
|
* Redistribution and use in source and binary forms, with or without
|
|||
|
|
* modification, are permitted provided that the following conditions are met:
|
|||
|
|
*
|
|||
|
|
* 1. Redistributions of source code must retain the above copyright notice, this
|
|||
|
|
* list of conditions and the following disclaimer.
|
|||
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|||
|
|
* this list of conditions and the following disclaimer in the
|
|||
|
|
* documentation and/or other materials provided with the distribution.
|
|||
|
|
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|||
|
|
* may be used to endorse or promote products derived from this software without
|
|||
|
|
* specific prior written permission.
|
|||
|
|
*
|
|||
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|||
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|||
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|||
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|||
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|||
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|||
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|||
|
|
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|||
|
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|||
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
|
*/
|
|||
|
|
function WT(e,t=0,n=e.length){let r=e.indexOf(`
|
|||
|
|
`,t);return e[r-1]===`\r`&&r--,r<=n?r:-1}function GT(e,t){for(let n=t;n<e.length;n++){let r=e[n];if(r===`
|
|||
|
|
`)return n;if(r===`\r`&&e[n+1]===`
|
|||
|
|
`)return n+1;if(r<` `&&r!==` `||r===``)throw new LT(`control characters are not allowed in comments`,{toml:e,ptr:t})}return e.length}function KT(e,t,n,r){let i;for(;;){for(;(i=e[t])===` `||i===` `||!n&&(i===`
|
|||
|
|
`||i===`\r`&&e[t+1]===`
|
|||
|
|
`);)t++;if(r||i!==`#`)break;t=GT(e,t)}return t}function Xre(e,t,n,r,i=!1){if(!r)return t=WT(e,t),t<0?e.length:t;for(let a=t;a<e.length;a++){let t=e[a];if(t===`#`)a=WT(e,a);else if(t===n)return a+1;else if(t===r||i&&(t===`
|
|||
|
|
`||t===`\r`&&e[a+1]===`
|
|||
|
|
`))return a}throw new LT(`cannot find end of structure`,{toml:e,ptr:t})}var qT=s((()=>{RT()}));
|
|||
|
|
/*!
|
|||
|
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|||
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|||
|
|
*
|
|||
|
|
* Redistribution and use in source and binary forms, with or without
|
|||
|
|
* modification, are permitted provided that the following conditions are met:
|
|||
|
|
*
|
|||
|
|
* 1. Redistributions of source code must retain the above copyright notice, this
|
|||
|
|
* list of conditions and the following disclaimer.
|
|||
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|||
|
|
* this list of conditions and the following disclaimer in the
|
|||
|
|
* documentation and/or other materials provided with the distribution.
|
|||
|
|
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|||
|
|
* may be used to endorse or promote products derived from this software without
|
|||
|
|
* specific prior written permission.
|
|||
|
|
*
|
|||
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|||
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|||
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|||
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|||
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|||
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|||
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|||
|
|
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|||
|
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|||
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
|
*/
|
|||
|
|
function Zre(e,t,n){let r=e.slice(t,n),i=r.indexOf(`#`);return i>-1&&(GT(e,i),r=r.slice(0,i)),[r.trimEnd(),i]}function JT(e,t,n,r,i){if(r===0)throw new LT(`document contains excessively nested structures. aborting.`,{toml:e,ptr:t});let a=e[t];if(a===`[`||a===`{`){let[o,s]=a===`[`?$re(e,t,r,i):Qre(e,t,r,i);if(n){if(s=KT(e,s),e[s]===`,`)s++;else if(e[s]!==n)throw new LT(`expected comma or end of structure`,{toml:e,ptr:s})}return[o,s]}if(a===`"`||a===`'`){let[r,i]=zT(e,t);if(n){if(i=KT(e,i),e[i]&&e[i]!==`,`&&e[i]!==n&&e[i]!==`
|
|||
|
|
`&&e[i]!==`\r`)throw new LT(`unexpected character encountered`,{toml:e,ptr:i});e[i]===`,`&&i++}return[r,i]}let o=Xre(e,t,`,`,n),s=Zre(e,t,o-+(e[o-1]===`,`));if(!s[0])throw new LT(`incomplete key-value declaration: no value specified`,{toml:e,ptr:t});return n&&s[1]>-1&&(o=KT(e,t+s[1]),e[o]===`,`&&o++),[Yre(s[0],e,t,i),o]}var YT=s((()=>{UT(),QT(),qT(),RT()}));
|
|||
|
|
/*!
|
|||
|
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|||
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|||
|
|
*
|
|||
|
|
* Redistribution and use in source and binary forms, with or without
|
|||
|
|
* modification, are permitted provided that the following conditions are met:
|
|||
|
|
*
|
|||
|
|
* 1. Redistributions of source code must retain the above copyright notice, this
|
|||
|
|
* list of conditions and the following disclaimer.
|
|||
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|||
|
|
* this list of conditions and the following disclaimer in the
|
|||
|
|
* documentation and/or other materials provided with the distribution.
|
|||
|
|
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|||
|
|
* may be used to endorse or promote products derived from this software without
|
|||
|
|
* specific prior written permission.
|
|||
|
|
*
|
|||
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|||
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|||
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|||
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|||
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|||
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|||
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|||
|
|
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|||
|
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|||
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
|
*/
|
|||
|
|
function XT(e,t,n=`=`){let r=t-1,i=[],a=e.indexOf(n,t);if(a<0)throw new LT(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});do{let o=e[t=++r];if(o!==` `&&o!==` `)if(o===`"`||o===`'`){if(o===e[t+1]&&o===e[t+2])throw new LT(`multiline strings are not allowed in keys`,{toml:e,ptr:t});let[s,c]=zT(e,t);r=e.indexOf(`.`,c);let l=e.slice(c,r<0||r>a?a:r),u=WT(l);if(u>-1)throw new LT(`newlines are not allowed in keys`,{toml:e,ptr:t+r+u});if(l.trimStart())throw new LT(`found extra tokens after the string part`,{toml:e,ptr:c});if(a<c&&(a=e.indexOf(n,c),a<0))throw new LT(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});i.push(s)}else{r=e.indexOf(`.`,t);let n=e.slice(t,r<0||r>a?a:r);if(!ZT.test(n))throw new LT(`only letter, numbers, dashes and underscores are allowed in keys`,{toml:e,ptr:t});i.push(n.trimEnd())}}while(r+1&&r<a);return[i,KT(e,a+1,!0,!0)]}function Qre(e,t,n,r){let i={},a=new Set,o;for(t++;(o=e[t++])!==`}`&&o;)if(o===`,`)throw new LT(`expected value, found comma`,{toml:e,ptr:t-1});else if(o===`#`)t=GT(e,t);else if(o!==` `&&o!==` `&&o!==`
|
|||
|
|
`&&o!==`\r`){let o,s=i,c=!1,[l,u]=XT(e,t-1);for(let n=0;n<l.length;n++){if(n&&(s=c?s[o]:s[o]={}),o=l[n],(c=Object.hasOwn(s,o))&&(typeof s[o]!=`object`||a.has(s[o])))throw new LT(`trying to redefine an already defined value`,{toml:e,ptr:t});!c&&o===`__proto__`&&Object.defineProperty(s,o,{enumerable:!0,configurable:!0,writable:!0})}if(c)throw new LT(`trying to redefine an already defined value`,{toml:e,ptr:t});let[d,f]=JT(e,u,`}`,n-1,r);a.add(d),s[o]=d,t=f}if(!o)throw new LT(`unfinished table encountered`,{toml:e,ptr:t});return[i,t]}function $re(e,t,n,r){let i=[],a;for(t++;(a=e[t++])!==`]`&&a;)if(a===`,`)throw new LT(`expected value, found comma`,{toml:e,ptr:t-1});else if(a===`#`)t=GT(e,t);else if(a!==` `&&a!==` `&&a!==`
|
|||
|
|
`&&a!==`\r`){let a=JT(e,t-1,`]`,n-1,r);i.push(a[0]),t=a[1]}if(!a)throw new LT(`unfinished array encountered`,{toml:e,ptr:t});return[i,t]}var ZT,QT=s((()=>{UT(),YT(),qT(),RT(),ZT=/^[a-zA-Z0-9-_]+[ \t]*$/}));
|
|||
|
|
/*!
|
|||
|
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|||
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|||
|
|
*
|
|||
|
|
* Redistribution and use in source and binary forms, with or without
|
|||
|
|
* modification, are permitted provided that the following conditions are met:
|
|||
|
|
*
|
|||
|
|
* 1. Redistributions of source code must retain the above copyright notice, this
|
|||
|
|
* list of conditions and the following disclaimer.
|
|||
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|||
|
|
* this list of conditions and the following disclaimer in the
|
|||
|
|
* documentation and/or other materials provided with the distribution.
|
|||
|
|
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|||
|
|
* may be used to endorse or promote products derived from this software without
|
|||
|
|
* specific prior written permission.
|
|||
|
|
*
|
|||
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|||
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|||
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|||
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|||
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|||
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|||
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|||
|
|
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|||
|
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|||
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
|
*/
|
|||
|
|
function $T(e,t,n,r){let i=t,a=n,o,s=!1,c;for(let t=0;t<e.length;t++){if(t){if(i=s?i[o]:i[o]={},a=(c=a[o]).c,r===0&&(c.t===1||c.t===2))return null;if(c.t===2){let e=i.length-1;i=i[e],a=a[e].c}}if(o=e[t],(s=Object.hasOwn(i,o))&&a[o]?.t===0&&a[o]?.d)return null;s||(o===`__proto__`&&(Object.defineProperty(i,o,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(a,o,{enumerable:!0,configurable:!0,writable:!0})),a[o]={t:t<e.length-1&&r===2?3:r,d:!1,i:0,c:{}})}if(c=a[o],c.t!==r&&!(r===1&&c.t===3)||(r===2&&(c.d||(c.d=!0,i[o]=[]),i[o].push(i={}),c.c[c.i++]=c={t:1,d:!1,i:0,c:{}}),c.d))return null;if(c.d=!0,r===1)i=s?i[o]:i[o]={};else if(r===0&&s)return null;return[o,i,c.c]}function eie(e,{maxDepth:t=1e3,integersAsBigInt:n}={}){let r={},i={},a=r,o=i;for(let s=KT(e,0);s<e.length;){if(e[s]===`[`){let t=e[++s]===`[`,n=XT(e,s+=+t,`]`);if(t){if(e[n[1]-1]!==`]`)throw new LT(`expected end of table declaration`,{toml:e,ptr:n[1]-1});n[1]++}let c=$T(n[0],r,i,t?2:1);if(!c)throw new LT(`trying to redefine an already defined table or value`,{toml:e,ptr:s});o=c[2],a=c[1],s=n[1]}else{let r=XT(e,s),i=$T(r[0],a,o,0);if(!i)throw new LT(`trying to redefine an already defined table or value`,{toml:e,ptr:s});let c=JT(e,r[1],void 0,t,n);i[1][i[0]]=c[0],s=c[1]}if(s=KT(e,s,!0),e[s]&&e[s]!==`
|
|||
|
|
`&&e[s]!==`\r`)throw new LT(`each key-value declaration must be followed by an end-of-line`,{toml:e,ptr:s});s=KT(e,s)}return r}var tie=s((()=>{QT(),YT(),qT(),RT()}));
|
|||
|
|
/*!
|
|||
|
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|||
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|||
|
|
*
|
|||
|
|
* Redistribution and use in source and binary forms, with or without
|
|||
|
|
* modification, are permitted provided that the following conditions are met:
|
|||
|
|
*
|
|||
|
|
* 1. Redistributions of source code must retain the above copyright notice, this
|
|||
|
|
* list of conditions and the following disclaimer.
|
|||
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|||
|
|
* this list of conditions and the following disclaimer in the
|
|||
|
|
* documentation and/or other materials provided with the distribution.
|
|||
|
|
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|||
|
|
* may be used to endorse or promote products derived from this software without
|
|||
|
|
* specific prior written permission.
|
|||
|
|
*
|
|||
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|||
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|||
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|||
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|||
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|||
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|||
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|||
|
|
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|||
|
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|||
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
|
*/
|
|||
|
|
function eE(e){let t=typeof e;if(t===`object`){if(Array.isArray(e))return`array`;if(e instanceof Date)return`date`}return t}function nie(e){for(let t=0;t<e.length;t++)if(eE(e[t])!==`object`)return!1;return e.length!=0}function tE(e){return JSON.stringify(e).replace(/\x7f/g,`\\u007f`)}function nE(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);if(t===`number`)return isNaN(e)?`nan`:e===1/0?`inf`:e===-1/0?`-inf`:Number.isInteger(e)&&(r||!Number.isSafeInteger(e))?e.toFixed(1):e.toString();if(t===`bigint`||t===`boolean`)return e.toString();if(t===`string`)return tE(e);if(t===`date`){if(isNaN(e.getTime()))throw TypeError(`cannot serialize invalid date`);return e.toISOString()}if(t===`object`)return rie(e,n,r);if(t===`array`)return iie(e,n,r)}function rie(e,t,n){let r=Object.keys(e);if(r.length===0)return`{}`;let i=`{ `;for(let a=0;a<r.length;a++){let o=r[a];a&&(i+=`, `),i+=iE.test(o)?o:tE(o),i+=` = `,i+=nE(e[o],eE(e[o]),t-1,n)}return i+` }`}function iie(e,t,n){if(e.length===0)return`[]`;let r=`[ `;for(let i=0;i<e.length;i++){if(i&&(r+=`, `),e[i]===null||e[i]===void 0)throw TypeError(`arrays cannot contain null or undefined values`);r+=nE(e[i],eE(e[i]),t-1,n)}return r+` ]`}function aie(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let i=``;for(let a=0;a<e.length;a++)i+=`${i&&`
|
|||
|
|
`}[[${t}]]\n`,i+=rE(0,e[a],t,n,r);return i}function rE(e,t,n,r,i){if(r===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let a=``,o=``,s=Object.keys(t);for(let e=0;e<s.length;e++){let c=s[e];if(t[c]!==null&&t[c]!==void 0){let e=eE(t[c]);if(e===`symbol`||e===`function`)throw TypeError(`cannot serialize values of type '${e}'`);let s=iE.test(c)?c:tE(c);if(e===`array`&&nie(t[c]))o+=(o&&`
|
|||
|
|
`)+aie(t[c],n?`${n}.${s}`:s,r-1,i);else if(e===`object`){let e=n?`${n}.${s}`:s;o+=(o&&`
|
|||
|
|
`)+rE(e,t[c],e,r-1,i)}else a+=s,a+=` = `,a+=nE(t[c],e,r,i),a+=`
|
|||
|
|
`}}return e&&(a||!o)&&(a=a?`[${e}]\n${a}`:`[${e}]`),a&&o?`${a}\n${o}`:a||o}function oie(e,{maxDepth:t=1e3,numbersAsFloat:n=!1}={}){if(eE(e)!==`object`)throw TypeError(`stringify can only be called with an object`);let r=rE(0,e,``,t,n);return r[r.length-1]===`
|
|||
|
|
`?r:r+`
|
|||
|
|
`}var iE,sie=s((()=>{iE=/^[a-z0-9-_]+$/i})),aE=s((()=>{tie(),sie(),IT()})),oE,sE,cE,lE,uE,dE,fE,pE=s((()=>{
|
|||
|
|
/*!
|
|||
|
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|||
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|||
|
|
*
|
|||
|
|
* Redistribution and use in source and binary forms, with or without
|
|||
|
|
* modification, are permitted provided that the following conditions are met:
|
|||
|
|
*
|
|||
|
|
* 1. Redistributions of source code must retain the above copyright notice, this
|
|||
|
|
* list of conditions and the following disclaimer.
|
|||
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|||
|
|
* this list of conditions and the following disclaimer in the
|
|||
|
|
* documentation and/or other materials provided with the distribution.
|
|||
|
|
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|||
|
|
* may be used to endorse or promote products derived from this software without
|
|||
|
|
* specific prior written permission.
|
|||
|
|
*
|
|||
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|||
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|||
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|||
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|||
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|||
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|||
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|||
|
|
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|||
|
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|||
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
|
*/
|
|||
|
|
p(),Ip(),aE(),eb(),yp(),Sw(),DC(),WC(),Nre(),fb(),oE=e=>JSON.parse(e),sE=e=>f(eie(e)),cE=(e,t)=>lne(e,t),lE=e=>e.startsWith(`+++`)?`toml-frontmatter`:e.startsWith(`{`)?`json-frontmatter`:`yaml-frontmatter`,uE=new Map,dE=({collection:e,collectionFile:t,format:n,text:r})=>{let{format:i,fmDelimiters:a,bodyField:{key:o=`body`,inline:s=!1}={}}=(t??e)._file,[c,l]=(i===`frontmatter`?ew({format:n,delimiter:a}):a)??[`---`,`---`],u=jp(c),d=jp(l),f=`${u}|${d}`,p=db(uE,f,()=>RegExp(`^${u}\n(?:(?<head>[\\s\\S]*?))\n${d}(?:\n(?<body>[\\s\\S]*))?$`,`s`)),{head:m,body:h}=r.match(p)?.groups??{};if(!m&&!h)return{[o]:r};let g={};return n===`yaml-frontmatter`&&(g=cE(m)),n===`toml-frontmatter`&&(g=sE(m)),n===`json-frontmatter`&&(g=oE(`{${m}}`)),(!g||typeof g!=`object`||Array.isArray(g))&&(g={}),{...g,...!s&&!(o in g)?{[o]:h}:{}}},fE=async({text:e=``,path:t,folder:{collectionName:n,fileName:r}})=>{let i=yw(n),a=i&&r?SC(i,r):void 0;if(!i)throw Error(`Collection not found`);if(r&&!a)throw Error(`Collection file not found`);e=e.trim().replace(/\r\n?/g,`
|
|||
|
|
`);let{_file:{format:o}}=a??i,s=hp.get(o)?.parser;if(s)return s(e);if(o===`raw`)return{body:e};try{if(o===`yaml`||o===`yml`)return cE(e);if(o===`toml`)return sE(e);if(o===`json`)return oE(e);if(o===`frontmatter`&&(o=lE(e)),HC.includes(o))return dE({collection:i,collectionFile:a,format:o,text:e})}catch(e){throw Error(`${t} could not be parsed due to ${e.name}: ${e.message}`)}throw Error(`${t} could not be parsed due to an unknown format: ${o}`)}})),mE,hE,gE,_E,vE,yE,bE,xE,SE,CE,wE,TE,EE,DE,OE=s((()=>{Ap(),p(),Ip(),gc(),Sw(),Tw(),DC(),jP(),pE(),fb(),mE=e=>/\/_index(?:\.[\w-]+)?\.md$/.test(e),hE=new Map,gE=({subPath:e,subPathTemplate:t})=>{if(t?.includes(`{{slug}}`)){let n=db(hE,t,()=>{let e=``,n=t;for(;n.length>0;){let t=n.indexOf(`{{`);if(t===-1){e+=jp(n);break}t>0&&(e+=jp(n.substring(0,t)));let r=n.indexOf(`}}`,t);if(r===-1){e+=jp(n);break}let i=n.substring(t,r+2);e+=i===`{{slug}}`?`([^/]+)`:`[^/]+?`,n=n.substring(r+2)}return RegExp(`^${e}$`)}),[,r]=e.match(n)??[];if(r)return r}return e},_E=async(e,t)=>{try{return await fE(e)}catch(e){console.error(e),t.push(e);return}},vE=({rawContent:e,fields:t,i18nSingleFile:n,validate:r})=>{let i=t[0].name;if(n)return!d(e)||!Object.values(e).every(r)?void 0:Object.fromEntries(Object.entries(e).map(([e,t])=>[e,{[i]:t}]));if(r(e))return{[i]:e}},yE=(e,t,n)=>{if(!d(e))return;let r=t.filter(e=>e!==n),i=Object.fromEntries(Object.entries(e).filter(([e])=>!r.includes(e))),a={[n]:i};return r.forEach(t=>{d(e[t])&&(a[t]=e[t])}),a},bE=(e,t,n)=>{let r={rawContent:e,fields:t,i18nSingleFile:n};return bP(t,`list`)?vE({...r,validate:Array.isArray}):bP(t,`keyvalue`)?vE({...r,validate:e=>d(e)&&Object.values(e).every(e=>typeof e==`string`)}):d(e)?e:void 0},xE=(e,t,n,r,i)=>r?.split(`/`).pop()===`_index`&&/\/_index(?:\.[\w-]+)?\.[\w]+$/.test(e)&&i!==`md`?!0:mE(e)?!(t||Cw(n)?.name===`_index`||r?.split(`/`).pop()===`_index`&&i===`md`):!1,SE=(e,t,n,r,i)=>{let{path:a,folder:{filePathMap:o}}=e;if(t){if(i){let[e,t]=Object.entries(o??{}).find(([,e])=>e===a)??[];return{subPath:t,locale:e}}return{subPath:a,locale:void 0}}if(!n)return{subPath:void 0,locale:void 0};let s=a.match(n);if(!s?.groups)return{subPath:void 0,locale:void 0};let{subPath:c,locale:l=r}=s.groups;return{subPath:c,locale:l}},CE=(e,t,n,r,i,a)=>{let o=r||gE({subPath:i,subPathTemplate:a});e.slug=o,e.locales._default={slug:o,path:n,content:mc(t)}},wE=(e,t,n,r,i,a,o)=>{let s=r||gE({subPath:i,subPathTemplate:a});e.slug=s,e.locales=Object.fromEntries(o.filter(e=>e in t).map(e=>[e,{slug:s,path:n,content:mc(t[e])}]))},TE=(e,t,n,r,i,a,o,s,c,l,u)=>{let d=l&&typeof t[l]==`string`?t[l]:void 0,f=r||gE({subPath:i,subPathTemplate:a}),p={slug:f,path:n,content:mc(t)},m=`${c}/${d??f}`,h=u.find(e=>e.id===m);return h?(h.locales[o]=p,o===s&&(h.slug=f,h.subPath=i),!0):(e.id=m,e.locales[o]=p,o===s&&(e.slug=f),!1)},EE=async({file:e,entries:t,errors:n})=>{let r=await _E(e,n);if(!r)return;let{path:i,meta:a={},folder:{collectionName:o,fileName:s}}=e,c=yw(o),l=c&&s?SC(c,s):void 0;if(!c||s&&!l)return;let{fields:u=[],_file:{fullPathRegEx:d,subPath:f,extension:p},_i18n:{i18nEnabled:m,allLocales:h,defaultLocale:g,structureMap:{i18nSingleFile:_,i18nSingleFileDefaultRoot:v,i18nMultiFile:y,i18nMultiFolder:b,i18nMultiRootFolder:x},canonicalSlug:{key:S}}}=l??c,C=v?yE(r,h,g):r;if(!C)return;let w=bE(C,u,_||v);if(!w||xE(i,s,c,f,p))return;let T=y||b||x,{subPath:E,locale:ee}=SE(e,s,d,g,T);if(!E||T&&!ee)return;let te={id:``,slug:``,subPath:E,locales:{},...a};if(!m)CE(te,w,i,s,E,f);else if(_||v)wE(te,w,i,s,E,f,h);else if(TE(te,w,i,s,E,f,ee,g,o,S,t))return;t.push(te)},DE=async e=>{let t=[],n=[];return await Promise.all(e.map(e=>EE({file:e,entries:t,errors:n}))),{entries:t.filter(e=>(e.id=Dp(),!!e.slug&&!!Object.keys(e.locales).length)),errors:n}}})),kE,cie=s((()=>{fm(),NT(),yC(),OE(),kE=e=>{let t=[],n=[],r=[];e.forEach(e=>{let{path:i,name:a}=e;if(a.startsWith(`.`))jT.test(a)&&r.push({...e,type:`config`});else{let[r]=vC(i),[a]=um(i);r&&t.push({...e,type:`entry`,folder:r}),a&&!t.find(e=>e.path===i)&&!mE(i)&&n.push({...e,type:`asset`,folder:a})}});let i=[...t,...n,...r];return{entryFiles:t,asse
|
|||
|
|
query($owner: String!, $repo: String!) {
|
|||
|
|
repository(owner: $owner, name: $repo) {
|
|||
|
|
defaultBranchRef {
|
|||
|
|
name
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
`,YO=async()=>{let{repo:e,repoURL:t=``}=GO,n=await TD(JO);if(!n.repository)throw Error(`Failed to retrieve the default branch name.`,{cause:Error(Y(`repository_not_found`,{values:{repo:e}}))});let{name:r}=n.repository.defaultBranchRef??{};if(!r)throw Error(`Failed to retrieve the default branch name.`,{cause:Error(Y(`repository_empty`,{values:{repo:e}}))});return Object.assign(GO,{branch:r},KO(t,r)),Object.assign(SD,{branch:r}),r}})),ZO,QO,$O,ek,tk,nk=s((()=>{X(),Yp(),XO(),ED(),rO(),ZO=`
|
|||
|
|
query($owner: String!, $repo: String!, $branch: String!) {
|
|||
|
|
repository(owner: $owner, name: $repo) {
|
|||
|
|
ref(qualifiedName: $branch) {
|
|||
|
|
target {
|
|||
|
|
... on Commit {
|
|||
|
|
history(first: 1) {
|
|||
|
|
nodes {
|
|||
|
|
oid
|
|||
|
|
message
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
`,QO=async()=>{let{repo:e,branch:t}=GO,n=await TD(ZO);if(!n.repository)throw Error(`Failed to retrieve the last commit hash.`,{cause:Error(Y(`repository_not_found`,{values:{repo:e}}))});if(!n.repository.ref)throw Error(`Failed to retrieve the last commit hash.`,{cause:Error(Y(`branch_not_found`,{values:{repo:e,branch:t}}))});let{oid:r,message:i}=n.repository.ref.target.history.nodes[0];return{hash:r,message:i}},$O=10*1024*1024,ek=async(e,t)=>{let{owner:n,repo:r,branch:i}=GO,a=e.filter(({action:e})=>[`create`,`update`,`move`].includes(e)),o=await Promise.all(a.map(async({path:e,data:t})=>({path:e,contents:await Kp(t??``)}))),s=e.filter(({action:e})=>[`move`,`delete`].includes(e)).map(({previousPath:e,path:t})=>({path:e??t})),{createCommitOnBranch:{commit:c}}=await TD(`
|
|||
|
|
mutation($input: CreateCommitOnBranchInput!) {
|
|||
|
|
createCommitOnBranch(input: $input) {
|
|||
|
|
commit {
|
|||
|
|
oid
|
|||
|
|
committedDate
|
|||
|
|
${o.map(({path:e},t)=>{let{data:n}=a[t];return(n instanceof Blob?n.size:new Blob([n??``]).size)<=$O?`file_${t}: file(path: ${JSON.stringify(e)}) { oid }`:``}).filter(Boolean).join(` `)}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
`,{input:{branch:{repositoryNameWithOwner:`${n}/${r}`,branchName:i},expectedHeadOid:(await QO()).hash,fileChanges:{additions:o,deletions:s},message:{headline:nO(e,t)}}});return{sha:c.oid,date:new Date(c.committedDate),files:Object.fromEntries(o.map(({path:e},t)=>{let{data:n}=a[t];return[e,{sha:c[`file_${t}`]?.oid,...n instanceof Blob&&n.size>$O?{file:n}:{}}]}))}},tk=async e=>{let t=await TD(`
|
|||
|
|
query($owner: String!, $repo: String!, $branch: String!) {
|
|||
|
|
repository(owner: $owner, name: $repo) {
|
|||
|
|
${e.map((e,t)=>`
|
|||
|
|
history_${t}: ref(qualifiedName: $branch) {
|
|||
|
|
target {
|
|||
|
|
... on Commit {
|
|||
|
|
history(first: 100, path: ${JSON.stringify(e)}) {
|
|||
|
|
nodes {
|
|||
|
|
oid
|
|||
|
|
author {
|
|||
|
|
name
|
|||
|
|
email
|
|||
|
|
avatarUrl
|
|||
|
|
user { login }
|
|||
|
|
}
|
|||
|
|
committedDate
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
`).join(``)}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
`),n=new Map;return e.forEach((e,r)=>{(t.repository[`history_${r}`]?.target?.history?.nodes??[]).forEach(e=>{n.has(e.oid)||n.set(e.oid,{sha:e.oid,authorName:e.author.name,authorEmail:e.author.email,authorAvatarURL:e.author.avatarUrl,authorLogin:e.author.user?.login,date:new Date(e.committedDate)})})}),[...n.values()].sort((e,t)=>t.date.getTime()-e.date.getTime())}})),rk,eae=s((()=>{XO(),ED(),rk=async()=>{let{owner:e,repo:t}=GO;return wD(`/repos/${e}/${t}/dispatches`,{method:`POST`,body:{event_type:`sveltia-cms-publish`},responseType:`raw`})}})),ik,ak,ok,sk,ck,lk,tae=s((()=>{Yp(),rT(),gT(),nk(),XO(),ED(),_O(),yC(),ik=async e=>{let{owner:t,repo:n,branch:r}=GO;return(await wD(`/repos/${t}/${n}/git/trees/${e??r}?recursive=1`)).tree.filter(({type:e})=>e===`blob`).map(({path:e,sha:t,size:n})=>({path:e,sha:t,size:n,name:Vp(e).basename}))},ak=(e,t)=>`
|
|||
|
|
query($owner: String!, $repo: String!, $branch: String!) {
|
|||
|
|
repository(owner: $owner, name: $repo) {
|
|||
|
|
${e.map(({type:e,path:n,sha:r},i)=>{let a=[],o=t+i;return e!==`asset`&&a.push(`
|
|||
|
|
content_${o}: object(oid: ${JSON.stringify(r)}) {
|
|||
|
|
... on Blob { text }
|
|||
|
|
}
|
|||
|
|
`),a.push(`
|
|||
|
|
commit_${o}: ref(qualifiedName: $branch) {
|
|||
|
|
target {
|
|||
|
|
... on Commit {
|
|||
|
|
history(first: 1, path: ${JSON.stringify(n)}) {
|
|||
|
|
nodes {
|
|||
|
|
author {
|
|||
|
|
name
|
|||
|
|
email
|
|||
|
|
user {
|
|||
|
|
id: databaseId
|
|||
|
|
login
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
committedDate
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
`),a.join(``)}).join(``)}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
`,ok=async(e,t)=>{let n=e.map(({path:e,sha:n,size:r},i)=>{let{author:{name:a,email:o,user:s},committedDate:c}=t[`commit_${i}`].target.history.nodes[0];return[e,{sha:n,size:r,text:t[`content_${i}`]?.text,meta:{commitAuthor:{name:a,email:o,id:s?.id,login:s?.login},commitDate:new Date(c)}}]});return Object.fromEntries(n)},sk=async e=>{let t=structuredClone(e),n=[],r={};fC.set(0);let i=window.setInterval(()=>{fC.update((e=0)=>e+1)},t.length/10);for(let e=0;e<t.length;e+=250)n.push(t.slice(e,e+250));return await Promise.all(n.map(async(e,t)=>{await nT(t*500);let n=await TD(ak(e,t*250));Object.assign(r,n.repository)})),window.clearInterval(i),fC.set(void 0),ok(t,r)},ck=async()=>{await qO(),await gO({repository:GO,fetchDefaultBranchName:YO,fetchLastCommit:QO,fetchFileList:ik,fetchFileContents:sk})},lk=async e=>{let{owner:t,repo:n}=GO,{sha:r,path:i}=e,a=await wD(`/repos/${t}/${n}/git/blobs/${r}`,{headers:{Accept:`application/vnd.github.raw`},responseType:`raw`});return a.headers.get(`Content-Type`)===`application/octet-stream`?a.blob():new Blob([await a.text()],{type:hT.getType(i)??`text/plain`})}})),uk,dk,fk,nae=s((()=>{yD(),uk=`https://www.githubstatus.com/`,dk=`https://www.githubstatus.com/api/v2/status.json`,fk=async()=>{try{let{status:{indicator:e}}=await vD(dk);if(e===`none`)return`none`;if(e===`minor`)return`minor`;if(e===`major`||e===`critical`)return`major`}catch{}return`unknown`}})),pk,mk,rae=s((()=>{Ip(),Zp(),Zie(),$ie(),nk(),RO(),eae(),tae(),XO(),nae(),ED(),qD(),TF(),OO(),pk=()=>{let{backend:e}=dn(bF)??{};if(e?.name!==`github`)return;let{repo:t,branch:n,auth_type:r=``,base_url:i=r===`pkce`?IO:PO,auth_endpoint:a=r===`pkce`?LO:FO,app_id:o=``,api_root:s=NO,graphql_api_root:c=s,include_credentials:l=!1}=e,[u,d]=t.split(`/`),f=`${u}/${d}`,p=`${Np(i)}/${Np(a)}`,m=KD(s,f);return Object.assign(GO,{service:jO,label:MO,owner:u,repo:d,branch:n,repoURL:m,tokenPageURL:HO(m),databaseName:`${jO}:${f}`,isSelfHosted:s!==NO},KO(m,n)),Object.assign(xD,{clientId:o,authScope:`repo,user`,authURL:p,tokenURL:p.replace(`/authorize`,`/access_token`),restBaseURL:zO(s),graphqlBaseURL:BO(c),includeCredentials:l}),Object.assign(SD,{owner:u,repo:d,branch:n}),DO.devModeEnabled&&console.info(`repositoryInfo`,GO),GO},mk={isGit:!0,name:jO,label:MO,repository:GO,statusDashboardURL:uk,checkStatus:fk,init:pk,signIn:UO,signOut:WO,fetchFiles:ck,fetchBlob:lk,commitChanges:ek,fetchFileCommits:tk,triggerDeployment:rk}})),hk,gk,_k,vk,yk,bk=s((()=>{hk=`gitlab`,gk=`GitLab`,_k=`https://gitlab.com/api/v4`,vk=`https://gitlab.com`,yk=`oauth/authorize`})),xk,iae=s((()=>{bk(),OD(),xk=e=>DD(e,hk,{name:`name`,login:`username`,profileURL:`web_url`})})),Sk,Ck,wk,aae=s((()=>{iae(),ED(),VD(),Sk=e=>{let{origin:t}=new URL(e);return`${t}/-/user_settings/personal_access_tokens?${new URLSearchParams({name:`Sveltia CMS`,scopes:`api,read_user`})}`},Ck=async e=>{let{token:t,refreshToken:n}=await BD({options:e,apiConfig:xD})??{};if(t)return xk({token:t,refreshToken:n})},wk=async()=>void 0})),Tk,Ek,Dk,Ok,kk,Ak=s((()=>{X(),ED(),qD(),gD(),Tk={...GD},Ek=(e,t)=>({treeBaseURL:t?`${e}/-/tree/${t}`:e,blobBaseURL:t?`${e}/-/blob/${t}`:``,commitBaseURL:`${e}/-/commit`}),Dk=async()=>{let{owner:e,repo:t}=Tk,{id:n,login:r,bot:i}=hD.account,a=`/projects/${encodeURIComponent(`${e}/${t}`)}`,o=await wD(i?`${a}/service_accounts`:`${a}/users?search=${r}`,{headers:{Accept:`application/json`},responseType:`raw`});if(!(o.ok?await o.json():[]).some(e=>e.id===n))throw Error(`Not a collaborator of the repository`,{cause:Error(Y(`repository_no_access`,{values:{repo:t}}))})},Ok=`
|
|||
|
|
query($fullPath: ID!) {
|
|||
|
|
project(fullPath: $fullPath) {
|
|||
|
|
repository {
|
|||
|
|
rootRef
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
`,kk=async()=>{let{repo:e,repoURL:t=``}=Tk,n=await TD(Ok);if(!n.project)throw Error(`Failed to retrieve the default branch name.`,{cause:Error(Y(`repository_not_found`,{values:{repo:e}}))});let{rootRef:r}=n.project.repository??{};if(!r)throw Error(`Failed to retrieve the default branch name.`,{cause:Error(Y(`repository_empty`,{values:{repo:e}}))});return Object.assign(Tk,{branch:r},Ek(t,r)),Object.assign(SD,{branch:r}),r}})),jk,Mk,Nk,Pk,Fk,Ik=s((()=>{X(),Yp(),Ak(),ED(),rO(),HE(),jk=`
|
|||
|
|
query($fullPath: ID!, $branch: String!) {
|
|||
|
|
project(fullPath: $fullPath) {
|
|||
|
|
repository {
|
|||
|
|
tree(ref: $branch) {
|
|||
|
|
lastCommit {
|
|||
|
|
sha
|
|||
|
|
message
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
`,Mk=async()=>{let{repo:e,branch:t}=Tk,n=await TD(jk);if(!n.project)throw Error(`Failed to retrieve the last commit hash.`,{cause:Error(Y(`repository_not_found`,{values:{repo:e}}))});let{lastCommit:r}=n.project.repository.tree??{};if(!r)throw Error(`Failed to retrieve the last commit hash.`,{cause:Error(Y(`branch_not_found`,{values:{repo:e,branch:t}}))});let{sha:i,message:a}=r;return{hash:i,message:a}},Nk=async(e,t)=>{let{owner:n,repo:r,branch:i}=Tk,a=await Promise.all(e.map(async({action:e,path:t,previousPath:n,data:r=``})=>({action:e,content:typeof r==`string`?r:await Kp(r),encoding:typeof r==`string`?`text`:`base64`,file_path:t,previous_path:n}))),{id:o,committed_date:s}=await wD(`/projects/${encodeURIComponent(`${n}/${r}`)}/repository/commits`,{method:`POST`,body:{branch:i,commit_message:nO(e,t),actions:a}}),c=await Promise.all(e.map(async({path:e,data:t})=>t===void 0?null:[e,{sha:await VE(t)}]));return{sha:o,date:new Date(s),files:Object.fromEntries(c.filter(e=>!!e))}},Pk=async e=>{try{let{avatar_url:t}=await wD(`/avatar?email=${encodeURIComponent(e)}&size=48`);return t||void 0}catch{return}},Fk=async e=>{let{owner:t,repo:n,branch:r}=Tk,i=encodeURIComponent(`${t}/${n}`),a=await Promise.all(e.map(e=>wD(`/projects/${i}/repository/commits?ref_name=${encodeURIComponent(r??``)}&path=${encodeURIComponent(e)}&per_page=100`))),o=new Map;a.flat().forEach(e=>{o.has(e.id)||o.set(e.id,{sha:e.id,authorName:e.author_name,authorEmail:e.author_email,authorAvatarURL:void 0,date:new Date(e.committed_date)})});let s=[...new Set([...o.values()].map(e=>e.authorEmail))].filter(e=>!!e),c=new Map(await Promise.all(s.map(async e=>[e,await Pk(e)]))),l=[...o.values()].sort((e,t)=>t.date.getTime()-e.date.getTime());return l.forEach(e=>{e.authorAvatarURL=c.get(e.authorEmail)}),l}})),Lk,Rk,zk,Bk,Vk,Hk,Uk,Wk,oae=s((()=>{Yp(),Ik(),Ak(),ED(),_O(),yC(),Lk=`
|
|||
|
|
query($fullPath: ID!, $branch: String!, $cursor: String!) {
|
|||
|
|
project(fullPath: $fullPath) {
|
|||
|
|
repository {
|
|||
|
|
tree(ref: $branch, recursive: true) {
|
|||
|
|
blobs(after: $cursor) {
|
|||
|
|
nodes {
|
|||
|
|
type
|
|||
|
|
path
|
|||
|
|
sha
|
|||
|
|
}
|
|||
|
|
pageInfo {
|
|||
|
|
endCursor
|
|||
|
|
hasNextPage
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
`,Rk=async()=>{let e=[],t=``;for(;;){let{nodes:n,pageInfo:{endCursor:r,hasNextPage:i}}=(await TD(Lk,{cursor:t})).project.repository.tree.blobs;if(e.push(...n),t=r,!i)break}return e.filter(({type:e})=>e===`blob`).map(({path:e,sha:t})=>({path:e,sha:t,size:0,name:Vp(e).basename}))},zk=`
|
|||
|
|
query($fullPath: ID!, $branch: String!, $paths: [String!]!) {
|
|||
|
|
project(fullPath: $fullPath) {
|
|||
|
|
repository {
|
|||
|
|
blobs(ref: $branch, paths: $paths) {
|
|||
|
|
nodes {
|
|||
|
|
rawTextBlob
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
`,Bk=async(e,t)=>{if(!e.length)return{};let{isSelfHosted:n=!1}=Tk,r=n?20:100,i=[...e],a=[];for(;;){let e=await TD(t,{paths:i.splice(0,r)});if(a.push(...e.project.repository.blobs.nodes),!i.length)break}return Object.fromEntries(e.map((e,t)=>[e,a[t]]))},Vk=async({fetchingFiles:e,blobs:t,sizes:n={},commits:r={}})=>{let i=e.map(({path:e,sha:i})=>{let a=r[e],o={sha:i,size:Number(n[e]?.size??0),text:t[e]?.rawTextBlob??void 0,meta:{}};if(a){let{author:e,authorName:t,authorEmail:n,committedDate:r}=a,{id:i,username:s}=e??{},c=i?.match(/\d+/);o.meta={commitAuthor:{name:t,email:n,id:c?Number(c[0]):void 0,login:s},committedDate:new Date(r)}}return[e,o]});return Object.fromEntries(i)},Hk=async e=>{fC.set(0);let t=window.setInterval(()=>{fC.update((e=0)=>e+1)},e.length/10),n=e.filter(({type:e})=>e!==`asset`).map(({path:e})=>e),r=await Bk(n,zk);return window.clearInterval(t),fC.set(void 0),Vk({fetchingFiles:e,blobs:r})},Uk=async()=>{await Dk(),await gO({repository:Tk,fetchDefaultBranchName:kk,fetchLastCommit:Mk,fetchFileList:Rk,fetchFileContents:Hk})},Wk=async e=>{let{owner:t,repo:n,branch:r=``}=Tk,{path:i}=e;return wD(`/projects/${encodeURIComponent(`${t}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?lfs=true&ref=${encodeURIComponent(r)}`,{responseType:`blob`})}})),Gk,Kk,qk,sae=s((()=>{yD(),Gk=`https://status.gitlab.com/`,Kk=`https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7`,qk=async()=>{try{let{result:{status_overall:{status_code:e}}}=await vD(Kk);if(e===100)return`none`;if([200,300,400].includes(e))return`minor`;if([500,600].includes(e))return`major`}catch{}return`unknown`}})),Jk,Yk,Xk,cae=s((()=>{Ip(),Zp(),aae(),Ik(),bk(),oae(),Ak(),sae(),ED(),qD(),TF(),OO(),Jk=/(?<owner>.+)\/(?<repo>[^/]+)$/,Yk=()=>{let{backend:e}=dn(bF)??{};if(e?.name!==`gitlab`)return;let{repo:t,branch:n,base_url:r=vk,auth_endpoint:i=yk,app_id:a=``,api_root:o=_k,graphql_api_root:s=o.replace(/\/api\/.+$/,`/api/graphql`),include_credentials:c=!1}=e,{owner:l,repo:u}=t.match(Jk)?.groups??{},d=`${l}/${u}`,f=`${Np(r)}/${Np(i)}`,p=KD(o,d);return Object.assign(Tk,{service:hk,label:gk,owner:l,repo:u,branch:n,repoURL:p,tokenPageURL:Sk(p),databaseName:`${hk}:${d}`,isSelfHosted:o!==_k},Ek(p,n)),Object.assign(xD,{clientId:a,authScope:`api`,authURL:f,tokenURL:f.replace(`/authorize`,`/token`),authScheme:`Bearer`,restBaseURL:Np(o),graphqlBaseURL:Np(s),includeCredentials:c}),Object.assign(SD,{fullPath:d,branch:n}),DO.devModeEnabled&&console.info(`repositoryInfo`,Tk),Tk},Xk={isGit:!0,name:hk,label:gk,repository:Tk,statusDashboardURL:Gk,checkStatus:qk,init:Yk,signIn:Ck,signOut:wk,fetchFiles:Uk,fetchBlob:Wk,commitChanges:Nk,fetchFileCommits:Fk}})),Zk,Qk,$k,eA,tA,nA,rA,iA=s((()=>{Zp(),Iie(),Gie(),Xie(),rae(),cae(),Zk={github:mk,gitlab:Xk,gitea:AO,local:Fie,"test-repo":Wie},Qk={azure:{label:`Azure DevOps`},bitbucket:{label:`Bitbucket`},"git-gateway":{label:`Git Gateway`,deprecated:!0}},$k=Object.keys(Zk).filter(e=>e!==`local`),eA=Object.fromEntries(Object.entries(Zk).filter(([,e])=>e.isGit)),tA=ln(),nA=un([tA],([e],t,n)=>{n(t=>{let n=e?Zk[e]:void 0;return n&&n!==t&&n.init(),n})}),rA=ln(!0)})),aA,oA,sA,cA,lA,uA,dA,fA,pA,mA,hA,gA,_A=s((()=>{Zp(),TF(),aA=ln(!1),oA=ln(!1),sA=ln(!1),cA=`https://console.cloudinary.com/console/media_library`,lA=new URL(cA).origin,uA=[`cloud_name`,`api_key`,`username`,`timestamp`,`signature`,`integration`,`use_saml`,`saml_iframe_support`],dA=[`integration`,`inline_container`,`z_index`,`multiple`,`max_files`,`default_transformations`,`insert_caption`,`remove_header`,`folder`,`search`,`collection`,`asset`,`transformation`,`sandboxNotAllowedAttributes`,`theme`],fA=e=>{let t=dn(bF);if(e??=t,e?.media_libraries&&`cloudinary`in e.media_libraries)return e.media_libraries.cloudinary;if(!e?.media_library)return;let n=e.media_library.name===`cloudinary`,r=!e.media_library.name&&t?.media_library?.name===`cloudinary`;if(n||r)return e.media_library},pA=new Map,mA=e=>{let t=e?JSON.stringify(e):`global`,n=pA.get(t);if(n)return n;let r=fA()||{config:{}},i=fA(e)||{config:{}},a={...r,...i,config:{...r.config,...i.config}};return pA.set(t,a),a},
|
|||
|
|
`),h=Object.keys(n).map(e=>e.toLowerCase()).sort().join(`;`),g=[e,f,p,`${m}\n`,h,r].join(`
|
|||
|
|
`),_=`AWS4-HMAC-SHA256`,v=`${d}/${o}/${s}/aws4_request`,y=[_,u,v,await bA(g)].join(`
|
|||
|
|
`),b=await yA(`AWS4${a}`,d),x=await yA(b,o),S=await yA(x,s),C=await yA(S,`aws4_request`),w=await yA(C,y),T=Array.from(w).map(e=>e.toString(16).padStart(2,`0`)).join(``);return[`${_} Credential=${i}/${v},`,`SignedHeaders=${h}, Signature=${T}`].join(` `)},SA=async({method:e,url:t,config:n,secretAccessKey:r,body:i=``,extraHeaders:a={}})=>{let{access_key_id:o,region:s=`us-east-1`}=n,c=new Date,l=new URL(t),u=await bA(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await xA({method:e,url:t,headers:d,payloadHash:u,accessKeyId:o,secretAccessKey:r,region:s,service:`s3`,date:c});return fetch(t,{method:e,headers:{...d,Authorization:f},...i&&{body:i}})},CA=e=>{let t=new DOMParser().parseFromString(e,`text/xml`),n=e=>{if(e.children.length===0)return e.textContent;let t={};return Array.from(e.children).forEach(e=>{let r=e.tagName,i=n(e);t[r]?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}),t};return n(t.documentElement)},wA=({bucket:e,key:t,endpoint:n,region:r,forcePathStyle:i,publicUrl:a})=>a?`${a}/${t}`:n?`${n}/${e}/${t}`:i?`https://s3.${r}.amazonaws.com/${e}/${t}`:`https://${e}.s3.${r}.amazonaws.com/${t}`,TA=(e,t)=>{let{bucket:n,region:r,endpoint:i,force_path_style:a,prefix:o=``,public_url:s}=t;return e.map(e=>{let t=e.Key,c=t.split(`/`).pop()||t,l=o&&t.startsWith(o)?t.slice(o.length):t,u=wA({bucket:n,key:t,endpoint:i,region:r,forcePathStyle:a,publicUrl:s});return{id:t,description:l,previewURL:u,downloadURL:u,fileName:c,lastModified:new Date(e.LastModified),size:Number(e.Size),kind:kT(t)}})},EA=async(e,t,{maxPages:n=10}={})=>{let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=e,{kind:c,apiKey:l}=t;if(!l)return Promise.reject(Error(`S3 secret access key is required`));let u=[],d;for(let t=0;t<n;t+=1){let t=new URLSearchParams({"list-type":`2`,"max-keys":`1000`,...s&&{prefix:s},...d&&{"continuation-token":d}}),n=a?`${a}/${r}?${t}`:o?`https://s3.${i}.amazonaws.com/${r}?${t}`:`https://${r}.s3.${i}.amazonaws.com/?${t}`,c=await SA({method:`GET`,url:n,config:e,secretAccessKey:l});if(!c.ok){let e=await c.text();return Promise.reject(Error(`Failed to list objects: ${e}`))}let f=await c.text(),p=CA(f),m=(p.Contents?Array.isArray(p.Contents)?p.Contents:[p.Contents]:[]).filter(e=>!e.Key.endsWith(`/`));if(u.push(...m),d=p.NextContinuationToken,p.IsTruncated!==`true`||!d)break;await nT(50)}let f=c?u.filter(e=>kT(e.Key)===c):u;return TA(f,e)},DA=async(e,t,n)=>{let r=await EA(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},OA=async(e,t,n)=>{if(e.length===0)return[];let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=t,{apiKey:c}=n;if(!c)return Promise.reject(Error(`S3 secret access key is required`));let l=[];for(let n of e){let u=n.name.split(/[/\\]/).filter(Boolean).at(-1)??n.name,d=s?`${s}${u}`:u,f=a?`${a}/${r}/${d}`:o?`https://s3.${i}.amazonaws.com/${r}/${d}`:`https://${r}.s3.${i}.amazonaws.com/${d}`,p=await n.arrayBuffer(),m=await SA({method:`PUT`,url:f,config:t,secretAccessKey:c,body:p,extraHeaders:{"Content-Type":n.type||`application/octet-stream`,...t.acl!==!1&&{"x-amz-acl":t.acl??`public-read`}}});if(!m.ok){let e=await m.text();throw Error(`Failed to upload file ${n.name}: ${e}`)}l.push({Key:d,LastModified:new Date().toISOString(),ETag:``,Size:n.size,ContentType:n.type}),e.length>1&&await nT(50)}return TA(l,t)}})),AA,jA,MA,NA,PA,FA,IA,lae=s((()=>{kA(),AA=e=>vA(`aws_s3`,e),jA=e=>{let t=AA(e)??AA();return!!(t&&t.access_key_id&&t.bucket&&t.region)},MA=({fieldConfig:e})=>{let t=AA(e)??AA();if(!t)throw Error(`Amazon S3 configuration is not available`);return t},NA=async e=>EA(MA(e),e),PA=async(e,t)=>DA(e,MA(t),t),FA=async(e,t)=>OA(e,MA(t),t),IA={serviceType:`cloud_storage`,serviceId:`aws_s3`,serviceLabel:`Amazon S3`,serviceURL:`https://aws.amazon.com/s3/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.aws.amazon.com/s3/`,apiKeyURL:`https://console.aws.amazon.com/iam/home#/security_credentials`,apiKeyPattern:/^[A-Za-z0-9/+=]{40}$/,is
|
|||
|
|
@media (width < 768px) {.floating-action-button-wrapper.svelte-32d6pp {display:block;position:fixed;inset-inline-end:16px;inset-block-end:72px;z-index:100;}.floating-action-button-wrapper.svelte-32d6pp button {border-radius:50%;height:56px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.4);}.floating-action-button-wrapper.svelte-32d6pp button .icon {font-size:32px;}
|
|||
|
|
}`}})),wI,Fse=s((()=>{J(),wI=e=>{let{type:t=`string`,name:n,label:r}=e.dataset,{value:i}=e.dataset;return t===`number`?(i=Number(i),Number.isNaN(i)&&(i=null)):t===`boolean`?i=i===`true`:t===`string`&&(i=i?String(i):``),{target:e,type:t,name:n,label:r,value:i}}})),Ise,TI,Lse,Rse,EI,DI=s((()=>{J(),X(),hI(),rT(),Fse(),Ise=/\p{Diacritic}/gu,TI=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(Ise,``).toLocaleLowerCase():``),Lse={grid:{orientation:`vertical`,childRoles:[`row`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0},listbox:{orientation:`vertical`,childRoles:[`option`],childSelectedAttr:`aria-selected`,focusChild:!1,selectFirst:!1},menu:{orientation:`vertical`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1},menubar:{orientation:`horizontal`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1},radiogroup:{orientation:`horizontal`,childRoles:[`radio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1},tablist:{orientation:`horizontal`,childRoles:[`tab`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0}},Rse=class{constructor(e,{clickToSelect:t=!0}={}){e.dispatchEvent(new CustomEvent(`Initializing`)),this.parent=e,this.role=e.getAttribute(`role`),this.multi=this.parent.getAttribute(`aria-multiselectable`)===`true`,this.id=pI(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=t,this._onClick=e=>{this.onClick(e)},this._onKeyDown=e=>{this.onKeyDown(e)};let{orientation:n,childRoles:r,childSelectedAttr:i,focusChild:a,selectFirst:o}=Lse[this.role];this.orientation=this.grid?`horizontal`:this.parent.getAttribute(`aria-orientation`)??n,this.childRoles=r,this.childSelectedAttr=i,this.childSelectedProp=i.replace(`aria-`,``),this.focusChild=a,this.selectFirst=o,this.parent.tabIndex=a?-1:0,(async()=>{await nT(100),this.activate()})()}activate(){let{parent:e,allMembers:t,selected:n}=this;t.forEach((e,t)=>{let r=e.getAttribute(this.childSelectedAttr)===`true`||(n?e===n:this.selectFirst&&t===0),i=document.querySelector(`#${e.getAttribute(`aria-controls`)}`);e.id||=`${this.id}-item-${t+1}`,e.tabIndex=r?0:-1,e.setAttribute(this.childSelectedAttr,String(r)),i&&(i.inert=!r,i.setAttribute(`aria-labelledby`,e.id),i.setAttribute(`aria-hidden`,String(!r)),r&&globalThis.setTimeout(()=>{try{i.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{i.scrollIntoView(!0)}},300))}),e.addEventListener(`click`,this._onClick),e.addEventListener(`keydown`,this._onKeyDown),e.dispatchEvent(new CustomEvent(`Initialized`))}get selector(){return this.childRoles.map(e=>`[role="${e}"]`).join(`,`)}get allMembers(){return[...this.parent.querySelectorAll(this.selector)]}get activeMembers(){return this.allMembers.filter(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`))}get selected(){return this.activeMembers.find(e=>e.matches(`[${this.childSelectedAttr}="true"]`))}get isDisabled(){return this.parent.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.parent.matches(`[aria-readonly="true"]`)}get grid(){return this.role===`grid`||this.role===`listbox`&&this.parent.matches(`.grid`)}selectTarget(e,t){if(this.isDisabled||this.isReadOnly){e.preventDefault();return}let n=t.getAttribute(`role`),r=t.closest(this.parentGroupSelector),i=e.type===`click`,a=e.type===`keydown`&&e.key===` `;this.activeMembers.forEach(o=>{let s=o.matches(`[role="menuitemcheckbox"]`),c=o.matches(`[role="menuitemradio"]`);if((s||c)&&(o.getAttribute(`role`)!==n||o.closest(this.parentGroupSelector)!==r))return;let l=s||this.multi,u=c||!l,d=o===t,f=o.matches(`[${this.childSelectedAttr}="true"]`),p=o.getAttribute(`aria-controls`),m=p?document.getElementById(p):null;l&&d&&(i||a)&&(o.setAttribute(this.childSelectedAttr,String(!f)),o.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:!f}})),f||o.dispatchEvent(new CustomEvent(`Select`))),u&&f!==d&&(!c||a||i)&&(o.setAttribute(this.childSelectedAttr,String(d)),o.dispatchEvent
|
|||
|
|
@media (pointer: coarse) {.checkbox-group.vertical.svelte-vfek2h {gap:8px;}
|
|||
|
|
}.inner.svelte-vfek2h {display:contents;}`}}));function HI(e,t){let n=za();k(t,!0),G(e,KI);let r=q(t,`checked`,15),i=q(t,`name`,3,void 0),a=q(t,`value`,3,void 0),o=q(t,`hidden`,3,!1),s=q(t,`disabled`,3,!1),c=q(t,`readonly`,3,!1),l=q(t,`required`,3,!1),u=q(t,`invalid`,3,!1),d=q(t,`label`,3,void 0),f=q(t,`ariaLabel`,3,void 0),p=q(t,`group`,15),m=ec(t,UI),h=N(void 0),g=M(()=>r()===`mixed`);ri(()=>{Array.isArray(p())&&(p().includes(a())?r()!==!0&&r(!0):r()!==!1&&r(!1))});var _=GI();let v;var y=F(_),b=F(y);{let e=e=>{var n=V(),i=I(n),a=e=>{var n=V();Ao(I(n),()=>t.checkIcon),H(e,n)},o=e=>{tI(e,{name:`remove`})},s=e=>{tI(e,{name:`check`})};W(i,e=>{t.checkIcon?e(a):z(g)?e(o,1):r()&&e(s,2)}),H(e,n)},d=M(()=>f()||void 0),_=M(()=>f()?void 0:`${n}-label`);bI(b,tc(()=>m,{role:`checkbox`,get id(){return n},get name(){return i()},get value(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get"aria-invalid"(){return u()},get"aria-checked"(){return r()},get"aria-label"(){return z(d)},get"aria-labelledby"(){return z(_)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!(s()||c())&&(r(z(g)?!0:!r()),Array.isArray(p())&&(r()?p().includes(a())||p([...p(),a()]):p().includes(a())&&p(p().filter(e=>e!==a()))),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:r()}})))},get element(){return z(h)},set element(e){P(h,e,!0)},startIcon:e,$$slots:{startIcon:!0}}))}var x=L(b,2),S=e=>{var r=WI(),i=F(r),a=e=>{var n=V();Ao(I(n),()=>t.children),H(e,n)},o=e=>{var t=Ra();R(()=>U(t,d())),H(e,t)};W(i,e=>{t.children?e(a):e(o,-1)}),O(r),R(()=>K(r,`id`,`${n}-label`)),H(e,r)};W(x,e=>{(t.children||d())&&e(S)}),O(y),O(_),R(()=>{v=ds(_,1,`sui checkbox ${t.class??``}`,`svelte-5ilvxj`,v,{checked:r(),indeterminate:z(g),disabled:s(),readonly:c()}),K(_,`hidden`,o()),y.inert=s()}),Ta(`click`,_,e=>{e.preventDefault(),e.stopPropagation(),e.target.matches(`button`)||z(h)?.click()}),H(e,_),A()}var UI,WI,GI,KI,rce=s((()=>{Z(),J(),SI(),nI(),UI=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`name`,`value`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`label`,`ariaLabel`,`group`,`onChange`,`children`,`checkIcon`]),WI=B(`<label class="svelte-5ilvxj"><!></label>`),GI=B(`<div role="none"><div role="none" class="inner svelte-5ilvxj"><!> <!></div></div>`),KI={hash:`svelte-5ilvxj`,code:`.checkbox.svelte-5ilvxj {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.checkbox.svelte-5ilvxj:hover button {background-color:var(--sui-hover-background-color);}.checkbox.svelte-5ilvxj:hover button[aria-checked=true] {background-color:var(--sui-primary-accent-color-light);}.checkbox.svelte-5ilvxj:active button {background-color:var(--sui-active-background-color);}.checkbox.svelte-5ilvxj:active button[aria-checked=true] {background-color:var(--sui-primary-accent-color-dark);}.checkbox.svelte-5ilvxj button {flex:none;align-items:center;justify-content:center;overflow:hidden;margin:0 !important;border-width:var(--sui-checkbox-border-width, 1.5px);border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-border-radius);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);color:var(--sui-primary-accent-text-color);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.checkbox.svelte-5ilvxj button[aria-checked=true] {border-color:var(--sui-checkbox-border-color-checked, var(--sui-primary-accent-color));color:var(--sui-checkbox-foreground-color-checked, var(--sui-primary-accent-color-inverted));background-color:var(--sui-checkbox-background-color-checked, var(--sui-primary-accent-color));}.checkbox.svelte-5ilvxj button[aria-invalid=true] {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);}.checkbox.svelte-5ilvxj button[aria-checked=true][aria-invalid=true] {backgr
|
|||
|
|
@media (max-height: 400px) {.content.small.svelte-10s31h1 {max-height:calc(100dvh - 32px);}
|
|||
|
|
}.content.medium.svelte-10s31h1 {width:var(--sui-dialog-medium-content-width, var(--sui-dialog-content-width, 600px));max-height:var(--sui-dialog-medium-content-max-height, var(--sui-dialog-content-max-height, 600px));}
|
|||
|
|
@media (max-height: 600px) {.content.medium.svelte-10s31h1 {max-height:calc(100dvh - 32px);}
|
|||
|
|
}.content.large.svelte-10s31h1 {width:var(--sui-dialog-large-content-width, var(--sui-dialog-content-width, 800px));max-height:var(--sui-dialog-large-content-max-height, var(--sui-dialog-content-max-height, 800px));}
|
|||
|
|
@media (max-height: 800px) {.content.large.svelte-10s31h1 {max-height:calc(100dvh - 32px);}
|
|||
|
|
}.content.x-large.svelte-10s31h1 {width:var(--sui-dialog-x-large-content-width, var(--sui-dialog-content-width, 1000px));max-height:var(--sui-dialog-x-large-content-max-height, var(--sui-dialog-content-max-height, 1000px));}
|
|||
|
|
@media (max-height: 1000px) {.content.x-large.svelte-10s31h1 {max-height:calc(100dvh - 32px);}
|
|||
|
|
}:is(.header.svelte-10s31h1, .footer.svelte-10s31h1) {display:flex;align-items:center;gap:4px;}.header.svelte-10s31h1 {box-sizing:content-box;margin:var(--sui-dialog-header-margin, 0 16px);border-width:var(--sui-dialog-header-border-width, 0 0 1px);border-color:var(--sui-dialog-header-border-color, var(--sui-secondary-border-color));padding:var(--sui-dialog-header-padding, 16px 8px);height:var(--sui-dialog-header-height, 32px);}.header.svelte-10s31h1 .title:where(.svelte-10s31h1) {font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-bold);}.footer.svelte-10s31h1 {margin:var(--sui-dialog-footer-margin, 0 24px 24px);}
|
|||
|
|
@media (width < 768px) {.footer.svelte-10s31h1 {margin:var(--sui-dialog-footer-margin, 0 16px 16px);}
|
|||
|
|
}.body.svelte-10s31h1 {overflow:auto;margin:var(--sui-dialog-body-margin, 24px 24px);white-space:normal;line-height:var(--sui-line-height-compact);}
|
|||
|
|
@media (width < 768px) {.body.svelte-10s31h1 {margin:var(--sui-dialog-body-margin, 16px 16px);}
|
|||
|
|
}`}}));function nL(e,t){k(t,!0);let n=q(t,`open`,15,!1),r=ec(t,rL);qI(e,tc(()=>r,{role:`alertdialog`,showCancel:!1,get open(){return n()},set open(e){n(e)}})),A()}var rL,ice=s((()=>{Z(),J(),tL(),rL=new Set([`$$slots`,`$$events`,`$$legacy`,`open`])}));function iL(e,t){k(t,!0);let n=q(t,`open`,15,!1),r=ec(t,aL);qI(e,tc(()=>r,{role:`alertdialog`,get open(){return n()},set open(e){n(e)}})),A()}var aL,ace=s((()=>{Z(),J(),tL(),aL=new Set([`$$slots`,`$$events`,`$$legacy`,`open`])}));function oL(e,t){let n=za();k(t,!0),G(e,uL);let r=q(t,`value`,15),i=q(t,`element`,15),a=q(t,`role`,3,`textbox`),o=q(t,`keyShortcuts`,3,void 0),s=q(t,`dir`,3,void 0),c=q(t,`name`,3,void 0),l=q(t,`showInlineLabel`,3,!1),u=q(t,`inputmode`,3,`text`),d=q(t,`flex`,3,!1),f=q(t,`monospace`,3,!1),p=q(t,`debounce`,3,!1),m=q(t,`hidden`,3,!1),h=q(t,`disabled`,3,!1),g=q(t,`readonly`,3,!1),_=q(t,`required`,3,!1),v=q(t,`invalid`,3,!1),y=q(t,`ariaLabel`,3,void 0),b=ec(t,sL),x=M(()=>typeof p()==`number`?p():300),S=0;ri(()=>()=>{clearTimeout(S)});let C=e=>{r(i()?.value),t.oninput?.(e)},w=e=>{let t=e;p()?(clearTimeout(S),S=setTimeout(()=>{C(t)},z(x))):C(t)};var T=lL();let E;var ee=F(T);Cs(ee,()=>({...b,value:r(),type:`text`,role:a(),dir:s(),name:c(),tabindex:h()?-1:0,disabled:h()||void 0,readonly:g()||void 0,inputmode:u(),"aria-label":y(),"aria-hidden":m(),"aria-disabled":h(),"aria-readonly":g(),"aria-required":_(),"aria-invalid":v(),oninputcapture:w}),void 0,void 0,void 0,`svelte-m5c6pt`,!0),qs(ee,e=>i(e),()=>i()),$o(ee,()=>sI(o()));var te=L(ee,2),ne=e=>{var t=cL();let i;lI(F(t),{children:(e,t)=>{gt();var n=Ra();R(()=>U(n,y())),H(e,n)},$$slots:{default:!0}}),O(t),R(()=>{K(t,`id`,`${n}-label`),i=ds(t,1,`label svelte-m5c6pt`,null,i,{hidden:!!r()})}),H(e,t)};W(te,e=>{y()&&l()&&e(ne)}),O(T),R(()=>{E=ds(T,1,`sui text-input ${t.class??``}`,`svelte-m5c6pt`,E,{flex:d(),monospace:f(),disabled:h(),readonly:g()}),K(T,`hidden`,m()),ee.dir=ee.dir}),H(e,T),A()}var sL,cL,lL,uL,dL=s((()=>{Z(),J(),cI(),uI(),sL=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`element`,`role`,`keyShortcuts`,`dir`,`name`,`showInlineLabel`,`inputmode`,`flex`,`monospace`,`debounce`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`,`oninput`]),cL=B(`<span aria-hidden="true"><!></span>`),lL=B(`<div role="none"><input/> <!></div>`),uL={hash:`svelte-m5c6pt`,code:`.text-input.svelte-m5c6pt {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.text-input.flex.svelte-m5c6pt:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.text-input.monospace.svelte-m5c6pt {--sui-textbox-font-family: var(--sui-font-family-monospace, monospace);}input.svelte-m5c6pt:is(:where(.svelte-m5c6pt):-webkit-autofill, :where(.svelte-m5c6pt):-webkit-autofill:focus) {transition:background-color 0s 600000s, color 0s 600000s;}input.svelte-m5c6pt {display:inline-block;flex:auto;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-singleline-padding);min-width:0;height:var(--sui-textbox-height);color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-singleline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}input.svelte-m5c6pt:focus {color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}input.svelte-m5c6pt:read-only {color:var(--sui-tertiary-foreground
|
|||
|
|
.label.svelte-m5c6pt {color:var(--sui-textbox-placeholder-foreground-color, var(--sui-textbox-foreground-color));opacity:var(--sui-textbox-placeholder-opacity, 0.5);font-family:var(--sui-textbox-placeholder-font-family, var(--sui-textbox-font-family));font-size:var(--sui-textbox-placeholder-font-size, var(--sui-textbox-font-size));line-height:var(--sui-textbox-placeholder-singleline-line-height, var(--sui-textbox-singleline-line-height));font-weight:var(--sui-textbox-placeholder-font-weight, var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal)));text-align:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));text-indent:var(--sui-textbox-placeholder-text-indent, var(--sui-textbox-text-indent, 0));letter-spacing:var(--sui-textbox-placeholder-letter-spacing, var(--sui-textbox-letter-spacing, normal));}`}}));function fL(e,t){k(t,!0),G(e,hL);let n=q(t,`open`,15,!1),r=q(t,`value`,15,``),i=q(t,`textboxAttrs`,19,()=>({})),a=ec(t,pL);qI(e,tc(()=>a,{role:`alertdialog`,get open(){return n()},set open(e){n(e)},children:(e,n)=>{var a=mL(),o=I(a);Ao(o,()=>t.children??D);var s=L(o,2),c=F(s),l=e=>{var n=V();Ao(I(n),()=>t.input),H(e,n)},u=e=>{oL(e,tc({dir:`auto`,flex:!0,autofocus:!0},i,{get onkeydown(){return t.onkeydown},get onkeyup(){return t.onkeyup},get onkeypress(){return t.onkeypress},get oninput(){return t.oninput},get value(){return r()},set value(e){r(e)}}))};W(c,e=>{t.input?e(l):e(u,-1)}),O(s),H(e,a)},$$slots:{default:!0}})),A()}var pL,mL,hL,oce=s((()=>{Z(),J(),dL(),tL(),pL=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`value`,`textboxAttrs`,`children`,`input`,`onkeydown`,`onkeyup`,`onkeypress`,`oninput`]),mL=B(`<!> <div class="input-outer svelte-1isgibu"><!></div>`,1),hL={hash:`svelte-1isgibu`,code:`.input-outer.svelte-1isgibu {margin:12px 0 0;}`}}));function gL(e,t){k(t,!0);let n=q(t,`accept`,3,void 0),r=q(t,`multiple`,3,!1),i=q(t,`onSelect`,3,void 0),a=q(t,`onCancel`,3,void 0),o=N(void 0);var s={open:()=>{z(o)?.click()}},c=_L();return qs(c,e=>P(o,e),()=>z(o)),R(()=>{K(c,`accept`,n()),c.multiple=r()}),Ta(`change`,c,({target:e})=>{let t=[...e.files];i()?.({files:t,file:t[0]})}),wa(`cancel`,c,e=>{e.stopPropagation(),a()?.()}),H(e,c),A(s)}var _L,sce=s((()=>{Z(),J(),_L=B(`<input class="sui file-picker" type="file" hidden=""/>`),Ea([`change`])}));function vL(e,t){let n=za();G(e,SL);let r=q(t,`label`,3,``),i=ec(t,yL);var a=xL();Cs(a,()=>({...i,role:`rowgroup`,class:`sui grid-body row-group ${t.class??``}`,"aria-labelledby":r()?`${n}-label`:void 0,"aria-roledescription":`grid body`}),void 0,void 0,void 0,`svelte-15bsuzk`);var o=F(a),s=e=>{var t=bL();Jo(F(t),()=>`th`,!1,(e,t)=>{Cs(e,()=>({role:`columnheader`,id:`${n}-label`,colspan:`9999`,class:``}),void 0,void 0,void 0,`svelte-15bsuzk`);var i=Ra();R(()=>U(i,r())),H(t,i)}),O(t),H(e,t)};W(o,e=>{r()&&e(s)}),Ao(L(o,2),()=>t.children??D),O(a),H(e,a)}var yL,bL,xL,SL,cce=s((()=>{Z(),J(),yL=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`label`,`children`]),bL=B(`<div role="row" class="row-group-caption svelte-15bsuzk"><!></div>`),xL=B(`<div><!> <!></div>`),SL={hash:`svelte-15bsuzk`,code:`[role=rowgroup].svelte-15bsuzk {display:table-row-group;}[role=row].svelte-15bsuzk {display:table-row;}[role=columnheader].svelte-15bsuzk {display:table-cell;padding:8px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-secondary-background-color);font-size:var(--sui-font-size-default);text-align:start;}`}}));function CL(e,t){G(e,EL);let n=ec(t,wL);var r=TL();Cs(r,()=>({...n,role:`gridcell`,class:`sui grid-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-1v9fjpw`),Ao(F(r),()=>t.children??D),O(r),H(e,r)}var wL,TL,EL,lce=s((()=>{Z(),J(),wL=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),TL=B(`<div><!></div>`),EL={hash:`svelte-1v9fjpw`,code:`.grid-cell.svelte-1v9fjpw {display:table-cell;}`}}));function DL(e,t){G(e,AL);let n=q(t,`selected`,3,!1),r=ec(t,OL);var i=kL();Cs(i,()=>({...r,role:`row`,class:`sui grid-row ${t.class??``}`,tabindex:`0`,"aria-selected":n()}),void 0,void 0,void 0,`svelte-jfudh8`),Ao(F(i),()=>t.children??
|
|||
|
|
@media (pointer: coarse) {[role=listbox].svelte-1d8hf3v {gap:8px 0;}
|
|||
|
|
}[role=listbox].svelte-1d8hf3v [role=separator] {margin:4px 0;background-color:var(--sui-control-border-color);}[role=listbox][aria-invalid=true].svelte-1d8hf3v {border-color:var(--sui-error-border-color);}[role=listbox].tabs.svelte-1d8hf3v {padding:0;border-block-start-width:0;border-block-end-width:0;border-inline-end-width:1px;border-inline-start-width:0;border-color:var(--sui-control-border-color);}[role=listbox].tabs.svelte-1d8hf3v .option button {justify-content:flex-start;border-width:0;border-inline-end-width:2px;border-color:transparent;padding:0 12px;border-start-end-radius:0;border-end-end-radius:0;height:var(--sui-tab-medium-height);}[role=listbox].tabs.svelte-1d8hf3v .option button[aria-selected=true] {border-color:var(--sui-primary-accent-color-light);}[role=listbox].tabs.svelte-1d8hf3v .option button .icon {display:none;}[role=listbox].in-combobox.svelte-1d8hf3v:focus-visible {outline-color:transparent;}[role=listbox].filtered.svelte-1d8hf3v [role=separator] {display:none;}.inner.svelte-1d8hf3v {display:contents;}`}}));function zL(e,t){let n=za();G(e,HL);let r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`label`,3,``),o=ec(t,BL);var s=VL();Cs(s,()=>({...o,role:`group`,id:n,class:`sui option-group ${t.class??``}`,hidden:r(),"aria-hidden":r(),"aria-disabled":i(),"aria-labelledby":`${n}-label`,"aria-roledescription":`option group`}),void 0,void 0,void 0,`svelte-60ar1f`);var c=F(s);lI(F(c),{children:(e,t)=>{gt();var n=Ra();R(()=>U(n,a())),H(e,n)},$$slots:{default:!0}}),O(c);var l=L(c,2);Ao(F(l),()=>t.children??D),O(l),O(s),R(()=>{K(c,`id`,`${n}-label`),l.inert=i()}),H(e,s)}var BL,VL,HL,pce=s((()=>{Z(),J(),uI(),BL=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`label`,`children`]),VL=B(`<div><div role="none" class="label svelte-60ar1f"><!></div> <div role="none" class="inner svelte-60ar1f"><!></div></div>`),HL={hash:`svelte-60ar1f`,code:`.option-group.svelte-60ar1f:not(:first-child) {margin:12px 0 0;}.label.svelte-60ar1f {margin:8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.inner.svelte-60ar1f {display:contents;}`}}));function UL(e,t){k(t,!0),G(e,qL);let n=q(t,`selected`,15,!1),r=q(t,`hidden`,15,!1),i=q(t,`disabled`,3,!1),a=q(t,`value`,19,()=>t.label),o=q(t,`searchValue`,19,()=>t.label),s=q(t,`wrap`,3,!1),c=ec(t,WL);var l=KL();let u;bI(F(l),tc(()=>c,{role:`option`,tabindex:`-1`,get"aria-selected"(){return n()},get label(){return t.label},get value(){return a()},get hidden(){return r()},get disabled(){return i()},get"data-search-value"(){return o()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)},onToggle:e=>{r(e.detail.hidden),r()&&n(!1),t.onToggle?.(e)},startIcon:e=>{var n=V();Ao(I(n),()=>t.startIcon??D),H(e,n)},children:(e,r)=>{var i=GL(),a=I(i),o=e=>{var n=V(),r=I(n),i=e=>{var n=V();Ao(I(n),()=>t.checkIcon),H(e,n)},a=e=>{tI(e,{class:`check`,name:`check`})};W(r,e=>{t.checkIcon?e(i):e(a,-1)}),H(e,n)};W(a,e=>{n()&&e(o)}),Ao(L(a,2),()=>t.children??D),H(e,i)},$$slots:{startIcon:!0,default:!0}})),O(l),R(()=>{u=ds(l,1,`sui option ${t.class??``}`,`svelte-1l45hmt`,u,{wrap:s()}),K(l,`hidden`,r())}),H(e,l),A()}var WL,GL,KL,qL,JL=s((()=>{Z(),J(),SI(),nI(),WL=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`hidden`,`class`,`disabled`,`label`,`value`,`searchValue`,`wrap`,`children`,`checkIcon`,`startIcon`,`onChange`,`onToggle`]),GL=B(`<!> <!>`,1),KL=B(`<div role="none"><!></div>`),qL={hash:`svelte-1l45hmt`,code:`.option.svelte-1l45hmt {display:contents;}.option.svelte-1l45hmt:focus-visible {outline-width:0 !important;}.option.svelte-1l45hmt .wrap button {white-space:normal;}.option.svelte-1l45hmt button {flex:none;display:flex;gap:4px;margin:0 !important;border-radius:var(--sui-option-border-radius);padding:var(--sui-option-padding);width:100%;height:auto;min-height:var(--sui-option-height);}.option.svelte-1l45hmt button:active {background-color:var(--sui-active-background-color);}.option.svelte-1l45hmt button[aria-selected=true] .icon.check {color:var(--sui-primary-accent-color-text);}.option.svelte-1l45hmt button * {flex:none;}.option.svelte-1l45h
|
|||
|
|
@media (pointer: coarse) {.menu.svelte-t819e7 {gap:8px 0;}
|
|||
|
|
}.menu.svelte-t819e7 [role=separator] {margin:var(--sui-menu-divider-margin, 4px);background-color:var(--sui-menu-divider-color, var(--sui-control-border-color));}`}}));function eR(e,t){k(t,!0),G(e,aR);let n=q(t,`role`,3,`menuitem`),r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`label`,3,``),o=q(t,`popupPosition`,3,`right-top`),s=ec(t,tR),c=N(!1),l=N(!1),u=N(void 0),d=N(void 0),f=M(()=>n()===`menuitem`&&!!t.items);lc(()=>{P(d,z(u)?.closest(`dialog`)??void 0,!0)});var p=iR(),m=F(p);{let e=e=>{var n=V();Ao(I(n),()=>t.startIcon??D),H(e,n)},o=e=>{var n=rR(),r=I(n);let i;var o=F(r),s=e=>{var t=Ra();R(()=>U(t,a())),H(e,t)},c=e=>{var n=V();Ao(I(n),()=>t.children??D),H(e,n)};W(o,e=>{a()?e(s):e(c,-1)}),O(r);var l=L(r,2),u=e=>{var n=nR(),r=F(n),i=e=>{var n=V();Ao(I(n),()=>t.chevronIcon),H(e,n)},a=e=>{{let t=M(()=>Hh()?`chevron_left`:`chevron_right`);tI(e,{get name(){return z(t)}})}};W(r,e=>{t.chevronIcon?e(i):e(a,-1)}),O(n),H(e,n)};W(l,e=>{z(f)&&e(u)}),R(()=>i=ds(r,1,`content svelte-1a8vvkn`,null,i,{label:!!a()})),H(e,n)},d=e=>{var n=V();Ao(I(n),()=>t.endIcon??D),H(e,n)},p=M(()=>z(f)?`menu`:void 0),h=M(()=>z(f)?z(c):void 0);bI(m,tc(()=>s,{get role(){return n()},get hidden(){return r()},get disabled(){return i()},get"aria-haspopup"(){return z(p)},get"aria-expanded"(){return z(h)},onmouseenter:e=>{z(f)&&window.setTimeout(()=>{P(c,!0)},200),t.onmouseenter?.(e)},onmouseleave:e=>{z(f)&&window.setTimeout(()=>{z(l)||P(c,!1)},200),t.onmouseleave?.(e)},onclick:e=>{z(f)&&(e.preventDefault(),e.stopPropagation(),P(c,!z(c))),t.onclick?.(e)},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(u)},set element(e){P(u,e,!0)},startIcon:e,children:o,endIcon:d,$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var h=L(m,2),g=e=>{vI(e,{get anchor(){return z(u)},get parentDialogElement(){return z(d)},get position(){return o()},get open(){return z(c)},set open(e){P(c,e,!0)},get hovered(){return z(l)},set hovered(e){P(l,e,!0)},children:(e,n)=>{YL(e,{children:(e,n)=>{var r=V();Ao(I(r),()=>t.items??D),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(h,e=>{z(f)&&z(u)&&z(d)&&e(g)}),O(p),R(()=>{ds(p,1,`sui menuitem ${t.class??``}`,`svelte-1a8vvkn`),K(p,`hidden`,r())}),H(e,p),A()}var tR,nR,rR,iR,aR,oR=s((()=>{Z(),J(),X(),dc(),SI(),nI(),yI(),$L(),tR=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`role`,`hidden`,`disabled`,`label`,`popupPosition`,`children`,`startIcon`,`endIcon`,`chevronIcon`,`items`,`onmouseenter`,`onmouseleave`,`onclick`,`onChange`,`onSelect`]),nR=B(`<span role="none" class="icon-outer svelte-1a8vvkn"><!></span>`),rR=B(`<div role="none"><!></div> <!>`,1),iR=B(`<div role="none"><!> <!></div>`),aR={hash:`svelte-1a8vvkn`,code:`.menuitem.svelte-1a8vvkn {position:relative;}.menuitem.svelte-1a8vvkn button {display:flex;gap:var(--sui-menuitem-gap, 4px);align-items:var(--sui-menuitem-align-items, center);border-radius:var(--sui-menuitem-border-radius, var(--sui-option-border-radius, 4px));margin:0 !important;padding:var(--sui-menuitem-padding, 0 16px);width:100%;min-width:var(--sui-menuitem-min-width, 160px);height:var(--sui-menuitem-height, var(--sui-option-height));color:var(--sui-menuitem-foreground-color, var(--sui-control-foreground-color, inherit));background-color:var(--sui-menuitem-background-color, transparent);font-size:var(--sui-menuitem-font-size, var(--sui-option-font-size));font-weight:var(--sui-menuitem-font-weight, var(--sui-option-font-weight, var(--sui-font-weight-normal, normal)));}.menuitem.svelte-1a8vvkn button[aria-checked=true] .icon {color:var(--sui-primary-accent-color-text);}.menuitem.svelte-1a8vvkn button:hover {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.menuitem.svelte-1a8vvkn button:active {background-color:var(--sui-active-background-color);}.menuitem.svelte-1a8vvkn :hover > [role=menu] {opacity:1;}.menuitem.svelte-1a8vvkn > [role=menu] {position:absolute;inset-block-start:2px;inset-block-end:auto;inset-inline-start:calc(100% + 4px);inset-inline-end:auto;}.menuitem.svelte-1a8vvkn > [role=menu]:hover {opacity:1;}.conte
|
|||
|
|
@media (pointer: coarse) {.radio-group.vertical.svelte-1ru4d75 {gap:8px;}
|
|||
|
|
}.radio-group.svelte-1ru4d75 [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.radio-group.svelte-1ru4d75 [aria-invalid=true] button[aria-checked=true] {border-color:var(--sui-error-border-color);}.radio-group.svelte-1ru4d75 [aria-invalid=true] button[aria-checked=true]::before {background-color:var(--sui-error-border-color);}.inner.svelte-1ru4d75 {display:contents;}`}}));function yR(e,t){let n=za();k(t,!0),G(e,CR);let r=q(t,`checked`,7,!1),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`name`,3,void 0),s=q(t,`value`,3,void 0),c=q(t,`valueType`,3,void 0),l=q(t,`label`,3,void 0),u=q(t,`group`,15),d=ec(t,bR),f=N(void 0);ri(()=>{typeof u()==`string`&&(u()===s()?r()||r(!0):r()&&r(!1))});var p=SR(),m=e=>{e.target.matches(`button`)||z(f)?.click()};Cs(p,()=>({...d,role:`none`,class:`sui radio ${t.class??``}`,hidden:i(),onclick:m,[Es]:{disabled:a()}}),void 0,void 0,void 0,`svelte-17w6laf`);var h=F(p);bI(h,{role:`radio`,get id(){return n},get hidden(){return i()},get disabled(){return a()},get name(){return o()},get value(){return s()},get valueType(){return c()},get"aria-checked"(){return r()},get"aria-labelledby"(){return`${n}-label`},onclick:e=>{e.preventDefault(),!(a()||r())&&(r(!0),typeof u()==`string`&&u(s()))},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(f)},set element(e){P(f,e,!0)}});var g=L(h,2),_=e=>{var r=xR(),i=F(r),a=e=>{var n=V();Ao(I(n),()=>t.children??D),H(e,n)},o=e=>{var t=Ra();R(()=>U(t,l())),H(e,t)};W(i,e=>{t.children?e(a):e(o,-1)}),O(r),R(()=>K(r,`id`,`${n}-label`)),H(e,r)};W(g,e=>{(t.children||l())&&e(_)}),O(p),H(e,p),A()}var bR,xR,SR,CR,vce=s((()=>{Z(),J(),SI(),bR=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`name`,`value`,`valueType`,`label`,`group`,`children`,`onChange`,`onSelect`]),xR=B(`<label class="svelte-17w6laf"><!></label>`),SR=B(`<span><!> <!></span>`),CR={hash:`svelte-17w6laf`,code:`.radio.svelte-17w6laf {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.radio.svelte-17w6laf :hover button {background-color:var(--sui-hover-background-color);}.radio.svelte-17w6laf :hover button[aria-checked=true] {border-color:var(--sui-primary-accent-color-light);color:var(--sui-primary-accent-color-text);}.radio.svelte-17w6laf :hover button[aria-checked=true]::before {background-color:var(--sui-primary-accent-color-light);}.radio.svelte-17w6laf :active button {background-color:var(--sui-active-background-color);}.radio.svelte-17w6laf :active button[aria-checked=true] {border-color:var(--sui-primary-accent-color-dark);color:var(--sui-primary-accent-color-dark);}.radio.svelte-17w6laf button {flex:none;justify-content:center;overflow:hidden;margin:0 !important;border-width:1.5px;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.radio.svelte-17w6laf button::before {content:"";border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 7px);height:calc(var(--sui-checkbox-height) - 7px);background-color:var(--sui-primary-accent-color);opacity:0;transition:all 200ms;will-change:opacity;}.radio.svelte-17w6laf button[aria-checked=true] {border-color:var(--sui-primary-accent-color);}.radio.svelte-17w6laf button[aria-checked=true]::before {opacity:1;}.radio.svelte-17w6laf label:where(.svelte-17w6laf) {cursor:inherit;}`}}));function wR(e,t){k(t,!0),G(e,OR);let n=q(t,`disabled`,3,!1),r=q(t,`showHandleBar`,3,!1),i=q(t,`ariaLabel`,3,void 0),a=ec(t,TR),o=Lt(`paneGroup`);if(!o)throw Error(`<ResizableHandle> must be used inside a <ResizablePaneGroup>`);let s=o.registerHandle(),c=M(()=>o.direction===`horizontal`),l=M(()=>o.sizes),u=M(()=>z(l)[s]??0),d=M(()=>o.getPan
|
|||
|
|
/* Add .1s delay before the position can be determined */transition:opacity 100ms 100ms;}.combobox.svelte-ua4fsq + [role=listbox]:not(.open) {opacity:0;pointer-events:none;}.combobox-inner.svelte-ua4fsq {display:flex;flex-direction:column;overflow:hidden;}.combobox-inner.svelte-ua4fsq .sui.search-bar {flex:none;}.combobox-inner.svelte-ua4fsq .sui.listbox {flex:auto;overflow-y:auto;}.combobox-inner.svelte-ua4fsq .no-options:where(.svelte-ua4fsq) {flex:none;display:flex;align-items:center;padding:var(--sui-option-padding);height:var(--sui-option-height);color:var(--sui-tertiary-foreground-color);}`}}));function wce(e){let t=e-1;return t*t*t+1}var Tce=s((()=>{}));function Ece(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=wce}=r,s=getComputedStyle(e),c=s.transform===`none`?``:s.transform,[l,u]=s.transformOrigin.split(` `).map(parseFloat);l/=e.clientWidth,u/=e.clientHeight;var d=Dce(e),f=e.clientWidth/n.width/d,p=e.clientHeight/n.height/d,m=t.left+t.width*l,h=t.top+t.height*u,g=n.left+n.width*l,_=n.top+n.height*u,v=(m-g)*f,y=(h-_)*p,b=t.width/n.width,x=t.height/n.height;return{delay:i,duration:typeof a==`function`?a(Math.sqrt(v*v+y*y)):a,easing:o,css:(e,t)=>`transform: ${c} translate(${t*v}px, ${t*y}px) scale(${e+t*b}, ${e+t*x});`}}function Dce(e){if(`currentCSSZoom`in e)return e.currentCSSZoom;for(var t=e,n=1;t!==null;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}var Oce=s((()=>{Tce()}));function QR(e,t){k(t,!0);let n=q(t,`value`,15),r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`readonly`,3,!1),o=q(t,`required`,3,!1),s=q(t,`invalid`,3,!1),c=ec(t,$R);Cce(e,tc(()=>c,{get class(){return`sui select ${t.class??``}`},get hidden(){return r()},get disabled(){return i()},get readonly(){return a()},get required(){return o()},get invalid(){return s()},get onChange(){return t.onChange},editable:!1,get value(){return n()},set value(e){n(e)},children:(e,n)=>{var r=V();Ao(I(r),()=>t.children??D),H(e,r)},$$slots:{default:!0}})),A()}var $R,ez=s((()=>{Z(),J(),ZR(),$R=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`])}));function kce(e,t){k(t,!0),G(e,iz);let n=q(t,`values`,31,()=>Nr([])),r=q(t,`max`,3,void 0),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`readonly`,3,!1),s=q(t,`required`,3,!1),c=q(t,`invalid`,3,!1),l=ec(t,tz),u=M(()=>new Map(t.options.map(e=>[e.value,e]))),d=M(()=>Hh()?`ArrowRight`:`ArrowLeft`),f=M(()=>Hh()?`ArrowLeft`:`ArrowRight`),p=N(void 0),m=N(void 0),h=N(void 0),g=N(void 0),_=(e,r)=>{if(e===r)return;let i=[...n()],[a]=i.splice(e,1);i.splice(r,0,a),n(i),t.onReorder?.(new CustomEvent(`Reorder`,{detail:{values:i}}))},v=async(e,t)=>{_(e,t),await Hi(),(z(p)?.querySelectorAll(`.label[tabindex]`)?.[t])?.focus()};var y=rz();let b;var x=F(y);vo(x,30,n,e=>e,(e,r,i)=>{let s=M(()=>z(u).get(r)),c=M(()=>z(s)?.label||z(s)?.value||r);var l=nz();let p;var m=F(l),_=F(m,!0);O(m);var y=L(m,2),b=e=>{{let i=e=>{tI(e,{name:`close`})},s=M(()=>a()||o()),l=M(()=>Y(`_sui.select_tags.remove_x`,{values:{name:z(c)}}));bI(e,{iconic:!0,size:`small`,get disabled(){return z(s)},get"aria-label"(){return z(l)},onclick:()=>{n(n().filter(e=>e!==r)),t.onRemoveValue?.(new CustomEvent(`RemoveValue`,{detail:{value:r}}))},startIcon:i,$$slots:{startIcon:!0}})}};W(y,e=>{z(s)&&e(b)}),O(l),R(()=>{K(l,`draggable`,!a()&&!o()),p=ds(l,1,`svelte-1lh48yr`,null,p,{"drag-source":z(h)===z(i),"drop-before":z(g)===z(i)&&z(h)!==z(i)&&z(h)!==z(i)-1,"drop-after":z(g)===n().length&&z(i)===n().length-1&&z(h)!==n().length-1}),K(m,`tabindex`,a()||o()?void 0:0),U(_,z(c))}),wa(`dragstart`,l,e=>{P(h,z(i),!0),e.dataTransfer&&(e.dataTransfer.setData(`text/plain`,z(c)),e.dataTransfer.effectAllowed=`move`)}),wa(`dragover`,l,e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let t=e.currentTarget.getBoundingClientRect(),n=e.clientX<t.left+t.width/2;P(g,n===Hh()?z(i)+1:z(i),!0)}),wa(`drop`,l,async e=>{e.preventDefault();let t=z(h),n=z(g);P(h,void 0),P(g,void 0),t!==void 0&&n!==void 0&&n!==t&&n!==t+1&&await v(t,n>t?n-1:n)}),wa(`dragend`,l,
|
|||
|
|
/**
|
|||
|
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|||
|
|
*
|
|||
|
|
* @license MIT <https://opensource.org/licenses/MIT>
|
|||
|
|
* @author Lea Verou <https://lea.verou.me>
|
|||
|
|
* @namespace
|
|||
|
|
* @public
|
|||
|
|
*/
|
|||
|
|
var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&`).replace(/</g,`<`).replace(/\u00a0/g,` `)},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){n||={};var r,a;switch(i.util.type(t)){case`Object`:if(a=i.util.objId(t),n[a])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case`Array`:return a=i.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return`none`},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,`gi`),``),e.classList.add(`language-`+n)},currentScript:function(){if(typeof document>`u`)return null;if(document.currentScript&&document.currentScript.tagName===`SCRIPT`)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=i.languages;var a=r[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===l&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l===`Object`&&!a[o(c)]?(a[o(c)]=!0,e(c,n,null,a)):l===`Array`&&!a[o(c)]&&(a[o(c)]=!0,e(c,n,s,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a=0,o;o=r.elements[a++];)i.highlightElement(o,t===!0,r.callback)},highlightElement:function(t,n,r){var a=i.util.getLanguage(t),o=i.languages[a];i.util.setLanguage(t,a);var s=t.parentElement;s&&s.nodeName.toLowerCase()===`pre`&&i.util.setLanguage(s,a);var c={element:t,language:a,grammar:o,code:t.textContent};function l(e){c.highlightedCode=e,i.hooks.run(`before-insert`,c),c.element.innerHTML=c.highlightedCode,i.hooks.run(`after-highlight`,c),i.hooks.run(`complete`,c),r&&r.call(c.element)}if(i.hooks.run(`before-sanity-check`,c),s=c.element.parentElement,s&&s.nodeName.toLowerCase()===`pre`&&!s.hasAttribute(`tabindex`)&&s.setAttribute(`tabindex`,`0`),!c.code){i.hooks.run(`complete`,c),r&&r.call(c.element);return}if(i.hooks.run(`before-highlight`,c),!c.grammar){l(i.util.encode(c.code));return}if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){l(e.data)},u.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),d(i)},hooks:{a
|
|||
|
|
`),r.hasAttribute(`data-start`)||r.setAttribute(`data-start`,String(o+1))}f.textContent=e,n.highlightElement(f)},function(e){r.setAttribute(a,c),f.textContent=e})}}),n.plugins.fileHighlight={highlight:function(e){for(var t=(e||document).querySelectorAll(l),r=0,i;i=t[r++];)n.highlightElement(i)}};var f=!1;n.fileHighlight=function(){f||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()}));function Lz(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Rz(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function zz(){return fW()._blockCursorElement}function Gce(e){return e!==null&&e.nodeType===1&&e.hasAttribute(`data-lexical-slot`)}function Bz(e,t){let n=t;for(;n!==null&&n.parentNode!==e;)n=n.parentNode;return n}function Vz(e,t){let n=[],r=t;for(;r!==e&&r!==null;r=r.parentNode){let e=0;for(let t=r.previousSibling;t!==null;t=t.previousSibling)e++;n.push(e)}return r!==e&&Lz(225),n.reverse()}function Hz(e,t=1e3){return e instanceof hK?e.clone():e.size<t?new Map(e):new hK().init(new Map(e),void 0,e.size)}function Uz(e,t,n,r,i,a){if(Q(e)){let o=e.getFirstChild();for(;o!==null;){let e=o.__key;o.__parent===t&&((Q(o)||AW(o)&&o.__slots!==null)&&Uz(o,e,n,r,i,a),n.has(e)||a.delete(e),i.push(e)),o=o.getNextSibling()}}for(let o of AW(e)&&e.__slots!==null?e.__slots.values():[]){let e=r.get(o);e!==void 0&&jW(e)&&e.__slotHost===t&&((Q(e)||AW(e)&&e.__slots!==null)&&Uz(e,o,n,r,i,a),n.has(o)||a.delete(o),i.push(o))}}function Kce(e){_K=e.timeStamp}function Wz(e,t,n){let r=e.nodeName===`BR`,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&cU(e,n)!==void 0}function qce(e,t,n){let r=JU(RU(n)),i=r&&tW(r,n._rootElement),a=null,o=null;i!==null&&i.anchorNode===e&&(a=i.anchorOffset,o=i.focusOffset);let s=e.nodeValue;s!==null&&xU(t,s,a,o,!1)}function Jce(e,t,n){if(SV(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return ZH(t)&&n.isAttached()}function Yce(e,t,n){for(let r=e;r&&!SW(r);r=MU(r)){let e=cU(r,t);if(e!==void 0){let t=aU(e,n);if(t)return OH(t)||!oW(r)?void 0:[r,t]}}}function Gz(e,t,n){gK=!0;let r=performance.now()-_K>100;try{EH(e,()=>{let i=KV()||function(e){return e.read(`latest`,()=>{let e=KV();return e===null?null:e.clone()})}(e),a=new Map,o=e._editorState,s=e._blockCursorElement,c=!1,l=``;for(let n=0;n<t.length;n++){let u=t[n],d=u.type,f=u.target,p=Yce(f,e,o);if(!p)continue;let[m,h]=p;if(d===`characterData`)r&&mV(h)&&ZH(f)&&Jce(i,f,h)&&qce(f,h,e);else if(d===`childList`){c=!0;let t=u.addedNodes;for(let n=0;n<t.length;n++){let r=t[n],i=oU(r),a=r.parentNode;if(!(a==null||r===s||i!==null||Wz(r,a,e)||e._slotsUsed&&oW(r)&&r.hasAttribute(`data-lexical-slot`)||SW(r))){if(PG){let e=(oW(r)?r.innerText:null)||r.nodeValue;e&&(l+=e)}a.removeChild(r)}}let n=u.removedNodes,r=n.length;if(r>0){let t=0;for(let i=0;i<r;i++){let r=n[i];(Wz(r,f,e)||s===r)&&(f.appendChild(r),t++)}r!==t&&a.set(m,h)}}}if(a.size>0)for(let[t,n]of a)n.reconcileObservedMutation(t,e);let u=n.takeRecords();if(u.length>0){for(let t=0;t<u.length;t++){let n=u[t],r=n.addedNodes,i=n.target;for(let t=0;t<r.length;t++){let n=r[t],a=n.parentNode;a==null||n.nodeName!==`BR`||Wz(n,i,e)||a.removeChild(n)}}n.takeRecords()}i!==null&&(c&&pU(i),PG&&kU(e)&&i.insertRawText(l))})}finally{gK=!1}}function Kz(e){let t=e._observer;t!==null&&Gz(e,t.takeRecords(),t)}function qz(e){(function(e){_K===0&&RU(e).addEventListener(`textInput`,Kce,!0)})(e),e._observer=new MutationObserver((t,n)=>
|
|||
|
|
`:t===`Tab`?` `:null;if(!n)return;let r=KV();if(!SV(r)||!r.isCollapsed())return;let i=r.anchor.getNode();if(!mV(i))return;let{offset:a}=r.anchor;if(i.getTextContentSize()===a){let e=i.getNextSibling();if(n===`
|
|||
|
|
`){if(PH(e))e.selectEnd();else if(!e){let e=IJ(i,VV),t=e&&e.getNextSibling();Q(t)&&t.selectStart()}}else n===` `?_V(e)&&e.selectEnd():mV(e)&&e.getTextContent()[0]===n&&e.select(1,1)}else i.getTextContent()[a]===n&&i.select(a+1,a+1)}function UB(e){e.isInsertTextAfterHandledSelectionCommand=!1,e.handledSelectionCommandTimeoutId!==null&&(clearTimeout(e.handledSelectionCommandTimeoutId),e.handledSelectionCommandTimeoutId=null)}function WB(e){UB(e),e.isInsertTextAfterHandledSelectionCommand=!0,e.handledSelectionCommandTimeoutId=setTimeout(()=>UB(e),0)}function GB(e,t){let n=iW(e);if(oW(n)&&CW(n,t))return!0;let r=t.getRootElement();if(r===null)return!1;let i=rW(r.ownerDocument);return i!==null&&r.contains(i)&&CW(i,t)}function nle(e){let t=e.inputType,n=VB(e),r=fH(),i=r._inputState,a=KV();if(t===`insertText`&&e.data&&i.isInsertTextAfterHandledSelectionCommand){if(UB(i),e.preventDefault(),SV(a)&&!a.isCollapsed()){let e=a.isBackward()?a.anchor:a.focus;a.anchor.set(e.key,e.offset,e.type),a.focus.set(e.key,e.offset,e.type)}return!0}if(t===`deleteContentBackward`){if(a===null){let e=qV();if(!SV(e))return!0;pU(e.clone())}if(SV(a)){let t=a.anchor.key===a.focus.key;if(function(e,t){return e.lastKeyCode===`MediaLast`&&t<e.lastKeyDownTimeStamp+30}(i,e.timeStamp)&&r.isComposing()&&t){if(rU(null),i.lastKeyDownTimeStamp=0,setTimeout(()=>{EH(r,()=>{rU(null)})},30),SV(a)){let e=a.anchor.getNode();e.markDirty(),mV(e)||Lz(142),BB(a,e)}}else{if(rU(null),IG&&n!==null&&!n.collapsed&&(a.applyDOMRange(n),!a.isCollapsed()))return e.preventDefault(),a.removeText(),!0;e.preventDefault();let o=a.anchor.getNode(),s=o.getTextContent(),c=o.canInsertTextAfter(),l=a.anchor.offset===0&&a.focus.offset===s.length,u=BG&&t&&!l&&c;if(u&&a.isCollapsed()&&(u=!OH(Ple(a.anchor,!0))),!u){AU(r,ZK,!0);let e=KV();BG&&SV(e)&&e.isCollapsed()&&(i.postDeleteSelectionToRestore=e,setTimeout(()=>i.postDeleteSelectionToRestore=null))}}return!0}}if(!SV(a))return!0;let o=e.data;i.unprocessedBeforeInputData!==null&&bU(!1,r,i.unprocessedBeforeInputData),a.dirty&&i.unprocessedBeforeInputData===null||!a.isCollapsed()||kH(a.anchor.getNode())||n===null||a.applyDOMRange(n),i.unprocessedBeforeInputData=null;let s=a.anchor,c=a.focus,l=s.getNode(),u=c.getNode();if(t===`insertText`||t===`insertTranspose`){if(o===`
|
|||
|
|
`)e.preventDefault(),AU(r,QK,!1);else if(o===QG)e.preventDefault(),AU(r,$K,void 0);else if(o==null&&e.dataTransfer){let t=e.dataTransfer.getData(`text/plain`);e.preventDefault(),a.insertRawText(t)}else o!=null&&IB(a,n,o,e.timeStamp,!0)?(e.preventDefault(),AU(r,eq,o),HB(o)):i.unprocessedBeforeInputData=o;return i.lastBeforeInputInsertTextTimeStamp=e.timeStamp,!0}switch(e.preventDefault(),t){case`insertFromYank`:case`insertFromDrop`:case`insertReplacementText`:AU(r,eq,e),HB((e.dataTransfer?e.dataTransfer.getData(`text/plain`):null)??e.data);break;case`insertFromComposition`:{let t=i.hadOrphanedCompositionEvents;i.hadOrphanedCompositionEvents=!1;let n=r._compositionKey;rU(null),t||AU(r,eq,e),KB(n);break}case`insertLineBreak`:rU(null),AU(r,QK,!1);break;case`insertParagraph`:rU(null),i.isInsertLineBreak&&!IG?(i.isInsertLineBreak=!1,AU(r,QK,!1)):AU(r,$K,void 0);break;case`insertFromPaste`:case`insertFromPasteAsQuotation`:AU(r,tq,e);break;case`deleteByComposition`:(function(e,t){return e!==t||Q(e)||Q(t)||!YH(e)||!YH(t)})(l,u)&&AU(r,nq,e);break;case`deleteByDrag`:PU(Zq),AU(r,nq,e);break;case`deleteByCut`:AU(r,nq,e);break;case`deleteContent`:AU(r,ZK,!1);break;case`deleteWordBackward`:AU(r,rq,!0);break;case`deleteWordForward`:AU(r,rq,!1);break;case`deleteHardLineBackward`:case`deleteSoftLineBackward`:AU(r,iq,!0);break;case`deleteContentForward`:case`deleteHardLineForward`:case`deleteSoftLineForward`:AU(r,iq,!1);break;case`formatStrikeThrough`:AU(r,aq,`strikethrough`);break;case`formatBold`:AU(r,aq,`bold`);break;case`formatItalic`:AU(r,aq,`italic`);break;case`formatUnderline`:AU(r,aq,`underline`);break;case`historyUndo`:AU(r,sq,void 0);break;case`historyRedo`:AU(r,cq,void 0)}return!0}function rle(e){let t=fH(),n=t._inputState,r=KV(),i=e.data,a=VB(e),o=!1;if(i!=null&&SV(r)){let s=JU(RU(t)),c=s===null?null:tW(s,t._rootElement),l=e.inputType===`insertCompositionText`&&n.compositionPhase!==`ending-firefox`&&!t.isComposing();l&&(n.hadOrphanedCompositionEvents=!0);let u=r.anchor.getNode(),d=e.inputType===`insertCompositionText`&&n.compositionPhase!==`ending-firefox`&&t.isComposing()&&mV(u)&&XH(u);if(!l&&!d&&IB(r,a,i,e.timeStamp,!1,c)){if(o=!0,n.compositionPhase===`ending-firefox`){let e=qB(t,i);if(n.compositionPhase=`idle`,e)return PU(Qq),mU(),!0}let a=r.anchor.getNode();if(s===null||c===null)return!0;let l=r.isBackward(),u=l?r.anchor.offset:r.focus.offset,d=l?r.focus.offset:r.anchor.offset;FG&&!r.isCollapsed()&&mV(a)&&c.anchorNode!==null&&a.getTextContent().slice(0,u)+i+a.getTextContent().slice(u+d)===yU(c.anchorNode)||AU(t,eq,i);let f=i.length;PG&&f>1&&e.inputType===`insertCompositionText`&&!t.isComposing()&&(r.anchor.offset-=f,r._cachedNodes=null,r._cachedIsBackward=null),BG&&t.isComposing()&&(n.lastKeyDownTimeStamp=0,rU(null))}}return o||(bU(!1,t,i===null?void 0:i),n.compositionPhase===`ending-firefox`&&(qB(t,i||void 0),PU(`composition-end`),n.compositionPhase=`idle`)),mU(),!0}function ile(e){let t=fH(),n=t._inputState,r=KV();if(SV(r)&&!t.isComposing()){n.compositionPhase=`composing`,n.hadOrphanedCompositionEvents=!1;let i=r.anchor,a=r.anchor.getNode();if(rU(i.key),PU(`composition-start`),e.timeStamp<n.lastKeyDownTimeStamp+30||i.type===`element`||!r.isCollapsed()||!BG&&(a.getFormat()!==r.format||mV(a)&&a.getStyle()!==r.style)||mV(a)&&(XH(a)||i.offset===0&&!a.canInsertTextBefore()||i.offset===a.getTextContentSize()&&!a.canInsertTextAfter())){AU(t,eq,$G);let e=KV();SV(e)&&rU(e.anchor.key)}}return!0}function ale(e){let t=fH();return t._inputState.compositionPhase=`idle`,qB(t,e.data),PU(Qq),!0}function KB(e){if(e===null)return;let t=aU(e);if(!mV(t)||t.getType()===`text`||XH(t)||!t.isAttached())return;let n=KV(),r=SV(n)&&n.anchor.key===e?n.anchor.offset:null,i=pV(t.getTextContent());if(i.setFormat(t.getFormat()),i.setStyle(t.getStyle()),t.replace(i),r!==null){let e=Math.min(r,i.getTextContentSize());i.select(e,e)}}function qB(e,t){let n=e._compositionKey;if(rU(null),n!==null&&t!=null){if(t===``){let t=aU(n),r=e.getElementByKey(n),i=r!==null&&mV(t)?hW(t,r,e):null;if(i!==null&&i.nodeValue!==null&&mV(t)){let n=JU(RU(e)),r=n&&tW(n,e._rootEle
|
|||
|
|
`){let t=KV();if(SV(t)||CV(t)){if(SV(t)){let e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return AU(e,gq,null),KB(n),!1}}let r=aU(n);if(r!==null&&mV(r)&&XH(r)){r.markDirty();let e=KV(),i=r.getTextContentSize(),a=SV(e)&&e.anchor.key===n?e.anchor.offset:i;return r.select(a,a).insertText(t),!0}}return bU(!0,e,t),KB(n),!1}function ole(e){let t=fH(),n=t._inputState;if(e.key==null)return!0;if(n.compositionPhase===`ending-safari`){let r=TU(e);if(r&&EH(t,()=>{qB(t,n.compositionEndData)}),n.compositionPhase=`idle`,n.compositionEndData=``,r)return!0}if(function(e){return wU(e,`ArrowRight`,{shiftKey:`any`})}(e))AU(t,uq,e);else if(function(e){return wU(e,`ArrowRight`,{...OJ,shiftKey:`any`})}(e))AU(t,dq,e);else if(function(e){return wU(e,`ArrowLeft`,{shiftKey:`any`})}(e))AU(t,fq,e);else if(function(e){return wU(e,`ArrowLeft`,{...OJ,shiftKey:`any`})}(e))AU(t,pq,e);else if(function(e){return wU(e,`ArrowUp`,{altKey:`any`,shiftKey:`any`})}(e))AU(t,mq,e);else if(function(e){return wU(e,`ArrowDown`,{altKey:`any`,shiftKey:`any`})}(e))AU(t,hq,e);else if(function(e){return wU(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`,shiftKey:!0})}(e))n.isInsertLineBreak=!0,AU(t,gq,e);else if(function(e){return e.key===` `}(e))AU(t,_q,e);else if(function(e){return NG&&wU(e,`o`,{ctrlKey:!0})}(e))e.preventDefault(),n.isInsertLineBreak=!0,AU(t,QK,!0);else if(function(e){return wU(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`})}(e))n.isInsertLineBreak=!1,AU(t,gq,e);else if(function(e){return wU(e,`Backspace`,{shiftKey:`any`})||NG&&wU(e,`h`,{ctrlKey:!0})}(e))TU(e)?AU(t,vq,e)&&WB(n):(e.preventDefault(),AU(t,ZK,!0));else if(function(e){return e.key===`Escape`}(e))AU(t,yq,e);else if(function(e){return wU(e,`Delete`,{})||NG&&wU(e,`d`,{ctrlKey:!0})}(e))(function(e){return e.key===`Delete`})(e)?AU(t,bq,e):(e.preventDefault(),AU(t,ZK,!1));else if(function(e){return wU(e,`Backspace`,kJ)}(e))e.preventDefault(),AU(t,rq,!0);else if(function(e){return wU(e,`Delete`,kJ)}(e))e.preventDefault(),AU(t,rq,!1);else if(function(e){return NG&&wU(e,`Backspace`,{metaKey:!0})}(e))e.preventDefault(),AU(t,iq,!0);else if(function(e){return NG&&(wU(e,`Delete`,{metaKey:!0})||wU(e,`k`,{ctrlKey:!0}))}(e))e.preventDefault(),AU(t,iq,!1);else if(function(e){return wU(e,`b`,OJ)}(e))e.preventDefault(),AU(t,aq,`bold`);else if(function(e){return wU(e,`u`,OJ)}(e))e.preventDefault(),AU(t,aq,`underline`);else if(function(e){return wU(e,`i`,OJ)}(e))e.preventDefault(),AU(t,aq,`italic`);else if(function(e){return wU(e,`Tab`,{shiftKey:`any`})}(e))AU(t,xq,e);else if(function(e){return wU(e,`z`,OJ)}(e))e.preventDefault(),AU(t,sq,void 0);else if(function(e){return NG?wU(e,`z`,{metaKey:!0,shiftKey:!0}):wU(e,`y`,{ctrlKey:!0})||wU(e,`z`,{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),AU(t,cq,void 0);else{let r=t._editorState._selection;(function(e){return wU(e,`a`,OJ)})(e)?(e.preventDefault(),AU(t,Mq,e)&&WB(n)):r===null||SV(r)||(function(e){return wU(e,`c`,OJ)}(e)?(e.preventDefault(),AU(t,Aq,e)):function(e){return wU(e,`x`,OJ)}(e)&&(e.preventDefault(),AU(t,jq,e)))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(zq,e),!0}function JB(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}function YB(e){let t=Ile(e.target);if(t===null)return;let n=NU(e.target),r=null,i=null,a=n===null?void 0:Uq.get(n);if(n!==null){if(a!==void 0){let e=a.editors,n=a.hasShadowEditor;if(n===void 0){n=!1;for(let t of e)if(t._rootElement!==null&&YU(t._rootElement.getRootNode())){n=!0;break}a.hasShadowEditor=n}if(n){let n=null,a=null;for(let o of e){let e=o._rootElement;if(e===null)continue;let s=tW(t,e).anchorNode;if(s!==null&&qH(s)===o){if(YU(e.getRootNode())){r=o,i=s;break}n===null&&(n=o,a=s)}}r===null&&n!==null&&(r=n,i=a)}else{let e=t.anchorNode;e===null||oW(e)&&e.shadowRoot!==null||(r=qH(e),r!==null&&(i=e))}}if(r===null){let e=rW(n);r=e===null?null:qH(e)}}if(r===null)return;if(r._inputState.isSelectionChangeFromMouseDown){if(a!==void 0)for(let e of a.editors)e._inputState.isSelectionChangeFromMouseDown=!1;EH(r,()=>{let n=qV(),a=i??tW(t,r._ro
|
|||
|
|
`||n===`\r
|
|||
|
|
`?t.linebreak():n===` `?t.tab():n!==``&&t.text(n)}function nH(e){let t=[];return tH(e,{linebreak:()=>t.push(NH()),tab:()=>t.push(gV()),text:e=>t.push(pV(e))}),t}function hle(){let e=KV();return e===null?``:e.getTextContent()}function rH(e){let t=[];for(let n of e)PH(n)||(!Q(n)&&!OH(n)||n.isInline()?t.push(n):Q(n)&&t.push(...rH(n.getChildren())));return t}function iH(e){let t=e;e.isCollapsed()||t.removeText();let n=KV();SV(n)&&(t=n),SV(t)||Lz(161);let r=t.anchor,i=r.getNode(),a=r.offset;for(;!dW(i)&&MW(i)===null;){let e=i;if([i,a]=gle(i,a),e.is(i))break}return a}function gle(e,t){let n=e.getParent();if(!n){let e=IH();return fU().append(e),e.select(),[fU(),0]}if(mV(e)){let r=e.splitText(t);if(r.length===0)return[n,e.getIndexWithinParent()];let i=t===0?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!Q(e)||t===0)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new oJ(vV(e.__key,t,`element`),vV(e.__key,t,`element`),0,``),i=e.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function aH(e){return PH(e)||zU(e)||mV(e)||e.isParentRequired()}function oH(e){let t=IH(),n=null;for(let r=0;r<e.length;r++){let i=e[r];if(aH(i)){if(n===null){n=i.createParentElementNode(),t.append(n);let a=e[r+1];if(PH(i)&&(a===void 0||!aH(a)))continue}n.append(i)}else t.append(i),n=null}return t}function sH(e,t,n,r,i=`decorators-and-blocks`){if(t===`move`&&r===`character`&&!e.isCollapsed()){let[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}let a=lG(e.focus,n?`previous`:`next`),o=r===`lineboundary`,s=t===`move`,c=a,l=i===`decorators-and-blocks`;if(!vG(c)){for(let e of c){l=!1;let{origin:t}=e;if(!OH(t)||t.isIsolated()||(c=e,!o||!t.isInline()))break}if(l)for(let e of eG(a).iterNodeCarets(t===`extend`?`shadowRoot`:`root`)){if(qW(e))e.origin.isInline()||(c=e);else{if(Q(e.origin))continue;OH(e.origin)&&!e.origin.isInline()&&(c=e)}break}}if(c===a)return!1;if(s&&!o&&OH(c.origin)&&c.origin.isKeyboardSelectable()){let e=WV();return e.add(c.origin.getKey()),pU(e),!0}return c=_G(c),s&&uG(e.anchor,c),uG(e.focus,c),l||!o}function cH(){return uJ||cJ!==null&&cJ._readOnly}function lH(){uJ&&Lz(13)}function uH(){mJ>99&&Lz(14)}function dH(){return cJ===null&&Lz(195,pH()),cJ}function _le(e){dH()!==null&&lJ===null&&(lJ=e),lJ!==e&&Rz(378)}function fH(){return lJ===null&&Lz(337,pH()),lJ}function vle(){fH()._dirtyType=2}function pH(){let e=0,t=new Set,n=wJ.version;if(typeof window<`u`)for(let r of ZU(document)){let i=JH(r);if(KH(i))e++;else if(i){let e=String(i.constructor.version||`<0.17.1`);e===n&&(e+=` (separately built, likely a bundler configuration issue)`),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(`, `)}`),r}function mH(){return lJ}function hH(e,t,n){let r=t.__type,i=HH(e,r),a=n.get(r);a===void 0&&(a=Array.from(i.transforms),n.set(r,a));let o=a.length;for(let e=0;e<o&&(a[e](t),t.isAttached());e++);}function gH(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function _H(e,t){if(!t)return;let n=e._updateTags,r=t;Array.isArray(t)||(r=[t]);for(let e of r)n.add(e)}function yle(e){return vH(e,fH()._nodes)}function vH(e,t){let n=e.type,r=t.get(n);r===void 0&&Lz(17,n);let i=r.klass;e.type!==i.getType()&&Lz(18,i.name);let a=i.importJSON(e),o=e.children;if(Q(a)&&Array.isArray(o))for(let e=0;e<o.length;e++){let n=vH(o[e],t);a.append(n)}let s=e.$slots;if(s){AW(a)||Lz(379,i.name);for(let e in s)VW(a,e,vH(s[e],t))}return a}function yH(e,t,n){let r=cJ,i=uJ,a=lJ;cJ=t,uJ=!0,lJ=e;try{return n()}finally{cJ=r,uJ=i,lJ=a}}function bH(e,t){let n=fJ;fJ=!0;try{(function(e,t){let n=e._pendingEditorState,r=e._rootElement,i=e._headless||r===null;if(n===null)return void(!e._updating&&e._deferred.length>0&&CH(e,e._deferred));let a=e._editorState,o=a._selection,s=n._selection,c=e._dirtyType!==0,l=cJ,u=uJ,d=lJ,f=e._updating,p=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!i&&c&&p!==null){lJ=e,cJ=n,uJ=!1,e._updating=!0;try{let t=e._dirty
|
|||
|
|
|
|||
|
|
`,$G=PG?`\xA0`:ZG,eK=RegExp(`^[^A-Za-zÀ-ÖØ-öø-ʸ̀-Ö�à €-῿‎Ⰰ-﬜︀-﹯﻽-ï¿¿]*[Ö‘-ß¿ï¬�-﷽ﹰ-ﻼ]`),tK=RegExp(`^[^Ö‘-ß¿ï¬�-﷽ﹰ-ﻼ]*[A-Za-zÀ-ÖØ-öø-ʸ̀-Ö�à €-῿‎Ⰰ-﬜︀-﹯﻽-ï¿¿]`),nK={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},rK={directionless:1,unmergeable:2},iK={center:2,end:6,justify:4,left:1,right:3,start:5},aK={[KG]:`center`,[XG]:`end`,[JG]:`justify`,[GG]:`left`,[qG]:`right`,[YG]:`start`},oK={normal:0,segmented:2,token:1},sK={[HG]:`normal`,[WG]:`segmented`,[UG]:`token`},cK=`$config`,lK=class e{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(t){return new e(this.element,t,this.after)}withAfter(t){return new e(this.element,this.before,t)}withElement(t){return this.element===t?this:new e(t,this.before,this.after)}insertChild(e){let t=this.getInsertionAnchor();return t!==null&&t.parentElement!==this.element&&Lz(357),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&Lz(358),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&Lz(359),this.element.replaceChild(e,t),this}getFirstChild(){let e=this.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;return t===this.getInsertionAnchor()?null:t}getFirstChildAnchor(){return this.after}resolveLeafPosition(e,t,n){if(this.element===e)return t===e&&n===0?`before`:`after`;let r=Bz(e,this.element);if(r===null)return`after`;let i=Array.prototype.indexOf.call(e.childNodes,r);if(i<0)return`after`;if(t===e)return n<=i?`before`:`after`;let a=Bz(e,t);if(a===null)return`after`;let o=Array.prototype.indexOf.call(e.childNodes,a);return o>=0&&o<=i?`before`:`after`}getInsertionAnchor(){return this.before}},uK=class e extends lK{withBefore(t){return new e(this.element,t,this.after)}withAfter(t){return new e(this.element,this.before,t)}withElement(t){return this.element===t?this:new e(t,this.before,this.after)}getInsertionAnchor(){return super.getInsertionAnchor()||this.getManagedLineBreak()}getFirstChildAnchor(){let e=super.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;for(;Gce(t);)e=t,t=t.nextSibling;let n=e?e.nextSibling:this.element.firstChild;return n!==null&&n===zz()?n:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(this.element.__lexicalLastChildKind=e,e===null)this.removeManagedLineBreak();else{let t=e===`decorator`&&(VG||IG||RG);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,n=e.nodeName===`IMG`?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===(t.nodeName===`IMG`))return;this.removeManagedLineBreak()}let n=this.element,r=this.before,i=$U().createElement(`br`);if(i.setAttribute(`data-lexical-managed-linebreak`,`true`),n.insertBefore(i,r),e){let e=$U().createElement(`img`);e.setAttribute(`data-lexical-managed-linebreak`,`true`),e.style.setProperty(`display`,`inline`,`important`),e.style.setProperty(`border`,`0px`,`important`),e.style.setProperty(`margin`,`0px`,`important`),e.alt=``,n.insertBefore(e,i),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=i}getFirstChildOffset(){let e=this.getFirstChild(),t=this.getInsertionAnchor(),n=0;for(let r=this.element.firstChild;r!==null&&r!==e&&r!==t;r=r.nextSibling)n++;return n}resolveChildIndex(e,t,n,r){if(n===this.element){let t=this.getFirstChildOffset(),n=zz(),i=this.element.childNodes,a=Math.min(r,i.length),o=0;for(let e=t;e<a;e++)i[e]!==n&&o++;return[e,Math.min(o,e.getChildrenSize())]}let i=Vz(t,n);i.push(r);let a=Vz(t,this.element),o=e.getIndexWithinParent();for(let e=0;e<a.length;e++){let t=i[e],n=a[e];if(t===void 0||t<n)break;if(t>n){o+=1;break}}return[e.getParentOrThrow(),o]}};try{dK=`0.48.0+prod.esm`}catch{}fK=dK??`"<unknown>+source"`,pK=class{_front=new Set;_back=new Set;_cache;get size(){return this._front.size+this._back.size}addB
|
|||
|
|
`);let e=``;for(let t of IW(d)){let n=LW(d,t);n!==null&&(e+=n.getTextContent())}e===``?l=!d.isEmpty():(c+=e,l=!1)}else if(l=!1,mV(d)){let e=d.getTextContent();d===t?d===n?r.type===`element`&&i.type===`element`&&i.offset!==r.offset||(e=o<s?e.slice(o,s):e.slice(s,o)):e=a?e.slice(o):e.slice(s):d===n&&(e=a?e.slice(0,s):e.slice(0,o)),c+=e}else!OH(d)&&!PH(d)||d===n&&this.isCollapsed()||(c+=d.getTextContent())}return c}applyDOMRange(e){let t=fH(),n=t.getEditorState()._selection,r=BV(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(r===null)return;let[i,a,o]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(a.key,a.offset,a.type,!0),o&&(this.dirty=!0),oB(this)}clone(){let t=this.anchor,n=this.focus;return new e(vV(t.key,t.offset,t.type),vV(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=$H(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=nK[e];return(this.format&t)!==0}insertRawText(e){this.insertNodes(nH(e))}insertText(e){let t=this.anchor,n=this.focus,r=this.format,i=this.style,a=t,o=n;!this.isCollapsed()&&n.isBefore(t)&&(a=n,o=t),a.type===`element`&&function(e,t,n,r){let i=e.getNode(),a=i.getChildAtIndex(e.offset),o=pV();if(o.setFormat(n),o.setStyle(r),LH(a))a.splice(0,0,[o]);else if(a!==null){let e=HU(i)?IH().append(o):o;a.insertBefore(e)}else if(HU(i)){let e=i.getLastChild();Q(e)&&!e.isInline()&&e.isEmpty()?e.append(o):i.append(IH().append(o))}else i.append(o);e.is(t)&&t.set(o.__key,0,`text`),e.set(o.__key,0,`text`)}(a,o,r,i),o.type===`element`&&uG(o,_G(lG(o,`next`)));let s=a.offset,c=o.offset,l=this.getNodes(),u=l.length,d=l[0];mV(d)||Lz(26);let f=d.getTextContent().length,p=d.getParentOrThrow(),m=l[u-1];if(u===1&&o.type===`element`&&(c=f,o.set(a.key,c,`text`)),this.isCollapsed()&&s===f&&(XH(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&d.getNextSibling()===null)){let t=d.getNextSibling(),n;if(mV(t)&&t.canInsertTextBefore()&&!XH(t)?n=t:(n=pV(),n.setFormat(r),n.setStyle(i),p.canInsertTextAfter()?d.insertAfter(n):p.insertAfter(n)),n.select(0,0),d=n,e!==``)return void this.insertText(e)}else if(this.isCollapsed()&&s===0&&(XH(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&d.getPreviousSibling()===null)){let t=d.getPreviousSibling(),n;if(!mV(t)||XH(t)?(n=pV(),n.setFormat(r),p.canInsertTextBefore()?d.insertBefore(n):p.insertBefore(n)):n=t,n.select(),d=n,e!==``)return void this.insertText(e)}else if(d.isSegmented()&&s!==f)if(iU()!==null)d=d.setMode(`normal`).setFormat(r).setStyle(i);else{let e=pV(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&e!==``){let t=m.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||Q(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(``),IV(this.anchor,this.focus),void this.insertText(e)}if(u===1){if(YH(d)){let t=pV(e);t.select(),d.replace(t);return}let t=d.getFormat(),n=d.getStyle();if(s!==c||t===r&&n===i){if(_V(d)){let t=pV(e);t.setFormat(r),t.setStyle(i),t.select(),d.replace(t);return}}else{if(d.getTextContent()!==``){let t=pV(e);if(t.setFormat(r),t.setStyle(i),t.select(),s===0)d.insertBefore(t,!1);else{let[e]=d.splitText(s);e.insertAfter(t,!1)}t.isComposing()&&this.anchor.type===`text`&&(this.anchor.offset-=e.length,this._cachedNodes=null,this._cachedIsBackward=null);return}d.setFormat(r),d.setStyle(i)}let a=c-s;d=d.spliceText(s,a,e,!0),d.getTextContent()===``?d.remove():this.anchor.type===`text`&&(this.format=t,this.style=n,d.isComposing()&&(this.anchor.offset-=e.length,this._cachedNodes=null,this._cachedIsBackward=null))}else{let t=new Set([...d.getParentKeys(),...m.getParentKeys()]),n=Q(d)?d:d.getParentOrThrow(),r=Q(m)?m:m.getParentOrThrow(),i=m;if(!n.is(r)&&r.isInline())do i=r,r=r.getParentOrThrow();while(r.isInline());if(o.type===`text`&&(c!==0||m.getTextContent()===``)||o.type===`element`&&m.getIndexWithinParent()<c)if(mV(m)&&!YH(m)&&c!==m.getTextContentSize()){if(m.isSegmented()){let e=pV(m.getTextContent());m.replace(e),m=e}kH(o.getNode())||o.type!==`text`||(mV(m)
|
|||
|
|
`}createDOM(){return $U().createElement(`br`)}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>Cle(e)||wle(e)?null:{conversion:Sle,priority:0}}}static importJSON(e){return NH().updateFromJSON(e)}},SJ=class e extends gJ{static getType(){return`paragraph`}static clone(t){return new e(t.__key)}createDOM(e){let t=$U().createElement(`p`),n=EU(e.theme,`paragraph`);return n!==void 0&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:Tle,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(oW(t)){this.isEmpty()&&t.append($U().createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return IH().updateFromJSON(e)}exportJSON(){let e=super.exportJSON();if(e.textFormat===void 0||e.textStyle===void 0){let t=this.getChildren().find(mV);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){let n=IH();n.setTextFormat(e.format),n.setTextStyle(e.style);let r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){let e=this.getChildren();if(e.length===0||mV(e[0])&&e[0].getTextContent().trim()===``){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}},CJ={$createDOM:(e,t)=>e.createDOM(t._config,t),$decorateDOM:(e,t,n,r)=>{},$exportDOM:(e,t)=>{let n=UH(t,e.getType());return n&&n.exportDOM!==void 0?n.exportDOM(t,e):e.exportDOM(t)},$extractWithChild:(e,t,n,r,i)=>Q(e)&&e.extractWithChild(t,n,r),$getDOMSlot:(e,t,n)=>e.getDOMSlot(t),$getSlotTargetElement:(e,t,n,r)=>null,$shouldExclude:(e,t,n)=>Q(e)&&e.excludeFromCopy(`html`),$shouldInclude:(e,t,n)=>!t||e.isSelected(t),$updateDOM:(e,t,n,r)=>e.updateDOM(t,n,r._config)},wJ=class{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_cascadeCount;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_onWarn;_htmlConversions;_window;_editable;_blockCursorElement;_slotsUsed;_inputState;_createEditorArgs;constructor(e,t,n,r,i,a,o,s,c){this._createEditorArgs=c,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new hK,this._updates=[],this._updating=!1,this._cascadeCount=0,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=vU(),this._onError=i,this._onWarn=a,this._htmlConversions=o,this._editable=s,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null,this._slotsUsed=!1,this._inputState={collapsedSelectionFormat:{format:0,key:`root`,offset:0,style:``,timeStamp:0},compositionEndData:``,compositionPhase:`idle`,hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,postDeleteSelectionToRestore:null,unprocessedBeforeInputData:null}}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){return BH(this._listeners.update,e)}registerEditableListener(e){return BH(this._listeners.editable,e)}registerDecoratorListener(e){return BH(this._listeners.decorator,e)}registerTextContentListener(e){return BH(this._listeners.textcontent,e)}registerRootListener(e){let
|
|||
|
|
`}isInline(){return!1}updateDOM(){return!1}},Date.now}));function hX(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function gX(e,t){let{key:n}=t;return e&&n in e?e[n]:t.defaultValue}function _X(e){return wX&&wX.editor===e?wX:void 0}function hue(e,t){if(`cfg`in t){let{cfg:n,updater:r}=t;return[n,r(gX(e,n))]}return t}function gue(e,t){let n=t;for(let r of e){let[e,i]=hue(n,r),a=e.key;if(n===t&&gX(n,e)===i)continue;let o=n===t||n===void 0?_ue(t):n;o[a]=i,n=o}return n}function _ue(e){return Object.create(e||null)}function vue(e,t){return[e,t]}function yue(e,t,n,r=fW()){let i=wX,a=_X(r);try{return wX={...a,editor:r,[e]:t},n()}finally{wX=i}}function bue(e,t=()=>{}){return(n,r=fW())=>i=>{let a=_X(r),o=a&&a[e],s=gue(n,o||t(r));return s&&s!==o?yue(e,s,i,r):i()}}function xue(e,t,n,r){return Object.assign(Jz(Symbol(t),{isEqual:r,parse:n}),{[e]:!0})}function Sue(e){if(!QH(e))return;let t=e;if(t.querySelector(`style`)===null)return;let n=new Map;function r(e){let t=n.get(e);if(t===void 0){t=new Set;for(let n=0;n<e.style.length;n++)t.add(e.style[n]);n.set(e,t)}return t}try{for(let e of Array.from(t.styleSheets)){let n;try{n=e.cssRules}catch{continue}for(let e of Array.from(n)){if(!pY(e,CSSStyleRule))continue;let n;try{n=t.querySelectorAll(e.selectorText)}catch{continue}for(let t of Array.from(n)){if(!oW(t))continue;let n=r(t);for(let r=0;r<e.style.length;r++){let i=e.style[r];n.has(i)||t.style.setProperty(i,e.style.getPropertyValue(i),e.style.getPropertyPriority(i))}}}}}catch{}}function Cue(e,t,n){return xue(EX,e,t,n)}function wue(e){let t=zY(e,TX);return t?t.output.defaults:void 0}function Tue(e){let t=zY(e,TX);return t?t.output.runtime:void 0}function Eue(e=fW()){let t=Tue(e);return t?t.getSessionConfig():pW(e)}function vX(e,t){let n={kind:`element`,predicate:(r=t,r.length===0?oW:r.length===1?r[0]:(e,t)=>{for(let n of r)if(!n(e,t))return!1;return!0}),tags:e};var r;let i=n=>vX(e,[...t,n]);return{[kX]:n,attr:(e,t,n)=>i(xX(e,t,n)),classAll:(...e)=>i(bX(e)),classAny:(...e)=>i(function(e){let t=yX(e);return t.length===0?()=>!1:e=>{if(!oW(e))return!1;let n=e.classList;for(let e of t)if(n.contains(e))return!0;return!1}}(e)),styleAny:(e,t,n)=>i(function(e,t,n){if(typeof t==`string`)return n=>oW(n)&&n.style.getPropertyValue(e)===t;if(t instanceof RegExp){let r=n&&n.capture,i=t;return(t,n)=>{if(!oW(t))return!1;let a=t.style.getPropertyValue(e);if(!a)return!1;let o=a.match(i);return o!==null&&(r!==void 0&&(n[r]=o),!0)}}hX(362,JSON.stringify(e))}(e,t,n))}}function yX(e){let t=[];for(let n of e)n&&t.push(n);return t}function bX(e){let t=yX(e);return t.length===0?()=>!0:e=>{if(!oW(e))return!1;let n=e.classList;for(let e of t)if(!n.contains(e))return!1;return!0}}function xX(e,t,n){if(!0===t)return t=>oW(t)&&t.hasAttribute(e);if(typeof t==`string`)return n=>oW(n)&&n.getAttribute(e)===t;if(t instanceof RegExp){let r=n&&n.capture,i=t;return(t,n)=>{if(!oW(t))return!1;let a=t.getAttribute(e);if(a==null)return!1;let o=a.match(i);return o!==null&&(r!==void 0&&(n[r]=o),!0)}}hX(361,JSON.stringify(e))}function Due(e){let t=new Set,n=[],r=[];if(e.skipWhitespace(),e.peek()===`*`)e.consume();else if(FX.test(e.peek())){let n=e.readIdent();n&&t.add(n.toUpperCase())}for(;!e.eof();){let t=e.peek();if(t===`.`){e.consume();let t=e.readIdent();e.assert(t!==``,`expected class name after "."`),r.push(t)}else if(t===`#`){e.consume();let t=e.readIdent();e.assert(t!==``,`expected id after "#"`),n.push(xX(`id`,t))}else{if(t!==`[`)break;{e.consume(),e.skipWhitespace();let t=e.readIdent();e.assert(t!==``,`expected attribute name after "["`),e.skipWhitespace();let r=!0;if(e.peek()===`=`){e.consume(),e.skipWhitespace();let t=e.peek();t===`"`||t===`'`?r=e.readQuoted():(r=e.readIdent(),e.assert(r!==``,`expected attribute value`)),e.skipWhitespace()}e.assert(e.peek()===`]`,`expected "]"`),e.consume(),n.
|
|||
|
|
`){let e=gV(),t=NH(),r=n.isBackward()?`previous`:`next`;return n.insertNodes([e,t]),dG(bG(nG(YW(e,`next`,0),_G(JW(t,`next`))),r)),!0}for(let a=0;a<i;a++){let i=r[a];if(i.length>0){let r=i[0];if(a===0&&(r=UX(r)),e===Cq){let e=gV();if(r.insertBefore(e),a===0){let t=n.isBackward()?`focus`:`anchor`,i=vV(r.getKey(),0,`text`);n[t].is(i)&&n[t].set(e.getKey(),0,`text`)}}else _V(r)?r.remove():t!==void 0&&eZ(r)&&zue(r,t,n)}}return!0}function iZ(e,t){let n=KV();if(!SV(n))return!1;let{anchor:r,focus:i}=n,a=r.offset,o=i.offset,s=r.getNode(),c=i.getNode(),l=e===mq;if(!tZ(n)||!eZ(s)&&!_V(s)||!eZ(c)&&!_V(c))return!1;if(!t.altKey){if(n.isCollapsed()){let e=s.getParentOrThrow();if(l&&a===0&&s.getPreviousSibling()===null){if(e.getPreviousSibling()===null)return e.selectPrevious(),t.preventDefault(),!1}else if(!l&&a===s.getTextContentSize()&&s.getNextSibling()===null&&e.getNextSibling()===null)return e.selectNext(),t.preventDefault(),!1}return!1}let u,d;if(s.isBefore(c)?(u=UX(s),d=WX(c)):(u=UX(c),d=WX(s)),u==null||d==null)return!1;let f=u.getNodesBetween(d);for(let e=0;e<f.length;e++){let t=f[e];if(!eZ(t)&&!_V(t)&&!PH(t))return!1}t.preventDefault(),t.stopPropagation();let p=l?u.getPreviousSibling():d.getNextSibling();if(!PH(p))return!0;let m=l?p.getPreviousSibling():p.getNextSibling();if(m==null)return!0;let h=(eZ(m)||_V(m)||PH(m)?l?UX(m):WX(m):null)??m;return p.remove(),f.forEach(e=>e.remove()),e===mq?(f.forEach(e=>h.insertBefore(e)),h.insertBefore(p)):(h.insertAfter(p),h=p,f.forEach(e=>{h.insertAfter(e),h=e})),n.setTextNodeRange(s,a,c,o),!0}function aZ(e,t){let n=KV();if(!SV(n))return!1;let{anchor:r,focus:i}=n,a=r.getNode(),o=i.getNode(),s=e===pq;if(!tZ(n)||!eZ(a)&&!_V(a)||!eZ(o)&&!_V(o))return!1;let c=o,l=Fue(c)===`rtl`?!s:s,u=r.key,d=r.offset,f=r.type;if(l){let e=Iue(c,i.offset);if(e!==null){let{node:t,offset:r}=e;PH(t)?t.selectNext(0,0):n.setTextNodeRange(t,r,t,r)}else c.getParentOrThrow().selectStart()}else Lue(c).select();return t.shiftKey&&n.anchor.set(u,d,f),t.preventDefault(),t.stopPropagation(),!0}function Uue(e,t,n){return AG(...n?[e.registerCommand(hq,e=>!e.altKey&&vY(qX,e),1),e.registerCommand(uq,e=>vY(qX,e),1),e.registerCommand(mq,e=>!e.altKey&&_Y(qX,e),1),e.registerCommand(fq,e=>_Y(qX,e),1)]:[],e.registerCommand(xq,t=>{let n=function(e){let t=KV();if(!SV(t)||!tZ(t))return null;let n=e?wq:Cq,r=e?wq:Sq,i=t.anchor,a=t.focus;if(i.is(a))return r;let o=nZ(t);if(o.length!==1)return n;let s=o[0],c,l;s.length===0&&VX(285),t.isBackward()?(c=a,l=i):(c=i,l=a);let u=UX(s[0]),d=WX(s[0]),f=vV(u.getKey(),0,`text`),p=vV(d.getKey(),d.getTextContentSize(),`text`);return c.isBefore(f)||p.isBefore(l)?n:f.isBefore(c)||l.isBefore(p)?r:n}(t.shiftKey);return n!==null&&(t.preventDefault(),e.dispatchCommand(n,void 0),!0)},1),e.registerCommand(Sq,()=>!!tZ(KV())&&(eH([gV()]),!0),1),e.registerCommand(Cq,()=>rZ(Cq),1),e.registerCommand(wq,()=>rZ(wq,t),1),e.registerCommand(mq,e=>{let t=KV();if(!SV(t))return!1;let{anchor:n}=t,r=n.getNode();if(!tZ(t))return!1;let i=r.getParent();return t.isCollapsed()&&n.offset===0&&r.getPreviousSibling()===null&&qX(i)&&i.getPreviousSibling()===null?(e.preventDefault(),!0):iZ(mq,e)},1),e.registerCommand(hq,e=>{let t=KV();if(!SV(t))return!1;let{anchor:n}=t,r=n.getNode();return!!tZ(t)&&(t.isCollapsed()&&n.offset===r.getTextContentSize()&&r.getNextSibling()===null&&qX(r.getParentOrThrow())&&r.getParentOrThrow().getNextSibling()===null?(e.preventDefault(),!0):iZ(hq,e))},1),e.registerCommand(pq,e=>aZ(pq,e),1),e.registerCommand(dq,e=>aZ(dq,e),1))}var oZ,sZ,cZ,lZ,uZ,dZ,fZ=s((()=>{BX(),$J(),mX(),yY(),oZ=`javascript`,sZ=`data-language`,cZ=`data-highlight-language`,lZ=`data-theme`,uZ=class e extends gJ{__language;__theme;__isSyntaxHighlightSupported;static getType(){return`code`}static clone(t){return new e(t.__language,t.__key)}constructor(e,t){super(t),this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){let t=$U().createElement(`cod
|
|||
|
|
`+ ++o);n.setAttribute(`data-gutter`,a)}function gZ(e,t,n,r){let{nodesCurrentlyHighlighting:i}=n,a=r.getKey();r.getLanguage()===void 0&&t.defaultLanguage!==null&&r.setLanguage(t.defaultLanguage);let o=r.getLanguage()||t.defaultLanguage;if(o){if(!ade(o))return r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1),void ode();r.getIsSyntaxHighlightSupported()||r.setIsSyntaxHighlightSupported(!0)}else r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1);i.has(a)||(i.add(a),n.didTransform||(n.didTransform=!0,FU(()=>{n.didTransform=!1,i.clear()})),function(e,t){let n=aU(e);if(!qX(n)||!n.isAttached())return;let r=KV();if(!SV(r))return void t();let i=r.anchor,a=i.offset,o=i.type===`element`&&PH(n.getChildAtIndex(i.offset-1)),s=0;if(o||(s=a+i.getNode().getPreviousSiblings().reduce((e,t)=>e+t.getTextContentSize(),0)),t()){if(o)return void i.getNode().select(a,a);n.getChildren().some(e=>{let t=mV(e);if(t||PH(e)){let n=e.getTextContentSize();if(t&&n>=s)return e.select(s,s),!0;s-=n}return!1})}}(a,()=>{let e=aU(a);if(!qX(e)||!e.isAttached())return!1;let n=e.getLanguage()||t.defaultLanguage,i=t.$tokenize(e,n??void 0),{from:o,to:s,nodesForReplacement:c}=function(e,t){let n=0;for(;n<e.length&&_Z(e[n],t[n]);)n++;let r=e.length,i=t.length,a=Math.min(r,i)-n,o=0;for(;o<a;)if(o++,!_Z(e[r-o],t[i-o])){o--;break}let s=n,c=r-o;return{from:s,nodesForReplacement:t.slice(n,i-o),to:c}}(e.getChildren(),i);return!(o===s&&!c.length)&&(r.splice(o,s-o,c),!0)}))}function _Z(e,t){return eZ(e)&&eZ(t)&&e.__text===t.__text&&e.__highlightType===t.__highlightType||_V(e)&&_V(t)||PH(e)&&PH(t)}function lde(e,t){let n=[];!0!==e._headless&&n.push(e.registerMutationListener(uZ,t=>{e.read(`latest`,()=>{for(let[n,r]of t)if(r!==`destroyed`){let t=aU(n);t!==null&&cde(t,e)}})},{skipInitialization:!1}));let r={didTransform:!1,nodesCurrentlyHighlighting:new Set};return n.push(e.registerNodeTransform(uZ,gZ.bind(null,e,t,r)),e.registerNodeTransform(eJ,hZ.bind(null,e,t,r)),e.registerNodeTransform(dZ,hZ.bind(null,e,t,r))),AG(...n)}function ude(e,t=yZ){if(!e.hasNodes([uZ,dZ]))throw Error(`CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor`);return AG(lde(e,t),Uue(e))}var vZ,yZ,bZ=s((()=>{fZ(),$J(),Iz(),Wue(),Gue(),Kue(),que(),Jue(),Yue(),Xue(),Zue(),Que(),$ue(),ede(),tde(),nde(),rde(),ide(),(function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":`-`,"deleted-arrow":`<`,"inserted-sign":`+`,"inserted-arrow":`>`,unchanged:` `,diff:`!`};Object.keys(t).forEach(function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),n===`diff`&&i.push(`bold`),e.languages.diff[n]={pattern:RegExp(`^(?:[`+r+`].*(?:\r
|
|||
|
|
?|
|
|||
|
|
|(?![\\s\\S])))+`,`m`),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})})(Prism),Prism.languages.go=Prism.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore(`go`,`string`,{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go[`class-name`],vZ=globalThis.Prism||window.Prism,yZ={$tokenize(e,t){let n=t||this.defaultLanguage;return n===null?Rue(e.getTextContent()):sde(e,n)},defaultLanguage:oZ,tokenize(e,t){let n=this.defaultLanguage;return vZ.tokenize(e,vZ.languages[t||``]||(n===null?void 0:vZ.languages[n]))}}})),xZ=s((()=>{bZ(),fZ()}));function dde(e,t,n){let r=function(e){let t=e[wZ];return t===void 0&&(t={dispose:()=>{},editors:new Map,installs:new Set},e[wZ]=t),t}(e);if(r.installs.size===0){let t=mde.bind(e);e.addEventListener(`message`,t,!0),r.dispose=()=>{e.removeEventListener(`message`,t,!0)}}if(r.installs.add(t),n){let e=r.editors.get(n)||new Set;e.add(t),r.editors.set(n,e)}return fde.bind(null,e,r,t,n)}function fde(e,t,n,r){if(r){let e=t.editors.get(r);e&&e.delete(n)&&e.size===0&&t.editors.delete(r)}t.installs.delete(n)&&t.installs.size===0&&(t.dispose(),delete e[wZ])}function SZ(e){return e&&e.ownerDocument.defaultView}function pde(e){let t=cue(()=>SZ(e.getRootElement()),t=>e.registerRootListener(e=>{t.value=SZ(e)}));return MY(()=>{let n=t.value;if(n)return dde(n,Symbol(`@lexical/dragon/editorInstall`),e)})}function mde(e){if(e.origin!==this.location.origin)return;let t=function(e){let t=e[wZ];if(t===void 0)return null;let n=JH(rW(e.document));return KH(n)&&t.editors.has(n)?n:null}(this);if(t===null)return;let n=e.data;if(typeof n==`string`){let r;try{r=JSON.parse(n)}catch{return}if(r&&r.protocol===`nuanria_messaging`&&r.type===`request`){let n=r.payload;if(n&&n.functionId===`makeChanges`){let r=n.args;if(Array.isArray(r)){let[n,i,a,o,s,c]=r;if(![n,i,o,s].every(Number.isFinite)||typeof a!=`string`&&a!==-1)return;t.update(()=>{let t=KV();if(SV(t)){let r=t.anchor,l=r.getNode(),u=0,d=0;if(mV(l)&&n>=0&&i>=0&&(u=n,d=n+i,t.setTextNodeRange(l,u,l,d)),typeof a!=`string`||u===d&&a===``||(t.insertRawText(a),l=r.getNode()),mV(l)){let e=l.getTextContentSize();u=Math.min(Math.max(o,0),e),d=o<0||s<0?u:Math.min(o+s,e),t.setTextNodeRange(l,u,l,d)}if(typeof c==`string`&&s>0&&!t.isCollapsed()){let e=CZ[c];e!==void 0&&t.formatText(e)}e.stopImmediatePropagation()}})}}}}}var CZ,wZ,hde=s((()=>{mX(),$J(),CZ={bold:`bold`,italic:`italic`,strikeThrough:`strikethrough`,subscript:`subscript`,superscript:`superscript`,underline:`underline`},wZ=Symbol.for(`@lexical/dragon/WindowState`)}));function gde(e,t,n,r,i){if(e===null||n.size===0&&r.size===0&&!i)return 0;let a=t._selection,o=e._selection;if(i)return 1;if(!(SV(a)&&SV(o)&&o.isCollapsed()&&a.isCollapsed()))return 0;let s=function(e,t,n){let r=e._nodeMap,i=[];for(let e of t){let t=r.get(e);t!==void 0&&i.push(t)}for(let[e,t]of n){if(!t)continue;let n=r.get(e);n===void 0||kH(n)||i.push(n)}return i}(t,n,r);if(s.length===0)return 0;if(s.length>1){let n=t._nodeMap,r=n.get(a.anchor.key),i=n.get(o.anchor.key);return r&&i&&!e._nodeMap.has(r.__key)&&mV(r)&&r.__text.length===1&&a.anchor.offset===1?2:0}let c=s[0],l=e._nodeMap.get(c.__key);if(!mV(l)||!mV(c)||l.__mode!==
|
|||
|
|
`),r=0,i=[];for(let e=0;e<n.length;e++){let a=n[e],o=a.trimEnd(),s=i[i.length-1],c=e<n.length-1?$Q(a):null,l=s!==void 0&&$Q(s)!==null;if(D$.test(o))i.push(o);else if(r===0){{let e=o.match(T$);if(e){r=e[1].trim().length,i.push(o);continue}}o===``||s===``||!s||C$.test(s)||C$.test(o)||w$.test(o)||b$.test(o)||x$.test(o)||S$.test(o)||O$.test(o)||Hde(o)||l||!t||k$.test(o)||A$.test(o)||j$(A$).test(s)||j$(k$).test(s)||E$.test(s)?i.push(!t&&o!==``||c!==null?a:o):i[i.length-1]=s+` `+(c===null?o:a).trimStart()}else{if(E$.test(o)&&o.trim().length>=r){r=0,i.push(o);continue}i.push(a)}}return i.join(`
|
|||
|
|
`)}function Gde(e,t,n,r,i){for(let a of t){if(!a.export)continue;let t=a.export(e,e=>t$(e,n,r,void 0,void 0,i));if(t!=null)return t}return Q(e)?t$(e,n,r,void 0,void 0,i):OH(e)?e.getTextContent():null}function t$(e,t,n,r,i,a=!1){let o=[],s=e.getChildren();r||=[],i||=[];t:for(let e of s){for(let s of n){if(!s.export)continue;let c=s.export(e,e=>t$(e,t,n,r,[...i,...r],a),(e,n)=>n$(e,n,t,r,i,a));if(c!=null){o.push(c);continue t}}PH(e)?o.push(Kde(e)):mV(e)?o.push(n$(e,e.getTextContent(),t,r,i,a)):Q(e)?o.push(t$(e,t,n,r,i,a)):OH(e)&&o.push(e.getTextContent())}return o.join(``)}function Kde(e){return Yz(e,P$)+`
|
|||
|
|
`}function n$(e,t,n,r,i,a=!1){let o=e.hasFormat(`code`),s,c,l,u,d=t;if(o||(d=a?d.replace(/([*_`~])/g,`\\$1`):d.replace(/([*_`~\\])/g,`\\$1`)),o){let{fence:e,padded:n}=function(e){let t=e.match(/`+/g),n=t?Math.max(...t.map(e=>e.length)):0;return{fence:"`".repeat(n+1),padded:e.length===0||e.includes("`")||/^\s/.test(e)&&/\s$/.test(e)?` ${e} `:e}}(t);s=``,l=``,c=e+n+e,u=!1}else{let e=d.match(/^(\s*)(.*?)(\s*)$/s)||[``,``,d,``];s=e[1],c=e[2],l=e[3],u=c===``}let f=``,p=``,m=``,h=r$(e,!0),g=r$(e,!1),_=new Set;for(let t of n){let n=t.format[0],i=t.tag;n!==`code`&&a$(e,n)&&!_.has(n)&&(_.add(n),a$(h,n)&&r.find(e=>e.tag===i)||(r.push({format:n,tag:i}),f+=i))}for(let t=0;t<r.length;t++){let n=i$(e,r[t].format),a=i$(g,r[t].format);if(n&&a)continue;let o=[...r];for(;o.length>t;){let e=o.pop();i&&e&&i.find(t=>t.tag===e.tag)||(e&&typeof e.tag==`string`&&(n?a||(m+=e.tag):p+=e.tag),r.pop())}break}return u&&!e.hasFormat(`code`)?p+d:p+s+f+c+m+l}function r$(e,t){let n=t?e.getPreviousSibling():e.getNextSibling();return mV(n)?n:null}function i$(e,t){return mV(e)&&e.hasFormat(t)}function a$(e,t){return!!i$(e,t)&&(t===`code`||!e||!/^\s*$/.test(e.getTextContent()))}function qde(e,t){let n=e.getTextContent(),r=t.transformersByTag["`"],i=[],a=null;if(r){let e=function(e){let t=t=>{let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;r--)n++;return n%2==1},n=[],r=0;for(;r<e.length;)if(e[r]==="`"){let t=1;for(;r+t<e.length&&e[r+t]==="`";)t++;n.push({index:r,length:t}),r+=t}else r++;let i=[],a=0;for(;a<n.length;){let r=n[a];if(t(r.index)){a++;continue}let o=-1;for(let e=a+1;e<n.length;e++)if(n[e].length===r.length){o=e;break}if(o===-1){a++;continue}let s=n[o],c=e.slice(r.index+r.length,s.index);c.length>=2&&c.startsWith(` `)&&c.endsWith(` `)&&/[^ ]/.test(c)&&(c=c.slice(1,-1)),i.push({content:c,endIndex:s.index+s.length,startIndex:r.index}),a=o+1}return i}(n);for(let t of e)a||={content:t.content,endIndex:t.endIndex,startIndex:t.startIndex,tag:"`"},i.push({end:t.endIndex,start:t.startIndex})}let o=function(e,t,n=[]){let r=[],i=new Set(Object.keys(t.transformersByTag).filter(e=>e[0]!=="`").map(e=>e[0])),a=t=>{let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;r--)n++;return n%2==1},o=e=>n.some(t=>e>=t.start&&e<t.end),s=0;for(;s<e.length;){let t=e[s];if(!i.has(t)||a(s)||o(s)){s++;continue}let n=1;for(;s+n<e.length&&e[s+n]===t;)n++;let c=o$(t,e,s,n,!0),l=o$(t,e,s,n,!1);(c||l)&&r.push({active:!0,canClose:l,canOpen:c,char:t,index:s,length:n}),s+=n}return r}(n,t,i),s=o.length>0?function(e,t,n){let r={},i=0,a=null;for(;i<t.length;){let o=t[i];if(!o.active||!o.canClose||o.length===0){i++;continue}let s=`${o.char}${o.canOpen}${o.length%3}`,c=r[s]??-1,l=!1;for(let r=i-1;r>c;r--){let s=t[r];if(!s.active||!s.canOpen||s.length===0||s.char!==o.char||(s.canClose||o.canOpen)&&(s.length+o.length)%3==0&&s.length%3!=0&&o.length%3!=0)continue;let c=Math.min(s.length,o.length),u=Object.keys(n.transformersByTag).filter(e=>e[0]===s.char&&e.length<=c).sort((e,t)=>t.length-e.length)[0];if(!u)continue;l=!0;let d=u.length,f={content:e.slice(s.index+s.length,o.index),endIndex:o.index+d,startIndex:s.index+(s.length-d),tag:u};(!a||f.startIndex<a.startIndex||f.startIndex===a.startIndex&&f.endIndex>a.endIndex)&&(a=f);for(let e=r+1;e<i;e++)t[e].active=!1;s.length-=d,o.length-=d,s.active=s.length>0,o.length>0?o.index+=d:(o.active=!1,i++);break}l||(r[s]=i-1,o.canOpen||(o.active=!1),i++)}return a}(n,o,t):null,c=null,l=null;if(a&&s?s.startIndex<=a.startIndex&&s.endIndex>=a.endIndex?(c=s,l=t.transformersByTag[s.tag]):(c=a,l=r):a?(c=a,l=r):s&&(c=s,l=t.transformersByTag[s.tag]),!c||!l)return null;let u=[n.slice(c.startIndex,c.endIndex),c.tag,c.content];return u.index=c.startIndex,u.input=n,{endIndex:c.endIndex,isCodeSpan:l===r,match:u,startIndex:c.startIndex,transformer:l}}function o$(e,t,n,r,i){if(!s$(t,n,r,i))return!1;if(e===`*`)return!0;if(e===`_`){if(!s$(t,n,r,!i))return!0;let e=i?t[n-1]:t[n+r];return e!==void 0&&v$.test(e)}return!0}function s$(e,t,n,r){let i=e[t-1],a=e[t+n],[o,s]=r?[a,i]:[i,a];return o!==void 0&&!_$.test(o)&&(!v$.test(o)||s===void 0||_$.test(s)||v$.test(s))}function c$(e){return mV(e)&&!e.ha
|
|||
|
|
`),s=o.length;for(let e=0;e<s;e++){let n=o[e],[s,c]=Yde(o,e,i.multilineElement,t);s?e=c:Xde(n,t,i.element,a,i.textMatch,r)}let c=t.getChildren();for(let e of c)if(!r&&ZQ(e)&&t.getChildrenSize()>1)e.remove();else if(Q(e))for(let t of e.getAllTextNodes())Zde(t)}function Yde(e,t,n,r){for(let i of n){let{handleImportAfterStartMatch:n,regExpEnd:a,regExpStart:o,replace:s}=i,c=e[t].match(o);if(!c)continue;if(n){let a=n({lines:e,rootNode:r,startLineIndex:t,startMatch:c,transformer:i});if(a===null)continue;if(a)return a}let l=typeof a==`object`&&`regExp`in a?a.regExp:a,u=a&&typeof a==`object`&&`optional`in a?a.optional:!a,d=t,f=e.length;for(;d<f;){let n=l?e[d].match(l):null;if(!n&&(!u||u&&d<f-1)){d++;continue}if(n&&t===d&&n.index===c.index){d++;continue}let i=[];if(n&&t===d)i.push(e[t].slice(c[0].length,-n[0].length));else for(let r=t;r<=d;r++)if(r===t){let t=e[r].slice(c[0].length);i.push(t)}else if(r===d&&n){let t=e[r].slice(0,-n[0].length);i.push(t)}else i.push(e[r]);if(!1!==s(r,null,c,n,i,!0))return[!0,d];break}}return[!1,t]}function Xde(e,t,n,r,i,a){let o=pV(e),s=IH();s.append(o),t.append(s);for(let{regExp:t,replace:r}of n){let n=e.match(t);if(n&&(o.setTextContent(e.slice(n[0].length)),!1!==r(s,[o],n,!0)))break}if(l$(o,r,i),s.getParent()!==null&&e.length>0){let e=s.getPreviousSibling();if(!a&&(LH(e)||OQ(e)||QZ(e))){let t=e;if(QZ(e)){let n=e.getLastDescendant();t=n==null?null:IJ(n,JZ)}t!=null&&t.getTextContentSize()>0&&(t.splice(t.getChildrenSize(),0,[e$(t),...s.getChildren()]),s.remove())}}}function Zde(e){let t=new Set,n=e.getTextContent(),r=n.indexOf(` `);for(;r!==-1;)t.add(r),t.add(r+1),r=n.indexOf(` `,r+1);e.splitText(...t).forEach(e=>{e.getTextContent()===` `&&e.replace(gV())})}function Qde(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function u$(e,t,n,r,i){if(!HU(e.getParent())||e.getFirstChild()!==t)return!1;let a=t.getTextContent();if(!i&&a[n-1]!==` `)return!1;for(let{regExp:o,replace:s}of r){let r=a.match(o),c=i||r&&r[0].endsWith(` `)?n:n-1;if(r&&r[0].length===c){let i=t.getNextSiblings(),[a,o]=t.splitText(n);if(!1!==s(e,o?[o,...i]:i,r,!1))return a.remove(),!0}}return!1}function d$(e,t,n,r,i){if(!HU(e.getParent())||e.getFirstChild()!==t)return!1;let a=t.getTextContent();if(!i&&a[n-1]!==` `)return!1;for(let{regExpStart:o,replace:s,regExpEnd:c}of r){if(c&&!(`optional`in c)||c&&`optional`in c&&!c.optional)continue;let r=a.match(o);if(r){let a=i||r[0].endsWith(` `)?n:n-1;if(r[0].length!==a)continue;let o=t.getNextSiblings(),[c,l]=t.splitText(n);if(!1!==s(e,l?[l,...o]:o,r,null,null,!1))return c.remove(),!0}}return!1}function $de(e,t){let n=0,r=e.getTextContent();for(let e=0;e<t;e++)r[e]==="`"&&n++;return n%2!=0}function f$(e,t,n){let r=n.length;for(let i=t;i>=r;i--){let t=i-r;if(p$(e,t,n,0,r)&&e[t+r]!==` `)return t}return-1}function p$(e,t,n,r,i){for(let a=0;a<i;a++)if(e[t+a]!==n[r+a])return!1;return!0}function efe(e,t=r1){let n=XQ(t),r=n.element.filter(e=>e.triggerOnEnter),i=YQ(n.textFormat,({tag:e})=>e[e.length-1]),a=YQ(n.textMatch,({trigger:e})=>e),o=new Set([` `]);for(let e of n.textFormat)o.add(e.tag.slice(-1));for(let e of n.textMatch)e.trigger!==void 0&&o.add(e.trigger);for(let n of t){let t=n.type;if(t===`element`||t===`text-match`||t===`multiline-element`){let t=n.dependencies;for(let n of t)e.hasNode(n)||Qde(173,n.getType())}}let s=(e,t,r)=>!!u$(e,t,r,n.element)||!!d$(e,t,r,n.multilineElement)||!!function(e,t,n){let r=e.getTextContent(),i=n[r[t-1]];if(i==null)return!1;t<r.length&&(r=r.slice(0,t));for(let t of i){if(!t.replace||!t.regExp)continue;let n=r.match(t.regExp);if(n===null)continue;let i=n.index||0,a=i+n[0].length,o;return i===0?[o]=e.splitText(a):[,o]=e.splitText(i,a),o.selectNext(0,0),t.replace(o,n),!0}return!1}(t,r,a)||!!function(e,t,n){let r=e.getTextContent(),i=t-1,a=r[i],o=n[a];if(!o)return!1;for(let t of o){let{tag:n}=
|
|||
|
|
${l}`:l)}return o.join(`
|
|||
|
|
`)}}(e,n)(t)}var g$,_$,v$,y$,b$,x$,S$,C$,w$,T$,E$,D$,O$,k$,A$,j$,M$,N$,P$,F$,I$,L$,R$,z$,B$,V$,H$,U$,W$,G$,K$,q$,J$,Y$,X$,Z$,Q$,$$,e1,t1,n1,r1,i1=s((()=>{$J(),fZ(),LZ(),iQ(),JQ(),g$=/[!-/:-@[-`{-~\s]/,_$=/\s/,v$=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/,y$=/^\s{0,3}$/,b$=/^(\s*)(\d{1,})\.\s/,x$=/^(\s*)[-*+]\s/,S$=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,C$=/^(#{1,6})\s/,w$=/^>\s/,T$=/^([ \t]*`{3,})([\w-]+)?[ \t]?/,E$=/^[ \t]*`{3,}$/,D$=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,O$=/^(?:\|)(.+)(?:\|)\s?$/,k$=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,A$=/^<\/[a-z_][\w-]*\s*>/i,j$=e=>RegExp(`(?:${e.source})$`,e.flags),M$=Jz(`mdListMarker`,{parse:e=>typeof e==`string`&&/^[-*+]$/.test(e)?e:`-`,resetOnCopyNode:!0}),N$=Jz(`mdCodeFence`,{parse:e=>typeof e==`string`&&/^`{3,}$/.test(e)?e:"```",resetOnCopyNode:!0}),P$=Jz(`mdHardLineBreak`,{parse:e=>typeof e==`string`&&/^(\\| {2,})$/.test(e)?e:``,resetOnCopyNode:!0}),F$=e=>(t,n,r,i)=>{let a=e(r);a.append(...n),t.replace(a),i||a.select(0,0)},I$=e=>(t,n,r,i)=>{let a=t.getPreviousSibling(),o=t.getNextSibling(),s=qZ(e===`check`?r[3]===`x`:void 0),c=r[0].trim()[0],l=e!==`bullet`&&e!==`check`||c!==M$.parse(c)?void 0:c;if(QZ(o)&&o.getListType()===e){l&&Xz(o,M$,l);let n=o.getFirstChild();n===null?o.append(s):n.insertBefore(s),e===`number`&&o.setStart(Number(r[2])),t.remove()}else if(QZ(a)&&a.getListType()===e)l&&Xz(a,M$,l),a.append(s),t.remove();else{let n=ZZ(e,e===`number`?Number(r[2]):void 0);l&&Xz(n,M$,l),n.append(s),t.replace(n)}s.append(...n),i||s.select(0,0);let u=function(e){let t=e.match(/\t/g),n=e.match(/ /g),r=0;return t&&(r+=t.length),n&&(r+=Math.floor(n.length/4)),r}(r[1]);u&&s.setIndent(u)},L$=(e,t,n,r)=>{let i=[],a=e.getChildren(),o=0;for(let s of a)if(JZ(s)){if(s.getChildrenSize()===1){let e=s.getFirstChild();if(QZ(e)){let a=L$(e,t,n+1,r);a&&i.push(a);continue}}if(r&&!s.getChildren().some(e=>e.isSelected(r)))continue;let a=` `.repeat(4*n),c=e.getListType(),l=Yz(e,M$),u=c===`number`?`${e.getStart()+o}. `:c===`check`?`${l} [${s.getChecked()?`x`:` `}] `:l+` `,d=t(s);c!==`number`&&(d=d.replace(/^(\s{0,3}\d+)(\.\s)/,`$1\\$2`)),i.push(a+u+d),o++}return i.join(`
|
|||
|
|
`)},R$={dependencies:[KQ],export:(e,t)=>{if(!MQ(e))return null;let n=Number(e.getTag().slice(1));return`#`.repeat(n)+` `+t(e)},regExp:C$,replace:F$(e=>jQ(`h`+e[1].length)),triggerOnEnter:!0,type:`element`},z$={dependencies:[GQ],export:(e,t)=>{if(!OQ(e))return null;let n=t(e).split(`
|
|||
|
|
`),r=[];for(let e of n)r.push(`> `+e);return r.join(`
|
|||
|
|
`)},regExp:w$,replace:(e,t,n,r)=>{if(r){let n=e.getPreviousSibling();if(OQ(n))return n.splice(n.getChildrenSize(),0,[e$(n),...t]),void e.remove()}let i=DQ();i.append(...t),e.replace(i),r||i.select(0,0)},triggerOnEnter:!0,type:`element`},B$={dependencies:[uZ],export:e=>{if(!qX(e))return null;let t=e.getTextContent(),n=Yz(e,N$);if(t.indexOf(n)>-1){let e=t.match(/`{3,}/g);if(e){let t=Math.max(...e.map(e=>e.length));n="`".repeat(t+1)}}return n+(e.getLanguage()||``)+(t?`
|
|||
|
|
`+t:``)+`
|
|||
|
|
`+n},handleImportAfterStartMatch:({lines:e,rootNode:t,startLineIndex:n,startMatch:r})=>{let i=r[1],a=i.trim().length,o=e[n],s=r.index+i.length,c=o.slice(s),l=RegExp(`\`{${a},}$`);if(l.test(c)){let e=c.match(l),i=c.slice(0,c.lastIndexOf(e[0])),a=[...r];return a[2]=``,B$.replace(t,null,a,e,[i],!0),[!0,n]}let u=RegExp(`^[ \\t]*\`{${a},}$`);for(let i=n+1;i<e.length;i++){let a=e[i];if(u.test(a)){let s=a.match(u),c=e.slice(n+1,i),l=o.slice(r[0].length);return l.length>0&&c.unshift(l),B$.replace(t,null,r,s,c,!0),[!0,i]}}let d=e.slice(n+1),f=o.slice(r[0].length);return f.length>0&&d.unshift(f),B$.replace(t,null,r,null,d,!0),[!0,e.length-1]},regExpEnd:{optional:!0,regExp:E$},regExpStart:T$,replace:(e,t,n,r,i,a)=>{let o,s,c=n[1]?n[1].trim():"```",l=n[2]||void 0;if(!t&&i){if(i.length===1)r?(o=KX(l),s=i[0]):(o=KX(l),s=i[0].startsWith(` `)?i[0].slice(1):i[0]);else{for(o=KX(l),i.length>0&&(i[0].trim().length===0?i.shift():i[0].startsWith(` `)&&(i[0]=i[0].slice(1)));i.length>0&&!i[i.length-1].length;)i.pop();s=i.join(`
|
|||
|
|
`)}Xz(o,N$,c);let t=pV(s);o.append(t),e.append(o)}else t&&F$(e=>KX(e?e[2]:void 0))(e,t,n,a)},type:`multiline-element`},V$={dependencies:[eQ,$Z],export:(e,t,n)=>QZ(e)?L$(e,t,0,n):null,regExp:x$,replace:I$(`bullet`),triggerOnEnter:!0,type:`element`},I$(`check`),H$={dependencies:[eQ,$Z],export:(e,t,n)=>QZ(e)?L$(e,t,0,n):null,regExp:b$,replace:I$(`number`),triggerOnEnter:!0,type:`element`},U$={format:[`code`],tag:"`",type:`text-format`},W$={format:[`highlight`],tag:`==`,type:`text-format`},G$={format:[`bold`,`italic`],tag:`***`,type:`text-format`},K$={format:[`bold`,`italic`],intraword:!1,tag:`___`,type:`text-format`},q$={format:[`bold`],tag:`**`,type:`text-format`},J$={format:[`bold`],intraword:!1,tag:`__`,type:`text-format`},Y$={format:[`strikethrough`],tag:`~~`,type:`text-format`},X$={format:[`italic`],tag:`*`,type:`text-format`},Z$={format:[`italic`],intraword:!1,tag:`_`,type:`text-format`},Q$={dependencies:[NZ],export:(e,t,n)=>{if(!DZ(e)||kZ(e))return null;let r=t(e),i=e.getTitle();return i!=null&&(i=i.replace(/([\\"])/g,`\\$1`)),i?`[${r}](${e.getURL()} "${i}")`:`[${r}](${e.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[\]]*(?:\[[^[\]]*\][^[\]]*)*)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(e,t)=>{if(IJ(e,DZ))return;let[,n,r,i]=t,a=EZ(r==null?void 0:QQ(r),{title:i==null?void 0:QQ(i)}),o=n.split(`[`).length-1,s=n.split(`]`).length-1,c=n,l=``;if(o<s)return;if(o>s){let e=n.split(`[`);l=`[`+e[0],c=e.slice(1).join(`[`)}let u=pV(c);return u.setFormat(e.getFormat()),a.append(u),e.replace(a),l&&a.insertBefore(pV(l)),u},trigger:`)`,type:`text-match`},$$=[R$,z$,V$,H$],e1=[B$],t1=[U$,G$,K$,q$,J$,W$,X$,Z$,Y$],n1=[Q$],r1=[...$$,...e1,...t1,...n1]}));function a1(e){return e===`middle`||e===`bottom`}function o1(e){let t=e,n=e.nodeName.toLowerCase(),r;y1.test(t.style.width)&&(r=parseFloat(t.style.width));let i=b1.NO_STATUS;if(n===`th`){let e=t.getAttribute(`scope`);if(e===`col`)i=b1.COLUMN;else if(e===`row`)i=b1.ROW;else{let e=t.parentElement,n=oW(e)&&e.nodeName.toLowerCase()===`tr`&&oW(e.parentElement)&&(e.parentElement.nodeName.toLowerCase()===`thead`||e.rowIndex===0),r=t.cellIndex===0;n&&(i|=b1.ROW),r&&(i|=b1.COLUMN),i===b1.NO_STATUS&&(i=b1.ROW)}}let a=s1(i,t.colSpan,r);a.__rowSpan=t.rowSpan;let o=t.style.backgroundColor;o!==``&&(a.__backgroundColor=o);let s=t.style.verticalAlign;a1(s)&&(a.__verticalAlign=s);let c=t.style,l=(c&&c.textDecoration||``).split(` `),u=c.fontWeight===`700`||c.fontWeight===`bold`,d=l.includes(`line-through`),f=c.fontStyle===`italic`,p=l.includes(`underline`),m=c.color;return{after:e=>{let t=[],n=null,r=()=>{if(n){let e=n.getFirstChild();PH(e)&&n.getChildrenSize()===1&&e.remove()}};for(let i of e)if(zU(i)||mV(i)||PH(i)){if(mV(i)&&(u&&i.toggleFormat(`bold`),d&&i.toggleFormat(`strikethrough`),f&&i.toggleFormat(`italic`),p&&i.toggleFormat(`underline`),m)){let e=i.getStyle();e.includes(`color:`)||i.setStyle(e+`color: ${m};`)}n?n.append(i):(n=IH().append(i),t.push(n))}else t.push(i),r(),n=null;return r(),t.length===0&&t.push(IH()),t},node:a}}function s1(e=b1.NO_STATUS,t=1,n){return WU(new x1(e,t,n))}function c1(e){return e instanceof x1}function l1(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function tfe(e){let t=e,n;return y1.test(t.style.height)&&(n=parseFloat(t.style.height)),{after:e=>gY(e,c1),node:u1(n)}}function u1(e){return WU(new S1(e))}function d1(e){return e instanceof S1}function nfe(e,t,n){let r=[],i=null,a=null;function o(e){let t=r[e];return t===void 0&&(r[e]=t=[]),t}let s=e.getChildren();for(let e=0;e<s.length;e++){let r=s[e];d1(r)||l1(209);let c=o(e);for(let l=r.getFirstChild(),u=0;l!=null;l=l.getNextSibling()){for(c1(l)||l1(147);c[u]!==void 0;)u++;let r={cell:l,startColumn:u,startRow:e},{__rowSpan:d,__colSpan:f}=l;for(let t=0;t<
|
|||
|
|
_$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2**
|
|||
|
|
**$3**$4`).replace(/(\s+)~~([^~\n]+?)\n([^~\n]+?)~~(\s+)/gm,`$1~~$2~~
|
|||
|
|
~~$3~~$4`).replace(/(\s+)`([^`\n]+?)\n([^`\n]+?)`(\s+)/gm,"$1`$2`\n`$3`$4"),z1=e=>{if(!e.match(/^\s{2}(?:-|\+|\*|\d+\.)\s/m))return e;let t=!1;return e.split(`
|
|||
|
|
`).map(e=>/^(`{3,}|~{3,})/.test(e)?(t=!t,e):t?e:e.replace(/^(\s+)(-|\+|\*|\d+\.)/,(e,t,n)=>`${` `.repeat(t.length*2)}${n}`)).join(`
|
|||
|
|
`)}})),B1,sfe=s((()=>{mX(),B1={dependencies:[pX],export:e=>mue(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=BY();r||e.getNextSibling()!==null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`}})),V1,H1,U1,W1,G1,K1,cfe=s((()=>{i1(),T1(),$J(),V1=/^(?:\|)(.+)(?:\|)\s?$/,H1=/^(\| ?:?-*:? ?)+\|\s?$/,U1=e=>{let t=e.getFirstChild();return d1(t)?t.getChildrenSize():0},W1=e=>{e=e.replace(/\\n/g,`
|
|||
|
|
`);let t=s1(b1.NO_STATUS);return m$(e,r1,t),t},G1=e=>{let[,t]=e.match(V1)??[];return t?t.split(`|`).map(e=>W1(e)):null},K1={dependencies:[w1,S1,x1],export:e=>{if(!v1(e))return null;let t=[];return e.getChildren().forEach(e=>{let n=[];if(!d1(e))return;let r=!1;e.getChildren().forEach(e=>{c1(e)&&(n.push(h$(r1,e).replace(/\n/g,`\\n`).trim()),e.__headerState===b1.ROW&&(r=!0))}),t.push(`| ${n.join(` | `)} |`),r&&t.push(`| ${n.map(()=>`---`).join(` | `)} |`)}),t.join(`
|
|||
|
|
`)},regExp:V1,replace:(e,t,[n])=>{if(H1.test(n)){let t=e.getPreviousSibling();if(!t||!v1(t))return;let n=t.getChildren(),r=n[n.length-1];if(!r||!d1(r))return;r.getChildren().forEach(e=>{c1(e)&&e.setHeaderStyles(b1.ROW,b1.ROW)}),e.remove();return}let r=G1(n);if(!r)return;let i=[r],a=e.getPreviousSibling(),o=r.length;for(;a&&!(!LH(a)||a.getChildrenSize()!==1);){let e=a.getFirstChild();if(!mV(e))break;let t=G1(e.getTextContent());if(!t)break;o=Math.max(o,t.length),i.unshift(t);let n=a.getPreviousSibling();a.remove(),a=n}let s=_1();i.forEach(e=>{let t=u1();s.append(t);for(let n=0;n<o;n+=1)t.append(n<e.length?e[n]:W1(``))});let c=e.getPreviousSibling();v1(c)&&U1(c)===o?(c.append(...s.getChildren()),e.remove()):e.replace(s),s.selectEnd()},type:`element`}})),q1,J1,Y1,X1,Z1,Q1,$1,e0=s((()=>{Iz(),xZ(),bZ(),hde(),mX(),bde(),LZ(),iQ(),i1(),JQ(),T1(),yY(),rT(),$J(),q1=u(E1(),1),L1(),ofe(),sfe(),cfe(),$j(),J1=()=>{let e=KV();if(!SV(e))return{blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]};let t=e.anchor.getNode(),n=null,r=A1.filter(t=>e.hasFormat(t));t.getType()!==`root`&&(n=t instanceof gJ?t:fY(t,gJ),DZ(n)&&(r.push(`link`),n=fY(n,gJ)),JZ(n)&&(n=fY(n,eQ)));let i=(()=>{if(!n)return`paragraph`;if(MQ(n))return`heading-${n.getTag().match(/\d/)?.[0]}`;if(QZ(n))return n.getListType()===`bullet`?`bulleted-list`:`numbered-list`;if(OQ(n))return`blockquote`;if(qX(n)||eZ(n))return`code-block`;let e=n.getType();return M1.includes(e)?e:`paragraph`})();return{blockNodeKey:n?.getKey()??null,blockType:i,inlineTypes:r}},Y1=(e,t)=>{let n=t.filter(({tag:e})=>!I1.includes(e));e.getRootElement()?.dispatchEvent(new CustomEvent(`Update`,{detail:{value:h$(n).replace(/\\([_\\])/g,`$1`).replace(/ /g,` `),selection:J1()}}))},X1=({enabledButtons:e=[],components:t=[],useMarkdownShortcuts:n,isCodeEditor:r=!1,defaultLanguage:i=`plain`})=>{let a={namespace:`editor`,nodes:[...t.map(({node:e})=>e),...new Set(Object.entries(P1).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[uZ,dZ]:[pX,w1,x1,S1]],theme:O1},o=[...t.map(({transformer:e})=>e),...new Set(Object.entries(F1).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[B$]:[B1,K1]],s=zH(a),c=[],l=e=>{typeof e==`function`&&c.push(e)};return l(Vde(s)),l(pde(s)),l(vde(s,yde(),1e3)),n&&l(efe(s,o)),(e.includes(`code-block`)||r)&&l(ude(s,{defaultLanguage:i,tokenize:(e,t=`plain`)=>window.Prism.tokenize(e,window.Prism.languages[t]??window.Prism.languages.plain),$tokenize:yZ.$tokenize})),e.includes(`link`)&&l(s.registerCommand(FZ,e=>(Sde(typeof e==`string`?e:null),!0),2)),e.includes(`bulleted-list`)&&l(s.registerCommand(nQ,()=>(BZ(`bullet`),!0),2)),e.includes(`numbered-list`)&&l(s.registerCommand(rQ,()=>(BZ(`number`),!0),2)),(e.includes(`bulleted-list`)||e.includes(`numbered-list`))&&l(s.registerCommand($K,()=>Ode(),2)),l(s.registerUpdateListener(()=>{s?.isComposing()||(async()=>{await nT(100),s.update(()=>{if(r){let e=fU(),t=e.getChildren();if(t.length===1&&!qX(t[0])&&t[0].remove(),t.length===0){let t=KX();t.setLanguage(i),e.append(t)}}Y1(s,o)})})()})),l(s.registerRootListener(e=>{if(!e)return;let t=e=>{s.update(()=>{if(e.key===`Tab`){let t=KV();if(!SV(t))return;let n=t.anchor.getNode(),r=n instanceof gJ?n:fY(n,gJ);JZ(r)&&r.canIndent()&&(e.shiftKey?r.getIndent()>0&&(e.preventDefault(),s.dispatchCommand(wq,void 0)):(e.preventDefault(),s.dispatchCommand(Cq,void 0)))}})};return e.addEventListener(`keydown`,t),()=>{e.removeEventListener(`keydown`,t)}})),{editor:s,enabledTransformers:o,dispose:()=>{c.forEach(e=>e())}}},Z1=async e=>{if(e in window.Prism.languages)return;let t=Object.entries(q1.default.languages).find(([t,{alias:n}])=>t===e||(Array.isArray(n)?n.includes(e):n===e))?.[0];if(t)try{await Qj(()=>import(`${D1}/components/prism-${t}.min.js`),void 0)}catch{}},Q1=async(e,t,n)=>(await Promise.all([...t.matchAll(/^```(?<lang>.+?)\n/gm)].map(async({groups:{lang:e=`plain`}={}})=>Z1(e))),t=R1(t),t=z1(t),new Promise((r,i)=>{e.update(()=>{try{m$(t,n),r(void 0)}catch(e){i(Error(`Failed to convert Markdown`,{cause:e}))}})})),$1=async e=>new Promise(t=>{e.focus(()=>{t(void 0)})})}));function t0(e,t){k(t,!0),G(e
|
|||
|
|
@media (width < 768px) {[role=toolbar].secondary.svelte-1ne7xjb {padding-inline:0;}
|
|||
|
|
}[role=toolbar][aria-orientation=horizontal].svelte-1ne7xjb {height:var(--toolbar-size);}[role=toolbar][aria-orientation=vertical].svelte-1ne7xjb {flex-direction:column;width:var(--toolbar-size);}[role=toolbar].svelte-1ne7xjb button[role=button]:is([aria-pressed=true], [aria-checked=true]) {background-color:var(--sui-selected-background-color);}[role=toolbar].svelte-1ne7xjb h2 {flex:auto;display:flex;align-items:center;gap:8px;margin:0;padding-inline-end:12px;min-width:0;font-size:var(--sui-font-size-x-large);}[role=toolbar].svelte-1ne7xjb h2:first-child {padding-inline-start:12px;}[role=toolbar].svelte-1ne7xjb h2 span:not(.sui.truncated-text) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal, normal);opacity:0.8;}[role=toolbar].svelte-1ne7xjb .divider[aria-orientation=horizontal] {margin:0 4px;width:calc(100% - 8px);}[role=toolbar].svelte-1ne7xjb .divider[aria-orientation=vertical] {margin:4px 0;height:calc(100% - 8px);}.inner.svelte-1ne7xjb {display:contents;}`}}));function _0(e,t){k(t,!0),G(e,b0),q(t,`code`,11,``),q(t,`lang`,11,`plain`);let n=q(t,`disabled`,3,!1),r=ec(t,v0);var i=y0();f0(F(i),tc(()=>r,{get disabled(){return n()},children:(e,n)=>{var r=V();Ao(I(r),()=>t.children??D),H(e,r)},$$slots:{default:!0}})),O(i),H(e,i),A()}var v0,y0,b0,x0=s((()=>{Z(),J(),g0(),v0=new Set([`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`disabled`,`children`]),y0=B(`<div role="none" class="wrapper svelte-s4gm2d"><!></div>`),b0={hash:`svelte-s4gm2d`,code:`.wrapper.svelte-s4gm2d {display:contents;}.wrapper.svelte-s4gm2d [role=toolbar] {position:sticky;top:0;z-index:100;display:flex;flex-wrap:wrap;gap:4px;border-width:1px 1px 0;border-style:solid;border-color:var(--sui-textbox-border-color);border-start-start-radius:var(--sui-textbox-border-radius);border-start-end-radius:var(--sui-textbox-border-radius);border-end-start-radius:0;border-end-end-radius:0;padding:0 4px;height:auto;min-height:40px;background-color:var(--sui-tertiary-background-color);}
|
|||
|
|
@media (width < 768px) {.wrapper.svelte-s4gm2d [role=toolbar] {flex-wrap:wrap;height:auto;}
|
|||
|
|
}.wrapper.svelte-s4gm2d .sui.menu-button {padding:0 4px;}.wrapper.svelte-s4gm2d .sui.button {flex:none;margin:0 !important;}.wrapper.svelte-s4gm2d .sui.button-group {gap:4px;}`}}));function lfe(e,t){k(t,!0);let n=q(t,`disabled`,3,!1),r=q(t,`readonly`,3,!1);{let t=M(()=>n()||r()),i=M(()=>Y(`_sui.text_editor.code_editor`));_0(e,{get disabled(){return z(t)},get"aria-label"(){return z(i)},children:(e,t)=>{{let t=M(()=>n()||r());c0(e,{get disabled(){return z(t)}})}},$$slots:{default:!0}})}A()}var ufe=s((()=>{Z(),J(),X(),d0(),x0()}));function dfe(e,t){k(t,!0),G(e,w0);let n=q(t,`code`,15,``),r=q(t,`lang`,15,`plain`),i=q(t,`showLanguageSwitcher`,3,!1),a=q(t,`flex`,3,!1),o=q(t,`hidden`,3,!1),s=q(t,`disabled`,3,!1),c=q(t,`readonly`,3,!1),l=q(t,`required`,3,!1),u=q(t,`invalid`,3,!1),d=ec(t,S0),f=o0();f.config={...f.config,useMarkdownShortcuts:!1,isCodeEditor:!0,defaultLanguage:r()},Rt(`editorStore`,f),ri(()=>{f.initialized&&(n(),r(),Gi(()=>{let e=n()?`\`\`\`${r()}\n${n()}\n\`\`\``:`\`\`\`${r()}\n\`\`\``;f.inputValue=e}))}),ri(()=>{f.initialized&&(f.inputValue,Gi(()=>{let{lang:e=`plain`,code:t=``}=f.inputValue.match(/^```(?<lang>\w+?)?\n(?:(?<code>.*)\n)?```/s)?.groups??{};r()!==e&&r(e),n()!==t&&n(t)}))});var p=C0(),m=I(p);Cs(m,()=>({...d,role:`none`,class:`sui code-editor`,hidden:o(),[Es]:{flex:a()}}),void 0,void 0,void 0,`svelte-1bd1cbx`);var h=F(m),g=e=>{lfe(e,{get disabled(){return s()},get readonly(){return c()}})};W(h,e=>{i()&&e(g)}),t0(L(h,2),{get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()}}),O(m);var _=L(m,2),v=e=>{jz(e,{get show(){return f.showConverterError},set show(e){f.showConverterError=e},children:(e,t)=>{rI(e,{status:`error`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`_sui.text_editor.converter_error`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(_,e=>{f.showConverterError&&e(v)}),H(e,p),A()}var S0,C0,w0,ffe=s((()=>{Z(),J(),X(),dc(),iI(),Fz(),a0(),s0(),ufe(),S0=new Set([`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`showLanguageSwitcher`,`flex`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),C0=B(`<div><!> <!></div> <!>`,1),w0={hash:`svelte-1bd1cbx`,code:`.code-editor.svelte-1bd1cbx {margin:var(--sui-focus-ring-width);border-radius:var(--sui-textbox-border-radius);width:calc(100% - var(--sui-focus-ring-width) * 2);transition:all 200ms;}.code-editor.svelte-1bd1cbx:focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.code-editor.flex.svelte-1bd1cbx:not([hidden]) {display:block;}`}}));function T0(e,t){k(t,!0),G(e,k0);let n=q(t,`value`,15,``),r=q(t,`flex`,3,!1),i=q(t,`dir`,3,void 0),a=q(t,`name`,3,void 0),o=q(t,`autoResize`,3,!1),s=q(t,`hidden`,3,!1),c=q(t,`disabled`,3,!1),l=q(t,`readonly`,3,!1),u=q(t,`required`,3,!1),d=q(t,`invalid`,3,!1),f=ec(t,E0);var p=O0();let m;var h=F(p);En(h),Cs(h,()=>({...f,dir:i(),name:a(),disabled:c()||void 0,readonly:l()||void 0,"aria-hidden":s(),"aria-disabled":c(),"aria-readonly":l(),"aria-required":u(),"aria-invalid":d(),[Es]:{"auto-resize":o()}}),void 0,void 0,void 0,`svelte-kbfpfu`);var g=L(h,2),_=e=>{var t=D0(),r=F(t,!0);O(t),R(()=>{K(t,`dir`,i()),U(r,n()),t.dir=t.dir}),H(e,t)};W(g,e=>{o()&&e(_)}),O(p),R(()=>{m=ds(p,1,`sui text-area ${t.class??``}`,`svelte-kbfpfu`,m,{flex:r(),disabled:c(),readonly:l()}),K(p,`hidden`,s()),h.dir=h.dir}),Rs(h,n),H(e,p),A()}var E0,D0,O0,k0,A0=s((()=>{Z(),J(),E0=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`name`,`autoResize`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),D0=B(`<div class="clone svelte-kbfpfu" aria-hidden="true"> </div>`),O0=B(`<div role="none"><textarea></textarea> <!></div>`),k0={hash:`svelte-kbfpfu`,code:`.text-area.svelte-kbfpfu {display:inline-grid;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-multiline-min-width);}.text-area[hidden].svelte-kbfpfu {display:none;}.text-area.flex.svelte-kbfpfu:not([hidden]) {display:inline-grid;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}:is(textarea.svelte-
|
|||
|
|
.clone.svelte-kbfpfu {white-space:pre-wrap;word-break:break-all;}`}}));function pfe(e,t){k(t,!0);let n=Lt(`editorStore`),r=M(()=>n.selection.inlineTypes.includes(t.type));{let i=e=>{tI(e,{get name(){return k1[t.type].icon}})},a=M(()=>Y(`_sui.text_editor.${k1[t.type].labelKey}`)),o=M(()=>!n.useRichText);bI(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(o)},get pressed(){return z(r)},onclick:async()=>{n.editor&&(await $1(n.editor),n.editor.dispatchCommand(aq,t.type))},startIcon:i,$$slots:{startIcon:!0}})}A()}var mfe=s((()=>{Z(),J(),X(),$J(),dc(),SI(),nI(),L1(),e0()}));function hfe(e,t){k(t,!0);let n=Lt(`editorStore`);{let r=e=>{tI(e,{get name(){return t.component.icon}})},i=M(()=>!n.useRichText);bI(e,{iconic:!0,get"aria-label"(){return t.component.label},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(i)},onclick:()=>{n.editor?.update(()=>{eH([t.component.createNode(),IH()])})},startIcon:r,$$slots:{startIcon:!0}})}A()}var gfe=s((()=>{Z(),J(),$J(),dc(),SI(),nI()}));function _fe(e,t){let n=za();k(t,!0);let r=`link`,i=Lt(`editorStore`),a=M(()=>i.selection.inlineTypes.includes(r)),o=N(!1),s=N(`create`),c=N(!1),l=N(``),u=N(``),d=()=>{i.editor?.getEditorState().read(()=>{let e=hle().trim();P(l,e,!0),P(c,!!e),P(s,`create`),P(o,!0)})},f=()=>{i.editor?.dispatchCommand(FZ,null)},p=()=>{i.editor?.getEditorState().read(()=>{let e=KV();if(SV(e)){let t=e.anchor.getNode(),n=(t instanceof NZ?t:fY(t,NZ))?.getURL();if(n){P(c,!0),P(l,n,!0),P(s,`update`),P(o,!0);return}}f()})},m=()=>{z(a)?p():d()},h=e=>{oI(e,`Enter`)&&z(l)&&P(o,!1)},g=async e=>{if(e.detail.returnValue!==`cancel`&&z(s)!==`remove`){if(!i.editor)return;await new Promise(e=>{i.editor?.update(async()=>{let t=KV()??qV()?.clone();if(SV(t)||(t=UV()),!z(c)){P(u,z(u).trim(),!0),P(u,z(u)||z(l),!0);let{anchor:e,focus:n}=t,r=pV(z(u)),i=r.getKey();eH([r]),e.set(i,z(u).length,`text`),n.set(i,0,`text`)}pU(t),e(void 0)})}),await $1(i.editor),i.editor.dispatchCommand(FZ,z(l))}P(l,``),P(u,``)},_=()=>{i.editor?.registerCommand(lq,e=>(oI(e,aI()?`Meta+K`:`Ctrl+K`)&&(e.preventDefault(),m()),!1),2)};ri(()=>{i.editor&&_()});var v=N0(),y=I(v);{let e=e=>{tI(e,{get name(){return k1[r].icon}})},t=M(()=>Y(`_sui.text_editor.${k1[r].labelKey}`)),n=M(()=>!i.useRichText);bI(y,{iconic:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},get disabled(){return z(n)},get pressed(){return z(a)},onclick:()=>{m()},startIcon:e,$$slots:{startIcon:!0}})}var b=L(y,2);{let e=e=>{var t=V(),n=I(t),r=e=>{{let t=M(()=>Y(`_sui.remove`));bI(e,{variant:`secondary`,get label(){return z(t)},onclick:()=>{f(),P(s,`remove`),P(o,!1)}})}};W(n,e=>{z(s)!==`create`&&e(r)}),H(e,t)},t=M(()=>z(s)===`create`?Y(`_sui.text_editor.insert_link`):Y(`_sui.text_editor.update_link`)),r=M(()=>!z(l)),i=M(()=>z(s)===`create`?Y(`_sui.insert`):Y(`_sui.update`));qI(b,{get title(){return z(t)},get okDisabled(){return z(r)},get okLabel(){return z(i)},onClose:e=>{g(e)},get open(){return z(o)},set open(e){P(o,e,!0)},get value(){return z(l)},set value(e){P(l,e,!0)},footerExtra:e,children:(e,t)=>{var r=M0(),i=I(r),a=F(i),o=F(a,!0);O(a);var s=L(a,2);{let e=M(()=>Y(`_sui.text_editor.url`));oL(s,{dir:`ltr`,get id(){return`${n}-url`},flex:!0,get"aria-label"(){return z(e)},onkeydown:e=>{h(e)},get value(){return z(l)},set value(e){P(l,e,!0)}})}O(i);var d=L(i,2),f=e=>{var t=j0(),r=F(t),i=F(r,!0);O(r);var a=L(r,2);{let e=M(()=>Y(`_sui.text_editor.text`));oL(a,{dir:`auto`,get id(){return`${n}-text`},flex:!0,get"aria-label"(){return z(e)},onkeydown:e=>{h(e)},get value(){return z(u)},set value(e){P(u,e,!0)}})}O(t),R(e=>{K(r,`for`,`${n}-text`),U(i,e)},[()=>Y(`_sui.text_editor.text`)]),H(e,t)};W(d,e=>{z(c)||e(f)}),R(e=>{K(a,`for`,`${n}-url`),U(o,e)},[()=>Y(`_sui.text_editor.url`)]),H(e,r)},$$slots:{footerExtra:!0,default:!0}})}H(e,v),A()}var j0,M0,N0,vfe=s((()=>{Z(),J(),LZ(),yY(),X(),cI(),$J(),dc(),SI(),tL(),nI(),dL(),L1(),e0(),j0=B(`<div role="none"><label> </label> <!></div>`),M0=B(`<div role="none"><label> </lab
|
|||
|
|
:host {--sui-base-hue: 210;--sui-highlight-foreground-color: hsl(var(--sui-foreground-color-1-hsl));--sui-primary-foreground-color: hsl(var(--sui-foreground-color-2-hsl));--sui-secondary-foreground-color: hsl(var(--sui-foreground-color-3-hsl));--sui-tertiary-foreground-color: hsl(var(--sui-foreground-color-4-hsl));--sui-disabled-foreground-color: hsl(var(--sui-foreground-color-5-hsl));--sui-error-foreground-color: hsl(
|
|||
|
|
var(--sui-error-color-hue) var(--sui-alert-foreground-color-saturation)
|
|||
|
|
var(--sui-alert-foreground-color-lightness)
|
|||
|
|
);--sui-warning-foreground-color: hsl(
|
|||
|
|
var(--sui-warning-color-hue) var(--sui-alert-foreground-color-saturation)
|
|||
|
|
var(--sui-alert-foreground-color-lightness)
|
|||
|
|
);--sui-info-foreground-color: hsl(
|
|||
|
|
var(--sui-info-color-hue) var(--sui-alert-foreground-color-saturation)
|
|||
|
|
var(--sui-alert-foreground-color-lightness)
|
|||
|
|
);--sui-success-foreground-color: hsl(
|
|||
|
|
var(--sui-success-color-hue) var(--sui-alert-foreground-color-saturation)
|
|||
|
|
var(--sui-alert-foreground-color-lightness)
|
|||
|
|
);--sui-hover-background-color: hsl(var(--sui-background-color-5-hsl) / 35%);--sui-selected-background-color: hsl(var(--sui-background-color-5-hsl) / 75%);--sui-active-background-color: hsl(var(--sui-background-color-5-hsl) / 100%);--sui-content-background-color: hsl(var(--sui-background-color-1-hsl));--sui-code-background-color: hsl(var(--sui-background-color-3-hsl));--sui-primary-background-color: hsl(var(--sui-background-color-2-hsl));--sui-primary-background-color-translucent: hsl(var(--sui-background-color-2-hsl) / 80%);--sui-secondary-background-color: hsl(var(--sui-background-color-3-hsl));--sui-secondary-background-color-translucent: hsl(var(--sui-background-color-3-hsl) / 80%);--sui-tertiary-background-color: hsl(var(--sui-background-color-4-hsl));--sui-tertiary-background-color-translucent: hsl(var(--sui-background-color-4-hsl) / 80%);--sui-disabled-background-color: hsl(var(--sui-background-color-4-hsl));--sui-error-background-color: hsl(
|
|||
|
|
var(--sui-error-color-hue) var(--sui-alert-background-color-saturation)
|
|||
|
|
var(--sui-alert-background-color-lightness)
|
|||
|
|
);--sui-warning-background-color: hsl(
|
|||
|
|
var(--sui-warning-color-hue) var(--sui-alert-background-color-saturation)
|
|||
|
|
var(--sui-alert-background-color-lightness)
|
|||
|
|
);--sui-info-background-color: hsl(
|
|||
|
|
var(--sui-info-color-hue) var(--sui-alert-background-color-saturation)
|
|||
|
|
var(--sui-alert-background-color-lightness)
|
|||
|
|
);--sui-success-background-color: hsl(
|
|||
|
|
var(--sui-success-color-hue) var(--sui-alert-background-color-saturation)
|
|||
|
|
var(--sui-alert-background-color-lightness)
|
|||
|
|
);--sui-focus-ring-width: 2px;--sui-focus-ring-color: var(--sui-primary-accent-color-translucent);--sui-primary-border-color: hsl(var(--sui-border-color-2-hsl));--sui-secondary-border-color: hsl(var(--sui-border-color-3-hsl));--sui-error-border-color: hsl(
|
|||
|
|
var(--sui-error-color-hue) var(--sui-alert-border-color-saturation)
|
|||
|
|
var(--sui-alert-border-color-lightness)
|
|||
|
|
);--sui-warning-border-color: hsl(
|
|||
|
|
var(--sui-warning-color-hue) var(--sui-alert-border-color-saturation)
|
|||
|
|
var(--sui-alert-border-color-lightness)
|
|||
|
|
);--sui-info-border-color: hsl(
|
|||
|
|
var(--sui-info-color-hue) var(--sui-alert-border-color-saturation)
|
|||
|
|
var(--sui-alert-border-color-lightness)
|
|||
|
|
);--sui-success-border-color: hsl(
|
|||
|
|
var(--sui-success-color-hue) var(--sui-alert-border-color-saturation)
|
|||
|
|
var(--sui-alert-border-color-lightness)
|
|||
|
|
);--sui-popup-shadow-color: hsl(var(--sui-shadow-color) / 40%);--sui-popup-backdrop-color: hsl(var(--sui-shadow-color) / 40%);--sui-font-family-default: "Merriweather Sans", sans-serif;--sui-font-size-xxx-large: 24px;--sui-font-size-xx-large: 20px;--sui-font-size-x-large: 18px;--sui-font-size-large: 16px;--sui-font-size-default: 14px;--sui-font-size-small: 12px;--sui-font-size-x-small: 10px;--sui-font-weight-normal: 300;--sui-font-weight-bold: 600;--sui-font-family-monospace: "Noto Sans Mono", monospace;--sui-font-size-monospace: 0.95em;--sui-line-height-default: 1.25;--sui-line-height-compact: 1.5;--sui-line-height-comfortable: 1.75;--sui-word-spacing-normal: 1px;--sui-heading-margin: 0;--sui-heading-font-family: var(--sui-font-family-default);--sui-heading-font-weight: var(--sui-font-weight-bold);--sui-heading-line-height: var(--sui-line-height-default);--sui-paragraph-margin: 1.75em;--sui-control-small-border-width: 1px;--sui-control-small-border-radius: calc(var(--sui-control-small-height) / 8);--sui-control-small-padding: 0 calc((var(--sui-control-small-height) / 5));--sui-control-small-height: 24px;--sui-control-medium-border-width: 1px;--sui-control-medium-border-radius: calc(var(--sui-control-medium-height) / 8);--sui-control-medium-padding: 0 calc((var(--sui-control-medium-height) / 4));--sui-control-medium-height: 32px;--sui-control-large-border-width: 1px;--sui-control-large-border-radius: calc(var(--sui-control-large-height) / 8);--sui-control-large-padding: 0 calc((var(--sui-control-large-height) / 3));--sui-control-large-height: 40px;--sui-control-border-color: hsl(var(--sui-border-color-2-hsl));--sui-control-foreground-color: var(--sui-primary-foreground-color);--sui-control-background-color: hsl(var(--sui-background-color-4-hsl));--sui-control-font-family: var(--sui-font-family-default);--sui-control-font-size: var(--sui-font-size-default);--sui-control-line-height: var(--sui-line-height-compact);--sui-button-small-border-radius: var(--sui-control-small-border-radius);--sui-button-small-padding: var(--sui-control-small-padding);--sui-button-small-height: var(--sui-control-small-height);--sui-button-medium-border-radius: var(--sui-control-medium-border-radius);--sui-button-medium-padding: var(--sui-control-medium-padding);--sui-button-medium-height: var(--sui-control-medium-height);--sui-button-large-border-radius: var(--sui-control-large-border-radius);--sui-button-large-padding: var(--sui-control-large-padding);--sui-button-large-height: var(--sui-control-large-height);--sui-button-border-color: var(--sui-control-border-color);--sui-button-background-color: var(--sui-control-background-color);--sui-checkbox-border-radius: var(--sui-control-medium-border-radius);--sui-checkbox-height: 20px;--sui-checkbox-border-color: hsl(var(--sui-border-color-1-hsl));--sui-checkbox-background-color: var(--sui-control-background-color);--sui-option-border-radius: var(--sui-control-medium-border-radius);--sui-option-padding: calc((var(--sui-control-medium-height) / 6))
|
|||
|
|
calc((var(--sui-control-medium-height) / 5));--sui-option-height: var(--sui-control-medium-height);--sui-listbox-border-radius: var(--sui-control-medium-border-radius);--sui-listbox-border-color: var(--sui-control-border-color);--sui-listbox-foreground-color: var(--sui-control-foreground-color);--sui-listbox-background-color: hsl(var(--sui-background-color-1-hsl));--sui-textbox-border-radius: var(--sui-control-medium-border-radius);--sui-textbox-height: var(--sui-control-medium-height);--sui-textbox-border-color: var(--sui-control-border-color);--sui-textbox-foreground-color: var(--sui-control-foreground-color);--sui-textbox-background-color: hsl(var(--sui-background-color-1-hsl));--sui-textbox-font-family: var(--sui-font-family-default);--sui-textbox-font-size: var(--sui-font-size-default);--sui-textbox-singleline-padding: 0 8px;--sui-textbox-singleline-min-width: 240px;--sui-textbox-singleline-line-height: var(--sui-line-height-compact);--sui-textbox-multiline-padding: 16px;--sui-textbox-multiline-min-width: 480px;--sui-textbox-multiline-line-height: var(--sui-line-height-comfortable);--sui-tab-height: var(--sui-control-medium-height);--sui-tab-small-height: var(--sui-control-small-height);--sui-tab-medium-height: var(--sui-control-medium-height);--sui-tab-large-height: var(--sui-control-large-height);--sui-primary-toolbar-size: 56px;--sui-secondary-toolbar-size: 48px;--sui-bottom-navigation-height: var(--sui-primary-toolbar-size);--sui-primary-row-height: 56px;--sui-secondary-row-height: 40px;}
|
|||
|
|
@media (pointer: coarse) {:root,
|
|||
|
|
:host {--sui-control-small-height: 32px;--sui-control-medium-height: 40px;--sui-control-large-height: 48px;--sui-checkbox-height: 24px;--sui-secondary-row-height: 48px;}
|
|||
|
|
}
|
|||
|
|
@media (prefers-reduced-transparency) {:root,
|
|||
|
|
:host {--sui-primary-background-color-translucent: hsl(var(--sui-background-color-2-hsl));--sui-secondary-background-color-translucent: hsl(var(--sui-background-color-3-hsl));--sui-tertiary-background-color-translucent: hsl(var(--sui-background-color-4-hsl));}
|
|||
|
|
}:root[data-theme=light],
|
|||
|
|
:host[data-theme=light] {color-scheme:light;--sui-foreground-color-1-hsl: var(--sui-base-hue) 5% 5%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 5% 25%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 5% 35%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 5% 45%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 5% 65%;--sui-background-color-1-hsl: var(--sui-base-hue) 5% 100%;--sui-background-color-2-hsl: var(--sui-base-hue) 5% 98%;--sui-background-color-3-hsl: var(--sui-base-hue) 5% 95%;--sui-background-color-4-hsl: var(--sui-base-hue) 5% 92%;--sui-background-color-5-hsl: var(--sui-base-hue) 5% 84%;--sui-border-color-1-hsl: var(--sui-base-hue) 5% 60%;--sui-border-color-2-hsl: var(--sui-base-hue) 5% 86%;--sui-border-color-3-hsl: var(--sui-base-hue) 5% 90%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 80% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 80% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 25%;--sui-alert-background-color-saturation: 65%;--sui-alert-background-color-lightness: 90%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 68%;}:root[data-theme=dark],
|
|||
|
|
:host[data-theme=dark] {color-scheme:dark;--sui-foreground-color-1-hsl: var(--sui-base-hue) 10% 95%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 10% 75%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 10% 65%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 10% 55%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 10% 35%;--sui-background-color-1-hsl: var(--sui-base-hue) 10% 8%;--sui-background-color-2-hsl: var(--sui-base-hue) 10% 10%;--sui-background-color-3-hsl: var(--sui-base-hue) 10% 13%;--sui-background-color-4-hsl: var(--sui-base-hue) 10% 16%;--sui-background-color-5-hsl: var(--sui-base-hue) 10% 26%;--sui-border-color-1-hsl: var(--sui-base-hue) 10% 40%;--sui-border-color-2-hsl: var(--sui-base-hue) 10% 24%;--sui-border-color-3-hsl: var(--sui-base-hue) 10% 20%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 100% 60%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 100% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 100% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 100% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 75%;--sui-alert-background-color-saturation: 40%;--sui-alert-background-color-lightness: 10%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 38%;}
|
|||
|
|
@media (prefers-color-scheme: light) {:root:not([data-theme]),
|
|||
|
|
:host:not([data-theme]) {color-scheme:light;--sui-foreground-color-1-hsl: var(--sui-base-hue) 5% 5%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 5% 25%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 5% 35%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 5% 45%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 5% 65%;--sui-background-color-1-hsl: var(--sui-base-hue) 5% 100%;--sui-background-color-2-hsl: var(--sui-base-hue) 5% 98%;--sui-background-color-3-hsl: var(--sui-base-hue) 5% 95%;--sui-background-color-4-hsl: var(--sui-base-hue) 5% 92%;--sui-background-color-5-hsl: var(--sui-base-hue) 5% 84%;--sui-border-color-1-hsl: var(--sui-base-hue) 5% 60%;--sui-border-color-2-hsl: var(--sui-base-hue) 5% 86%;--sui-border-color-3-hsl: var(--sui-base-hue) 5% 90%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 80% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 80% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 25%;--sui-alert-background-color-saturation: 65%;--sui-alert-background-color-lightness: 90%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 68%;}
|
|||
|
|
}
|
|||
|
|
@media (prefers-color-scheme: dark) {:root:not([data-theme]),
|
|||
|
|
:host:not([data-theme]) {color-scheme:dark;--sui-foreground-color-1-hsl: var(--sui-base-hue) 10% 95%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 10% 75%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 10% 65%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 10% 55%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 10% 35%;--sui-background-color-1-hsl: var(--sui-base-hue) 10% 8%;--sui-background-color-2-hsl: var(--sui-base-hue) 10% 10%;--sui-background-color-3-hsl: var(--sui-base-hue) 10% 13%;--sui-background-color-4-hsl: var(--sui-base-hue) 10% 16%;--sui-background-color-5-hsl: var(--sui-base-hue) 10% 26%;--sui-border-color-1-hsl: var(--sui-base-hue) 10% 40%;--sui-border-color-2-hsl: var(--sui-base-hue) 10% 24%;--sui-border-color-3-hsl: var(--sui-base-hue) 10% 20%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 100% 60%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 100% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 100% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 100% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 75%;--sui-alert-background-color-saturation: 40%;--sui-alert-background-color-lightness: 10%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 38%;}
|
|||
|
|
}.material-symbols-outlined {font-variation-settings:"FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;}*,
|
|||
|
|
::before,
|
|||
|
|
::after {overflow-anchor:none;scroll-behavior:smooth;box-sizing:border-box;outline-offset:0px;outline-width:var(--sui-focus-ring-width) !important;outline-style:solid;outline-color:transparent;border-width:0;border-style:solid;vertical-align:top;}
|
|||
|
|
@media (prefers-reduced-motion) {*,
|
|||
|
|
::before,
|
|||
|
|
::after {scroll-behavior:auto;transition-duration:1ms !important;}
|
|||
|
|
}::selection {background-color:var(--sui-primary-accent-color-translucent-light);}* {-webkit-tap-highlight-color:transparent;}:focus {z-index:1;outline-width:0;}:focus-visible {outline-color:var(--sui-focus-ring-color);z-index:2;}h1 {margin:var(--sui-h1-margin, var(--sui-heading-margin));font-size:var(--sui-h1-font-size, 32px);font-family:var(--sui-h1-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h1-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h1-line-height, var(--sui-heading-line-height));}h2 {margin:var(--sui-h2-margin, var(--sui-heading-margin));font-size:var(--sui-h2-font-size, 28px);font-family:var(--sui-h2-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h2-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h2-line-height, var(--sui-heading-line-height));}h3 {margin:var(--sui-h3-margin, var(--sui-heading-margin));font-size:var(--sui-h3-font-size, 24px);font-family:var(--sui-h3-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h3-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h3-line-height, var(--sui-heading-line-height));}h4 {margin:var(--sui-h4-margin, var(--sui-heading-margin));font-size:var(--sui-h4-font-size, 20px);font-family:var(--sui-h4-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h4-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h4-line-height, var(--sui-heading-line-height));}h5 {margin:var(--sui-h5-margin, var(--sui-heading-margin));font-size:var(--sui-h5-font-size, 16px);font-family:var(--sui-h5-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h5-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h5-line-height, var(--sui-heading-line-height));}h6 {margin:var(--sui-h6-margin, var(--sui-heading-margin));font-size:var(--sui-h6-font-size, 12px);font-family:var(--sui-h6-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h6-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h6-line-height, var(--sui-heading-line-height));}strong {font-weight:var(--sui-font-weight-bold, bold);}a {color:var(--sui-primary-accent-color-text);text-decoration:none;text-underline-offset:2px;}a:is(:hover, :focus, :active) {text-decoration:underline;}:is(:root, :host)[data-underline-links=true].svelte-sl7gn1 a {text-decoration:underline;}:is(p, ul, ol, dl) {margin:var(--sui-paragraph-margin) 0;line-height:var(--sui-line-height-comfortable);}:is(ul, ol) {padding-inline:2em;}:is(code, pre) {border-radius:4px;background-color:var(--sui-code-background-color);font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);vertical-align:-0.05em;}pre {padding:8px;line-height:var(--sui-line-height-compact);-webkit-user-select:text;user-select:text;}code {padding:2px 4px;}table {border-collapse:collapse;}:is(th, td) {border:1px solid var(--sui-textbox-border-color);padding:8px;}blockquote {margin-inline:16px 0;border-inline-start:4px solid var(--sui-textbox-border-color);padding-inline-start:12px;}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;filter:grayscale(1) opacity(0.35);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) * {filter:grayscale(0) opacity(1);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]) * {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;}.font-loader.svelte-sl7gn1 {position:absolute;inset-inline-start:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-sl7gn1 {position:fixed;inset:0;overflow:hidden;width:100%;height:100%;color:var(--sui-primary-foreground-color);background-color:var(--sui-primary-background-color);font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);word-spacing:var(--sui-word-spacing-normal);-webkit-user-select:none;user-select:none;touch-action:non
|
|||
|
|
|
|||
|
|
@media (width < 768px) {height:120px;
|
|||
|
|
}}h1:where(.svelte-7ua6x9) {font-size:48px;}.logo:where(.svelte-7ua6x9) ~ h1:where(.svelte-7ua6x9) {font-size:var(--sui-font-size-xxx-large);}.error:where(.svelte-7ua6x9) {border-radius:var(--sui-control-medium-border-radius);padding:12px;background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-default);text-align:center;-webkit-user-select:text;user-select:text;cursor:text;}
|
|||
|
|
/* \`<SignIn>\` also has \`.message\` */.message {margin:0 0 16px;font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-normal);text-align:center;ul {margin:12px 0 0;padding:0;max-height:160px;overflow-y:auto;list-style:none;}li {margin:12px;padding:0;}}}.powered-by.svelte-7ua6x9 {position:absolute;inset:auto 24px 24px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);text-align:center;}`}}));function Kfe(e,t){k(t,!0);let n=()=>j(nA,`$backend`,i),r=()=>j(bF,`$cmsConfig`,i),[i,a]=hn(),o=0,s=N(!1),c=N(`none`),l=async()=>{n()?.checkStatus&&P(c,await n().checkStatus(),!0)},u=()=>{l(),o=window.setInterval(()=>{l()},3e5)},d=()=>{window.clearInterval(o),P(c,`none`)},f=()=>{z(s)&&(n()?.checkStatus&&!n().repository?.isSelfHosted?u():d())};lc(()=>(P(s,!0),()=>{d()})),ri(()=>{z(s),n(),r(),f()});var p=V(),m=I(p),h=e=>{var t=W4(),r=I(t);{let e=M(()=>z(c)===`major`?`error`:`warning`);po(r,()=>({"--sui-infobar-message-justify-content":`center`})),CI(r.lastChild,{get status(){return z(e)},children:(e,t)=>{gt();var r=U4(),i=I(r),a=L(i);{let e=M(()=>Y(`details`));bI(a,{variant:`link`,get label(){return z(e)},onclick:()=>{V2(n()?.statusDashboardURL)}})}R(e=>U(i,`${e??``} `),[()=>Y(`backend_status.${z(c)}_incident`,{values:{service:n()?.label}})]),H(e,r)},$$slots:{default:!0}}),O(r)}H(e,t)},g=M(()=>[`minor`,`major`].includes(z(c)));W(m,e=>{z(g)&&e(h)}),H(e,p),A(),a()}var U4,W4,qfe=s((()=>{Z(),J(),X(),$(),dc(),iA(),TF(),H2(),U4=B(` <!>`,1),W4=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)}));function Jfe(e,t){k(t,!0);let n=0,r=0,i=N(!1),a=async()=>{try{let e=await fetch(`https://unpkg.com/@sveltia/cms/package.json`);if(!e.ok)return;let{version:t}=await e.json();if(!t||t===Xj)return;document.querySelector(`script[src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js"]`)?r=window.setTimeout(()=>{P(i,!0)},6e5):console.warn(`[Sveltia CMS] A new version (${t}) is available. Update the pinned version in your script tag or package.json to upgrade.`)}catch{}};lc(()=>(a(),n=window.setInterval(()=>{a()},36e5),()=>{window.clearInterval(n),window.clearTimeout(r)}));var o=V(),s=I(o),c=e=>{var t=K4(),n=I(t);po(n,()=>({"--sui-infobar-message-justify-content":`center`})),CI(n.lastChild,{children:(e,t)=>{gt();var n=G4(),r=I(n),i=L(r);{let e=M(()=>Y(`update_now`));bI(i,{variant:`link`,get label(){return z(e)},onclick:()=>{window.location.reload()}})}R(e=>U(r,`${e??``} `),[()=>Y(`update_available`)]),H(e,n)},$$slots:{default:!0}}),O(n),H(e,t)};W(s,e=>{z(i)&&e(c)}),H(e,o),A()}var G4,K4,Yfe=s((()=>{Z(),J(),X(),$(),dc(),Zj(),G4=B(` <!>`,1),K4=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})),q4,Xfe=s((()=>{nM(),VM(),sP(),q4=async(e,t)=>{let n=t===`image`?await PM(e):null;if(!n)return{createdDate:void 0,coordinates:void 0};let{parse:r}=await tM(`exifr`,`dist/lite.esm.mjs`),{latitude:i,longitude:a,DateTimeOriginal:o,CreateDate:s=o}=await r(n).catch(()=>{})??{};return{createdDate:s instanceof Date?s:void 0,coordinates:Number.isFinite(i)&&Number.isFinite(a)?{latitude:oP(i,7),longitude:oP(a,7)}:void 0}}})),J4,Y4,X4,Z4,Zfe=s((()=>{Xfe(),J4=e=>{let t=new Image;return new Promise(n=>{t.addEventListener(`load`,()=>{n({dimensions:{width:t.naturalWidth,height:t.naturalHeight}})},{once:!0}),t.src=e})},Y4=async(e,t)=>{let n=document.createElement(t);return new Promise(r=>{n.addEventListener(`loadedmetadata`,()=>{let{duration:e}=n;t===`audio`&&r({duration:e});let{videoWidth:i,videoHeight:a}=n;r({dimensions:{width:i,height:a},duration:e})},{once:!0}),n.src=e})},X4=async(e,t)=>t===`image`?J4(e):Y4(e,t),Z4=async(e,t,n)=>{let{dimensions:r,duration:i}=await X4(t,n),{createdDate:a,coordinates:o}=await q4(e,n);return{dimensions:r,duration:i,createdDate:a,coordinates:o}}})),Q4,$4,e3,t3=s((()=>{Zp(),VM(),iA(),cN(),Zfe(),Q4={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},$4=async e=>{let{kind:t,path:n}=e,{blobBaseURL:r}=dn(nA)?.repository??{},i=await FM(e),a={};return[`image`,`video`,`audio`].includes(t)&&i&&(a=await Z4(e,i,t)),{...
|
|||
|
|
`))},f=async()=>{await navigator.clipboard.writeText(r().map(({path:e})=>`/${e}`).join(`
|
|||
|
|
`))},p=async()=>{let e=l,{type:t}=e;if(Bp(t)){await navigator.clipboard.writeText(await e.text());return}if(!lM.includes(t))throw Error(`Unsupported type`);t!==`image/png`&&(e=await CM(e)),await navigator.clipboard.write([new ClipboardItem({"image/png":e})])},m=async(e,t)=>{try{await e(),s.status=`success`,s.text=Y(t,{values:{count:r().length}})}catch{s.status=`error`,s.text=Y(`clipboard_error`)}finally{s.show=!0}};ri(()=>{(async()=>{P(a,await Promise.all(r().map($4)),!0),P(o,await u(),!0)})()});var h=i3(),g=I(h),_=e=>{{let t=e=>{{let t=M(()=>Y(`copy_options`));YL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{n(e)},$$slots:{default:!0}})}},i=M(()=>!r().length),a=M(()=>Y(`copy`));AI(e,{variant:`ghost`,get disabled(){return z(i)},get label(){return z(a)},popupPosition:`bottom-right`,popup:t,$$slots:{popup:!0}})}},v=e=>{{let t=e=>{n(e)},i=M(()=>!r().length),a=M(()=>Y(`copy`));eR(e,{get disabled(){return z(i)},get label(){return z(a)},popupPosition:`left-top`,items:t,$$slots:{items:!0}})}};W(g,e=>{i()?e(_):e(v,-1)}),jz(L(g,2),{get show(){return s.show},set show(e){s.show=e},children:(e,t)=>{rI(e,{get status(){return s.status},children:(e,t)=>{gt();var n=Ra();R(()=>U(n,s.text)),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,h),A()}var r3,i3,a3=s((()=>{Z(),J(),X(),$(),Yp(),t3(),VM(),dM(),TM(),r3=B(`<!> <!> <!>`,1),i3=B(`<!> <!>`,1)})),o3,s3,c3=s((()=>{Zp(),o3={saved:!1,moved:!1,renamed:!1,deleted:!1,published:!1,count:1},s3=ln({...o3})})),l3,u3=s((()=>{Zp(),c3(),l3=ln({...o3})})),d3,f3,p3,m3,h3=s((()=>{sT(),Zp(),JF(),iA(),yC(),gD(),OO(),HE(),d3=()=>{let e=hD.account;if(!e)return;let{name:t,email:n,id:r,login:i}=e;if(!(!t||!n))return{name:t,email:n,id:r,login:i}},f3=async({changes:e,commit:t})=>{let{databaseName:n}=dn(nA)?.repository??{};if(!n)return;let r=new iT(n,`file-cache`),{files:i,author:a,date:o}=t,s={commitAuthor:a,commitDate:o};await Promise.all(e.map(async e=>{let{action:t,slug:n,path:a,previousPath:o,data:c}=e;if(typeof c!=`string`||!n)return;if(t===`delete`){await r.delete(a);return}t===`move`&&await r.delete(o);let l={sha:i[a]?.sha,size:BE(c).size,text:c,meta:s};await r.set(a,l)}))},p3=({changes:e,savedEntries:t,savedAssets:n})=>{let r=new Set(t.map(e=>e.id));mC.update(e=>[...e.filter(e=>!r.has(e.id)),...t]);let i=new Set(n.map(e=>e.path));e.forEach(e=>{e.action===`move`&&e.previousPath?i.add(e.previousPath):e.action===`delete`&&i.add(e.path)}),MF.update(e=>[...e.filter(e=>!i.has(e.path)),...n])},m3=async({changes:e,savingEntries:t=[],savingAssets:n=[],options:r})=>{let{commitChanges:i}=dn(nA),a={...await i(e,r),author:d3()};DO.devModeEnabled&&(console.debug(`Commit changes:`,e),console.debug(`Commit results:`,a));let{files:o,author:s,date:c}=a,l=t.map(e=>({...e,commitAuthor:s,commitDate:c})),u=n.map(e=>{let{sha:t,file:n}=o[e.path]??{},r=n?URL.createObjectURL(n):void 0;return{...e,sha:t,blobURL:r,commitAuthor:s,commitDate:c}});return await f3({changes:e,commit:a}),p3({changes:e,savedEntries:l,savedAssets:u}),{commit:a,savedEntries:l,savedAssets:u}}})),g3,_3,Qfe=s((()=>{JF(),u3(),h3(),c3(),g3=({assets:e})=>{LF.update(t=>e.some(({path:e})=>t?.path===e)?void 0:t),l3.set({...o3,deleted:!0,count:e.length})},_3=async e=>{await m3({changes:e.map(({path:e,sha:t})=>({action:`delete`,path:e,previousSha:t})),options:{commitType:`deleteMedia`}}),g3({assets:e})}}));function v3(e,t){k(t,!0);let n=q(t,`assets`,19,()=>[]),r=q(t,`buttonDescription`,3,``),i=q(t,`dialogDescription`,3,``),a=q(t,`onDelete`,3,void 0),o=q(t,`useButton`,3,!0),s=N(!1),c=M(()=>o()?bI:eR);var l=y3(),u=I(l);{let e=M(()=>!n().length),t=M(()=>Y(`delete`));Mo(u,()=>z(c),(n,i)=>{i(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},get"aria-label"(){return r()},onclick:()=>{P(s,!0)}})})}var d=L(u,2);{let e=M(()=>Y(`delete_assets`,{values:{count:n().length}})),t=M(()=>Y(`delete`));iL(d,{get title(){return z(e)},get okLabel(){return z(t)},onOk:()=>{_3(n()),a()?.()},get open(){return z(s)},set open(e){P(s,e,!0)},children:(e,t)=>{gt();var n=Ra();R(()=>U(n,i())),H(e,n)},$$slots:{default:!0}})}H(e,l),A()}var y3,b3=s((()=>{Z(),J(),
|
|||
|
|
/* Prevent the image from being dragged */pointer-events:none;}}.blur:where(.svelte-1yaifwd) {display:contents;& > :where(.svelte-1yaifwd) {position:absolute;inset:0;pointer-events:none;}.overlay:where(.svelte-1yaifwd) {display:flex;justify-content:center;align-items:center;z-index:-1;backdrop-filter:blur(32px) brightness(0.8);}img:where(.svelte-1yaifwd) {width:100%;height:100%;z-index:-2;object-fit:cover;transform:scale(1.2);&.loaded {opacity:1;}}}&.cover {padding:0;& > :is(img, video) {flex:auto;}}& > :is(img, video) {flex:0;max-width:100%;max-height:100%;}&.dissolve {:is(img, video) {opacity:0;transition:opacity 250ms;}&.loaded {:is(img, video) {opacity:1;}}}}
|
|||
|
|
|
|||
|
|
/* prettier-ignore */.checkerboard.svelte-1yaifwd img:where(.svelte-1yaifwd) {
|
|||
|
|
/* hardcoded, the same color as the checkerboard in Photoshop */background-image:linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%),
|
|||
|
|
linear-gradient(45deg, #ccc 25%, #fff 25%, #fff 75%, #ccc 75%);background-size:8px 8px;background-position:0 0, 4px 4px;}.svelte-1yaifwd:not(.checkerboard) img:where(.svelte-1yaifwd) {
|
|||
|
|
/* hardcoded, the same color as the transparent image preview in Chrome and Firefox */background-color:#e5e5e5;}:is(img, video) {object-fit:contain;&:not([src]) {visibility:hidden;}}.cover.svelte-1yaifwd :is(img, video) {object-fit:cover;aspect-ratio:1 / 1;}`}}));function B3(e,t){k(t,!0),G(e,U3);let n=q(t,`class`,3,``),r=q(t,`mapElement`,15),i=q(t,`onReady`,3,void 0),a=ec(t,V3),o,s=async()=>{if(!r())return;let e=await tM(`leaflet`,`dist/leaflet-src.esm.js`),n=`${eM(`leaflet`)}/dist/images/marker-icon-2x.png`,a=e.map(r(),{center:[0,0],zoom:2});if(e.tileLayer(`https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png`,{attribution:`© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors`,referrerPolicy:`strict-origin`}).addTo(a),t.coordinates){let{latitude:r,longitude:i}=t.coordinates,o=e.icon({iconUrl:n,iconSize:[25,41]});e.marker([r,i],{icon:o}).addTo(a),a.setView([r,i],12)}r().querySelectorAll(`a[href^="https:"]`).forEach(e=>{e.setAttribute(`target`,`_blank`),e.setAttribute(`rel`,`noopener noreferrer`)}),o=new ResizeObserver(()=>{a?.invalidateSize()}),o.observe(r()),i()?.({leaflet:e,map:a})};lc(()=>(s(),()=>{o?.disconnect()}));var c=H3();Cs(c,e=>({role:`application`,class:`map ${n()??``}`,"aria-label":e,...a}),[()=>t.coordinates?Y(`map_lat_lng`,{values:t.coordinates}):void 0],void 0,void 0,`svelte-1c5gj1k`),qs(c,e=>r(e),()=>r()),H(e,c),A()}var V3,H3,U3,W3=s((()=>{Z(),J(),X(),dc(),nM(),V3=new Set([`$$slots`,`$$events`,`$$legacy`,`coordinates`,`class`,`mapElement`,`onReady`]),H3=B(`<div></div>`),U3={hash:`svelte-1c5gj1k`,code:`
|
|||
|
|
/* Leaflet default styles copied from \`node_modules/leaflet/dist/leaflet.css\`. Somehow we can’t */
|
|||
|
|
/* import it directly here; Vite emits it as a separate CSS file, which we want to avoid. */
|
|||
|
|
/* @todo Remove unused rules. */.leaflet-pane,
|
|||
|
|
.leaflet-tile,
|
|||
|
|
.leaflet-marker-icon,
|
|||
|
|
.leaflet-marker-shadow,
|
|||
|
|
.leaflet-tile-container,
|
|||
|
|
.leaflet-pane > svg,
|
|||
|
|
.leaflet-pane > canvas,
|
|||
|
|
.leaflet-zoom-box,
|
|||
|
|
.leaflet-image-layer,
|
|||
|
|
.leaflet-layer {position:absolute;left:0;top:0;}.leaflet-container {overflow:hidden;-webkit-tap-highlight-color:transparent;background:#ddd;outline-offset:1px;font-family:'Helvetica Neue', Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5;}.leaflet-tile,
|
|||
|
|
.leaflet-marker-icon,
|
|||
|
|
.leaflet-marker-shadow {-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none;}.leaflet-tile::selection {background:transparent;}.leaflet-safari .leaflet-tile {image-rendering:-webkit-optimize-contrast;}.leaflet-safari .leaflet-tile-container {width:1600px;height:1600px;-webkit-transform-origin:0 0;transform-origin:0 0;}.leaflet-marker-icon,
|
|||
|
|
.leaflet-marker-shadow {display:block;}.leaflet-container .leaflet-overlay-pane svg {max-width:none !important;max-height:none !important;}.leaflet-container .leaflet-marker-pane img,
|
|||
|
|
.leaflet-container .leaflet-shadow-pane img,
|
|||
|
|
.leaflet-container .leaflet-tile-pane img,
|
|||
|
|
.leaflet-container img.leaflet-image-layer,
|
|||
|
|
.leaflet-container .leaflet-tile {max-width:none !important;max-height:none !important;width:auto;padding:0;}.leaflet-container img.leaflet-tile {mix-blend-mode:plus-lighter;}.leaflet-container.leaflet-touch-zoom {-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y;}.leaflet-container.leaflet-touch-drag {-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom;}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {-ms-touch-action:none;touch-action:none;}.leaflet-container a {-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4);color:#0078a8;}.leaflet-tile {filter:inherit;visibility:hidden;}.leaflet-tile-loaded {visibility:inherit;}.leaflet-zoom-box {width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800;border:2px dotted #38f;background:rgba(255, 255, 255, 0.5);}.leaflet-overlay-pane svg {-moz-user-select:none;user-select:none;}.leaflet-pane {z-index:400;}.leaflet-tile-pane {z-index:200;}.leaflet-overlay-pane {z-index:400;}.leaflet-shadow-pane {z-index:500;}.leaflet-marker-pane {z-index:600;}.leaflet-tooltip-pane {z-index:650;}.leaflet-popup-pane {z-index:700;}.leaflet-map-pane canvas {z-index:100;}.leaflet-map-pane svg {z-index:200;}.leaflet-vml-shape {width:1px;height:1px;}.lvml {behavior:url(#default#VML);display:inline-block;position:absolute;}.leaflet-control {position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto;float:left;clear:both;}.leaflet-top,
|
|||
|
|
.leaflet-bottom {position:absolute;z-index:1000;pointer-events:none;}.leaflet-top {top:0;}.leaflet-right {right:0;}.leaflet-bottom {bottom:0;}.leaflet-left {left:0;}.leaflet-right .leaflet-control {float:right;margin-right:10px;}.leaflet-top .leaflet-control {margin-top:10px;}.leaflet-bottom .leaflet-control {margin-bottom:10px;}.leaflet-left .leaflet-control {margin-left:10px;}.leaflet-fade-anim .leaflet-popup {opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear;}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {opacity:1;}.leaflet-zoom-animated {-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;}svg.leaflet-zoom-animated {will-change:transform;}.leaflet-zoom-anim .leaflet-zoom-animated {-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);}.leaflet-zoom-anim .leaflet-tile,
|
|||
|
|
.leaflet-pan-anim .leaflet-tile {-webkit-transition:none;-moz-transition:none;transition:none;}.leaflet-zoom-anim .leaflet-zoom-hide {visibility:hidden;}.leaflet-interactive {cursor:pointer;}.leaflet-grab {
|
|||
|
|
/* stylelint-disable-next-line declaration-property-value-no-unknown */cursor:-webkit-grab;
|
|||
|
|
/* stylelint-disable-next-line declaration-property-value-no-unknown */cursor:-moz-grab;cursor:grab;}.leaflet-crosshair,
|
|||
|
|
.leaflet-crosshair .leaflet-interactive {cursor:crosshair;}.leaflet-popup-pane,
|
|||
|
|
.leaflet-control {cursor:auto;}.leaflet-dragging .leaflet-grab,
|
|||
|
|
.leaflet-dragging .leaflet-grab .leaflet-interactive,
|
|||
|
|
.leaflet-dragging .leaflet-marker-draggable {cursor:move;
|
|||
|
|
/* stylelint-disable-next-line declaration-property-value-no-unknown */cursor:-webkit-grabbing;
|
|||
|
|
/* stylelint-disable-next-line declaration-property-value-no-unknown */cursor:-moz-grabbing;cursor:grabbing;}.leaflet-marker-icon,
|
|||
|
|
.leaflet-marker-shadow,
|
|||
|
|
.leaflet-image-layer,
|
|||
|
|
.leaflet-pane > svg path,
|
|||
|
|
.leaflet-tile-container {pointer-events:none;}.leaflet-marker-icon.leaflet-interactive,
|
|||
|
|
.leaflet-image-layer.leaflet-interactive,
|
|||
|
|
.leaflet-pane > svg path.leaflet-interactive,
|
|||
|
|
svg.leaflet-image-layer.leaflet-interactive path {pointer-events:visiblePainted;pointer-events:auto;}.leaflet-bar {box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px;}.leaflet-bar a {background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black;}.leaflet-bar a,
|
|||
|
|
.leaflet-control-layers-toggle {background-position:50% 50%;background-repeat:no-repeat;display:block;}.leaflet-bar a:hover,
|
|||
|
|
.leaflet-bar a:focus {background-color:#f4f4f4;}.leaflet-bar a:first-child {border-top-left-radius:4px;border-top-right-radius:4px;}.leaflet-bar a:last-child {border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none;}.leaflet-bar a.leaflet-disabled {cursor:default;background-color:#f4f4f4;color:#bbb;}.leaflet-touch .leaflet-bar a {width:30px;height:30px;line-height:30px;}.leaflet-touch .leaflet-bar a:first-child {border-top-left-radius:2px;border-top-right-radius:2px;}.leaflet-touch .leaflet-bar a:last-child {border-bottom-left-radius:2px;border-bottom-right-radius:2px;}.leaflet-control-zoom-in,
|
|||
|
|
.leaflet-control-zoom-out {font:bold 18px 'Lucida Console',
|
|||
|
|
Monaco,
|
|||
|
|
monospace;text-indent:1px;}.leaflet-touch .leaflet-control-zoom-in,
|
|||
|
|
.leaflet-touch .leaflet-control-zoom-out {font-size:22px;}.leaflet-control-layers {box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px;}.leaflet-control-layers-toggle {background-image:url(images/layers.png);width:36px;height:36px;}.leaflet-retina .leaflet-control-layers-toggle {background-image:url(images/layers-2x.png);background-size:26px 26px;}.leaflet-touch .leaflet-control-layers-toggle {width:44px;height:44px;}.leaflet-control-layers .leaflet-control-layers-list,
|
|||
|
|
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {display:none;}.leaflet-control-layers-expanded .leaflet-control-layers-list {display:block;position:relative;}.leaflet-control-layers-expanded {padding:6px 10px 6px 6px;color:#333;background:#fff;}.leaflet-control-layers-scrollbar {overflow-y:scroll;overflow-x:hidden;padding-right:5px;}.leaflet-control-layers-selector {margin-top:2px;position:relative;top:1px;}.leaflet-control-layers label {display:block;font-size:13px;font-size:1.08333em;}.leaflet-control-layers-separator {height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px;}.leaflet-default-icon-path {background-image:url(images/marker-icon.png);}.leaflet-container .leaflet-control-attribution {background:#fff;background:rgba(255, 255, 255, 0.8);margin:0;}.leaflet-control-attribution,
|
|||
|
|
.leaflet-control-scale-line {padding:0 5px;color:#333;line-height:1.4;}.leaflet-control-attribution a {text-decoration:none;}.leaflet-control-attribution a:hover,
|
|||
|
|
.leaflet-control-attribution a:focus {text-decoration:underline;}.leaflet-attribution-flag {display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em;}.leaflet-left .leaflet-control-scale {margin-left:5px;}.leaflet-bottom .leaflet-control-scale {margin-bottom:5px;}.leaflet-control-scale-line {border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff;}.leaflet-control-scale-line:not(:first-child) {border-top:2px solid #777;border-bottom:none;margin-top:-2px;}.leaflet-control-scale-line:not(:first-child):not(:last-child) {border-bottom:2px solid #777;}.leaflet-touch .leaflet-control-attribution,
|
|||
|
|
.leaflet-touch .leaflet-control-layers,
|
|||
|
|
.leaflet-touch .leaflet-bar {box-shadow:none;}.leaflet-touch .leaflet-control-layers,
|
|||
|
|
.leaflet-touch .leaflet-bar {border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box;}.leaflet-popup {position:absolute;text-align:center;margin-bottom:20px;}.leaflet-popup-content-wrapper {padding:1px;text-align:left;border-radius:12px;}.leaflet-popup-content {margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px;}.leaflet-popup-content p {margin:17px 0;margin:1.3em 0;}.leaflet-popup-tip-container {width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none;}.leaflet-popup-tip {width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}.leaflet-popup-content-wrapper,
|
|||
|
|
.leaflet-popup-tip {background:white;color:#333;box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);}.leaflet-container a.leaflet-popup-close-button {position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,
|
|||
|
|
Verdana,
|
|||
|
|
sans-serif;color:#757575;text-decoration:none;background:transparent;}.leaflet-container a.leaflet-popup-close-button:hover,
|
|||
|
|
.leaflet-container a.leaflet-popup-close-button:focus {color:#585858;}.leaflet-popup-scrolled {overflow:auto;}.leaflet-oldie .leaflet-popup-content-wrapper {-ms-zoom:1;zoom:1;}.leaflet-oldie .leaflet-popup-tip {width:24px;margin:0 auto;}.leaflet-oldie .leaflet-control-zoom,
|
|||
|
|
.leaflet-oldie .leaflet-control-layers,
|
|||
|
|
.leaflet-oldie .leaflet-popup-content-wrapper,
|
|||
|
|
.leaflet-oldie .leaflet-popup-tip {border:1px solid #999;}.leaflet-div-icon {background:#fff;border:1px solid #666;}.leaflet-tooltip {position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);}.leaflet-tooltip.leaflet-interactive {cursor:pointer;pointer-events:auto;}.leaflet-tooltip-top:before,
|
|||
|
|
.leaflet-tooltip-bottom:before,
|
|||
|
|
.leaflet-tooltip-left:before,
|
|||
|
|
.leaflet-tooltip-right:before {position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:'';}.leaflet-tooltip-bottom {margin-top:6px;}.leaflet-tooltip-top {margin-top:-6px;}.leaflet-tooltip-bottom:before,
|
|||
|
|
.leaflet-tooltip-top:before {left:50%;margin-left:-6px;}.leaflet-tooltip-top:before {bottom:0;margin-bottom:-12px;border-top-color:#fff;}.leaflet-tooltip-bottom:before {top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff;}.leaflet-tooltip-left {margin-left:-6px;}.leaflet-tooltip-right {margin-left:6px;}.leaflet-tooltip-left:before,
|
|||
|
|
.leaflet-tooltip-right:before {top:50%;margin-top:-6px;}.leaflet-tooltip-left:before {right:0;margin-right:-12px;border-left-color:#fff;}.leaflet-tooltip-right:before {left:0;margin-left:-12px;border-right-color:#fff;}.map.svelte-1c5gj1k {margin:var(--sui-focus-ring-width);border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);overflow:hidden;aspect-ratio:1 / 1;background-clip:text;}.leaflet-container {font-family:inherit !important;font-size:var(--sui-font-size-small) !important;}.leaflet-container a {color:var(--sui-primary-accent-color-text) !important;text-decoration:none !important;}.leaflet-bar a {border-color:var(--sui-button-border-color) !important;color:var(--sui-secondary-foreground-color) !important;background-color:var(--sui-button-background-color) !important;}.leaflet-control {color:var(--sui-secondary-foreground-color) !important;background-color:var(--sui-secondary-background-color-translucent) !important;}.leaflet-control-attribution {padding:4px 8px;}
|
|||
|
|
|
|||
|
|
/* Dark theme: https://stackoverflow.com/q/59819792 */:root[data-theme='dark'] .leaflet-layer {filter:invert(100%) hue-rotate(180deg);}`}})),G3,tpe=s((()=>{G3=e=>new Date(e*1e3).toISOString().substr(11,8)}));function K3(e,t){k(t,!0),G(e,i6);let n=q(t,`showPreview`,3,!1),r=N(Nr({...Q4})),i=M(()=>t.asset.path),a=M(()=>t.asset.size),o=M(()=>t.asset.kind),s=M(()=>t.asset.commitAuthor),c=M(()=>t.asset.commitDate),l=M(()=>z(r).publicURL),u=M(()=>z(r).repoBlobURL),d=M(()=>z(r).dimensions),f=M(()=>z(r).duration),p=M(()=>z(r).createdDate),m=M(()=>z(r).coordinates),h=M(()=>z(r).usedEntries),g=M(()=>Vp(z(i))),_=M(()=>E(z(g).extension,``)),v=M(()=>TT(z(o))||z(i).endsWith(`.pdf`)),y=async()=>{P(r,t.asset?await $4(t.asset):{...Q4},!0),z(r).usedEntries=t.asset?await e3(t.asset):[]};ri(()=>{t.asset,y()});var b=r6(),x=F(b),S=e=>{var n=X3(),r=F(n);{let e=M(()=>z(o)===`image`),n=M(()=>[`audio`,`video`].includes(z(o)));j3(r,{get kind(){return z(o)},get asset(){return t.asset},variant:`tile`,get checkerboard(){return z(e)},get controls(){return z(n)}})}O(n),H(e,n)};W(x,e=>{n()&&z(v)&&e(S)});var C=L(x,2),w=F(C),T=F(w,!0);O(w);var ee=L(w,2),te=F(ee,!0);O(ee),O(C);var ne=L(C,2),re=e=>{var t=Z3(),n=F(t),r=F(n,!0);O(n);var i=L(n,2);lo(F(i),()=>Xh.current,e=>{var t=Ra();R(e=>U(t,e),[()=>FE(z(a))]),H(e,t)}),O(i),O(t),R(e=>U(r,e),[()=>Y(`size`)]),H(e,t)};W(ne,e=>{z(a)&&e(re)});var ie=L(ne,2),ae=e=>{var t=Q3(),n=F(t),r=F(n,!0);O(n);var i=L(n,2),a=F(i,!0);O(i),O(t),R(e=>{U(r,e),U(a,z(d)?`${z(d).width}×${z(d).height}`:`–`)},[()=>Y(`dimensions`)]),H(e,t)};W(ie,e=>{z(v)&&e(ae)});var oe=L(ie,2),se=e=>{var t=Q3(),n=F(t),r=F(n,!0);O(n);var i=L(n,2),a=F(i,!0);O(i),O(t),R((e,t)=>{U(r,e),U(a,t)},[()=>Y(`duration`),()=>z(f)?G3(z(f)):`–`]),H(e,t)},ce=M(()=>[`audio`,`video`].includes(z(o)));W(oe,e=>{z(ce)&&e(se)});var le=L(oe,2),ue=F(le),de=F(ue,!0);O(ue);var D=L(ue,2),fe=F(D),pe=e=>{var t=$3(),n=F(t,!0);O(t),R(()=>{K(t,`href`,z(l)),U(n,z(l))}),H(e,t)},me=e=>{H(e,Ra(`–`))};W(fe,e=>{z(l)?e(pe):e(me,-1)}),O(D),O(le);var he=L(le,2),ge=F(he),_e=F(ge,!0);O(ge);var ve=L(ge,2),ye=F(ve),be=e=>{var t=e6(),n=F(t);O(t),R(()=>{K(t,`href`,z(u)),U(n,`/${z(i)??``}`)}),H(e,t)},xe=e=>{var t=Ra();R(()=>U(t,`/${z(i)??``}`)),H(e,t)};W(ye,e=>{z(u)?e(be):e(xe,-1)}),O(ve),O(he);var Se=L(he,2),Ce=F(Se),we=F(Ce,!0);O(Ce);var Te=L(Ce,2),Ee=e=>{var t=t6(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`loading`)]),H(e,t)},De=e=>{var t=V();vo(I(t),17,()=>z(h),e=>e.id,(e,t)=>{var n=V();vo(I(n),17,()=>qM(z(t)),e=>e.name,(e,n)=>{var r=V();lo(I(r),()=>Xh.current,e=>{let r=M(()=>bw(z(n)));var i=V();vo(I(i),17,()=>wC(z(n),z(t)),e=>e.name,(e,t)=>{{let i=M(()=>({link:`/collections/${z(n).name}/entries/${z(t).name}`,collectionLabel:z(r),entryLabel:CC(z(t))}));q3(e,()=>z(i))}},e=>{{let i=M(()=>({link:`/collections/${z(n).name}/entries/${z(t).subPath}`,collectionLabel:z(r),entryLabel:LP(z(n),z(t),{useTemplate:!0})}));q3(e,()=>z(i))}}),H(e,i)}),H(e,r)}),H(e,n)},e=>{var t=t6(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`sort_keys.none`)]),H(e,t)}),H(e,t)};W(Te,e=>{z(h)?e(De,-1):e(Ee)}),O(Se);var Oe=L(Se,2),ke=e=>{var t=Q3(),n=F(t),r=F(n,!0);O(n);var i=L(n,2),a=F(i,!0);O(i),O(t),R(e=>{U(r,e),U(a,z(s).name||z(s).login||z(s).email)},[()=>Y(`sort_keys.commit_author`)]),H(e,t)};W(Oe,e=>{z(s)&&e(ke)});var Ae=L(Oe,2),je=e=>{var t=Q3(),n=F(t),r=F(n,!0);O(n);var i=L(n,2),a=F(i,!0);O(i),O(t),R((e,t)=>{U(r,e),U(a,t)},[()=>Y(`sort_keys.commit_date`),()=>jw(z(c),Xh.current)]),H(e,t)};W(Ae,e=>{z(c)&&e(je)});var Me=L(Ae,2),Ne=e=>{var t=Q3(),n=F(t),r=F(n,!0);O(n);var i=L(n,2),a=F(i,!0);O(i),O(t),R((e,t)=>{U(r,e),U(a,t)},[()=>Y(`created_date`),()=>jw(z(p),Xh.current)]),H(e,t)};W(Me,e=>{z(p)&&e(Ne)});var Pe=L(Me,2),Fe=e=>{var t=n6(),n=F(t),r=F(n,!0);O(n),B3(L(n,2),{get coordinates(){return z(m)}}),O(t),R(e=>U(r,e),[()=>Y(`location`)]),H(e,t)};W(Pe,e=>{z(m)&&e(Fe)}),O(b),R((e,t,n,r,i)=>{U(T,e),U(te,t),U(de,n),U(_e,r),U(we,i)},[()=>Y(`kind`),()=>Y(`file_type_labels.${z(_)}`,{default:hT.getType(z(i))??z(_).toUpperCase()}),()=>Y(`public_url`),()=>Y(`file_path`),()=>Y(`used_in`)]),H(e,b),A()}var q3,J3,Y3,X3,Z3,Q3,$3,e6,t6,n6,r6,i6,npe=s(
|
|||
|
|
|
|||
|
|
@media (width < 768px) {flex-direction:column;.preview:where(.svelte-9guikv) {flex:none !important;aspect-ratio:1 / 1;}.detail {flex:auto;width:auto;}
|
|||
|
|
}.preview:where(.svelte-9guikv) {flex:auto;overflow:hidden;iframe:where(.svelte-9guikv),
|
|||
|
|
pre:where(.svelte-9guikv),
|
|||
|
|
.markdown:where(.svelte-9guikv) {display:block;width:100%;height:100%;}pre:where(.svelte-9guikv),
|
|||
|
|
.markdown:where(.svelte-9guikv) {margin:0;padding:16px;overflow:auto;}pre:where(.svelte-9guikv) {white-space:pre-wrap;}}.detail {background-color:var(--sui-primary-background-color);}}}`}})),o6,s6,c6=s((()=>{Zp(),iA(),TF(),o6=un([bF,nA],([e,t])=>{if(!e||!t?.isGit)return!1;let{skip_ci:n,automatic_deployments:r}=e.backend;return typeof n==`boolean`||typeof r==`boolean`}),s6=un([bF,nA],([e,t])=>{if(!e||!t?.isGit)return!1;let{skip_ci:n,automatic_deployments:r}=e.backend;return n===!0||r===!1})})),dpe,fpe,l6,ppe=s((()=>{Zp(),JF(),u3(),AT(),c6(),h3(),c3(),kF(),HE(),dpe=e=>{let{files:t,folder:n,originalAssets:r}=e,{slugify_filename:i=!1}=OF().config,a=n?.internalPath===void 0?[]:KF(n.internalPath).map(e=>e.name.normalize());return t.map(e=>{let t=r?.find(t=>t.name.normalize().toLowerCase()===e.name.normalize().toLowerCase()),o=t?.name??LE(e.name,{slugificationEnabled:i,assetNamesInSameFolder:a});return a.includes(o)||a.push(o),{action:t?`update`:`create`,name:o,path:t?.path??[n?.internalPath,o].join(`/`),file:e}})},fpe=({count:e})=>{let t=dn(LF),n=dn(RF);t&&LF.set(FF(t.path)),n&&RF.set(FF(n.path)),l3.set({...o3,saved:!0,published:dn(o6)&&!dn(s6),count:e})},l6=async(e,t)=>{let{files:n,folder:r}=e,i=dpe(e),a=i.map(({name:e,path:t,file:n})=>({name:e,path:t,size:n.size,kind:kT(e),folder:r}));await m3({changes:i.map(({action:e,path:t,file:n})=>({action:e,path:t,data:n})),savingAssets:a,options:t}),fpe({count:n.length})}}));function mpe(e,t){k(t,!0),G(e,gpe);let n=()=>j(BF,`$editingAsset`,i),r=()=>j(w2,`$showAssetOverlay`,i),[i,a]=hn(),o=M(n),s=N(!1),c=N(void 0),l=N(void 0),u=N(void 0),d=N(!1),f=async()=>{P(c,await PM(z(o)),!0),P(l,await z(c).text(),!0),P(u,z(l),!0),P(s,!0)},p=()=>{mn(BF,void 0),P(c,void 0),P(l,void 0),P(u,void 0)},m=async()=>{z(o)&&z(c)&&typeof z(u)==`string`&&await l6({folder:z(o).folder,files:[new File([z(u)],z(o).name,{type:z(c).type})],originalAssets:[z(o)]},{commitType:`uploadMedia`})};ri(()=>{z(o)&&z(c)===void 0&&f()}),ri(()=>{r()||P(s,!1)});{let t=e=>{{let t=M(()=>Y(`wrap_long_lines`));uz(e,{get label(){return z(t)},get checked(){return z(d)},set checked(e){P(d,e,!0)}})}},n=M(()=>Y(`edit_x`,{values:{name:z(o)?.name??``}})),r=M(()=>Y(`save`)),i=M(()=>z(u)===z(l));qI(e,{size:`x-large`,get title(){return z(n)},get okLabel(){return z(r)},get okDisabled(){return z(i)},okShortcuts:`Accel+S`,onOk:()=>{m()},onClose:()=>{p()},get open(){return z(s)},set open(e){P(s,e,!0)},footerExtra:t,children:(e,t)=>{var n=hpe();let r;T0(F(n),{dir:`auto`,flex:!0,get value(){return z(u)},set value(e){P(u,e,!0)}}),O(n),R(()=>r=ds(n,1,`wrapper svelte-1lnkfih`,null,r,{wrap:z(d)})),H(e,n)},$$slots:{footerExtra:!0,default:!0}})}A(),a()}var hpe,gpe,_pe=s((()=>{Z(),J(),X(),$(),JF(),ppe(),VM(),M2(),hpe=B(`<div role="none"><!></div>`),gpe={hash:`svelte-1lnkfih`,code:`.wrapper.svelte-1lnkfih {display:contents;textarea {min-height:40dvh;max-height:80dvh;font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);text-wrap:nowrap;resize:vertical;}&.wrap textarea {text-wrap:wrap;}}`}})),vpe,u6,ype=s((()=>{Ip(),YP(),Tw(),QC(),HE(),vpe=({basePath:e,path:t,extension:n,locale:r,omitLocale:i,structure:a})=>{switch(a){case`multiple_folders`:return i?`${e}/${t}.${n}`:`${e}/${r}/${t}.${n}`;case`multiple_folders_i18n_root`:case`multiple_root_folders`:return i?`${e}/${t}.${n}`:`${r}/${e}/${t}.${n}`;case`multiple_files`:return i?`${e}/${t}.${n}`:`${e}/${t}.${r}.${n}`;default:return`${e}/${t}.${n}`}},u6=({draft:e,locale:t,slug:n})=>{let{collection:r,collectionFile:i,originalEntry:a,currentValues:o,isIndexFile:s}=e,{_i18n:{defaultLocale:c,structure:l,omitDefaultLocaleFromFilePath:u}}=i??r;if(i){let{_i18n:e,file:n}=i;return ZC({_i18n:e,locale:t,path:Np(n)})}if(a?.locales[t]?.slug===n)return a.locales[t].path;let d=r,{_file:{basePath:f,subPath:p,extension:m}}=d,h=s?Cw(d)?.name:p?JP(p,{collection:d,locale:t,content:o[c],currentSlug:n}):n;return s&&h?.endsWith(`.${m}`)&&(h=h.slice(0,-m.length-1)),RE(vpe({basePath:f,path:h,extension:m,locale:t,omitLocale:u&&t===c,structure:l}).split(`/`))}})),d6,f6,bpe,xpe,Spe,p6,m6=s((()=>{YP(),
|
|||
|
|
@media (width < 768px) {padding:4px;
|
|||
|
|
}.row-group-caption {display:block;grid-column:1 / -1; /* span the entire row */th {display:block;}}.row-group:not(:first-child) .row-group-caption {margin-top:16px;}.grid-body {display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--grid-size, 200px), 1fr));gap:16px;border-width:0;
|
|||
|
|
|
|||
|
|
@media (width < 768px) {grid-template-columns:repeat(auto-fill, minmax(var(--grid-size, 160px), 1fr));gap:8px;
|
|||
|
|
}}.grid-row {display:block;position:relative;overflow:hidden;height:auto;text-align:start;.grid-cell {display:block;&.image:empty {aspect-ratio:1 / 1;}}.checkbox {position:absolute;inset-block-start:4px;inset-inline-start:4px;z-index:2;}.title {.label {overflow:hidden;margin:12px;height:40px;line-height:1.5;}}&[tabindex] {border-radius:var(--sui-control-large-border-radius);background-color:var(--sui-secondary-background-color);cursor:pointer;transition:background-color 200ms;&:is(:hover, :focus, :active) {background-color:var(--sui-hover-background-color);}}}}.list-view.svelte-1sfbolp {
|
|||
|
|
@media (width < 768px) {padding:0;
|
|||
|
|
}[role='grid'] {
|
|||
|
|
@media (width < 768px) {width:100%;--sui-focus-ring-width: 0;
|
|||
|
|
}.row-group {.row-group-caption + .grid-row {.grid-cell {border-top-width:0 !important;}}.row-group-caption ~ .grid-row:last-child {.grid-cell {border-bottom-width:0 !important;}}}.grid-row {transition-property:background-color, outline-color;transition-duration:200ms;&[tabindex] {cursor:pointer;}&:hover {background-color:var(--sui-hover-background-color);}&:last-child .grid-cell {border-width:1px 0;}}.grid-cell {overflow:hidden;border-width:1px 0 0;border-color:var(--sui-secondary-border-color);padding:0 16px 0 0;height:40px;max-width:100%;color:var(--sui-secondary-foreground-color);white-space:nowrap;vertical-align:middle;
|
|||
|
|
|
|||
|
|
@media (width < 768px) {border-width:0 !important;height:64px;
|
|||
|
|
}&.checkbox {padding-inline-start:8px !important;width:44px;}&.title {width:100%; /* flex: auto */color:var(--sui-primary-foreground-color);}&:first-child {padding-inline-start:16px;}.label {overflow:hidden;
|
|||
|
|
|
|||
|
|
@media (width < 768px) {white-space:normal;line-height:var(--sui-line-height-compact);
|
|||
|
|
}}&.image {width:48px;&:empty::before {display:block;border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size);height:var(--icon-size);background-color:var(--sui-secondary-background-color);content:'';}}}}}`}}));function Pme(e,t){k(t,!0);let n=()=>j(k2,`$currentView`,o),r=()=>j(sm,`$targetAssetFolder`,o),i=()=>j(j2,`$assetGroups`,o),a=()=>j(A2,`$listedAssets`,o),[o,s]=hn(),c=M(()=>n().type),l=M(r),u=M(()=>!dm(z(l)));{let t=M(()=>Y(`asset_list`));K6(e,{get"aria-label"(){return z(t)},children:(e,t)=>{W6(e,{get disabled(){return z(u)},multiple:!0,onDrop:({files:e})=>{mn(zF,{folder:z(l),files:e})},children:(e,t)=>{var n=V(),r=I(n),o=e=>{{let t=M(()=>Y(`assets`));J6(e,{id:`asset-list`,get viewType(){return z(c)},get"aria-label"(){return z(t)},get"aria-rowcount"(){return a().length},children:(e,t)=>{var n=V();vo(I(n),1,()=>Object.entries(i()),([e,t])=>e,(e,t)=>{var n=M(()=>ee(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=V();ro(I(a),nT,null,e=>{{let t=M(()=>r()===`*`?void 0:r());vL(e,{get label(){return z(t)},children:(e,t)=>{IR(e,{get items(){return i()},itemKey:`path`,renderItem:(e,t=D)=>{var n=V();lo(I(n),()=>t().sha,e=>{var n=V();ro(I(n),nT,null,e=>{lme(e,{get asset(){return t()},get viewType(){return z(c)}})}),H(e,n)}),H(e,n)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}}),H(e,a)}),H(e,n)},$$slots:{default:!0}})}},s=M(()=>Object.values(i()).flat(1).length),l=e=>{$0(e,{children:(e,t)=>{var n=Fme(),r=I(n),i=F(r,!0);O(r);var a=L(r,2),o=e=>{{let t=M(()=>Y(`upload_assets`));Eme(e,{get label(){return z(t)}})}};W(a,e=>{z(u)||e(o)}),R(e=>U(i,e),[()=>Y(`no_files_found`)]),H(e,n)},$$slots:{default:!0}})};W(r,e=>{z(s)?e(o):e(l,-1)}),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}A(),s()}var Fme,Ime=s((()=>{Z(),J(),X(),$(),rT(),pme(),G6(),Dme(),q6(),Y6(),JF(),fm(),M2(),Fme=B(`<span role="none"> </span> <!>`,1)})),X6,Z6,Q6=s((()=>{Zp(),X6=ln(null),Z6=ln(``)}));function $6(e,t){k(t,!0),G(e,zme);let n=()=>j(Z6,`$searchTerms`,i),r=()=>j(X6,`$searchMode`,i),[i,a]=hn(),o=q(t,`onclick`,3,void 0),s=e=>{let t=!!n(),{path:r}=K2(),i=r.startsWith(`/search/`);mn(Z6,e),e?X2(`/search/${e}`,{replaceState:i}):t&&i&&Z2(`/collections`)},c=N(void 0);ri(()=>{z(c)&&n()!==z(c)?.value&&(z(c).value=n())});var l=Rme(),u=F(l),d=e=>{var t=Lme(),n=I(t);{let e=M(()=>Y(`search_placeholder_${r()}`));po(n,()=>({"--sui-textbox-placeholder-text-align":`center`})),qs(BR(n.lastChild,{debounce:!0,keyShortcuts:`Accel+F`,get placeholder(){return z(e)},get onclick(){return o()},oninput:({target:e})=>{s(e.value.trim())},onClear:()=>{s(``)}}),e=>P(c,e,!0),()=>z(c)),O(n)}H(e,t)};W(u,e=>{r()&&e(d)}),O(l),H(e,l),A(),a()}var Lme,Rme,zme,e8=s((()=>{Z(),J(),X(),$(),$2(),Q6(),Lme=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),Rme=B(`<div role="none" class="wrapper svelte-lav5fn"><!></div>`),zme={hash:`svelte-lav5fn`,code:`.wrapper.svelte-lav5fn {display:contents;--sui-textbox-border-width: 0;}`}}));function Bme(e,t){k(t,!0);let n=()=>j(im,`$allAssetFolders`,a),r=()=>j(om,`$selectedAssetFolder`,a),i=()=>j(MF,`$allAssets`,a),[a,o]=hn(),s=q(t,`isSearchPage`,3,!1),c=M(()=>Intl.NumberFormat(Xh.current)),l=M(()=>[...n().filter(({typedKeyPath:e,isAssetCollection:t})=>!t&&e===void 0).sort((e,t)=>EC(e.collectionName,e.fileName)-EC(t.collectionName,t.fileName)).sort((e,t)=>xw(e.collectionName)-xw(t.collectionName)),...n().filter(({isAssetCollection:e})=>e)]),u=e=>z(l)[e].collectionName===void 0&&z(l)[e+1]?.collectionName!==void 0||!z(l)[e].isAssetCollection&&!!z(l)[e+1]?.isAssetCollection;var d=Gme(),f=F(d),p=e=>{var t=Hme(),n=I(t),r=F(n),i=F(r,!0);O(r),O(n),$6(L(n,2),{onclick:e=>{e.preventDefault(),X2(`/search`)}}),R(e=>U(i,e),[()=>Y(`assets`)]),H(e,t)};W(f,e=>{AE.isSmallScreen&&e(p)});var m=L(f,2);{let e=M(()=>Y(`asset_folder_list`));PL(m,{get"aria-label"(){return z(e)},"aria-controls":`assets-container`,children:(e,t)=>{{let t=M(()=>Y(`asset_location.repository`));zL(e,{get label(){return z(t)},children:(e,t)=>{var n=V();vo(I(n),19,()=>z(l),e=>[e.collectionName,e.fileName,e.internalPath].join(`:`),(e,t,n)=>{var a
|
|||
|
|
|
|||
|
|
@media (768px <= width) {view-transition-name:page-main;
|
|||
|
|
}.sui.toolbar.primary {justify-content:center;
|
|||
|
|
|
|||
|
|
@media (width < 768px) {background-color:var(--sui-secondary-background-color);
|
|||
|
|
}}}.resizable-pane > .wrapper.svelte-1x2ldab {border-start-start-radius:16px;}.main-inner.svelte-1x2ldab {flex:auto;display:flex;overflow:hidden;.main-inner-main:where(.svelte-1x2ldab) {flex:auto;display:flex;flex-direction:column;overflow:hidden;}.secondary-sidebar {flex:none;overflow:auto;box-sizing:content-box;width:320px;background-color:var(--sui-secondary-background-color);
|
|||
|
|
|
|||
|
|
@media (768px <= width) {border-start-start-radius:16px;
|
|||
|
|
}[role='listbox'] {padding:12px;}}}`}}));function E8(e,t){k(t,!0),G(e,dge);let n=()=>j(U2,`$hasOverlay`,r),[r,i]=hn(),a=q(t,`class`,3,``),o=q(t,`uiSettingsKey`,3,void 0),s=q(t,`primarySidebar`,3,void 0),c=q(t,`main`,3,void 0),l=ec(t,sge),u=N(void 0),d=N(void 0),f=null,p=async()=>{if(!o())return;let{databaseName:e}=dn(nA)?.repository??{};f=e?new iT(e,`ui-settings`):null,P(d,(await f?.get(o()))?.sidebarWidth??240,!0)},m=async e=>{!f||!o()||!z(u)||await f.set(o(),{...await f.get(o()),sidebarWidth:Math.round(z(u).clientWidth*(e/100))})};ai(()=>{n(),window.requestAnimationFrame(()=>{n()||p()})});var h=uge();Cs(h,()=>({role:`group`,id:`page-container`,class:`outer ${a()??``}`,inert:n(),...l}),void 0,void 0,void 0,`svelte-1kkfo1f`);var g=F(h),_=e=>{var t=cge(),n=I(t);Ao(n,()=>s()??D),Ao(L(n,2),()=>c()??D),H(e,t)},v=e=>{kR(e,{onResize:({sizes:e})=>{m(e[0])},children:(e,t)=>{var n=lge(),r=I(n);NR(r,{get defaultSize(){return`${z(d)??``}px`},minSize:`160px`,maxSize:`480px`,children:(e,t)=>{var n=V();Ao(I(n),s),H(e,n)},$$slots:{default:!0}});var i=L(r,2);wR(i,{}),NR(L(i,2),{children:(e,t)=>{var n=V();Ao(I(n),c),H(e,n)},$$slots:{default:!0}}),H(e,n)},$$slots:{default:!0}})};W(g,e=>{AE.isSmallScreen||!s()||!c()?e(_):z(d)!==void 0&&e(v,1)}),O(h),qs(h,e=>P(u,e),()=>z(u)),H(e,h),A(),i()}var sge,cge,lge,uge,dge,D8=s((()=>{Z(),J(),$(),sT(),Zp(),$2(),iA(),jE(),sge=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`uiSettingsKey`,`primarySidebar`,`main`]),cge=B(`<!> <!>`,1),lge=B(`<!> <!> <!>`,1),uge=B(`<div><!></div>`),dge={hash:`svelte-1kkfo1f`,code:`.outer.svelte-1kkfo1f {flex:auto;display:flex;overflow:hidden;&[inert] {display:none;}.primary-sidebar {display:flex;flex-direction:column;flex:none;overflow-y:auto;height:100%;
|
|||
|
|
|
|||
|
|
@media (width < 768px) {flex:auto;width:auto;background-color:var(--sui-primary-background-color);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* Mobile header */header {display:flex;align-items:center;justify-content:space-between;padding:0 10px;height:var(--sui-primary-toolbar-size);h2 {padding:0 10px;font-size:var(--sui-font-size-x-large);}}.sui.search-bar {margin-inline:12px;--sui-textbox-background-color: var(--sui-tertiary-background-color);}[role='radiogroup'] {width:100%;}[role='listbox'] {margin:8px;border-width:0;background-color:transparent;button {display:flex;justify-content:flex-start;border-radius:var(--sui-control-medium-border-radius);width:100%;text-align:start;
|
|||
|
|
|
|||
|
|
@media (pointer: coarse) {height:48px;
|
|||
|
|
}&:not(:first-child) {margin-top:4px;}&:not(:focus) {border-color:transparent;}span {flex:none;}.label {flex:auto;overflow:hidden;}.icon {transition:color 200ms;}.icon.check {display:none;}.count {padding:2px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);transition:color 200ms;}}[role='option'][aria-selected='true'] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);.count {color:var(--sui-highlighted-foreground-color);}}[role='option'].dragover {color:var(--sui-primary-accent-color-inverted) !important;background-color:var(--sui-primary-accent-color) !important;}}.sui.divider {margin:8px 0;}}}`}}));function fge(e,t){k(t,!0);let n=M(()=>t.asset.path),r=M(()=>t.asset.name),i=M(()=>t.asset.folder),a=M(()=>t.asset.kind);DL(e,{onclick:()=>{X2(`/assets/${z(n)}`,{transitionType:`forwards`})},children:(e,n)=>{var o=mge(),s=I(o);CL(s,{class:`image`,children:(e,n)=>{j3(e,{get kind(){return z(a)},get asset(){return t.asset},variant:`icon`,cover:!0})},$$slots:{default:!0}});var c=L(s,2);CL(c,{class:`collection`,children:(e,t)=>{var n=V();lo(I(n),()=>Xh.current,e=>{var t=Ra();R(e=>U(t,e),[()=>D2(z(i))]),H(e,t)}),H(e,n)},$$slots:{default:!0}}),CL(L(c,2),{class:`title`,children:(e,t)=>{var n=pge();lI(F(n),{lines:2,children:(e,t)=>{gt();var n=Ra();R(()=>U(n,z(r))),H(e,n)},$$slots:{default:!0}}),O(n),H(e,n)},$$slots:{default:!0}}),H(e,o)},$$slots:{default:!0}}),A()}var pge,mge,hge=s((()=>{Z(),J(),X(),$(),z3(),$2(),M2(),pge=B(`<div role="none" class="label"><!></div>`),mge=B(`<!> <!> <!>`,1)})),O8,gge,k8,A8=s((()=>{O8=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLocaleLowerCase():``),gge=(e,t=void 0)=>{if(!t)return O8(e);let n=t.get(e);if(n!==void 0)return n;let r=O8(e);return t.set(e,r),r},k8=({value:e,terms:t,normalizedValueCache:n=void 0})=>gge(e,n).includes(t)})),_ge,vge,yge=s((()=>{Zp(),JF(),Q6(),A8(),_ge=({assets:e,terms:t})=>{if(t=O8(t),!e.length||!t)return[];let n=new Map;return e.filter(e=>k8({value:e.name,terms:t,normalizedValueCache:n}))},vge=un([MF,Z6],([e,t])=>_ge({assets:e,terms:t}))}));function bge(e,t){k(t,!0);let n=()=>j(Z6,`$searchTerms`,i),r=()=>j(vge,`$assetSearchResults`,i),[i,a]=hn();ri(()=>{mn(G2,Y(`viewing_asset_search_results`,{values:{terms:n(),count:r().length}}))}),n2(e,{"aria-labelledby":`search-results-assets`,children:(e,t)=>{var i=Sge(),a=F(i),o=e=>{{let t=M(()=>Y(`assets`));J6(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return r().length},children:(e,t)=>{var i=V();lo(I(i),n,e=>{IR(e,{get items(){return r()},itemKey:`path`,renderItem:(e,t=D)=>{var n=V();ro(I(n),nT,null,e=>{fge(e,{get asset(){return t()}})}),H(e,n)},$$slots:{renderItem:!0}})}),H(e,i)},$$slots:{default:!0}})}},s=e=>{$0(e,{children:(e,t)=>{var n=xge(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>Y(`no_files_found`)]),H(e,n)},$$slots:{default:!0}})};W(a,e=>{r().length?e(o):n()&&e(s,1)}),O(i),H(e,i)},$$slots:{default:!0}}),A(),a()}var xge,Sge,Cge=s((()=>{Z(),J(),X(),$(),rT(),Y6(),hge(),$2(),Q6(),yge(),xge=B(`<span role="none"> </span>`),Sge=B(`<div role="none"><!></div>`)}));function wge(e,t){k(t,!0);let n=(e,t)=>{let n=()=>(t?.()).collection,c=()=>(t?.()).collectionFile,l=M(()=>{let{defaultLocale:e}=(c()??n())._i18n??aw;return{defaultLocale:e}}),u=M(()=>{let{content:e}=z(o)[z(l).defaultLocale]??Object.values(z(o))[0]??{};return{content:e}});var d=V(),f=I(d),p=e=>{DL(e,{onclick:()=>{X2(`/collections/${n().name}/entries/${c()?.name||z(s)}`,{state:{highlight:{locale:z(i),keyPath:z(a)}},transitionType:`forwards`})},children:(e,t)=>{var i=Ege(),a=I(i);CL(a,{class:`image`,children:(e,t)=>{var i=V(),a=I(i),o=e=>{var t=V();ro(I(t),()=>YF(n(),z(r)),null,(e,t)=>{var n=V(),r=I(n),i=e=>{V6(e,{get src(){return z(t)},variant:`icon`,cover:!0})};W(r,e=>{z(t)&&e(i)}),H(e,n)}),H(e,t)};W(a,e=>{n()._type===`entry`&&e(o)}),H(e,i)},$$slots:{default:!0}});var o=L(a,2);CL(o,{class:`collection`,children:(e,t)=>{var r=V();lo(I(r),()=>Xh.current,e=>{var t=Ra();R(e=>U(t,e),[()=>bw(n())]),H(e,t)}),H(e,r)},$$slots:{default:!0}}),CL(L(o,2),{cl
|
|||
|
|
|
|||
|
|
@media (width < 768px) {display:none;
|
|||
|
|
}}}`}}));function j8(e,t){k(t,!0),G(e,Hge);let n=()=>j(X6,`$searchMode`,r),[r,i]=hn();w8(e,{primaryToolbar:e=>{var t=V(),r=I(t),i=e=>{f0(e,{variant:`primary`,children:(e,t)=>{var r=Vge(),i=I(r);{let e=M(()=>Y(n()===`assets`?`back_to_asset_folder_list`:`back_to_collection_list`));D3(i,{get"aria-label"(){return z(e)},onclick:()=>{mn(Z6,``),X2(n()===`assets`?`/assets`:`/collections`,{transitionType:`backwards`})}})}var a=L(i,2);$6(F(a),{}),O(a),H(e,r)},$$slots:{default:!0}})};W(r,e=>{AE.isSmallScreen&&e(i)}),H(e,t)},mainContent:e=>{Ige(e,{})},$$slots:{primaryToolbar:!0,mainContent:!0}}),A(),i()}var Vge,Hge,M8=s((()=>{Z(),J(),X(),$(),T8(),O3(),e8(),Bge(),$2(),Q6(),jE(),Vge=B(`<!> <div role="search" class="svelte-1476at1"><!></div>`,1),Hge={hash:`svelte-1476at1`,code:`[role='search'].svelte-1476at1 {display:contents;.sui.search-bar {flex:auto;}}`}})),Uge,N8,Wge=s((()=>{Zp(),Q6(),Uge=/^\/search\/(?<terms>.+)$/,N8=e=>{let{groups:t}=e.match(Uge)??{};if(!t)return!1;let{terms:n}=t;return n&&n!==dn(Z6)&&Z6.set(n),dn(X6)||X6.set(`contents`),!0}}));function Gge(e,t){k(t,!0);let n=()=>j(om,`$selectedAssetFolder`,l),r=()=>j(w2,`$showAssetOverlay`,l),i=()=>j(im,`$allAssetFolders`,l),a=()=>j(A2,`$listedAssets`,l),o=()=>j(RF,`$overlaidAsset`,l),s=()=>j(MF,`$allAssets`,l),c=()=>j(l3,`$assetUpdatesToast`,l),[l,u]=hn(),d=/^\/assets(?:\/(?<folderPath>.+?)(?:\/(?<fileName>[^/]+\.[A-Za-z0-9]+))?)?$/,f=N(!1),p=N(!1),m=M(()=>Xh.current&&n()?D2(n()):``),h=async()=>{let{path:e}=K2(),t=e.match(d);if(P(f,!1),P(p,!1),!t?.groups){mn(w2,!1),P(p,N8(e),!0);return}let{folderPath:r,fileName:c}=t.groups;if(!r){AE.isSmallScreen?(mn(om,void 0),mn(w2,!1),mn(G2,Y(`viewing_asset_folder_list`)),P(f,!0)):X2(`/assets/-/all`);return}let l=window.history.state?.folder??i().find(({internalPath:e,collectionName:t})=>r===`-/all`?e===void 0&&t===void 0:e===r);if(l?(0,Kge.default)(n(),l)||mn(om,l):mn(om,void 0),!c){await nT(100),mn(w2,!1),mn(G2,Y(`viewing_x_asset_folder`,{values:{folder:z(m),count:a().length}}));return}mn(RF,c?s().find(e=>e.path===`${r}/${c}`):void 0),mn(G2,o()?Y(`viewing_x_asset_details`,{values:{name:o().name}}):Y(`file_not_found`)),mn(w2,!0)};lc(()=>(h(),()=>{mn(w2,!1)}));var g=qge();wa(`hashchange`,Kr,e=>{Y2(e,h,d)});var _=I(g);{let e=e=>{var t=V(),n=I(t),r=e=>{Bme(e,{get isSearchPage(){return z(p)}})};W(n,e=>{(!AE.isSmallScreen||z(f))&&e(r)}),H(e,t)},t=e=>{var t=V(),n=I(t),r=e=>{j8(e,{})},i=e=>{{let t=e=>{Yme(e,{})},n=e=>{var t=V(),n=I(t),r=e=>{ege(e,{})};W(n,e=>{a().length&&e(r)}),H(e,t)},r=e=>{Pme(e,{})},i=e=>{ehe(e,{})},o=M(()=>Y(`x_asset_folder`,{values:{folder:z(m)}}));w8(e,{id:`assets-container`,get"aria-label"(){return z(o)},primaryToolbar:t,secondaryToolbar:n,mainContent:r,secondarySidebar:i,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};W(n,e=>{z(p)?e(r):(!AE.isSmallScreen||!z(f))&&e(i,1)}),H(e,t)},n=M(()=>Y(`asset_library`));E8(_,{uiSettingsKey:`assets-page`,get"aria-label"(){return z(n)},primarySidebar:e,main:t,$$slots:{primarySidebar:!0,main:!0}})}var v=L(_,2),y=e=>{rpe(e,{})};W(v,e=>{r()&&e(y)});var b=L(v,2);mpe(b,{});var x=L(b,2);ime(x,{});var S=L(x,2);jz(S,{get show(){return c().saved},set show(e){_n(l3,Gi(c).saved=e,Gi(c))},children:(e,t)=>{rI(e,{status:`success`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(c().published?`assets_saved_and_published`:`assets_saved`,{values:{count:c().count}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var C=L(S,2);jz(C,{get show(){return c().moved},set show(e){_n(l3,Gi(c).moved=e,Gi(c))},children:(e,t)=>{rI(e,{status:`success`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`assets_moved`,{values:{count:c().count}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var w=L(C,2);jz(w,{get show(){return c().renamed},set show(e){_n(l3,Gi(c).renamed=e,Gi(c))},children:(e,t)=>{rI(e,{status:`success`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`assets_renamed`,{values:{count:c().count}})]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),jz(L(w,2),{get show(){return c().deleted},set show(e){_n(l3,Gi(c).deleted=e,Gi(
|
|||
|
|
allow-storage-access-by-user-activation" class="svelte-1y1y5aq"></iframe>`),Zge={hash:`svelte-1y1y5aq`,code:`iframe.svelte-1y1y5aq {display:block;width:calc(100% - 32px);height:calc(100% - 32px);border:none;}
|
|||
|
|
|
|||
|
|
/* Avoid scrolling issue https://github.com/sveltia/sveltia-cms/issues/824 */dialog[inert] > iframe.svelte-1y1y5aq {display:none;}`}}));function $ge(e,t){k(t,!0),G(e,o_e);let n=()=>j(zF,`$uploadingAssets`,o),r=()=>j(Foe,`$processedAssets`,o),i=()=>j(w2,`$showAssetOverlay`,o),a=()=>j(E2,`$showUploadAssetsConfirmDialog`,o),[o,s]=hn(),c=N(Nr([])),l=N(!0),u=M(()=>n().files),d=M(()=>n().folder),f=M(()=>n().originalAssets),p=M(()=>z(f)?.[0]),m=M(()=>r().processing),h=M(()=>r().undersizedFiles),g=M(()=>r().oversizedFiles),_=M(()=>r().transformedFileMap),v=M(()=>OF().config),y=M(()=>z(v).max_file_size),b=M(()=>z(p)||z(d)?.internalPath===void 0?[]:KF(z(d).internalPath)),x=M(()=>qF(z(c),z(b))),S=M(()=>z(x).length);ri(()=>{P(c,[...z(h)],!0),P(l,!0)}),ri(()=>{i()||mn(zF,{folder:void 0,files:[]})});{let t=M(()=>Y(z(p)?`replace_asset`:`upload_assets`)),n=M(()=>Y(z(p)?`replace`:`upload`)),r=M(()=>!z(c).length);iL(e,{get open(){return a()},get title(){return z(t)},get okLabel(){return z(n)},get okDisabled(){return z(r)},onOk:async()=>{let e=z(p)?z(f):z(l)?z(b):[];await l6({files:z(c),folder:z(d),originalAssets:e},{commitType:`uploadMedia`}),mn(zF,{folder:void 0,files:[]})},onCancel:()=>{mn(zF,{folder:void 0,files:[]})},children:(e,t)=>{var n=a_e(),r=I(n),i=e=>{var t=e_e(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>Y(`processing_files`,{values:{count:z(u).length}})]),H(e,t)};W(r,e=>{z(m)&&e(i)});var a=L(r,2),o=e=>{var t=t_e(),n=F(t),r=F(n),i=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`confirm_replacing_file`,{values:{name:z(p).name}})]),H(e,t)},a=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`confirm_uploading_files`,{values:{count:z(c).length,folder:`/${z(d)?.internalPath}`}})]),H(e,t)};W(r,e=>{z(p)?e(i):e(a,-1)}),O(n),U6(L(n,2),{get transformedFileMap(){return z(_)},get files(){return z(c)},set files(e){P(c,e,!0)}}),O(t),R(e=>K(t,`aria-label`,e),[()=>Y(`uploading_files`)]),H(e,t)};W(a,e=>{z(c).length&&e(o)});var s=L(a,2),f=e=>{var t=n_e(),n=F(t);rI(n,{status:`warning`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`warning_oversized_files`,{values:{count:z(g).length,size:FE(z(y))}})]),H(e,n)},$$slots:{default:!0}}),U6(L(n,2),{get files(){return z(g)},get transformedFileMap(){return z(_)},removable:!1}),O(t),R(e=>K(t,`aria-label`,e),[()=>Y(`oversized_files`)]),H(e,t)};W(s,e=>{z(g).length&&e(f)});var h=L(s,2),v=e=>{var t=i_e(),n=F(t),r=L(n);{let e=M(()=>Y(`file_name_conflict_resolution`));hR(r,{get"aria-label"(){return z(e)},onChange:({detail:e})=>{P(l,e.value===`replace`)},children:(e,t)=>{var n=r_e(),r=I(n);yR(r,{value:`replace`,get checked(){return z(l)},children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`replace`)]),H(e,n)},$$slots:{default:!0}});var i=L(r,2);{let e=M(()=>!z(l));yR(i,{value:`keep`,get checked(){return z(e)},children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`keep_both`)]),H(e,n)},$$slots:{default:!0}})}H(e,n)},$$slots:{default:!0}})}O(t),R(e=>U(n,`${e??``} `),[()=>Y(`file_name_conflict_confirmation`,{values:{count:z(S)}})]),H(e,t)};W(h,e=>{z(S)&&e(v)}),H(e,n)},$$slots:{default:!0}})}A(),s()}var e_e,t_e,n_e,r_e,i_e,a_e,o_e,s_e=s((()=>{Z(),J(),X(),$(),yme(),JF(),ppe(),M2(),kF(),HE(),e_e=B(`<div role="status"> </div>`),t_e=B(`<div role="group" class="section uploading svelte-96nj3d"><div role="none"><!></div> <!></div>`),n_e=B(`<div role="group" class="section oversized svelte-96nj3d"><!> <!></div>`),r_e=B(`<!> <!>`,1),i_e=B(`<div role="group" class="section svelte-96nj3d"> <!></div>`),a_e=B(`<!> <!> <!> <!>`,1),o_e={hash:`svelte-96nj3d`,code:`.section.svelte-96nj3d {display:flex;flex-direction:column;gap:12px;&:not(:first-child) {margin-top:16px;}& > * {flex:none;}&.oversized .files {opacity:0.5;}}`}}));function c_e(e,t){k(t,!0);let n=()=>j(zF,`$uploadingAssets`,o),r=()=>j(sm,`$targetAssetFolder`,o),i=()=>j(T2,`$showUploadAssetsDialog`,o),a=()=>j(w2,`$showAssetOverlay`,o),[o,s]=hn(),c=N(void 0),l=M(()=>n().originalAssets),u=M(()=>z(l)?.[0]),d=M(()=>!z(u)),f=M(()=>z(u)?hT.getType(z(u).name)??void 0:void 0),p=e=>{e.length&&(mn(zF,{folder:z(u)?z(u).folder:r(),files:e,originalAssets:z(l)}),mn(T2,!1))};ri(()=>{!AE.hasMouse&&i()&&z(c)?.open()}),r
|
|||
|
|
`;)t--;return e.substring(0,t)}function A_e(e){return k_e(O_e(e))}function q8(e){return J8(e,rve)}function j_e(e){return J8(e,t5)}function M_e(e){return F_e(e,t5)}function N_e(e){return J8(e,n5)}function P_e(e){return F_e(e,n5)}function J8(e,t){return t.indexOf(e.nodeName)>=0}function F_e(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}function I_e(e){return ive.reduce(function(e,t){return e.replace(t[0],t[1])},e)}function Y8(e){return e?e.replace(/(\n+\s*)+/g,`
|
|||
|
|
`):``}function X8(e){var t=e.replace(/([<>()])/g,`\\$1`);return t.indexOf(` `)>=0?`<`+t+`>`:t}function Z8(e){return e.replace(/"/g,`\\"`)}function L_e(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function Q8(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(R_e(i,t,n))return i}}function R_e(e,t,n){var r=e.filter;if(typeof r==`string`){if(r===t.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof r==`function`){if(r.call(e,t,n))return!0}else throw TypeError("`filter` needs to be a string, array, or function")}function z_e(e){var t=e.element,n=e.isBlock,r=e.isVoid,i=e.isPre||function(e){return e.nodeName===`PRE`};if(!(!t.firstChild||i(t))){for(var a=null,o=!1,s=null,c=B_e(s,t,i);c!==t;){if(c.nodeType===3||c.nodeType===4){var l=c.data.replace(/[ \r\n\t]+/g,` `);if((!a||/ $/.test(a.data))&&!o&&l[0]===` `&&(l=l.substr(1)),!l){c=$8(c);continue}c.data=l,a=c}else if(c.nodeType===1)n(c)||c.nodeName===`BR`?(a&&(a.data=a.data.replace(/ $/,``)),a=null,o=!1):r(c)||i(c)?(a=null,o=!0):a&&(o=!1);else{c=$8(c);continue}var u=B_e(s,c,i);s=c,c=u}a&&(a.data=a.data.replace(/ $/,``),a.data||$8(a))}}function $8(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function B_e(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}function V_e(){var e=i5.DOMParser,t=!1;try{new e().parseFromString(``,`text/html`)&&(t=!0)}catch{}return t}function H_e(){var e=function(){};return U_e()?e.prototype.parseFromString=function(e){var t=new window.ActiveXObject(`htmlfile`);return t.designMode=`on`,t.open(),t.write(e),t.close(),t}:e.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument(``);return t.open(),t.write(e),t.close(),t},e}function U_e(){var e=!1;try{document.implementation.createHTMLDocument(``).open()}catch{i5.ActiveXObject&&(e=!0)}return e}function W_e(e,t){var n=typeof e==`string`?G_e().parseFromString(`<x-turndown id="turndown-root">`+e+`</x-turndown>`,`text/html`).getElementById(`turndown-root`):e.cloneNode(!0);return z_e({element:n,isBlock:q8,isVoid:j_e,isPre:t.preformattedCode?K_e:null}),n}function G_e(){return ove||=new ave,ove}function K_e(e){return e.nodeName===`PRE`||e.nodeName===`CODE`}function q_e(e,t){return e.isBlock=q8(e),e.isCode=e.nodeName===`CODE`||e.parentNode.isCode,e.isBlank=J_e(e),e.flankingWhitespace=Y_e(e,t),e}function J_e(e){return!j_e(e)&&!N_e(e)&&/^\s*$/i.test(e.textContent)&&!M_e(e)&&!P_e(e)}function Y_e(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:``,trailing:``};var n=X_e(e.textContent);return n.leadingAscii&&Z_e(`left`,e,t)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&Z_e(`right`,e,t)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function X_e(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function Z_e(e,t,n){var r,i,a;return e===`left`?(r=t.previousSibling,i=/ $/):(r=t.nextSibling,i=/^ /),r&&(r.nodeType===3?a=i.test(r.nodeValue):n.preformattedCode&&r.nodeName===`CODE`?a=!1:r.nodeType===1&&!q8(r)&&(a=i.test(r.textContent))),a}function e5(e){if(!(this instanceof e5))return new e5(e);var t={rules:r5,headingStyle:`setext`,hr:`* * *`,bulletListMarker:`*`,codeBlockStyle:`indented`,fence:"```",emDelimiter:`_`,strongDelimiter:`**`,linkStyle:`inlined`,linkReferenceStyle:`full`,br:` `,preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?`
|
|||
|
|
|
|||
|
|
`:``},keepReplacement:function(e,t){return t.isBlock?`
|
|||
|
|
|
|||
|
|
`+t.outerHTML+`
|
|||
|
|
|
|||
|
|
`:t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?`
|
|||
|
|
|
|||
|
|
`+e+`
|
|||
|
|
|
|||
|
|
`:e}};this.options=D_e({},t,e),this.rules=new L_e(this.options)}function Q_e(e){var t=this;return sve.call(e.childNodes,function(e,n){n=new q_e(n,t.options);var r=``;return n.nodeType===3?r=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(r=eve.call(t,n)),tve(e,r)},``)}function $_e(e){var t=this;return this.rules.forEach(function(n){typeof n.append==`function`&&(e=tve(e,n.append(t.options)))}),e.replace(/^[\t\r\n]+/,``).replace(/[\t\r\n\s]+$/,``)}function eve(e){var t=this.rules.forNode(e),n=Q_e.call(this,e),r=e.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+t.replacement(n,e,this.options)+r.trailing}function tve(e,t){var n=k_e(e),r=O_e(t),i=Math.max(e.length-n.length,t.length-r.length);return n+`
|
|||
|
|
|
|||
|
|
`.substring(0,i)+r}function nve(e){return e!=null&&(typeof e==`string`||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var rve,t5,n5,ive,r5,i5,ave,ove,sve,cve=s((()=>{rve=`ADDRESS.ARTICLE.ASIDE.AUDIO.BLOCKQUOTE.BODY.CANVAS.CENTER.DD.DIR.DIV.DL.DT.FIELDSET.FIGCAPTION.FIGURE.FOOTER.FORM.FRAMESET.H1.H2.H3.H4.H5.H6.HEADER.HGROUP.HR.HTML.ISINDEX.LI.MAIN.MENU.NAV.NOFRAMES.NOSCRIPT.OL.OUTPUT.P.PRE.SECTION.TABLE.TBODY.TD.TFOOT.TH.THEAD.TR.UL`.split(`.`),t5=[`AREA`,`BASE`,`BR`,`COL`,`COMMAND`,`EMBED`,`HR`,`IMG`,`INPUT`,`KEYGEN`,`LINK`,`META`,`PARAM`,`SOURCE`,`TRACK`,`WBR`],n5=[`A`,`TABLE`,`THEAD`,`TBODY`,`TFOOT`,`TH`,`TD`,`IFRAME`,`SCRIPT`,`AUDIO`,`VIDEO`],ive=[[/\\/g,`\\\\`],[/\*/g,`\\*`],[/^-/g,`\\-`],[/^\+ /g,`\\+ `],[/^(=+)/g,`\\$1`],[/^(#{1,6}) /g,`\\$1 `],[/`/g,"\\`"],[/^~~~/g,`\\~~~`],[/\[/g,`\\[`],[/\]/g,`\\]`],[/^>/g,`\\>`],[/_/g,`\\_`],[/^(\d+)\. /g,`$1\\. `]],r5={},r5.paragraph={filter:`p`,replacement:function(e){return`
|
|||
|
|
|
|||
|
|
`+e+`
|
|||
|
|
|
|||
|
|
`}},r5.lineBreak={filter:`br`,replacement:function(e,t,n){return n.br+`
|
|||
|
|
`}},r5.heading={filter:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],replacement:function(e,t,n){var r=Number(t.nodeName.charAt(1));if(n.headingStyle===`setext`&&r<3){var i=K8(r===1?`=`:`-`,e.length);return`
|
|||
|
|
|
|||
|
|
`+e+`
|
|||
|
|
`+i+`
|
|||
|
|
|
|||
|
|
`}else return`
|
|||
|
|
|
|||
|
|
`+K8(`#`,r)+` `+e+`
|
|||
|
|
|
|||
|
|
`}},r5.blockquote={filter:`blockquote`,replacement:function(e){return e=A_e(e).replace(/^/gm,`> `),`
|
|||
|
|
|
|||
|
|
`+e+`
|
|||
|
|
|
|||
|
|
`}},r5.list={filter:[`ul`,`ol`],replacement:function(e,t){var n=t.parentNode;return n.nodeName===`LI`&&n.lastElementChild===t?`
|
|||
|
|
`+e:`
|
|||
|
|
|
|||
|
|
`+e+`
|
|||
|
|
|
|||
|
|
`}},r5.listItem={filter:`li`,replacement:function(e,t,n){var r=n.bulletListMarker+` `,i=t.parentNode;if(i.nodeName===`OL`){var a=i.getAttribute(`start`),o=Array.prototype.indexOf.call(i.children,t);r=(a?Number(a)+o:o+1)+`. `}var s=/\n$/.test(e);return e=A_e(e)+(s?`
|
|||
|
|
`:``),e=e.replace(/\n/gm,`
|
|||
|
|
`+` `.repeat(r.length)),r+e+(t.nextSibling?`
|
|||
|
|
`:``)}},r5.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle===`indented`&&e.nodeName===`PRE`&&e.firstChild&&e.firstChild.nodeName===`CODE`},replacement:function(e,t,n){return`
|
|||
|
|
|
|||
|
|
`+t.firstChild.textContent.replace(/\n/g,`
|
|||
|
|
`)+`
|
|||
|
|
|
|||
|
|
`}},r5.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle===`fenced`&&e.nodeName===`PRE`&&e.firstChild&&e.firstChild.nodeName===`CODE`},replacement:function(e,t,n){for(var r=((t.firstChild.getAttribute(`class`)||``).match(/language-(\S+)/)||[null,``])[1],i=t.firstChild.textContent,a=n.fence.charAt(0),o=3,s=RegExp(`^`+a+`{3,}`,`gm`),c;c=s.exec(i);)c[0].length>=o&&(o=c[0].length+1);var l=K8(a,o);return`
|
|||
|
|
|
|||
|
|
`+l+r+`
|
|||
|
|
`+i.replace(/\n$/,``)+`
|
|||
|
|
`+l+`
|
|||
|
|
|
|||
|
|
`}},r5.horizontalRule={filter:`hr`,replacement:function(e,t,n){return`
|
|||
|
|
|
|||
|
|
`+n.hr+`
|
|||
|
|
|
|||
|
|
`}},r5.inlineLink={filter:function(e,t){return t.linkStyle===`inlined`&&e.nodeName===`A`&&e.getAttribute(`href`)},replacement:function(e,t){var n=X8(t.getAttribute(`href`)),r=Z8(Y8(t.getAttribute(`title`))),i=r?` "`+r+`"`:``;return`[`+e+`](`+n+i+`)`}},r5.referenceLink={filter:function(e,t){return t.linkStyle===`referenced`&&e.nodeName===`A`&&e.getAttribute(`href`)},replacement:function(e,t,n){var r=X8(t.getAttribute(`href`)),i=Y8(t.getAttribute(`title`));i&&=` "`+Z8(i)+`"`;var a,o;switch(n.linkReferenceStyle){case`collapsed`:a=`[`+e+`][]`,o=`[`+e+`]: `+r+i;break;case`shortcut`:a=`[`+e+`]`,o=`[`+e+`]: `+r+i;break;default:var s=this.references.length+1;a=`[`+e+`][`+s+`]`,o=`[`+s+`]: `+r+i}return this.references.push(o),a},references:[],append:function(e){var t=``;return this.references.length&&(t=`
|
|||
|
|
|
|||
|
|
`+this.references.join(`
|
|||
|
|
`)+`
|
|||
|
|
|
|||
|
|
`,this.references=[]),t}},r5.emphasis={filter:[`em`,`i`],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:``}},r5.strong={filter:[`strong`,`b`],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:``}},r5.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n=e.parentNode.nodeName===`PRE`&&!t;return e.nodeName===`CODE`&&!n},replacement:function(e){if(!e)return``;e=e.replace(/\r?\n|\r/g,` `);for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?` `:``,n="`",r=e.match(/`+/gm)||[];r.indexOf(n)!==-1;)n+="`";return n+t+e+t+n}},r5.image={filter:`img`,replacement:function(e,t){var n=I_e(Y8(t.getAttribute(`alt`))),r=X8(t.getAttribute(`src`)||``),i=Y8(t.getAttribute(`title`)),a=i?` "`+Z8(i)+`"`:``;return r?``:``}},L_e.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return``}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=Q8(this.array,e,this.options))||(t=Q8(this._keep,e,this.options))||(t=Q8(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}},i5=typeof window<`u`?window:{},ave=V_e()?i5.DOMParser:H_e(),sve=Array.prototype.reduce,e5.prototype={turndown:function(e){if(!nve(e))throw TypeError(e+` is not a string, or an element/document/fragment node.`);if(e===``)return``;var t=Q_e.call(this,new W_e(e,this.options));return $_e.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e==`function`)e(this);else throw TypeError(`plugin must be a Function or an Array of Functions`);return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return I_e(e)}}})),a5,lve,uve,o5=s((()=>{Ip(),YP(),LS(),uC(),jP(),fb(),a5=e=>{let t=`field`in e,n=`fields`in e,r=`types`in e;return{hasSingleSubField:t,hasMultiSubFields:n,hasVariableTypes:r,hasSubFields:t||n||r}},lve=new Map,uve=({collectionName:e,fileName:t,keyPath:n,valueMap:r,isIndexFile:i=!1,locale:a,summaryTemplate:o,hasSingleSubField:s,index:c})=>{let l={collectionName:e,fileName:t,keyPath:``,valueMap:r,isIndexFile:i},u=`${n}.${c}`;if(!o){if(s)return r[u];let e=`${n}:${c}`;return kP({valueMap:r,locale:a,keyPath:u,keyPathRegex:db(lve,e,()=>RegExp(`^${jp(n)}\\.${c}[\\b\\.]`)),getFieldArgs:l})}let d=e=>{let{value:t}=tC(e),r=t.replace(/^fields\./,``),i=`${u}.${r}`;if(s){let e=wP({...l,keyPath:n});if(!(`field`in e)||e.field.name!==r)return``}return OP({...l,keyPath:s?u:i,locale:a})};return GP(o,(e,t)=>{let{value:r,transformations:i}=tC(t),o=r.replace(/^fields\./,``),c=`${u}.${o}`;if(s){let e=wP({...l,keyPath:n});if(!(`field`in e)||e.field.name!==o)return``}return OP({...l,keyPath:s?u:c,locale:a,transformations:IS(i,d)})})}})),dve,s5,fve,pve,mve,hve,gve=s((()=>{dve=`https://api.anthropic.com/v1/messages`,s5=`Anthropic API`,fve=`https://docs.claude.com/en/api/overview`,pve=`https://platform.claude.com/settings/keys`,mve=/sk-ant-api03-[a-zA-Z0-9-_]{80,}/,hve=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3})=>{let o=await fetch(dve,{method:`POST`,headers:{"Content-Type":`application/json`,"x-api-key":e,"anthropic-version":`2023-06-01`,"anthropic-dangerous-direct-browser-access":`true`},body:JSON.stringify({model:t,max_tokens:a,temperature:i,system:n,messages:[{role:`user`,content:r}]})});if(!o.ok){let e=await o.json().catch(()=>({}));throw Error(`Anthropic API error: ${o.status} ${o.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let s=await o.json();if(!s.content||!Array.isArray(s.content)||!s.content[0])throw Error(`Invalid response format from Anthropic API.`);return s.content[0].text.trim()}})),c5,_ve,vve,yve,l5,bve,u5,d5=s((()=>{QC(),c5=e=>JC(e,{displayLocale:`en`}),_ve=(e,t)=>{let n=[`- CRITICAL: Leave content EXACTLY unchanged within HTML elements t
|
|||
|
|
|
|||
|
|
IMPORTANT INSTRUCTIONS:\n${[...n,...r,...i].join(`
|
|||
|
|
`)}\n\nOUTPUT FORMAT:
|
|||
|
|
- Output ONLY valid JSON, nothing else
|
|||
|
|
- Do NOT use markdown code blocks or formatting
|
|||
|
|
- Do NOT add any explanation or commentary
|
|||
|
|
- Your entire response should be parseable by JSON.parse()
|
|||
|
|
- Start your response with [ and end with ]
|
|||
|
|
|
|||
|
|
Required JSON structure:
|
|||
|
|
["translation 1", "translation 2", ...]`},vve=e=>`Translate these texts and return ONLY valid JSON (no markdown, no code blocks):
|
|||
|
|
${JSON.stringify(e)}\n\nRespond with JSON only:`,yve=(e,t,n)=>{let r;try{r=JSON.parse(e)}catch{throw Error(`Failed to parse JSON response from ${n}.`)}if(!Array.isArray(r))throw Error(`Invalid JSON structure in ${n} response.`);if(r.length!==t)throw Error(`Translation count mismatch: expected ${t}, got ${r.length}`);return r},l5=async({sourceLanguage:e,targetLanguage:t})=>!!c5(e)&&!!c5(t),bve=(e,t)=>{let n=c5(e),r=c5(t);if(!n)throw Error(`Source locale is not supported.`);if(!r)throw Error(`Target locale is not supported.`);return[n,r]},u5=(e,t,n,r={})=>async(i,{sourceLanguage:a,targetLanguage:o,apiKey:s})=>{let[c,l]=bve(a,o);try{let a=await e({apiKey:s,model:t,systemPrompt:_ve(c,l),userMessage:vve(i),...r});return yve(a,i.length,n)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with ${n}.`)}}})),xve,Sve,Cve,wve,Tve=s((()=>{gve(),d5(),xve=`anthropic`,Sve=`Anthropic Claude`,Cve=`claude-haiku-4-5`,wve={serviceId:xve,serviceLabel:Sve,apiLabel:s5,developerURL:fve,apiKeyURL:pve,apiKeyPattern:mve,markdownSupported:!0,availability:l5,translate:u5(hve,Cve,s5)}})),Eve,f5,Dve,Ove,kve,Ave,jve=s((()=>{Eve=`https://api.deepseek.com/chat/completions`,f5=`DeepSeek API`,Dve=`https://api-docs.deepseek.com/`,Ove=`https://platform.deepseek.com/api_keys`,kve=/sk-[a-zA-Z0-9]{32,}/,Ave=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3,reasoning:o=!0})=>{let s=await fetch(Eve,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify({model:t,messages:[{role:`system`,content:n},{role:`user`,content:r}],temperature:i,max_tokens:a,thinking:{type:o?`enabled`:`disabled`},stream:!1})});if(!s.ok){let e=await s.json().catch(()=>({}));throw Error(`DeepSeek API error: ${s.status} ${s.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let c=await s.json();if(!c.choices||!Array.isArray(c.choices)||!c.choices[0]?.message?.content)throw Error(`Invalid response format from DeepSeek API.`);return c.choices[0].message.content.trim()}})),Mve,Nve,Pve,Fve,Ive=s((()=>{jve(),d5(),Mve=`deepseek`,Nve=`DeepSeek`,Pve=`deepseek-v4-flash`,Fve={serviceId:Mve,serviceLabel:Nve,apiLabel:f5,developerURL:Dve,apiKeyURL:Ove,apiKeyPattern:kve,markdownSupported:!0,availability:l5,translate:u5(Ave,Pve,f5,{reasoning:!1})}})),Lve,Rve,zve,Bve,Vve,Hve,p5,m5,Uve,Wve,h5,Gve=s((()=>{Lve=`google`,Rve=`Google Cloud Translation`,zve=`Cloud Translation API`,Bve=`https://console.cloud.google.com/apis/library/translate.googleapis.com`,Vve=`https://console.cloud.google.com/apis/api/translate.googleapis.com/credentials`,Hve=/AIza[0-9A-Za-z-_]{35}/,p5=[`ab,ace,ach,af,ak,alz,am,ar,as,awa,ay,az`,`ba,ban,bbc,be,bem,bew,bg,bho,bik,bm,bn,br,bs,bts,btx,bua`,`ca,ceb,cgg,chm,ckb,cnh,co,crh,crs,cs,cv,cy`,`da,de,din,doi,dov,dv,dz`,`ee,el,en,eo,es,et,eu`,`fa,ff,fi,fil,fj,fr,fr-CA,fr-FR,fy`,`ga,gaa,gd,gl,gn,gom,gu`,`ha,haw,he,hi,hil,hmn,hr,hrx,ht,hu,hy`,`id,ig,ilo,is,it,iw`,`ja,jv,jw`,`ka,kk,km,kn,ko,kri,ktu,ku,ky`,`la,lb,lg,li,lij,lmo,ln,lo,lt,ltg,luo,lus,lv`,`mai,mak,mg,mi,min,mk,ml,mn,mni-Mtei,mr,ms,ms-Arab,mt,my`,`ne,new,nl,no,nr,nso,nus,ny`,`oc,om,or`,`pa,pa-Arab,pag,pam,pap,pl,ps,pt,pt-BR,pt-PT`,`qu`,`rn,ro,rom,ru,rw`,`sa,scn,sd,sg,shn,si,sk,sl,sm,sn,so,sq,sr,ss,st,su,sv,sw,szl`,`ta,te,tet,tg,th,ti,tk,tl,tn,tr,ts,tt`,`ug,uk,ur,uz`,`vi`,`xh`,`yi,yo,yua,yue`,`zh,zh-CN,zh-TW,zu`].join(`,`).split(`,`),m5=e=>{let t=e.replace(/^([a-z]{2,3})[-_]([a-z]{2,4})$/i,(e,t,n)=>`${t.toLowerCase()}-${n.toUpperCase()}`);if(p5.includes(t))return t;if([`zh-HK`,`zh-MO`].includes(t))return`zh-TW`;let[n]=t.split(`-`);if(p5.includes(n))return n},Uve=async({sourceLanguage:e,targetLanguage:t})=>!!m5(e)&&!!m5(t),Wve=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{if(t=m5(t)??``,n=m5(n)??``,!t)throw Error(`Source locale is not supported.`);if(!n)throw Error(`Target locale is not supported.`);let i={q:e,source:t,target:n,format:`html`};try{let e=await fetch(`https://translation.googleapis.com/language/translate/v2`,{method:`POST`,headers:{"Content-Type":`application/json`,"X-goog-api-key":r},body:JSON.stringif
|
|||
|
|
|
|||
|
|
@media (width < 768px) {flex-direction:column;overflow:hidden;height:72dvh;
|
|||
|
|
}.nav:where(.svelte-5b1zbe) {flex:none;display:flex;gap:4px;
|
|||
|
|
|
|||
|
|
@media (width < 768px) {flex-direction:column;
|
|||
|
|
}}.listbox {flex:none;background-color:transparent;}.content-pane:where(.svelte-5b1zbe) {overflow:auto;flex:auto;}}.service-link.svelte-5b1zbe {font-size:var(--sui-font-size-small);}.filter-tools.svelte-5b1zbe {display:flex;gap:8px;}`}}));function Bxe(e,t){k(t,!0);{let t=e=>{var t=Vxe(),n=I(t);PI(n,{flex:!0});var r=L(n,2);bI(r,{variant:`primary`,onclick:()=>N5.resolve(!0),children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`replace`)]),H(e,n)},$$slots:{default:!0}});var i=L(r,2);bI(i,{variant:`primary`,onclick:()=>N5.resolve(!1),children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`keep_both`)]),H(e,n)},$$slots:{default:!0}}),bI(L(i,2),{variant:`secondary`,onclick:()=>N5.resolve(void 0),children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`cancel`)]),H(e,n)},$$slots:{default:!0}}),H(e,t)},n=M(()=>Y(`file_name_conflict_resolution`));iL(e,{get title(){return z(n)},onCancel:()=>N5.resolve(void 0),get open(){return N5.showDialog},set open(e){N5.showDialog=e},footer:t,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`file_name_conflict_confirmation_with_name`,{values:{count:N5.count,name:N5.name}})]),H(e,n)},$$slots:{footer:!0,default:!0}})}A()}var Vxe,Hxe=s((()=>{Z(),J(),X(),$(),F5(),Vxe=B(`<!> <!> <!> <!>`,1)}));function Uxe(e,t){k(t,!0),G(e,Jxe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=q(t,`readonly`,3,!1),o=q(t,`invalid`,3,!1),s=q(t,`required`,3,!1),c=q(t,`collectionName`,3,``),l=q(t,`fileName`,3,void 0),u=q(t,`typedKeyPath`,3,void 0),d=q(t,`componentName`,3,void 0),f=q(t,`entry`,3,void 0),p=N(void 0),m=N(void 0),h=N(void 0),g=N(void 0),_=M(()=>t.fieldConfig.widget),v=M(()=>z(_)===`image`),y=M(()=>({value:t.value,entry:f(),collectionName:c(),fileName:l(),componentName:d(),typedKeyPath:u(),fieldConfig:t.fieldConfig})),b=M(()=>{if(!t.value)return``;if(z(m)){let{publicPath:e,entryRelative:r,hasTemplateTags:i}=n()?.files[t.value]?.folder??{};return RE([r||i?``:e||``,decodeURI(z(m).name.normalize())])}if(!t.value.startsWith(`blob:`)){let e=decodeURI(t.value);if(Pp(e)){let t=new URL(e);if(t.search)return t.search=``,`${t}…`}return e}return``}),x=async()=>{t.value?.startsWith(`blob:`)&&n()&&P(m,n().files[t.value]?.file,!0),t.value?(z(v)&&/^https?:/.test(t.value)?(P(p,void 0),P(h,`image`),P(g,t.value,!0)):t.value.startsWith(`blob:`)||(P(p,WF({...z(y)}),!0),P(h,void 0),P(g,void 0)),!z(p)&&!z(g)&&(P(h,await DT(t.value),!0),P(g,z(h)?await BM({...z(y),thumbnail:!0}):void 0,!0))):(P(p,void 0),P(m,void 0),P(h,void 0),P(g,void 0))};ri(()=>{t.value,Gi(()=>{x()})});var S=qxe(),C=F(S),w=e=>{var n=Wxe(),r=F(n);{let e=e=>{tI(e,{name:`arrow_upward`})},n=M(()=>!t.onMoveUp),i=M(()=>Y(`move_up`));bI(r,{size:`small`,iconic:!0,get disabled(){return z(n)},get"aria-label"(){return z(i)},onclick:()=>{t.onMoveUp?.()},startIcon:e,$$slots:{startIcon:!0}})}var i=L(r,2);{let e=e=>{tI(e,{name:`arrow_downward`})},n=M(()=>!t.onMoveDown),r=M(()=>Y(`move_down`));bI(i,{size:`small`,iconic:!0,get disabled(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>{t.onMoveDown?.()},startIcon:e,$$slots:{startIcon:!0}})}O(n),H(e,n)};W(C,e=>{(t.onMoveUp||t.onMoveDown)&&!a()&&e(w)});var T=L(C,2),E=e=>{j3(e,{get kind(){return z(h)},get src(){return z(g)},variant:`tile`,checkerboard:!0})},ee=e=>{j3(e,{get kind(){return z(p).kind},get asset(){return z(p)},variant:`tile`,checkerboard:!0})},te=e=>{var t=Gxe();tI(F(t),{name:`draft`}),O(t),H(e,t)};W(T,e=>{z(h)&&z(g)?e(E):z(p)?e(ee,1):e(te,-1)});var ne=L(T,2),re=F(ne),ie=e=>{var n=Kxe(),r=F(n,!0);O(n),R(()=>{K(n,`id`,`${t.fieldId??``}-value`),K(n,`aria-readonly`,a()),K(n,`aria-invalid`,o()),K(n,`aria-required`,s()),K(n,`aria-labelledby`,`${t.fieldId??``}-label`),K(n,`aria-errormessage`,`${t.fieldId??``}-error`),U(r,z(b))}),H(e,n)};W(re,e=>{typeof t.value==`string`&&e(ie)});var ae=L(re,2),oe=F(ae),se=e=>{{let n=M(()=>Y(`replace`)),r=M(()=>Y(`replace_${z(_)}`));bI(e,{get disabled(){return a()},variant:`tertiary`,size:`small`,get label(){return z(n)},get"aria-label"(){return z(r)},get"aria-controls"(){return`${t.fieldId??``}-value`},onclick:()=>{t.onReplace()}})}};W(oe,e=>{t.onReplace&&e(se)});var ce=L(oe,2),le=e=
|
|||
|
|
--sui-button-tertiary-background-color,
|
|||
|
|
var(--sui-button-background-color)
|
|||
|
|
);font-family:var(--sui-control-font-family);font-size:var(--sui-font-size-small);cursor:pointer;transition:all 200ms;&:focus-visible {z-index:1;outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);outline-offset:var(--sui-focus-ring-offset);}&:not([aria-disabled='true']):is(:where(.svelte-1jvz1op):hover, :where(.svelte-1jvz1op):focus-visible) {background-color:var(
|
|||
|
|
--sui-button-tertiary-background-color-focus,
|
|||
|
|
var(--sui-hover-background-color)
|
|||
|
|
);}&:not([aria-disabled='true']):active {background-color:var(
|
|||
|
|
--sui-button-tertiary-background-color-active,
|
|||
|
|
var(--sui-active-background-color)
|
|||
|
|
);}.icon {color:var(--sui-secondary-foreground-color);font-size:48px;}&[aria-disabled='true'] {pointer-events:none !important;* {opacity:0.5;}}
|
|||
|
|
|
|||
|
|
@media (pointer: coarse) {cursor:default;&:active,
|
|||
|
|
&:focus {
|
|||
|
|
/* Reset the style because the element is non-interactive on touch devices */background-color:var(--sui-button-background-color) !important;}
|
|||
|
|
}&.invalid {border-color:var(--sui-error-border-color);}}.label.svelte-1jvz1op {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0 4px;white-space:nowrap;.button {margin-block:0;}}`},Ea([`click`,`keydown`])}));function rSe(e,t){k(t,!0),G(e,sSe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=e=>{Xxe(e,{get allowDrop(){return z(we)},get invalid(){return h()},get readonly(){return m()},get processing(){return z(C)},get isImageField(){return z(ue)},get multiple(){return z(_e)},onFilePaste:e=>{Ee([{file:e,folder:z(me)}])},get showSelectAssetsDialog(){return z(g)},set showSelectAssetsDialog(e){P(g,e,!0)},get replaceMode(){return z(_)},set replaceMode(e){P(_,e,!0)}})},o=e=>{var n=V(),r=I(n),i=e=>{var n=V(),r=I(n),i=e=>{var n=V(),r=I(n),i=e=>{var n=iSe(),r=I(n);vo(r,23,f,(e,t)=>`${e}|${t}`,(e,n,r)=>{{let i=M(()=>z(r)>0?()=>ke(z(r)-1):void 0),a=M(()=>z(r)<f().length-1?()=>ke(z(r)):void 0);Uxe(e,tc(()=>z(be),{get value(){return z(n)},get fieldId(){return`${t.fieldId??``}-${z(r)??``}`},onReplace:()=>{P(_,!0),P(v,z(r),!0),P(g,!0)},onRemove:()=>Oe(z(r)),get onMoveUp(){return z(i)},get onMoveDown(){return z(a)}}))}}),O(r);var i=L(r,2),o=e=>{a(e)};W(i,e=>{f().length<z(re)&&e(o)}),H(e,n)},o=M(()=>Array.isArray(f()));W(r,e=>{z(o)&&e(i)}),H(e,n)},o=e=>{Uxe(e,tc(()=>z(be),{get value(){return f()},get fieldId(){return t.fieldId},onReplace:()=>{P(_,!0),P(g,!0)},onRemove:Te}))};W(r,e=>{z(_e)?e(i):typeof f()==`string`&&f()&&e(o,1)}),H(e,n)},o=e=>{a(e)};W(r,e=>{f()?.length&&!z(C)?e(i):e(o,-1)}),H(e,n)},{valueStoreKey:s=`currentValues`,fieldContext:c=void 0,parentComponentNames:l=[]}=Lt(`field-editor`)??{},u=c===`rich-text-editor-component`,d=l.at(-1),f=q(t,`currentValue`,15),p=q(t,`required`,3,!0),m=q(t,`readonly`,3,!1),h=q(t,`invalid`,3,!1),g=N(!1),_=N(!1),v=N(-1),y=N(!1),b=N(!1),x=N(``),S=N(void 0),C=N(!1),w=N(Nr([])),T=N(Nr([])),te=N(Nr([])),ne=M(()=>t.fieldConfig.widget),re=M(()=>E(t.fieldConfig.max,1/0)),ie=M(()=>t.fieldConfig.accept),ae=M(()=>E(t.fieldConfig.choose_url,!0)),oe=M(()=>n()?.originalEntry),se=M(()=>n()?.collectionName??``),ce=M(()=>n()?.fileName),le=M(()=>n()?.isIndexFile??!1),ue=M(()=>z(ne)===`image`),de=M(()=>z(ue)?`image`:void 0),D=M(()=>OF({fieldConfig:t.fieldConfig})),fe=M(()=>z(D).config),pe=M(()=>I5({collectionName:z(se),fileName:z(ce),componentName:d,typedKeyPath:t.typedKeyPath,isIndexFile:z(le)})),me=M(()=>L5(z(pe))),he=M(()=>R5({entry:n()?.originalEntry,folder:z(me)})),ge=M(()=>B5({kind:z(de),folder:z(me),folderPath:z(he),unsavedAssets:z(te)})),_e=M(()=>mP(t.fieldConfig)),ve=M(()=>z(fe).max_file_size),ye=M(()=>!p()&&(!c||![`rich-text-editor-component`,`single-subfield-list-field`].includes(c))),be=M(()=>({fieldConfig:t.fieldConfig,readonly:m(),invalid:h(),required:p(),showRemoveButton:z(ye),collectionName:z(se),fileName:z(ce),componentName:d,typedKeyPath:t.typedKeyPath,entry:z(oe)})),xe=M(()=>Object.entries(Mj).filter(([,{isEnabled:e}])=>e?.(t.fieldConfig)??!0)),Se=M(()=>z(D).enabled&&!!z(me)),Ce=M(()=>+!!z(Se)+z(xe).length),we=M(()=>z(Ce)===1),Te=()=>{z(S)?.reset(),z(_e)||(f(``),er())},Ee=async e=>{if(!n())return;let r=z(_e)?void 0:f();Te(),P(C,!0),P(w,[],!0);let i=await Promise.all(e.map(e=>K5({draft:n(),resource:e,libraryConfig:z(fe)}))),a=[],o=!1,c=z(_e)?Object.keys(n()[s][t.locale]).filter(e=>e.startsWith(`${t.keyPath}.`)).map(e=>Number(e.replace(`${t.keyPath}.`,``))).pop()??-1:-1;i.forEach(({value:e,credit:r,oversizedFileName:i},l)=>{if(e)if(o=!0,z(_e)){let r=z(_)?z(v):c+1+l;_n(D6,Gi(n)[s][t.locale][`${t.keyPath}.${r}`]=e,Gi(n))}else f(u?e.replaceAll(` `,`%20`):e);r&&a.push(r),i&&z(w).push(i)}),!o&&!z(_e)&&r!==void 0&&f(r),a.length?(P(x,a.join(`
|
|||
|
|
`),!0),P(b,!0)):P(x,``),z(w).length&&P(y,!0),P(C,!1)},De=async({files:e})=>{if(e.length)if(z(Se)){let t=await P5({files:e,listedAssets:z(ge)});if(t===void 0)return;Ee(e.map(e=>({file:e,folder:z(me),replace:t})))}else P(T,e,!0),P(g,!0)},Oe=e=>{if(!n())return;let r=At(n()[s][t.locale]),i=[];for(let a=0;;a+=1){let o=`${t.keyPath}.${a}`,c=`${t.keyPath}.${a+1}`;if(a<e)i.push(r[o]);else if(c in r)i.push(r[c]),_n(D6,Gi(n)[s][t.locale][o]=r[c],Gi(n));else{_n(D6,Gi(n)[s][t.locale][o]=null,Gi(n)),delete n()[s][t.locale][o];break}}f(Object.values(i))},ke=e=>{n()&&(r=>{var i=ee(r,2);_n(D6,Gi(n)[s][t.locale][`${t.keyPath}.${e}`]=i[0],Gi(n)),_n(D6,Gi(n)[s][t.locale][`${t.keyPath}.${e+1}`]=i[1],Gi(n))})([n()[s][t.locale][`${t.keyPath}.${e+1}`],n()[s][t.locale][`${t.keyPath}.${e}`]])};ri(()=>{(async()=>{n()?.files?P(te,await G5({draft:n(),targetFolderPath:z(he)}),!0):P(te,[],!0)})()});var Ae=oSe(),je=I(Ae),Me=e=>{{let t=M(()=>z(ie)??(z(ue)?lM.join(`,`):void 0));qs(W6(e,{get multiple(){return z(_e)},get disabled(){return m()},get accept(){return z(t)},onDrop:De,children:(e,t)=>{o(e)},$$slots:{default:!0}}),e=>P(S,e,!0),()=>z(S))}},Ne=e=>{o(e)};W(je,e=>{z(we)?e(Me):e(Ne,-1)});var Pe=L(je,2);{let e=M(()=>!z(_)&&z(_e));Mxe(Pe,{get kind(){return z(de)},get multiple(){return z(e)},get accept(){return z(ie)},get canEnterURL(){return z(ae)},get entryDraft(){return D6},get fieldConfig(){return t.fieldConfig},get assetLibraryFolderMap(){return z(pe)},get enabledCloudServiceEntries(){return z(xe)},onSelect:Ee,get open(){return z(g)},set open(e){P(g,e,!0)},get pendingFiles(){return z(T)},set pendingFiles(e){P(T,e,!0)}})}var Fe=L(Pe,2);Bxe(Fe,{});var Ie=L(Fe,2);Lbe(Ie,{get oversizedFileNames(){return z(w)},get maxSize(){return z(ve)},get open(){return z(y)},set open(e){P(y,e,!0)}});var Le=L(Ie,2);{let e=M(()=>Y(`assets_dialog.photo_credit.title`)),t=M(()=>Y(`copy`));iL(Le,{get title(){return z(e)},get okLabel(){return z(t)},onOk:()=>{navigator.clipboard.writeText(z(x))},get open(){return z(b)},set open(e){P(b,e,!0)},children:(e,t)=>{var n=aSe(),r=I(n),i=F(r,!0);O(r);var a=L(r,2);T0(F(a),{dir:`auto`,flex:!0,readonly:!0,get value(){return z(x)},onclick:e=>{e.target.focus(),e.target.select()}}),O(a),R(e=>U(i,e),[()=>Y(`assets_dialog.photo_credit.description`)]),H(e,n)},$$slots:{default:!0}})}H(e,Ae),A(),i()}var iSe,aSe,oSe,sSe,cSe=s((()=>{Z(),J(),X(),$(),dc(),zxe(),Hxe(),G6(),zbe(),Yxe(),nSe(),M6(),F5(),V5(),q5(),Pj(),kF(),hP(),dM(),iSe=B(`<div role="none" class="item-list svelte-17jic1t"></div> <!>`,1),aSe=B(`<div role="none"> </div> <div role="none"><!></div>`,1),oSe=B(`<!> <!> <!> <!> <!>`,1),sSe={hash:`svelte-17jic1t`,code:`.item-list.svelte-17jic1t {display:flex;flex-direction:column;gap:4px;}`}}));function lSe(e,t){k(t,!0),G(e,fSe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=q(t,`typedKeyPath`,3,void 0),o=N(void 0),s=N(void 0),c=M(()=>t.fieldConfig.widget),l=M(()=>z(c)===`image`),u=M(()=>n()?.originalEntry),d=M(()=>n()?.collectionName??``),f=M(()=>n()?.fileName);ri(()=>{t.value,Gi(async()=>{P(o,t.value?z(l)?`image`:await DT(t.value):void 0,!0),P(s,z(o)?await BM({value:t.value,entry:z(u),collectionName:z(d),fileName:z(f),fieldConfig:t.fieldConfig,typedKeyPath:a()}):void 0,!0)})});var p=V(),m=I(p),h=e=>{var t=uSe(),n=F(t);{let e=M(()=>[`audio`,`video`].includes(z(o)));j3(n,{get kind(){return z(o)},get src(){return z(s)},get controls(){return z(e)}})}O(t),H(e,t)},g=e=>{var n=dSe(),r=F(n,!0);O(n),R(()=>U(r,t.value)),H(e,n)},_=M(()=>t.value.trim()&&!t.value.startsWith(`blob:`));W(m,e=>{z(o)&&z(s)?e(h):z(_)&&e(g,1)}),H(e,p),A(),i()}var uSe,dSe,fSe,pSe=s((()=>{Z(),J(),dc(),z3(),VM(),AT(),M6(),uSe=B(`<p class="svelte-28vcoi"><!></p>`),dSe=B(`<p class="svelte-28vcoi"> </p>`),fSe={hash:`svelte-28vcoi`,code:`
|
|||
|
|
/* Remove the padding to make the image full-width on small screens */
|
|||
|
|
@media (width < 768px) {[role='document'] section > p.svelte-28vcoi:has(img) {margin-inline:calc(var(--entry-preview-padding-inline) * -1);}
|
|||
|
|
}`}}));function mSe(e,t){k(t,!0);var n=V(),r=I(n),i=e=>{var n=V(),r=I(n),i=e=>{var n=V();vo(I(n),19,()=>t.currentValue,(e,t)=>`${e}-${t}`,(e,n)=>{lSe(e,{get value(){return z(n)},get fieldConfig(){return t.fieldConfig},get typedKeyPath(){return t.typedKeyPath}})}),H(e,n)},a=M(()=>Array.isArray(t.currentValue));W(r,e=>{z(a)&&e(i)}),H(e,n)},a=M(()=>mP(t.fieldConfig)),o=e=>{lSe(e,{get value(){return t.currentValue},get fieldConfig(){return t.fieldConfig},get typedKeyPath(){return t.typedKeyPath}})};W(r,e=>{z(a)?e(i):typeof t.currentValue==`string`&&t.currentValue&&e(o,1)}),H(e,n),A()}var hSe=s((()=>{Z(),J(),pSe(),hP()})),u7,gSe,_Se,d7=s((()=>{Zp(),M6(),u7=({entryDraft:e,valueStoreKey:t=`currentValues`,keyPath:n,locale:r})=>Object.entries(dn(e)[t][r]??{}).filter(([e])=>e.startsWith(`${n}.`)).map(([e,t])=>[e.replace(`${n}.`,``),t]),gSe=({pairs:e,edited:t})=>e.map(([e],n,r)=>{if(!e.trim()&&t[n])return`empty`;if(e.trim()&&r.findIndex(t=>t[0]===e)!==n)return`duplicate`}),_Se=({entryDraft:e,keyPath:t,locale:n,fieldConfig:r,pairs:i})=>{let{i18n:a}=r;O6.set(!1),e.update(e=>(e&&Object.entries(e.currentValues).forEach(([e,r])=>{(e===n||a===`duplicate`)&&(Object.entries(r).forEach(([e])=>{e.startsWith(`${t}.`)&&delete r[e]}),i.forEach(([e,n])=>{r[`${t}.${e}`]=n}))}),e)),O6.set(!0)}}));function vSe(e,t){k(t,!0),G(e,ESe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Lt(`field-editor`)??{},o=q(t,`readonly`,3,!1),s=M(()=>E(t.fieldConfig.i18n,!1)),c=M(()=>t.fieldConfig.key_label),l=M(()=>t.fieldConfig.value_label),u=M(()=>E(t.fieldConfig.max,1/0)),d=M(()=>z(c)||Y(`key_value.key`)),f=M(()=>z(l)||Y(`key_value.value`)),p=N(Nr([])),m=N(Nr([])),h=0,g=Nr([]),_=N(Nr([])),v=N(Nr([])),y=()=>{if(!n())return;let e=u7({entryDraft:D6,valueStoreKey:a,keyPath:t.keyPath,locale:t.locale});(0,ySe.default)(z(p),e)||(P(p,[...e],!0),P(m,e.map((e,t)=>t<z(m).length?z(m)[t]:(h+=1,h-1)),!0),P(_,e.map(()=>!1),!0)),!z(p).length&&n()[a][t.locale][t.keyPath]!==null&&_n(D6,Gi(n)[a][t.locale][t.keyPath]=null,Gi(n))},b=()=>{n()&&(Object.entries(n()[a]).forEach(([e,n])=>{(e===t.locale||z(s)===`duplicate`)&&delete n[t.keyPath]}),z(p).push([``,``]),z(m).push(h),h+=1,z(_).push(!1),window.requestAnimationFrame(()=>{g[z(p).length-1].querySelector(`input`).focus()}))},x=e=>{z(p).splice(e,1),z(m).splice(e,1),z(_).splice(e,1)},S=()=>{P(v,gSe({pairs:z(p),edited:z(_)}),!0),!(!n()||z(v).some(Boolean)||z(p).some(([e])=>!e.trim()))&&_Se({entryDraft:D6,fieldConfig:t.fieldConfig,keyPath:t.keyPath,locale:t.locale,pairs:z(p)})};ri(()=>{At(n()?.[a][t.locale]),Gi(()=>{y()})}),ri(()=>{At(z(p)),Gi(()=>{S()})});var C=TSe(),w=I(C),T=e=>{var n=CSe(),r=F(n),i=F(r),a=F(i),s=F(a,!0);O(a);var c=L(a),l=F(c,!0);O(c);var h=L(c),y=e=>{var t=bSe();R(e=>K(t,`aria-label`,e),[()=>Y(`key_value.action`)]),H(e,t)};W(h,e=>{o()||e(y)}),O(i),O(r);var S=L(r);vo(S,23,()=>z(p),(e,t)=>z(m)[t],(e,n,r)=>{var i=SSe(),a=F(i),s=F(a);{let e=M(()=>!!z(v)[z(r)]),i=M(()=>z(v)[z(r)]?`${t.fieldId}-kv-error`:void 0);oL(s,{dir:`ltr`,get readonly(){return o()},flex:!0,get invalid(){return z(e)},get"aria-label"(){return z(d)},get"aria-errormessage"(){return z(i)},oninput:()=>{z(_)[z(r)]=!0},onkeydown:e=>{e.key===`Enter`&&!e.isComposing&&g[z(r)].querySelector(`td.value input`).focus()},get value(){return z(n)[0]},set value(e){z(n)[0]=e}})}O(a);var c=L(a),l=F(c);{let e=M(()=>KC(t.locale));oL(l,{get dir(){return z(e)},get readonly(){return o()},flex:!0,get"aria-label"(){return z(f)},onkeydown:e=>{e.key===`Enter`&&!e.isComposing&&(z(r)<z(p).length-1?g[z(r)+1].querySelector(`input`).focus():z(p).length<z(u)&&b())},get value(){return z(n)[1]},set value(e){z(n)[1]=e}})}O(c);var m=L(c),h=e=>{var t=xSe(),n=F(t);{let e=e=>{tI(e,{name:`close`})},t=M(()=>Y(`remove`));bI(n,{variant:`ghost`,size:`small`,iconic:!0,get"aria-label"(){return z(t)},onclick:()=>{x(z(r))},startIcon:e,$$slots:{startIcon:!0}})}O(t),H(e,t)};W(m,e=>{o()||e(h)}),O(i),qs(i,(e,t)=>g[t]=e,e=>g?.[e],()=>[z(r)]),H(e,i)}),O(S),O(n),R(()=>{U(s,z(d)),U(l,z(f))}),H(e,n)};W(w,e=>{z(p).length&&e(T)});var ee=L(w,2),te=e=>{D5(e,{get id(){return`${t.field
|
|||
|
|
td.svelte-u0prcz {border-width:0;}th.svelte-u0prcz {padding-block:4px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:start;&.key,
|
|||
|
|
&.value {width:50%;}}td.svelte-u0prcz {padding:0;vertical-align:middle;}`}}));function OSe(e,t){k(t,!0),G(e,MSe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=M(()=>t.fieldConfig.key_label),o=M(()=>t.fieldConfig.value_label),s=M(()=>z(a)||Y(`key_value.key`)),c=M(()=>z(o)||Y(`key_value.value`)),l=N(Nr([])),u=()=>{let e=u7({entryDraft:D6,keyPath:t.keyPath,locale:t.locale});(0,kSe.default)(z(l),e)||P(l,e,!0)};ri(()=>{n()&&(At(n().currentValues[t.locale]),Gi(()=>{u()}))});var d=V(),f=I(d),p=e=>{var t=jSe(),n=F(t),r=F(n),i=F(r),a=F(i,!0);O(i);var o=L(i),u=F(o,!0);O(o),O(r),O(n);var d=L(n);vo(d,23,()=>z(l),([e,t],n)=>`${e}-${n}`,(e,t)=>{var n=M(()=>ee(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=ASe(),o=F(a),s=F(o,!0);O(o);var c=L(o),l=F(c,!0);O(c),O(a),R(()=>{U(s,r()),U(l,i())}),H(e,a)}),O(d),O(t),R(()=>{U(a,z(s)),U(u,z(c))}),H(e,t)};W(f,e=>{z(l).length&&e(p)}),H(e,d),A(),i()}var kSe,ASe,jSe,MSe,NSe=s((()=>{Z(),J(),X(),kSe=u(CO()),dc(),M6(),d7(),ASe=B(`<tr><td class="svelte-11sa460"> </td><td class="svelte-11sa460"> </td></tr>`),jSe=B(`<table class="svelte-11sa460"><thead><tr><th scope="col" class="svelte-11sa460"> </th><th scope="col" class="svelte-11sa460"> </th></tr></thead><tbody></tbody></table>`),MSe={hash:`svelte-11sa460`,code:`table.svelte-11sa460 {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-11sa460 {padding-block:4px;width:50%;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:start;}td.svelte-11sa460 {&:empty::after {content:'\\00a0'; /* nbsp */}}`}}));function PSe(e,t){k(t,!0);let n=q(t,`expanded`,3,!1);{let t=M(()=>n()?`expand_more`:Hh()?`chevron_left`:`chevron_right`);tI(e,{get name(){return z(t)}})}A()}var FSe=s((()=>{Z(),J(),X(),$()}));function f7(e,t){k(t,!0);let n=q(t,`disabled`,3,!1),r=q(t,`items`,19,()=>[]),i=q(t,`addItem`,3,()=>void 0),a=M(()=>t.fieldConfig.name),o=M(()=>t.fieldConfig.label),s=M(()=>t.fieldConfig.types),c=M(()=>t.fieldConfig.widget===`list`?t.fieldConfig:void 0),l=M(()=>z(c)?.label_singular??``),u=M(()=>z(c)?.max??void 0),d=M(()=>Y(`add_x`,{values:{name:z(l)||z(o)||z(a)}})),f=M(()=>n()||typeof z(u)==`number`&&r().length===z(u));var p=V(),m=I(p),h=e=>{AI(e,{variant:`tertiary`,get label(){return z(d)},get disabled(){return z(f)},startIcon:e=>{tI(e,{name:`add`})},endIcon:e=>{},popup:e=>{{let t=M(()=>Y(`select_list_type`));YL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=V();vo(I(n),17,()=>z(s),({name:e,label:t})=>e,(e,t)=>{let n=()=>z(t).name,r=()=>z(t).label;{let t=M(()=>r()||n());eR(e,{get label(){return z(t)},onclick:()=>i()({type:n()})})}}),H(e,n)},$$slots:{default:!0}})}},$$slots:{startIcon:!0,endIcon:!0,popup:!0}})},g=M(()=>Array.isArray(z(s))),_=e=>{bI(e,{variant:`tertiary`,get label(){return z(d)},get disabled(){return z(f)},onclick:()=>i()(),startIcon:e=>{tI(e,{name:`add`})},$$slots:{startIcon:!0}})};W(m,e=>{z(g)?e(h):e(_,-1)}),H(e,p),A()}var ISe=s((()=>{Z(),J(),X(),$()}));function p7(e,t){k(t,!0),G(e,zSe);let n=q(t,`label`,3,``),r=q(t,`expanded`,15),i=q(t,`centerContent`,3,void 0),a=q(t,`endContent`,3,void 0);var o=RSe(),s=F(o),c=F(s);{let e=e=>{PSe(e,{get expanded(){return r()}})},i=M(()=>r()?Y(`collapse`):Y(`expand`));bI(c,{size:`small`,get"aria-label"(){return z(i)},get"aria-expanded"(){return r()},get"aria-controls"(){return t.controlId},onclick:()=>{r(!r()),t.toggleExpanded?.()},startIcon:e,children:(e,t)=>{var r=V(),i=I(r),a=e=>{var t=LSe(),r=F(t,!0);O(t),R(()=>U(r,n())),H(e,t)};W(i,e=>{n()&&e(a)}),H(e,r)},$$slots:{startIcon:!0,default:!0}})}O(s);var l=L(s,2);Ao(F(l),()=>i()??D),O(l);var u=L(l,2);Ao(F(u),()=>a()??D),O(u),O(o),H(e,o),A()}var LSe,RSe,zSe,m7=s((()=>{Z(),J(),X(),$(),FSe(),LSe=B(`<span role="none" class="type svelte-57h597"> </span>`),RSe=B(`<div role="none" class="header svelte-57h597"><div role="none" class="svelte-57h597"><!></div> <div role="none" class="svelte-57h597"><!></div> <div role="none" class="svelte-57h597"><!></div></div>`),zSe={hash:`svelte-57h597`,code:`.header.svelte
|
|||
|
|
${((z(ve).length===1?z(S):void 0)||z(f)||z(u))??``}`),K(He,`id`,`list-${n}-item-list`),Ue=ds(He,1,`item-list svelte-n5zzp2`,null,Ue,{collapsed:!z(_e)})}),H(e,Me),A(),a()}var A7,gCe,j7,_Ce,vCe,yCe,bCe,xCe,SCe=s((()=>{Z(),J(),X(),$(),p(),Ip(),gc(),dc(),H6(),FSe(),G8(),c9(),ISe(),m7(),VM(),M6(),x7(),fCe(),k7(),jP(),o5(),sw(),jE(),A7=B(`<!> <!>`,1),gCe=B(`<div role="none" class="toolbar top add svelte-n5zzp2"><!></div>`),j7=B(`<!> <!> <!>`,1),_Ce=B(`<div role="none" class="summary svelte-n5zzp2"><!> <!></div>`),vCe=B(`<div role="none" class="item svelte-n5zzp2"><!> <div role="none" class="item-body"><!></div></div>`),yCe=B(`<div role="none" class="toolbar bottom add svelte-n5zzp2"><!> <!></div>`),bCe=B(`<div role="none" class="toolbar top svelte-n5zzp2"><!> <div role="none" class="summary"> </div> <!> <!></div> <!> <div role="none"></div> <!>`,1),xCe={hash:`svelte-n5zzp2`,code:`.toolbar.svelte-n5zzp2 {display:flex;align-items:center;&.top.add {margin-block:8px 16px !important;}&.bottom.add {margin-block:16px 0 !important;}}.item-list.svelte-n5zzp2 {&.collapsed {display:none;}}.item.svelte-n5zzp2 {margin:16px 0;border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);.summary:where(.svelte-n5zzp2) {display:flex;align-items:center;gap:8px;padding:8px;&:empty {display:none;}}}`}}));function CCe(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Lt(`field-editor`)??{},o=q(t,`currentValue`,7),s=q(t,`required`,3,!0),c=q(t,`readonly`,3,!1),l=q(t,`invalid`,3,!1),u=N(!1),d=N(``),f=M(()=>t.fieldConfig.i18n),p=()=>{P(d,o()?.join(`
|
|||
|
|
`)??``,!0)},m=(e=z(d).split(/\n/g))=>{Object.keys(n()?.[a]??{}).forEach(r=>{z(f)!==`duplicate`&&r!==t.locale||(Object.keys(n()?.[a][r]??{}).forEach(e=>{e.match(`^${jp(t.keyPath)}\\.\\d+$`)&&delete n()?.[a][r][e]}),e.forEach((e,i)=>{_n(D6,Gi(n)[a][r][`${t.keyPath}.${i}`]=e,Gi(n))}))})},h=()=>{o(z(d).split(/\n/g).map(e=>e.trim()).filter(e=>!!e)),m(o())};lc(()=>{P(u,!0)}),ri(()=>{z(u)&&(o(),Gi(()=>{p()}))});{let n=M(()=>KC(t.locale));T0(e,{get dir(){return z(n)},autoResize:!0,flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-errormessage"(){return`${t.fieldId??``}-error`},oninput:()=>{m()},onblur:()=>{h()},get value(){return z(d)},set value(e){P(d,e,!0)}})}A(),i()}var wCe=s((()=>{Z(),J(),$(),Ip(),dc(),M6(),QC()}));function TCe(e,t){let n=za();k(t,!0);let r=ec(t,ECe);n2(e,{get"aria-labelledby"(){return`list-${n}-summary`},children:(e,n)=>{var i=V(),a=I(i),o=e=>{{let n=M(()=>({...r,fieldConfig:t.fieldConfig}));hCe(e,tc(()=>z(n)))}},s=M(()=>a5(t.fieldConfig).hasSubFields),c=e=>{{let n=M(()=>({...r,fieldConfig:t.fieldConfig}));CCe(e,tc(()=>z(n)))}};W(a,e=>{z(s)?e(o):e(c,-1)}),H(e,i)},$$slots:{default:!0}}),A()}var ECe,DCe=s((()=>{Z(),J(),$(),SCe(),wCe(),o5(),ECe=new Set([`$$slots`,`$$events`,`$$legacy`,`fieldConfig`])}));function OCe(e,t){let n=za();G(e,jCe);let r=`${n}-header`;var i=ACe(),a=F(i),o=e=>{var n=kCe(),i=F(n,!0);O(n),R(()=>{K(n,`id`,r),U(i,t.label)}),H(e,n)};W(a,e=>{t.label&&e(o)});var s=L(a,2);Ao(F(s),()=>t.children??D),O(s),O(i),R(()=>K(i,`aria-labelledby`,t.label?r:void 0)),H(e,i)}var kCe,ACe,jCe,MCe=s((()=>{Z(),J(),kCe=B(`<div role="none" class="header svelte-ygwzbn"> </div>`),ACe=B(`<div role="group" class="subsection svelte-ygwzbn"><!> <div role="none" class="items svelte-ygwzbn"><!></div></div>`),jCe={hash:`svelte-ygwzbn`,code:`.subsection.svelte-ygwzbn {margin:16px auto;border:2px solid var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);.title {font-size:inherit;font-weight:var(--sui-font-weight-normal);}}.header.svelte-ygwzbn {display:flex;align-items:center;height:24px;padding-inline:8px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-secondary-border-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);}.items.svelte-ygwzbn {padding:8px 16px;&:empty {display:none;}}`}}));function M7(e,t){k(t,!0),G(e,FCe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=q(t,`showLabel`,3,!0),o=M(()=>t.fieldConfig.name),s=M(()=>E(t.fieldConfig.widget,`string`)),c=M(()=>E(t.fieldConfig.i18n,!1)),l=M(()=>E(t.fieldConfig.label,``)),u=M(()=>E(t.fieldConfig.preview,!0)),d=M(()=>xP(t.fieldConfig)),f=M(()=>z(s)===`list`||z(d)),p=M(()=>n()?.collection),m=M(()=>n()?.collectionFile),h=M(()=>At(n()?.currentValues[t.locale]??{})),g=M(()=>(z(m)??z(p))?._i18n??aw),_=M(()=>z(g).i18nEnabled),v=M(()=>z(g).defaultLocale),y=M(()=>z(_)&&(z(c)===!0||z(c)===`translate`)),b=M(()=>z(_)&&z(c)===`duplicate`),x=M(()=>RegExp(`^${jp(t.keyPath)}\\.\\d+$`)),S=M(()=>z(f)?Object.entries(z(h)).filter(([e])=>z(x).test(e)).map(([,e])=>e).filter(e=>e!==void 0):z(h)[t.keyPath]);var C=V(),w=I(C),T=e=>{var n=PCe(),r=F(n),i=e=>{var t=NCe(),n=F(t,!0);O(t),R(()=>U(n,z(l)||z(o))),H(e,t)};W(r,e=>{a()&&e(i)});var c=L(r,2),u=e=>{let n=M(()=>t9[z(s)]);var r=V();Mo(I(r),()=>z(n),(e,n)=>{n(e,{get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get locale(){return t.locale},get fieldConfig(){return t.fieldConfig},get currentValue(){return z(S)}})}),H(e,r)};W(c,e=>{z(s)in t9&&e(u)}),O(n),R(()=>{K(n,`data-field-type`,z(s)),K(n,`data-key-path`,t.keyPath),K(n,`data-typed-key-path`,t.typedKeyPath)}),Ta(`keydown`,n,e=>{e.key===`Enter`&&(e.stopPropagation(),O7({locale:t.locale,keyPath:t.keyPath}))}),Ta(`click`,n,e=>{e.stopPropagation(),O7({locale:t.locale,keyPath:t.keyPath})}),H(e,n)};W(w,e=>{z(s)!==`hidden`&&z(u)&&(t.locale===z(v)||z(y)||z(b))&&e(T)}),H(e,C),A(),i()}var NCe,PCe,FCe,N7=s((()=>{Z(),J(),Ip(),jEe(),M6(),k7(),jP(),sw(),NCe=B(`<h4 class="svelte-s650n2"> </h4>`),PCe=B(`<section role="group" tabindex="0" class="svelt
|
|||
|
|
|
|||
|
|
@media (width < 768px) {[role='document'] {& > section.svelte-s650n2:is([data-field-type='file']:where(.svelte-s650n2), [data-field-type='image']:where(.svelte-s650n2)):has(img),
|
|||
|
|
& > section.svelte-s650n2:is([data-field-type='string']:where(.svelte-s650n2)):has(iframe) {overflow:visible;}& > section.svelte-s650n2:is([data-field-type='file']:where(.svelte-s650n2), [data-field-type='image']:where(.svelte-s650n2)) img {width:100%;max-height:none !important;}}
|
|||
|
|
}`},Ea([`keydown`,`click`])}));function ICe(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=M(()=>t.fieldConfig.name),o=M(()=>t.fieldConfig.field),s=M(()=>t.fieldConfig.fields),c=M(()=>t.fieldConfig.types),l=M(()=>E(t.fieldConfig.typeKey,`type`)),u=M(()=>a5(t.fieldConfig)),f=M(()=>z(u).hasSingleSubField),p=M(()=>z(u).hasVariableTypes),m=M(()=>RegExp(`^${jp(t.keyPath)}\\.\\d+`)),h=M(()=>hc(Object.fromEntries(Object.entries(At(n()?.currentValues[t.locale])??{}).filter(([e])=>z(m).test(e)).map(([e,n])=>[`${z(a)}${e.slice(t.keyPath.length)}`,n])))[z(a)]??[]);var g=V();vo(I(g),19,()=>z(h),(e,t)=>d(e)?e.__sc_item_id??t:t,(e,r,i)=>{W8(e,{children:(e,r)=>{let a=M(()=>`${t.keyPath}.${z(i)}`),u=M(()=>Array.isArray(z(c))?n()?.currentValues[t.locale][`${z(a)}.${z(l)}`]:void 0),d=M(()=>z(c)?.find(({name:e})=>e===z(u))),m=M(()=>z(d)?z(d).label||z(d).name:void 0),h=M(()=>z(u)?z(d)?.fields??[]:z(s)??(z(o)?[z(o)]:[]));OCe(e,{get label(){return z(m)},children:(e,n)=>{var r=V();vo(I(r),17,()=>z(h),e=>e.name,(e,n)=>{W8(e,{children:(e,r)=>{{let r=M(()=>z(f)?z(a):`${z(a)}.${z(n).name}`),i=M(()=>z(p)?`${t.typedKeyPath}.*<${z(u)}>.${z(n).name}`:`${t.typedKeyPath}.*.${z(n).name}`);M7(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})}),H(e,g),A(),i()}var LCe=s((()=>{Z(),J(),p(),Ip(),gc(),G8(),MCe(),N7(),M6(),o5()}));function RCe(e,t){k(t,!0);var n=V(),r=I(n),i=e=>{var n=BCe();vo(n,23,()=>t.currentValue,(e,t)=>`${e}-${t}`,(e,t)=>{var n=zCe(),r=F(n,!0);O(n),R(()=>U(r,z(t))),H(e,n)}),O(n),R((e,t)=>{K(n,`lang`,e),K(n,`dir`,t),n.dir=n.dir},[()=>GC(t.locale),()=>KC(t.locale)]),H(e,n)},a=M(()=>Array.isArray(t.currentValue)&&t.currentValue.length);W(r,e=>{z(a)&&e(i)}),H(e,n),A()}var zCe,BCe,VCe=s((()=>{Z(),J(),QC(),zCe=B(`<li> </li>`),BCe=B(`<ul></ul>`)}));function HCe(e,t){k(t,!0);let n=ec(t,UCe);var r=V(),i=I(r),a=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));ICe(e,tc(()=>z(r)))}},o=M(()=>a5(t.fieldConfig).hasSubFields),s=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));RCe(e,tc(()=>z(r)))}};W(i,e=>{z(o)?e(a):e(s,-1)}),H(e,r),A()}var UCe,WCe=s((()=>{Z(),J(),LCe(),VCe(),o5(),UCe=new Set([`$$slots`,`$$events`,`$$legacy`,`fieldConfig`])})),GCe,KCe,qCe,JCe=s((()=>{p(),sP(),GCe=(e,t=`Point`)=>{try{let n=JSON.parse(e);return d(n)&&n.type===t&&Array.isArray(n.coordinates)}catch{return!1}},KCe=(e,t)=>e.map(e=>Array.isArray(e)?e.map(e=>Array.isArray(e)?e.map(e=>oP(e,t)):oP(e,t)):oP(e,t)),qCe=e=>{if(e.type===`Point`)return null;let t=e.type===`Polygon`?e.coordinates.flat(1):e.coordinates;if(!t.every(e=>typeof e[0]==`number`&&typeof e[1]==`number`))return null;let n=t.map(e=>e[1]),r=t.map(e=>e[0]);return[[Math.min(...n),Math.min(...r)],[Math.max(...n),Math.max(...r)]]}}));function YCe(e,t){k(t,!0),G(e,$Ce);let n=q(t,`currentValue`,15),r=q(t,`readonly`,3,!1),i=q(t,`invalid`,3,!1),a=M(()=>E(t.fieldConfig.decimals,7)),o=M(()=>E(t.fieldConfig.type,`Point`)),s=M(()=>t.fieldConfig.center),c=M(()=>t.fieldConfig.zoom),l=M(()=>z(o).toLowerCase()),u=N(void 0),f=N(void 0),p=N(``),m=N(``),h=N(void 0),g=N(!1),_=N(!1),v=N(``),y,b=async({leaflet:e,map:t})=>{y=t;let{TerraDraw:r,TerraDrawLineStringMode:i,TerraDrawPointMode:a,TerraDrawPolygonMode:u}=await tM(`terra-draw`,`dist/terra-draw.module.js`),{TerraDrawLeafletAdapter:d}=await tM(`terra-draw-leaflet-adapter`,`dist/terra-draw-leaflet-adapter.module.js?module`),p={Point:a,LineString:i,Polygon:u},m=new r({adapter:new d({lib:e,map:y}),modes:[new p[z(o)]]});m.start(),m.setMode(z(l)),m.on(`change`,(e,t)=>{x(t)}),P(f,m,!0),(!n()||!GCe(n(),z(o)))&&y.setView(z(s)?[z(s)[1],z(s)[0]]:[0,0],z(c)??2)},x=e=>{if(!z(f))return;let t=z(f).getSnapshot(),n=t[t.length-1];!n||e!==(z(o)===`Point`?`create`:`delete`)||(P(p,JSON.stringify({type:z(o),coordinates:KCe(n.geometry.coordinates,z(a))}),!0),t.length>1&&z(f).removeFeatures(t.filter(e=>e.id!==n.id).map(e=>e.id)))},S=e=>{if(e.type===`Point`){let[t,n]=e.coordinates;typeof t==`number`&&typeof n==`number`&&y?.setView([n,
|
|||
|
|
|
|||
|
|
/* Make the input fields compact within the built-in image component */&:is([data-component-name='image']:where(.svelte-1l1n28m), [data-component-name='linked-image']:where(.svelte-1l1n28m)) {
|
|||
|
|
@media (768px <= width) {[data-field-type] {border-width:0;}[data-field-type='string'] {display:flex;align-items:center;gap:8px;padding-block:0 16px;h4 {margin-bottom:0 !important;}.field-wrapper {flex:auto;}}
|
|||
|
|
}button {margin:var(--sui-focus-ring-width);}}}.placeholder.svelte-1l1n28m {border:dashed 1px currentColor;border-color:hsl(from currentColor h s l / 0.5);border-radius:2px;padding-inline:0.4em;cursor:pointer;-webkit-user-select:none;user-select:none;&:hover {border-color:currentColor;}&:focus {outline:2px solid var(--sui-primary-accent-color-translucent);outline-offset:1px;}&.block {width:fit-content;}&.inline:not(:first-child) {margin-inline-start:var(--sui-paragraph-margin);}}.fields.svelte-1l1n28m {display:flex;flex-direction:column;gap:16px;}`},Ea([`click`,`keydown`])})),q7,pTe,mTe=s((()=>{$J(),dc(),fTe(),UN(),q7=/^<(?<tagName>[a-z]+)/i,pTe=e=>{let{id:t,label:n,collapsed:r,mode:i,summary:a,fields:o,pattern:s,toBlock:c,toPreview:l}=e,u=!BN(s),d=l?.({}),f=c({}),p=typeof d==`string`?d.trim().match(q7)?.groups?.tagName??(typeof f==`string`?f.trim().match(q7)?.groups?.tagName:void 0):void 0;class m extends _J{__props;constructor(e,t){super(t),this.__props=e}static getType(){return t}isInline(){return u}static clone(e){return new m(e.__props,e.__key)}static importJSON(e){return new m().updateFromJSON(e)}exportJSON(){return{...VN(this.__props??{}),type:t,version:1}}createDOM(){let e,s=null,c,l=!1,d=()=>{l||(l=!0,Wa(c))};return c=Ha(oTe,{target:document.createElement(`div`),props:{componentName:t,label:n,collapsed:r,mode:i,inline:u,summary:a,fields:o,values:this.__props,onChange:async({type:t,detail:n})=>{await Hi(),s??=qH(e);let{activeElement:r}=document,i=r,a=i?.matches(`[contenteditable="true"]`)?window.getSelection():null,o=a&&a.rangeCount>0?a.getRangeAt(0).cloneRange():null;s?.update(()=>{if(t===`update`)try{this.getWritable().__props=n}catch{}t===`remove`&&(d(),this.remove())},{discrete:!0,onUpdate:()=>{i&&document.body.contains(i)&&(i.focus(),o&&a&&(a.removeAllRanges(),a.addRange(o)))}})}}}),er(),e=c.getElement(),window.requestAnimationFrame(()=>{e.focus(),e.closest(`.field`)?.addEventListener(`Unmount`,d,{once:!0});let{parentElement:t}=e;if(t){let n=new MutationObserver(()=>{e.isConnected||(d(),n.disconnect())});n.observe(t,{childList:!0})}}),e}exportDOM(){return{element:this.createDOM()}}static importDOM(){let e={};return p&&(e[p]=()=>({conversion:e=>({node:new m(Object.fromEntries(o.map(({name:t})=>[t,e[t]??``])))}),priority:3})),t===`linked-image`&&Object.assign(e,{a:e=>{if(e.firstChild?.nodeName.toLowerCase()===`img`){let{href:t}=e,{src:n,alt:r,title:i}=e.firstChild;return{conversion:()=>({node:new m({src:n,alt:r,title:i,link:t}),after:()=>[]}),priority:4}}return null}}),e}updateDOM(){return!1}}return m}})),hTe,gTe=s((()=>{UN(),hTe=({componentDef:e,CustomNode:t})=>{let{id:n,pattern:r,fromBlock:i,toBlock:a}=e,o=new RegExp(r.source,r.flags.replace(`g`,``)),s=e=>i?.(e)??e.groups??{},c=e=>e instanceof t&&e.getType()===n,l=e=>c(e)?a(VN(e.__props??{})):null;return BN(r)?{type:`multiline-element`,dependencies:[t],regExpStart:/^./,regExpEnd:{optional:!0,regExp:/.$/},handleImportAfterStartMatch:({lines:e,rootNode:n,startLineIndex:r})=>{let i=e.slice(r).join(`
|
|||
|
|
`),[a]=i.match(o)??[];if(!a||!i.startsWith(a))return null;let c=a.match(o),l=r+a.split(`
|
|||
|
|
`).length-1;return c?(n.append(new t(s(c))),[!0,l]):[!1,l]},replace:()=>void 0,export:l}:{type:`text-match`,dependencies:[t],importRegExp:o,regExp:o,replace:(e,n)=>{e.replace(new t(s(n)))},export:l}}})),J7,_Te,vTe,yTe=s((()=>{mTe(),gTe(),J7=new Map,_Te=e=>{let t=pTe(e);return{node:t,createNode:e=>new t(e),transformer:hTe({componentDef:e,CustomNode:t})}},vTe=class{constructor(e){let{id:t}=e,n=J7.get(t),r=n??_Te(e);n||J7.set(t,r),Object.assign(this,{...e,...r})}}}));function bTe(e,t){k(t,!0),G(e,STe);let n=()=>j(bF,`$cmsConfig`,i),r=()=>j(D6,`$entryDraft`,i),[i,a]=hn(),o=/^data:(?<type>image\/.+?);base64,.+/,s=n()?.field_defaults?.richtext??{},{fieldContext:c,parentComponentNames:l,valueStoreKey:u}=Lt(`field-editor`)??{},d=c===`rich-text-editor-component`,f=l.at(-1),p=q(t,`currentValue`,15),m=q(t,`required`,3,!0),h=q(t,`readonly`,3,!1),g=q(t,`invalid`,3,!1),_=N(void 0),v=N(``),y=0,b=M(()=>E(t.fieldConfig.modes,()=>s.modes??[...Nwe],!0)),x=M(()=>E(t.fieldConfig.buttons,()=>s.buttons??[...Fwe],!0)),S=M(()=>E(t.fieldConfig.editor_components,()=>s.editor_components??[...R7,...pp.keys()],!0)),C=M(()=>t.fieldConfig.allow_nested_components),w=M(()=>E(t.fieldConfig.linked_images,()=>s.linked_images??!0,!0)),T=M(()=>E(t.fieldConfig.use_markdown_shortcuts,()=>s.use_markdown_shortcuts??!0,!0)),ee=M(()=>E(t.fieldConfig.minimal,()=>s.minimal??!1,!0)),te=M(()=>z(b).map(e=>Pwe[e]).filter(Boolean)),ne=M(()=>r()?.isIndexFile??!1),re=M(()=>r()?.collectionName??``),ie=M(()=>r()?.fileName),ae=M(()=>At(r()?.[u][t.locale])??{}),oe=M(()=>[...z(x),...z(S).includes(`code-block`)?[`code-block`]:[]].map(e=>Iwe[e]).filter(Boolean)),se=M(()=>{let e=z(C);return d&&(e=wP({collectionName:z(re),fileName:z(ie),isIndexFile:z(ne),valueMap:z(ae),keyPath:t.keyPath.match(/^[^:]+/)?.[0]})?.allow_nested_components),e??s.allow_nested_components??!0}),ce=M(()=>d&&!z(se)?[]:z(S).filter(e=>z(se)!==`exclude_self`||!l.includes(e)).map(e=>nP(e===`image`&&z(w)?`linked-image`:e)).filter(e=>!!e).map(e=>new vTe(e))),le=M(()=>z(ce).find(({id:e})=>e===`image`||e===`linked-image`)),ue=M(()=>L5(I5({collectionName:z(re),fileName:z(ie),componentName:f,typedKeyPath:t.typedKeyPath,isIndexFile:z(ne)}))),de=async({target:e,images:t})=>{let n=e?.closest(`div`),i=qH(n);if(!r()||!z(le)||!n?.matches(`.lexical-root`)||!i)return;let a=z(le).fields?.find(({name:e})=>e===`src`),{config:o}=OF({fieldConfig:a}),s=r(),c=z(ue);for(let{file:e,src:n,alt:r=``}of t){let t=n;if(e){let{value:n}=await K5({draft:s,resource:{file:e,folder:c},libraryConfig:o});t=n}if(!t)continue;let a=t;i.update(()=>{eH([z(le).createNode({src:a,alt:r}),IH()])})}},D=async e=>{let{target:t,clipboardData:n}=e,r=n?.items;if(!r)return;let i=[],a=[...r].findIndex(({kind:e,type:t})=>e===`file`&&lM.includes(t)),o=[...r].findIndex(({kind:e,type:t})=>e===`string`&&t===`text/html`);if(a>-1&&o>-1){let t=a>-1?r[a].getAsFile():void 0;if(!t)return;r.clear(),e.stopPropagation();let n=``,s=t.name,c=await new Promise(e=>{r[o].getAsString(t=>{e(new DOMParser().parseFromString(t,`text/html`).querySelector(`img`))})});if(c&&(n=c.alt,/^https?:/.test(c.src))){let e=new URL(c.src).pathname.split(`/`).pop()??``;(aM.test(e)||cM.test(e))&&(s=e)}i=[{file:new File([t],s,{type:t.type}),alt:n}]}else i=[...n.files].filter(({type:e})=>lM.includes(e)).map(e=>({file:e}));i.length&&(i=i.map(({file:e,alt:t},n)=>{if(e?.name===`image.png`){let{year:t,month:r,day:a,hour:o,minute:s,second:c}=tb(),l=`${t}${r}${a}-${o}${s}${c}${i.length>1?`-${n+1}`:``}.png`;e=new File([e],l,{type:e.type})}return{file:e,alt:t}}),await de({target:t,images:i}))},fe=async e=>{let{target:t,dataTransfer:n}=e,r=n?.files,i=[];if(r?.length)i=[...r].filter(({type:e})=>lM.includes(e)).map(e=>({file:e}));else{let t=e.dataTransfer?.getData(`text/html`);if(t){let e=new DOMParser().parseFromString(t,`text/html`).querySelector(`img`);if(e){let{src:t,alt:n}=e,r=t.match(o),a;if(r){let e=r.groups?.type??``;if(lM.includes(e))try{let n=await(await fetch(t)).blob(),{year:r,month:i,day:o,hour:s,minute:c,second:l}=tb(),u=`${r}${i}${o}-${s}${c}${l}.${e.split(`/`)[1]}`;a=new File([n],u,{type:e})}catch{retu
|
|||
|
|
@media (width < 768px) {.sui.text-editor {
|
|||
|
|
/* Remove the section padding */margin:0 calc(var(--field-editor-padding) * -1) calc(var(--field-editor-padding) * -1);width:100dvw;}:is(.sui.toolbar, .lexical-root, textarea) {border:0;border-radius:0;}
|
|||
|
|
}}`}}));function wTe(){return{useNewRenderer:!0,renderer:{heading(...e){return Ax.Renderer.prototype.heading.call(this,...e).replace(/^<(h\d)/,`<$1 dir="auto"`)},list(...e){return Ax.Renderer.prototype.list.call(this,...e).replace(/^<(ol|ul)/,`<$1 dir="auto"`)},paragraph(...e){return Ax.Renderer.prototype.paragraph.call(this,...e).replace(/^<p/,`<p dir="auto"`)}}}}var TTe=s((()=>{TS()})),ETe=c((e=>{
|
|||
|
|
/**
|
|||
|
|
* @license React
|
|||
|
|
* scheduler.production.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/
|
|||
|
|
function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,te());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function ee(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?te():S=!1}}}var te;if(typeof y==`function`)te=function(){y(ee)};else if(typeof MessageChannel<`u`){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=ee,te=function(){re.postMessage(null)}}else te=function(){_(ee,0)};function ie(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,te()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),DTe=c(((e,t)=>{t.exports=ETe()})),OTe=c((e=>{
|
|||
|
|
/**
|
|||
|
|
* @license React
|
|||
|
|
* react-dom.production.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/
|
|||
|
|
var t=h();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.8`})),kTe=c(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=OTe()})),ATe=c((e=>{
|
|||
|
|
/**
|
|||
|
|
* @license React
|
|||
|
|
* react-dom-client.production.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/
|
|||
|
|
var t=DTe(),n=h(),r=kTe();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),ee=Symbol.for(`react.activity`),te=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function re(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var ie=Symbol.for(`react.client.reference`);function ae(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case ee:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?ae(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var oe=Array.isArray,se=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},ue=[],de=-1;function D(e){return{current:e}}function fe(e){0>de||(e.current=ue[de],ue[de]=null,de--)}function pe(e,t){de++,ue[de]=e.current,e.current=t}var me=D(null),he=D(null),ge=D(null),_e=D(null);function ve(e,t){switch(pe(ge,t),pe(he,e),pe(me,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Id(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Id(t),e=Ld(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}fe(me),pe(me,e)}function ye(){fe(me),fe(he),fe(ge)}function be(e){e.memoizedState!==null&&pe(_e,e);var t=me.current,n=Ld(t,e.type);t!==n&&(pe(he,e),pe(me,n))}function xe(e){he.current===e&&(fe(me),fe(
|
|||
|
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|||
|
|
`+Se+e+Ce}var Te=!1;function Ee(e,t){if(!e||Te)return``;Te=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|||
|
|
`),l=s.split(`
|
|||
|
|
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|||
|
|
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?we(n):``}function De(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we(`Lazy`);case 13:return e.child!==t&&t!==null?we(`Suspense Fallback`):we(`Suspense`);case 19:return we(`SuspenseList`);case 0:case 15:return Ee(e.type,!1);case 11:return Ee(e.type.render,!1);case 1:return Ee(e.type,!0);case 31:return we(`Activity`);default:return``}}function Oe(e){try{var t=``,n=null;do t+=De(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|||
|
|
Error generating stack: `+e.message+`
|
|||
|
|
`+e.stack}}var ke=Object.prototype.hasOwnProperty,Ae=t.unstable_scheduleCallback,je=t.unstable_cancelCallback,Me=t.unstable_shouldYield,Ne=t.unstable_requestPaint,Pe=t.unstable_now,Fe=t.unstable_getCurrentPriorityLevel,Ie=t.unstable_ImmediatePriority,Le=t.unstable_UserBlockingPriority,Re=t.unstable_NormalPriority,ze=t.unstable_LowPriority,Be=t.unstable_IdlePriority,Ve=t.log,He=t.unstable_setDisableYieldValue,Ue=null,We=null;function Ge(e){if(typeof Ve==`function`&&He(e),We&&typeof We.setStrictMode==`function`)try{We.setStrictMode(Ue,e)}catch{}}var Ke=Math.clz32?Math.clz32:Ye,qe=Math.log,Je=Math.LN2;function Ye(e){return e>>>=0,e===0?32:31-(qe(e)/Je|0)|0}var Xe=256,Ze=262144,Qe=4194304;function $e(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function et(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=$e(n))):i=$e(o):i=$e(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=$e(n))):i=$e(o)):i=$e(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function tt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rt(){var e=Qe;return Qe<<=1,!(Qe&62914560)&&(Qe=4194304),e}function it(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function at(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ot(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ke(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&st(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function st(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ke(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ct(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ke(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function lt(e,t){var n=t&-t;return n=n&42?1:ut(n),(n&(e.suspendedLanes|t))===0?n:0}function ut(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function dt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ft(){var e=ce.p;return e===0?(e=window.event,e===void 0?32:lp(e.type)):e}function pt(e,t){var n=ce.p;try{return ce.p=e,t()}finally{ce.p=n}}var mt=Math.random().toString(36).slice(2),ht=`__reactFiber$`+mt,O=`__reactProps$`+mt,gt=`__reactContainer$`+mt,_t=`__reactEvents$`+mt,vt=`__reactListeners$`+mt,yt=`__reactHandles$`+mt,bt=`__reactResources$`+mt,xt=`__reactMarker$`+mt;function St(e){delete e[ht
|
|||
|
|
`).replace(see,``)}function Ed(e,t){return t=Td(t),Td(e)===t}function Dd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Zt(e,``+r);break;case`className`:Lt(e,`class`,r);break;case`tabIndex`:Lt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Lt(e,n,r);break;case`style`:en(e,r,o);break;case`data`:if(t!==`object`){Lt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Dd(e,t,`name`,a.name,a,null),Dd(e,t,`formEncType`,a.formEncType,a,null),Dd(e,t,`formMethod`,a.formMethod,a,null),Dd(e,t,`formTarget`,a.formTarget,a,null)):(Dd(e,t,`encType`,a.encType,a,null),Dd(e,t,`method`,a.method,a,null),Dd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=on);break;case`onScroll`:r!=null&&hd(`scroll`,e);break;case`onScrollEnd`:r!=null&&hd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=an(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:hd(`beforetoggle`,e),hd(`toggle`,e),It(e,`popover`,r);break;case`xlinkActuate`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Rt(e,`http://www.w3.org/XML/1998/namespace`,`xml:b
|
|||
|
|
`).forEach(e=>{if(r){n.push(e);let t=e.trimStart();e.length-t.length<=3&&t.startsWith(r.char.repeat(r.length))&&!/\S/.test(t.slice(r.length))&&(r=null)}else if(i){n.push(e);let{openRe:t,closeRe:r}=i;i.depth+=[...e.matchAll(t)].length-[...e.matchAll(r)].length,i.depth<=0&&(i=null)}else{let a=RTe.exec(e);if(a)n.push(e),r={char:a[1][0],length:a[1].length};else{let r=zTe.exec(e);if(r){let t=r[1].toLowerCase();if(n.push(e),!LTe.has(t)){let{openRe:n,closeRe:r}=db(BTe,t,()=>({openRe:RegExp(`<${t}(?:[\\s>])`,`gi`),closeRe:RegExp(`<\\/${t}>`,`gi`)})),a=[...e.matchAll(n)].length-[...e.matchAll(r)].length;a>0&&(i={tag:t,depth:a,openRe:n,closeRe:r})}}else e===``?n.length&&t.push(n.splice(0).join(`
|
|||
|
|
`)):n.push(e)}}}),n.length&&t.push(n.join(`
|
|||
|
|
`)),t},HTe=(...e)=>{let{alt:t,src:n,title:r}=e.at(-1),i=n.replaceAll(` `,`%20`);return r?``:``},X7=new Map,UTe=(e,t)=>{let n=new Map,r=(e??``).replace(GN,HTe);return t.forEach(({pattern:e,fromBlock:t,toPreview:i})=>{let a=`${e.source}|${e.flags}`,o=X7.get(a);o||(o=e.global?e:new RegExp(e.source,`${e.flags}g`),X7.set(a,o));let s=[],c=new Map;r.matchAll(o).forEach(e=>{let r=ITe(e[0]),a=c.get(r)??0,o=a===0?r:`${r}-${a}`,l=t?.(e)??e.groups??{};s.push(o),c.set(r,a+1),n.set(o,i?.(l))}),r=r.replaceAll(o,()=>{let e=s.shift(),t=n.get(e);return typeof t==`string`?t:`<span data-component-key="${e}"></span>`})}),{markdown:r,previewMap:n}}}));function GTe(e,t){k(t,!0),G(e,YTe);let n=()=>j(bF,`$cmsConfig`,i),r=()=>j(D6,`$entryDraft`,i),[i,a]=hn();SS(wTe()),SS({renderer:{code({text:e,lang:t}){let{Prism:n}=window;return n&&t&&n.languages[t]?`<pre><code class="language-${t}">${n.highlight(e,n.languages[t],t)}</code></pre>\n`:!1}}});let o=n()?.field_defaults?.richtext??{},s=new kh,c=new kh,l=N(void 0),u=N(!1),d=M(()=>r()?.originalEntry),f=M(()=>r()?.collectionName??``),p=M(()=>r()?.fileName),m=M(()=>E(t.fieldConfig.sanitize_preview,()=>o.sanitize_preview??!0,!0)),h=M(()=>E(t.fieldConfig.editor_components,()=>o.editor_components??[...R7,...pp.keys()],!0)),g=M(()=>E(t.fieldConfig.linked_images,()=>o.linked_images??!0,!0)),_=M(()=>z(h).map(e=>nP(e===`image`&&z(g)?`linked-image`:e)).filter(e=>!!e)),v=M(()=>{if(typeof t.currentValue!=`string`||!t.currentValue.trim())return``;let{markdown:e,previewMap:n}=UTe(t.currentValue,z(_));return c=n,e}),y=e=>{let t=e.dataset.componentKey,n=t?c.get(t):void 0;if((0,KTe.isValidElement)(n)){let t=(0,qTe.createRoot)(e);s.set(e,t),t.render(n)}else e.remove()},b=e=>{[e,...e.querySelectorAll(Y7)].forEach(e=>{let t=s.get(e);t&&(t.unmount(),s.delete(e))})},x=async e=>{e.dataset.processed=`true`;let n=await BM({value:e.getAttribute(`src`),entry:z(d),collectionName:z(f),fileName:z(p),typedKeyPath:t.typedKeyPath});n&&(e.src=n)},S=e=>{e.forEach(({removedNodes:e,addedNodes:t})=>{e.forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&b(e)}),t.forEach(e=>{if(e.nodeType!==Node.ELEMENT_NODE)return;let t=e;t.matches(`span[data-component-key]`)?y(t):t.querySelectorAll(Y7).forEach(e=>{y(e)}),t.matches(`img[src]:not([data-processed])`)?x(t):t.querySelectorAll(FTe).forEach(e=>{x(e)})})})},C=e=>{let t=wS(e,{breaks:!0});return z(m)?PTe(t):t};lc(()=>{let e=new MutationObserver(S);return e.observe(z(l),{childList:!0,subtree:!0}),P(u,!0),()=>{e.disconnect(),s.forEach(e=>e.unmount()),s.clear()}});var w=JTe(),T=F(w),ee=e=>{var t=V();vo(I(t),19,()=>VTe(z(v)),(e,t)=>`${t}-${e}`,(e,t)=>{var n=V();Eo(I(n),()=>C(z(t))),H(e,n)}),H(e,t)};W(T,e=>{z(u)&&z(v)&&e(ee)}),O(w),qs(w,e=>P(l,e),()=>z(l)),H(e,w),A(),a()}var KTe,qTe,JTe,YTe,XTe=s((()=>{Z(),J(),TS(),TTe(),KTe=h(),qTe=jTe(),dc(),Nh(),VM(),TF(),yp(),M6(),z7(),rP(),WTe(),JTe=B(`<div role="none" class="svelte-14tuh7g"><!></div>`),YTe={hash:`svelte-14tuh7g`,code:`[role='document'] div.svelte-14tuh7g {:is(h1, h2, h3, h4, h5, h6, p, ul, ol) {margin:1em 0 0;}:is(video, img) {max-width:100%;max-height:100%;}:is(a:has(img)) {display:inline-block;img {pointer-events:none;}}}div.svelte-14tuh7g {[data-component-key] {display:contents;}}`}}));function ZTe(e,t){k(t,!0);let n=M(()=>t.fieldConfig.options),r=M(()=>t.fieldConfig.multiple),i=M(()=>_T(z(n))),a=M(()=>XC(t.locale)),o=e=>z(i)&&z(n).find(t=>t.value===e)?.label||String(e);var s=V(),c=I(s),l=e=>{var n=Z7(),r=F(n,!0);O(n),R((e,t,i)=>{K(n,`lang`,e),K(n,`dir`,t),U(r,i),n.dir=n.dir},[()=>GC(t.locale),()=>KC(t.locale),()=>z(a).format(t.currentValue.map(o).sort())]),H(e,n)},u=M(()=>z(r)&&Array.isArray(t.currentValue)&&t.currentValue.length),d=e=>{var n=Z7(),r=F(n,!0);O(n),R((e,t,i)=>{K(n,`lang`,e),K(n,`dir`,t),U(r,i),n.dir=n.dir},[()=>GC(t.locale),()=>KC(t.locale),()=>o(t.currentValue)]),H(e,n)};W(c,e=>{z(u)?e(l):t.currentValue!==void 0&&e(d,1)}),H(e,s),A()}var Z7,QTe=s((()=>{Z(),J(),yT(),QC(),Z7=B(`<p> </p>`)}));function $Te(e,t){k(t,!0),G(e,tEe);let n=M(()=>t.fieldConfig.minlength),r=M(()=>t.fieldConfig.maxlength),i=M(()=>U7({
|
|||
|
|
${z(r)??``}`)),H(e,t)};W(p,e=>{z(s)&&e(m)}),O(t),R(e=>{K(t,`aria-label`,e),d=ds(u,1,`count svelte-19vklom`,null,d,{invalid:z(c)}),U(f,z(a))},[()=>Y(z(o)&&z(s)?`character_counter.min_max`:z(o)?`character_counter.min`:`character_counter.max`,{values:{count:z(a),min:z(n),max:z(r)}})]),H(e,t)};W(u,e=>{(z(o)||z(s))&&e(d)}),H(e,l),A()}var eEe,tEe,nEe=s((()=>{Z(),J(),X(),Qwe(),eEe=B(`<div class="wrapper svelte-19vklom"><!> <span role="none"> </span> <!></div>`),tEe={hash:`svelte-19vklom`,code:`.wrapper.svelte-19vklom {flex:none;color:var(--sui-tertiary-foreground-color) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);text-align:end;}.count.svelte-19vklom {&.invalid {color:var(--sui-error-foreground-color);}&:not(.invalid) {color:var(--sui-success-foreground-color);}}`}}));function rEe(e,t){k(t,!0);let[n,r]=hn(),i=q(t,`currentValue`,15),a=q(t,`required`,3,!0),o=q(t,`readonly`,3,!1),s=q(t,`invalid`,3,!1),{extraHint:c}=Lt(`field-editor`)??{},l=N(``),u=M(()=>E(t.fieldConfig.type,`text`)),d=M(()=>E(t.fieldConfig.prefix,``)),f=M(()=>E(t.fieldConfig.suffix,``)),p=()=>{let e=typeof i()==`string`?i():String(i()??``);z(d)&&e.startsWith(z(d))&&(e=e.slice(z(d).length)),z(f)&&e.endsWith(z(f))&&(e=e.slice(0,-z(f).length)),z(l)!==e&&P(l,e,!0)},m=()=>{let e=z(l);e.trim()&&(z(d)||z(f))&&(e=`${z(d)}${e}${z(f)}`),i()!==e&&i(e)};ri(()=>{i(),Gi(()=>{p()})}),ri(()=>{z(l),Gi(()=>{m()})}),ri(()=>{c&&mn(c,$Te)});{let n=M(()=>GC(t.locale)),r=M(()=>KC(t.locale));oL(e,{get lang(){return z(n)},get dir(){return z(r)},get type(){return z(u)},get inputmode(){return z(u)},flex:!0,get readonly(){return o()},get required(){return a()},get invalid(){return s()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return z(l)},set value(e){P(l,e,!0)}})}A(),r()}var iEe=s((()=>{Z(),J(),$(),dc(),nEe(),QC()})),aEe,oEe,sEe=s((()=>{Ip(),aEe=e=>{if(!Pp(e))return!1;let{origin:t,pathname:n,searchParams:r}=new URL(e);return!!((t===`https://www.youtube.com`||t===`https://www.youtube-nocookie.com`)&&(n===`/watch`&&r.has(`v`)||n===`/playlist`&&r.has(`list`)||n.startsWith(`/embed/`))||t===`https://youtu.be`&&n)},oEe=e=>{let t=`https://www.youtube-nocookie.com`,{pathname:n,search:r,searchParams:i}=new URL(e);if(n===`/watch`){let e=new URLSearchParams(i),n=`${t}/embed/${e.get(`v`)}`;return e.get(`list`)&&(e.delete(`v`),e.set(`listType`,`playlist`),n+=`?${e}`),n}return n===`/playlist`?`${t}/embed/videoseries${r}`:n.startsWith(`/embed/`)?`${t}${n}${r}`:`${t}/embed${n}${r}`}}));function cEe(e,t){k(t,!0),G(e,fEe);let n=N(!0),r=M(()=>oEe(t.url)),i=({blockedURI:e,violatedDirective:t})=>{e===new URL(z(r)).origin&&t===`frame-src`&&(P(n,!1),window.removeEventListener(`securitypolicyviolation`,i))};lc(()=>(window.addEventListener(`securitypolicyviolation`,i),()=>{window.removeEventListener(`securitypolicyviolation`,i)}));var a=dEe(),o=F(a),s=e=>{W8(e,{children:(e,t)=>{var n=lEe();R((e,t)=>{K(n,`src`,e),K(n,`title`,t)},[()=>encodeURI(z(r)),()=>Y(`youtube_video_player`)]),H(e,n)},$$slots:{default:!0}})},c=e=>{var n=uEe(),r=F(n,!0);O(n),R(e=>{K(n,`href`,e),U(r,t.url)},[()=>encodeURI(t.url)]),H(e,n)};W(o,e=>{z(n)?e(s):e(c,-1)}),O(a),H(e,a),A()}var lEe,uEe,dEe,fEe,pEe=s((()=>{Z(),J(),X(),dc(),G8(),sEe(),lEe=B(`<iframe frameborder="0" allow="autoplay; encrypted-media; picture-in-picture; clipboard-write" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" sandbox="allow-same-origin allow-scripts allow-popups" class="svelte-spbxln"></iframe>`),uEe=B(`<a> </a>`),dEe=B(`<div role="none"><!></div>`),fEe={hash:`svelte-spbxln`,code:`iframe.svelte-spbxln {display:block;margin:0 auto;width:100%;height:auto;aspect-ratio:16 / 9;}`}}));function mEe(e,t){k(t,!0),G(e,gEe);let n=M(()=>t.fieldConfig.name),r=M(()=>E(t.fieldConfig.type,`text`)),i=/^(?:https|mailto|tel):/;var a=V(),o=I(a),s=e=>{var a=hEe();let o;var s=F(a),c=e=>{var n=V(),r=I(n),a=e=>{cEe(e,{get url(){return t.currentValue}})},o=M(()=>aEe(t.currentValue)),s=e=>{var n=Q7(),r=F(n,!0);O(n),R(e=>{K(n,`href`,e),U(r,t
|
|||
|
|
|
|||
|
|
/* Remove the padding to make the iframe full-width on small screens */
|
|||
|
|
@media (width < 768px) {[role='document'] section > p.svelte-euqs6c:has(iframe) {margin-inline:calc(var(--entry-preview-padding-inline) * -1);}
|
|||
|
|
}`}}));function vEe(e,t){k(t,!0);let[n,r]=hn(),{extraHint:i}=Lt(`field-editor`)??{},a=q(t,`currentValue`,15),o=q(t,`required`,3,!0),s=q(t,`readonly`,3,!1),c=q(t,`invalid`,3,!1),l=N(``),u=()=>{let e=typeof a()==`string`?a():``;z(l)!==e&&P(l,e,!0)},d=()=>{let e=z(l);a()!==e&&a(e)};ri(()=>{a(),Gi(()=>{u()})}),ri(()=>{z(l),Gi(()=>{d()})}),ri(()=>{i&&mn(i,$Te)});{let n=M(()=>GC(t.locale)),r=M(()=>KC(t.locale));T0(e,{get lang(){return z(n)},get dir(){return z(r)},flex:!0,get readonly(){return s()},get required(){return o()},get invalid(){return c()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},autoResize:!0,get value(){return z(l)},set value(e){P(l,e,!0)}})}A(),r()}var yEe=s((()=>{Z(),J(),$(),dc(),nEe(),QC()}));function bEe(e,t){k(t,!0),G(e,SEe);var n=V(),r=I(n),i=e=>{var n=xEe(),r=F(n,!0);O(n),R((e,i)=>{K(n,`lang`,e),K(n,`dir`,i),U(r,t.currentValue),n.dir=n.dir},[()=>GC(t.locale),()=>KC(t.locale)]),H(e,n)},a=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());W(r,e=>{z(a)&&e(i)}),H(e,n),A()}var xEe,SEe,CEe=s((()=>{Z(),J(),QC(),xEe=B(`<p class="svelte-q17c48"> </p>`),SEe={hash:`svelte-q17c48`,code:`p.svelte-q17c48 {white-space:pre-wrap;}`}})),$7,wEe=s((()=>{Ap(),$7=e=>{let{prefix:t,use_b32_encoding:n}=e,r=n?Op():Dp();return t?`${t}${r}`:r}}));function TEe(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=q(t,`currentValue`,15),o=q(t,`required`,3,!0),s=q(t,`readonly`,3,!0),c=q(t,`invalid`,3,!1),l=M(()=>n()?.collection),u=M(()=>n()?.collectionFile),d=M(()=>(z(u)??z(l))?._i18n??aw),f=M(()=>z(d).defaultLocale);lc(()=>{a()||(t.locale===z(f)||[!0,`translate`].includes(t.fieldConfig?.i18n??!1))&&a($7(t.fieldConfig)),`read_only`in t.fieldConfig&&PC(`uuid_read_only`)});{let n=M(()=>s()&&t.fieldConfig.read_only!==!1);oL(e,{dir:`ltr`,flex:!0,get readonly(){return z(n)},get required(){return o()},get invalid(){return c()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return a()},set value(e){a(e)}})}A(),i()}var EEe=s((()=>{Z(),J(),$(),dc(),FC(),M6(),wEe(),sw()}));function DEe(e,t){k(t,!0),G(e,kEe);var n=V(),r=I(n),i=e=>{var n=OEe(),r=F(n,!0);O(n),R(()=>U(r,t.currentValue)),H(e,n)},a=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());W(r,e=>{z(a)&&e(i)}),H(e,n),A()}var OEe,kEe,AEe=s((()=>{Z(),J(),OEe=B(`<p class="svelte-1phz9g8"> </p>`),kEe={hash:`svelte-1phz9g8`,code:`p.svelte-1phz9g8 {font-family:var(--sui-font-family-monospace);}`}})),e9,t9,jEe=s((()=>{Bye(),Uye(),Gye(),Jye(),ebe(),ibe(),obe(),lbe(),hbe(),vbe(),cSe(),hSe(),DSe(),NSe(),DCe(),WCe(),ewe(),iwe(),owe(),lwe(),vwe(),bwe(),kwe(),Mwe(),CTe(),XTe(),Ewe(),QTe(),iEe(),_Ee(),yEe(),CEe(),EEe(),AEe(),e9={boolean:zye,code:Wye,color:Yye,compute:abe,datetime:ube,file:rSe,image:rSe,keyvalue:vSe,list:TCe,map:YCe,markdown:bTe,number:awe,object:pwe,relation:Dwe,richtext:bTe,select:Twe,string:rEe,text:vEe,uuid:TEe},t9={boolean:Vye,code:Kye,color:tbe,compute:sbe,datetime:gbe,file:mSe,image:mSe,keyvalue:OSe,list:HCe,map:twe,markdown:GTe,number:swe,object:ywe,relation:Awe,richtext:GTe,select:ZTe,string:mEe,text:bEe,uuid:DEe}})),n9,r9,MEe,i9,a9=s((()=>{Zp(),M6(),jP(),sP(),n9=(e,t)=>{let n=t.split(`.`);for(let t=n.length-1;t>=1;--t)if(aP(n[t])){let r=n.slice(0,t+1).join(`.`),i=e[`${r}.__sc_item_original_key_path`];if(i!==void 0){let e=n.slice(t+1).join(`.`);return{originalKeyPath:e?`${i}.${e}`:i,currentPrefix:r,originalPrefix:i}}}},r9=({locale:e,isDefaultLocale:t,keyPath:n,getFieldArgs:r,currentValues:i,reset:a=!1,remapPrefix:o})=>{let{valueMap:s={}}=r;Object.entries(s).forEach(([s,c])=>{if(!n||s.startsWith(n)){let n=wP({...r,keyPath:s});if(t||[!0,`translate`].includes(n?.i18n??!1))if(a)delete i[e][s];else{let t=o?`${o.to}${s.slice(o.from.length)}`:s;i[e][t]=c}}})},MEe=({draft:e,keyPath:t,locale:n})=>{let{collection:r,collectionName:i,collectionFile:a,fileName:o,currentValues:s,originalValues:c,isIndexFile:l}=e,{defaultLocale:u}=(a??r)._i18n,d=n===u,f={collectionName:i,fileName:o,keyPath:``,isIndexFile:l},p=t?n9(s[n],t):voi
|
|||
|
|
[type='color'],
|
|||
|
|
[type='date'],
|
|||
|
|
[type='datetime-local'],
|
|||
|
|
[type='time']
|
|||
|
|
) {border-color:var(--sui-error-border-color);}input:read-only {
|
|||
|
|
/* Make readonly inputs selectable */-webkit-user-select:text;user-select:text;pointer-events:auto;}}.before-input.svelte-dkfcyc,
|
|||
|
|
.after-input.svelte-dkfcyc,
|
|||
|
|
.prefix.svelte-dkfcyc,
|
|||
|
|
.suffix.svelte-dkfcyc {color:var(--sui-secondary-foreground-color);white-space:nowrap;}.comment.svelte-dkfcyc,
|
|||
|
|
.hint.svelte-dkfcyc {margin-inline:var(--sui-focus-ring-width) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);}.comment.svelte-dkfcyc {margin-block:var(--sui-focus-ring-width) !important;}.hint.svelte-dkfcyc {flex:auto;margin-block:var(--sui-focus-ring-width) 0 !important;color:var(--sui-tertiary-foreground-color);}.footer.svelte-dkfcyc {display:flex;gap:16px;justify-content:flex-end;margin-top:4px;}`}}));function KEe(e,t){let n=za();k(t,!0);let r=()=>j(D6,`$entryDraft`,i),[i,a]=hn(),o=M(()=>r()?.collection),s=M(()=>r()?.collectionFile),c=M(()=>(z(s)??z(o))?._i18n??aw),l=M(()=>z(c).defaultLocale),u=M(()=>r()?.slugEditor[t.locale]),d=M(()=>z(u)===!0),f=M(()=>z(u)===`readonly`),p=M(()=>r()?.validities[t.locale]._slug),m=M(()=>!z(f)&&z(p)?.valid===!1),h=N(``);ri(()=>{z(f)&&P(h,r()?.currentSlugs[t.locale]??``,!0)}),ri(()=>{z(h),Gi(()=>{r()&&Object.entries(r().slugEditor).forEach(([e,n])=>{(t.locale===e||t.locale===z(l)&&n===`readonly`)&&_n(D6,Gi(r).currentSlugs[e]=z(h),Gi(r))})})});var g=V(),_=I(g),v=e=>{Aye(e,{children:(e,t)=>{var r=YEe(),i=I(r),a=F(i),o=F(a,!0);O(a);var s=L(a,2),c=e=>{var t=qEe();R(e=>K(t,`aria-label`,e),[()=>Y(`required`)]),H(e,t)};W(s,e=>{z(d)&&e(c)}),O(i);var l=L(i,2),u=e=>{D5(e,{get id(){return`${n}-error`},children:(e,t)=>{var n=JEe(),r=I(n),i=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`edit_slug_error.empty`)]),H(e,t)};W(r,e=>{z(p)?.valueMissing&&e(i)});var a=L(r,2),o=e=>{var t=Ra();R(e=>U(t,e),[()=>Y(`edit_slug_error.invalid`)]),H(e,t)};W(a,e=>{z(p)?.patternMismatch&&e(o)}),H(e,n)},$$slots:{default:!0}})};W(l,e=>{z(m)&&e(u)});var g=L(l,2);oL(F(g),{dir:`auto`,flex:!0,get readonly(){return z(f)},get required(){return z(d)},get invalid(){return z(m)},get"aria-labelledby"(){return`${n}-label`},get"aria-errormessage"(){return`${n}-error`},get value(){return z(h)},set value(e){P(h,e,!0)}}),O(g),R(e=>{K(a,`id`,`${n}-label`),U(o,e)},[()=>Y(`slug`)]),H(e,r)},$$slots:{default:!0}})};W(_,e=>{r()&&e(v)}),H(e,g),A(),a()}var qEe,JEe,YEe,XEe=s((()=>{Z(),J(),X(),$(),dc(),Pye(),O5(),M6(),sw(),qEe=B(`<div class="required">*</div>`),JEe=B(`<!> <!>`,1),YEe=B(`<header role="none"><h4 role="none"> </h4> <!></header> <!> <div role="none" class="field-wrapper"><!></div>`,1)}));function ZEe(e,t){k(t,!0);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=M(()=>n()?.fields??[]);W8(e,{children:(e,r)=>{var i=QEe(),o=I(i),s=e=>{KEe(e,{get locale(){return t.locale}})};W(o,e=>{n()?.slugEditor[t.locale]&&e(s)}),vo(L(o,2),17,()=>z(a),e=>e.name,(e,n)=>{W8(e,{children:(e,r)=>{o9(e,{get keyPath(){return z(n).name},get typedKeyPath(){return z(n).name},get locale(){return t.locale},get fieldConfig(){return z(n)}})},$$slots:{default:!0}})}),H(e,i)},$$slots:{default:!0}}),A(),i()}var QEe,$Ee=s((()=>{Z(),J(),G8(),c9(),XEe(),M6(),QEe=B(`<!> <!>`,1)}));function eDe(e,t){let n=q(t,`children`,3,void 0);var r=V();Ao(I(r),()=>n()??D),H(e,r)}var tDe=s((()=>{Z(),J()}));function nDe(e,t){k(t,!0),G(e,oDe);let n=N(!1),r=N(void 0),i=N(void 0),a=()=>`
|
|||
|
|
<!DOCTYPE html>
|
|||
|
|
<html lang="${XN(t.locale)}">
|
|||
|
|
<head>
|
|||
|
|
<meta charset="UTF-8">
|
|||
|
|
<base href="${XN(window.location.origin)}" target="_blank">
|
|||
|
|
${t.styleURLs.map(e=>`<link rel="stylesheet" href="${XN(e)}">`).join(`
|
|||
|
|
`)}
|
|||
|
|
</head>
|
|||
|
|
<body></body>
|
|||
|
|
</html>
|
|||
|
|
`,o=()=>{let e=z(r)?.contentDocument?.body;e&&Ha(eDe,{target:e,props:{children:t.children}})},s=()=>{let{contentDocument:e,contentWindow:n}=z(r)??{};if(z(i)&&t.reactComponent&&t.reactProps&&e&&n){let r={...t.reactProps,document:e,window:n};z(i).render((0,rDe.createElement)(t.reactComponent,r))}},c=()=>{let e=z(r)?.contentDocument?.body;e&&t.reactComponent&&P(i,(0,iDe.createRoot)(e),!0)},l=()=>{if(!z(r)||z(n))return;let e=t.reactComponent?c:o,i=URL.createObjectURL(new Blob([a()],{type:`text/html`}));z(r).addEventListener(`load`,()=>{e(),URL.revokeObjectURL(i),P(n,!0)},{once:!0}),z(r).src=i};ri(()=>{z(r)&&!z(n)&&l()}),ri(()=>{z(n)&&z(i)&&t.reactComponent&&t.reactProps&&s()}),ri(()=>()=>{z(i)?.unmount()});var u=aDe();qs(u,e=>P(r,e),()=>z(r)),R(e=>K(u,`title`,e),[()=>Y(`content_preview`)]),H(e,u),A()}var rDe,iDe,aDe,oDe,sDe=s((()=>{Z(),J(),X(),rDe=h(),iDe=jTe(),dc(),tDe(),$N(),aDe=B(`<iframe class="preview svelte-1k58u5t" sandbox="allow-same-origin allow-scripts allow-popups allow-forms"></iframe>`),oDe={hash:`svelte-1k58u5t`,code:`iframe.svelte-1k58u5t {display:block;border:none;width:100%;height:100%;}`}})),cDe,lDe=s((()=>{Yp(),VM(),cDe=class{#e;constructor(e){this.#e=e,this.path=RM(e,{pathOnly:!0})??``,this.url=e.blobURL??this.path,this.field=void 0,this.fileObj=e.file,(async()=>{this.url=await FM(e)??this.url})()}toString(){return this.url}async toBase64(){try{return Kp(await PM(this.#e))}catch(e){throw Error(`Failed to encode asset as base64: ${e.message}`)}}}})),uDe,dDe,fDe,l9,pDe,u9,d9,mDe,hDe,gDe,_De,vDe=s((()=>{gc(),up(),uDe=h(),dc(),Zp(),N7(),JF(),fm(),lDe(),fp(),Sw(),cN(),DC(),jP(),dDe=({locale:e,getFieldArgs:t})=>(n,r)=>Ha(M7,{target:n,props:{keyPath:r,typedKeyPath:``,locale:e,fieldConfig:wP({...t,keyPath:r}),showLabel:!1}}),fDe=e=>t=>{let n;return(0,uDe.createElement)(`div`,{ref:r=>{r?n=e(r,t):n&&Wa(n)}})},l9=(e,t,n)=>wf(Object.fromEntries(Object.keys(e).map(e=>[e,n(`${t}.${e}`)]))),pDe=(e,t)=>n=>{let r=e[n];return r==null?r:Array.isArray(r)?r.map((e,r)=>{let i=typeof e==`object`&&!!e;return wf({data:Cd(e),widgets:i?l9(e,`${n}.${r}`,t):wf({})})}):typeof r==`object`?wf({data:Cd(r),widgets:l9(r,n,t)}):r},u9=({collectionName:e,fileName:t})=>{let n=cm({collectionName:e,fileName:t});return n?dn(MF).filter(e=>GF(e,n)):[]},d9=({entry:e,locale:t,collectionName:n,associatedAssets:r,content:i})=>dp({content:i??e?.locales?.[t]?.content??{},otherLocales:Object.keys(e?.locales??{}).filter(e=>e!==t),locales:e?.locales??{},slug:e?.slug??``,path:e?.locales?.[t]?.path??``,isNew:!1,collectionName:n,associatedAssets:r}),mDe=({entry:e,collectionName:t,fileName:n})=>r=>{let i=WF({value:r,entry:e,collectionName:t,fileName:n});if(i)return new cDe(i)},hDe=async(e,t)=>{let n=yw(e);if(!n)throw Error(`Collection "${e}" not found`);let{defaultLocale:r}=n._i18n,i=iN(e),a={locale:r,collectionName:e,associatedAssets:u9({collectionName:e})},o=e=>d9({...a,entry:e});return t?o(i.find(e=>e.slug===t)):i.map(o)},gDe=({locale:e,getFieldArgs:t})=>{let{valueMap:n={}}=t,r={},i=new Map;return Object.entries(n).forEach(([n,a])=>{let o=n.replace(/\.\d+$/,``),s=wP({...t,keyPath:o});if(s?.widget===`relation`){let{value_field:t=`{{slug}}`,collection:n,file:c}=s,l=(()=>{let e=`${n}:${c??``}`,t=i.get(e);if(t)return t;let r=(c?[TC(n,c)]:iN(n)).filter(e=>!!e);return i.set(e,r),r})();r[o]??={},r[o][n]??={},r[o][n][a]=l.find(n=>t===`{{slug}}`?n.slug===a:n.locales[e]?.content?.[t]===a)?.locales[e]?.content}}),Cd(r)},_De=({draft:e,locale:t})=>{let{collectionName:n,fileName:r,isIndexFile:i,originalEntry:a,currentValues:o}=e,s={...a,locales:Object.fromEntries(Object.entries(o).map(([e,t])=>[e,{slug:a?.locales[e]?.slug??a?.slug,path:a?.locales[e]?.path??a?.subPath,content:t}]))},c=s.locales[t].content??{},l=hc(c),u={collectionName:n,fileName:r,valueMap:c,isIndexFile:i},d=dDe({locale:t,getFieldArgs:u}),f=fDe(d);return{entry:d9({entry:s,locale:t,collectionName:n,associatedAssets:u9({collectionName:n,fileName:r}),content:c}),widgetFor:f,widgetsFor:pDe(l,f),getAsset:mDe({entry:s,collectionName:n,fileName:r}),getCollection:hDe,fieldsMetaData:gDe({locale:t,getFieldArgs:u}
|
|||
|
|
|
|||
|
|
@media (width < 768px) {--field-editor-padding: 12px;
|
|||
|
|
}}`}}));function ADe(e,t){k(t,!0),G(e,PDe);let n=()=>j(D6,`$entryDraft`,o),r=()=>j(c(),`$thatPane`,o),i=()=>j(t.thisPane,`$thisPane`,o),a=()=>j(p9,`$entryEditorSettings`,o),[o,s]=hn(),c=q(t,`thatPane`,19,()=>ln(null)),l=M(()=>n()?.collection),u=M(()=>n()?.collectionFile),d=M(()=>(z(u)??z(l))?._i18n??aw),f=M(()=>z(d).allLocales),p=M(()=>AE.isSmallScreen||AE.isMediumScreen?[...z(f)]:z(f).filter(e=>!(r()?.mode===`edit`&&r().locale===e))),m=M(()=>Object.entries(n()?.validities??{}).some(([e,t])=>z(p).includes(e)&&Object.values(t??{}).some(({valid:e})=>!e))),h=M(()=>n()?.canPreview??!0),g=M(()=>AE.isSmallScreen||AE.isMediumScreen||z(f).length>=5),_=M(()=>z(g)?QR:OI),v=M(()=>z(g)?UL:kI),y=M(()=>z(g)?void 0:`tertiary`),b=M(()=>z(g)?void 0:`small`),x=M(()=>i()?.mode===`edit`?i().locale:i()?.mode===`preview`?`preview`:void 0);var S=NDe(),C=F(S);{let e=M(()=>z(m)&&z(g)?`error`:void 0),o=M(()=>Y(`switch_locale`)),s=M(()=>t.id.replace(`-header`,`-body`));Mo(C,()=>z(_),(l,u)=>{u(l,{get value(){return z(x)},get class(){return z(e)},get"aria-label"(){return z(o)},get"aria-controls"(){return z(s)},children:(e,o)=>{var s=MDe(),l=F(s);vo(l,16,()=>z(p),e=>e,(e,a)=>{let o=M(()=>JC(a)??a),s=M(()=>!n()?.currentLocales[a]),l=M(()=>Object.values(n()?.validities[a]??{}).some(({valid:e})=>!e));var u=V(),d=I(u);{let e=e=>{var t=V(),n=I(t),r=e=>{tI(e,{name:`edit_off`})},i=e=>{tI(e,{name:`error`})};W(n,e=>{z(s)?e(r):z(l)&&e(i,1)}),H(e,t)},n=M(()=>z(o)),u=M(()=>z(s)?Y(`locale_content_disabled_short`):z(l)?Y(`locale_content_error_short`):``),f=M(()=>i()?.mode===`edit`&&i().locale===a),p=M(()=>z(l)?`error`:``);Mo(d,()=>z(v),(i,s)=>{s(i,{get variant(){return z(y)},get size(){return z(b)},get label(){return z(o)},get value(){return a},get"aria-label"(){return`${z(n)??``} ${z(u)??``}`},get selected(){return z(f)},get class(){return z(p)},"data-mode":`edit`,onSelect:()=>{mn(t.thisPane,{mode:`edit`,locale:a}),r()?.mode===`preview`&&mn(c(),{mode:`preview`,locale:a})},startIcon:e,$$slots:{startIcon:!0}})})}H(e,u)});var u=L(l,2),d=e=>{var n=jDe(),a=I(n),o=e=>{MI(e,{})};W(a,e=>{z(g)&&e(o)});var s=L(a,2);{let e=M(()=>Y(`preview`)),n=M(()=>i()?.mode===`preview`);Mo(s,()=>z(v),(i,a)=>{a(i,{get variant(){return z(y)},get size(){return z(b)},get label(){return z(e)},value:`preview`,get selected(){return z(n)},"data-mode":`preview`,onSelect:()=>{mn(t.thisPane,{mode:`preview`,locale:r()?.locale??``})}})})}H(e,n)};W(u,e=>{r()?.mode===`edit`&&z(h)&&a()?.showPreview&&e(d)}),O(s),H(e,s)},$$slots:{default:!0}})})}O(S),H(e,S),A(),s()}var jDe,MDe,NDe,PDe,FDe=s((()=>{Z(),J(),X(),$(),Zp(),M6(),h9(),QC(),sw(),jE(),jDe=B(`<!> <!>`,1),MDe=B(`<div role="none" class="inner svelte-1ibgz0y"><!> <!></div>`),NDe=B(`<div role="none" class="wrapper svelte-1ibgz0y"><!></div>`),PDe={hash:`svelte-1ibgz0y`,code:`.wrapper.svelte-1ibgz0y {display:contents;.combobox {
|
|||
|
|
@media (width < 1024px) {min-width:128px;--sui-textbox-height: 32px;--sui-button-medium-height: 32px;
|
|||
|
|
}&.error [role='combobox'] {border-color:var(--sui-error-border-color);}}}.inner.svelte-1ibgz0y {display:contents;:is(.error, .error button[data-mode='edit']) {color:var(--sui-error-foreground-color) !important;}}`}}));function IDe(e,t){k(t,!0);let n=()=>j(t.thisPane,`$thisPane`,r),[r,i]=hn();{let r=e=>{tI(e,{name:`visibility`})},i=M(()=>Y(`preview`)),a=M(()=>n()?.mode===`preview`);bI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(i)},get pressed(){return z(a)},onclick:()=>{mn(t.thisPane,{mode:n()?.mode===`preview`?`edit`:`preview`,locale:n()?.locale??``})},startIcon:r,$$slots:{startIcon:!0}})}A(),i()}var LDe=s((()=>{Z(),J(),X(),$()}));function RDe(e,t){k(t,!0),G(e,UDe);let n=()=>j(D6,`$entryDraft`,a),r=()=>j(t.thisPane,`$thisPane`,a),i=()=>j(nA,`$backend`,a),[a,o]=hn(),s=q(t,`thatPane`,19,()=>ln(null)),c=M(()=>n()?.collection),l=M(()=>n()?.collectionFile),u=M(()=>n()?.originalEntry),d=M(()=>n()?.originalValues??{}),f=M(()=>(z(l)??z(c))?._i18n??aw),p=M(()=>z(f).i18nEnabled),m=M(()=>z(f).saveAllLocales),h=M(()=>z(f).allLocales),g=M(()=>z(f).defaultLocale),_=M(()=>n()?.currentLocales[r()?.locale??``]),v=M(()=>Object.values(n()?.currentLocales??{}).filter(e=>e).length===1),y=M(()=>z(p)?z(h).filter(e=>e!==r()?.locale):[]),b=M(()=>!!z(y).length),x=M(()=>r()?.locale&&!(0,zDe.default)(z(d)[r().locale],A6(At(n()?.currentValues[r().locale])??{}))),S=M(()=>n()?.canPreview??!0),C=M(()=>z(c)&&z(u)&&r()?.locale?YM(z(u),r().locale,z(c),z(l)):void 0);var w=HDe(),T=F(w);{let e=M(()=>Y(`secondary`));f0(T,{variant:`secondary`,get"aria-label"(){return z(e)},children:(e,a)=>{var o=_9(),c=I(o),l=e=>{var n=g9(),r=I(n);ADe(r,{get id(){return t.id},get thisPane(){return t.thisPane},get thatPane(){return s()}});var i=L(r,2),a=e=>{IDe(e,{get thisPane(){return t.thisPane}})};W(i,e=>{(AE.isSmallScreen||AE.isMediumScreen)&&z(S)&&e(a)}),H(e,n)},d=e=>{var t=BDe(),n=F(t,!0);O(t),R(e=>U(n,e),[()=>r()?.mode===`preview`?Y(`preview`):Y(`edit`)]),H(e,t)},f=e=>{IDe(e,{get thisPane(){return t.thisPane}})};W(c,e=>{z(p)&&z(h).length>1?e(l):AE.isSmallScreen||AE.isMediumScreen?z(S)&&e(f,2):e(d,1)});var w=L(c,2);PI(w,{flex:!0});var T=L(w,2),E=e=>{let t=M(()=>JC(r().locale)??r().locale);var a=g9(),o=I(a),s=e=>{Fye(e,{get locale(){return r().locale},get otherLocales(){return z(y)}})};W(o,e=>{z(b)&&e(s)});var c=L(o,2);{let e=e=>{{let a=M(()=>Y(`content_options_x_locale`,{values:{locale:z(t)}}));YL(e,{get"aria-label"(){return z(a)},children:(e,a)=>{var o=VDe(),s=I(o),c=e=>{T5(e,{get locale(){return r().locale},get otherLocales(){return z(y)}})};W(s,e=>{z(b)&&r()?.locale&&e(c)});var l=L(s,2);{let e=M(()=>Y(`revert_changes`)),t=M(()=>!z(x));eR(l,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{i9({locale:r()?.locale})}})}var d=L(l,2),f=e=>{var i=g9(),a=I(i);MI(a,{});var o=L(a,2);{let e=M(()=>Y(z(_)?`disable_x_locale`:At(n()?.currentValues[r().locale])?`reenable_x_locale`:`enable_x_locale`,{values:{locale:z(t)}})),i=M(()=>r().locale===z(g)||z(_)&&z(v));eR(o,{get label(){return z(e)},get disabled(){return z(i)},onclick:()=>{F7(r()?.locale??``)}})}H(e,i)};W(d,e=>{!z(m)&&r()?.locale&&e(f)});var p=L(d,2),h=e=>{var t=_9(),n=I(t);MI(n,{});var a=L(n,2),o=e=>{{let t=M(()=>Y(`view_on_live_site`));eR(e,{get label(){return z(t)},onclick:()=>{V2(z(C))}})}};W(a,e=>{z(C)&&e(o)});var s=L(a,2),c=e=>{{let t=M(()=>!i()?.repository?.blobBaseURL),n=M(()=>Y(`view_on_x`,{values:{service:i()?.repository?.label},default:Y(`view_in_repository`)}));eR(e,{get disabled(){return z(t)},get label(){return z(n)},onclick:()=>{z(u)&&r()&&V2(XM(z(u),r().locale))}})}};W(s,e=>{DO.devModeEnabled&&e(c)}),H(e,t)};W(p,e=>{z(u)&&(z(C)||DO.devModeEnabled)&&e(h)}),H(e,o)},$$slots:{default:!0}})}},a=M(()=>Y(`show_content_options_x_locale`,{values:{locale:z(t)}}));AI(c,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(a)},popup:e,$$slots:{popup:!0}})}H(e,a)};W(T,e=>{r()?.mode===`edit`&&e(E)}),H(e,o)},$$slots:{default:!0}})}O(w),R(()=>K(w,`id`,t.id)),H(e,w),A(),o()}var zDe,g9,BDe,_9,VDe,HDe,UDe,WDe=s((()=>{Z(),J(),X(),$(),zDe=u(CO()),Zp(),E5(),Iye()
|
|||
|
|
|
|||
|
|
@media (width < 768px) {padding:0;
|
|||
|
|
}h3 {margin:0 8px;font-size:var(--sui-font-size-default);}}}`}}));function v9(e,t){let n=za();G(e,KDe);let r=q(t,`children`,3,void 0);var i=GDe(),a=F(i),o=F(a),s=F(o,!0);O(o),O(a);var c=L(a,2);Ao(F(c),()=>r()??D),O(c),O(i),R(()=>{K(i,`aria-labelledby`,`panel-${n}-label`),K(o,`id`,`panel-${n}-label`),U(s,t.title)}),H(e,i)}var GDe,KDe,y9=s((()=>{Z(),J(),GDe=B(`<section role="group" class="panel svelte-1bq1or9"><header class="svelte-1bq1or9"><h3 class="svelte-1bq1or9"> </h3></header> <div class="svelte-1bq1or9"><!></div></section>`),KDe={hash:`svelte-1bq1or9`,code:`section.svelte-1bq1or9 {overflow:hidden;height:100%;display:flex;flex-direction:column;}header.svelte-1bq1or9 {flex:none;display:flex;align-items:center;border-bottom:1px solid var(--sui-secondary-border-color);padding:0 16px;height:var(--sui-primary-toolbar-size);}h3.svelte-1bq1or9 {font-size:var(--sui-font-size-x-large);}div.svelte-1bq1or9 {flex:auto;overflow:auto;h4 {display:flex;align-items:center;padding:12px 12px 8px;font-size:var(--sui-font-size-large);}& > .empty {padding:16px;}.empty {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.sui.button.ref {display:flex;justify-content:flex-start;gap:8px;padding:8px;width:-moz-available;width:-webkit-fill-available;width:stretch;height:auto;}}`}})),b9,qDe,JDe,YDe,XDe=s((()=>{Ip(),Zp(),TF(),yC(),Sw(),cN(),RP(),zN(),b9=(e,t,n)=>{if(n)return Object.entries(e).filter(([e])=>RegExp(`^${jp(t)}\\.\\d+$`).test(e)).map(([,e])=>e);let r=e[t];return r==null?[]:[r]},qDe=(e,t,n)=>{let{collection:r,file:i}=e;if(!yw(r))return new Set;let a=LN({locale:n,fieldConfig:e,refEntries:i?dn(mC).filter(e=>Object.values(e.locales).some(({path:e})=>e.includes(i))):iN(r)}),o=e.value_field;if(!o||o===`{{slug}}`||o===`slug`)return new Set([t.slug]);let s=t.locales[n]?.content??Object.values(t.locales)[0]?.content??{};if(!o.includes(`{{`)&&!o.includes(`*`)){let e=s[o];return e==null?new Set:new Set([e])}let c=t.slug,l=new Set(a.filter(e=>String(e.value).includes(c)).map(e=>e.value));if(l.size===0){let e=s[o.replace(/^{{|}}$/g,``)];e!=null&&l.add(e)}return l},JDe=(e,t,n,r,i)=>i?Object.keys(e).filter(e=>i.test(e)).some(t=>b9(e,t,n).some(e=>r.has(e))):b9(e,t,n).some(e=>r.has(e)),YDe=({collectionName:e,fileName:t,entry:n})=>{let r=yw(e);if(!r)return[];let{_i18n:{defaultLocale:i}}=r,a=[...wF.relationFields].filter(({fieldConfig:n})=>!(n.collection!==e||t&&n.file&&n.file!==t));if(a.length===0)return[];let o=new Map(a.map(({fieldConfig:e})=>[e,qDe(e,n,i)]));return a.flatMap(({fieldConfig:t,context:r})=>{let i=r.collection;if(!i||!(`name`in i))return[];let a=i.name,s=yw(a);if(!s)return[];let c=s._i18n.defaultLocale,l=o.get(t)??new Set;if(l.size===0)return[];let u=(r.typedKeyPath??``).replace(/<[^>]+>/g,``).replace(/\.\*\./g,`.*.`).replace(/\.\*$/,`.*`),d=t.name,f=u.replace(/\*\./g,``).replace(/\*$/g,``)||d,p=f.includes(`*`)?RegExp(`^${jp(f).replace(/\\\*/g,`\\d+`)}$`):void 0;return(a===e?iN(a).filter(e=>e.slug!==n.slug):iN(a)).map(e=>{let n=e.locales[c]?.content??Object.values(e.locales)[0]?.content;if(!(!n||!JDe(n,f,!!t.multiple,l,p)))return{collectionName:a,collectionLabel:s.label??a,fieldLabel:t.label??d,entry:e,summary:LP(s,e)}}).filter(e=>!!e)})}}));function ZDe(e,t){k(t,!0),G(e,tOe);let n=()=>j(D6,`$entryDraft`,r),[r,i]=hn(),a=M(()=>{let e=n();return e?.originalEntry?YDe({collectionName:e.collectionName,fileName:e.fileName,entry:e.originalEntry}):[]}),o=M(()=>{let e=[];return z(a).forEach(t=>{let n=e.find(e=>e.collectionLabel===t.collectionLabel);n?n.items.push(t):e.push({collectionLabel:t.collectionLabel,items:[t]})}),e});{let t=M(()=>Y(`entry_sidebar.backlinks.title`));v9(e,{get title(){return z(t)},children:(e,t)=>{var n=V(),r=I(n),i=e=>{var t=V();vo(I(t),17,()=>z(o),({collectionLabel:e,items:t})=>e,(e,t)=>{let n=()=>z(t).collectionLabel,r=()=>z(t).items;var i=$De(),a=F(i),o=F(a,!0);O(a),vo(L(a,2),17,r,e=>e.entry.id,(e,t)=>{bI(e,{class:`ref`,variant:`ghost`,onclick:()=>{X2(`/collections/${z(t).collectionName}/entries/${z(t).entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{var r=QDe(),i=
|
|||
|
|
.empty:where(.svelte-mwf2jd) {margin:0 !important;padding:12px;}.summary:where(.svelte-mwf2jd) {display:block;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-heading-font-weight);}.sui.button.ref {flex-direction:column;align-items:flex-start;gap:4px;}}`}}));function xOe(e,t){k(t,!0),G(e,wOe);let n=()=>j(D6,`$entryDraft`,a),r=()=>j(nA,`$backend`,a),i=()=>j(p9,`$entryEditorSettings`,a),[a,o]=hn(),s=M(()=>{let e=n()?.collectionName,t=n()?.fileName;return e?[...wF.relationFields].some(({fieldConfig:n})=>!(n.collection!==e||t&&n.file&&n.file!==t)):!1}),c=M(()=>[{key:`validation`,label:Y(`entry_sidebar.validation.title`),icon:`check_circle`,disabled:!1,panel:pOe},{key:`history`,label:Y(`entry_sidebar.history.title`),icon:`history`,disabled:!r()?.isGit||!!n()?.isNew,panel:oOe},{key:`backlinks`,label:Y(`entry_sidebar.backlinks.title`),icon:`article_shortcut`,disabled:!z(s),panel:ZDe}]),l=N(Nr(i()?.sidebarPanel??null)),u=M(()=>z(l)?z(c).find(e=>e.key===z(l))??z(c)[0]:null);ri(()=>{p9.update((e={})=>({...e,sidebarPanel:z(l)}))});var d=COe(),f=F(d);{let e=M(()=>Y(`entry_sidebar.sidebar_panels`));OI(f,{class:`tabs`,get"aria-label"(){return z(e)},"aria-controls":`entry-sidebar-content`,children:(e,t)=>{var n=V();vo(I(n),17,()=>z(c),({key:e,label:t,icon:n,disabled:r})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).label,i=()=>z(t).icon,a=()=>z(t).disabled;{let t=M(()=>z(u)?.key===n());kI(e,{iconic:!0,get"aria-label"(){return r()},get selected(){return z(t)},get disabled(){return a()},onclick:()=>{P(l,z(l)===n()?null:n(),!0)},children:(e,t)=>{tI(e,{get name(){return i()}})},$$slots:{default:!0}})}}),H(e,n)},$$slots:{default:!0}})}var p=L(f,2),m=e=>{var t=SOe();Mo(F(t),()=>z(u).panel,(e,t)=>{t(e,{})}),O(t),H(e,t)};W(p,e=>{z(u)&&e(m)}),O(d),H(e,d),A(),o()}var SOe,COe,wOe,TOe=s((()=>{Z(),J(),X(),$(),nOe(),fOe(),bOe(),iA(),TF(),M6(),h9(),SOe=B(`<div role="none" class="content svelte-19e8zut" id="entry-sidebar-content"><!></div>`),COe=B(`<div role="none" class="sidebar svelte-19e8zut"><!> <!></div>`),wOe={hash:`svelte-19e8zut`,code:`.sidebar.svelte-19e8zut {flex:none;display:flex;flex-direction:row-reverse;.tabs {flex:none;display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;padding:8px 0;width:48px;button {border-radius:4px !important;}}}.content.svelte-19e8zut {flex:none;width:320px;margin-inline-start:8px;border-radius:16px 16px 0 0;background-color:var(--sui-primary-background-color);}`}}));function EOe(e,t){let n=za();k(t,!0),G(e,jOe);let r=()=>j(D6,`$entryDraft`,i),[i,a]=hn(),o=q(t,`open`,15,!1),s=M(()=>r()?.collectionName??``),c=M(()=>r()?.currentSlugs??{}),l=N(Nr([])),u=Nr({}),d=Nr({}),f=()=>{let e=new Set(Object.values(z(c)));P(l,iN(z(s)).flatMap(e=>Object.values(e.locales).map(({slug:e})=>e)).filter(t=>!e.has(t)),!0),Object.assign(u,z(c)),Object.assign(d,Object.fromEntries(Object.keys(z(c)).map(e=>[e,!1])))},p=e=>u[e].trim()?/[/\s]/.test(u[e])?`invalid`:z(l).includes(u[e])?`duplicate`:!1:`empty`;ri(()=>{o()&&f()});{let t=M(()=>Y(`edit_slug`)),i=M(()=>Y(`update`)),a=M(()=>(0,DOe.default)(z(c),u)||Object.values(d).some(e=>e!==!1));qI(e,{get title(){return z(t)},get okLabel(){return z(i)},get okDisabled(){return z(a)},onOk:()=>{_n(D6,Gi(r).currentSlugs=Object.fromEntries(Object.entries(u).map(([e,t])=>[e,hb(t,{locale:e})])),Gi(r))},get open(){return o()},set open(e){o(e)},children:(e,t)=>{var r=AOe(),i=I(r);po(i,()=>({"--font-size":`var(--sui-font-size-small)`})),rI(i.lastChild,{status:`warning`,children:(e,t)=>{gt();var n=Ra();R(e=>U(n,e),[()=>Y(`edit_slug_warning`)]),H(e,n)},$$slots:{default:!0}}),O(i);var a=L(i,2);vo(a,20,()=>Object.keys(u),e=>e,(e,t)=>{var r=kOe(),i=F(r),a=e=>{var n=OOe(),r=F(n),i=F(r,!0);O(r),O(n),R(e=>U(i,e),[()=>JC(t)??t]),H(e,n)},o=M(()=>![`_`,`_default`].includes(t));W(i,e=>{z(o)&&e(a)});var s=L(i,2),c=F(s);{let e=M(()=>d[t]!==!1);oL(c,{dir:`auto`,flex:!0,oninput:()=>{d[t]=p(t)},get invalid(){return z(e)},get"aria-errormessage"(){return`${n}-${t??``}-error`},get value(){return u[t]},set value(e){u[t]=e}})}var l=L(c,2),f=F(l),m=e=>{var n=
|
|||
|
|
&:focus-visible {opacity:1;}}}}`},Ea([`pointerdown`,`keydown`])}));function uke(e,t){k(t,!0),G(e,mke);let n=()=>j(rN,`$selectedEntryIdSet`,r),[r,i]=hn(),a=q(t,`showCheckbox`,3,!1),o=q(t,`onSelect`,3,void 0);var s=pke(),c=I(s),l=e=>{CL(e,{class:`checkbox`,children:(e,r)=>{{let r=M(()=>n().has(t.entry.id));HI(e,{role:`none`,tabindex:`-1`,get checked(){return z(r)},onChange:({detail:{checked:e}})=>{o()?.(e)}})}},$$slots:{default:!0}})};W(c,e=>{a()&&!(AE.isSmallScreen||AE.isMediumScreen)&&e(l)});var u=L(c,2),d=e=>{CL(e,{class:`image`,children:(e,n)=>{var r=V();ro(I(r),()=>YF(t.collection,t.entry),null,(e,n)=>{var r=V(),i=I(r),a=e=>{{let r=M(()=>t.viewType===`list`?`icon`:`tile`);V6(e,{get src(){return z(n)},get variant(){return z(r)},cover:!0})}};W(i,e=>{z(n)&&e(a)}),H(e,r)}),H(e,r)},$$slots:{default:!0}})};W(u,e=>{t.collection._thumbnailFieldNames.length&&e(d)}),CL(L(u,2),{class:`title`,children:(e,n)=>{var r=fke();lI(F(r),{lines:2,children:(e,n)=>{var r=dke(),i=I(r);lo(i,()=>Xh.current,e=>{var n=V();Eo(I(n),()=>LP(t.collection,t.entry,{useTemplate:!0,allowMarkdown:!0})),H(e,n)});var a=L(i,2),o=e=>{{let n=M(()=>Cw(t.collection)?.icon);tI(e,{get name(){return z(n)},class:`home`})}},s=M(()=>ww(t.collection,t.entry));W(a,e=>{z(s)&&e(o)}),H(e,r)},$$slots:{default:!0}}),O(r),H(e,r)},$$slots:{default:!0}}),H(e,s),A(),i()}var dke,fke,pke,mke,hke=s((()=>{Z(),J(),X(),$(),H6(),cN(),Tw(),ZF(),RP(),jE(),dke=B(`<!> <!>`,1),fke=B(`<div role="none" class="label svelte-b1f01"><!></div>`),pke=B(`<!> <!> <!>`,1),mke={hash:`svelte-b1f01`,code:`.label.svelte-b1f01 {.icon.home {opacity:0.5;font-size:20px;vertical-align:-4px;}}`}}));function gke(e,t){k(t,!0);let n=()=>j(d8,`$listedEntries`,r),[r,i]=hn(),a=e=>{nN.update(n=>{let r=n.indexOf(t.entry);return e&&r===-1&&n.push(t.entry),!e&&r>-1&&n.splice(r,1),n})};{let r=M(()=>n().indexOf(t.entry));DL(e,{get"aria-rowindex"(){return z(r)},onChange:e=>{a(e.detail.selected)},onclick:()=>{X2(`/collections/${t.collection.name}/entries/${t.entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{uke(e,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType},showCheckbox:!0,onSelect:a})},$$slots:{default:!0}})}A(),i()}var _ke=s((()=>{Z(),J(),$(),hke(),$2(),cN(),g8()}));function vke(e,t){k(t,!0);let n=()=>j(d8,`$listedEntries`,r),[r,i]=hn(),a=q(t,`dragging`,3,!1),o=q(t,`dropBefore`,3,!1),s=q(t,`dropAfter`,3,!1),c=q(t,`canMoveUp`,3,!1),l=q(t,`canMoveDown`,3,!1),u=q(t,`onDragStart`,3,void 0),d=q(t,`onDragOver`,3,void 0),f=q(t,`onDrop`,3,void 0),p=q(t,`onDragEnd`,3,void 0),m=q(t,`onMoveUp`,3,void 0),h=q(t,`onMoveDown`,3,void 0);{let r=M(()=>n().indexOf(t.entry)),i=M(()=>[a()&&`drag-source`,o()&&`drop-before`,s()&&`drop-after`].filter(Boolean).join(` `));DL(e,{get"aria-rowindex"(){return z(r)},get class(){return z(i)},draggable:!0,ondragstart:e=>{u()?.(),e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`)},ondragover:e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),d()?.(e.clientY,e.currentTarget.getBoundingClientRect())},ondrop:e=>{e.preventDefault(),f()?.()},ondragend:()=>{p()?.()},children:(e,n)=>{var r=k9(),i=I(r);uke(i,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType}}),CL(L(i,2),{class:`reorder-actions`,children:(e,t)=>{var n=k9(),r=I(n);{let e=e=>{tI(e,{name:`arrow_upward`})},t=M(()=>!c()),n=M(()=>Y(`move_up`));bI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:e=>{e.stopPropagation(),m()?.()},startIcon:e,$$slots:{startIcon:!0}})}var i=L(r,2);{let e=e=>{tI(e,{name:`arrow_downward`})},t=M(()=>!l()),n=M(()=>Y(`move_down`));bI(i,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:e=>{e.stopPropagation(),h()?.()},startIcon:e,$$slots:{startIcon:!0}})}H(e,n)},$$slots:{default:!0}}),H(e,r)},$$slots:{default:!0}})}A(),i()}var k9,yke=s((()=>{Z(),J(),X(),$(),hke(),g8(),k9=B(`<!> <!>`,1)}));function bke(e,t){k(t,!0),G(e,Ske);let n=()=>j(h8,`$entryGroups`,r),[r,i]=hn(),a=N(Nr({})),o=N(``),s=N
|
|||
|
|
|
|||
|
|
@media (width < 768px) {justify-content:space-evenly;width:100%;
|
|||
|
|
}}.sui.button {border-radius:var(--sui-button-medium-border-radius) !important;}}`}}));function MAe(e,t){k(t,!0);let n=()=>j(U2,`$hasOverlay`,r),[r,i]=hn();xse(e,{get inert(){return n()},children:(e,t)=>{{let t=M(()=>Y(`global`));f0(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=NAe();OAe(F(n),{}),O(n),H(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}}),A(),i()}var NAe,PAe=s((()=>{Z(),J(),X(),$(),jAe(),$2(),NAe=B(`<div role="none" class="buttons"><!></div>`)}));function FAe(e,t){k(t,!0);let n=N(!1),r,i=e=>{e.preventDefault(),r=e,P(n,!0)},a=()=>{r=null,P(n,!1)};lc(()=>(window.addEventListener(`beforeinstallprompt`,i),window.addEventListener(`appinstalled`,a),()=>{window.removeEventListener(`beforeinstallprompt`,i),window.removeEventListener(`appinstalled`,a)}));var o=V(),s=I(o),c=e=>{{let t=M(()=>Y(`install_as_app`));eR(e,{get label(){return z(t)},onclick:async()=>{await r?.prompt()}})}};W(s,e=>{z(n)&&e(c)}),H(e,o),A()}var IAe=s((()=>{Z(),J(),X(),$(),dc()}));function LAe(e,t){k(t,!0),G(e,VAe);let n=q(t,`open`,15,!1),r=q(t,`onClose`,3,void 0),i=[{feature:`view_content_library`,keys:`Alt+1`},{feature:`view_asset_library`,keys:`Alt+2`},{feature:`search`,keys:`Accel+F`},{feature:`create_entry`,keys:`Accel+E`},{feature:`save_entry`,keys:`Accel+S`},{feature:`cancel_editing`,keys:`Escape`}];{let t=M(()=>Y(`keyboard_shortcuts`));qI(e,{get title(){return z(t)},size:`small`,showOk:!1,showCancel:!1,showClose:!0,style:`--sui-dialog-small-content-max-height:auto`,onClose:()=>{r()?.()},get open(){return n()},set open(e){n(e)},children:(e,t)=>{var n=BAe(),r=F(n);{let e=M(()=>Y(`keyboard_shortcuts`));Lce(r,{get"aria-label"(){return z(e)},children:(e,t)=>{var n=V();vo(I(n),17,()=>i,({feature:e,keys:t})=>t,(e,t)=>{let n=()=>z(t).feature,r=()=>z(t).keys;Fce(e,{children:(e,t)=>{var i=zAe(),a=I(i);mz(a,{class:`feature`,children:(e,t)=>{gt();var r=Ra();R(e=>U(r,e),[()=>Y(`keyboard_shortcuts_.${n()}`)]),H(e,r)},$$slots:{default:!0}}),mz(L(a,2),{class:`keys`,children:(e,t)=>{var n=V();vo(I(n),16,()=>r().split(`+`),e=>e,(e,t)=>{var n=RAe(),r=F(n,!0);O(n),R(e=>U(r,e),[()=>t.replace(`Accel`,AE.isMacOS?`⌘`:`Ctrl`)]),H(e,n)}),H(e,n)},$$slots:{default:!0}}),H(e,i)},$$slots:{default:!0}})}),H(e,n)},$$slots:{default:!0}})}O(n),H(e,n)},$$slots:{default:!0}})}A()}var RAe,zAe,BAe,VAe,HAe=s((()=>{Z(),J(),X(),$(),jE(),RAe=B(`<kbd class="svelte-13q15u"> </kbd>`),zAe=B(`<!> <!>`,1),BAe=B(`<div role="none" class="wrapper svelte-13q15u"><!></div>`),VAe={hash:`svelte-13q15u`,code:`.wrapper.svelte-13q15u {display:contents;.table-row {display:flex;align-items:center;gap:16px;padding:8px 0;border-top:1px solid var(--sui-secondary-border-color);&:last-child {border-bottom:1px solid var(--sui-secondary-border-color);}.feature {flex:auto;}.keys {display:flex;gap:8px;}}}kbd.svelte-13q15u {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border-color:var(--sui-primary-accent-color);border-radius:4px;padding:0 8px;height:32px;min-width:32px;background-color:var(--sui-tertiary-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);}`}}));function UAe(e,t){k(t,!0);let n=N(!1);var r=WAe(),i=I(r),a=e=>{{let t=M(()=>Y(`keyboard_shortcuts`));eR(e,{get label(){return z(t)},onclick:()=>{P(n,!0)}})}};W(i,e=>{AE.hasMouse&&e(a)}),LAe(L(i,2),{onClose:()=>{t.menuButton?.focus()},get open(){return z(n)},set open(e){P(n,e,!0)}}),H(e,r),A()}var WAe,GAe=s((()=>{Z(),J(),X(),$(),HAe(),jE(),WAe=B(`<!> <!>`,1)}));function I9(e,t){k(t,!0);let n=q(t,`defaultValue`,3,!0),r=N(!0);ri(()=>{P(r,!!(DO[t.key]??n()),!0)}),ri(()=>{DO[t.key]!==z(r)&&(DO[t.key]=z(r))}),uz(e,{get label(){return t.label},get checked(){return z(r)},set checked(e){P(r,e,!0)}}),A()}var L9=s((()=>{Z(),J(),$(),OO()}));function KAe(e,t){k(t,!0),q(t,`onChange`,3,void 0);var n=qAe(),r=F(n),i=F(r,!0);O(r);var a=L(r,2),o=F(a,!0);O(a);var s=L(a,2),c=F(s);{let e=M(()=>Y(`prefs.accessibility.underline_links.switch_label`));I9(c,{key:`underlineLinks`,get label(){return z(e)}
|
|||
|
|
/* Disable the keyboard shortcut for the search bar */display:none !important;}}& > .sui.toolbar {
|
|||
|
|
@media (width < 768px) {padding:0 4px;
|
|||
|
|
}.buttons {flex:auto;display:flex;align-items:center;width:50%;&:last-child {justify-content:flex-end;}}.sui.search-bar {flex:none;width:640px;max-width:50%;
|
|||
|
|
|
|||
|
|
@media (width < 768px) {flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;max-width:none;
|
|||
|
|
}}}}`}}));function iMe(e,t){k(t,!0),G(e,cMe);{let t=e=>{w8(e,{primaryToolbar:e=>{f0(e,{variant:`primary`,children:(e,t)=>{var n=aMe(),r=I(n),i=F(r,!0);O(r),PI(L(r,2),{flex:!0}),R(e=>U(i,e),[()=>Y(`menu`)]),H(e,n)},$$slots:{default:!0}})},mainContent:e=>{var t=sMe(),n=F(t),r=F(n),i=F(r,!0);O(r),Tje(L(r,2),{}),O(n);var a=L(n,2),o=e=>{var t=oMe(),n=F(t),r=F(n,!0);O(n),zje(L(n,2),{}),O(t),R(e=>U(r,e),[()=>Y(`help`)]),H(e,t)};W(a,e=>{DO.devModeEnabled&&e(o)}),O(t),R(e=>U(i,e),[()=>Y(`account`)]),H(e,t)},$$slots:{primaryToolbar:!0,mainContent:!0}})},n=M(()=>Y(`menu`));E8(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}A()}var aMe,oMe,sMe,cMe,lMe=s((()=>{Z(),J(),X(),$(),T8(),D8(),Dje(),Hje(),OO(),aMe=B(`<h2 role="none"> </h2> <!>`,1),oMe=B(`<section><h3 class="svelte-16cq5v7"> </h3> <!></section>`),sMe=B(`<div role="none" class="wrapper svelte-16cq5v7"><section><h3 class="svelte-16cq5v7"> </h3> <!></section> <!></div>`),cMe={hash:`svelte-16cq5v7`,code:`.wrapper.svelte-16cq5v7 {overflow-y:auto;height:100%;--sui-menu-border-width: 0;--sui-menu-border-radius: 0;--sui-menu-padding: 8px 0;}h3.svelte-16cq5v7 {padding:8px 16px;background-color:var(--sui-tertiary-background-color);color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-normal);}`}})),uMe=c(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),W9=c((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),G9=c((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),dMe=c(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),fMe=c(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),pMe=c((e=>{var t=W9().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),mMe=c((e=>{var t=W9().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),hMe=c((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010
|
|||
|
|
]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^[0-9]+$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),K9=c((e=>{var t=bMe(),n=xMe();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),SMe=c((e=>{var t=W9(),n=gMe(),r=G9(),i=K9(),a=bMe(),o=7973,s=t.getBCHDigit(o);function c(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function l(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){let r=l(e.mode,t);n+=r+e.getBitsLength()}),n}function d(t,n){for(let r=1;r<=40;r++)if(u(t,r)<=e.getCapacity(r,n,i.MIXED))return r}e.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,o){if(!a.isValid(e))throw Error(`Invalid QR Code version`);o===void 0&&(o=i.BYTE);let s=(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r))*8;if(o===i.MIXED)return s;let c=s-l(o,e);switch(o){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,i=r.from(t,r.M);if(Array.isArray(e)){if(e.length>1)return d(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return c(n.mode,n.getLength(),i)},e.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-s>=0;)n^=o<<t.getBCHDigit(n)-s;return e<<12|n}})),CMe=c((e=>{var t=W9(),n=1335,r=21522,i=t.getBCHDigit(n);e.getEncodedBits=function(e,a){let o=e.bit<<3|a,s=o<<10;for(;t.getBCHDigit(s)-i>=0;)s^=n<<t.getBCHDigit(s)-i;return(o<<10|s)^r}})),wMe=c(((e,t)=>{var n=K9();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),TMe=c(((e,t)=>{var n=K9(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),EMe=c(((e,t)=>{var n=K9();function r(e){this.mode=n.BYTE,typeof e==`string`?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}r.getBitsLength=function(e){return e*8},r.prototype.getLength=functi
|
|||
|
|
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i})),OMe=c(((e,t)=>{var n={single_source_shortest_paths:function(e,t,r){var i={},a={};a[t]=0;var o=n.PriorityQueue.make();o.push(t,0);for(var s,c,l,u,d,f,p,m,h;!o.empty();)for(l in s=o.pop(),c=s.value,u=s.cost,d=e[c]||{},d)d.hasOwnProperty(l)&&(f=d[l],p=u+f,m=a[l],h=a[l]===void 0,(h||m>p)&&(a[l]=p,o.push(l,p),i[l]=c));if(r!==void 0&&a[r]===void 0){var g=[`Could not find a path from `,t,` to `,r,`.`].join(``);throw Error(g)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,r){var i=n.single_source_shortest_paths(e,t,r);return n.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t=n.PriorityQueue,r={},i;for(i in e||={},t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t!==void 0&&(t.exports=n)})),kMe=c((e=>{var t=K9(),n=wMe(),r=TMe(),i=EMe(),a=DMe(),o=xMe(),s=W9(),c=OMe();function l(e){return unescape(encodeURIComponent(e)).length}function u(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function d(e){let n=u(o.NUMERIC,t.NUMERIC,e),r=u(o.ALPHANUMERIC,t.ALPHANUMERIC,e),i,a;return s.isKanjiModeEnabled()?(i=u(o.BYTE,t.BYTE,e),a=u(o.KANJI,t.KANJI,e)):(i=u(o.BYTE_KANJI,t.BYTE,e),a=[]),n.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,o){switch(o){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return r.getBitsLength(e);case t.KANJI:return a.getBitsLength(e);case t.BYTE:return i.getBitsLength(e)}}function p(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function m(e){let n=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case t.NUMERIC:n.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:n.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:n.push([i,{data:i.data,mode:t.BYTE,length:l(i.data)}]);break;case t.BYTE:n.push([{data:i.data,mode:t.BYTE,length:l(i.data)}])}}return n}function h(e,n){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=f(r[o].lastCount+l.length,l.mode)-f(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=f(l.length,l.mode)+4+t.getCharCountIndicator(l.mode,n))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function g(e,o){let c,l=t.getBestModeForData(e);if(c=t.from(o,l),c!==t.BYTE&&c.bit<l.bit)throw Error(`"`+e+`" cannot be encoded with mode `+t.toString(c)+`.
|
|||
|
|
Suggested mode is: `+t.toString(l));switch(c===t.KANJI&&!s.isKanjiModeEnabled()&&(c=t.BYTE),c){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new r(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=h(m(d(t,s.isKanjiModeEnabled())),n),i=c.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(p(a))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}})),AMe=c((e=>{var t=W9(),n=G9(),r=dMe(),i=fMe(),a=pMe(),o=mMe(),s=hMe(),c=gMe(),l=yMe(),u=SMe(),d=CMe(),f=K9(),p=kMe();function m(e,t){let n=e.size,r=o.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function h(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function g(e,t){let n=a.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function _(e,t){let n=e.size,r=u.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function v(e,t,n){let r=e.size,i=d.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function y(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function b(e,n,i){let a=new r;i.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(a)});let o=(t.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,n))*8;for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let s=(o-a.getLengthInBits())/8;for(let e=0;e<s;e++)a.put(e%2?17:236,8);return x(a,e,n)}function x(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-c.getTotalCodewordsCount(n,r),o=c.getBlocksCount(n,r),s=o-i%o,u=Math.floor(i/o),d=Math.floor(a/o),f=d+1,p=u-d,m=new l(p),h=0,g=Array(o),_=Array(o),v=0,y=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?d:f;g[e]=y.slice(h,h+t),_[e]=m.encode(g[e]),h+=t,v=Math.max(v,t)}let b=new Uint8Array(i),x=0,S,C;for(S=0;S<v;S++)for(C=0;C<o;C++)S<g[C].length&&(b[x++]=g[C][S]);for(S=0;S<p;S++)for(C=0;C<o;C++)b[x++]=_[C][S];return b}function S(e,n,r,a){let o;if(Array.isArray(e))o=p.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=p.rawSplit(e);t=u.getBestVersionForData(n,r)}o=p.fromString(e,t||40)}else throw Error(`Invalid data`);let c=u.getBestVersionForData(o,r);if(!c)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=c;else if(n<c)throw Error(`
|
|||
|
|
The chosen QR Code version cannot contain this amount of data.
|
|||
|
|
Minimum version required to store current data is: `+c+`.
|
|||
|
|
`);let l=b(n,r,o),d=new i(t.getSymbolSize(n));return m(d,n),h(d),g(d,n),v(d,r,0),n>=7&&_(d,n),y(d,l),isNaN(a)&&(a=s.getBestMask(d,v.bind(null,d,r))),s.applyMask(a,d),v(d,r,a),{modules:d,version:n,errorCorrectionLevel:r,maskPattern:a,segments:o}}e.create=function(e,r){if(e===void 0||e===``)throw Error(`No input text`);let i=n.M,a,o;return r!==void 0&&(i=n.from(r.errorCorrectionLevel,n.M),a=u.from(r.version),o=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),S(e,a,i,o)}})),jMe=c((e=>{function t(e){if(typeof e==`number`&&(e=e.toString()),typeof e!=`string`)throw Error(`Color should be defined as hex string`);let t=e.slice().replace(`#`,``).split(``);if(t.length<3||t.length===5||t.length>8)throw Error(`Invalid hex color: `+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),t.length===6&&t.push(`F`,`F`);let n=parseInt(t.join(``),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:`#`+t.slice(0,6).join(``)}}e.getOptions=function(e){e||={},e.color||={};let n=e.margin===void 0||e.margin===null||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:t(e.color.dark||`#000000ff`),light:t(e.color.light||`#ffffffff`)},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+n.margin*2)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,a=n.modules.data,o=e.getScale(i,r),s=Math.floor((i+r.margin*2)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=(e*s+n)*4,d=r.color.light;if(e>=c&&n>=c&&e<s-c&&n<s-c){let t=Math.floor((e-c)/o),r=Math.floor((n-c)/o);d=l[+!!a[t*i+r]]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}})),MMe=c((e=>{var t=jMe();function n(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||={},t.height=n,t.width=n,t.style.height=n+`px`,t.style.width=n+`px`}function r(){try{return document.createElement(`canvas`)}catch{throw Error(`You need to specify a canvas element`)}}e.render=function(e,i,a){let o=a,s=i;o===void 0&&(!i||!i.getContext)&&(o=i,i=void 0),i||(s=r()),o=t.getOptions(o);let c=t.getImageWidth(e.modules.size,o),l=s.getContext(`2d`),u=l.createImageData(c,c);return t.qrToImageData(u.data,e,o),n(l,s,c),l.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,r){let i=r;i===void 0&&(!n||!n.getContext)&&(i=n,n=void 0),i||={};let a=e.render(t,n,i),o=i.type||`image/png`,s=i.rendererOpts||{};return a.toDataURL(o,s.quality)}})),NMe=c((e=>{var t=jMe();function n(e,t){let n=e.a/255,r=t+`="`+e.hex+`"`;return n<1?r+` `+t+`-opacity="`+n.toFixed(2).slice(1)+`"`:r}function r(e,t,n){let r=e+t;return n!==void 0&&(r+=` `+n),r}function i(e,t,n){let i=``,a=0,o=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);!l&&!o&&(o=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(i+=o?r(`M`,l+n,.5+u+n):r(`m`,a,0),a=0,o=!1),l+1<t&&e[c+1]||(i+=r(`h`,s),s=0)):a++}return i}e.render=function(e,r,a){let o=t.getOptions(r),s=e.modules.size,c=e.modules.data,l=s+o.margin*2,u=o.color.light.a?`<path `+n(o.color.light,`fill`)+` d="M0 0h`+l+`v`+l+`H0z"/>`:``,d=`<path `+n(o.color.dark,`stroke`)+` d="`+i(c,s,o.margin)+`"/>`,f=`viewBox="0 0 `+l+` `+l+`"`,p=`<svg xmlns="http://www.w3.org/2000/svg" `+(o.width?`width="`+o.width+`" height="`+o.width+`" `:``)+f+` shape-rendering="crispEdges">`+u+d+`</svg>
|
|||
|
|
`;return typeof a==`function`&&a(null,p),p}})),PMe=c((e=>{var t=uMe(),n=AMe(),r=MMe(),i=NMe();function a(e,r,i,a,o){let s=[].slice.call(arguments,1),c=s.length,l=typeof s[c-1]==`function`;if(!l&&!t())throw Error(`Callback required as last argument`);if(l){if(c<2)throw Error(`Too few arguments provided`);c===2?(o=i,i=r,r=a=void 0):c===3&&(r.getContext&&o===void 0?(o=a,a=void 0):(o=a,a=i,i=r,r=void 0))}else{if(c<1)throw Error(`Too few arguments provided`);return c===1?(i=r,r=a=void 0):c===2&&!r.getContext&&(a=i,i=r,r=void 0),new Promise(function(t,o){try{t(e(n.create(i,a),r,a))}catch(e){o(e)}})}try{let t=n.create(i,a);o(null,e(t,r,a))}catch(e){o(e)}}e.create=n.create,e.toCanvas=a.bind(null,r.render),e.toDataURL=a.bind(null,r.renderToDataURL),e.toString=a.bind(null,function(e,t,n){return i.render(e,n)})}));function FMe(e,t){k(t,!0),G(e,RMe);let n=()=>j(P9,`$showMobileSignInDialog`,r),[r,i]=hn(),a=N(void 0);ri(()=>{if(z(a)&&n()){let{origin:e,pathname:t}=window.location,n=At(DO),r=`${e}${t}#/signin/${btoa(JSON.stringify({token:hD.account?.token,prefs:n}))}`;(0,IMe.toCanvas)(z(a),r),DO.devModeEnabled&&console.info(`Mobile sign-in URL:`,r)}});{let t=M(()=>Y(`sign_in_with_mobile`));qI(e,{get title(){return z(t)},size:`small`,showOk:!1,showCancel:!1,showClose:!0,style:`--sui-dialog-small-content-max-height:auto`,get open(){return vn(),n()},set open(e){mn(P9,e)},children:(e,t)=>{var n=LMe(),r=I(n),i=F(r,!0);O(r),qs(L(r,2),e=>P(a,e),()=>z(a)),R(e=>U(i,e),[()=>Y(`sign_in_with_mobile_instruction`)]),H(e,n)},$$slots:{default:!0}})}A(),i()}var IMe,LMe,RMe,zMe=s((()=>{Z(),J(),X(),$(),IMe=PMe(),F9(),gD(),OO(),LMe=B(`<div> </div> <canvas class="svelte-1eeac91"></canvas>`,1),RMe={hash:`svelte-1eeac91`,code:`canvas.svelte-1eeac91 {display:block;margin:32px auto 16px;width:200px !important;height:200px !important;}`}}));function BMe(e,t){k(t,!0);let n=()=>j(Z6,`$searchTerms`,i),r=()=>j(X6,`$searchMode`,i),[i,a]=hn(),o=/^\/search\/(?<terms>.+)$/,s=()=>{let{path:e}=K2(),{terms:t}=e.match(o)?.groups??{};t&&t!==n()&&mn(Z6,t),mn(X6,r()??`contents`)};lc(()=>{s(),document.querySelector(`.sui.search-bar input`)?.focus()}),wa(`hashchange`,Kr,()=>{s()});{let t=e=>{j8(e,{})},r=M(()=>Y(`search_results_for_x`,{values:{terms:n()}}));E8(e,{get"aria-label"(){return z(r)},main:t,$$slots:{main:!0}})}A(),a()}var VMe=s((()=>{Z(),J(),X(),dc(),D8(),M8(),$2(),Q6()}));function HMe(e,t){k(t,!0),G(e,GMe);let n=/^\/settings(?:\/(?<panelKey>.+))?$/,r=N(void 0),i=()=>{let{path:e}=K2(),t=e.match(n);if(!t?.groups)return;let{panelKey:i}=t.groups;P(r,i?dn(B9).find(e=>e.key===i):void 0,!0)};lc(()=>{i()}),wa(`hashchange`,Kr,e=>{Y2(e,i,n)});{let t=e=>{w8(e,{primaryToolbar:e=>{f0(e,{variant:`primary`,children:(e,t)=>{var n=UMe(),i=I(n),a=e=>{var t=q9(),n=I(t);D3(n,{onclick:()=>Z2(`/settings`)});var i=L(n,2),a=F(i,!0);O(i),R(e=>U(a,e),[()=>Y(`prefs.${z(r).key}.title`)]),H(e,t)},o=e=>{var t=q9(),n=I(t);D3(n,{onclick:()=>Z2(`/menu`)});var r=L(n,2),i=F(r,!0);O(r),R(e=>U(i,e),[()=>Y(`settings`)]),H(e,t)};W(i,e=>{z(r)?e(a):e(o,-1)}),PI(L(i,2),{flex:!0}),H(e,n)},$$slots:{default:!0}})},mainContent:e=>{var t=WMe(),n=F(t),i=e=>{_je(e,{get Panel(){return z(r).component}})},a=e=>{{let t=M(()=>Y(`settings`));YL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=V();vo(I(n),17,()=>dn(B9),({key:e,icon:t})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).icon;{let t=e=>{tI(e,{get name(){return r()}})},i=M(()=>Y(`prefs.${n()}.title`));eR(e,{get label(){return z(i)},onclick:()=>X2(`/settings/${n()}`,{transitionType:`forwards`}),startIcon:t,$$slots:{startIcon:!0}})}}),H(e,n)},$$slots:{default:!0}})}};W(n,e=>{z(r)?e(i):e(a,-1)}),O(t),H(e,t)},$$slots:{primaryToolbar:!0,mainContent:!0}})},n=M(()=>Y(`settings`));E8(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}A()}var q9,UMe,WMe,GMe,KMe=s((()=>{Z(),J(),X(),$(),dc(),Zp(),T8(),D8(),O3(),gje(),bje(),$2(),q9=B(`<!> <h2 role="none"> </h2>`,1),UMe=B(`<!> <!>`,1),WMe=B(`<div role="none" class="wrapper svelte-116bna3"><!></div>`),GMe={hash:`svelte-116bna3`,code:`.wrapper.svelte-116bna3 {overflow-y:auto;height:100%;--sui-menu-border-width: 0;--
|
|||
|
|
|
|||
|
|
@media (width < 768px) {flex-direction:column;gap:0;
|
|||
|
|
}.column {flex:auto;width:calc(100% / 3);background-color:var(--sui-primary-background-color);
|
|||
|
|
|
|||
|
|
@media (width < 768px) {width:100%;height:calc(100% / 3);
|
|||
|
|
}}header:where(.svelte-ljqw9n) {display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);h3:where(.svelte-ljqw9n) {font-size:var(--sui-font-size-x-large);}}}`}}));function eNe(e,t){k(t,!0),G(e,rNe);let n=()=>j(X6,`$searchMode`,a),r=()=>j(W2,`$selectedPageName`,a),i=()=>j(N9,`$canShowMobileSignInDialog`,a),[a,o]=hn(),s=M(()=>({collections:mAe,assets:Gge,search:AE.isSmallScreen?BMe:n()?{contents:mAe,assets:Gge}[n()]:BMe,workflow:qMe,config:u_e,menu:iMe,settings:HMe})),c=M(()=>z(s)[r()]),l=()=>{let{path:e}=K2(),{pageName:t}=e.match(`^\\/(?<pageName>${Object.keys(z(s)).join(`|`)})\\b`)?.groups??{};t?r()!==t&&mn(W2,t):window.location.replace(`#/collections`),t===`collections`?mn(X6,`contents`):t===`assets`?mn(X6,`assets`):t!==`search`&&mn(X6,null)};lc(()=>{l()});var u={selectPage:l},d=nNe();wa(`hashchange`,Kr,()=>{l()});var f=I(d),p=e=>{var t=tNe(),n=I(t);wAe(n,{}),FMe(L(n,2),{}),H(e,t)};W(f,e=>{i()&&e(p)});var m=L(f,2),h=e=>{$je(e,{})};W(m,e=>{AE.isSmallScreen||e(h)});var g=L(m,2);Mo(F(g),()=>z(c),(e,t)=>{t(e,{})}),O(g);var _=L(g,2),v=e=>{MAe(e,{})};W(_,e=>{AE.isSmallScreen&&e(v)});var y=L(_,2);c_e(y,{});var b=L(y,2);$ge(b,{});var x=L(b,2);yAe(x,{});var S=L(x,2);SAe(S,{}),Yge(L(S,2),{}),H(e,d);var C=A(u);return o(),C}var tNe,nNe,rNe,iNe=s((()=>{Z(),J(),dc(),Jge(),Qge(),s_e(),l_e(),p_e(),gAe(),xAe(),CAe(),DAe(),PAe(),rMe(),lMe(),zMe(),VMe(),KMe(),$Me(),$2(),F9(),Q6(),jE(),tNe=B(`<!> <!>`,1),nNe=B(`<!> <!> <div role="none" class="page-root svelte-1a6c577"><!></div> <!> <!> <!> <!> <!> <!>`,1),rNe={hash:`svelte-1a6c577`,code:`.page-root.svelte-1a6c577 {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;view-transition-name:page-root;}`}}));function aNe(e,t){k(t,!0),G(e,fNe);let n=()=>j(dC,`$dataLoaded`,d),r=()=>j(CF,`$cmsConfigLoaded`,d),i=()=>j(E4,`$appTitle`,d),a=()=>j(D4,`$appLogoURL`,d),o=()=>j(O4,`$appLogoType`,d),s=()=>j(A4,`$appIconURLs`,d),c=()=>j(j4,`$appManifestURL`,d),l=()=>j(nA,`$backend`,d),u=()=>j(G2,`$announcedPageStatus`,d),[d,f]=hn(),p=N(!1);ai(()=>{hhe(),P(p,!0)}),ai(()=>{lie()}),ri(()=>{joe(t.config)}),lc(()=>{let e=document.querySelector(`#nc-root`);e&&window.getComputedStyle(e).position===`static`&&window.requestAnimationFrame(()=>{let{top:t,height:n}=e.getBoundingClientRect();n?e.style.position=`relative`:(e.style.position=`fixed`,e.style.inset=`${t}px 0 0 0`)})});let m=N(!1);ri(()=>{n()&&hD.account?J2(`forwards`,()=>{P(m,!0)}):J2(`backwards`,()=>{P(m,!1)})}),Xo(`7y4msj`,e=>{var t=uNe(),n=L(I(t),4),l=e=>{var t=cNe(),n=I(t),r=L(n,2),l=e=>{var t=oNe();R(()=>K(t,`href`,s().large)),H(e,t)};W(r,e=>{s()&&e(l)});var u=L(r,2),d=e=>{var t=sNe();R(()=>K(t,`href`,c())),H(e,t)};W(u,e=>{c()&&e(d)}),R(()=>{K(n,`href`,a()),K(n,`type`,o())}),di(()=>{qr.title=i()??``}),H(e,t)};W(n,e=>{r()&&e(l)});var u=L(n,2),d=e=>{var t=lNe();R(()=>K(t,`href`,`${vF??``}/admin/config.yml`)),H(e,t)};W(u,e=>{vF&&e(d)}),H(e,t)}),wa(`mousedown`,qr.body,e=>{if(e.target?.matches(`a`)){let t=e.target,{origin:n,pathname:r}=t;(n!==window.location.origin||r!==window.location.pathname)&&(t.rel=`noopener noreferrer`,t.target=`_blank`)}}),Afe(e,{children:(e,t)=>{var r=V(),i=I(r),a=e=>{var t=dNe(),r=I(t),i=F(r);Jfe(i,{});var a=L(i,2),o=e=>{Kfe(e,{})};W(a,e=>{l()&&e(o)});var s=L(a,2),c=F(s),d=e=>{eNe(e,{})},f=e=>{Wfe(e,{})};W(c,e=>{hD.account&&n()&&z(m)?e(d):e(f,-1)}),O(s),O(r);var p=L(r,2),h=F(p,!0);O(p),R(()=>U(h,u())),H(e,t)};W(i,e=>{z(p)&&e(a)}),H(e,r)},$$slots:{default:!0}}),A(),f()}var oNe,sNe,cNe,lNe,uNe,dNe,fNe,pNe=s((()=>{Z(),J(),$(),dc(),Gfe(),qfe(),Yfe(),iNe(),M4(),n8(),$2(),iA(),TF(),yC(),gD(),jE(),oNe=B(`<link rel="apple-touch-icon"/>`),sNe=B(`<link rel="manifest"/>`),cNe=B(`<link rel="icon"/> <!> <!>`,1),lNe=B(`<link type="application/yaml" rel="cms-config-url"/>`),uNe=B(`<meta name="referrer" content="same-origin"/> <meta name="robots" content="noindex"/> <!> <!>`,1),dNe=B(`<div role="none" class="outer svelte-7y4msj"><!> <!> <div role="none" class="main svelte-7y4msj"><!></div></div> <div role="status" class="svelte-7y4msj"> </div>`,1),fNe={hash:`
|
|||
|
|
@view-transition {navigation:auto;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
@keyframes svelte-7y4msj-slide-out-to-left {
|
|||
|
|
from {
|
|||
|
|
transform: translateX(0);
|
|||
|
|
filter: brightness(1);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
to {
|
|||
|
|
transform: translateX(-20%);
|
|||
|
|
filter: brightness(0.5);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
@keyframes svelte-7y4msj-slide-out-to-right {
|
|||
|
|
from {
|
|||
|
|
transform: translateX(0);
|
|||
|
|
opacity: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
to {
|
|||
|
|
transform: translateX(100%);
|
|||
|
|
opacity: 0;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
@keyframes svelte-7y4msj-slide-in-from-right {
|
|||
|
|
from {
|
|||
|
|
transform: translateX(100%);
|
|||
|
|
opacity: 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
to {
|
|||
|
|
transform: translateX(0);
|
|||
|
|
opacity: 1;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
@keyframes svelte-7y4msj-slide-in-from-left {
|
|||
|
|
from {
|
|||
|
|
transform: translateX(-20%);
|
|||
|
|
filter: brightness(0.5);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
to {
|
|||
|
|
transform: translateX(0);
|
|||
|
|
filter: brightness(1);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* RTL-specific keyframes that mirror the depth effect */
|
|||
|
|
@keyframes svelte-7y4msj-slide-out-to-left-rtl {
|
|||
|
|
from {
|
|||
|
|
transform: translateX(0);
|
|||
|
|
opacity: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
to {
|
|||
|
|
transform: translateX(-100%);
|
|||
|
|
opacity: 0;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
@keyframes svelte-7y4msj-slide-out-to-right-rtl {
|
|||
|
|
from {
|
|||
|
|
transform: translateX(0);
|
|||
|
|
filter: brightness(1);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
to {
|
|||
|
|
transform: translateX(20%);
|
|||
|
|
filter: brightness(0.5);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
@keyframes svelte-7y4msj-slide-in-from-right-rtl {
|
|||
|
|
from {
|
|||
|
|
transform: translateX(20%);
|
|||
|
|
filter: brightness(0.5);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
to {
|
|||
|
|
transform: translateX(0);
|
|||
|
|
filter: brightness(1);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
@keyframes svelte-7y4msj-slide-in-from-left-rtl {
|
|||
|
|
from {
|
|||
|
|
transform: translateX(-100%);
|
|||
|
|
opacity: 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
to {
|
|||
|
|
transform: translateX(0);
|
|||
|
|
opacity: 1;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
@keyframes svelte-7y4msj-fade-out {
|
|||
|
|
from {
|
|||
|
|
opacity: 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
to {
|
|||
|
|
opacity: 0;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
@keyframes svelte-7y4msj-fade-in {
|
|||
|
|
from {
|
|||
|
|
opacity: 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
to {
|
|||
|
|
opacity: 1;
|
|||
|
|
}
|
|||
|
|
}html:active-view-transition-type(forwards) {
|
|||
|
|
@media (width < 768px) {&::view-transition-old(page-root) {z-index:999;
|
|||
|
|
animation: 100ms ease-in both svelte-7y4msj-slide-out-to-left;
|
|||
|
|
|
|||
|
|
@media (prefers-reduced-motion) {
|
|||
|
|
animation: none;
|
|||
|
|
}}&::view-transition-new(page-root) {
|
|||
|
|
@media (width < 768px) {z-index:1000;
|
|||
|
|
animation: 100ms ease-in both svelte-7y4msj-slide-in-from-right;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
@media (prefers-reduced-motion) {
|
|||
|
|
animation: none;
|
|||
|
|
}}&:dir(rtl) {&::view-transition-old(page-root) {
|
|||
|
|
animation: 100ms ease-in both svelte-7y4msj-slide-out-to-right-rtl;}&::view-transition-new(page-root) {
|
|||
|
|
animation: 100ms ease-in both svelte-7y4msj-slide-in-from-left-rtl;}}
|
|||
|
|
}}html:active-view-transition-type(backwards) {
|
|||
|
|
@media (width < 768px) {&::view-transition-old(page-root) {z-index:1000;
|
|||
|
|
animation: 100ms ease-in both svelte-7y4msj-slide-out-to-right;
|
|||
|
|
|
|||
|
|
@media (prefers-reduced-motion) {
|
|||
|
|
animation: none;
|
|||
|
|
}}&::view-transition-new(page-root) {z-index:999;
|
|||
|
|
animation: 100ms ease-in both svelte-7y4msj-slide-in-from-left;
|
|||
|
|
|
|||
|
|
@media (prefers-reduced-motion) {
|
|||
|
|
animation: none;
|
|||
|
|
}}&:dir(rtl) {&::view-transition-old(page-root) {
|
|||
|
|
animation: 100ms ease-in both svelte-7y4msj-slide-out-to-left-rtl;}&::view-transition-new(page-root) {
|
|||
|
|
animation: 100ms ease-in both svelte-7y4msj-slide-in-from-right-rtl;}}
|
|||
|
|
}}html:active-view-transition-type(unknown) {&::view-transition-old(page-main) {
|
|||
|
|
animation: 100ms ease-in both svelte-7y4msj-fade-out;
|
|||
|
|
|
|||
|
|
@media (prefers-reduced-motion) {
|
|||
|
|
animation: none;
|
|||
|
|
}}&::view-transition-new(page-main) {
|
|||
|
|
animation: 100ms ease-in both svelte-7y4msj-fade-in;
|
|||
|
|
|
|||
|
|
@media (prefers-reduced-motion) {
|
|||
|
|
animation: none;
|
|||
|
|
}}}body:not(:has(#nc-root)) {overflow:hidden;}#nc-root > .sui.app-shell {position:absolute;}.outer.svelte-7y4msj {display:flex;flex-direction:column;position:absolute;inset:0;overflow:hidden;}.main.svelte-7y4msj {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-secondary-background-color);}[role='status'].svelte-7y4msj {position:absolute;z-index:-1;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none;}`}})),mNe,J9,hNe,gNe,Y9,X9,_Ne,vNe,yNe,bNe,xNe,Z9,Q9,$9;return s((()=>{p(),mNe=u(v(),1),J9=h(),dc(),eI(),yp(),$N(),pNe(),hNe=[`getBackend`,`getCustomFormats`,`getCustomFormatsExtensions`,`getCustomFormatsFormatters`,`getEditorComponents`,`getEventListeners`,`getLocale`,`getMediaLibrary`,`getPreviewStyles`,`getPreviewTemplate`,`getRemarkPlugins`,`getWidget`,`getWidgetValueSerializer`,`getWidgets`,`invokeEvent`,`moment`,`registerBackend`,`registerMediaLibrary`,`registerWidgetValueSerializer`,`removeEventListener`,`resolveWidget`,`registerLocale`,`registerRemarkPlugin`],gNe=`https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`,Y9=!1,X9=async({config:e}={})=>{if(e!==void 0&&!d(e))throw TypeError("The `config` option for `CMS.init()` must be an object");Y9||(Y9=!0,document.readyState===`loading`&&!document.querySelector(`#nc-root`)&&await new Promise(e=>{window.addEventListener(`DOMContentLoaded`,()=>e(void 0),{once:!0})}),Ha(aNe,{target:document.querySelector(`#nc-root`)??document.body,props:{config:e}}))},_Ne=(e,t,{fromFile:n,toFile:r}={})=>{if(!YN(e))throw TypeError("The `name` option for `CMS.registerCustomFormat()` must be a non-empty string");if(!YN(t))throw TypeError("The `extension` option for `CMS.registerCustomFormat()` must be a non-empty string");if(typeof n!=`function`&&typeof r!=`function`)throw Error("At least one of `fromFile` or `toFile` must be provided to `CMS.registerCustomFormat()`");if(n!==void 0&&typeof n!=`function`)throw TypeError("The `fromFile` option for `CMS.registerCustomFormat()` must be a function");if(r!==void 0&&typeof r!=`function`)throw TypeError("The `toFile` option for `CMS.registerCustomFormat()` must be a function");hp.set(e,{extension:t,parser:n,formatter:r})},vNe=e=>{if(!e||typeof e!=`object`)throw TypeError("The `definition` option for `CMS.registerEditorComponent()` must be an object");if(!YN(e.id))throw TypeError("The `definition.id` must be a non-empty string");if(!YN(e.label))throw TypeError("The `definition.label` must be a non-empty string");if(typeof e.pattern!=`object`||!(e.pattern instanceof RegExp))throw TypeError("The `definition.pattern` must be a RegExp");if(typeof e.toBlock!=`function`)throw TypeError("The `definition.toBlock` must be a function");if(typeof e.toPreview!=`function`)throw TypeError("The `definition.toPreview` must be a function");if(!Array.isArray(e.fields))throw TypeError("The `definition.fields` must be an array");pp.set(e.id,e)},yNe=e=>{if(!d(e))throw TypeError(`The event listener must be an object`);let{name:t,handler:n}=e;if(typeof t!=`string`||typeof n!=`function`)throw TypeError("The event listener must have a string `name` property and a function `handler` property");if(!QF.includes(t))throw RangeError(`Unsupported event listener name "${t}". Supported names are: ${QF.join(`, `)}`);vp.add(e)},bNe=(e,{raw:t=!1}={})=>{if(!YN(e))throw TypeError("The `style` option for `CMS.registerPreviewStyle()` must be a non-empty string");if(typeof t!=`boolean`)throw TypeError("The `raw` option for `CMS.registerPreviewStyle()` must be a boolean");let n=window.location.href;if(!t&&!URL.canParse(e,n))throw TypeError("The `style` option for `CMS.registerPreviewStyle()` must be a valid URL or file path when `raw` is false");let r=t?URL.createObjectURL(new Blob([e],{type:`text/css`})):new URL(e,n).href;gp.add(r)},xNe=(e,t)=>{if(!YN(e))throw TypeError("The `name` option for `CMS.registerPreviewTemplate()` must be a non-empty string");if(typeof t!=`function`)throw TypeError("The `component` option for `CMS.registerPreviewTemplate()` must be a React comp
|
|||
|
|
//# sourceMappingURL=sveltia-cms.js.map
|